1 2021-03-24 Luis Machado <luis.machado@linaro.org>
3 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
4 (aarch64_store_mteregset): New function.
5 (aarch64_regsets): Add MTE register set entry.
6 (aarch64_sve_regsets): Add MTE register set entry.
8 2021-03-24 Luis Machado <luis.machado@linaro.org>
10 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
11 aarch64_linux_read_description.
12 (initialize_low_tracepoint): Likewise.
13 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
15 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
17 (aarch64_linux_read_description): Add mte_p parameter and update to
19 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
22 2021-03-24 Luis Machado <luis.machado@linaro.org>
24 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
26 2021-03-24 Luis Machado <luis.machado@linaro.org>
28 * server.cc (test_memory_tagging_functions): New function.
29 (captured_main): Register test_memory_tagging_functions.
31 2021-03-24 Luis Machado <luis.machado@linaro.org>
33 * remote-utils.cc (decode_m_packet_params): Renamed from ...
34 (decode_m_packet): ... this, which now calls decode_m_packet_params.
35 Make char * param/return const char *.
36 (decode_M_packet): Use decode_m_packet_params and make char * param
38 * remote-utils.h (decode_m_packet_params): New prototype.
39 (decode_m_packet): Constify char pointers.
40 (decode_M_packet): Likewise.
41 * server.cc (create_fetch_memtags_reply)
42 (parse_store_memtags_request): New
44 (handle_general_set): Handle the QMemTags packet.
45 (parse_fetch_memtags_request): New function.
46 (handle_query): Handle the qMemTags packet and advertise memory
48 (captured_main): Initialize memory tagging flag.
49 * server.h (struct client_state): Initialize memory tagging flag.
50 * target.cc (process_stratum_target::supports_memory_tagging)
51 (process_stratum_target::fetch_memtags)
52 (process_stratum_target::store_memtags): New methods.
53 * target.h: Include gdbsupport/byte-vector.h.
54 (class process_stratum_target) <supports_memory_tagging>
55 <fetch_memtags, store_memtags>: New class virtual methods.
56 (target_supports_memory_tagging): Define.
58 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
63 (unloaded_dll): Declare an overloaded version that takes a proc
66 (unloaded_dll): Implement the overloaded versions.
67 (clear_dlls): Clear all process' dll lists.
68 (all_dlls, dlls_changed): Remove the global variables.
69 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
71 * server.cc (handle_qxfer_libraries): Ditto.
72 (handle_v_attach): Ditto.
73 (captured_main): Ditto.
75 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
77 * linux-low.cc (linux_process_target::filter_event): Return
79 * linux-low.h (class linux_process_target) <filter_event>:
82 2021-02-12 Tom Tromey <tromey@adacore.com>
84 * gdbreplay.cc (remote_desc): Remove.
85 (remote_desc_in, remote_desc_out): New globals.
86 (remote_close): Update.
87 (remote_open): Handle "-".
88 (remote_open): Update.
89 (logchar): Log to stderr.
90 (expect, play): Update.
92 2021-02-12 Tom Tromey <tromey@adacore.com>
94 * gdbreplay.cc (remote_open): Constify.
96 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
98 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
99 gnulib free replacement too.
100 * common-defs.h [USE_WIN32API](read, write): Undefine
101 gnulib versions before defining these macros.
103 2021-02-03 Pedro Alves <pedro@palves.net>
105 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
106 Discard step SIGTRAP, unless GDB wanted the thread to step.
108 2021-02-03 Pedro Alves <pedro@palves.net>
110 * server.cc (discard_queued_stop_replies): Don't ever discard the
111 notification at the head of the list.
113 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
115 * ax.cc (bytecode_address_table): Make static.
116 * debug.cc (debug_file): Make static.
117 * linux-low.cc (stopping_threads): Make static.
118 (step_over_bkpt): Make static.
119 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
120 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
121 alloced_trace_state_variables, trace_buffer_ctrl,
122 tracing_start_time, tracing_stop_time, tracing_user_name,
123 tracing_notes, tracing_stop_note): Make static.
125 2021-01-20 Tom de Vries <tdevries@suse.de>
127 * linux-x86-low.cc (collect_register_i386): New function.
128 (x86_fill_gregset): Remove memset. Use collect_register_i386.
130 2021-01-07 Tom de Vries <tdevries@suse.de>
132 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
133 (LIBIBERTY_FOR_SHLIB): New var.
134 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
135 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
137 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
139 * debug.cc (debug_print_depth): New.
141 2021-01-01 Joel Brobecker <brobecker@adacore.com>
143 * server.cc (gdbserver_version): Update copyright year.
144 * gdbreplay.cc (gdbreplay_version): Likewise.
146 2020-12-16 Luis Machado <luis.machado@linaro.org>
148 * linux-aarch64-low.cc (address_significant): New function.
149 (aarch64_target::low_stopped_data_address): Handle the TBI.
151 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
153 * Makefile.in (IPA_LIB): Include libiberty library.
155 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
157 * server.cc (gdbserver_usage): Add missing option to usage text.
158 (gdbserver_show_disableable): Likewise.
160 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
162 * ax.cc: Fix indentation.
163 * dll.cc: Fix indentation.
164 * inferiors.h: Fix indentation.
165 * linux-low.cc: Fix indentation.
166 * linux-nios2-low.cc: Fix indentation.
167 * linux-ppc-ipa.cc: Fix indentation.
168 * linux-ppc-low.cc: Fix indentation.
169 * linux-x86-low.cc: Fix indentation.
170 * linux-xtensa-low.cc: Fix indentation.
171 * regcache.cc: Fix indentation.
172 * server.cc: Fix indentation.
173 * tracepoint.cc: Fix indentation.
175 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
177 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
179 * configure: Re-generate.
181 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
183 * configure: Re-generate.
185 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
187 * configure: Re-generate.
189 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
191 * configure: Re-generate.
193 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
195 * configure: Re-generate.
197 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
199 * configure.ac: Modernize.
200 * configure: Re-generate.
202 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
204 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
206 * configure: Re-generate.
208 2020-10-26 Pedro Alves <pedro@palves.net>
210 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
211 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
214 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
216 * acinclude.m4: Update ptrace.m4 path.
218 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
220 * config.in: Re-generate.
221 * configure: Re-generate.
223 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
225 * server.cc (handle_general_set): Don't use sprintf with
226 argument overlapping buffer.
228 2020-10-20 Tom Tromey <tromey@adacore.com>
231 * inferiors.cc (remove_thread): Clear current_thread before
234 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
236 * netbsd-low.cc (netbsd_tdesc): Remove.
237 (netbsd_add_process): Likewise.
238 (netbsd_process_target::create_inferior): Update.
240 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
242 * linux-arc-low.cc (arc_linux_read_description): Release the
243 unique_ptr returned from arc_create_target_description.
245 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
247 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
248 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
250 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
252 * linux-low.cc (linux_process_target::handle_extended_wait):
253 Release the unique_ptr returned from allocate_target_description.
254 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
255 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
256 (tdesc_i386_linux_no_xml): Change type.
257 (x86_linux_read_description): Borrow pointer from unique_ptr
259 (x86_target::get_ipa_tdesc_idx): Likewise.
260 (initialize_low_arch): Likewise.
261 * tdesc.cc (allocate_target_description): Update return type.
263 2020-10-07 Tom Tromey <tromey@adacore.com>
265 * server.cc (handle_search_memory): Remove dead code.
267 2020-10-07 Tom Tromey <tromey@adacore.com>
269 * server.cc (handle_search_memory_1): Remove.
270 (handle_search_memory): Use simple_search_memory.
272 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
274 * Makefile.in (COMPILE): Add CXXFLAGS.
275 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
276 (gdbserver$(EXEEXT)): Add CXXFLAGS.
277 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
278 ($(IPA_LIB)): Add CXXFLAGS.
279 (IPAGENT_COMPILE): Add CXXFLAGS.
281 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
283 * configure.srv: Support ARC architecture.
284 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
285 * linux-arc-low.cc: New file.
287 2020-10-07 Kamil Rytarowski <n54@gmx.com>
289 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
290 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
291 (netbsd_process_target::qxfer_libraries_svr4): Update.
293 2020-10-07 Kamil Rytarowski <n54@gmx.com>
295 * netbsd-low.cc: Fix whitespace formatting.
296 * netbsd-amd64-low.cc: Likewise.
298 2020-10-07 Kamil Rytarowski <n54@gmx.com>
300 * netbsd-low.cc (netbsd_process_target::read_memory)
301 (netbsd_process_target::write_memory): Update.
303 2020-10-07 Kamil Rytarowski <n54@gmx.com>
305 * netbsd-aarch64-low.cc: Add.
306 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
307 * configure.srv: Add aarch64*-*-netbsd*.
309 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
311 * regcache.cc (register_data): Remove unused "fetch" argument.
313 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
315 * server.cc (handle_monitor_command): Handle "set
317 (captured_main): Handle "--debug-event-loop".
318 (monitor_show_help): Mention new setting.
319 (gdbserver_usage): Mention new flag.
321 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
323 * linux-low.cc (linux_process_target::async): Pass name to
325 * remote-utils.cc (handle_accept_event): Likewise.
326 (remote_open): Likewise.
328 2020-10-01 Kamil Rytarowski <n54@gmx.com>
330 * netbsd-i386-low.cc: Add.
331 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
332 * configure.srv: Add i[34567]86-*-netbsd*.
334 2020-10-01 Kamil Rytarowski <n54@gmx.com>
336 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
337 (netbsd_target_regsets): Now const.
338 (the_low_target): Remove.
339 (class netbsd_amd64_target, the_netbsd_amd64_target)
340 (the_netbsd_target): Add.
341 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
343 (netbsd_process_target::fetch_registers)
344 (netbsd_process_target::store_registers, initialize_low): Update.
345 (the_netbsd_target): Remove.
346 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
347 (the_low_target, netbsd_tdesc): Remove.
348 (netbsd_process_target::get_regs_info)
349 (netbsd_process_target::low_arch_setup): Add.
351 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
353 * win32-low.cc: Remove local wow64_process variable.
354 * win32-low.h: Remove local wow64_process variable.
356 2020-09-18 Tom Tromey <tromey@adacore.com>
358 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
359 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
360 (netbsd_process_target::wait): Change type of target_options.
361 * win32-low.h (class win32_process_target) <wait>: Update.
362 * win32-low.cc (win32_process_target::wait): Update.
363 * target.h (class process_stratum_target) <wait>: Update.
365 * target.cc (mywait, target_wait): Change type of "options".
366 * linux-low.h (class linux_process_target) <wait, wait_1>:
368 * linux-low.cc (linux_process_target::wait)
369 (linux_process_target::wait_1): Update.
371 2020-09-15 Tom Tromey <tromey@adacore.com>
373 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
374 (xmltarget_amd64_linux_no_xml): Now arrays.
376 2020-09-14 Tom Tromey <tromey@adacore.com>
378 * tracepoint.cc (eval_result_names): Now const.
379 * ax.cc (gdb_agent_op_names): Now const.
381 2020-09-10 Kamil Rytarowski <n54@gmx.com>
383 * netbsd-low.cc: Add.
384 * netbsd-low.h: Likewise.
385 * netbsd-amd64-low.cc: Likewise.
386 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
387 "netbsd-amd64-low.cc".
388 * configure.srv: Add x86_64-*-netbsd*.
390 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
392 * server.cc (captured_main): Accept multiple `--selftest=`
393 options. Pass all `--selftest=` arguments to run_tests.
395 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
397 * configure, config.in: Regenerate.
399 2020-07-26 Eli Zaretskii <eliz@gnu.org>
401 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
402 When checking whether socklen_t type is defined, use ws2tcpip.h if
403 it is available and sys/socket.h isn't.
404 * configure: Regenerate.
405 * config.in: Regenerate.
407 2020-07-22 Pedro Alves <pedro@palves.net>
409 * inferiors.cc (switch_to_process): New, moved here from
410 thread-db.cc, and made extern.
411 * inferiors.h (switch_to_process): Declare.
412 * server.cc: Include "gdbsupport/scoped_restore.h".
413 (handle_qxfer_threads_proper): Now returns bool. Prepare to
414 access memory around target calls.
415 (handle_qxfer_threads): Handle errors.
416 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
418 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
420 * linux-low.cc (stopped_pids): Make static.
422 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
424 * tdesc.cc (allocate_target_description): Add header comment.
425 (target_desc_deleter::operator()): New function.
426 * tdesc.h (struct target_desc): Declare as final.
428 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
430 * server.cc (handle_query): Use std::vector of
431 std::string for `qsupported` vector. Use separate
433 * target.h (class process_stratum_target) <process_qsupported>:
434 Change parameters to array_view of const char *.
435 (target_process_qsupported): Remove `count` parameter.
436 * target.cc (process_stratum_target::process_qsupported): Change
437 parameters to array_view of const char *.
438 * linux-x86-low.cc (class x86_target) <process_qsupported>:
441 2020-06-29 Tom de Vries <tdevries@suse.de>
443 * ax.h: Include gdbsupport/debug_agent.h.
445 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
447 * tdesc.cc (struct tdesc_compatible_info): New struct.
448 (tdesc_compatible_info_list): New function.
449 (tdesc_compatible_info_arch_name): New function.
451 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
453 Use std::list to stop pending signal instead of manually-created
455 * linux-low.h: Include <list>.
456 (struct pending_signal): Move here from linux-low.cc.
457 (struct lwp_info) <pending_signals>
458 <pending_signals_to_report>: Update the type.
459 * linux-low.cc (struct pending_signals): Remove.
460 (linux_process_target::delete_lwp)
461 (linux_process_target::add_lwp)
462 (enqueue_one_deferred_signal)
463 (dequeue_one_deferred_signal)
464 (enqueue_pending_signal)
465 (linux_process_target::resume_one_lwp_throw)
466 (linux_process_target::thread_needs_step_over)
467 (linux_process_target::resume_one_thread)
468 (linux_process_target::proceed_one_lwp): Update the use of pending
471 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
473 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
476 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
478 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
479 * configure.srv: Remove mingw32ce cases.
480 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
481 * win32-low.h (to_back_slashes): Remove.
482 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
484 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
486 * Makefile.in (SFILES): linux-tile-low.cc.
487 * configure.srv: Remove tilegx case.
488 * linux-tile-low.cc: Remove.
490 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
492 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
493 * configure.srv: Remove m32r case.
494 * linux-m32r-low.cc: Remove.
496 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
498 * Makefile.in (SFILES): Remove linux-cris-low.c.
499 * configure.srv: Remove cris cases.
500 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
502 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
504 * Makefile.in (SFILES): Remove linux-bfin-low.c.
505 * configure.srv: Remove bfin case.
506 * linux-bfin-low.cc: Remove.
507 * linux-low.cc: Remove BFIN-conditional code.
509 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
511 * configure: Re-generate.
512 * configure.ac: Remove srv_qnx test.
513 * configure.srv: Remove nto case.
514 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
515 * remote-utils.c: Remove __QNX__-guarded code.
517 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
519 * configure: Re-generate.
520 * configure.ac: Remove srv_lynxos test.
521 * configure.srv: Remove lynxos cases.
522 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
525 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
527 * README: Fix a few outdated or incoherent things.
529 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
531 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
532 (win32_clear_inferiors): Use open_process_used.
533 (get_child_debug_event): Likewise.
535 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
538 * linux-low.cc (linux_process_target::create_inferior),
539 lynx-low.cc (lynx_process_target::create_inferior),
540 win32-low.cc (win32_process_target::create_inferior): Use
541 construct_inferior_arguments instead of stringify_argv
542 to get string representation which properly escapes
544 * server.cc (handle_v_run): Just pass empty program arg
545 as such, since any further processing is now handled via
546 construct_inferior_arguments.
548 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
550 * nto-low.cc (nto_process_target::create_inferior): Pass
551 argv to spawnp function as char **.
553 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
555 * server.cc (captured_main), (handle_v_run): No longer
556 insert extra NULL element to args vector.
558 2020-05-23 Pedro Alves <palves@redhat.com>
560 * gdb-safe-ctype.h: New.
562 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
564 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
565 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
566 (ia64_target::low_breakpoint_at): Ditto.
568 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
570 * win32-i386-low.cc (i386_supports_z_point_type): Handle
571 Z_PACKET_HW_BP z_type.
572 (i386_insert_point): Handle raw_bkpt_type type.
573 (i386_remove_point): Likewise.
575 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
577 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
579 * win32-arm-low.cc (arm_num_regs): New function.
580 (struct win32_target_ops): Use arm_num_regs.
581 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
583 (i386_get_thread_context): Likewise.
584 (i386_prepare_to_resume): Likewise.
585 (i386_thread_added): Likewise.
586 (i386_single_step): Likewise.
587 (i386_fetch_inferior_register): Likewise.
588 (i386_store_inferior_register): Likewise.
589 (i386_arch_setup): Likewise.
590 (i386_win32_num_regs): New function.
591 (struct win32_target_ops): Use i386_win32_num_regs.
592 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
594 (win32_require_context): Likewise.
595 (child_add_thread): Likewise.
596 (do_initial_child_stuff): Likewise.
597 (continue_one_thread): Likewise.
598 (win32_process_target::resume): Likewise.
599 (load_psapi): Likewise.
600 (win32_add_all_dlls): Likewise.
601 (maybe_adjust_pc): Likewise.
602 (win32_process_target::qxfer_siginfo): Likewise.
603 (initialize_low): Likewise.
604 * win32-low.h (struct win32_target_ops): Change num_regs to
607 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
609 * configure.ac: Remove check for fs_base/gs_base in
611 * configure: Re-generate.
612 * config.in: Re-generate.
613 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
614 x86_store_gregset): Adjust.
616 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
618 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
621 2020-04-16 Tom Tromey <tromey@adacore.com>
623 * win32-low.cc (windows_nat::handle_access_violation): New
626 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
628 * win32-low.cc (get_child_debug_event): Fix format string warning.
630 2020-04-13 Tom Tromey <tom@tromey.com>
632 * server.h (gdb_fildes_t): Remove typedef.
633 * remote-utils.c (remote_desc, list_desc): Now int.
634 (INVALID_DESCRIPTOR): Remove.
635 (gdb_connected, remote_close)
636 (check_remote_input_interrupt_request): Update.
637 * utils.h (pfildes): Don't declare.
638 * utils.c (pfildes): Remove.
640 2020-04-13 Tom Tromey <tom@tromey.com>
642 * server.h (handle_serial_event, handle_target_event): Update.
643 * server.c: Don't call initialize_event_loop.
644 (keep_processing_events): New global.
645 (handle_serial_event): Return void. Set keep_processing_events.
646 (handle_target_event): Return void.
647 (start_event_loop): Move from event-loop.c. Rewrite.
648 * remote-utils.c (handle_accept_event): Return void.
649 (reset_readchar): Use delete_timer.
650 (process_remaining): Return void.
651 (reschedule): Use create_timer.
652 * event-loop.h: Remove.
653 * event-loop.cc: Remove.
654 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
656 2020-04-13 Tom Tromey <tom@tromey.com>
658 * server.c (invoke_async_signal_handlers)
659 (check_async_event_handlers, flush_streams, gdb_select): New
662 2020-04-13 Tom Tromey <tom@tromey.com>
664 * configure: Rebuild.
665 * config.in: Rebuild.
667 2020-04-08 Tom Tromey <tromey@adacore.com>
670 * win32-low.c (child_continue): Call matching_pending_stop.
671 (get_child_debug_event): Call fetch_pending_stop. Push pending
674 2020-04-08 Tom Tromey <tromey@adacore.com>
676 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
677 (win32_process_target::supports_stopped_by_sw_breakpoint):
679 * win32-low.c (win32_supports_z_point_type): Always handle
681 (win32_insert_point): Call insert_memory_breakpoint when needed.
682 (win32_remove_point): Call remove_memory_breakpoint when needed.
683 (win32_process_target::stopped_by_sw_breakpoint)
684 (win32_process_target::supports_stopped_by_sw_breakpoint): New
686 (win32_target_ops): Update.
687 (maybe_adjust_pc): New function.
688 (win32_wait): Call maybe_adjust_pc.
690 2020-04-08 Tom Tromey <tromey@adacore.com>
692 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
694 * win32-i386-low.c (the_low_target): Update.
695 * win32-arm-low.c (the_low_target): Update.
697 2020-04-08 Tom Tromey <tromey@adacore.com>
699 * win32-low.h (win32_process_target::read_pc)
700 (win32_process_target::write_pc): Declare.
701 * win32-low.c (win32_process_target::read_pc)
702 (win32_process_target::write_pc): New methods.
703 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
705 (the_low_target): Update.
706 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
708 (the_low_target): Update.
710 2020-04-08 Tom Tromey <tromey@adacore.com>
712 * win32-low.c (win32_kill, get_child_debug_event): Use
713 wait_for_debug_event.
715 2020-04-08 Tom Tromey <tromey@adacore.com>
717 * win32-low.c (child_continue): Call continue_last_debug_event.
719 2020-04-08 Tom Tromey <tromey@adacore.com>
721 * win32-low.c (handle_exception): Remove.
722 (windows_nat::handle_ms_vc_exception): New function.
723 (get_child_debug_event): Add "continue_status" parameter.
725 (win32_wait): Update.
727 2020-04-08 Tom Tromey <tromey@adacore.com>
729 * win32-low.c (windows_nat::handle_load_dll): Rename from
730 handle_load_dll. No longer static.
731 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
734 2020-04-08 Tom Tromey <tromey@adacore.com>
736 * win32-low.c (handle_output_debug_string): Add parameter. Change
738 (win32_kill, get_child_debug_event): Update.
740 2020-04-08 Tom Tromey <tromey@adacore.com>
742 * win32-low.c (current_process_handle, current_process_id)
743 (main_thread_id, last_sig, current_event, siginfo_er): Move to
746 2020-04-08 Tom Tromey <tromey@adacore.com>
748 * win32-low.c (get_image_name): Remove.
749 (handle_load_dll): Update.
751 2020-04-08 Tom Tromey <tromey@adacore.com>
753 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
754 No longer static. Change parameters.
755 (child_add_thread, child_fetch_inferior_registers)
756 (child_store_inferior_registers, win32_resume)
757 (win32_get_tib_address): Update.
759 2020-04-08 Tom Tromey <tromey@adacore.com>
761 * win32-low.h (struct win32_target_ops): Use qualified names where
763 * win32-i386-low.c: Add "using namespace".
764 * win32-low.c: Add "using namespace".
765 * win32-arm-low.c: Add "using namespace".
767 2020-04-08 Tom Tromey <tromey@adacore.com>
769 * win32-low.c (delete_thread_info): Don't call CloseHandle.
771 2020-04-08 Tom Tromey <tromey@adacore.com>
773 * win32-low.c (win32_require_context, suspend_one_thread): Use
774 windows_thread_info::suspend.
775 (continue_one_thread): Use windows_thread_info::resume.
776 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
778 2020-04-08 Tom Tromey <tromey@adacore.com>
780 * win32-i386-low.c (update_debug_registers)
781 (i386_prepare_to_resume, i386_thread_added): Update.
783 2020-04-08 Tom Tromey <tromey@adacore.com>
785 * win32-low.c (child_add_thread): Use new.
786 (delete_thread_info): Use delete.
788 2020-04-08 Tom Tromey <tromey@adacore.com>
790 * win32-low.h (struct windows_thread_info): Remove.
792 2020-04-08 Tom Tromey <tromey@adacore.com>
794 * win32-low.h (struct windows_thread_info): Rename from
795 win32_thread_info. Remove typedef.
796 (struct win32_target_ops, win32_require_context): Update.
797 * win32-low.c (win32_get_thread_context)
798 (win32_set_thread_context, win32_prepare_to_resume)
799 (win32_require_context, thread_rec, child_add_thread)
800 (delete_thread_info, continue_one_thread)
801 (child_fetch_inferior_registers, child_store_inferior_registers)
802 (win32_resume, suspend_one_thread, win32_get_tib_address):
804 * win32-i386-low.c (update_debug_registers)
805 (win32_get_current_dr, i386_get_thread_context)
806 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
807 (i386_fetch_inferior_register, i386_store_inferior_register):
809 * win32-arm-low.c (arm_get_thread_context)
810 (arm_fetch_inferior_register, arm_store_inferior_register):
813 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815 * linux-low.h (struct linux_target_ops): Remove.
816 (the_low_target): Remove.
817 * linux-x86-low.cc (the_low_target): Remove.
818 * linux-aarch64-low.cc (the_low_target): Ditto.
819 * linux-arm-low.cc (the_low_target): Ditto.
820 * linux-bfin-low.cc (the_low_target): Ditto.
821 * linux-cris-low.cc (the_low_target): Ditto.
822 * linux-crisv32-low.cc (the_low_target): Ditto.
823 * linux-ia64-low.cc (the_low_target): Ditto.
824 * linux-m32r-low.cc (the_low_target): Ditto.
825 * linux-m68k-low.cc (the_low_target): Ditto.
826 * linux-mips-low.cc (the_low_target): Ditto.
827 * linux-nios2-low.cc (the_low_target): Ditto.
828 * linux-ppc-low.cc (the_low_target): Ditto.
829 * linux-riscv-low.cc (the_low_target): Ditto.
830 * linux-s390-low.cc (the_low_target): Ditto.
831 * linux-sh-low.cc (the_low_target): Ditto.
832 * linux-sparc-low.cc (the_low_target): Ditto.
833 * linux-tic6x-low.cc (the_low_target): Ditto.
834 * linux-tile-low.cc (the_low_target): Ditto.
835 * linux-xtensa-low.cc (the_low_target): Ditto.
837 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
839 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
840 linux target define the op by overriding the declaration in
841 process_stratum_target.
843 * linux-low.h (struct linux_target_ops): Remove the op.
844 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
845 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
846 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
847 (x86_get_ipa_tdesc_idx): Turn into...
848 (x86_target::get_ipa_tdesc_idx): ...this.
849 (the_low_target): Remove the op field.
850 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
851 (ppc_get_ipa_tdesc_idx): Turn into...
852 (ppc_target::get_ipa_tdesc_idx): ...this.
853 (the_low_target): Remove the op field.
854 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
855 (s390_get_ipa_tdesc_idx): Turn into...
856 (s390_target::get_ipa_tdesc_idx): ...this.
857 (the_low_target): Remove the op field.
859 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
861 Turn the 'get_syscall_trapinfo' linux target op into a method
862 of process_stratum_target.
864 * linux-low.h (struct linux_target_ops): Remove the op.
865 (class linux_process_target) <get_syscall_trapinfo>
866 <gdb_catch_this_syscall>
867 <low_supports_catch_syscall>
868 <low_get_syscall_trapinfo>: Declare.
869 * linux-low.cc (get_syscall_trapinfo): Turn into...
870 (linux_process_target::get_syscall_trapinfo): ...this.
871 (linux_process_target::low_get_syscall_trapinfo): Define.
872 (gdb_catch_this_syscall_p): Turn into...
873 (linux_process_target::gdb_catch_this_syscall): ...this.
874 (linux_process_target::low_supports_catch_syscall): Define.
876 Update the callers below.
878 (linux_process_target::wait_1)
879 (linux_process_target::supports_catch_syscall)
881 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
882 <low_get_syscall_trapinfo>: Declare.
883 (x86_target::low_supports_catch_syscall): Define.
884 (x86_get_syscall_trapinfo): Turn into...
885 (x86_target::low_get_syscall_trapinfo): ...this.
886 (the_low_target): Remove the op field.
887 * linux-aarch64-low.cc (class aarch64_target)
888 <low_supports_catch_syscall>
889 <low_get_syscall_trapinfo>: Declare.
890 (aarch64_target::low_supports_catch_syscall): Define.
891 (aarch64_get_syscall_trapinfo): Turn into...
892 (aarch64_target::low_get_syscall_trapinfo): ...this.
893 (the_low_target): Remove the op field.
894 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
895 <low_get_syscall_trapinfo>: Declare.
896 (arm_target::low_supports_catch_syscall): Define.
897 (arm_get_syscall_trapinfo): Turn into...
898 (arm_target::low_get_syscall_trapinfo): ...this.
899 (the_low_target): Remove the op field.
900 * linux-ppc-low.cc (the_low_target): Remove the op field.
901 * linux-s390-low.cc (the_low_target): Remove the op field.
903 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
905 Remove the 'supports_hardware_single_step' linux target op and
906 override the process_stratum_target's op definition in
907 linux_process_target to return true.
909 * linux-low.h (struct linux_target_ops): Remove the op.
910 (class linux_process_target) <finish_step_over>
911 <maybe_hw_step>: Declare.
912 * linux-low.cc (can_hardware_single_step): Remove.
913 (maybe_hw_step): Turn into...
914 (linux_process_target::maybe_hw_step): ...this.
915 (finish_step_over): Turn into...
916 (linux_process_target::finish_step_over): ...this.
917 (linux_process_target::supports_hardware_single_step): Update
920 Update the callers below.
922 (linux_process_target::single_step)
923 (linux_process_target::resume_one_lwp_throw)
925 * linux-arm-low.cc (class arm_target)
926 <supports_hardware_single_step>: Declare.
927 (arm_supports_hardware_single_step): Turn into...
928 (arm_target::supports_hardware_single_step): ...this.
929 (the_low_target): Remove the op field.
930 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
931 (the_low_target): Remove the op field.
932 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
934 (the_low_target): Remove the op field.
935 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
936 (the_low_target): Remove the op field.
937 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
938 (the_low_target): Remove the op field.
939 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
940 (the_low_target): Remove the op field.
941 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
942 (the_low_target): Remove the op field.
943 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
944 (the_low_target): Remove the op field.
945 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
946 (the_low_target): Remove the op field.
947 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
948 (the_low_target): Remove the op field.
949 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
950 (the_low_target): Remove the op field.
951 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
952 (the_low_target): Remove the op field.
953 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
955 (the_low_target): Remove the op field.
957 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
959 Turn the 'supports_range_stepping' linux target op into a method
960 of linux_process_target.
962 * linux-low.h (struct linux_target_ops): Remove the op.
963 (class linux_process_target) <low_supports_range_stepping>: Declare.
964 * linux-low.cc (linux_process_target::low_supports_range_stepping):
966 (linux_process_target::supports_range_stepping): Update the call
968 * linux-x86-low.cc (class x86_target)
969 <low_supports_range_stepping>: Declare.
970 (x86_supports_range_stepping): Turn into...
971 (x86_target::low_supports_range_stepping): ...this.
972 (the_low_target): Remove the op field.
973 * linux-aarch64-low.cc (class aarch64_target)
974 <low_supports_range_stepping>: Declare.
975 (aarch64_supports_range_stepping): Turn into...
976 (aarch64_target::low_supports_range_stepping): ...this.
977 (the_low_target): Remove the op field.
978 * linux-arm-low.cc (the_low_target): Remove the op field.
979 * linux-bfin-low.cc (the_low_target): Ditto.
980 * linux-crisv32-low.cc (the_low_target): Ditto.
981 * linux-m32r-low.cc (the_low_target): Ditto.
982 * linux-m68k-low.cc (the_low_target): Ditto.
983 * linux-ppc-low.cc (the_low_target): Ditto.
984 * linux-s390-low.cc (the_low_target): Ditto.
985 * linux-sh-low.cc (the_low_target): Ditto.
986 * linux-tic6x-low.cc (the_low_target): Ditto.
987 * linux-tile-low.cc (the_low_target): Ditto.
988 * linux-xtensa-low.cc (the_low_target): Ditto.
990 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
992 Remove the 'emit_ops' linux target ops and let the concrete
993 linux target define the op by overriding the declaration of
994 process_stratum_target.
996 * linux-low.h (struct linux_target_ops): Remove the op.
997 (class linux_process_target) <emit_ops>: Remove.
998 * linux-low.cc (linux_process_target::emit_ops): Remove.
999 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1000 (x86_emit_ops): Turn into...
1001 (x86_target::emit_ops): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1004 (aarch64_emit_ops): Turn into...
1005 (aarch64_target::emit_ops): ...this.
1006 (the_low_target): Remove the op field.
1007 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1008 (ppc_emit_ops): Turn into...
1009 (ppc_target::emit_ops): ...this.
1010 (the_low_target): Remove the op field.
1011 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1012 (s390_emit_ops): Turn into...
1013 (s390_target::emit_ops): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-arm-low.cc (the_low_target): Remove the op field.
1016 * linux-bfin-low.cc (the_low_target): Ditto.
1017 * linux-crisv32-low.cc (the_low_target): Ditto.
1018 * linux-m32r-low.cc (the_low_target): Ditto.
1019 * linux-m68k-low.cc (the_low_target): Ditto.
1020 * linux-sh-low.cc (the_low_target): Ditto.
1021 * linux-tic6x-low.cc (the_low_target): Ditto.
1022 * linux-tile-low.cc (the_low_target): Ditto.
1023 * linux-xtensa-low.cc (the_low_target): Ditto.
1025 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1027 Remove the 'install_fast_tracepoint_jump_pad' and
1028 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1029 concrete linux target define the ops by overriding the declarations
1030 of process_stratum_target.
1032 * linux-low.h (struct linux_target_ops): Remove the ops.
1033 (class linux_process_target) <supports_fast_tracepoints>
1034 <install_fast_tracepoint_jump_pad>
1035 <get_min_fast_tracepoint_insn_len>: Remove.
1036 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1037 (linux_process_target::install_fast_tracepoint_jump_pad)
1038 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1039 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1040 <install_fast_tracepoint_jump_pad>
1041 <get_min_fast_tracepoint_insn_len>: Declare.
1042 (x86_target::supports_fast_tracepoints): Define.
1043 (x86_install_fast_tracepoint_jump_pad): Turn into...
1044 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1045 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1046 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1047 (the_low_target): Remove the op fields.
1048 * linux-aarch64-low.cc (class aarch64_target)
1049 <supports_fast_tracepoints>
1050 <install_fast_tracepoint_jump_pad>
1051 <get_min_fast_tracepoint_insn_len>: Declare.
1052 (aarch64_target::supports_fast_tracepoints): Define.
1053 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1054 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1055 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1056 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1057 (the_low_target): Remove the op fields.
1058 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1059 <install_fast_tracepoint_jump_pad>
1060 <get_min_fast_tracepoint_insn_len>: Declare.
1061 (ppc_target::supports_fast_tracepoints): Define.
1062 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1063 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1064 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1065 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1066 (the_low_target): Remove the op fields.
1067 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1068 <install_fast_tracepoint_jump_pad>
1069 <get_min_fast_tracepoint_insn_len>: Declare.
1070 (s390_target::supports_fast_tracepoints): Define.
1071 (s390_install_fast_tracepoint_jump_pad): Turn into...
1072 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1073 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1074 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1075 (the_low_target): Remove the op fields.
1076 * linux-arm-low.cc (the_low_target): Remove the op fields.
1077 * linux-bfin-low.cc (the_low_target): Ditto.
1078 * linux-crisv32-low.cc (the_low_target): Ditto.
1079 * linux-m32r-low.cc (the_low_target): Ditto.
1080 * linux-m68k-low.cc (the_low_target): Ditto.
1081 * linux-sh-low.cc (the_low_target): Ditto.
1082 * linux-tic6x-low.cc (the_low_target): Ditto.
1083 * linux-tile-low.cc (the_low_target): Ditto.
1084 * linux-xtensa-low.cc (the_low_target): Ditto.
1086 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1088 Turn the 'get_thread_area' linux target op into a method of
1089 process_stratum_target.
1091 * linux-low.h (struct linux_target_ops): Remove the op.
1092 (class linux_process_target) <stuck_in_jump_pad>
1093 <linux_fast_tracepoint_collecting>
1094 <low_get_thread_area>: Declare.
1095 * linux-low.cc (supports_fast_tracepoints): Remove.
1096 (linux_fast_tracepoint_collecting): Turn into...
1097 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1098 (linux_process_target::low_get_thread_area): Define.
1099 (stuck_in_jump_pad_callback): Turn into...
1100 (linux_process_target::stuck_in_jump_pad): ...this.
1102 Update the caller below.
1104 (linux_process_target::stabilize_threads)
1106 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1108 (x86_get_thread_area): Turn into...
1109 (x86_target::low_get_thread_area): ...this.
1110 (the_low_target): Remove the op field.
1111 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1113 (aarch64_get_thread_area): Turn into...
1114 (aarch64_target::low_get_thread_area): ...this.
1115 (the_low_target): Remove the op field.
1116 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1118 (ppc_get_thread_area): Turn into...
1119 (ppc_target::low_get_thread_area): ...this.
1120 (the_low_target): Remove the op field.
1121 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1123 (s390_get_thread_area): Turn into...
1124 (s390_target::low_get_thread_area): ...this.
1125 (the_low_target): Remove the op field.
1126 * linux-arm-low.cc (the_low_target): Remove the op field.
1127 * linux-bfin-low.cc (the_low_target): Ditto.
1128 * linux-crisv32-low.cc (the_low_target): Ditto.
1129 * linux-m32r-low.cc (the_low_target): Ditto.
1130 * linux-m68k-low.cc (the_low_target): Ditto.
1131 * linux-sh-low.cc (the_low_target): Ditto.
1132 * linux-tic6x-low.cc (the_low_target): Ditto.
1133 * linux-tile-low.cc (the_low_target): Ditto.
1134 * linux-xtensa-low.cc (the_low_target): Ditto.
1136 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1138 Remote the 'supports_tracepoints' linux target op and let the
1139 concrete linux target define it by overriding the op declared in
1140 process_stratum_target.
1142 * linux-low.h (struct linux_target_ops): Remove the op.
1143 (class linux_process_target) <supports_tracepoints>: Remove.
1144 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1145 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1147 (x86_supports_tracepoints): Turn into...
1148 (x86_target::supports_tracepoints): ...this.
1149 (the_low_target): Remove the op field.
1150 * linux-aarch64-low.cc (class aarch64_target)
1151 <supports_tracepoints>: Declare.
1152 (aarch64_supports_tracepoints): Turn into...
1153 (aarch64_target::supports_tracepoints): ...this.
1154 (the_low_target): Remove the op field.
1155 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1157 (ppc_supports_tracepoints): Turn into...
1158 (ppc_target::supports_tracepoints): ...this.
1159 (the_low_target): Remove the op field.
1160 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1162 (s390_supports_tracepoints): Turn into...
1163 (s390_target::supports_tracepoints): ...this.
1164 (the_low_target): Remove the op field.
1165 * linux-arm-low.cc (the_low_target): Remove the op field.
1166 * linux-bfin-low.cc (the_low_target): Ditto.
1167 * linux-crisv32-low.cc (the_low_target): Ditto.
1168 * linux-m32r-low.cc (the_low_target): Ditto.
1169 * linux-m68k-low.cc (the_low_target): Ditto.
1170 * linux-sh-low.cc (the_low_target): Ditto.
1171 * linux-tic6x-low.cc (the_low_target): Ditto.
1172 * linux-tile-low.cc (the_low_target): Ditto.
1173 * linux-xtensa-low.cc (the_low_target): Ditto.
1175 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1177 Remove the 'process_qsupported' linux target op and let a concrete
1178 linux target define the op by overriding the op declaration in
1179 process_stratum_target.
1181 * linux-low.h (struct linux_target_ops): Remove the op.
1182 (class linux_process_target) <process_qsupported>: Remove.
1183 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1184 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1185 (x86_linux_process_qsupported): Turn into...
1186 (x86_target::process_qsupported): ...this.
1187 (the_low_target): Remove the op field.
1188 * linux-aarch64-low.cc (the_low_target): Remove the op
1190 * linux-arm-low.cc (the_low_target): Ditto.
1191 * linux-bfin-low.cc (the_low_target): Ditto.
1192 * linux-crisv32-low.cc (the_low_target): Ditto.
1193 * linux-m32r-low.cc (the_low_target): Ditto.
1194 * linux-m68k-low.cc (the_low_target): Ditto.
1195 * linux-ppc-low.cc (the_low_target): Ditto.
1196 * linux-s390-low.cc (the_low_target): Ditto.
1197 * linux-sh-low.cc (the_low_target): Ditto.
1198 * linux-tic6x-low.cc (the_low_target): Ditto.
1199 * linux-tile-low.cc (the_low_target): Ditto.
1200 * linux-xtensa-low.cc (the_low_target): Ditto.
1202 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1204 Turn the 'prepare_to_resume' linux target op into a method of
1205 linux_process_target.
1207 * linux-low.h (struct linux_target_ops): Remove the op.
1208 (class linux_process_target) <low_prepare_to_resume>: Declare.
1209 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1212 Update the callers below:
1214 (linux_process_target::resume_one_lwp_throw)
1215 (linux_process_target::low_prepare_to_resume)
1217 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1219 (x86_target::low_prepare_to_resume): Define.
1220 (the_low_target): Remove the op field.
1221 * linux-aarch64-low.cc (class aarch64_target)
1222 <low_prepare_to_resume>: Declare.
1223 (aarch64_target::low_prepare_to_resume): Define.
1224 (the_low_target): Remove the op field.
1225 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1227 (arm_prepare_to_resume): Turn into...
1228 (arm_target::low_prepare_to_resume): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1232 (mips_linux_prepare_to_resume): Turn into...
1233 (mips_target::low_prepare_to_resume): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-bfin-low.cc (the_low_target): Remove the op field.
1236 * linux-crisv32-low.cc (the_low_target): Ditto.
1237 * linux-m32r-low.cc (the_low_target): Ditto.
1238 * linux-m68k-low.cc (the_low_target): Ditto.
1239 * linux-ppc-low.cc (the_low_target): Ditto.
1240 * linux-s390-low.cc (the_low_target): Ditto.
1241 * linux-sh-low.cc (the_low_target): Ditto.
1242 * linux-tic6x-low.cc (the_low_target): Ditto.
1243 * linux-tile-low.cc (the_low_target): Ditto.
1244 * linux-xtensa-low.cc (the_low_target): Ditto.
1246 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1248 Turn the 'new_process', 'delete_process', 'new_thread',
1249 'delete_thread', and 'new_fork' linux target ops into methods
1250 of linux_process_target.
1252 * linux-low.h (struct linux_target_ops): Remove the ops.
1253 (class linux_process_target) <add_linux_process>
1258 <check_zombie_leaders>
1261 <low_delete_process>
1264 <low_new_fork>: Declare.
1265 * linux-low.cc (delete_lwp): Turn into...
1266 (linux_process_target::delete_lwp): ...this.
1267 (linux_process_target::low_delete_thread): Define.
1268 (linux_add_process): Turn into...
1269 (linux_process_target::add_linux_process): ...this.
1270 (linux_process_target::low_new_process): Define.
1271 (linux_process_target::low_delete_process): Define.
1272 (linux_process_target::low_new_fork): Define.
1273 (add_lwp): Turn into...
1274 (linux_process_target::add_lwp): ...this.
1275 (linux_process_target::low_new_thread): Define.
1276 (linux_attach_lwp): Turn into...
1277 (linux_process_target::attach_lwp): ...this.
1278 (linux_detach_one_lwp): Turn into...
1279 (linux_process_target::detach_one_lwp): ...this.
1280 (linux_detach_lwp_callback): Remove and inline...
1281 (linux_process_target::detach): ...here.
1282 (check_zombie_leaders): Turn into...
1283 (linux_process_target::check_zombie_leaders): ...this.
1284 (filter_exit_event): Turn into...
1285 (linux_process_target::filter_exit_event): ...this.
1287 Update the callers below.
1289 (linux_process_target::handle_extended_wait)
1290 (linux_process_target::create_inferior)
1291 (attach_proc_task_lwp_callback)
1292 (linux_process_target::attach)
1293 (linux_process_target::detach)
1294 (linux_process_target::mourn)
1295 * thread-db.cc (attach_thread)
1297 * linux-x86-low.cc (class x86_target) <low_new_process>
1298 <low_delete_process>
1301 <low_new_fork>: Declare.
1302 (x86_linux_new_process): Turn into...
1303 (x86_target::low_new_process): ...this.
1304 (x86_linux_delete_process): Turn into...
1305 (x86_target::low_delete_process): ...this.
1306 (x86_target::low_new_thread): Define.
1307 (x86_target::low_delete_thread): Define.
1308 (x86_linux_new_fork): Turn into...
1309 (x86_target::low_new_fork): ...this.
1310 (the_low_target): Remove the op fields.
1311 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1312 <low_delete_process>
1315 <low_new_fork>: Declare.
1316 (aarch64_linux_new_process): Turn into...
1317 (aarch64_target::low_new_process): ...this.
1318 (aarch64_linux_delete_process): Turn into...
1319 (aarch64_target::low_delete_process): ...this.
1320 (aarch64_target::low_new_thread): Define.
1321 (aarch64_target::low_delete_thread): Define.
1322 (aarch64_linux_new_fork): Turn into...
1323 (aarch64_target::low_new_fork): ...this.
1324 (the_low_target): Remove the op fields.
1325 * linux-arm-low.cc (class arm_target) <low_new_process>
1326 <low_delete_process>
1329 <low_new_fork>: Declare.
1330 (arm_new_process): Turn into...
1331 (arm_target::low_new_process): ...this.
1332 (arm_delete_process): Turn into...
1333 (arm_target::low_delete_process): ...this.
1334 (arm_new_thread): Turn into...
1335 (arm_target::low_new_thread): ...this.
1336 (arm_delete_thread): Turn into...
1337 (arm_target::low_delete_thread): ...this.
1338 (arm_new_fork): Turn into...
1339 (arm_target::low_new_fork): ...this.
1340 (the_low_target): Remove the op fields.
1341 * linux-mips-low.cc (class mips_target) <low_new_process>
1342 <low_delete_process>
1345 <low_new_fork>: Declare.
1346 (mips_linux_new_process): Turn into...
1347 (mips_target::low_new_process): ...this.
1348 (mips_linux_delete_process): Turn into...
1349 (mips_target::low_delete_process): ...this.
1350 (mips_linux_new_thread): Turn into...
1351 (mips_target::low_new_thread): ...this.
1352 (mips_linux_delete_thread): Turn into...
1353 (mips_target::low_delete_thread): ...this.
1354 (mips_linux_new_fork): Turn into...
1355 (mips_target::low_new_fork): ...this.
1356 (the_low_target): Remove the op fields.
1357 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1358 * linux-crisv32-low.cc (the_low_target): Ditto.
1359 * linux-m32r-low.cc (the_low_target): Ditto.
1360 * linux-m68k-low.cc (the_low_target): Ditto.
1361 * linux-ppc-low.cc (the_low_target): Ditto.
1362 * linux-s390-low.cc (the_low_target): Ditto.
1363 * linux-sh-low.cc (the_low_target): Ditto.
1364 * linux-tic6x-low.cc (the_low_target): Ditto.
1365 * linux-tile-low.cc (the_low_target): Ditto.
1366 * linux-xtensa-low.cc (the_low_target): Ditto.
1368 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1370 Turn the 'siginfo_fixup' linux target op into a method of
1371 linux_process_target.
1373 * linux-low.h (struct linux_target_ops): Remove the op.
1374 (class linux_process_target) <siginfo_fixup>
1375 <low_siginfo_fixup>: Declare.
1376 * linux-low.cc (siginfo_fixup): Turn into...
1377 (linux_process_target::siginfo_fixup): ...this.
1378 (linux_process_target::low_siginfo_fixup): Define.
1379 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1380 (x86_siginfo_fixup): Turn into...
1381 (x86_target::low_siginfo_fixup): ...this.
1382 (the_low_target): Remove the op field.
1383 * linux-aarch64-low.cc (class aarch64_target):
1384 <low_siginfo_fixup>: Declare.
1385 (aarch64_linux_siginfo_fixup): Turn into...
1386 (aarch64_target::low_siginfo_fixup): ...this.
1387 (the_low_target): Remove the op field.
1388 * linux-arm-low.cc (the_low_target): Remove the op field.
1389 * linux-bfin-low.cc (the_low_target): Ditto.
1390 * linux-crisv32-low.cc (the_low_target): Ditto.
1391 * linux-m32r-low.cc (the_low_target): Ditto.
1392 * linux-m68k-low.cc (the_low_target): Ditto.
1393 * linux-mips-low.cc (the_low_target): Ditto.
1394 * linux-ppc-low.cc (the_low_target): Ditto.
1395 * linux-s390-low.cc (the_low_target): Ditto.
1396 * linux-sh-low.cc (the_low_target): Ditto.
1397 * linux-tic6x-low.cc (the_low_target): Ditto.
1398 * linux-tile-low.cc (the_low_target): Ditto.
1399 * linux-xtensa-low.cc (the_low_target): Ditto.
1401 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1403 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1404 linux target ops into methods of linux_process_target.
1406 * linux-low.h (struct linux_target_ops): Remove the ops.
1407 (class linux_process_target) <low_collect_ptrace_register>
1408 <low_store_ptrace_register>: Declare.
1409 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1410 (linux_process_target::low_supply_ptrace_register): Define.
1412 Update the callers below.
1414 (linux_process_target::fetch_register)
1415 (linux_process_target::store_register)
1417 * linux-x86-low.cc (the_low_target): Remove the op fields.
1418 * linux-aarch64-low.cc (the_low_target): Ditto.
1419 * linux-arm-low.cc (the_low_target): Ditto.
1420 * linux-bfin-low.cc (the_low_target): Ditto.
1421 * linux-crisv32-low.cc (the_low_target): Ditto.
1422 * linux-m32r-low.cc (the_low_target): Ditto.
1423 * linux-m68k-low.cc (the_low_target): Ditto.
1424 * linux-sh-low.cc (the_low_target): Ditto.
1425 * linux-sparc-low.cc (the_low_target): Ditto.
1426 * linux-tic6x-low.cc (the_low_target): Ditto.
1427 * linux-tile-low.cc (the_low_target): Ditto.
1428 * linux-xtensa-low.cc (the_low_target): Ditto.
1429 * linux-mips-low.cc (class mips_target)
1430 <low_collect_ptrace_register>
1431 <low_supply_ptrace_register>: Declare.
1432 (mips_collect_ptrace_register): Turn into ...
1433 (mips_target::low_collect_ptrace_register): ...this.
1434 (mips_supply_ptrace_register): Turn into...
1435 (mips_target::low_supply_ptrace_register): ...this.
1436 (the_low_target): Remove the op fields.
1437 * linux-ppc-low.cc (class ppc_target)
1438 <low_collect_ptrace_register>
1439 <low_supply_ptrace_register>: Declare.
1440 (ppc_collect_ptrace_register): Turn into ...
1441 (ppc_target::low_collect_ptrace_register): ...this.
1442 (ppc_supply_ptrace_register): Turn into ...
1443 (ppc_target::low_supply_ptrace_register): ...this.
1444 (ppc_fill_gregset): Update for the calls to
1445 low_collect_ptrace_register.
1446 (the_low_target): Remove the op fields.
1447 * linux-s390-low.cc (class s390_target)
1448 <low_collect_ptrace_register>
1449 <low_supply_ptrace_register>: Declare.
1450 (s390_collect_ptrace_register): Turn into ...
1451 (s390_target::low_collect_ptrace_register): ...this.
1452 (s390_supply_ptrace_register): Turn into ...
1453 (s390_target::low_supply_ptrace_register): ...this.
1454 (s390_fill_gregset): Update for the calls to
1455 low_collect_ptrace_register.
1456 (the_low_target): Remove the op fields.
1458 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1460 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1461 target ops into methods of linux_process_target.
1463 * linux-low.h (struct linux_target_ops): Remove the ops.
1464 (class linux_process_target) <check_stopped_by_watchpoint>
1465 <low_stopped_by_watchpoint>
1466 <low_stopped_data_address>: Declare.
1467 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1468 (linux_process_target::check_stopped_by_watchpoint): ...this.
1469 (linux_process_target::low_stopped_by_watchpoint): Define.
1470 (linux_process_target::low_stopped_data_address): Define.
1471 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1472 <low_stopped_data_address>: Declare.
1473 (x86_stopped_by_watchpoint): Turn into...
1474 (x86_target::low_stopped_by_watchpoint): ...this.
1475 (x86_stopped_data_address): Turn into...
1476 (x86_target::low_stopped_data_address): ...this.
1477 (the_low_target): Remove the op fields.
1478 * linux-aarch64-low.cc (class aarch64_target)
1479 <low_stopped_by_watchpoint>
1480 <low_stopped_data_address>: Declare.
1481 (aarch64_stopped_by_watchpoint): Turn into...
1482 (aarch64_target::low_stopped_by_watchpoint): ...this.
1483 (aarch64_stopped_data_address): Turn into...
1484 (aarch64_target::low_stopped_data_address): ...this.
1485 (the_low_target): Remove the op fields.
1486 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1487 <low_stopped_data_address>: Declare.
1488 (arm_stopped_by_watchpoint): Turn into...
1489 (arm_target::low_stopped_by_watchpoint): ...this.
1490 (arm_stopped_data_address): Turn into...
1491 (arm_target::low_stopped_data_address): ...this.
1492 (the_low_target): Remove the op fields.
1493 * linux-crisv32-low.cc (class crisv32_target)
1494 <low_stopped_by_watchpoint>
1495 <low_stopped_data_address>: Declare.
1496 (cris_stopped_by_watchpoint): Turn into...
1497 (crisv32_target::low_stopped_by_watchpoint): ...this.
1498 (cris_stopped_data_address): Turn into...
1499 (crisv32_target::low_stopped_data_address): ...this.
1500 (the_low_target): Remove the op fields.
1501 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1502 <low_stopped_data_address>: Declare.
1503 (mips_stopped_by_watchpoint): Turn into...
1504 (mips_target::low_stopped_by_watchpoint): ...this.
1505 (mips_stopped_data_address): Turn into...
1506 (mips_target::low_stopped_data_address): ...this.
1507 (the_low_target): Remove the op fields.
1508 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1509 * linux-m32r-low.cc (the_low_target): Ditto.
1510 * linux-m68k-low.cc (the_low_target): Ditto.
1511 * linux-ppc-low.cc (the_low_target): Ditto.
1512 * linux-s390-low.cc (the_low_target): Ditto.
1513 * linux-sh-low.cc (the_low_target): Ditto.
1514 * linux-sparc-low.cc (the_low_target): Ditto.
1515 * linux-tic6x-low.cc (the_low_target): Ditto.
1516 * linux-tile-low.cc (the_low_target): Ditto.
1517 * linux-xtensa-low.cc (the_low_target): Ditto.
1519 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1521 Turn the 'insert_point' and 'remove_point' linux target ops into
1522 methods of linux_process_target.
1524 * linux-low.h (struct linux_target_ops): Remove the ops.
1525 (class linux_process_target) <low_insert_point>
1526 <low_remove_point>: Declare.
1527 * linux-low.cc (linux_process_target::low_insert_point)
1528 (linux_process_target::low_remove_point): Define.
1529 (linux_process_target::insert_point)
1530 (linux_process_target::remove_point): Update for calls to
1531 low_insert_point and low_remove_point.
1532 * linux-x86-low.cc (class x86_target) <low_insert_point>
1533 <low_remove_point>: Declare.
1534 (x86_insert_point): Turn into...
1535 (x86_target::low_insert_point): ...this.
1536 (x86_remove_point): Turn into...
1537 (x86_target::low_remove_point): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1540 <low_remove_point>: Declare.
1541 (aarch64_insert_point): Turn into...
1542 (aarch64_target::low_insert_point): ...this.
1543 (aarch64_remove_point): Turn into...
1544 (aarch64_target::low_remove_point): ...this.
1545 (the_low_target): Remove the op fields.
1546 * linux-arm-low.cc (class arm_target) <low_insert_point>
1547 <low_remove_point>: Declare.
1548 (arm_insert_point): Turn into...
1549 (arm_target::low_insert_point): ...this.
1550 (arm_remove_point): Turn into...
1551 (arm_target::low_remove_point): ...this.
1552 (the_low_target): Remove the op fields.
1553 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1554 <low_remove_point>: Declare.
1555 (crisv32_insert_point): Turn into...
1556 (crisv32_target::low_insert_point): ...this.
1557 (crisv32_remove_point): Turn into...
1558 (crisv32_target::low_remove_point): ...this.
1559 (the_low_target): Remove the op fields.
1560 * linux-mips-low.cc (class mips_target) <low_insert_point>
1561 <low_remove_point>: Declare.
1562 (mips_insert_point): Turn into...
1563 (mips_target::low_insert_point): ...this.
1564 (mips_remove_point): Turn into...
1565 (mips_target::low_remove_point): ...this.
1566 (the_low_target): Remove the op fields.
1567 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1568 <low_remove_point>: Declare.
1569 (ppc_insert_point): Turn into...
1570 (ppc_target::low_insert_point): ...this.
1571 (ppc_remove_point): Turn into...
1572 (ppc_target::low_remove_point): ...this.
1573 (the_low_target): Remove the op fields.
1574 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1575 * linux-m32r-low.cc (the_low_target): Ditto.
1576 * linux-m68k-low.cc (the_low_target): Ditto.
1577 * linux-s390-low.cc (the_low_target): Ditto.
1578 * linux-sh-low.cc (the_low_target): Ditto.
1579 * linux-sparc-low.cc (the_low_target): Ditto.
1580 * linux-tic6x-low.cc (the_low_target): Ditto.
1581 * linux-tile-low.cc (the_low_target): Ditto.
1582 * linux-xtensa-low.cc (the_low_target): Ditto.
1584 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1586 Remove the 'supports_z_point_type' linux target op and let the
1587 concrete linux target define it by overriding the op declared in
1588 process_stratum_target.
1590 * linux-low.cc (linux_process_target::supports_z_point_type):
1592 * linux-low.h (struct linux_target_ops): Remove the op.
1593 (class linux_process_target) <supports_z_point_type>: Remove.
1594 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1596 (x86_supports_z_point_type): Turn into...
1597 (x86_target::supports_z_point_type): ...this.
1598 (the_low_target): Remove the op field.
1599 * linux-aarch64-low.cc (class aarch64_target)
1600 <supports_z_point_type>: Declare.
1601 (aarch64_supports_z_point_type): Turn into...
1602 (aarch64_target::supports_z_point_type): ...this.
1603 (the_low_target): Remove the op field.
1604 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1606 (arm_supports_z_point_type): Turn into...
1607 (arm_target::supports_z_point_type): ...this.
1608 (the_low_target): Remove the op field.
1609 * linux-crisv32-low.cc (class crisv32_target)
1610 <supports_z_point_type>: Declare.
1611 (cris_supports_z_point_type): Turn into...
1612 (crisv32_target::supports_z_point_type): ...this.
1613 (the_low_target): Remove the op field.
1614 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1616 (mips_supports_z_point_type): Turn into...
1617 (mips_target::supports_z_point_type): ...this.
1618 (the_low_target): Remove the op field.
1619 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1621 (ppc_supports_z_point_type): Turn into...
1622 (ppc_target::supports_z_point_type): ...this.
1623 (the_low_target): Remove the op field.
1624 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1626 (s390_supports_z_point_type): Turn into...
1627 (s390_target::supports_z_point_type): ...this.
1628 (the_low_target): Remove the op field.
1629 * linux-bfin-low.cc (the_low_target): Remove the op field.
1630 * linux-m32r-low.cc (the_low_target): Ditto.
1631 * linux-m68k-low.cc (the_low_target): Ditto.
1632 * linux-sh-low.cc (the_low_target): Ditto.
1633 * linux-sparc-low.cc (the_low_target): Ditto.
1634 * linux-tic6x-low.cc (the_low_target): Ditto.
1635 * linux-tile-low.cc (the_low_target): Ditto.
1636 * linux-xtensa-low.cc (the_low_target): Ditto.
1638 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1640 Turn the 'breakpoint_at' linux target op into a method of
1641 linux_process_target.
1643 * linux-low.h (struct linux_target_ops): Remove the op.
1644 (class linux_process_target) <low_breakpoint_at>: Declare.
1646 Update the callers below:
1648 * linux-low.cc (linux_process_target::save_stop_reason)
1649 (linux_process_target::thread_still_has_status_pending)
1650 (linux_process_target::wait_1)
1652 * linux-x86-low.cc (class x86_target)
1653 <low_breakpoint_at>: Declare.
1654 (x86_breakpoint_at): Turn into...
1655 (x86_target::low_breakpoint_at): ...this.
1656 (the_low_target): Remove the op field.
1657 * linux-aarch64-low.cc (class aarch64_target)
1658 <low_breakpoint_at>: Declare.
1659 (aarch64_breakpoint_at): Turn into...
1660 (aarch64_target::low_breakpoint_at): ...this.
1661 (the_low_target): Remove the op field.
1662 * linux-arm-low.cc (class arm_target)
1663 <low_breakpoint_at>: Declare.
1664 (arm_target::low_breakpoint_at): Define.
1665 (the_low_target): Remove the op field.
1666 * linux-bfin-low.cc (class bfin_target)
1667 <low_breakpoint_at>: Declare.
1668 (bfin_breakpoint_at): Turn into...
1669 (bfin_target::low_breakpoint_at): ...this.
1670 (the_low_target): Remove the op field.
1671 * linux-cris-low.cc (class cris_target)
1672 <low_breakpoint_at>: Declare.
1673 (cris_breakpoint_at): Turn into...
1674 (cris_target::low_breakpoint_at): ...this.
1675 (the_low_target): Remove the op field.
1676 * linux-crisv32-low.cc (class crisv32_target)
1677 <low_breakpoint_at>: Declare.
1678 (crisv32_breakpoint_at): Turn into...
1679 (crisv32_target::low_breakpoint_at): ...this.
1680 (the_low_target): Remove the op field.
1681 * linux-ia64-low.cc (class ia64_target)
1682 <low_breakpoint_at>: Declare.
1683 (ia64_target::low_breakpoint_at): Define.
1684 * linux-m32r-low.cc (class m32r_target)
1685 <low_breakpoint_at>: Declare.
1686 (m32r_breakpoint_at): Turn into...
1687 (m32r_target::low_breakpoint_at): ...this.
1688 (the_low_target): Remove the op field.
1689 * linux-m68k-low.cc (class m68k_target)
1690 <low_breakpoint_at>: Declare.
1691 (m68k_breakpoint_at): Turn into...
1692 (m68k_target::low_breakpoint_at): ...this.
1693 (the_low_target): Remove the op field.
1694 * linux-mips-low.cc (class mips_target)
1695 <low_breakpoint_at>: Declare.
1696 (mips_breakpoint_at): Turn into...
1697 (mips_target::low_breakpoint_at): ...this.
1698 (the_low_target): Remove the op field.
1699 * linux-nios2-low.cc (class nios2_target)
1700 <low_breakpoint_at>: Declare.
1701 (nios2_breakpoint_at): Turn into...
1702 (nios2_target::low_breakpoint_at): ...this.
1703 (the_low_target): Remove the op field.
1704 * linux-ppc-low.cc (class ppc_target)
1705 <low_breakpoint_at>: Declare.
1706 (ppc_breakpoint_at): Turn into...
1707 (ppc_target::low_breakpoint_at): ...this.
1708 (the_low_target): Remove the op field.
1709 * linux-riscv-low.cc (class riscv_target)
1710 <low_breakpoint_at>: Declare.
1711 (riscv_breakpoint_at): Turn into...
1712 (riscv_target::low_breakpoint_at): ...this.
1713 (the_low_target): Remove the op field.
1714 * linux-s390-low.cc (class s390_target)
1715 <low_breakpoint_at>: Declare.
1716 (s390_breakpoint_at): Turn into...
1717 (s390_target::low_breakpoint_at): ...this.
1718 (the_low_target): Remove the op field.
1719 * linux-sh-low.cc (class sh_target)
1720 <low_breakpoint_at>: Declare.
1721 (sh_breakpoint_at): Turn into...
1722 (sh_target::low_breakpoint_at): ...this.
1723 (the_low_target): Remove the op field.
1724 * linux-sparc-low.cc (class sparc_target)
1725 <low_breakpoint_at>: Declare.
1726 (sparc_breakpoint_at): Turn into...
1727 (sparc_target::low_breakpoint_at): ...this.
1728 (the_low_target): Remove the op field.
1729 * linux-tic6x-low.cc (class tic6x_target)
1730 <low_breakpoint_at>: Declare.
1731 (tic6x_breakpoint_at): Turn into...
1732 (tic6x_target::low_breakpoint_at): ...this.
1733 (the_low_target): Remove the op field.
1734 * linux-tile-low.cc (class tile_target)
1735 <low_breakpoint_at>: Declare.
1736 (tile_breakpoint_at): Turn into...
1737 (tile_target::low_breakpoint_at): ...this.
1738 (the_low_target): Remove the op field.
1739 * linux-xtensa-low.cc (class xtensa_target)
1740 <low_breakpoint_at>: Declare.
1741 (xtensa_breakpoint_at): Turn into...
1742 (xtensa_target::low_breakpoint_at): ...this.
1743 (the_low_target): Remove the op field.
1745 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1747 Turn the 'decr_pc_after_break' linux_target_ops field into
1748 a method of linux_process_target.
1750 * linux-low.h (struct linux_target_ops)
1751 <decr_pc_after_break>: Remove.
1752 (class linux_process_target) <low_decr_pc_after_break>: New method
1754 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1755 New method implementation.
1757 Update the users below.
1759 (linux_process_target::save_stop_reason)
1760 (linux_process_target::wait_1)
1761 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1763 (x86_target::low_decr_pc_after_break): New method implementation.
1764 (the_low_target): Remove the field.
1765 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1767 (bfin_target::low_decr_pc_after_break): New method implementation.
1768 (the_low_target): Remove the field.
1769 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1771 (m68k_target::low_decr_pc_after_break): New method implementation.
1772 (the_low_target): Remove the field.
1773 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1775 (s390_target::low_decr_pc_after_break): New method implementation.
1776 (the_low_target): Remove the field.
1777 * linux-aarch64-low.cc (the_low_target): Remove the field.
1778 * linux-arm-low.cc (the_low_target): Remove the field.
1779 * linux-cris-low.cc (the_low_target): Remove the field.
1780 * linux-crisv32-low.cc (the_low_target): Remove the field.
1781 * linux-m32r-low.cc (the_low_target): Remove the field.
1782 * linux-mips-low.cc (the_low_target): Remove the field.
1783 * linux-nios2-low.cc (the_low_target): Remove the field.
1784 * linux-ppc-low.cc (the_low_target): Remove the field.
1785 * linux-riscv-low.cc (the_low_target): Remove the field.
1786 * linux-sh-low.cc (the_low_target): Remove the field.
1787 * linux-sparc-low.cc (the_low_target): Remove the field.
1788 * linux-tic6x-low.cc (the_low_target): Remove the field.
1789 * linux-tile-low.cc (the_low_target): Remove the field.
1790 * linux-xtensa-low.cc (the_low_target): Remove the field.
1792 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1794 Remove the 'supports_software_single_step' linux target op and let
1795 the concrete linux target define it by overriding the op in
1796 process_stratum_target.
1797 Turn the 'get_next_pcs' linux target op into a method of
1798 linux_process_target.
1800 * linux-low.h (struct linux_target_ops): Remove the ops.
1801 (class linux_process_target) <supports_software_single_step>:
1803 <low_get_next_pcs>: Declare.
1804 * linux-low.cc (can_software_single_step): Remove.
1805 (linux_process_target::low_get_next_pcs): Define.
1806 (linux_process_target::supports_software_single_step): Remove.
1808 Update the callers below.
1810 (linux_process_target::handle_extended_wait)
1811 (linux_process_target::wait_1)
1812 (linux_process_target::install_software_single_step_breakpoints)
1813 (linux_process_target::single_step)
1814 (linux_process_target::thread_needs_step_over)
1815 (linux_process_target::proceed_one_lwp)
1816 (linux_process_target::supports_range_stepping)
1818 * linux-x86-low.cc (the_low_target): Remove the op field.
1819 * linux-aarch64-low.cc (the_low_target): Ditto.
1820 * linux-bfin-low.cc (the_low_target): Ditto.
1821 * linux-cris-low.cc (the_low_target): Ditto.
1822 * linux-crisv32-low.cc (the_low_target): Ditto.
1823 * linux-m32r-low.cc (the_low_target): Ditto.
1824 * linux-m68k-low.cc (the_low_target): Ditto.
1825 * linux-mips-low.cc (the_low_target): Ditto.
1826 * linux-nios2-low.cc (the_low_target): Ditto.
1827 * linux-ppc-low.cc (the_low_target): Ditto.
1828 * linux-riscv-low.cc (the_low_target): Ditto.
1829 * linux-s390-low.cc (the_low_target): Ditto.
1830 * linux-sh-low.cc (the_low_target): Ditto.
1831 * linux-sparc-low.cc (the_low_target): Ditto.
1832 * linux-tic6x-low.cc (the_low_target): Ditto.
1833 * linux-tile-low.cc (the_low_target): Ditto.
1834 * linux-xtensa-low.cc (the_low_target): Ditto.
1835 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1836 <supports_software_single_step>: Declare.
1837 (arm_target::supports_software_single_step): Define.
1838 (arm_gdbserver_get_next_pcs): Turn into...
1839 (arm_target::low_get_next_pcs): ...this.
1840 (the_low_target): Remove the op field.
1842 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1844 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1845 the concrete linux target define it by overriding the op
1846 in process_stratum_target.
1848 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1850 * linux-low.h (struct linux_target_ops): Remove the op.
1851 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1852 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1854 (x86_sw_breakpoint_from_kind): Turn into...
1855 (x86_target::sw_breakpoint_from_kind): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-aarch64-low.cc (class aarch64_target)
1858 <sw_breakpoint_from_kind>: Declare.
1859 (aarch64_sw_breakpoint_from_kind): Turn into...
1860 (aarch64_target::sw_breakpoint_from_kind): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1864 (arm_target::sw_breakpoint_from_kind): Define.
1865 (the_low_target): Remove the op field.
1866 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1868 (bfin_sw_breakpoint_from_kind): Turn into...
1869 (bfin_target::sw_breakpoint_from_kind): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1873 (cris_sw_breakpoint_from_kind): Turn into...
1874 (cris_target::sw_breakpoint_from_kind): ...this.
1875 (the_low_target): Remove the op field.
1876 * linux-crisv32-low.cc (class crisv32_target)
1877 <sw_breakpoint_from_kind>: Declare.
1878 (cris_sw_breakpoint_from_kind): Turn into...
1879 (crisv32_target::sw_breakpoint_from_kind): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1883 (ia64_target::sw_breakpoint_from_kind): Define.
1884 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1886 (m32r_sw_breakpoint_from_kind): Turn into...
1887 (m32r_target::sw_breakpoint_from_kind): ...this.
1888 (the_low_target): Remove the op field.
1889 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1891 (m68k_sw_breakpoint_from_kind): Turn into...
1892 (m68k_target::sw_breakpoint_from_kind): ...this.
1893 (the_low_target): Remove the op field.
1894 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1896 (mips_sw_breakpoint_from_kind): Turn into...
1897 (mips_target::sw_breakpoint_from_kind): ...this.
1898 (the_low_target): Remove the op field.
1899 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1901 (nios2_sw_breakpoint_from_kind): Turn into...
1902 (nios2_target::sw_breakpoint_from_kind): ...this.
1903 (the_low_target): Remove the op field.
1904 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1906 (ppc_sw_breakpoint_from_kind): Turn into...
1907 (ppc_target::sw_breakpoint_from_kind): ...this.
1908 (the_low_target): Remove the op field.
1909 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1911 (riscv_sw_breakpoint_from_kind): Turn into...
1912 (riscv_target::sw_breakpoint_from_kind): ...this.
1913 (the_low_target): Remove the op field.
1914 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1916 (s390_sw_breakpoint_from_kind): Turn into...
1917 (s390_target::sw_breakpoint_from_kind): ...this.
1918 (the_low_target): Remove the op field.
1919 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1921 (sh_sw_breakpoint_from_kind): Turn into...
1922 (sh_target::sw_breakpoint_from_kind): ...this.
1923 (the_low_target): Remove the op field.
1924 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1926 (sparc_sw_breakpoint_from_kind): Turn into...
1927 (sparc_target::sw_breakpoint_from_kind): ...this.
1928 (the_low_target): Remove the op field.
1929 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1931 (tic6x_sw_breakpoint_from_kind): Turn into...
1932 (tic6x_target::sw_breakpoint_from_kind): ...this.
1933 (the_low_target): Remove the op field.
1934 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1936 (tile_sw_breakpoint_from_kind): Turn into...
1937 (tile_target::sw_breakpoint_from_kind): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-xtensa-low.cc (class xtensa_target)
1940 <sw_breakpoint_from_kind>: Declare.
1941 (xtensa_sw_breakpoint_from_kind): Turn into...
1942 (xtensa_target::sw_breakpoint_from_kind): ...this.
1943 (the_low_target): Remove the op field.
1945 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1947 Remove the 'breakpoint_kind_from_pc' and
1948 'breakpoint_kind_from_current_state' linux target ops, and let the
1949 concrete linux target define them by overriding the ops of
1950 process_stratum_target.
1952 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1954 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1955 * linux-low.h (struct linux_target_ops): Remove ops.
1956 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1957 <breakpoint_kind_from_current_state>: Remove.
1958 * linux-x86-low.cc (the_low_target): Remove the op fields.
1959 * linux-bfin-low.cc (the_low_target): Ditto.
1960 * linux-cris-low.cc (the_low_target): Ditto.
1961 * linux-crisv32-low.cc (the_low_target): Ditto.
1962 * linux-m32r-low.cc (the_low_target): Ditto.
1963 * linux-m68k-low.cc (the_low_target): Ditto.
1964 * linux-mips-low.cc (the_low_target): Ditto.
1965 * linux-nios2-low.cc (the_low_target): Ditto.
1966 * linux-ppc-low.cc (the_low_target): Ditto.
1967 * linux-s390-low.cc (the_low_target): Ditto.
1968 * linux-sh-low.cc (the_low_target): Ditto.
1969 * linux-sparc-low.cc (the_low_target): Ditto.
1970 * linux-tic6x-low.cc (the_low_target): Ditto.
1971 * linux-tile-low.cc (the_low_target): Ditto.
1972 * linux-xtensa-low.cc (the_low_target): Ditto.
1973 * linux-aarch64-low.cc (class aarch64_target)
1974 <breakpoint_kind_from_pc>
1975 <breakpoint_kind_from_current_state>: Declare.
1976 (aarch64_breakpoint_kind_from_pc): Turn into...
1977 (aarch64_target::breakpoint_kind_from_pc): ...this.
1978 (aarch64_breakpoint_kind_from_current_state): Turn into...
1979 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1980 (the_low_target): Remove the op fields.
1981 * linux-arm-low.cc (class arm_target):
1982 <breakpoint_kind_from_pc>
1983 <breakpoint_kind_from_current_state>: Declare.
1984 (arm_target::breakpoint_kind_from_pc): Define.
1985 (arm_target::breakpoint_kind_from_current_state): Define.
1986 (the_low_target): Remove the op fields.
1987 * linux-riscv-low.cc (class riscv_target):
1988 <breakpoint_kind_from_pc>: Declare.
1989 (riscv_breakpoint_kind_from_pc): Turn into...
1990 (riscv_target::breakpoint_kind_from_pc): ...this.
1991 (the_low_target): Remove the op fields.
1993 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1995 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1996 of linux_process_target.
1998 * linux-low.h (struct linux_target_ops): Remove the ops.
1999 (class linux_process_target) <low_supports_breakpoints>
2001 <low_set_pc>: Declare.
2002 * linux-low.cc (supports_breakpoints): Turn into...
2003 (linux_process_target::low_supports_breakpoints): ...this.
2004 (linux_process_target::low_get_pc): Define.
2005 (linux_process_target::low_set_pc): Define.
2007 Update the callers below.
2009 (linux_process_target::get_pc)
2010 (linux_process_target::save_stop_reason)
2011 (linux_process_target::maybe_move_out_of_jump_pad)
2012 (linux_process_target::wait_1)
2013 (linux_process_target::resume_one_lwp_throw)
2014 (linux_process_target::resume)
2015 (linux_process_target::proceed_all_lwps)
2016 (linux_process_target::read_pc)
2017 (linux_process_target::write_pc)
2019 * linux-x86-low.cc (class linux_process_target)
2020 <low_supports_breakpoints>
2022 <low_set_pc>: Declare.
2023 (x86_target::low_supports_breakpoints): Define.
2024 (x86_get_pc): Turn into...
2025 (x86_target::low_get_pc): ...this.
2026 (x86_set_pc): Turn into...
2027 (x86_target::low_set_pc): ...this.
2028 (the_low_target): Remove the op fields.
2029 * linux-arm-low.cc (class arm_target)
2030 <low_supports_breakpoints>
2032 <low_set_pc>: Declare.
2033 (arm_target::low_supports_breakpoints)
2034 (arm_target::low_get_pc)
2035 (arm_target::low_set_pc): Define.
2036 (the_low_target): Remove the op fields.
2037 * linux-bfin-low.cc (class bfin_target)
2038 <low_supports_breakpoints>
2040 <low_set_pc>: Declare.
2041 (bfin_target::low_supports_breakpoints)
2042 (bfin_target::low_get_pc)
2043 (bfin_target::low_set_pc): Define.
2044 (the_low_target): Remove the op fields.
2045 * linux-cris-low.cc (class cris_target)
2046 <low_supports_breakpoints>
2048 <low_set_pc>: Declare.
2049 (cris_target::low_supports_breakpoints)
2050 (cris_target::low_get_pc)
2051 (cris_target::low_set_pc): Define.
2052 (the_low_target): Remove the op fields.
2053 * linux-crisv32-low.cc (class crisv32_target)
2054 <low_supports_breakpoints>
2056 <low_set_pc>: Declare.
2057 (crisv32_target::low_supports_breakpoints)
2058 (crisv32_target::low_get_pc)
2059 (crisv32_target::low_set_pc): Define.
2060 (the_low_target): Remove the op fields.
2061 * linux-m32r-low.cc (class m32r_target)
2062 <low_supports_breakpoints>
2064 <low_set_pc>: Declare.
2065 (m32r_target::low_supports_breakpoints)
2066 (m32r_target::low_get_pc)
2067 (m32r_target::low_set_pc): Define.
2068 (the_low_target): Remove the op fields.
2069 * linux-m68k-low.cc (class m68k_target)
2070 <low_supports_breakpoints>
2072 <low_set_pc>: Declare.
2073 (m68k_target::low_supports_breakpoints)
2074 (m68k_target::low_get_pc)
2075 (m68k_target::low_set_pc): Define.
2076 (the_low_target): Remove the op fields.
2077 * linux-nios2-low.cc (class nios2_target)
2078 <low_supports_breakpoints>
2080 <low_set_pc>: Declare.
2081 (nios2_target::low_supports_breakpoints)
2082 (nios2_target::low_get_pc)
2083 (nios2_target::low_set_pc): Define.
2084 (the_low_target): Remove the op fields.
2085 * linux-sh-low.cc (class sh_target)
2086 <low_supports_breakpoints>
2088 <low_set_pc>: Declare.
2089 (sh_target::low_supports_breakpoints)
2090 (sh_target::low_get_pc)
2091 (sh_target::low_set_pc): Define.
2092 (the_low_target): Remove the op fields.
2093 * linux-xtensa-low.cc (class xtensa_target)
2094 <low_supports_breakpoints>
2096 <low_set_pc>: Declare.
2097 (xtensa_target::low_supports_breakpoints)
2098 (xtensa_target::low_get_pc)
2099 (xtensa_target::low_set_pc): Define.
2100 (the_low_target): Remove the op fields.
2101 * linux-sparc-low.cc (class sparc_target)
2102 <low_supports_breakpoints>
2103 <low_get_pc>: Declare.
2104 (sparc_target::low_supports_breakpoints)
2105 (sparc_target::low_get_pc): Define.
2106 (the_low_target): Remove the op fields.
2107 * linux-tile-low.cc (class tile_target)
2108 <low_supports_breakpoints>
2110 <low_set_pc>: Declare.
2111 (tile_target::low_supports_breakpoints)
2112 (tile_target::low_get_pc)
2113 (tile_target::low_set_pc): Define.
2114 (the_low_target): Remove the op fields.
2115 * linux-aarch64-low.cc (class aarch64_target)
2116 <low_supports_breakpoints>
2118 <low_set_pc>: Declare.
2119 (aarch64_target::low_supports_breakpoints): Define.
2120 (aarch64_get_pc): Turn into...
2121 (aarch64_target::low_get_pc): ...this.
2122 (aarch64_set_pc): Turn into...
2123 (aarch64_target::low_set_pc): ...this.
2124 (the_low_target): Remove the op fields.
2125 * linux-mips-low.cc (class mips_target)
2126 <low_supports_breakpoints>
2128 <low_set_pc>: Declare.
2129 (mips_target::low_supports_breakpoints): Define.
2130 (mips_get_pc): Turn into...
2131 (mips_target::low_get_pc): ...this.
2132 (mips_set_pc): Turn into...
2133 (mips_target::low_set_pc): ...this.
2134 (the_low_target): Remove the op fields.
2135 * linux-ppc-low.cc (class ppc_target)
2136 <low_supports_breakpoints>
2138 <low_set_pc>: Declare.
2139 (ppc_target::low_supports_breakpoints): Define.
2140 (ppc_get_pc): Turn into...
2141 (ppc_target::low_get_pc): ...this.
2142 (ppc_set_pc): Turn into...
2143 (ppc_target::low_set_pc): ...this.
2144 (the_low_target): Remove the op fields.
2145 * linux-riscv-low.cc (class riscv_target)
2146 <low_supports_breakpoints>
2148 <low_set_pc>: Declare.
2149 (riscv_target::low_supports_breakpoints): Define.
2150 (riscv_get_pc): Turn into...
2151 (riscv_target::low_get_pc): ...this.
2152 (riscv_set_pc): Turn into...
2153 (riscv_target::low_set_pc): ...this.
2154 (the_low_target): Remove the op fields.
2155 * linux-s390-low.cc (class s390_target)
2156 <low_supports_breakpoints>
2158 <low_set_pc>: Declare.
2159 (s390_target::low_supports_breakpoints): Define.
2160 (s390_get_pc): Turn into...
2161 (s390_target::low_get_pc): ...this.
2162 (s390_set_pc): Turn into...
2163 (s390_target::low_set_pc): ...this.
2164 (the_low_target): Remove the op fields.
2165 * linux-tic6x-low.cc (class tic6x_target)
2166 <low_supports_breakpoints>
2168 <low_set_pc>: Declare.
2169 (tic6x_target::low_supports_breakpoints): Define.
2170 (tic6x_get_pc): Turn into...
2171 (tic6x_target::low_get_pc): ...this.
2172 (tic6x_set_pc): Turn into...
2173 (tic6x_target::low_set_pc): ...this.
2174 (the_low_target): Remove the op fields.
2176 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2178 Turn some more static methods in linux-low into private methods
2179 of linux_process_target.
2181 * linux-low.cc (get_pc): Turn into...
2182 (linux_process_target::get_pc): ...this.
2183 (save_stop_reason): Turn into...
2184 (linux_process_target::save_stop_reason): ...this.
2185 (thread_still_has_status_pending_p): Turn into...
2186 (linux_process_target::thread_still_has_status_pending): ...this.
2187 (status_pending_p_callback): Turn into...
2188 (linux_process_target::status_pending_p_callback): ...this.
2189 (resume_stopped_resumed_lwps): Turn into...
2190 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2191 (install_software_single_step_breakpoints): Turn into...
2192 (linux_process_target::install_software_single_step_breakpoints):
2194 (single_step): Turn into...
2195 (linux_process_target::single_step): ...this.
2196 (linux_resume_one_lwp_throw): Turn into...
2197 (linux_process_target::resume_one_lwp_throw): ...this.
2198 (linux_resume_one_lwp): Turn into...
2199 (linux_process_target::resume_one_lwp): ...this.
2200 (resume_status_pending_p): Turn into...
2201 (linux_process_target::resume_status_pending): ...this.
2202 (need_step_over_p): Turn into...
2203 (linux_process_target::thread_needs_step_over): ...this.
2204 (linux_resume_one_thread): Turn into...
2205 (linux_process_target::resume_one_thread): ...this.
2206 (proceed_one_lwp): Turn into...
2207 (linux_process_target::proceed_one_lwp): ...this.
2208 (unsuspend_and_proceed_one_lwp): Turn into...
2209 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2211 Update the calls/references to the above functions below.
2213 (linux_process_target::handle_extended_wait)
2214 (linux_process_target::filter_event)
2215 (linux_process_target::wait_for_event_filtered)
2216 (linux_process_target::wait_1)
2217 (linux_process_target::move_out_of_jump_pad)
2218 (linux_process_target::start_step_over)
2219 (linux_process_target::resume)
2220 (linux_process_target::proceed_all_lwps)
2221 (regsets_store_inferior_registers)
2222 (linux_process_target::store_register)
2224 * linux-low.h (class linux_process_target)
2227 <thread_still_has_status_pending>
2228 <status_pending_p_callback>
2229 <resume_stopped_resumed_lwps>
2230 <install_software_single_step_breakpoints>
2232 <resume_one_lwp_throw>
2234 <resume_status_pending>
2235 <thread_needs_step_over>
2238 <unsuspend_and_proceed_one_lwp>: Declare.
2240 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2242 Turn the 'fetch_register' linux target op into a method of
2243 linux_process_target.
2245 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2246 (class linux_process_target) <low_fetch_register>: Declare.
2247 * linux-x86-low.cc (the_low_target)
2248 * linux-aarch64-low.cc (the_low_target)
2249 * linux-arm-low.cc (the_low_target)
2250 * linux-bfin-low.cc (the_low_target)
2251 * linux-cris-low.cc (the_low_target)
2252 * linux-crisv32-low.cc (the_low_target)
2253 * linux-m32r-low.cc (the_low_target)
2254 * linux-m68k-low.cc (the_low_target)
2255 * linux-nios2-low.cc (the_low_target)
2256 * linux-ppc-low.cc (the_low_target)
2257 * linux-s390-low.cc (the_low_target)
2258 * linux-sh-low.cc (the_low_target)
2259 * linux-sparc-low.cc (the_low_target)
2260 * linux-tic6x-low.cc (the_low_target)
2261 * linux-tile-low.cc (the_low_target)
2262 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2263 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2265 (ia64_fetch_register): Turn into...
2266 (ia64_target::low_fetch_register): ...this.
2267 (the_low_target): Remove the op field.
2268 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2270 (mips_fetch_register): Turn into...
2271 (mips_target::low_fetch_register): ...this.
2272 (the_low_target): Remove the op field.
2273 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2275 (riscv_fetch_register): Turn into...
2276 (riscv_target::low_fetch_register): ...this.
2277 (the_low_target): Remove the op field.
2279 Update the callers below.
2281 * linux-low.cc (linux_process_target::fetch_registers)
2282 (linux_process_target::low_fetch_register)
2284 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2286 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2287 linux target ops into methods of linux_process_target.
2289 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2290 (class linux_process_target) <fetch_register>
2292 <usr_fetch_inferior_registers>
2293 <usr_store_inferior_registers>
2294 <low_cannot_fetch_register>
2295 <low_cannot_fetch_register> Declare.
2296 * linux-low.cc (fetch_register): Turn into...
2297 (linux_process_target::fetch_register): ...this.
2298 (store_register): Turn into ...
2299 (linux_process_target::store_register): ...this.
2300 (usr_fetch_inferior_registers): Turn into...
2301 (linux_process_target::usr_fetch_inferior_registers): ...this.
2302 (usr_store_inferior_registers): Turn into...
2303 (linux_process_target::usr_store_inferior_registers): ...this.
2304 * linux-x86-low.cc (class x86_target)
2305 <low_cannot_fetch_register>
2306 <low_cannot_store_register>: Declare.
2307 (x86_cannot_store_register): Turn into...
2308 (x86_target::low_cannot_store_register): ...this.
2309 (x86_cannot_fetch_register): Turn into...
2310 (x86_target::low_cannot_fetch_register): ...this.
2311 (the_low_target): Remove the target op fields.
2312 * linux-aarch64-low.cc (class aarch64_target)
2313 <low_cannot_fetch_register>
2314 <low_cannot_store_register>: Declare.
2315 (aarch64_target::low_cannot_fetch_register)
2316 (aarch64_target::low_cannot_store_register): Define.
2317 (the_low_target): Remove the op fields.
2318 * linux-arm-low.cc (class arm_target)
2319 <low_cannot_fetch_register>
2320 <low_cannot_store_register>: Declare.
2321 (arm_cannot_fetch_register): Turn into...
2322 (arm_target::low_cannot_fetch_register): ...this.
2323 (arm_cannot_store_register): Turn into...
2324 (arm_target::low_cannot_store_register): ...this.
2325 (the_low_target): Remove the op fields.
2326 * linux-bfin-low.cc (class bfin_target)
2327 <low_cannot_fetch_register>
2328 <low_cannot_store_register>: Declare.
2329 (bfin_cannot_fetch_register): Turn into...
2330 (bfin_target::low_cannot_fetch_register): ...this.
2331 (bfin_cannot_store_register): Turn into...
2332 (bfin_target::low_cannot_store_register): ...this.
2333 (the_low_target): Remove the op fields.
2334 * linux-cris-low.cc (class cris_target)
2335 <low_cannot_fetch_register>
2336 <low_cannot_store_register>: Declare.
2337 (cris_cannot_fetch_register): Turn into...
2338 (cris_target::low_cannot_fetch_register): ...this.
2339 (cris_cannot_store_register): Turn into...
2340 (cris_target::low_cannot_store_register): ...this.
2341 (the_low_target): Remove the op fields.
2342 * linux-crisv32-low.cc (class crisv32_target)
2343 <low_cannot_fetch_register>
2344 <low_cannot_store_register>: Declare.
2345 (crisv32_target::low_cannot_fetch_register)
2346 (crisv32_target::low_cannot_store_register): Define.
2347 (the_low_target): Remove the op fields.
2348 * linux-ia64-low.cc (class ia64_target)
2349 <low_cannot_fetch_register>
2350 <low_cannot_store_register>: Declare.
2351 (ia64_cannot_fetch_register): Turn into...
2352 (ia64_target::low_cannot_fetch_register): ...this.
2353 (ia64_cannot_store_register): Turn into...
2354 (ia64_target::low_cannot_store_register): ...this.
2355 (the_low_target): Remove the op fields.
2356 * linux-m32r-low.cc (class m32r_target)
2357 <low_cannot_fetch_register>
2358 <low_cannot_store_register>: Declare.
2359 (m32r_cannot_fetch_register): Turn into...
2360 (m32r_target::low_cannot_fetch_register): ...this.
2361 (m32r_cannot_store_register): Turn into...
2362 (m32r_target::low_cannot_store_register): ...this.
2363 (the_low_target): Remove the op fields.
2364 * linux-m68k-low.cc (class m68k_target)
2365 <low_cannot_fetch_register>
2366 <low_cannot_store_register>: Declare.
2367 (m68k_cannot_fetch_register): Turn into...
2368 (m68k_target::low_cannot_fetch_register): ...this.
2369 (m68k_cannot_store_register): Turn into...
2370 (m68k_target::low_cannot_store_register): ...this.
2371 (the_low_target): Remove the op fields.
2372 * linux-mips-low.cc (class mips_target)
2373 <low_cannot_fetch_register>
2374 <low_cannot_store_register>: Declare.
2375 (mips_cannot_fetch_register): Turn into...
2376 (mips_target::low_cannot_fetch_register): ...this.
2377 (mips_cannot_store_register): Turn into...
2378 (mips_target::low_cannot_store_register): ...this.
2379 (get_usrregs_info): Inline at the call sites in
2380 low_cannot_fetch_register and low_cannot_store_register,
2382 (the_low_target): Remove the op fields.
2383 * linux-nios2-low.cc (class nios2_target)
2384 <low_cannot_fetch_register>
2385 <low_cannot_store_register>: Declare.
2386 (nios2_cannot_fetch_register): Turn into...
2387 (nios2_target::low_cannot_fetch_register): ...this.
2388 (nios2_cannot_store_register): Turn into...
2389 (nios2_target::low_cannot_store_register): ...this.
2390 (the_low_target): Remove the op fields.
2391 * linux-ppc-low.cc (class ppc_target)
2392 <low_cannot_fetch_register>
2393 <low_cannot_store_register>: Declare.
2394 (ppc_cannot_fetch_register): Turn into...
2395 (ppc_target::low_cannot_fetch_register): ...this.
2396 (ppc_cannot_store_register): Turn into...
2397 (ppc_target::low_cannot_store_register): ...this.
2398 (the_low_target): Remove the op fields.
2399 * linux-riscv-low.cc (class riscv_target)
2400 <low_cannot_fetch_register>
2401 <low_cannot_store_register>: Declare.
2402 (riscv_target::low_cannot_fetch_register)
2403 (riscv_target::low_cannot_store_register): Define.
2404 (the_low_target): Remove the op fields.
2405 * linux-s390-low.cc (class s390_target)
2406 <low_cannot_fetch_register>
2407 <low_cannot_store_register>: Declare.
2408 (s390_cannot_fetch_register): Turn into...
2409 (s390_target::low_cannot_fetch_register): ...this.
2410 (s390_cannot_store_register): Turn into...
2411 (s390_target::low_cannot_store_register): ...this.
2412 (the_low_target): Remove the op fields.
2413 * linux-sh-low.cc (class sh_target)
2414 <low_cannot_fetch_register>
2415 <low_cannot_store_register>: Declare.
2416 (sh_cannot_fetch_register): Turn into...
2417 (sh_target::low_cannot_fetch_register): ...this.
2418 (sh_cannot_store_register): Turn into...
2419 (sh_target::low_cannot_store_register): ...this.
2420 (the_low_target): Remove the op fields.
2421 * linux-sparc-low.cc (class sparc_target)
2422 <low_cannot_fetch_register>
2423 <low_cannot_store_register>: Declare.
2424 (sparc_cannot_fetch_register): Turn into...
2425 (sparc_target::low_cannot_fetch_register): ...this.
2426 (sparc_cannot_store_register): Turn into...
2427 (sparc_target::low_cannot_store_register): ...this.
2428 (the_low_target): Remove the op fields.
2429 * linux-tic6x-low.cc (class tic6x_target)
2430 <low_cannot_fetch_register>
2431 <low_cannot_store_register>: Declare.
2432 (tic6x_cannot_fetch_register): Turn into...
2433 (tic6x_target::low_cannot_fetch_register): ...this.
2434 (tic6x_cannot_store_register): Turn into...
2435 (tic6x_target::low_cannot_store_register): ...this.
2436 (the_low_target): Remove the op fields.
2437 * linux-tile-low.cc (class tile_target)
2438 <low_cannot_fetch_register>
2439 <low_cannot_store_register>: Declare.
2440 (tile_cannot_fetch_register): Turn into...
2441 (tile_target::low_cannot_fetch_register): ...this.
2442 (tile_cannot_store_register): Turn into...
2443 (tile_target::low_cannot_store_register): ...this.
2444 (the_low_target): Remove the op fields.
2445 * linux-xtensa-low.cc (class xtensa_target)
2446 <low_cannot_fetch_register>
2447 <low_cannot_store_register>: Declare.
2448 (xtensa_target::low_cannot_fetch_register)
2449 (xtensa_target::low_cannot_store_register): Define.
2450 (the_low_target): Remove the op fields.
2452 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2454 Turn the 'regs_info' linux target op into a method of
2455 linux_process_target.
2457 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2458 (class linux_process_target) <get_regs_info>: Define.
2460 Update the callers below.
2462 * linux-low.cc (linux_process_target::fetch_registers)
2463 (linux_process_target::store_registers)
2464 * proc-service.cc (gregset_info)
2466 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2467 (x86_linux_regs_info): Turn into ...
2468 (x86_target::get_regs_info): ...this.
2469 (the_low_target): Remove the op field.
2470 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2472 (aarch64_regs_info): Turn into ...
2473 (aarch64_target::get_regs_info): ...this.
2474 (the_low_target): Remove the op field.
2475 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2476 (arm_regs_info): Turn into ...
2477 (arm_target::get_regs_info): ...this.
2478 (the_low_target): Remove the op field.
2479 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2480 (bfin_regs_info): Turn into ...
2481 (bfin_target::get_regs_info): ...this.
2482 (the_low_target): Remove the op field.
2483 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2484 (cris_regs_info): Turn into ...
2485 (cris_target::get_regs_info): ...this.
2486 (the_low_target): Remove the op field.
2487 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2489 (crisv32_regs_info): Turn into ...
2490 (crisv32_target::get_regs_info): ...this.
2491 (the_low_target): Remove the op field.
2492 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2493 (ia64_regs_info): Turn into ...
2494 (ia64_target::get_regs_info): ...this.
2495 (the_low_target): Remove the op field.
2496 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2497 (m32r_regs_info): Turn into ...
2498 (m32r_target::get_regs_info): ...this.
2499 (the_low_target): Remove the op field.
2500 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2501 (m68k_regs_info): Turn into ...
2502 (m68k_target::get_regs_info): ...this.
2503 (the_low_target): Remove the op field.
2504 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2505 (mips_regs_info): Turn into ...
2506 (mips_target::get_regs_info): ...this.
2507 (the_low_target): Remove the op field.
2508 (get_usrregs_info): Update the call to the op.
2509 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2510 (nios2_regs_info): Turn into ...
2511 (nios2_target::get_regs_info): ...this.
2512 (the_low_target): Remove the op field.
2513 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2514 (ppc_regs_info): Turn into ...
2515 (ppc_target::get_regs_info): ...this.
2516 (the_low_target): Remove the op field.
2517 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2518 (riscv_regs_info): Turn into ...
2519 (riscv_target::get_regs_info): ...this.
2520 (the_low_target): Remove the op field.
2521 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2522 (s390_regs_info): Turn into ...
2523 (s390_target::get_regs_info): ...this.
2524 (the_low_target): Remove the op field.
2525 (s390_collect_ptrace_register)
2526 (s390_supply_ptrace_register)
2527 (s390_fill_gregset): Update the call to the op.
2528 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2529 (sh_regs_info): Turn into ...
2530 (sh_target::get_regs_info): ...this.
2531 (the_low_target): Remove the op field.
2532 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2533 (sparc_regs_info): Turn into ...
2534 (sparc_target::get_regs_info): ...this.
2535 (the_low_target): Remove the op field.
2536 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2537 (tic6x_regs_info): Turn into ...
2538 (tic6x_target::get_regs_info): ...this.
2539 (the_low_target): Remove the op field.
2540 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2541 (tile_regs_info): Turn into ...
2542 (tile_target::get_regs_info): ...this.
2543 (the_low_target): Remove the op field.
2544 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2546 (xtensa_regs_info): Turn into ...
2547 (xtensa_target::get_regs_info): ...this.
2548 (the_low_target): Remove the op field.
2550 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2552 Turn the 'arch_setup' linux target op into a method of
2553 linux_process_target.
2555 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2556 (class linux_process_target) <arch_setup_thread>
2557 <low_arch_setup>: New declarations.
2558 * linux-low.cc (linux_arch_setup): Delete.
2559 (linux_arch_setup_thread): Turn into...
2560 (linux_process_target::arch_setup_thread): ... this.
2562 Update the callers below.
2564 (linux_process_target::handle_extended_wait)
2565 (linux_process_target::post_create_inferior)
2566 (linux_process_target::filter_event)
2568 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2570 (x86_linux_update_xmltarget): Turn into...
2571 (x86_target::update_xmltarget): ...this.
2572 (x86_linux_process_qsupported): Update the call to
2573 x86_linux_update_xmltarget.
2574 (x86_arch_setup): Turn into ...
2575 (x86_target::low_arch_setup): ...this.
2576 (the_low_target): Remove the op field.
2577 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2579 (aarch64_arch_setup): Turn into ...
2580 (aarch64_target::low_arch_setup): ...this.
2581 (the_low_target): Remove the op field.
2582 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2584 (arm_arch_setup): Turn into ...
2585 (arm_target::low_arch_setup): ...this.
2586 (the_low_target): Remove the op field.
2587 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2589 (bfin_arch_setup): Turn into ...
2590 (bfin_target::low_arch_setup): ...this.
2591 (the_low_target): Remove the op field.
2592 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2594 (cris_arch_setup): Turn into ...
2595 (cris_target::low_arch_setup): ...this.
2596 (the_low_target): Remove the op field.
2597 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2599 (crisv32_arch_setup): Turn into ...
2600 (crisv32_target::low_arch_setup): ...this.
2601 (the_low_target): Remove the op field.
2602 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2604 (ia64_arch_setup): Turn into ...
2605 (ia64_target::low_arch_setup): ...this.
2606 (the_low_target): Remove the op field.
2607 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2609 (m32r_arch_setup): Turn into ...
2610 (m32r_target::low_arch_setup): ...this.
2611 (the_low_target): Remove the op field.
2612 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2614 (m68k_arch_setup): Turn into ...
2615 (m68k_target::low_arch_setup): ...this.
2616 (the_low_target): Remove the op field.
2617 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2619 (mips_arch_setup): Turn into ...
2620 (mips_target::low_arch_setup): ...this.
2621 (the_low_target): Remove the op field.
2622 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2624 (nios2_arch_setup): Turn into ...
2625 (nios2_target::low_arch_setup): ...this.
2626 (the_low_target): Remove the op field.
2627 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2629 (ppc_arch_setup): Turn into ...
2630 (ppc_target::low_arch_setup): ...this.
2631 (the_low_target): Remove the op field.
2632 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2634 (riscv_arch_setup): Turn into ...
2635 (riscv_target::low_arch_setup): ...this.
2636 (the_low_target): Remove the op field.
2637 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2639 (s390_arch_setup): Turn into ...
2640 (s390_target::low_arch_setup): ...this.
2641 (the_low_target): Remove the op field.
2642 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2644 (sh_arch_setup): Turn into ...
2645 (sh_target::low_arch_setup): ...this.
2646 (the_low_target): Remove the op field.
2647 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2649 (sparc_arch_setup): Turn into ...
2650 (sparc_target::low_arch_setup): ...this.
2651 (the_low_target): Remove the op field.
2652 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2654 (tic6x_arch_setup): Turn into ...
2655 (tic6x_target::low_arch_setup): ...this.
2656 (the_low_target): Remove the op field.
2657 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2659 (tile_arch_setup): Turn into ...
2660 (tile_target::low_arch_setup): ...this.
2661 (the_low_target): Remove the op field.
2662 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2664 (xtensa_arch_setup): Turn into ...
2665 (xtensa_target::low_arch_setup): ...this.
2666 (the_low_target): Remove the op field.
2668 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2670 * linux-low.h (the_linux_target): New extern declaration.
2671 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2673 (the_linux_target): Remove.
2674 * linux-x86-low.cc (class x86_target): New class.
2675 (the_x86_target): New static object.
2676 (the_linux_target): Define as pointer to the_x86_target.
2677 * linux-aarch64-low.cc (class aarch64_target): New class.
2678 (the_aarch64_target): New static object.
2679 (the_linux_target): Define as pointer to the_aarch64_target.
2680 * linux-arm-low.cc (class arm_target): New class.
2681 (the_arm_target): New static object.
2682 (the_linux_target): Define as pointer to the_arm_target.
2683 * linux-bfin-low.cc (class bfin_target): New class.
2684 (the_bfin_target): New static object.
2685 (the_linux_target): Define as pointer to the_bfin_target.
2686 * linux-cris-low.cc (class cris_target): New class.
2687 (the_cris_target): New static object.
2688 (the_linux_target): Define as pointer to the_cris_target.
2689 * linux-crisv32-low.cc (class crisv32_target): New class.
2690 (the_crisv32_target): New static object.
2691 (the_linux_target): Define as pointer to the_crisv32_target.
2692 * linux-ia64-low.cc (class ia64_target): New class.
2693 (the_ia64_target): New static object.
2694 (the_linux_target): Define as pointer to the_ia64_target.
2695 * linux-m32r-low.cc (class m32r_target): New class.
2696 (the_m32r_target): New static object.
2697 (the_linux_target): Define as pointer to the_m32r_target.
2698 * linux-m68k-low.cc (class m68k_target): New class.
2699 (the_m68k_target): New static object.
2700 (the_linux_target): Define as pointer to the_m68k_target.
2701 * linux-mips-low.cc (class mips_target): New class.
2702 (the_mips_target): New static object.
2703 (the_linux_target): Define as pointer to the_mips_target.
2704 * linux-nios2-low.cc (class nios2_target): New class.
2705 (the_nios2_target): New static object.
2706 (the_linux_target): Define as pointer to the_nios2_target.
2707 * linux-ppc-low.cc (class ppc_target): New class.
2708 (the_ppc_target): New static object.
2709 (the_linux_target): Define as pointer to the_ppc_target.
2710 * linux-riscv-low.cc (class riscv_target): New class.
2711 (the_riscv_target): New static object.
2712 (the_linux_target): Define as pointer to the_riscv_target.
2713 * linux-s390-low.cc (class s390_target): New class.
2714 (the_s390_target): New static object.
2715 (the_linux_target): Define as pointer to the_s390_target.
2716 * linux-sh-low.cc (class sh_target): New class.
2717 (the_sh_target): New static object.
2718 (the_linux_target): Define as pointer to the_sh_target.
2719 * linux-sparc-low.cc (class sparc_target): New class.
2720 (the_sparc_target): New static object.
2721 (the_linux_target): Define as pointer to the_sparc_target.
2722 * linux-tic6x-low.cc (class tic6x_target): New class.
2723 (the_tic6x_target): New static object.
2724 (the_linux_target): Define as pointer to the_tic6x_target.
2725 * linux-tile-low.cc (class tile_target): New class.
2726 (the_tile_target): New static object.
2727 (the_linux_target): Define as pointer to the_tile_target.
2728 * linux-xtensa-low.cc (class xtensa_target): New class.
2729 (the_xtensa_target): New static object.
2730 (the_linux_target): Define as pointer to the_xtensa_target.
2732 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2734 Turn some static functions in linux-low.cc into private methods of
2735 linux_process_target.
2737 * linux-low.cc (handle_extended_wait): Turn into ...
2738 (linux_process_target::handle_extended_wait): ...this. Call
2739 'mourn' on 'this' object instead of 'the_target'.
2740 (maybe_move_out_of_jump_pad): Turn into...
2741 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2742 (linux_low_filter_event): Turn into...
2743 (linux_process_target::filter_event): ...this.
2744 (linux_wait_for_event_filtered): Turn into...
2745 (linux_process_target::wait_for_event_filtered): ...this.
2746 (linux_wait_for_event): Turn into...
2747 (linux_process_target::wait_for_event): ...this.
2748 (linux_wait_1): Turn into...
2749 (linux_process_target::wait_1): ...this.
2750 (wait_for_sigstop): Turn into...
2751 (linux_process_target::wait_for_sigstop): ...this.
2752 (move_out_of_jump_pad_callback): Turn into...
2753 (linux_process_target::move_out_of_jump_pad): ...this.
2754 (stop_all_lwps): Turn into...
2755 (linux_process_target::stop_all_lwps): ...this.
2756 (start_step_over): Turn into...
2757 (linux_process_target::start_step_over): ...this.
2758 (complete_ongoing_step_over): Turn into...
2759 (linux_process_target::complete_ongoing_step_over): ...this.
2760 (proceed_all_lwps): Turn into...
2761 (linux_process_target::proceed_all_lwps): ...this.
2762 (unstop_all_lwps): Turn into...
2763 (linux_process_target::unstop_all_lwps): ...this.
2765 * linux-low.h (class linux_process_target)
2766 <handle_extended_wait>
2767 <maybe_move_out_of_jump_pad>
2769 <wait_for_event_filtered>
2773 <move_out_of_jump_pad>
2776 <complete_ongoing_step_over>
2778 <unstop_all_lwps>: Declare.
2780 Update the callers below.
2782 * linux-low.cc (linux_process_target::attach): Update.
2783 (linux_process_target::stabilize_threads): Ditto.
2784 (linux_process_target::wait): Ditto.
2786 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2788 * linux-low.h (struct linux_target_ops): Update the comment for
2789 'cannot_store_register' to return 0 or 1.
2790 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2793 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2795 * config.in: Re-generate.
2796 * configure: Re-generate.
2798 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2800 * regcache.cc (find_register_by_number): Update.
2801 * tdesc.cc (init_target_desc): Likewise.
2802 * tdesc.h (target_desc::reg_defs): Likewise.
2804 2020-03-12 Tom Tromey <tom@tromey.com>
2806 * configure: Rebuild.
2807 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2808 (WIN32APILIBS): New subst.
2809 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2811 (gdbsupport/%.o): Remove target.
2812 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2813 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2814 (WIN32APILIBS): New variable.
2815 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2816 (gdbreplay$(EXEEXT)): Likewise.
2818 2020-03-12 Tom Tromey <tom@tromey.com>
2820 * config.in, configure: Rebuild.
2821 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2822 * acinclude.m4: Include gettext-sister.m4.
2823 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2825 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2826 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2828 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2830 * acinclude.m4: Update path to selftest.m4.
2832 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2834 * configure.ac: Don't source bfd/development.sh, move
2835 GDB_AC_COMMON higher.
2836 * configure: Re-generate.
2838 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2840 * configure: Re-generate.
2842 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2844 * configure: Re-generate.
2846 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2848 * .dir-locals.el: New file.
2850 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2852 * .gitattributes: New file.
2854 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2856 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2857 reply into an S reply.
2858 * server.cc (disable_packet_T): New global.
2859 (captured_main): Set new global when appropriate.
2860 * server.h (disable_packet_T): Declare.
2862 2020-02-21 Tom Tromey <tom@tromey.com>
2864 * Makefile.in (mostlyclean): New target.
2866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2868 * target.h (struct process_stratum_target): Remove.
2869 (class process_target): Rename to ...
2870 (class process_stratum_target): ... this.
2871 * linux-low.h (class linux_process_target): Derive from
2872 'process_stratum_target'.
2873 * linux-low.cc (linux_target_ops): Remove.
2874 (initialize_low): Set the_target to the singleton instance of
2875 linux_process_target.
2876 * lynx-low.h (class lynx_process_target): Derive from
2877 'process_stratum_target'.
2878 * lynx-low.cc (lynx_target_ops): Remove.
2879 (initialize_low): Set the_target to the singleton instance of
2880 lynx_process_target.
2881 * nto-low.h (class nto_process_target): Derive from
2882 'process_stratum_target'.
2883 * nto-low.cc (nto_target_ops): Remove.
2884 (initialize_low): Set the_target to the singleton instance of
2886 * win32-low.h (class win32_process_target): Derive from
2887 'process_stratum_target'.
2888 * win32-low.cc (win32_target_ops): Remove.
2889 (initialize_low): Set the_target to the singleton instance of
2890 win32_process_target.
2892 Replace 'the_target->pt' with 'the_target' in the uses below.
2894 * hostio.cc (hostio_error)
2899 * linux-aarch32-low.cc (arm_breakpoint_at)
2900 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2901 * linux-arm-low.cc (arm_sigreturn_next_pc)
2903 (arm_get_syscall_trapinfo)
2904 * linux-cris-low.cc (cris_breakpoint_at)
2905 * linux-crisv32-low.cc (cris_breakpoint_at)
2906 * linux-low.cc (handle_extended_wait)
2909 (linux_process_target::breakpoint_kind_from_pc)
2911 * linux-m32r-low.cc (m32r_breakpoint_at)
2912 * linux-mips-low.cc (mips_breakpoint_at)
2913 * linux-nios2-low.cc (nios2_breakpoint_at)
2914 * linux-ppc-low.cc (ppc_breakpoint_at)
2915 * linux-s390-low.cc (s390_get_hwcap)
2916 * linux-sh-low.cc (sh_breakpoint_at)
2917 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2918 (sparc_store_gregset_from_stack)
2919 (sparc_breakpoint_at)
2920 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2921 * linux-tile-low.cc (tile_breakpoint_at)
2922 * linux-x86-low.cc (x86_breakpoint_at)
2923 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2924 * mem-break.cc (bp_size)
2926 (insert_memory_breakpoint)
2927 (set_raw_breakpoint_at)
2928 (delete_raw_breakpoint)
2930 (uninsert_raw_breakpoint)
2931 (reinsert_raw_breakpoint)
2932 (validate_inserted_breakpoint)
2933 * regcache.cc (regcache_read_pc)
2935 * remote-utils.cc (putpkt_binary_1)
2938 (prepare_resume_reply)
2939 * server.cc (handle_general_set)
2942 (handle_qxfer_exec_file)
2943 (handle_qxfer_libraries_svr4)
2944 (handle_qxfer_osdata)
2945 (handle_qxfer_siginfo)
2946 (handle_qxfer_fdpic)
2950 (queue_stop_reply_callback)
2952 * target.cc (prepare_to_access_memory)
2953 (done_accessing_memory)
2954 (read_inferior_memory)
2955 (target_write_memory)
2956 (target_stop_and_wait)
2958 (target_mourn_inferior)
2959 (target_continue_no_signal)
2961 (target_supports_multi_process)
2964 (target_create_inferior)
2965 (target_post_create_inferior)
2967 (target_supports_fork_events)
2968 (target_supports_vfork_events)
2969 (target_supports_exec_events)
2970 (target_handle_new_gdb_connection)
2973 (fetch_inferior_registers)
2974 (store_inferior_registers)
2976 (target_supports_non_stop)
2978 (target_process_qsupported)
2979 (target_supports_catch_syscall)
2980 (target_get_ipa_tdesc_idx)
2981 (target_supports_tracepoints)
2982 (target_supports_fast_tracepoints)
2983 (target_get_min_fast_tracepoint_insn_len)
2984 (target_thread_stopped)
2986 (target_unpause_all)
2987 (target_stabilize_threads)
2988 (target_install_fast_tracepoint_jump_pad)
2990 (target_supports_disable_randomization)
2991 (target_supports_agent)
2992 (target_enable_btrace)
2993 (target_disable_btrace)
2994 (target_read_btrace)
2995 (target_read_btrace_conf)
2996 (target_supports_range_stepping)
2997 (target_supports_stopped_by_sw_breakpoint)
2998 (target_stopped_by_sw_breakpoint)
2999 (target_supports_stopped_by_hw_breakpoint)
3000 (target_supports_hardware_single_step)
3001 (target_stopped_by_hw_breakpoint)
3002 (target_breakpoint_kind_from_pc)
3003 (target_breakpoint_kind_from_current_state)
3004 (target_supports_software_single_step)
3005 (target_core_of_thread)
3006 (target_thread_name)
3007 (target_thread_handle)
3008 * win32-low.cc (do_initial_child_stuff)
3010 Rename target op default definitions listed below.
3012 * target.cc (process_target::post_create_inferior): Rename as ...
3013 (process_stratum_target::post_create_inferior): ... this.
3014 (process_target::prepare_to_access_memory): Rename as ...
3015 (process_stratum_target::prepare_to_access_memory): ... this.
3016 (process_target::done_accessing_memory): Rename as ...
3017 (process_stratum_target::done_accessing_memory): ... this.
3018 (process_target::look_up_symbols): Rename as ...
3019 (process_stratum_target::look_up_symbols): ... this.
3020 (process_target::supports_read_auxv): Rename as ...
3021 (process_stratum_target::supports_read_auxv): ... this.
3022 (process_target::read_auxv): Rename as ...
3023 (process_stratum_target::read_auxv): ... this.
3024 (process_target::supports_z_point_type): Rename as ...
3025 (process_stratum_target::supports_z_point_type): ... this.
3026 (process_target::insert_point): Rename as ...
3027 (process_stratum_target::insert_point): ... this.
3028 (process_target::remove_point): Rename as ...
3029 (process_stratum_target::remove_point): ... this.
3030 (process_target::stopped_by_sw_breakpoint): Rename as ...
3031 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3032 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3033 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3034 (process_target::stopped_by_hw_breakpoint): Rename as ...
3035 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3036 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3037 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3038 (process_target::supports_hardware_single_step): Rename as ...
3039 (process_stratum_target::supports_hardware_single_step): ... this.
3040 (process_target::stopped_by_watchpoint): Rename as ...
3041 (process_stratum_target::stopped_by_watchpoint): ... this.
3042 (process_target::stopped_data_address): Rename as ...
3043 (process_stratum_target::stopped_data_address): ... this.
3044 (process_target::supports_read_offsets): Rename as ...
3045 (process_stratum_target::supports_read_offsets): ... this.
3046 (process_target::read_offsets): Rename as ...
3047 (process_stratum_target::read_offsets): ... this.
3048 (process_target::supports_get_tls_address): Rename as ...
3049 (process_stratum_target::supports_get_tls_address): ... this.
3050 (process_target::get_tls_address): Rename as ...
3051 (process_stratum_target::get_tls_address): ... this.
3052 (process_target::hostio_last_error): Rename as ...
3053 (process_stratum_target::hostio_last_error): ... this.
3054 (process_target::supports_qxfer_osdata): Rename as ...
3055 (process_stratum_target::supports_qxfer_osdata): ... this.
3056 (process_target::qxfer_osdata): Rename as ...
3057 (process_stratum_target::qxfer_osdata): ... this.
3058 (process_target::supports_qxfer_siginfo): Rename as ...
3059 (process_stratum_target::supports_qxfer_siginfo): ... this.
3060 (process_target::qxfer_siginfo): Rename as ...
3061 (process_stratum_target::qxfer_siginfo): ... this.
3062 (process_target::supports_non_stop): Rename as ...
3063 (process_stratum_target::supports_non_stop): ... this.
3064 (process_target::async): Rename as ...
3065 (process_stratum_target::async): ... this.
3066 (process_target::start_non_stop): Rename as ...
3067 (process_stratum_target::start_non_stop): ... this.
3068 (process_target::supports_multi_process): Rename as ...
3069 (process_stratum_target::supports_multi_process): ... this.
3070 (process_target::supports_fork_events): Rename as ...
3071 (process_stratum_target::supports_fork_events): ... this.
3072 (process_target::supports_vfork_events): Rename as ...
3073 (process_stratum_target::supports_vfork_events): ... this.
3074 (process_target::supports_exec_events): Rename as ...
3075 (process_stratum_target::supports_exec_events): ... this.
3076 (process_target::handle_new_gdb_connection): Rename as ...
3077 (process_stratum_target::handle_new_gdb_connection): ... this.
3078 (process_target::handle_monitor_command): Rename as ...
3079 (process_stratum_target::handle_monitor_command): ... this.
3080 (process_target::core_of_thread): Rename as ...
3081 (process_stratum_target::core_of_thread): ... this.
3082 (process_target::supports_read_loadmap): Rename as ...
3083 (process_stratum_target::supports_read_loadmap): ... this.
3084 (process_target::read_loadmap): Rename as ...
3085 (process_stratum_target::read_loadmap): ... this.
3086 (process_target::process_qsupported): Rename as ...
3087 (process_stratum_target::process_qsupported): ... this.
3088 (process_target::supports_tracepoints): Rename as ...
3089 (process_stratum_target::supports_tracepoints): ... this.
3090 (process_target::read_pc): Rename as ...
3091 (process_stratum_target::read_pc): ... this.
3092 (process_target::write_pc): Rename as ...
3093 (process_stratum_target::write_pc): ... this.
3094 (process_target::supports_thread_stopped): Rename as ...
3095 (process_stratum_target::supports_thread_stopped): ... this.
3096 (process_target::thread_stopped): Rename as ...
3097 (process_stratum_target::thread_stopped): ... this.
3098 (process_target::supports_get_tib_address): Rename as ...
3099 (process_stratum_target::supports_get_tib_address): ... this.
3100 (process_target::get_tib_address): Rename as ...
3101 (process_stratum_target::get_tib_address): ... this.
3102 (process_target::pause_all): Rename as ...
3103 (process_stratum_target::pause_all): ... this.
3104 (process_target::unpause_all): Rename as ...
3105 (process_stratum_target::unpause_all): ... this.
3106 (process_target::stabilize_threads): Rename as ...
3107 (process_stratum_target::stabilize_threads): ... this.
3108 (process_target::supports_fast_tracepoints): Rename as ...
3109 (process_stratum_target::supports_fast_tracepoints): ... this.
3110 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3111 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3112 (process_target::emit_ops): Rename as ...
3113 (process_stratum_target::emit_ops): ... this.
3114 (process_target::supports_disable_randomization): Rename as ...
3115 (process_stratum_target::supports_disable_randomization): ... this.
3116 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3117 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3118 (process_target::qxfer_libraries_svr4): Rename as ...
3119 (process_stratum_target::qxfer_libraries_svr4): ... this.
3120 (process_target::supports_agent): Rename as ...
3121 (process_stratum_target::supports_agent): ... this.
3122 (process_target::enable_btrace): Rename as ...
3123 (process_stratum_target::enable_btrace): ... this.
3124 (process_target::disable_btrace): Rename as ...
3125 (process_stratum_target::disable_btrace): ... this.
3126 (process_target::read_btrace): Rename as ...
3127 (process_stratum_target::read_btrace): ... this.
3128 (process_target::read_btrace_conf): Rename as ...
3129 (process_stratum_target::read_btrace_conf): ... this.
3130 (process_target::supports_range_stepping): Rename as ...
3131 (process_stratum_target::supports_range_stepping): ... this.
3132 (process_target::supports_pid_to_exec_file): Rename as ...
3133 (process_stratum_target::supports_pid_to_exec_file): ... this.
3134 (process_target::pid_to_exec_file): Rename as ...
3135 (process_stratum_target::pid_to_exec_file): ... this.
3136 (process_target::supports_multifs): Rename as ...
3137 (process_stratum_target::supports_multifs): ... this.
3138 (process_target::multifs_open): Rename as ...
3139 (process_stratum_target::multifs_open): ... this.
3140 (process_target::multifs_unlink): Rename as ...
3141 (process_stratum_target::multifs_unlink): ... this.
3142 (process_target::multifs_readlink): Rename as ...
3143 (process_stratum_target::multifs_readlink): ... this.
3144 (process_target::breakpoint_kind_from_pc): Rename as ...
3145 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3146 (process_target::breakpoint_kind_from_current_state): Rename as ...
3147 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3148 (process_target::thread_name): Rename as ...
3149 (process_stratum_target::thread_name): ... this.
3150 (process_target::thread_handle): Rename as ...
3151 (process_stratum_target::thread_handle): ... this.
3152 (process_target::supports_software_single_step): Rename as ...
3153 (process_stratum_target::supports_software_single_step): ... this.
3154 (process_target::supports_catch_syscall): Rename as ...
3155 (process_stratum_target::supports_catch_syscall): ... this.
3156 (process_target::get_ipa_tdesc_idx): Rename as ...
3157 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3159 2020-02-20 Pedro Alves <palves@redhat.com>
3161 * target.cc (set_target_ops): Simply copy the given target pointer
3162 instead of creating a copy of the pointed object.
3164 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3166 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3169 * target.h (struct process_stratum_target): Remove the target op.
3170 (class process_target): Add the target op.
3171 (target_get_ipa_tdesc_idx): Update the macro.
3172 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3174 Update the derived classes and callers below.
3176 * linux-low.cc (linux_target_ops): Update.
3177 (linux_get_ipa_tdesc_idx): Turn into ...
3178 (linux_process_target::get_ipa_tdesc_idx): ... this.
3179 * linux-low.h (class linux_process_target): Update.
3180 * lynx-low.cc (lynx_target_ops): Update.
3181 * nto-low.cc (nto_target_ops): Update.
3182 * win32-low.cc (win32_target_ops): Update.
3184 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3186 Turn process_stratum_target's supports_catch_syscall op into a
3187 method of process_target.
3189 * target.h (struct process_stratum_target): Remove the target op.
3190 (class process_target): Add the target op.
3191 (target_supports_catch_syscall): Update the macro.
3192 * target.cc (process_target::supports_catch_syscall): Define.
3194 Update the derived classes and callers below.
3196 * linux-low.cc (linux_target_ops): Update.
3197 (linux_supports_catch_syscall): Turn into ...
3198 (linux_process_target::supports_catch_syscall): ... this.
3199 * linux-low.h (class linux_process_target): Update.
3200 * lynx-low.cc (lynx_target_ops): Update.
3201 * nto-low.cc (nto_target_ops): Update.
3202 * win32-low.cc (win32_target_ops): Update.
3204 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3206 Turn process_stratum_target's supports_software_single_step op
3207 into a method of process_target.
3209 * target.h (struct process_stratum_target): Remove the target op.
3210 (class process_target): Add the target op.
3211 (target_supports_software_single_step): Update the macro.
3212 * target.cc (process_target::supports_software_single_step): Define.
3214 Update the derived classes and callers below.
3216 * linux-low.cc (linux_target_ops): Update.
3217 (linux_supports_software_single_step): Turn into ...
3218 (linux_process_target::supports_software_single_step): ... this.
3219 * linux-low.h (class linux_process_target): Update.
3220 * lynx-low.cc (lynx_target_ops): Update.
3221 * nto-low.cc (nto_target_ops): Update.
3222 * win32-low.cc (win32_target_ops): Update.
3224 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226 Turn process_stratum_target's thread_name and thread_handle ops
3227 into methods of process_target.
3229 * target.h (struct process_stratum_target): Remove the target ops.
3230 (class process_target): Add the target ops.
3231 (target_thread_name): Update the macro.
3232 (target_thread_handle): Update the macro.
3233 * target.cc (process_target::thread_name): Define.
3234 (process_target::thread_handle): Define.
3236 Update the derived classes and callers below.
3238 * linux-low.cc (linux_target_ops): Update.
3239 (linux_process_target::thread_name): Define.
3240 (linux_process_target::thread_handle): Define.
3241 * linux-low.h (class linux_process_target): Update.
3242 * lynx-low.cc (lynx_target_ops): Update.
3243 * nto-low.cc (nto_target_ops): Update.
3244 * win32-low.cc (win32_target_ops): Update.
3246 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3248 Turn process_stratum_target's breakpoint_kind_from_pc,
3249 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3250 ops into methods of process_target.
3252 * target.h (struct process_stratum_target): Remove the target op.
3253 (class process_target): Add the target op.
3254 (target_breakpoint_kind_from_pc): Update the macro.
3255 (target_breakpoint_kind_from_current_state): Update the macro.
3256 (default_breakpoint_kind_from_pc): Remove declaration.
3257 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3258 (process_target::breakpoint_kind_from_pc): ... this.
3259 (process_target::breakpoint_kind_from_current_state): Define.
3261 Update the derived classes and callers below.
3263 * mem-break.cc (bp_size): Update.
3264 (bp_opcode): Update.
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_wait_1): Update.
3267 (linux_breakpoint_kind_from_pc): Turn into ...
3268 (linux_process_target::breakpoint_kind_from_pc): ... this.
3269 (linux_sw_breakpoint_from_kind): Turn into ...
3270 (linux_process_target::sw_breakpoint_from_kind): ... this.
3271 (linux_breakpoint_kind_from_current_state): Turn into ...
3272 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3273 * linux-low.h (class linux_process_target): Update.
3274 * lynx-low.cc (lynx_target_ops): Update.
3275 (lynx_process_target::sw_breakpoint_from_kind): Define.
3276 * lynx-low.h (class lynx_process_target): Update.
3277 * nto-low.cc (nto_target_ops): Update.
3278 (nto_sw_breakpoint_from_kind): Turn into ...
3279 (nto_process_target::sw_breakpoint_from_kind): ... this.
3280 * nto-low.h (class nto_process_target): Update.
3281 * win32-low.cc (win32_target_ops): Update.
3282 (win32_sw_breakpoint_from_kind): Turn into ...
3283 (win32_process_target::sw_breakpoint_from_kind): ... this.
3284 * win32-low.h (class win32_process_target): Update.
3286 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3288 Turn process_stratum_target's multifs_open, multifs_readlink,
3289 multifs_unlink ops into methods of process_target.
3291 * target.h (struct process_stratum_target): Remove the target ops.
3292 (class process_target): Add the target ops. Also add
3294 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3296 (process_target::supports_multifs): Define.
3297 (process_target::multifs_open): Define.
3298 (process_target::multifs_readlink): Define.
3299 (process_target::multifs_unlink): Define.
3301 Update the derived classes and callers below.
3303 * hostio.cc (handle_setfs): Update.
3304 (handle_open): Update.
3305 (handle_unlink): Update.
3306 (handle_readlink): Update.
3307 * linux-low.cc (linux_target_ops): Update.
3308 (linux_process_target::supports_multifs): Define.
3309 (linux_process_target::multifs_open): Define.
3310 (linux_process_target::multifs_readlink): Define.
3311 (linux_process_target::multifs_unlink): Define.
3312 * linux-low.h (class linux_process_target): Update.
3313 * lynx-low.cc (lynx_target_ops): Update.
3314 * nto-low.cc (nto_target_ops): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3317 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319 Turn process_stratum_target's pid_to_exec_file op into a method
3322 * target.h (struct process_stratum_target): Remove the target op.
3323 (class process_target): Add the target op. Also add
3324 'supports_pid_to_exec_file'.
3325 * target.cc (process_target::pid_to_exec_file): Define.
3326 (process_target::supports_pid_to_exec_file): Define.
3328 Update the derived classes and callers below.
3330 * server.cc (handle_qxfer_exec_file): Update.
3331 (handle_query): Update.
3332 * linux-low.cc (linux_target_ops): Update.
3333 (linux_process_target::supports_pid_to_exec_file): Define.
3334 (linux_process_target::pid_to_exec_file): Define.
3335 * linux-low.h (class linux_process_target): Update.
3336 * lynx-low.cc (lynx_target_ops): Update.
3337 * nto-low.cc (nto_target_ops): Update.
3338 * win32-low.cc (win32_target_ops): Update.
3340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3342 Turn process_stratum_target's supports_range_stepping op into a
3343 method of process_target.
3345 * target.h (struct process_stratum_target): Remove the target op.
3346 (class process_target): Add the target op.
3347 (target_supports_range_stepping): Update the macro.
3348 * target.cc (process_target::supports_range_stepping): Define.
3350 Update the derived classes and callers below.
3352 * linux-low.cc (linux_target_ops): Update.
3353 (linux_supports_range_stepping): Turn into ...
3354 (linux_process_target::supports_range_stepping): ... this.
3355 * linux-low.h (class linux_process_target): Update.
3356 * lynx-low.cc (lynx_target_ops): Update.
3357 * nto-low.cc (nto_target_ops): Update.
3358 * win32-low.cc (win32_target_ops): Update.
3360 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3362 Turn process_stratum_target's btrace-related ops (enable_btrace,
3363 disable_btrace, read_btrace, read_btrace_conf) into methods of
3366 * target.h (struct process_stratum_target): Remove the target ops.
3367 (class process_target): Add the target ops.
3368 (target_enable_btrace): Update.
3369 (target_disable_btrace): Update.
3370 (target_read_btrace): Update.
3371 (target_read_btrace_conf): Update.
3372 * target.cc (process_target::enable_btrace): Define.
3373 (process_target::disable_btrace): Define.
3374 (process_target::read_btrace): Define.
3375 (process_target::read_btrace_conf): Define.
3377 Update the derived classes and callers below.
3379 * linux-low.cc (linux_target_ops): Update.
3380 (linux_process_target:enable_btrace): Define as a wrapper around
3381 linux_enable_btrace.
3382 (linux_low_disable_btrace): Turn into ...
3383 (linux_process_target::disable_btrace): ... this.
3384 (linux_low_read_btrace): Turn into ...
3385 (linux_process_target::read_btrace): ... this.
3386 (linux_low_btrace_conf): Turn into ...
3387 (linux_process_target::read_btrace_conf): ... this.
3388 * linux-low.h (class linux_process_target): Update.
3389 * lynx-low.cc (lynx_target_ops): Update.
3390 * nto-low.cc (nto_target_ops): Update.
3391 * win32-low.cc (win32_target_ops): Update.
3393 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3395 Turn process_stratum_target's supports_agent op into a method of
3398 * target.h (struct process_stratum_target): Remove the target op.
3399 (class process_target): Add the target op.
3400 (target_supports_agent): Update the macro.
3401 * target.cc (process_target::supports_agent): Define.
3403 Update the derived classes and callers below.
3405 * linux-low.cc (linux_target_ops): Update.
3406 (linux_supports_agent): Turn into ...
3407 (linux_process_target::supports_agent): ... this.
3408 * linux-low.h (class linux_process_target): Update.
3409 * lynx-low.cc (lynx_target_ops): Update.
3410 * nto-low.cc (nto_target_ops): Update.
3411 * win32-low.cc (win32_target_ops): Update.
3413 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3415 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3416 method of process_target.
3418 * target.h (struct process_stratum_target): Remove the target op.
3419 (class process_target): Add the target op. Also add
3420 'supports_qxfer_libraries_svr4'.
3421 * target.cc (process_target::qxfer_libraries_svr4): Define.
3422 (process_target::supports_qxfer_libraries_svr4): Define.
3424 Update the derived classes and callers below.
3426 * server.cc (handle_qxfer_libraries_svr4): Update.
3427 (handle_query): Update.
3428 * linux-low.cc (linux_target_ops): Update.
3429 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3430 (linux_qxfer_libraries_svr4): Turn into ...
3431 (linux_process_target::qxfer_libraries_svr4): ... this.
3432 * linux-low.h (class linux_process_target): Update.
3433 * lynx-low.cc (lynx_target_ops): Update.
3434 * nto-low.cc (nto_target_ops): Update.
3435 * win32-low.cc (win32_target_ops): Update.
3437 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3439 Turn process_stratum_target's supports_disable_randomization op
3440 into a method of process_target.
3442 * target.h (struct process_stratum_target): Remove the target op.
3443 (class process_target): Add the target op.
3444 (target_supports_disable_randomization): Update the macro.
3445 * target.cc (process_target::supports_disable_randomization): Define.
3447 Update the derived classes and callers below.
3449 * linux-low.cc (linux_target_ops): Update.
3450 (linux_supports_disable_randomization): Turn into ...
3451 (linux_process_target::supports_disable_randomization): ... this.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 * nto-low.cc (nto_target_ops): Update.
3455 * win32-low.cc (win32_target_ops): Update.
3457 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3459 Turn process_stratum_target's emit_ops op into a method of
3462 * target.h (struct process_stratum_target): Remove the target op.
3463 (class process_target): Add the target op.
3464 (target_emit_ops): Update the macro.
3465 * target.cc (process_target::emit_ops): Define.
3467 Update the derived classes and callers below.
3469 * linux-low.cc (linux_target_ops): Update.
3470 (linux_emit_ops): Turn into ...
3471 (linux_process_target::emit_ops): ... this.
3472 * linux-low.h (class linux_process_target): Update.
3473 * lynx-low.cc (lynx_target_ops): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3477 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3479 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3480 and get_min_fast_tracepoint_insn_len ops into methods of
3483 * target.h (struct process_stratum_target): Remove the target ops.
3484 (class process_target): Add the target ops. Also add
3485 'supports_fast_tracepoints'.
3486 (target_supports_fast_tracepoints): Update the macro.
3487 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3488 (install_fast_tracepoint_jump_pad): Update and rename the macro
3490 (target_install_fast_tracepoint_jump_pad): ... this.
3491 * target.cc (process_target::supports_fast_tracepoints): Define.
3492 (process_target::install_fast_tracepoint_jump_pad): Define.
3493 (process_target::get_min_fast_tracepoint_insn_len): Define.
3495 Update the derived classes and callers below.
3497 * tracepoint.cc (install_fast_tracepoint): Update.
3498 * linux-low.cc (linux_target_ops): Update.
3499 (linux_process_target::supports_fast_tracepoints): Define.
3500 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3501 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3502 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3503 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3504 * linux-low.h (class linux_process_target): Update.
3505 * lynx-low.cc (lynx_target_ops): Update.
3506 * nto-low.cc (nto_target_ops): Update.
3507 * win32-low.cc (win32_target_ops): Update.
3509 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3511 Turn process_stratum_target's stabilize_threads op into a
3512 method of process_target.
3514 * target.h (struct process_stratum_target): Remove the target op.
3515 (class process_target): Add the target op.
3516 (target_stabilize_threads): Update the macro.
3517 * target.cc (process_target::stabilize_threads): Define.
3519 Update the derived classes and callers below.
3521 * server.cc (handle_status): Update.
3522 * tracepoint.cc (cmd_qtdp): Update.
3523 (cmd_qtstart): Update.
3524 * linux-low.cc (linux_target_ops): Update.
3525 (linux_stabilize_threads): Turn into ...
3526 (linux_process_target::stabilize_threads): ... this.
3527 (linux_wait_1): Update.
3528 * linux-low.h (class linux_process_target): Update.
3529 * lynx-low.cc (lynx_target_ops): Update.
3530 * nto-low.cc (nto_target_ops): Update.
3531 * win32-low.cc (win32_target_ops): Update.
3533 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3535 Turn process_stratum_target's pause_all and unpause_all ops
3536 into methods of process_target.
3538 * target.h (struct process_stratum_target): Remove the target ops.
3539 (class process_target): Add the target ops.
3540 (pause_all): Update the macro and rename to...
3541 (target_pause_all): ... this.
3542 (unpause_all): Update the macro and rename to...
3543 (target_unpause_all): ... this.
3544 * target.cc (process_target::pause_all): Define.
3545 (process_target::unpause_all): Define.
3547 Update the derived classes and callers below.
3549 * server.cc (handle_status): Update.
3550 * tracepoint.cc (clear_installed_tracepoints): Update.
3552 (cmd_qtstart): Update.
3553 (stop_tracing): Update.
3554 (cmd_qtstatus): Update.
3555 (upload_fast_traceframes): Update.
3556 (run_inferior_command): Update.
3557 * linux-low.cc (linux_target_ops): Update.
3558 (linux_pause_all): Turn into ...
3559 (linux_process_target::pause_all): ... this.
3560 (linux_unpause_all): Turn into ...
3561 (linux_process_target::unpause_all): ... this.
3562 (linux_process_target::prepare_to_access_memory): Update.
3563 (linux_process_target::done_accessing_memory): Update.
3564 * linux-low.h (class linux_process_target): Update.
3565 * lynx-low.cc (lynx_target_ops): Update.
3566 * nto-low.cc (nto_target_ops): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3569 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3571 Turn process_stratum_target's get_tib_address op into a method of
3574 * target.h (struct process_stratum_target): Remove the target op.
3575 (class process_target): Add the target op. Also add
3576 'supports_get_tib_address'.
3577 * target.cc (process_target::get_tib_address): Define.
3578 (process_target::supports_get_tib_address): Define.
3580 Update the derived classes and callers below.
3582 * server.cc (handle_query): Update.
3583 * linux-low.cc (win32_target_ops): Update.
3584 * lynx-low.cc (lynx_target_ops): Update.
3585 * nto-low.cc (nto_target_ops): Update.
3586 * win32-low.cc (win32_target_ops): Update.
3587 (win32_process_target::supports_get_tib_address): Define.
3588 (win32_get_tib_address): Turn into ...
3589 (win32_process_target::get_tib_address): ... this.
3590 * win32-low.h (class win32_process_target): Update.
3592 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3594 Turn process_stratum_target's thread_stopped op into a method of
3597 * target.h (struct process_stratum_target): Remove the target op.
3598 (class process_target): Add the target op. Also add
3599 'supports_thread_stopped'.
3600 (target_thread_stopped): Update the macro.
3601 * target.cc (process_target::thread_stopped): Define.
3602 (process_target::supports_thread_stopped): Define.
3603 (prepare_to_access_memory): Update.
3605 Update the derived classes and callers below.
3607 * server.cc (queue_stop_reply_callback): Update.
3608 * linux-low.cc (linux_target_ops): Update.
3609 (linux_process_target::supports_thread_stopped): Define.
3610 (linux_thread_stopped): Turn into ...
3611 (linux_process_target::thread_stopped): ... this.
3612 * linux-low.h (class linux_process_target): Update.
3613 * lynx-low.cc (lynx_target_ops): Update.
3614 * nto-low.cc (nto_target_ops): Update.
3615 * win32-low.cc (win32_target_ops): Update.
3617 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3619 Turn process_stratum_target's read_pc and write_pc ops into
3620 methods of process_target.
3622 * target.h (struct process_stratum_target): Remove the target ops.
3623 (class process_target): Add the target ops.
3624 * target.cc (process_target::read_pc): Define.
3625 (process_target::write_pc): Define.
3627 Update the derived classes and callers below.
3629 * regcache.cc (regcache_read_pc): Update.
3630 (regcache_write_pc): Update.
3631 * linux-low.cc (linux_target_ops): Update.
3632 (linux_read_pc): Turn into ...
3633 (linux_process_target::read_pc): ... this.
3634 (linux_write_pc): Turn into ...
3635 (linux_process_target::write_pc): ... this.
3636 * linux-low.h (class linux_process_target): Update.
3637 * lynx-low.cc (lynx_target_ops): Update.
3638 * nto-low.cc (nto_target_ops): Update.
3639 * win32-low.cc (win32_target_ops): Update.
3641 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3643 Turn process_stratum_target's supports_tracepoints op into a
3644 method of process_target.
3646 * target.h (struct process_stratum_target): Remove the target op.
3647 (class process_target): Add the target op.
3648 (target_supports_tracepoints): Update the macro.
3649 * target.cc (process_target::supports_tracepoints): Define.
3651 Update the derived classes and callers below.
3653 * linux-low.cc (linux_target_ops): Update.
3654 (linux_supports_tracepoints): Turn into ...
3655 (linux_process_target::supports_tracepoints): ... this.
3656 * linux-low.h (class linux_process_target): Update.
3657 * lynx-low.cc (lynx_target_ops): Update.
3658 * nto-low.cc (nto_target_ops): Update.
3659 * win32-low.cc (win32_target_ops): Update.
3661 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3663 Turn process_stratum_target's process_qsupported op into a method
3666 * target.h (struct process_stratum_target): Remove the target op.
3667 (class process_target): Add the target op.
3668 (target_process_qsupported): Update the macro.
3669 * target.cc (process_target::process_qsupported): Define.
3671 Update the derived classes and callers below.
3673 * linux-low.cc (linux_target_ops): Update.
3674 (linux_process_qsupported): Turn into ...
3675 (linux_process_target::process_qsupported): ... this.
3676 * linux-low.h (class linux_process_target): Update.
3677 * lynx-low.cc (lynx_target_ops): Update.
3678 * nto-low.cc (nto_target_ops): Update.
3679 * win32-low.cc (win32_target_ops): Update.
3681 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3683 Turn process_stratum_target's read_loadmap op into a method of
3686 * target.h (struct process_stratum_target): Remove the target op.
3687 (class process_target): Add the target op. Also add
3688 'supports_read_loadmap'.
3689 * target.cc (process_target::read_loadmap): Define.
3690 (process_target::supports_read_loadmap): Define.
3692 Update the derived classes and callers below.
3694 * server.cc (handle_qxfer_fdpic): Update.
3695 (handle_query): Update.
3696 * linux-low.cc (linux_target_ops): Update.
3697 (linux_process_target::supports_read_loadmap): Define.
3698 (linux_read_loadmap): Turn into ...
3699 (linux_process_target::read_loadmap): ... this.
3700 * linux-low.h (class linux_process_target): Update.
3701 * lynx-low.cc (lynx_target_ops): Update.
3702 * nto-low.cc (nto_target_ops): Update.
3703 * win32-low.cc (win32_target_ops): Update.
3705 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3707 Turn process_stratum_target's core_of_thread op into a method of
3710 * target.h (struct process_stratum_target): Remove the target op.
3711 (class process_target): Add the target op.
3712 (target_core_of_thread): Update the macro.
3713 * target.cc (process_target::core_of_thread): Define.
3715 Update the derived classes and callers below.
3717 * linux-low.cc (linux_target_ops): Update.
3718 (linux_process_target::core_of_thread): Define.
3719 * linux-low.h (class linux_process_target): Update.
3720 * lynx-low.cc (lynx_target_ops): Update.
3721 * nto-low.cc (nto_target_ops): Update.
3722 * win32-low.cc (win32_target_ops): Update.
3724 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3726 Turn process_stratum_target's handle_monitor_command op into a
3727 method of process_target.
3729 * target.h (struct process_stratum_target): Remove the target op.
3730 (class process_target): Add the target op.
3731 (target_handle_monitor_command): Update the macro.
3732 * target.cc (process_target::handle_monitor_command): Define.
3734 Update the derived classes and callers below.
3736 * server.cc (handle_query): Update.
3737 * linux-low.cc (linux_target_ops): Update.
3738 (linux_process_target::handle_monitor_command): Define.
3739 * linux-low.h (class linux_process_target): Update.
3740 * lynx-low.cc (lynx_target_ops): Update.
3741 * nto-low.cc (nto_target_ops): Update.
3742 * win32-low.cc (win32_target_ops): Update.
3744 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3746 Turn process_stratum_target's handle_new_gdb_connection op into a
3747 method of process_target.
3749 * target.h (struct process_stratum_target): Remove the target op.
3750 (class process_target): Add the target op.
3751 (target_handle_new_gdb_connection): Update the macro.
3752 * target.cc (process_target::handle_new_gdb_connection): Define.
3754 Update the derived classes and callers below.
3756 * linux-low.cc (linux_target_ops): Update.
3757 (linux_handle_new_gdb_connection): Turn into ...
3758 (linux_process_target::handle_new_gdb_connection): ... this.
3759 * linux-low.h (class linux_process_target): Update.
3760 * lynx-low.cc (lynx_target_ops): Update.
3761 * nto-low.cc (nto_target_ops): Update.
3762 * win32-low.cc (win32_target_ops): Update.
3764 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3766 Turn process_stratum_target's supports_fork_events,
3767 supports_vfork_events, and supports_exec_events ops into methods
3770 * target.h (struct process_stratum_target): Remove the target ops.
3771 (class process_target): Add the target ops.
3772 (target_supports_fork_events): Update the macro.
3773 (target_supports_vfork_events): Update the macro.
3774 (target_supports_exec_events): Update the macro.
3775 * target.cc (process_target::supports_fork_events): Define.
3776 (process_target::supports_vfork_events): Define.
3777 (process_target::supports_exec_events): Define.
3779 Update the derived classes and callers below.
3781 * linux-low.cc (linux_target_ops): Update.
3782 (linux_supports_fork_events): Turn into ...
3783 (linux_process_target::supports_fork_events): ... this.
3784 (linux_supports_vfork_events): Turn into ...
3785 (linux_process_target::supports_vfork_events): ... this.
3786 (linux_supports_exec_events): Turn into ...
3787 (linux_process_target::supports_exec_events): ... this.
3788 * linux-low.h (class linux_process_target): Update.
3789 * lynx-low.cc (lynx_target_ops): Update.
3790 * nto-low.cc (nto_target_ops): Update.
3791 * win32-low.cc (win32_target_ops): Update.
3793 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3795 Turn process_stratum_target's supports_multi_process op into a
3796 method of process_target.
3798 * target.h (struct process_stratum_target): Remove the target op.
3799 (class process_target): Add the target op.
3800 * target.cc (process_target::supports_multi_process): Define.
3801 (target_supports_multi_process): Update.
3803 Update the derived classes and callers below.
3805 * linux-low.cc (linux_target_ops): Update.
3806 (linux_supports_multi_process): Turn into ...
3807 (linux_process_target::supports_multi_process): ... this.
3808 * linux-low.h (class linux_process_target): Update.
3809 * lynx-low.cc (lynx_target_ops): Update.
3810 * nto-low.cc (nto_target_ops): Update.
3811 * win32-low.cc (win32_target_ops): Update.
3813 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3815 Turn process_stratum_target's supports_non_stop, async, and
3816 start_non_stop ops into methods of process_target.
3818 * target.h (struct process_stratum_target): Remove the target ops.
3819 (class process_target): Add the target ops.
3820 (target_supports_non_stop): Update the macro.
3821 (target_async): Update the macro.
3822 (start_non_stop): Remove declaration.
3823 * target.cc (process_target::supports_non_stop): Define.
3824 (process_target::async): Define.
3825 (process_target::start_non_stop): Define.
3826 (start_non_stop): Remove.
3828 Update the derived classes and callers below.
3830 * server.cc (handle_qxfer_siginfo): Update.
3831 (handle_query): Update.
3832 * linux-low.cc (linux_target_ops): Update.
3833 (linux_supports_non_stop): Turn into ...
3834 (linux_process_target::supports_non_stop): ... this.
3835 (linux_async): Turn into ...
3836 (linux_process_target::async): ... this.
3837 (linux_start_non_stop): Turn into ...
3838 (linux_process_target::start_non_stop): ... this.
3839 * linux-low.h (class linux_process_target): Update.
3840 * lynx-low.cc (lynx_target_ops): Update.
3841 * nto-low.cc (nto_target_ops): Update.
3842 (nto_supports_non_stop): Remove; rely on the default behavior
3844 * win32-low.cc (win32_target_ops): Update.
3846 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3848 Turn process_stratum_target's qxfer_siginfo op into a method of
3851 * target.h (struct process_stratum_target): Remove the target op.
3852 (class process_target): Add the target op. Also add
3853 'supports_qxfer_siginfo'.
3854 * target.cc (process_target::qxfer_siginfo): Define.
3855 (process_target::supports_qxfer_siginfo): Define.
3857 Update the derived classes and callers below.
3859 * server.cc (handle_qxfer_siginfo): Update.
3860 (handle_query): Update.
3861 * linux-low.cc (linux_target_ops): Update.
3862 (linux_process_target::supports_qxfer_siginfo): Define.
3863 (linux_xfer_siginfo): Turn into ...
3864 (linux_process_target::qxfer_siginfo): ... this.
3865 * linux-low.h (class linux_process_target): Update.
3866 * lynx-low.cc (lynx_target_ops): Update.
3867 * nto-low.cc (nto_target_ops): Update.
3868 * win32-low.cc (win32_target_ops): Update.
3870 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3872 Turn process_stratum_target's qxfer_osdata op into a method of
3875 * target.h (struct process_stratum_target): Remove the target op.
3876 (class process_target): Add the target op. Also add
3877 'supports_qxfer_osdata'.
3878 * target.cc (process_target::qxfer_osdata): Define.
3879 (process_target::supports_qxfer_osdata): Define.
3881 Update the derived classes and callers below.
3883 * server.cc (handle_qxfer_osdata): Update.
3884 (handle_query): Update.
3885 * linux-low.cc (linux_target_ops): Update.
3886 (linux_process_target::supports_qxfer_osdata): Define.
3887 (linux_qxfer_osdata): Turn into ...
3888 (linux_process_target::qxfer_osdata): ... this.
3889 * linux-low.h (class linux_process_target): Update.
3890 * lynx-low.cc (lynx_target_ops): Update.
3891 * nto-low.cc (nto_target_ops): Update.
3892 * win32-low.cc (win32_target_ops): Update.
3894 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3896 Turn process_stratum_target's hostio_last_error op into a
3897 method of process_target.
3899 * target.h (struct process_stratum_target): Remove the target op.
3900 (class process_target): Add the target op.
3901 * target.cc: Add "hostio.h" to includes.
3902 (process_target::hostio_last_error): Define.
3904 Update the derived classes and callers below.
3906 * hostio.cc (hostio_error): Update.
3907 * linux-low.cc: Remove "hostio.h" from includes.
3908 (linux_target_ops): Update.
3909 * lynx-low.cc (lynx_target_ops): Update.
3910 * nto-low.cc (nto_target_ops): Update.
3911 * win32-low.h (class win32_process_target): Update.
3912 * win32-low.cc (win32_target_ops): Update.
3913 (wince_hostio_last_error): Turn into ...
3914 (win32_process_target::hostio_last_error): ... this.
3916 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3918 Turn process_stratum_target's get_tls_address op into a method of
3921 * target.h (struct process_stratum_target): Remove the target op.
3922 (class process_target): Add the target op. Also add
3923 'supports_get_tls_address'.
3924 * target.cc (process_target::get_tls_address): Define.
3925 (process_target::supports_get_tls_address): Define.
3927 Update the derived classes and callers below.
3929 * server.cc (handle_query): Update.
3930 * linux-low.cc (linux_target_ops): Update.
3931 (linux_process_target::supports_get_tls_address): Define.
3932 (linux_process_target::get_tls_address): Define.
3933 * linux-low.h (class linux_process_target): Update.
3934 * lynx-low.cc (lynx_target_ops): Update.
3935 * nto-low.cc (nto_target_ops): Update.
3936 * win32-low.cc (win32_target_ops): Update.
3938 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3940 Turn process_stratum_target's read_offsets op into a method of
3943 * target.h (struct process_stratum_target): Remove the target op.
3944 (class process_target): Add the target op. Also add
3945 'supports_read_offsets'.
3946 * target.cc (process_target::read_offsets): Define.
3947 (process_target::supports_read_offsets): Define.
3949 Update the derived classes and callers below.
3951 * server.cc (handle_query): Update.
3952 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3953 (linux_target_ops): Update.
3954 (linux_process_target::supports_read_offsets): Define.
3955 (linux_read_offsets): Turn into ...
3956 (linux_process_target::read_offsets): ... this.
3957 * linux-low.h (class linux_process_target): Update.
3958 * lynx-low.cc (lynx_target_ops): Update.
3959 * nto-low.cc (nto_target_ops): Update.
3960 * win32-low.cc (win32_target_ops): Update.
3962 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3964 Turn process_stratum_target's stopped_by_watchpoint and
3965 stopped_data_address ops into methods of process_target.
3967 * target.h (struct process_stratum_target): Remove the target ops.
3968 (class process_target): Add the target ops.
3969 * target.cc (process_target::stopped_by_watchpoint): Define.
3970 (process_target::stopped_data_address): Define.
3972 Update the derived classes and callers below.
3974 * remote-utils.cc (prepare_resume_reply): Update.
3975 * linux-low.cc (linux_target_ops): Update.
3976 (linux_stopped_by_watchpoint): Turn into ...
3977 (linux_process_target::stopped_by_watchpoint): ... this.
3978 (linux_stopped_data_address): Turn into ...
3979 (linux_process_target::stopped_data_address): ... this.
3980 * linux-low.h (class linux_process_target): Update.
3981 * lynx-low.cc (lynx_target_ops): Update.
3982 * nto-low.cc (nto_target_ops): Update.
3983 (nto_stopped_by_watchpoint): Turn into ...
3984 (nto_process_target::stopped_by_watchpoint): ... this.
3985 (nto_stopped_data_address): Turn into ...
3986 (nto_process_target::stopped_data_address): ... this.
3987 * nto-low.h (class nto_process_target): Update.
3988 * win32-low.cc (win32_target_ops): Update.
3989 (win32_stopped_by_watchpoint): Turn into ...
3990 (win32_process_target::stopped_by_watchpoint): ... this.
3991 (win32_stopped_data_address): Turn into ...
3992 (win32_process_target::stopped_data_address): ... this.
3993 * win32-low.h (class win32_process_target): Update.
3995 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3997 Turn process_stratum_target's supports_hardware_single_step op into
3998 a method of process_target.
4000 * target.h (struct process_stratum_target): Remove the target op.
4001 (class process_target): Add the target op.
4002 (target_supports_hardware_single_step): Update the macro.
4003 (target_can_do_hardware_single_step): Remove declaration.
4004 * target.cc (process_target::supports_hardware_single_step): Define.
4005 (target_can_do_hardware_single_step): Remove.
4007 Update the derived classes and callers below.
4009 * linux-low.h (class linux_process_target): Update.
4010 * linux-low.cc (linux_target_ops): Update.
4011 (linux_supports_hardware_single_step): Turn into ...
4012 (linux_process_target::supports_hardware_single_step): ... this.
4013 * lynx-low.h (class lynx_process_target): Update.
4014 * lynx-low.cc (lynx_target_ops): Update.
4015 (lynx_process_target::supports_hardware_single_step): Define.
4016 * nto-low.h (class nto_process_target): Update.
4017 * nto-low.cc (nto_target_ops): Update.
4018 (nto_process_target::supports_hardware_single_step): Define.
4019 * win32-low.h (class win32_process_target): Update.
4020 * win32-low.cc (win32_target_ops): Update.
4021 (win32_process_target::supports_hardware_single_step): Define.
4023 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4025 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4026 ops into methods of process_target.
4028 * target.h (struct process_stratum_target): Remove the target ops.
4029 (class process_target): Add the target ops.
4030 (target_stopped_by_hw_breakpoint): Update the macro.
4031 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4032 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4033 (process_target::supports_stopped_by_hw_breakpoint): Define.
4035 Update the derived classes and callers below.
4037 * linux-low.cc (linux_target_ops): Update.
4038 (linux_stopped_by_hw_breakpoint): Turn into ...
4039 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4040 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4041 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4042 * linux-low.h (class linux_process_target): Update.
4043 * lynx-low.cc (lynx_target_ops): Update.
4044 * nto-low.cc (nto_target_ops): Update.
4045 * win32-low.cc (win32_target_ops): Update.
4047 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4049 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4050 ops into methods of process_target.
4052 * target.h (struct process_stratum_target): Remove the target ops.
4053 (class process_target): Add the target ops.
4054 (target_stopped_by_sw_breakpoint): Update the macro.
4055 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4056 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4057 (process_target::supports_stopped_by_sw_breakpoint): Define.
4059 Update the derived classes and callers below.
4061 * linux-low.cc (linux_target_ops): Update.
4062 (linux_stopped_by_sw_breakpoint): Turn into ...
4063 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4064 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4065 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4066 * linux-low.h (class linux_process_target): Update.
4067 * lynx-low.cc (lynx_target_ops): Update.
4068 * nto-low.cc (nto_target_ops): Update.
4069 * win32-low.cc (win32_target_ops): Update.
4071 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4073 Turn process_stratum_target's insert_point and remove_point ops
4074 into methods of process_target.
4076 * target.h (struct process_stratum_target): Remove the target ops.
4077 (class process_target): Add the target ops.
4078 * target.cc (process_target::insert_point): Define.
4079 (process_target::remove_point): Define.
4081 Update the derived classes and callers below.
4083 * mem-break.cc (set_raw_breakpoint_at): Update.
4084 (delete_raw_breakpoint): Update.
4085 (uninsert_raw_breakpoint): Update.
4086 (reinsert_raw_breakpoint): Update.
4087 * linux-low.cc (linux_target_ops): Update.
4088 (linux_insert_point): Turn into ...
4089 (linux_process_target::insert_point): ... this.
4090 (linux_remove_point): Turn into ...
4091 (linux_process_target::remove_point): ... this.
4092 * linux-low.h (class linux_process_target): Update.
4093 * lynx-low.cc (lynx_target_ops): Update.
4094 * nto-low.cc (nto_target_ops): Update.
4095 (nto_insert_point): Turn into ...
4096 (nto_process_target::insert_point): ... this.
4097 (nto_remove_point): Turn into ...
4098 (nto_process_target::remove_point): ... this.
4099 * nto-low.h (class nto_process_target): Update.
4100 * win32-low.cc (win32_target_ops): Update.
4101 (win32_insert_point): Turn into ...
4102 (win32_process_target::insert_point): ... this.
4103 (win32_remove_point): Turn into ...
4104 (win32_process_target::remove_point): ... this.
4105 * win32-low.h (class win32_process_target): Update.
4107 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4109 Turn process_stratum_target's supports_z_point_type op into a
4110 method of process_target.
4112 * target.h (struct process_stratum_target): Remove the target op.
4113 (class process_target): Add the target op.
4114 * target.cc (process_target::supports_z_point_type): Define.
4116 Update the derived classes and callers below.
4118 * mem-break.cc (z_type_supported): Update.
4119 * linux-low.cc (linux_target_ops): Update.
4120 (linux_supports_z_point_type): Turn into ...
4121 (linux_process_target::supports_z_point_type): ... this.
4122 * linux-low.h (class linux_process_target): Update.
4123 * lynx-low.cc (lynx_target_ops): Update.
4124 * nto-low.cc (nto_target_ops): Update.
4125 (nto_supports_z_point_type): Turn into ...
4126 (nto_process_target::supports_z_point_type): ... this.
4127 * nto-low.h (class nto_process_target): Update.
4128 * win32-low.cc (win32_target_ops): Update.
4129 (win32_supports_z_point_type): Turn into ...
4130 (win32_process_target::supports_z_point_type): ... this.
4131 * win32-low.h (class win32_process_target): Update.
4133 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4135 Turn process_stratum_target's read_auxv op into a method of
4138 * target.h (class process_stratum_target): Remove the target op.
4139 (struct process_target): Add the target op. Also add
4140 'supports_read_auxv'.
4141 * target.cc (process_target::read_auxv): Define.
4142 (process_target::supports_read_auxv): Define.
4144 Update the derived classes and callers below.
4146 * server.cc (handle_qxfer_auxv): Update.
4147 (handle_query): Update.
4148 * linux-low.cc (linux_target_ops): Update.
4149 (linux_process_target::supports_read_auxv): Define.
4150 (linux_read_auxv): Turn into ...
4151 (linux_process_target::read_auxv): ... this.
4152 * linux-low.h (class linux_process_target): Update.
4153 * lynx-low.cc (lynx_target_ops): Update.
4154 * nto-low.cc (nto_target_ops): Update.
4155 (nto_process_target::supports_read_auxv): Define.
4156 (nto_read_auxv): Turn into ...
4157 (nto_process_target::read_auxv): ... this.
4158 * nto-low.h (class nto_process_target): Update.
4159 * win32-low.cc (win32_target_ops): Update.
4161 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4163 Turn process_stratum_target's request_interrupt op into a method of
4166 * target.h (struct process_stratum_target): Remove the target op.
4167 (class process_target): Add the target op.
4169 Update the derived classes and callers below.
4171 * remote-utils.cc (putpkt_binary_1): Update.
4172 (input_interrupt): Update.
4174 * server.cc (handle_v_requests): Update.
4175 * linux-low.cc (linux_target_ops): Update.
4176 (linux_request_interrupt): Turn into ...
4177 (linux_process_target::request_interrupt): ... this.
4178 * linux-low.h (class linux_process_target): Update.
4179 * lynx-low.cc (lynx_target_ops): Update.
4180 (lynx_request_interrupt): Turn into ...
4181 (lynx_process_target::request_interrupt): ... this.
4182 * lynx-low.h (class lynx_process_target): Update.
4183 * nto-low.cc (nto_target_ops): Update.
4184 (nto_request_interrupt): Turn into ...
4185 (nto_process_target::request_interrupt): ... this.
4186 * nto-low.h (class nto_process_target): Update.
4187 * win32-low.cc (win32_target_ops): Update.
4188 (win32_request_interrupt): Turn into ...
4189 (win32_process_target::request_interrupt): ... this.
4190 * win32-low.h (class win32_process_target): Update.
4192 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4194 Turn process_stratum_target's look_up_symbols op into a method of
4197 * target.h (struct process_stratum_target): Remove the target op.
4198 (class process_target): Add the target op.
4199 * target.cc (process_target::look_up_symbols): Define.
4201 Update the derived classes and callers below.
4203 * server.cc (handle_query): Update.
4204 * linux-low.cc (linux_target_ops): Update.
4205 (linux_look_up_symbols): Turn into ...
4206 (linux_process_target::look_up_symbols): ... this.
4207 * linux-low.h (class linux_process_target): Update.
4208 * lynx-low.cc (lynx_target_ops): Update.
4209 * nto-low.cc (nto_target_ops): Update.
4210 * win32-low.cc (win32_target_ops): Update.
4212 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4214 Turn process_stratum_target's read_memory and write_memory
4215 ops into methods of process_target.
4217 * target.h (struct process_stratum_target): Remove the target ops.
4218 (class process_target): Add the target ops.
4220 Update the derived classes and callers below.
4222 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4223 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4224 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4225 (arm_get_syscall_trapinfo): Update.
4226 * linux-cris-low.cc (cris_breakpoint_at): Update.
4227 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4228 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4229 * linux-mips-low.cc (mips_breakpoint_at): Update.
4230 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4231 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4232 * linux-sh-low.cc (sh_breakpoint_at): Update.
4233 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4234 (sparc_store_gregset_from_stack): Update.
4235 (sparc_breakpoint_at): Update.
4236 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4237 * linux-tile-low.cc (tile_breakpoint_at): Update.
4238 * linux-x86-low.cc (x86_breakpoint_at): Update.
4239 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4240 * mem-brea.cc (insert_memory_breakpoint): Update.
4241 (validate_inserted_breakpoint): Update.
4242 * target.cc (read_inferior_memory): Update.
4243 (target_write_memory): Update.
4244 * linux-low.cc (linux_target_ops): Update.
4245 (linux_read_memory): Make a wrapper around the read_memory target
4247 (linux_process_target::read_memory): Rename from linux_read_memory.
4248 (linux_write_memory): Turn into ...
4249 (linux_process_target::write_memory): ... this.
4250 * linux-low.h (class linux_process_target): Update.
4251 * lynx-low.cc (lynx_target_ops): Update.
4252 (lynx_read_memory): Turn into ...
4253 (lynx_process_target::read_memory): ... this.
4254 (lynx_write_memory): Turn into ...
4255 (lynx_process_target::write_memory): ... this.
4256 * lynx-low.h (class lynx_process_target): Update.
4257 * nto-low.cc (nto_target_ops): Update.
4258 (nto_read_memory): Turn into ...
4259 (nto_process_target::read_memory): ... this.
4260 (nto_write_memory): Turn into ...
4261 (nto_process_target::write_memory): ... this.
4262 * nto-low.h (class nto_process_target): Update.
4263 * win32-low.cc (win32_target_ops): Update.
4264 (win32_read_inferior_memory): Turn into ...
4265 (win32_process_target::read_memory): ... this.
4266 (win32_write_inferior_memory): Turn into ...
4267 (win32_process_target::write_memory): ... this.
4268 * win32-low.h (class win32_process_target): Update.
4270 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4272 Turn process_stratum_target's prepare_to_access_memory and
4273 done_accessing_memory ops into methods of process_target.
4275 * target.h (struct process_stratum_target): Remove the target ops.
4276 (class process_target): Add the target ops.
4277 * target.cc (process_target::prepare_to_access_memory): Define.
4278 (process_target::done_accessing_memory): Define.
4279 (prepare_to_access_memory): Update.
4280 (done_accessing_memory): Update.
4282 Update the derived classes and callers below.
4284 * linux-low.cc (linux_target_ops): Update.
4285 (linux_prepare_to_access_memory): Turn into ...
4286 (linux_process_target::prepare_to_access_memory): ... this.
4287 (linux_done_accessing_memory): Turn into ...
4288 (linux_process_target::done_accessing_memory): ... this.
4289 * linux-low.h (class linux_process_target): Update.
4290 * lynx-low.cc (lynx_target_ops): Update.
4291 * nto-low.cc (nto_target_ops): Update.
4292 * win32-low.cc (win32_target_ops): Update.
4294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4296 Turn process_stratum_target's fetch_registers and store_registers
4297 ops into methods of process_target.
4299 * target.h (struct process_stratum_target): Remove the target ops.
4300 (class process_target): Add the target ops.
4301 (fetch_inferior_registers): Update the macro.
4302 (store_inferior_registers): Update the macro.
4304 Update the derived classes and callers below.
4306 * linux-low.cc (linux_target_ops): Update.
4307 (linux_fetch_registers): Turn into ...
4308 (linux_process_target::fetch_registers): ... this.
4309 (linux_store_registers): Turn into ...
4310 (linux_process_target::store_registers): ... this.
4311 * linux-low.h (class linux_process_target): Update.
4312 * lynx-low.cc (lynx_target_ops): Update.
4313 (lynx_fetch_registers): Turn into ...
4314 (lynx_process_target::fetch_registers): ... this.
4315 (lynx_store_registers): Turn into ...
4316 (lynx_process_target::store_registers): ... this.
4317 * lynx-low.h (class lynx_process_target): Update.
4318 * nto-low.cc (nto_target_ops): Update.
4319 (nto_fetch_registers): Turn into ...
4320 (nto_process_target::fetch_registers): ... this.
4321 (nto_store_registers): Turn into ...
4322 (nto_process_target::store_registers): ... this.
4323 * nto-low.h (class nto_process_target): Update.
4324 * win32-low.cc (win32_target_ops): Update.
4325 (win32_fetch_inferior_registers): Turn into ...
4326 (win32_process_target::fetch_registers): ... this.
4327 (win32_store_inferior_registers): Turn into ...
4328 (win32_process_target::store_registers): ... this.
4329 * win32-low.h (class win32_process_target): Update.
4331 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4333 Turn process_stratum_target's wait op into a method of
4336 * target.h (struct process_stratum_target): Remove the target op.
4337 (class process_target): Add the target op.
4339 Update the derived classes and callers below.
4341 * target.cc (target_wait): Update.
4342 * linux-low.cc (linux_target_ops): Update.
4343 (linux_wait): Turn into ...
4344 (linux_process_target::wait): ... this.
4345 * linux-low.h (class linux_process_target): Update.
4346 * lynx-low.cc (lynx_target_ops): Update.
4347 (lynx_wait): Turn into ...
4348 (lynx_process_target::wait): ... this.
4349 * lynx-low.h (class lynx_process_target): Update.
4350 * nto-low.cc (nto_target_ops): Update.
4351 (nto_wait): Turn into ...
4352 (nto_process_target::wait): ... this.
4353 * nto-low.h (class nto_process_target): Update.
4354 * win32-low.cc (win32_target_ops): Update.
4355 (win32_wait): Turn into ...
4356 (win32_process_target::wait): ... this.
4357 (do_initial_child_stuff): Update.
4358 * win32-low.h (class win32_process_target): Update.
4360 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4362 Turn process_stratum_target's resume op into a method of
4365 * target.h (struct process_stratum_target): Remove the target op.
4366 (class process_target): Add the target op.
4368 Update the derived classes and callers below.
4370 * server.cc (resume): Update.
4371 * target.cc (target_stop_and_wait): Update.
4372 (target_continue_no_signal): Update.
4373 (target_continue): Update.
4374 * linux-low.cc (linux_target_ops): Update.
4375 (linux_resume): Turn into ...
4376 (linux_process_target::resume): ... this.
4377 * linux-low.h (class linux_process_target): Update.
4378 * lynx-low.cc (lynx_target_ops): Update.
4379 (lynx_resume): Turn into ...
4380 (lynx_process_target::resume): ... this.
4381 * lynx-low.h (class lynx_process_target): Update.
4382 * nto-low.cc (nto_target_ops): Update.
4383 (nto_resume): Turn into ...
4384 (nto_process_target::resume): ... this.
4385 * nto-low.h (class nto_process_target): Update.
4386 * win32-low.cc (win32_target_ops): Update.
4387 (win32_resume): Turn into ...
4388 (win32_process_target::resume): ... this.
4389 (win32_process_target::detach): Update.
4390 (do_initial_child_stuff): Update.
4391 * win32-low.h (class win32_process_target): Update.
4393 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4395 Turn process_stratum_target's thread_alive op into a method of
4398 * target.h (struct process_stratum_target): Remove the target op.
4399 (class process_target): Add the target op.
4400 (mythread_alive): Update the macro.
4402 Update the derived classes and callers below.
4404 * linux-low.cc (linux_target_ops): Update.
4405 (linux_thread_alive): Turn into ...
4406 (linux_process_target::thread_alive): ... this.
4407 (wait_for_sigstop): Update.
4408 * linux-low.h (class linux_process_target): Update.
4409 * lynx-low.cc (lynx_target_ops): Update.
4410 (lynx_thread_alive): Turn into ...
4411 (lynx_process_target::thread_alive): ... this.
4412 * lynx-low.h (class lynx_process_target): Update.
4413 * nto-low.cc (nto_target_ops): Update.
4414 (nto_thread_alive): Turn into ...
4415 (nto_process_target::thread_alive): ... this.
4416 * nto-low.h (class nto_process_target): Update.
4417 * win32-low.cc (win32_target_ops): Update.
4418 (win32_thread_alive): Turn into ...
4419 (win32_process_target::thread_alive): ... this.
4420 * win32-low.h (class win32_process_target): Update.
4422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4424 Turn process_stratum_target's join op into a method of
4427 * target.h (struct process_stratum_target): Remove the target op.
4428 (class process_target): Add the target op.
4429 (join_inferior): Update the macro.
4431 Update the derived classes and callers below.
4433 * linux-low.cc (linux_target_ops): Update.
4434 (linux_join): Turn into ...
4435 (linux_process_target::join): ... this.
4436 * linux-low.h (class linux_process_target): Update.
4437 * lynx-low.cc (lynx_target_ops): Update.
4438 (lynx_join): Turn into ...
4439 (lynx_process_target::join): ... this.
4440 * lynx-low.h (class lynx_process_target): Update.
4441 * nto-low.cc (nto_target_ops): Update.
4442 (nto_process_target::join): Define.
4443 * nto-low.h (class nto_process_target): Update.
4444 * win32-low.cc (win32_target_ops): Update.
4445 (win32_join): Turn into ...
4446 (win32_process_target::join): ... this.
4447 * win32-low.h (class win32_process_target): Update.
4449 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4451 Turn process_stratum_target's mourn op into a method of
4454 * target.h (struct process_stratum_target): Remove the target op.
4455 (class process_target): Add the target op.
4457 Update the derived classes and callers below.
4459 * target.cc (target_mourn_inferior): Update.
4460 * linux-low.cc (linux_target_ops): Update.
4461 (linux_mourn): Turn into ...
4462 (linux_process_target::mourn): ... this.
4463 (handle_extended_wait): Update.
4464 (linux_process_target::kill): Update.
4465 (linux_process_target::detach): Update.
4466 * linux-low.h (class linux_process_target): Update.
4467 * lynx-low.cc (lynx_target_ops): Update.
4468 (lynx_mourn): Turn into ...
4469 (lynx_process_target::mourn): ... this.
4470 * lynx-low.h (class lynx_process_target): Update.
4471 * nto-low.cc (nto_target_ops): Update.
4472 (nto_mourn): Turn into ...
4473 (nto_process_target::mourn): ... this.
4474 * nto-low.h (class nto_process_target): Update.
4475 * win32-low.cc (win32_target_ops): Update.
4476 (win32_mourn): Turn into ...
4477 (win32_process_target::mourn): ... this.
4478 * win32-low.h (class win32_process_target): Update.
4480 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4482 Turn process_stratum_target's detach op into a method of
4485 * target.h (struct process_stratum_target): Remove the target op.
4486 (class process_target): Add the target op.
4487 (detach_inferior): Update the macro.
4489 Update the derived classes and callers below.
4491 * linux-low.cc (linux_target_ops): Update.
4492 (linux_detach): Turn into ...
4493 (linux_process_target::detach): ... this.
4494 * linux-low.h (class linux_process_target): Update.
4495 * lynx-low.cc (lynx_target_ops): Update.
4496 (lynx_detach): Turn into ...
4497 (lynx_process_target::detach): ... this.
4498 * lynx-low.h (class lynx_process_target): Update.
4499 * nto-low.cc (nto_target_ops): Update.
4500 (nto_detach): Turn into ...
4501 (nto_process_target::detach): ... this.
4502 * nto-low.h (class nto_process_target): Update.
4503 * win32-low.cc (win32_target_ops): Update.
4504 (win32_detach): Turn into ...
4505 (win32_process_target::detach): ... this.
4506 * win32-low.h (class win32_process_target): Update.
4508 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4510 Turn process_stratum_target's kill op into a method of
4513 * target.h (struct process_stratum_target): Remove the target op.
4514 (class process_target): Add the target op.
4516 Update the derived classes and callers below.
4518 * target.cc (kill_inferior): Update.
4519 * linux-low.cc (linux_target_ops): Update.
4520 (linux_kill): Turn into ...
4521 (linux_process_target::kill): ... this.
4522 * linux-low.h (class linux_process_target): Update.
4523 * lynx-low.cc (lynx_target_ops): Update.
4524 (lynx_kill): Turn into ...
4525 (lynx_process_target::kill): ... this.
4526 * lynx-low.h (class lynx_process_target): Update.
4527 * nto-low.cc (nto_target_ops): Update.
4528 (nto_kill): Turn into ...
4529 (nto_process_target::kill): ... this.
4530 * nto-low.h (class nto_process_target): Update.
4531 * win32-low.cc (win32_target_ops): Update.
4532 (win32_kill): Turn into ...
4533 (win32_process_target::kill): ... this.
4534 * win32-low.h (class win32_process_target): Update.
4536 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4538 Turn process_stratum_target's attach op into a method of
4541 * target.h (struct process_stratum_target): Remove the target op.
4542 (class process_target): Add the target op.
4543 (myattach): Update the macro.
4545 Update the derived classes and callers below.
4547 * linux-low.cc (linux_target_ops): Update.
4548 (linux_attach): Turn into ...
4549 (linux_process_target::attach): ... this.
4550 * linux-low.h (class linux_process_target): Update.
4551 * lynx-low.cc (lynx_target_ops): Update.
4552 (lynx_attach): Turn into ...
4553 (lynx_process_target::attach): ... this.
4554 * lynx-low.h (class lynx_process_target): Update.
4555 * nto-low.cc (nto_target_ops): Update.
4556 (nto_attach): Turn into ...
4557 (nto_process_target::attach): ... this.
4558 * nto-low.h (class nto_process_target): Update.
4559 * win32-low.cc (win32_target_ops): Update.
4560 (win32_attach): Turn into ...
4561 (win32_process_target::attach): ... this.
4562 * win32-low.h (class win32_process_target): Update.
4564 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4566 Turn process_stratum_target's post_create_inferior op into a method
4569 * target.h (struct process_stratum_target): Remove the target op.
4570 (class process_target): Add the target op.
4571 (target_post_create_inferior): Update the macro.
4572 * target.cc (process_target::post_create_inferior): Define.
4574 Update the derived classes and callers below.
4576 * linux-low.cc (linux_target_ops): Update.
4577 (linux_post_create_inferior): Turn into ...
4578 (linux_process_target::post_create_inferior): ... this.
4579 * linux-low.h (class linux_process_target): Update.
4580 * lynx-low.cc (lynx_target_ops): Update.
4581 * nto-low.cc (nto_target_ops): Update.
4582 * win32-low.cc (win32_target_ops): Update.
4584 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4586 Turn process_stratum_target's create_inferior op into a method of
4589 * target.h (struct process_stratum_target): Remove the target op.
4590 (class process_target): Add the target op.
4591 (create_inferior): Rename the macro to ...
4592 (target_create_inferior): ... this.
4594 Update the derived classes and callers below.
4596 * server.cc (handle_v_run): Update.
4597 (captured_main): Update.
4598 (process_serial_event): Update.
4599 * linux-low.cc (linux_target_ops): Update.
4600 (linux_create_inferior): Turn into ...
4601 (linux_process_target::create_inferior): ... this.
4602 * linux-low.h (class linux_process_target): Update.
4603 * lynx-low.cc (lynx_target_ops): Update.
4604 (lynx_create_inferior): Turn into ...
4605 (lynx_process_target::create_inferior): ... this.
4606 * lynx-low.h (class lynx_process_target): Update.
4607 * nto-low.cc (nto_target_ops): Update.
4608 (nto_create_inferior): Turn into ...
4609 (nto_process_target::create_inferior): ... this.
4610 * nto-low.h (class nto_process_target): Update.
4611 * win32-low.cc (win32_target_ops): Update.
4612 (win32_create_inferior): Turn into ...
4613 (win32_process_target::create_inferior): ... this.
4614 * win32-low.h (class win32_process_target): Update.
4616 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4618 * target.h (class process_target): New class definition.
4619 (struct process_stratum_target) <pt>: New field with type
4621 * linux-low.h (class linux_process_target): Define as a derived
4622 class of 'process_target'.
4623 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4625 * lynx-low.h (class lynx_process_target): Define as a derived
4626 class of 'process_target'.
4627 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4629 * nto-low.h (class nto_process_target): Define as a derived
4630 class of 'process_target'.
4631 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4633 * win32-low.h (class win32_process_target): Define as a derived
4634 class of 'process_target'.
4635 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4638 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4640 * configure: Regenerate.
4642 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4643 Andrew Burgess <andrew.burgess@embecosm.com>
4645 * linux-riscv-low.cc: New file.
4646 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4647 and nat/riscv-linux-tdesc.c.
4648 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4649 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4652 2020-02-14 Tom Tromey <tom@tromey.com>
4654 * acinclude.m4: Don't include acx_configure_dir.m4.
4655 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4656 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4657 (all, install-only, uninstall, clean-info, clean)
4658 (maintainer-clean): Don't recurse.
4659 (subdir_do, all-lib): Remove.
4660 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4662 (generated_files): Update.
4663 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4664 * configure: Rebuild.
4665 * configure.ac: Don't configure gnulib or libiberty.
4668 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4670 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4671 preparing the command line for CreateProcess.
4672 (win32_create_inferior): Reflect the program name in debugging
4673 output that shows the process and its command line.
4675 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4677 * Makefile.in: Rename source files from .c to .cc.
4678 * %.c: Rename to %.cc.
4679 * configure.ac: Rename server.c to server.cc.
4680 * configure: Re-generate.
4682 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4684 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4686 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4688 * win32-low.c (win32_create_inferior): Set signal_pid.
4690 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4691 Pedro Alves <palves@redhat.com>
4693 Skip building gdbserver in a cross-configuration.
4694 * configure.srv: Set $gdbserver_host depending on whether $target
4695 is $host. Use $gdbserver_host instead of $host.
4697 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4699 * configure: Re-generate.
4701 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4703 * configure: Re-generate.
4705 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4707 * acinclude.m4: Update warning.m4 path.
4709 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4711 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4712 (handle_exception): Set siginfo_er.
4713 (win32_xfer_siginfo): New function.
4715 2020-02-07 Tom Tromey <tom@tromey.com>
4716 Pedro Alves <palves@redhat.com>
4718 * README: Update build documentation.
4719 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4721 * configure.ac: Update paths.
4722 * configure: Rebuild.
4723 * acinclude.m4: Update paths.
4724 * Makefile.in: Update include paths.
4725 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4726 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4727 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4728 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4729 (%-generated.c): Update paths.
4730 * Move entire directory from ../gdb/gdbserver.
4732 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4734 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4736 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4738 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4739 assignment instead of srv_linux_obj.
4741 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4743 * server.c (handle_qxfer_libraries): Write segment-address with
4746 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4748 * Makefile.in (install-strip): New target.
4749 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4750 * aclocal.m4: Regenerate.
4751 * configure: Regenerate.
4752 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4754 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4756 * Makefile.in (SFILES): Adjust paths to point to real files.
4757 (OBS): Move waitstatus.o to target/waitstatus.o.
4758 (TAGS): Transform paths appropriately.
4760 (nat/%.o): ... this pattern rule.
4762 (target/%.o): ... this pattern rule.
4763 * configure.srv: Adjust paths throughout to include nat/ prefix
4764 with the revant files.
4765 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4766 * configure: Regenerate.
4768 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4770 * Makefile.in (TAGS): Remove config files from the recipe.
4772 2020-01-14 Tom Tromey <tom@tromey.com>
4774 * configure: Rebuild.
4775 * configure.ac: Remove any checks that were added to common.m4.
4776 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4779 2020-01-14 Tom Tromey <tom@tromey.com>
4781 * server.h: Include config.h.
4782 * gdbreplay.c: Include config.h.
4783 * configure: Rebuild.
4784 * configure.ac: Don't source common.host.
4785 * acinclude.m4: Update path.
4786 * Makefile.in (INCSUPPORT): New variable.
4787 (INCLUDE_CFLAGS): Add INCSUPPORT.
4788 (SFILES): Update paths.
4789 (version-generated.c): Update path to create-version.sh.
4790 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4792 2020-01-14 Tom Tromey <tom@tromey.com>
4794 * configure.ac (LIBS): Use WIN32APILIBS.
4795 (USE_WIN32API): Don't define.
4796 * configure: Rebuild.
4798 2020-01-14 Tom Tromey <tom@tromey.com>
4800 * configure: Rebuild.
4802 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4804 * Makefile.in (%-generated.c): Remove rule for files from
4807 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4809 * configure: Re-generate.
4811 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4813 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4815 * tracepoint.c (stop_tracing, flush_trace_buffer,
4816 about_to_request_buffer_space, get_trace_state_variable_value,
4817 set_trace_state_variable_value, gdb_collect): Add declaration.
4819 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4821 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4822 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4823 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4824 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4825 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4828 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4830 * inferiors.c: Include gdbsupport/common-inferior.h.
4832 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4834 * hostio-errno.c: Include hostio.h.
4836 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4838 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4841 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4843 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4844 * linux-arm-tdesc.h: Include arch/arm.h.
4846 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4848 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4850 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4852 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4853 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4855 2020-01-10 Pedro Alves <palves@redhat.com>
4857 * fork-child.c (post_fork_inferior): Pass target down to
4859 * inferiors.c (switch_to_thread): Add process_stratum_target
4861 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4862 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4863 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4864 * remote-utils.c (prepare_resume_reply): Pass the target to
4866 * target.c (the_target): Now a process_stratum_target.
4867 (done_accessing_memory): Pass the target to switch_to_thread.
4868 (set_target_ops): Ajust to use process_stratum_target.
4869 * target.h (struct target_ops): Rename to ...
4870 (struct process_stratum_target): ... this.
4871 (the_target, set_target_ops): Adjust.
4872 (prepare_to_access_memory): Adjust comment.
4873 * win32-low.c (child_xfer_memory): Adjust to use
4874 process_stratum_target.
4875 (win32_target_ops): Now a process_stratum_target.
4877 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4878 Pedro Alves <palves@redhat.com>
4880 * win32-low.c (get_child_debug_event): Extract the fatal exception
4881 from the exit status and convert to the equivalent Posix signal
4883 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4884 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4886 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4888 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4890 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4892 * server.c (gdbserver_version): Change copyright year to 2020.
4893 * gdbreplay.c (gdbreplay_version): Likewise.
4895 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4897 * configure: Regenerate.
4898 * configure.ac: Quote variable arguments of test.
4900 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4902 * Makefile.in: Fix build with GNU Make 3.81
4904 2019-12-16 Tom Tromey <tromey@adacore.com>
4906 * server.c (get_exec_file): Constify result.
4908 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4910 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4911 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4912 * config.in: Regenerate.
4913 * configure: Regenerate.
4914 * configure.ac: Don't check for strerror.
4915 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4916 Call safe_strerror instead of strerror.
4917 * server.h (strerror): Remove this now-unnecessary declaration.
4918 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4920 (gdb_agent_helper_thread): Likewise.
4921 * utils.c (perror_with_name): Likewise.
4923 2019-11-26 Tom Tromey <tom@tromey.com>
4925 * configure, config.in: Rebuild.
4927 2019-11-26 Tom Tromey <tom@tromey.com>
4929 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4930 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4932 * configure, config.in: Rebuild.
4934 2019-11-26 Tom Tromey <tom@tromey.com>
4936 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4937 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4938 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4939 * acinclude.m4: Include ax_pthread.m4.
4940 * config.in, configure: Rebuild.
4942 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4944 * debug.c (debug_set_output): Call safe_strerror instead of
4946 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4947 (linux_kill_one_lwp): Likewise.
4948 (linux_detach_one_lwp): Likewise.
4949 (linux_wait_for_event_filtered): Likewise.
4950 (store_register): Likewise.
4951 * lynx-low.c (lynx_attach): Likewise.
4952 * mem-break.c (insert_memory_breakpoint): Likewise.
4953 (remove_memory_breakpoint): Likewise.
4954 (delete_fast_tracepoint_jump): Likewise.
4955 (set_fast_tracepoint_jump): Likewise.
4956 (uninsert_fast_tracepoint_jumps_at): Likewise.
4957 (reinsert_fast_tracepoint_jumps_at): Likewise.
4958 * nto-low.c (nto_xfer_memory): Likewise.
4959 (nto_resume): Likewise.
4961 2019-11-20 Luis Machado <luis.machado@linaro.org>
4963 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4964 instead of register count.
4965 * tdesc.c (tdesc_contains_feature): New function.
4966 * tdesc.h (tdesc_contains_feature): New prototype.
4968 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4970 * Makefile.in: Add safe-strerror.c.
4971 * configure: Regenerate.
4972 * configure.ac: Don't source common.host.
4974 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4976 * config.in: Regenerate.
4977 * configure: Regenerate.
4979 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4981 * ax.c (ax_printf): Handle size_t_arg.
4983 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4985 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4986 * mi/mi-main.c (output_cores): Likewise.
4987 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4988 (linux_xfer_osdata_modules): Likewise.
4989 * remote.c (register_remote_support_xml): Likewise.
4990 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4991 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4993 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4995 * configure: Regenerate.
4996 * configure.ac: Remove check for strerror_r.
4998 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5000 * config.in: Regenerate.
5001 * configure: Regenerate.
5002 * configure.ac: Also check for strerror_r.
5004 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5006 * ax.h (debug_agent): Remove duplicate declaration.
5008 2019-10-26 Tom de Vries <tdevries@suse.de>
5010 * linux-aarch64-low.c: Fix typos in comments.
5011 * linux-arm-low.c: Same.
5012 * linux-low.c: Same.
5013 * linux-ppc-low.c: Same.
5014 * proc-service.c: Same.
5017 * tracepoint.c: Same.
5018 * win32-low.c: Same.
5020 2019-10-25 Tom Tromey <tromey@adacore.com>
5022 * utils.c (xstrdup): Remove.
5024 2019-10-23 Tom Tromey <tom@tromey.com>
5026 * configure, config.in: Rebuild.
5028 2019-10-23 Tom Tromey <tom@tromey.com>
5030 * configure: Rebuild.
5031 * acinclude.m4: Use m4_include, not sinclude.
5033 2019-10-17 Tom Tromey <tromey@adacore.com>
5035 * configure: Rebuild.
5036 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5037 in AC_CONFIG_FILES invocation.
5038 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5041 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5043 * server.c: Include xml-builtin.h.
5044 (get_xml_features): Don't declare xml_builtins here.
5046 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5048 * Makefile.in: Remove references to vec-ipa.o.
5050 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5052 * Makefile.in: Remove references to vec.c.
5054 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5056 * server.c (server_waiting): Change to bool.
5057 (extended_protocol): Likewise.
5058 (response_needed): Likewise.
5059 (exit_requested): Likewise.
5060 (run_once): Likewise.
5061 (report_no_resumed): Likewise.
5062 (non_stop): Likewise.
5063 (disable_packet_vCont): Likewise.
5064 (disable_packet_Tthread): Likewise.
5065 (disable_packet_qC): Likewise.
5066 (disable_packet_qfThreadInfo): Likewise.
5067 (handle_general_set): Update.
5068 (handle_detach): Update.
5069 (handle_monitor_command): Update.
5070 (handle_query): Update.
5071 (captured_main): Update.
5072 (process_serial_event): Update.
5073 * server.h (server_waiting): Change to bool.
5074 (disable_packet_vCont): Likewise.
5075 (disable_packet_Tthread): Likewise.
5076 (disable_packet_qC): Likewise.
5077 (disable_packet_qfThreadInfo): Likewise.
5078 (run_once): Likewise.
5079 (non_stop): Likewise.
5080 * target.c (target_stop_and_wait): Update.
5082 2019-10-02 Tom Tromey <tromey@adacore.com>
5084 * Makefile.in (SFILES): Add common-inferior.c.
5085 (OBS): Add common-inferior.o.
5086 * server.c (startup_with_shell): Don't define.
5088 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5090 * linux-low.c (linux_low_read_btrace): Update for change to
5093 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5095 * debug.c (debug_threads): Remove comment in favor of the header.
5096 * debug.h (using_threads): Add declaration.
5097 (debug_threads): Add comment.
5098 * linux-aarch64-low.c: Include debug.h and remove declaration of
5100 * nto-low.c: Likewise.
5101 * remote-utils.c: Likewise.
5102 * thread-db.c: Likewise.
5104 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5106 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5107 and powerpc-cell64l-ipa.o.
5108 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5109 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5110 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5113 * spu-low.c: Remove file.
5115 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5116 (parse_spufs_run): Remove.
5117 (ppc_get_pc): Remove Cell/B.E. support.
5118 (ppc_set_pc): Likewise.
5119 (ppc_breakpoint_at): Likewise.
5120 (ppc_arch_setup): Likewise.
5121 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5122 tdesc_powerpc_cell32l.
5123 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5124 or init_registers_powerpc_cell32l.
5125 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5126 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5127 or init_registers_powerpc_cell32l.
5128 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5129 (init_registers_powerpc_cell32l): Remove prototype.
5130 (init_registers_powerpc_cell64l): Likewise.
5132 * target.h (struct target_ops): Remove qxfer_spu member.
5133 * server.c (handle_qxfer_spu): Remove.
5134 (qxfer_packets): Remove entry for "spu".
5135 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5136 * linux-low.c (SPUFS_MAGIC): Remove.
5137 (spu_enumerate_spu_ids): Remove.
5138 (linux_qxfer_spu): Remove.
5139 (linux_target_ops): Remove qxfer_spu member.
5140 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5141 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5142 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5144 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5146 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5147 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5148 * config.in: Regenerate.
5149 * configure: Regenerate.
5151 2019-08-15 Tom Tromey <tromey@adacore.com>
5153 * target.c (target_write_memory): Use gdb::byte_vector.
5155 2019-08-15 Tom Tromey <tromey@adacore.com>
5157 * tracepoint.c (write_inferior_data_pointer)
5158 (write_inferior_integer, write_inferior_int8)
5159 (write_inferior_uinteger, m_tracepoint_action_download)
5160 (r_tracepoint_action_download, x_tracepoint_action_download)
5161 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5162 (download_agent_expr, download_tracepoint_1)
5163 (download_trace_state_variables, upload_fast_traceframes): Update.
5164 * server.c (gdb_write_memory): Update.
5165 * remote-utils.c (relocate_instruction): Update.
5166 * proc-service.c (ps_pdwrite): Update.
5167 * mem-break.c (remove_memory_breakpoint)
5168 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5169 (uninsert_fast_tracepoint_jumps_at)
5170 (reinsert_fast_tracepoint_jumps_at): Update.
5171 * linux-x86-low.c (append_insns)
5172 (i386_install_fast_tracepoint_jump_pad)
5173 (amd64_write_goto_address, i386_write_goto_address): Update.
5174 * linux-s390-low.c (append_insns, s390_write_goto_address):
5176 * linux-ppc-low.c (ppc_relocate_instruction)
5177 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5178 (ppc_write_goto_address): Update.
5179 * linux-aarch64-low.c (append_insns): Update.
5180 * target.h (struct target_ops): Update.
5181 (write_inferior_memory): Don't declare.
5182 * target.c (target_write_memory): Rename from
5183 write_inferior_memory. Remove old target_write_memory.
5185 2019-08-15 Tom Tromey <tromey@adacore.com>
5187 * target.c (write_inferior_memory): Use std::vector.
5189 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5192 * configure.ac: Drop enable-libmcheck support.
5193 * configure, config.in: Rebuild.
5194 * acinclude.m4: Don't include it.
5196 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5198 * configure.srv: Remove Arm xml files.
5200 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5202 * configure.srv: Add new files. Remove xml generated files.
5203 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5205 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5206 * linux-aarch32-tdesc.c: New file.
5207 * linux-aarch32-tdesc.h: New file.
5208 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5209 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5210 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5211 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5212 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5213 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5214 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5215 (arm_read_description): Call arm_linux_read_description.
5216 (initialize_low_arch): Don't init registers.
5217 * linux-arm-tdesc.c: New file.
5218 * linux-arm-tdesc.h: New file.
5220 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5222 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5223 Move counter inside for.
5224 (arm_read_description): Check ptrace earlier.
5225 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5227 2019-07-09 Tom Tromey <tom@tromey.com>
5229 * configure: Rebuild.
5230 * configure.ac: Change common to gdbsupport.
5231 * acinclude.m4: Change common to gdbsupport.
5232 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5233 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5234 common to gdbsupport.
5235 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5236 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5237 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5238 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5239 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5240 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5241 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5242 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5243 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5244 common to gdbsupport.
5246 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5248 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5250 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5252 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5254 * configure.srv: Remove legacy xml.
5255 * linux-aarch64-low.c (initialize_low_arch): Remove
5256 initialize_low_tdesc call.
5257 * linux-aarch64-tdesc-selftest.c: Remove file.
5258 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5259 * linux-x86-low.c (initialize_low_arch): Remove
5260 initialize_low_tdesc call.
5261 * linux-x86-tdesc-selftest.c: Remove file.
5262 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5264 2019-06-20 Tom de Vries <tdevries@suse.de>
5266 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5267 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5269 2019-06-19 Tom de Vries <tdevries@suse.de>
5271 * debug.h (debug_write): Change return type to ssize_t.
5272 * debug.c (debug_write): Same.
5274 2019-06-14 Tom Tromey <tom@tromey.com>
5276 * configure.ac: Use new path to gnulib.
5277 * configure: Rebuild.
5278 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5281 2019-06-11 Tom Tromey <tom@tromey.com>
5283 * Makefile.in (SFILES): Add alloc.c.
5285 (IPA_OBJS): Add alloc-ipa.o.
5286 (alloc-ipa.o): New target.
5287 (%.o: ../%.c): New pattern rule.
5289 2019-06-10 Tom Tromey <tromey@adacore.com>
5291 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5292 end warning with a newline.
5293 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5295 * thread-db.c (attach_thread): Don't end warning with a newline.
5296 (thread_db_notice_clone): Likewise.
5297 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5299 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5300 end warning with a newline.
5302 2019-06-04 Pedro Alves <palves@redhat.com>
5304 * server.c (captured_main): Use make_unique_xstrdup.
5306 2019-06-02 Tom Tromey <tom@tromey.com>
5308 * gdbreplay.c (fromhex): Remove.
5309 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5311 2019-05-29 Tom Tromey <tromey@adacore.com>
5313 * configure: Rebuild.
5315 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5317 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5318 sign extension code on 32-bit builds.
5320 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5323 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5325 2019-04-19 Tom Tromey <tom@tromey.com>
5327 * server.c (struct vstop_notif): Derive from notif_event.
5329 (queue_stop_reply): Update.
5330 (remove_all_on_match_ptid): Change type. Rewrite.
5331 (discard_queued_stop_replies): Rewrite.
5332 (in_queued_stop_replies_ptid): Change type.
5333 (in_queued_stop_replies): Rewrite.
5334 (notif_stop): Update.
5335 (queue_stop_reply_callback): Update.
5336 (captured_main): Don't call initialize_notif.
5337 (push_stop_notification): Update.
5338 * notif.c (notif_write_event, handle_notif_ack)
5339 (notif_event_enque, notif_push): Update.
5340 (notif_event_xfree, initialize_notif): Remove.
5341 * notif.h (struct notif_event): Include <list>, not
5343 (struct notif_server) <queue>: Now a std::list.
5344 (notif_event_p): Remove typedef.
5345 (initialize_notif): Don't declare.
5346 (struct notif_event): Add virtual destructor.
5348 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5350 * ax.c (ax_vdebug): Call debug_printf.
5351 * debug.c (debug_write): New function.
5352 * debug.h (debug_write): New declaration.
5353 * linux-low.c (sigchld_handler): Call debug_write.
5355 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5357 * debug.c (debug_set_output): New function.
5358 (debug_vprintf): Send output to debug_file.
5359 (debug_flush): Likewise.
5360 * debug.h (debug_set_output): New declaration.
5361 * server.c (handle_monitor_command): Add debug-file option.
5362 (captured_main): Likewise.
5364 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5366 * debug.c (remote_debug): Add definition.
5367 * debug.h (remote_debug): Add declaration.
5368 * hostio.c (remote_debug): Remove declaration.
5369 * remote-utils.c (struct ui_file): Likewise.
5370 (remote_debug): Likewise.
5371 * remote-utils.h (remote_debug): Likewise,
5372 * server.c (remote_debug): Remove definition.
5374 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5376 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5377 when using a 64-bit gdbserver.
5379 2019-04-09 Tom Tromey <tromey@adacore.com>
5381 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5383 2019-04-08 Tom Tromey <tom@tromey.com>
5385 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5387 (linux_resume_one_lwp): Likewise.
5389 2019-04-08 Tom Tromey <tom@tromey.com>
5391 * gdbreplay.c: Update.
5392 * linux-low.c: Update.
5395 2019-04-08 Tom Tromey <tom@tromey.com>
5397 * server.c: Use C++ exception handling.
5398 * linux-low.c: Use C++ exception handling.
5399 * gdbreplay.c: Use C++ exception handling.
5401 2019-04-08 Tom Tromey <tom@tromey.com>
5403 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5404 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5405 (captured_main, main): Update.
5406 * gdbreplay.c (main): Update.
5408 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5410 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5411 value in argument pointer, return 1 if the entry is found and 0
5412 otherwise. Move comment.
5413 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5414 * linux-low.h (linux_get_auxv): Declare.
5415 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5417 2019-04-05 Tom Tromey <tromey@adacore.com>
5419 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5422 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5424 * linux-low.c (AT_HWCAP2): Add define if not already included.
5426 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5428 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5429 (aarch64_arch_setup): Call linux_get_hwcap.
5430 * linux-arm-low.c (arm_get_hwcap): Remove function.
5431 (arm_read_description): Call linux_get_hwcap.
5432 * linux-low.c (linux_get_auxv): New function.
5433 (linux_get_hwcap): Likewise.
5434 (linux_get_hwcap2): Likewise.
5435 * linux-low.h (linux_get_hwcap): New declaration.
5436 (linux_get_hwcap2): Likewise.
5437 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5438 (ppc_arch_setup): Call linux_get_hwcap.
5439 * linux-s390-low.c (s390_get_hwcap): Remove function.
5440 (s390_arch_setup): Call linux_get_hwcap.
5442 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5443 Jiong Wang <jiong.wang@arm.com>
5445 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5446 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5448 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5450 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5451 Jiong Wang <jiong.wang@arm.com>
5453 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5454 (aarch64_get_hwcap): New function.
5455 (aarch64_arch_setup): Read APIA hwcap.
5457 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5458 Jiong Wang <jiong.wang@arm.com>
5460 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5461 (initialize_low_tracepoint): Likewise.
5462 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5463 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5464 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5465 (aarch64_linux_read_description): Likewise.
5466 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5468 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5470 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5471 i386_create_target_description for 'segments' parameter.
5472 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5473 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5474 * win32-i386-low.c (i386_arch_setup): Likewise.
5476 2019-03-12 Tom Tromey <tromey@adacore.com>
5478 * linux-low.c (iterate_over_lwps): Update.
5480 2019-03-06 Tom Tromey <tom@tromey.com>
5482 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5483 (captured_main): Use SCOPE_EXIT.
5485 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5487 * configure.srv: Use '$enable_unittest' instead of '$development'
5488 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5491 2019-02-27 Tom Tromey <tromey@adacore.com>
5493 * gdbreplay.c (logchar): Handle \r\n.
5495 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5497 * linux-low.c (linux_attach): Add process before lwp.
5498 * server.c (attach_inferior): Check if already attached.
5500 2019-02-07 Tom Tromey <tom@tromey.com>
5502 * x86-tdesc.h: Rename include guard.
5503 * x86-low.h: Add include guard.
5504 * wincecompat.h: Rename include guard.
5505 * win32-low.h: Add include guard.
5506 * utils.h: Rename include guard.
5507 * tracepoint.h: Rename include guard.
5508 * tdesc.h: Rename include guard.
5509 * target.h: Rename include guard.
5510 * server.h: Rename include guard.
5511 * remote-utils.h: Rename include guard.
5512 * regcache.h: Rename include guard.
5513 * nto-low.h: Rename include guard.
5514 * notif.h: Add include guard.
5515 * mem-break.h: Rename include guard.
5516 * lynx-low.h: Add include guard.
5517 * linux-x86-tdesc.h: Add include guard.
5518 * linux-s390-tdesc.h: Add include guard.
5519 * linux-ppc-tdesc-init.h: Add include guard.
5520 * linux-low.h: Add include guard.
5521 * linux-aarch64-tdesc.h: Add include guard.
5522 * linux-aarch32-low.h: Add include guard.
5523 * inferiors.h: Rename include guard.
5524 * i387-fp.h: Rename include guard.
5525 * hostio.h: Rename include guard.
5526 * gdbthread.h: Rename include guard.
5527 * gdb_proc_service.h: Rename include guard.
5528 * event-loop.h: Rename include guard.
5529 * dll.h: Rename include guard.
5530 * debug.h: Rename include guard.
5531 * ax.h: Rename include guard.
5533 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5536 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5537 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5539 2019-01-25 Tom Tromey <tom@tromey.com>
5541 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5543 2019-01-25 Tom Tromey <tom@tromey.com>
5545 * win32-low.c: Fix common/ includes.
5546 * win32-i386-low.c: Fix common/ includes.
5547 * tracepoint.c: Fix common/ includes.
5548 * thread-db.c: Fix common/ includes.
5549 * target.h: Fix common/ includes.
5550 * symbol.c: Fix common/ includes.
5551 * spu-low.c: Fix common/ includes.
5552 * server.h: Fix common/ includes.
5553 * server.c: Fix common/ includes.
5554 * remote-utils.c: Fix common/ includes.
5555 * regcache.h: Fix common/ includes.
5556 * regcache.c: Fix common/ includes.
5557 * nto-x86-low.c: Fix common/ includes.
5558 * notif.h: Fix common/ includes.
5559 * mem-break.h: Fix common/ includes.
5560 * lynx-low.c: Fix common/ includes.
5561 * lynx-i386-low.c: Fix common/ includes.
5562 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5563 * linux-x86-low.c: Fix common/ includes.
5564 * linux-low.c: Fix common/ includes.
5565 * inferiors.h: Fix common/ includes.
5566 * i387-fp.c: Fix common/ includes.
5567 * hostio.c: Fix common/ includes.
5568 * hostio-errno.c: Fix common/ includes.
5569 * gdbthread.h: Fix common/ includes.
5570 * gdbreplay.c: Fix common/ includes.
5571 * fork-child.c: Fix common/ includes.
5572 * event-loop.c: Fix common/ includes.
5574 (enum gdb_agent_op): Fix common/ includes.
5576 2019-01-21 Tom Tromey <tom@tromey.com>
5578 * tracepoint.c: Fix includes.
5579 * remote-utils.c: Fix includes.
5580 * linux-x86-low.c: Fix includes.
5582 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5584 * gdbreplay.c (gdbreplay_version): Update copyright year in
5586 * server.c (gdbserver_version): Likewise.
5588 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5590 * linux-low.c (add_lwp): Switch ordering.
5592 2018-11-29 Tom Tromey <tom@tromey.com>
5594 * win32-low.c (win32_join): Take pid, not process.
5595 * target.h (struct target_ops) <join>: Change argument type.
5596 (join_inferior): Change argument name.
5597 * spu-low.c (spu_join): Take pid, not process.
5598 * server.c (handle_detach): Preserve pid before destroying
5600 * lynx-low.c (lynx_join): Take pid, not process.
5601 * linux-low.c (linux_join): Take pid, not process.
5603 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5605 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5606 (aarch64_cannot_fetch_register): Likewise.
5607 (struct linux_target_ops): Update references.
5609 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5611 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5613 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5615 * configure.srv (ipa_ppc_linux_regobj): Add
5616 powerpc-isa207-htm-vsx32l-ipa.o and
5617 powerpc-isa207-htm-vsx64l-ipa.o.
5618 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5619 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5620 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5621 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5622 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5623 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5624 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5625 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5626 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5627 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5628 (init_registers_powerpc_isa207_htm_vsx32l)
5629 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5630 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5631 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5632 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5633 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5634 (ppc_store_tm_ctarregset): New functions.
5635 (ppc_regsets): Add entries for HTM regsets.
5636 (ppc_arch_setup): Set htm in features struct when needed. Set
5637 sizes for the HTM regsets.
5638 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5639 (initialize_low_arch): Call
5640 init_registers_powerpc_isa207_htm_vsx32l and
5641 init_registers_powerpc_isa207_htm_vsx64l.
5642 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5643 PPC_TDESC_ISA207_HTM_VSX.
5644 (initialize_low_tracepoint): Call
5645 init_registers_powerpc_isa207_htm_vsx32l and
5646 init_registers_powerpc_isa207_htm_vsx64l.
5648 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5650 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5651 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5652 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5653 (ppc_store_pmuregset): New functions.
5654 (ppc_regsets): Add entries for ebb and pmu regsets.
5655 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5656 pmu regsets are available. Set sizes for these regsets.
5658 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5660 * configure.srv (ipa_ppc_linux_regobj): Add
5661 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5662 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5663 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5664 rs6000/powerpc-isa207-vsx32l.xml, and
5665 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5666 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5667 <PPC_TDESC_ISA207_VSX>: New enum value.
5668 (init_registers_powerpc_isa207_vsx32l): Declare.
5669 (init_registers_powerpc_isa207_vsx64l): Declare.
5670 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5671 (ppc_store_tarregset): New function.
5672 (ppc_regsets): Add entry for the TAR regset.
5673 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5674 size for the TAR regsets.
5675 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5676 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5677 and init_registers_powerpc_isa207_vsx64l.
5678 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5679 (initialize_low_tracepoint): Call
5680 init_registers_powerpc_isa207_vsx32l and
5681 init_registers_powerpc_isa207_vsx64l.
5683 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5684 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5686 * configure.srv (ipa_ppc_linux_regobj): Add
5687 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5688 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5689 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5690 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5691 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5692 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5693 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5694 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5695 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5696 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5697 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5698 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5699 (ppc_hwcap): Add comment.
5700 (ppc_hwcap2): New global.
5701 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5702 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5703 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5704 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5705 when needed. Set sizes for the the DSCR and PPR regsets.
5706 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5707 (initialize_low_arch): Call
5708 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5709 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5710 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5711 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5712 (initialize_low_tracepoint): Call
5713 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5714 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5716 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5718 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5720 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5721 Simon Marchi <simark@simark.ca>
5723 * acinclude.m4: Include "../selftest.m4".
5724 * configure: Regenerate.
5725 * configure.ac: Use "GDB_AC_SELFTEST".
5726 * configure.srv: Use "$enable_unittests" instead of
5727 "$development" when checking whether unit tests have been
5729 * server.c (captured_main): Update message informing that
5730 selftests have been disabled.
5732 2018-10-04 Tom Tromey <tom@tromey.com>
5734 * configure: Rebuild.
5736 2018-10-04 Tom Tromey <tom@tromey.com>
5738 * server.c (handle_status): Rename inner "thread".
5739 (process_serial_event): Declare "res" in 'm' case.
5740 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5741 (iterate_over_lwps): Rename inner "thread".
5742 (linux_qxfer_libraries_svr4): Rename inner "len".
5743 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5745 2018-10-01 Gary Benson <gbenson@redhat.com>
5747 * gdb_proc_service.h: Moved common code to
5748 common/gdb_proc_service.h.
5750 2018-10-01 Gary Benson <gbenson@redhat.com>
5752 * gdb_proc_service.h: Synchronize comments and whitespace with
5753 GDB's version of this file.
5755 2018-09-25 Tom Tromey <tom@tromey.com>
5757 * configure: Rebuild.
5758 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5760 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5762 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5763 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5764 ($(IPA_LIB)): Sort IPA_OBJS.
5766 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5768 * Makefile.in: Remove references to $(ADD_DEPS).
5770 2018-09-16 Tom Tromey <tom@tromey.com>
5772 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5774 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5777 2018-09-05 Tom Tromey <tom@tromey.com>
5779 * configure: Rebuild.
5781 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5784 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5786 2018-08-27 Tom Tromey <tom@tromey.com>
5789 * configure: Rebuild.
5791 2018-08-27 Tom Tromey <tom@tromey.com>
5793 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5794 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5795 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5796 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5797 (s390x_emit_stack_adjust): Add casts to unsigned char.
5799 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5803 * server.h (struct client_state) <disable_randomization>:
5806 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5808 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5810 (mips_supply_ptrace_register): Likewise.
5812 2018-07-22 Tom Tromey <tom@tromey.com>
5814 * configure: Rebuild.
5816 2018-07-22 Tom Tromey <tom@tromey.com>
5818 * win32-low.c (win32_create_inferior): Remove unused variables.
5819 * gdbreplay.c (remote_open): Remove unused variable.
5820 * remote-utils.c (remote_prepare): Remove unused variable.
5821 * x86-tdesc.h (X86_TDESC_H): Define.
5822 (amd64_expedite_regs): Define conditionally.
5823 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5824 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5825 * remote-utils.c (readchar): Remove unused variable.
5827 2018-07-13 Pedro Alves <palves@redhat.com>
5829 * linux-low.c (linux_kill): Change parameter to process_info
5830 pointer instead of pid. Adjust.
5831 * lynx-low.c (lynx_kill): Likewise.
5832 * nto-low.c (nto_kill): Likewise.
5833 * spu-low.c (spu_kill): Likewise.
5834 * win32-low.c (win32_kill): Likewise.
5835 * server.c (handle_v_kill, kill_inferior_callback)
5836 (detach_or_kill_for_exit): Adjust.
5837 * target.c (kill_inferior): Change parameter to process_info
5838 pointer instead of pid. Adjust.
5839 * target.h (struct target_ops) <kill>: Change parameter to
5840 process_info pointer instead of pid. Adjust all implementations
5842 (kill_inferior): Likewise.
5844 2018-07-13 Pedro Alves <palves@redhat.com>
5846 * linux-low.c (linux_detach, linux_join): Change parameter to
5847 process_info pointer instead of pid. Adjust.
5848 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5849 * nto-low.c (nto_detach): Likewise.
5850 * spu-low.c (spu_detach, spu_join): Likewise.
5851 * win32-low.c (win32_detach, win32_join): Likewise.
5852 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5853 * target.h (struct target_ops) <detach, join>: Change parameter to
5854 process_info pointer instead of pid. Adjust all implementations
5856 (detach_inferior, join_inferior): Rename 'pid' parameter to
5859 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5860 Jan Kratochvil <jan.kratochvil@redhat.com>
5861 Paul Fertser <fercerpav@gmail.com>
5862 Tsutomu Seki <sekiriki@gmail.com>
5864 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5865 (OBS): Add 'common/netstuff.o'.
5866 (GDBREPLAY_OBS): Likewise.
5867 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5868 (remote_open): Implement support for IPv6
5870 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5872 (handle_accept_event): Accept connections from IPv6 sources.
5873 (remote_prepare): Handle IPv6-style hostnames; implement
5874 support for IPv6 connections.
5875 (remote_open): Implement support for printing connections from
5878 2018-07-11 Pedro Alves <palves@redhat.com>
5881 * mem-break.c (any_persistent_commands): Add process_info
5882 parameter and use it instead of relying on the current process.
5883 Change return type to bool.
5884 * mem-break.h (any_persistent_commands): Add process_info
5885 parameter and change return type to bool.
5886 * server.c (handle_detach): Remove require_running_or_return call.
5887 Look up the process_info for the process we're about to detach.
5888 If not found, return back error to GDB. Adjust
5889 any_persistent_commands call to pass down a process pointer.
5891 2018-07-11 Pedro Alves <palves@redhat.com>
5893 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5894 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5895 instead of collect_register_by_name.
5896 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5897 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5899 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5900 Pedro Alves <palves@redhat.com>
5902 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5904 2018-07-03 Tom Tromey <tom@tromey.com>
5906 * linux-low.c: Update.
5907 * lynx-low.c: Update.
5908 * mem-break.c: Update.
5909 * nto-low.c: Update.
5910 * remote-utils.c: Update.
5912 * spu-low.c: Update.
5914 * win32-low.c: Update.
5916 2018-07-03 Tom Tromey <tom@tromey.com>
5920 2018-07-03 Tom Tromey <tom@tromey.com>
5922 * linux-low.c: Update.
5924 2018-07-03 Tom Tromey <tom@tromey.com>
5928 2018-07-03 Tom Tromey <tom@tromey.com>
5930 * linux-low.c: Update.
5931 * linux-mips-low.c: Update.
5932 * lynx-low.c: Update.
5933 * nto-low.c: Update.
5934 * remote-utils.c: Update.
5936 * spu-low.c: Update.
5938 * thread-db.c: Update.
5940 2018-07-03 Tom Tromey <tom@tromey.com>
5942 * linux-low.c: Update.
5943 * linux-mips-low.c: Update.
5944 * lynx-low.c: Update.
5945 * mem-break.c: Update.
5946 * nto-low.c: Update.
5947 * remote-utils.c: Update.
5949 * spu-low.c: Update.
5951 * tracepoint.c: Update.
5953 2018-07-03 Tom Tromey <tom@tromey.com>
5955 * linux-low.c: Update.
5956 * linux-ppc-low.c: Update.
5957 * linux-x86-low.c: Update.
5958 * proc-service.c: Update.
5960 * spu-low.c: Update.
5961 * thread-db.c: Update.
5962 * win32-low.c: Update.
5964 2018-07-03 Tom Tromey <tom@tromey.com>
5966 * linux-low.c: Update.
5967 * lynx-low.c: Update.
5968 * nto-low.c: Update.
5969 * remote-utils.c: Update.
5970 * spu-low.c: Update.
5971 * thread-db.c: Update.
5972 * win32-low.c: Update.
5974 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5976 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5977 parameter in call to 'amd64_create_target_description'.
5979 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5981 * x86-tdesc.h: Remove executable permission flag.
5983 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5985 * configure.ac: Remove AC_PREREQ, add missing quoting.
5986 * configure: Re-generate.
5987 * config.in: Re-generate.
5988 * aclocal.m4: Re-generate.
5990 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5992 * tracepoint.h (current_traceframe): Remove declaration.
5994 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5996 * linux-aarch64-low.c (is_sve_tdesc): New function.
5997 (aarch64_sve_regs_copy_to_regcache): Likewise.
5998 (aarch64_sve_regs_copy_from_regcache): Likewise.
5999 (aarch64_regs_info): Add SVE checks.
6000 (initialize_low_arch): Initialize SVE.
6002 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6004 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6006 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6008 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6009 (initialize_low_tracepoint): Likewise
6010 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6011 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6013 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6015 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6017 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6019 * server.h (PBUFSIZ): Increase size
6021 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6023 * regcache.c (regcache::raw_compare): New function.
6024 * regcache.h (regcache::raw_compare): New declaration.
6026 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6028 * regcache.c (new_register_cache): Use new.
6029 (free_register_cache): Use delete.
6030 (register_data): Use const.
6031 (supply_register): Move body inside regcache.
6032 (regcache::raw_supply): New override function.
6033 (collect_register): Move body inside regcache.
6034 (regcache::raw_collect): New override function.
6035 (regcache::get_register_status): New override function.
6036 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6038 2018-06-09 Tom Tromey <tom@tromey.com>
6040 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6042 (event_queue): Use std::queue.
6043 (gdb_event_xfree): Remove.
6044 (initialize_event_loop, process_event, wait_for_event): Update.
6046 2018-06-08 Stan Cox <scox@redhat.com>
6048 * win32-low.c (win32_create_inferior): last_ptid and last_status
6049 moved to client_state.
6051 2018-06-08 Pedro Alves <palves@redhat.com>
6053 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6054 common/common-exceptions.o, common/common-utils.o,
6055 common/errors.o, common/print-utils.o and utils.o.
6056 * gdbreplay.c: Include "common-defs.h" instead of the two
6057 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6058 string.h or alloca.h.
6059 (perror_with_name): Delete.
6060 (remote_open): Use xstrdup instead of strdup.
6061 (main): Rename to ...
6062 (captured_main): ... this.
6065 2018-06-08 Tom Tromey <tom@tromey.com>
6067 * linux-low.c (linux_low_read_btrace): Update.
6069 2018-06-04 Stan Cox <scox@redhat.com>
6071 * server.h (struct client_state): New.
6072 * server.c (cont_thread, general_thread, multi_process)
6073 (report_fork_events, report_vfork_events, report_exec_events)
6074 (report_thread_events, swbreak_feature, hwbreak_feature)
6075 (vCont_supported, disable_randomization, pass_signals)
6076 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6077 Moved to client_state.
6078 * remote-utils.c (remote_debug, noack_mode)
6079 (transport_is_reliable): Moved to client_state.
6080 * tracepoint.c (current_traceframe): Moved to client_state.
6083 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6084 linux-low.c, remote-utils.h, target.c: Use client_state.
6086 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6088 * configure.srv: Add new c/h file.
6090 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6092 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6095 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6097 * gdb.arch/mips-fpregset-core.exp: New test.
6098 * gdb.arch/mips-fpregset-core.c: New test source.
6100 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6103 * hostio.c (require_int): Do not report overflow for integers
6104 between 0xfffffff and 0x7fffffff.
6106 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6108 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6109 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6110 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6112 (the_low_target): Wire them.
6114 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6116 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6117 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6118 mode. Call collect_register_by_name with vscr using
6119 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6120 (ppc_store_vrregset): Add and set vscr_offset variable as in
6121 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6124 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6126 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6127 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6128 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6130 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6132 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6133 (ppc_store_vsxregset): Likewise.
6134 (ppc_fill_vrregset): Likewise.
6135 (ppc_store_vrregset): Likewise.
6136 (ppc_fill_evrregset): Likewise.
6137 (ppc_store_evrregset): Likewise.
6138 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6139 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6142 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6144 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6145 wordsize of the inferior. Call ppc_linux_target_wordsize.
6147 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6149 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6150 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6151 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6152 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6153 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6154 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6155 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6156 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6157 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6158 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6159 (tdesc_powerpc_e500l): Remove.
6160 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6161 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6162 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6163 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6165 (ppc_arch_setup): Remove target description matching code. Fill a
6166 ppc_linux_features struct and call ppc_linux_match_description
6169 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6171 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6172 width of the requested register exceeds the width of the
6174 (mips_cannot_store_register): Likewise.
6176 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6178 * linux-mips-low.c (mips_fetch_register): New function. Update
6180 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6181 (the_low_target): Wire `mips_fetch_register'.
6183 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6185 * lynx-i386-low.c (LYNXOS_178): New macro.
6186 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6187 the layout on LynxOS-178.
6188 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6189 handle floating point registers that are not supported by
6192 2018-05-10 Tom Tromey <tom@tromey.com>
6194 * configure: Rebuild.
6196 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6199 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6200 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6201 Use it to set the expedite_regs field in the given tdesc.
6202 * x86-tdesc.h: New file.
6203 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6204 Adjust following the addition of the new expedite_regs parameter
6205 to init_target_desc.
6206 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6207 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6208 (i386_linux_read_description, amd64_linux_read_description):
6209 Adjust following the addition of the new expedite_regs parameter
6210 to init_target_desc.
6211 * lynx-i386-low.c: #include "x86-tdesc.h".
6212 (lynx_i386_arch_setup): Adjust following the addition of the new
6213 expedite_regs parameter to init_target_desc.
6214 * nto-x86-low.c: #include "x86-tdesc.h".
6215 (nto_x86_arch_setup): Adjust following the addition of the new
6216 expedite_regs parameter to init_target_desc.
6217 * win32-i386-low.c: #include "x86-tdesc.h".
6218 (i386_arch_setup): Adjust following the addition of the new
6219 expedite_regs parameter to init_target_desc.
6221 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6224 * win32-low.c (win32_create_inferior): Add call to my_wait
6225 setting last_status global.
6227 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6230 * win32-low.c (create_process): Only call gdb_tilde_expand if
6231 inferior_cwd is not NULL.
6233 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6235 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6236 registers to the cache if their values have changed.
6237 (i387_xsave_to_cache): Provide default values for x87 control
6238 registers when these features are available, but disabled.
6239 * regcache.c (supply_register_by_name_zeroed): New function.
6240 * regcache.h (supply_register_by_name_zeroed): Declare new
6243 2018-05-07 Tom Tromey <tom@tromey.com>
6245 * configure: Rebuild.
6247 2018-05-04 Tom Tromey <tom@tromey.com>
6249 * configure: Rebuild.
6251 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6252 Pedro Alves <palves@redhat.com>
6254 * linux-aarch64-low.c (aarch64_stopped_data_address):
6257 2018-04-27 Tom Tromey <tom@tromey.com>
6259 * configure: Rebuild.
6261 2018-04-23 Tom Tromey <tom@tromey.com>
6263 * configure: Rebuild.
6265 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6267 * Makefile.in (depcomp): Add "..".
6268 (all_deps_files): New and use it.
6270 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6272 * configure.srv (aarch64*-*-linux*): Don't include xml.
6273 (i[34567]86-*-cygwin*): Likewise.
6274 (i[34567]86-*-linux*): Likewise.
6275 (i[34567]86-*-lynxos*): Likewise.
6276 (i[34567]86-*-mingw32ce*): Likewise.
6277 (i[34567]86-*-mingw*): Likewise.
6278 (i[34567]86-*-nto*): Likewise.
6279 (tic6x-*-uclinux): Likewise.
6280 (x86_64-*-linux*): Likewise.
6281 (x86_64-*-mingw*): Likewise.
6282 (x86_64-*-cygwin*): Likewise.
6284 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6286 * tdesc.c: Remove xml parameter.
6288 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6290 * server.c (get_features_xml): Remove cast.
6291 * tdesc.c (void target_desc::accept): Fill in function.
6292 (tdesc_get_features_xml): Remove old xml creation.
6293 (print_xml_feature::visit_pre): Add xml vistor.
6294 * tdesc.h (struct target_desc): Make xmltarget mutable.
6295 (tdesc_get_features_xml): Remove declaration.
6297 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6299 * tdesc.c (tdesc_architecture_name): Add new function.
6300 (tdesc_osabi_name): Likewise.
6301 (tdesc_get_features_xml): Use new functions.
6303 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6305 * tdesc.c (tdesc_create_flags): Remove.
6306 (tdesc_add_flag): Likewise.
6307 (tdesc_named_type): Likewise.
6308 (tdesc_create_union): Likewise.
6309 (tdesc_create_struct): Likewise.
6310 (tdesc_create_vector): Likewise.
6311 (tdesc_add_bitfield): Likewise.
6312 (tdesc_add_field): Likewise.
6313 (tdesc_set_struct_size): Likewise.
6315 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6317 * tdesc.c (~target_desc): Remove implictly deleted items.
6318 (init_target_desc): Iterate all features.
6319 (tdesc_get_features_xml): Use vector.
6320 (tdesc_create_feature): Create feature.
6321 * tdesc.h (tdesc_feature) Remove
6322 (target_desc): Add features.
6324 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6326 * Makefile.in: Add common/tdesc.c
6327 * tdesc.c (init_target_desc): init all reg_defs from register
6329 (tdesc_create_reg): Create tdesc_reg.
6330 * tdesc.h (tdesc_feature): Add register vector.
6332 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6334 * tdesc.h (struct target_desc) <features>: Change type to
6335 std::vector<std::string>.
6336 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6338 (tdesc_get_features_xml): Likewise.
6339 (tdesc_create_feature): Likewise.
6341 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6343 * regcache.c (find_register_by_number): Return a ref.
6344 (find_regno): Use references.
6345 (register_size): Likewise.
6346 (register_data): Likewise.
6347 * tdesc.c (target_desc::~target_desc): Remove free calls.
6348 (target_desc::operator==): Use std::vector compare.
6349 (init_target_desc): Use reference.
6350 (tdesc_create_reg): Use reg constructors.
6351 * tdesc.h (struct target_desc): Replace pointer with object.
6353 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6355 * regcache.c (find_register_by_number): Make static.
6356 (find_regno): Use find_register_by_number
6357 * regcache.h (struct reg): Remove declaration.
6359 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6361 * tdesc.c (target_desc::~target_desc): Move to here.
6362 (target_desc::operator==): Likewise.
6363 * tdesc.h (target_desc::~target_desc): Move from here.
6364 (target_desc::operator==): Likewise.
6366 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6368 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6370 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6372 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6374 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6375 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6376 and init_registers_s390_gs_linux64.
6378 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6380 * linux-s390-low.c (s390_fill_gs): Remove function.
6381 (s390_fill_gsbc): Remove function.
6382 (s390_regsets): Set fill functions for the guarded storage regsets
6385 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6387 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6388 the word size. Add comment.
6389 (s390_get_wordsize): New function.
6390 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6391 pswm with it. Instead, use s390_get_wordsize to determine the
6392 word size first and derive the correct tdesc from that directly.
6394 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6396 * Makefile.in: Include silent-rules.mk.
6397 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6398 (COMPILE): Add ECHO_CXX.
6399 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6400 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6401 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6402 (version-generated.c): Add ECHO_GEN.
6403 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6404 (IPAGENT_COMPILE): Add ECHO_CXX.
6405 (%-generated.c): Add ECHO_REGDAT.
6407 2018-03-14 Tom Tromey <tom@tromey.com>
6410 * ax.c (ax_printf): Special case for NULL.
6412 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6414 * linux-low.c (linux_qxfer_libraries_svr4): Use
6415 xml_escape_text_append.
6417 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6419 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6421 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6423 * server.c (handle_general_set): Remove unnecessary xstrdup.
6425 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6427 * server.c (parse_debug_format_options): Adjust to
6428 delim_string_to_char_ptr_vec changes.
6429 * thread-db.c (thread_db_load_search): Adjust to
6430 dirnames_to_char_ptr_vec changes.
6432 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6434 * target.h (target_enable_btrace, target_disable_btrace)
6435 (target_read_btrace, target_read_btrace_conf): Turn macro into
6436 inline function. Throw error if target method is not defined.
6437 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6438 check for btrace target method. Be prepared to handle exceptions
6439 from btrace target methods.
6441 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6443 * server.c (captured_main): Change order of error message printed
6444 when the current working directory cannot be found.
6446 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6448 * server.c: Include "filenames.h" and "pathstuff.h".
6449 (program_name): Delete variable.
6450 (program_path): New anonymous class.
6451 (get_exec_wrapper): Use "program_path" instead of
6453 (handle_v_run): Likewise.
6454 (captured_main): Likewise.
6455 (process_serial_event): Likewise.
6457 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6459 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6460 (OBJS): Add "pathstuff.o".
6461 * server.c (current_directory): New global variable.
6462 (captured_main): Initialize "current_directory".
6464 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6466 * tdesc.c: Use common/tdesc.h.
6467 * tdesc.h: Likewise.
6469 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6470 Simon Marchi <simon.marchi@ericsson.com>
6472 * Makefile.in: Switch order of make rules.
6474 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6476 * Makefile.in: Add common directory in build.
6477 * configure.ac: Add common reference.
6478 * configure: Regenerate.
6480 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6482 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6483 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6484 * spu-low.c (spu_target_ops): Likewise.
6485 * win32-low.c (win32_target_ops): Likewise.
6486 * server.c (supported_btrace_packets): Report packets unconditionally.
6487 * target.h (target_ops) <supports_btrace>: Remove.
6488 (target_supports_btrace): Remove.
6490 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6492 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6493 (handle_btrace_disable): Change return type to void. Use exceptions
6495 (handle_btrace_general_set): Catch exception and copy message to
6498 2018-02-08 Tom Tromey <tom@tromey.com>
6500 * linux-low.c (install_software_single_step_breakpoints): Use
6501 make_scoped_restore.
6502 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6503 (do_restore_current_thread_cleanup): Remove.
6504 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6507 2018-02-08 Tom Tromey <tom@tromey.com>
6509 * mem-break.c (set_raw_breakpoint_at): Use
6510 gdb::unique_xmalloc_ptr.
6512 2018-01-30 Pedro Alves <palves@redhat.com>
6515 * target.c (target_terminal::terminal_state): Rename to ...
6516 (target_terminal::m_terminal_state): ... this.
6518 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6520 * linux-low.c (handle_extended_wait): Surround call to
6521 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6523 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6525 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6526 linux_ptrace_attach_fail_reason_string now returning an
6528 (linux_attach): Likewise.
6529 * thread-db.c (attach_thread): Likewise.
6531 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6534 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6535 checking for fs_base/gs_base fields in struct user_regs_struct.
6536 * configure: Regenerate.
6538 2018-01-16 Yao Qi <yao.qi@linaro.org>
6541 * linux-low.c (fetch_register): Call supply_register instead of
6544 2018-01-08 Yao Qi <yao.qi@linaro.org>
6545 Simon Marchi <simon.marchi@ericsson.com>
6547 * Makefile.in (OBS): Remove selftest.o.
6548 * configure.ac: Set srv_selftest_objs if $development is true.
6549 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6550 * configure: Re-generated.
6551 * server.c (captured_main): Wrap variable selftest_filter with
6554 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6556 * server.c (parse_debug_format_options): Return std::string.
6557 (handle_monitor_command, captured_main): Adjust.
6559 2018-01-05 Pedro Alves <palves@redhat.com>
6562 * server.c (captured_main): Pass quiet=false to
6563 save_original_signals_state.
6565 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6567 * gdbreplay.c (gdbreplay_version): Update copyright year in
6569 * server.c (gdbserver_version): Likewise.
6571 2017-12-08 Tom Tromey <tom@tromey.com>
6573 * ax.c (ax_printf): Update.
6575 2017-12-07 Yao Qi <yao.qi@linaro.org>
6577 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6578 aarch64_linux_read_description.
6579 * linux-amd64-ipa.c (idx2mask): New array.
6580 (get_ipa_tdesc): Move idx2mask out.
6581 (initialize_low_tracepoint): Initialize target descriptions.
6582 * linux-i386-ipa.c (idx2mask): New array.
6583 (get_ipa_tdesc): Move idx2mask out.
6584 (initialize_low_tracepoint): Initialize target descriptions.
6586 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6588 * tdesc.c (struct tdesc_type): Change return type.
6589 (tdesc_add_flag): Change parameter type.
6590 (tdesc_add_bitfield): Likewise.
6591 (tdesc_add_field): Likewise.
6592 (tdesc_set_struct_size): Likewise.
6594 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6596 * regcache.c (registers_to_string): Remove unused variable.
6598 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6600 * inferiors.c (for_each_inferior_with_data): Remove.
6601 * inferiors.h (for_each_inferior_with_data): Remove.
6602 * server.c (handle_qxfer_threads_worker): Change parameter type.
6603 (handle_qxfer_threads_proper): Use for_each_thread.
6605 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6607 * inferiors.c (for_each_inferior): Remove.
6608 (clear_inferiors): Use for_each_thread.
6609 * inferiors.h (for_each_inferior): Remove.
6610 * linux-low.c (linux_wait_for_event_filtered): Use
6612 (linux_stabilize_threads): Likewise.
6613 * regcache.c (regcache_release): Likewise.
6614 * server.c (gdb_wants_all_threads_stopped): Likewise.
6615 (clear_pending_status_callback): Remove.
6616 (handle_status): Use for_each_thread.
6617 (captured_main): Likewise.
6618 * win32-low.c (child_init_thread_list): Likewise.
6619 (win32_clear_inferiors): Likewise.
6620 (fake_breakpoint_event): Likewise.
6622 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6624 * inferiors.h (find_inferior): Remove.
6625 * inferiors.c (find_inferior): Remove.
6627 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6629 * linux-low.c (resume_status_pending_p): Update comment.
6630 (need_step_over_p): Update comment.
6632 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6634 * linux-low.c (proceed_one_lwp): Return void, change parameter
6636 (unsuspend_and_proceed_one_lwp): Likewise.
6637 (proceed_all_lwps): Use for_each_thread.
6638 (unstop_all_lwps): Likewise.
6640 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6642 * linux-low.c (linux_resume_one_thread): Return void, take
6644 (linux_resume): Use for_each_thread.
6646 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6648 * linux-low.c (send_sigstop_callback): Return void, change
6649 parameter type. Rename to...
6650 (send_sigstop): ... this.
6651 (suspend_and_send_sigstop_callback): Return void, change parameter
6653 (suspend_and_send_sigstop): ... this.
6654 (stop_all_lwps): Use for_each_thread.
6656 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6658 * linux-low.c (lwp_running): Return bool, remove unused
6660 (linux_stabilize_threads): Use find_thread.
6662 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6664 * linux-low.c (select_singlestep_lwp_callback): Remove.
6665 (count_events_callback): Remove.
6666 (select_event_lwp_callback): Remove.
6667 (select_event_lwp): Use find_thread/for_each_thread.
6669 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6671 * linux-low.c (not_stopped_callback): Return bool, take filter
6673 (linux_wait_for_event_filtered): Use find_thread.
6674 (linux_wait_1): Likewise.
6676 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6678 * linux-low.c (same_lwp): Remove.
6679 (find_lwp_pid): Use find_thread.
6681 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6683 * linux-low.c (delete_lwp_callback): Remove.
6684 (linux_mourn): Use for_each_thread.
6686 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6688 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6689 args parameter, don't check for pid.
6690 (linux_detach): Use for_each_thread.
6692 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6694 * linux-low.c (struct counter): Remove.
6695 (second_thread_of_pid_p): Remove.
6696 (last_thread_of_process_p): Use find_thread.
6698 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6700 * inferiors.c (find_inferior_in_random): Remove.
6701 * inferiors.h (find_inferior_in_random): Remove.
6702 * linux-low.c (status_pending_p_callback): Return bool, accept
6703 parameter ptid directly.
6704 (linux_wait_for_event_filtered): Use find_thread_in_random.
6705 (linux_wait_1): Likewise.
6707 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6709 * inferiors.c (find_inferior_id): Remove.
6710 (find_thread_ptid): Move implemention from find_inferior_id to
6712 * inferiors.h (find_inferior_id): Remove.
6713 * server.c (handle_status): Use find_thread_ptid.
6714 (process_serial_event): Likewise.
6715 * thread-db.c (find_one_thread): Likewise.
6716 (thread_db_thread_handle): Likewise.
6717 * win32-low.c (thread_rec): Likewise.
6718 (child_delete_thread): Likewise.
6719 (win32_thread_alive): Likewise.
6720 (get_child_debug_event): Likewise.
6722 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6724 * linux-mips-low.c (update_watch_registers_callback): Return
6725 void, remove pid_p parameter, don't check for pid.
6726 (mips_insert_point, mips_remove_point): Use for_each_thread.
6728 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6730 * lynx.low (lynx_delete_thread_callback): Remove.
6731 (lynx_mourn): Use for_each_thread.
6733 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6735 * regcache.c (regcache_invalidate_one): Remove.
6736 (regcache_invalidate_pid): use for_each_thread.
6738 2017-11-26 Tom Tromey <tom@tromey.com>
6740 * linux-low.c (linux_create_inferior): Update.
6742 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6744 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6746 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6748 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6749 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6750 * linux-aarch64-tdesc-selftest.c: New file.
6751 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6753 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6755 * configure.srv: Add new file.
6756 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6757 * linux-aarch64-tdesc-selftest.c: New file.
6758 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6760 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6762 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6763 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6764 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6766 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6768 * configure.srv: Add new files.
6769 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6770 aarch64_linux_read_description.
6771 * linux-aarch64-low.c (aarch64_linux_read_description):
6772 Merge with aarch64_arch_setup.
6773 (aarch64_arch_setup): Call aarch64_linux_read_description.
6774 * linux-aarch64-tdesc.c: New file.
6775 * linux-aarch64-tdesc.h: New file.
6777 2017-11-24 Yao Qi <yao.qi@linaro.org>
6779 * configure.srv: Set $srv_regobj for tic6x-linux.
6780 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6781 (tic6x_read_description): Move some code to tic6x_arch_setup.
6782 (tic6x_tdesc_test): New function.
6783 (initialize_low_arch): Call selftests::register_test.
6785 2017-11-22 Yao Qi <yao.qi@linaro.org>
6787 * remote-utils.c (prepare_resume_reply): Use memcpy.
6789 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6791 * linux-low.c (kill_one_lwp_callback): Return void, take
6792 argument directly, don't filter on pid.
6793 (linux_kill): Use for_each_thread.
6795 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6797 * linux-low.c (need_step_over_p): Return bool, remove dummy
6799 (linux_resume, proceed_all_lwps): Use find_thread.
6801 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6803 * linux-low.c (resume_status_pending_p): Return bool, remove
6805 (linux_resume): Use find_thread.
6807 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6809 * linux-low.c (struct thread_resume_array): Remove.
6810 (linux_set_resume_request): Return void, take arguments
6812 (linux_resume): Use for_each_thread.
6814 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6816 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6817 return bool, remove data argument.
6818 (linux_stabilize_threads): Use find_thread.
6820 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6822 * linux-low.c (unsuspend_one_lwp): Remove.
6823 (unsuspend_all_lwps): Use for_each_thread, inline code from
6826 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6828 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6829 * linux-low.c (struct iterate_over_lwps_args): Remove.
6830 (iterate_over_lwps_filter): Remove.
6831 (iterate_over_lwps): Use find_thread.
6833 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6835 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6836 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6837 code from reset_lwp_ptrace_options_callback.
6839 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6841 * linux-arm-low.c (struct update_registers_data): Remove.
6842 (update_registers_callback): Return void, take arguments
6843 directly, don't check thread's pid.
6844 (arm_insert_point, arm_remove_point): Use for_each_thread.
6846 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6848 * win32-low.c (continue_one_thread): Return void, take argument
6850 (child_continue): Use for_each_thread.
6852 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6854 * win32-i386-low.c (update_debug_registers_callback): Rename
6856 (update_debug_registers): ... this, return void, remove pid_p arg.
6857 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6859 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6861 * inferiors.h (struct process_info): Add constructor, initialize
6863 <syscalls_to_catch>: Change type to std::vector<int>.
6864 * inferiors.c (add_process): Allocate process_info with new.
6865 (remove_process): Free process_info with delete.
6866 * linux-low.c (handle_extended_wait): Adjust.
6867 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6868 * server.c (handle_general_set): Adjust.
6870 2017-11-16 Pedro Alves <palves@redhat.com>
6872 * remote-utils.c (remote_close): Block SIGIO signals instead of
6873 uninstalling the SIGIO handler.
6875 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6877 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6879 2017-11-16 Yao Qi <yao.qi@linaro.org>
6881 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6882 (tic6x_store_gregset): Likewise.
6883 (tic6x_usrregs_info): Move it up.
6885 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6887 * Makefile.in: Update arch rules.
6888 * configure.srv: Explicitly mark arch/ files.
6890 2017-11-13 Andreas Schwab <schwab@suse.de>
6892 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6894 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6896 2017-11-06 Pedro Alves <palves@redhat.com>
6898 * config.in, configure: Regenerate.
6900 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6902 * target.c (struct thread_search): Remove.
6903 (thread_search_callback): Remove.
6904 (prepare_to_access_memory): Use for_each_thread instead of
6905 find_inferior. Inline code from thread_search_callback.
6907 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6909 * server.c (struct visit_actioned_threads_data): Remove.
6910 (visit_actioned_threads): Change prototype to take arguments
6912 (resume): Use find_thread instead of find_inferior.
6914 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6916 * server.c (queue_stop_reply_callback): Change prototype, return
6918 (find_status_pending_thread_callback): Remove.
6919 (handle_status): Replace find_inferior with find_thread and
6922 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6924 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6926 (aarch64_store_gregset): Likewise.
6927 (aarch64_fill_fpregset): Likewise.
6928 (aarch64_store_fpregset): Likewise.
6930 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6932 * gdbthread.h (find_thread, for_each_thread): New functions.
6933 * inferiors.c (thread_of_pid): Remove.
6934 (find_any_thread_of_pid): Use find_thread.
6935 * linux-low.c (num_lwps): Use for_each_thread.
6937 2017-10-17 Yao Qi <yao.qi@linaro.org>
6939 * Makefile.in: Remove one rule.
6940 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6942 2017-10-17 Yao Qi <yao.qi@linaro.org>
6944 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6945 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6947 2017-10-17 Yao Qi <yao.qi@linaro.org>
6949 * configure.srv: Rename arm.o with arch/arm.o.
6951 2017-10-17 Yao Qi <yao.qi@linaro.org>
6953 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6954 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6955 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6956 (arch-i386.o, arch-amd64.o): Remove rules.
6957 (arch/%.o): New rule.
6958 Update POSTCOMPILE and COMPILE.pre.
6959 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6960 * configure: Re-generated.
6961 * configure.srv: Replace arch-i386.o with arch/i386.o.
6962 Replace arch-amd64.o with arch/amd64.o.
6964 2017-10-16 Yao Qi <yao.qi@linaro.org>
6966 * configure: Regenerated.
6968 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6970 * inferiors.h: (struct inferior_list): Remove.
6971 (struct inferior_list_entry); Remove.
6972 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6973 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6974 get_first_inferior): Remove.
6975 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6976 find_inferior_id, find_inferior_in_random): Change signature.
6977 * inferiors.c (all_threads): Change type to
6978 std::list<thread_info *>.
6979 (get_thread): Remove macro.
6980 (find_inferior, find_inferior_id): Change signature, implement
6982 (find_inferior_in_random): Change signature, implement using
6983 find_thread_in_random.
6984 (for_each_inferior, for_each_inferior_with_data): Change
6985 signature, implement using for_each_thread.
6986 (add_inferior_to_list, remove_inferior): Remove.
6987 (add_thread, get_first_thread, thread_of_pid,
6988 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6989 (get_first_inferior, one_inferior_p, clear_inferior_list):
6991 (clear_inferiors, get_thread_process): Update.
6992 * gdbthread.h: Include <list>.
6993 (struct thread_info) <entry>: Remove field.
6995 (all_threads): Change type to std::list<thread_info *>.
6996 (get_first_inferior): Add doc.
6997 (find_thread, for_each_thread, find_thread_in_random): New
6999 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7000 * linux-arm-low.c (update_registers_callback): Update.
7001 * linux-low.c (second_thread_of_pid_p): Update.
7002 (kill_one_lwp_callback, linux_detach_lwp_callback,
7003 delete_lwp_callback, status_pending_p_callback, same_lwp,
7004 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7005 iterate_over_lwps, not_stopped_callback,
7006 resume_stopped_resumed_lwps, count_events_callback,
7007 select_singlestep_lwp_callback, select_event_lwp_callback,
7008 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7009 suspend_and_send_sigstop_callback, wait_for_sigstop,
7010 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7011 lwp_running, linux_set_resume_request, resume_status_pending_p,
7012 need_step_over_p, start_step_over, linux_resume_one_thread,
7013 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7014 reset_lwp_ptrace_options_callback): Update.
7015 * linux-mips-low.c (update_watch_registers_callback): Update.
7016 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7018 (free_register_cache_thread_one): Remove.
7019 (regcache_release): Update.
7020 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7021 handle_qxfer_threads_worker): Update.
7022 (handle_query): Update, use list iterator.
7023 (visit_actioned_threads, handle_pending_status,
7024 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7025 clear_pending_status_callback, set_pending_status_callback,
7026 find_status_pending_thread_callback, handle_status,
7027 process_serial_event): Update.
7028 * target.c (thread_search_callback): Update.
7029 * thread-db.c (thread_db_get_tls_address): Update.
7030 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7032 * win32-i386-low.c (update_debug_registers_callback): Update.
7033 * win32-low.c (delete_thread_info, child_delete_thread,
7034 continue_one_thread, suspend_one_thread,
7035 get_child_debug_event): Adjust.
7037 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7039 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7040 * inferiors.h: Include <list>.
7041 (struct process_info) <entry>: Remove field.
7043 (pid_of): Change macro to function.
7044 (ptid_of, lwpid_of): Remove macro.
7045 (all_processes): Change type to std::list<process_info *>.
7046 (ALL_PROCESSES): Remove macro.
7047 (for_each_process, find_process): New function.
7048 * inferiors.c (all_processes): Change type to
7049 std::list<process_info *>.
7050 (find_thread_process): Adjust.
7051 (add_process): Likewise.
7052 (remove_process): Likewise.
7053 (find_process_pid): Likewise.
7054 (get_first_process): Likewise.
7055 (started_inferior_callback): Remove.
7056 (have_started_inferiors_p): Adjust.
7057 (attached_inferior_callback): Remove.
7058 (have_attached_inferiors_p): Adjust.
7059 * linux-low.c (check_zombie_leaders): Likewise.
7060 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7061 (x86_linux_update_xmltarget): Adjust.
7062 * server.c (handle_query): Likewise.
7063 (gdb_reattached_process): Remove.
7064 (handle_status): Adjust.
7065 (kill_inferior_callback): Likewise.
7066 (detach_or_kill_inferior): Remove.
7067 (print_started_pid): Likewise.
7068 (print_attached_pid): Likewise.
7069 (detach_or_kill_for_exit): Update.
7070 (process_serial_event): Likewise.
7071 * linux-arm-low.c (arm_new_fork): Likewise.
7073 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7075 * dll.h: Include <list>.
7076 (struct dll_info): Add constructor.
7077 <entry>: Remove field.
7078 (all_dlls): Change type to std::list<dll_info>.
7079 * dll.c: Include <algorithm>.
7080 (get_dll): Remove macro.
7081 (all_dlls): Change type to std::list<dll_info *>.
7082 (free_one_dll): Remove.
7083 (match_dll): Likewise.
7084 (loaded_dll): Adjust.
7085 (unloaded_dll): Adjust to all_dlls type change, use
7086 std::find_if. Inline code from match_dll.
7087 (clear_dlls): Adjust to all_dlls type change.
7088 * server.c (emit_dll_description): Remove.
7089 (handle_qxfer_libraries): Adjust to all_dlls type change,
7090 integrate emit_dll_description's functionality.
7092 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7094 * linux-low.h (struct linux_target_ops) <delete_process>: New
7096 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7097 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7098 (struct linux_target_ops): Add delete_process callback.
7099 * linux-arm-low.c (arm_delete_process): New.
7100 (struct linux_target_ops): Add delete_process callback.
7101 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7102 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7103 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7104 * linux-mips-low.c (mips_linux_delete_process): New.
7105 (struct linux_target_ops): Add delete_process callback.
7106 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7107 * linux-s390-low.c (struct linux_target_ops): Likewise.
7108 * linux-sh-low.c (struct linux_target_ops): Likewise.
7109 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7110 * linux-tile-low.c (struct linux_target_ops): Likewise.
7111 * linux-x86-low.c (x86_linux_delete_process): New.
7112 (struct linux_target_ops): Add delete_process callback.
7113 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7115 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7117 * linux-aarch64-low.c (the_low_target): Add thread delete
7119 * linux-arm-low.c (arm_delete_thread): New function.
7120 (the_low_target): Add thread delete callback.
7121 * linux-bfin-low.c (the_low_target): Likewise.
7122 * linux-crisv32-low.c (the_low_target): Likewise.
7123 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7125 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7127 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7128 * linux-mips-low.c (mips_linux_delete_thread): New function.
7129 (the_low_target): Add thread delete callback.
7130 * linux-ppc-low.c (the_low_target): Likewise.
7131 * linux-s390-low.c (the_low_target): Likewise.
7132 * linux-sh-low.c (the_low_target): Likewise.
7133 * linux-tic6x-low.c (the_low_target): Likewise.
7134 * linux-tile-low.c (the_low_target): Likewise.
7135 * linux-x86-low.c (the_low_target): Likewise.
7136 * linux-xtensa-low.c (the_low_target): Likewise.
7138 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7140 * win32-low.c: Include "common-inferior.h".
7142 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7144 * inferiors.c (set_inferior_cwd): New function.
7145 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7146 (handle_query): Inform that QSetWorkingDir is supported.
7147 * win32-low.c (create_process): Pass the inferior's cwd to
7150 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7152 * inferiors.c (current_inferior_cwd): New global variable.
7153 (get_inferior_cwd): New function.
7154 * inferiors.h (struct process_info) <cwd>: New field.
7156 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7158 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7159 (OBS): Add gdb_tilde_expand.o.
7161 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7163 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7164 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7166 2017-09-29 Pedro Alves <palves@redhat.com>
7168 * ax.c (gdb_parse_agent_expr): Constify.
7169 * ax.h (gdb_parse_agent_expr): Constify.
7170 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7172 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7173 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7174 * remote-utils.h (read_ptid): Constify.
7175 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7176 (process_point_options, process_serial_event): Constify.
7177 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7178 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7179 (cmd_qtbuffer): Constify.
7181 2017-09-29 Pedro Alves <palves@redhat.com>
7183 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7186 2017-09-29 Pedro Alves <palves@redhat.com>
7188 * linux-low.c (handle_extended_wait): Pass parent thread instead
7189 of process to thread_db_notice_clone.
7190 * linux-low.h (thread_db_notice_clone): Replace parent process
7191 parameter with parent thread parameter.
7192 * thread-db.c (find_one_thread): Add comment.
7193 (thread_db_notice_clone): Replace parent process parameter with
7194 parent thread parameter. Temporarily switch to the parent thread.
7196 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7198 * gdbthread.h: Include "common-gdbthread.h".
7199 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7200 "if" when validating the ptid.
7201 * remote-utils.c: Include "gdbthread.h".
7202 (prepare_resume_reply): Use "switch_to_thread".
7203 * target.c (done_accessing_memory): Likewise.
7205 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7207 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7208 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7209 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7210 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7211 s390x-gs-linux64-ipa.o to ipa_obj.
7212 * linux-s390-low.c (HWCAP_S390_GS): New define.
7213 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7215 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7216 (s390_arch_setup): Check for guarded-storage support and choose
7218 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7219 init_registers_s390x_gs_linux64.
7220 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7222 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7223 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7225 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7227 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7229 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7231 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7232 (thread_db_thread_handle): Declare.
7233 * linux-low.c (linux_target_ops): Initialize thread_handle.
7234 * server.c (handle_qxfer_threads_worker): Add support for
7236 * target.h (struct target_ops): Add new function pointer,
7238 (target_thread_handle): Define.
7239 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7241 (thread_db_thread_handle): New function.
7243 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7245 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7246 * linux-low.h (thread_db_notice_clone): Declare.
7247 * thread-db.c (thread_db_notice_clone): New function.
7249 2017-09-21 Pedro Alves <palves@redhat.com>
7251 * server.c (gdb_read_memory, handle_status, process_serial_event)
7252 (handle_serial_event, handle_target_event): Adjust to
7253 set_desired_thread prototype change.
7254 * target.c (set_desired_thread): Remove 'use_general' parameter
7256 * target.h (set_desired_thread): Remove 'use_general' parameter.
7258 2017-09-20 Tom Tromey <tom@tromey.com>
7260 * target.c (target_terminal::terminal_state): Define.
7261 (target_terminal::init): Rename from target_terminal_init.
7262 (target_terminal::inferior): Rename from
7263 target_terminal_inferior.
7264 (target_terminal::ours): Rename from target_terminal_ours.
7265 (target_terminal::ours_for_output, target_terminal::info): New.
7267 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7269 * server.c (accumulate_file_name_length): Remove.
7270 (emit_dll_description): Adjust to std::string change.
7271 (handle_qxfer_libraries): Use std::string to hold document.
7273 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7275 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7276 return type of xml_escape_text.
7277 * server.c (emit_dll_description): Likewise.
7279 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7281 * server.c (captured_main): Accept argument for --selftest.
7282 Update run_tests call.
7283 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7284 when registering selftests.
7286 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7288 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7289 instead of "VEC" for "target_desc.reg_defs".
7290 (regcache_cpy): Likewise.
7291 (registers_to_string): Likewise.
7292 (registers_from_string): Likewise.
7293 (find_regno): Likewise.
7294 (supply_regblock): Likewise.
7295 (regcache_raw_read_unsigned): Likewise.
7296 * tdesc.c (init_target_desc): Likewise.
7297 (tdesc_create_reg): Likewise.
7298 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7299 (struct target_desc) <reg_defs>: Convert to "std::vector".
7300 (target_desc): Do not initialize "reg_defs".
7301 (~target_desc): Update code to use "std::vector" instead of "VEC"
7302 for "target_desc.reg_defs".
7303 (operator==): Likewise.
7305 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7307 * inferiors.h (thread_to_gdb_id): Remove.
7308 * inferiors.c (thread_to_gdb_id): Remove.
7309 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7310 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7311 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7313 * nto-low.c (nto_fetch_registers, nto_store_registers,
7314 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7316 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7318 * inferiors.h (gdb_id_to_thread_id): Remove.
7319 * inferiors.c (gdb_id_to_thread_id): Remove.
7320 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7321 removal. Move pid declaration closer to where it's used.
7323 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7325 * server.c (handle_detach): New function.
7326 (process_serial_event): Move code out, call handle_detach.
7328 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7330 * server.c (require_running): Rename to ...
7331 (require_running_or_return): ... this ...
7332 (require_running_or_break): ... and this.
7333 (handle_query, process_serial_event): Adjust.
7335 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7337 * linux-low.c (linux_set_resume_request): Remove unused
7340 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7342 * server.c (first_thread_of): Remove.
7343 (process_serial_event): Replace usage of first_thread_of with
7344 find_any_thread_of_pid.
7345 * tracepoint.c (same_process_p): Remove.
7346 (gdb_agent_about_to_close): Replace usage of same_process_p with
7347 find_any_thread_of_pid.
7348 * linux-x86-low.c (same_process_callback): Remove.
7349 (x86_arch_setup_process_callback): Replace usage of
7350 same_process_callback with find_any_thread_of_pid.
7351 * thread-db.c (any_thread_of): Remove.
7352 (switch_to_process): Replace usage of any_thread_of with
7353 find_any_thread_of_pid.
7354 * inferiors.c (thread_pid_matches_callback): Remove.
7355 (find_thread_process): Adjust to use find_any_thread_of_pid.
7357 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7359 * regcache.c (get_thread_regcache): Guard calls to "memset"
7362 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7364 * linux-low.c (handle_extended_wait): Use
7365 "allocate_target_description" instead of "XNEW".
7366 * linux-x86-low.c (initialize_low_arch): Likewise.
7368 2017-09-05 Yao Qi <yao.qi@linaro.org>
7370 * configure.srv (srv_i386_regobj): Remove.
7371 (srv_amd64_regobj): Remove.
7372 (srv_regobj): Set it to "" for x86 non-linux targets.
7373 * linux-x86-tdesc.c (i386_linux_read_description):
7374 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7375 (init_registers_i386): Remove the declaration.
7376 (tdesc_i386): Remove the declaration.
7377 (lynx_i386_arch_setup): Call i386_create_target_description.
7378 * nto-x86-low.c: Likewise.
7379 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7380 [!__x86_64__]: include arch/i386.h.
7381 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7383 2017-09-05 Yao Qi <yao.qi@linaro.org>
7385 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7386 i386/amd64-XXX-linux from it.
7388 2017-09-05 Yao Qi <yao.qi@linaro.org>
7390 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7392 (ipa_amd64_linux_regobj): Remove.
7393 (ipa_x32_linux_regobj): Remove.
7395 2017-09-05 Yao Qi <yao.qi@linaro.org>
7397 * Makefile.in (arch-amd64.o): New rule.
7398 * configure.srv: Append arch-amd64.o.
7399 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7400 (get_ipa_tdesc): Call amd64_linux_read_description.
7401 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7402 and init_registers_amd64_XXX.
7403 * linux-x86-low.c (x86_linux_read_description): Call
7404 amd64_linux_read_description.
7405 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7406 (initialize_low_arch): Don't call init_registers_x32_XXX and
7407 init_registers_amd64_XXX.
7408 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7409 and tdesc_amd64_XXX.
7410 [__x86_64__] (amd64_tdesc_test): New function.
7411 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7412 and init_registers_amd64_XXX.
7413 * linux-x86-tdesc.c: Include arch/amd64.h.
7414 (xcr0_to_tdesc_idx): New function.
7415 (i386_linux_read_description): New function.
7416 (amd64_get_ipa_tdesc_idx): New function.
7417 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7418 (amd64_get_ipa_tdesc): Declare.
7420 2017-09-05 Yao Qi <yao.qi@linaro.org>
7422 * configure.srv (srv_i386_linux_xmlfiles): Remove
7423 i386/i386-XXX-linux.xml from it.
7425 2017-09-05 Yao Qi <yao.qi@linaro.org>
7427 * configure.srv: Set srv_i386_linux_regobj empty if $development
7429 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7430 initialize_low_tdesc.
7431 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7432 with #if initialize_low_tdesc.
7433 * linux-x86-tdesc-selftest.c: New file.
7434 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7436 2017-09-05 Yao Qi <yao.qi@linaro.org>
7438 * Makefile.in (arch-i386.o): New rule.
7439 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7440 (x86_64-*-linux*): Likewise.
7441 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7442 include arch/i386.h.
7443 (i386_linux_read_description): Remove code and call
7444 i386_create_target_description.
7445 * tdesc.c (allocate_target_description): New function.
7446 * tdesc.h (set_tdesc_architecture): Remove declaration.
7447 (set_tdesc_osabi): Likewise.
7449 2017-09-05 Yao Qi <yao.qi@linaro.org>
7451 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7452 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7453 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7455 * server.c (get_features_xml): Call tdesc_get_features_xml.
7456 * tdesc.c (set_tdesc_architecture): New function.
7457 (set_tdesc_osabi): New function.
7458 (tdesc_get_features_xml): New function.
7459 (tdesc_create_feature): Add an argument.
7460 * tdesc.h (struct target_desc) <features>: New field.
7461 <arch, osabi>: New field.
7462 (~target_desc): xfree features, arch, and osabi.
7463 (target_desc::oerator==): Don't compare .xmltarget.
7464 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7465 (set_tdesc_osabi): Likewise.
7466 (tdesc_get_features_xml): Likewise.
7468 2017-09-05 Yao Qi <yao.qi@linaro.org>
7470 * linux-x86-tdesc.c: Include selftest.h.
7471 (i386_tdesc_test): New function.
7472 (initialize_low_tdesc): Call selftests::register_test.
7473 * tdesc.h: Include regdef.h.
7474 (target_desc): Override operator == and !=.
7476 2017-09-05 Yao Qi <yao.qi@linaro.org>
7478 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7479 (ipa_obj): Likewise.
7480 * linux-i386-ipa.c: Include common/x86-xstate.h
7481 (get_ipa_tdesc): Call i386_linux_read_description.
7482 (initialize_low_tracepoint): Don't call init_registers_XXX
7483 functions, call initialize_low_tdesc instead.
7484 * linux-x86-low.c (x86_linux_read_description): Call
7485 i386_linux_read_description.
7486 (initialize_low_arch): Don't call init_registers_i386_XXX
7487 functions, call initialize_low_tdesc.
7488 * linux-x86-tdesc.c: New file.
7489 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7490 (i386_get_ipa_tdesc_idx): Declare.
7491 (i386_get_ipa_tdesc): Declare.
7492 (initialize_low_tdesc): Declare.
7494 2017-09-05 Yao Qi <yao.qi@linaro.org>
7496 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7499 2017-09-05 Yao Qi <yao.qi@linaro.org>
7501 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7502 * regcache.c (get_thread_regcache): Use VEC_length.
7503 (init_register_cache): Likewise.
7504 (regcache_cpy): Likewise.
7505 (registers_to_string): Iterate reg_defs via VEC_iterate.
7506 (find_regno): Likewise.
7507 (find_register_by_number): Use VEC_index.
7508 (register_size): Call find_register_by_number.
7509 (register_data): Call find_register_by_number.
7510 (supply_regblock): Use VEC_length.
7511 (regcache_raw_read_unsigned): Likewise.
7512 * tdesc.c (init_target_desc): Iterate reg_defs via
7514 (default_description): Update initializer.
7515 (copy_target_description): Don't update field num_registers.
7516 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7517 <num_registers>: Remove.
7519 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7521 * Makefile.in (.SECONDARY): Define target.
7523 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7525 * linux-low.c (linux_wait_1): Adjust.
7526 * server.c (queue_stop_reply_callback): Adjust.
7528 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7530 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7531 QEnvironmentUnset and QEnvironmentReset packets.
7532 (handle_query): Inform remote that QEnvironmentHexEncoded,
7533 QEnvironmentUnset and QEnvironmentReset are supported.
7535 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7537 * inferiors.h (inferior_target_data): Rename to ...
7538 (thread_target_data): ... this.
7539 (inferior_regcache_data): Rename to ...
7540 (thread_regcache_data): ... this.
7541 (set_inferior_regcache_data): Rename to ...
7542 (set_thread_regcache_data): ... this.
7543 * inferiors.c (inferior_target_data): Rename to ...
7544 (thread_target_data): ... this.
7545 (inferior_regcache_data): Rename to ...
7546 (thread_regcache_data): ... this.
7547 (set_inferior_regcache_data): Rename to ...
7548 (set_thread_regcache_data): ... this.
7549 (free_one_thread): Update.
7550 * linux-low.h (get_thread_lwp): Update.
7551 * regcache.c (get_thread_regcache): Update.
7552 (regcache_invalidate_thread): Update.
7553 (free_register_cache_thread): Update.
7554 * win32-i386-low.c (update_debug_registers_callback): Update.
7555 (win32_get_current_dr): Update.
7556 * win32-low.c (thread_rec): Update.
7557 (delete_thread_info): Update.
7558 (continue_one_thread): Update.
7559 (suspend_one_thread): Update.
7561 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7563 * inferiors.c (set_inferior_target_data): Remove.
7564 * inferiors.h (set_inferior_target_data): Remove.
7566 2017-08-18 Yao Qi <yao.qi@linaro.org>
7568 * Makefile.in (OBS): Add selftest.o.
7569 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7570 * configure, config.in: Re-generated.
7571 * server.c: Include common/sefltest.h.
7572 (captured_main): Handle option --selftest.
7574 2017-08-09 Yao Qi <yao.qi@linaro.org>
7576 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7577 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7578 i386-avx-mpx.o and i386-mmx.o.
7579 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7580 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7581 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7582 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7583 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7584 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7585 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7586 i386/amd64-avx-mpx.xml.
7588 2017-08-09 Yao Qi <yao.qi@linaro.org>
7590 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7591 and x32-avx-avx512.o.
7592 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7593 i386/x32-avx-avx512.xml.
7595 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7597 * tracepoint.h (enum class fast_tpoint_collect_result): New
7599 (fast_tracepoint_collecting): Change return type to
7600 fast_tpoint_collect_result.
7601 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7602 * linux-low.h: Include tracepoint.h.
7603 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7604 fast_tpoint_collect_result.
7605 * linux-low.c (handle_tracepoints): Adjust.
7606 (linux_fast_tracepoint_collecting): Change return type to
7607 fast_tpoint_collect_result.
7608 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7609 linux_wait_1, stuck_in_jump_pad_callback,
7610 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7611 proceed_one_lwp): Adjust to type change.
7613 2017-07-10 Yao Qi <yao.qi@linaro.org>
7615 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7617 2017-06-29 Yao Qi <yao.qi@linaro.org>
7619 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7621 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7623 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7625 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7627 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7629 * linux-low.c (linux_create_inferior): Adjust code to access the
7630 environment information via 'gdb_environ' class.
7631 * lynx-low.c (lynx_create_inferior): Likewise.
7632 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7633 (get_environ): Return a pointer to 'our_environ'.
7634 (captured_main): Initialize 'our_environ'.
7635 * server.h (get_environ): Adjust prototype.
7636 * spu-low.c (spu_create_inferior): Adjust code to access the
7637 environment information via 'gdb_environ' class.
7639 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7641 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7642 usage of "register" keyword.
7644 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7646 * configure: Re-generate.
7648 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7650 * configure: Re-generate.
7652 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7654 * Makefile.in (COMPILE.pre): Add "-x c++".
7656 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7658 * fork-child.c: Conditionally include <signal.h>.
7660 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7662 * server.c (handle_general_set): Handle new packet
7663 "QStartupWithShell".
7664 (handle_query): Add "QStartupWithShell" to the list of supported
7666 (gdbserver_usage): Add help text explaining the
7667 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7669 (captured_main): Recognize and act upon the presence of the new
7672 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7673 Pedro Alves <palves@redhat.com>
7675 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7676 * configure: Regenerate.
7677 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7679 (i[34567]86-*-lynxos*): Likewise.
7680 (spu*-*-*): Likewise.
7681 * fork-child.c: New file.
7682 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7684 (linux_ptrace_fun): New function.
7685 (linux_create_inferior): Adjust function prototype to reflect
7686 change on "target.h". Adjust function code to use
7688 (linux_request_interrupt): Delete "signal_pid".
7689 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7690 (lynx_ptrace_fun): New function.
7691 (lynx_create_inferior): Adjust function prototype to reflect
7692 change on "target.h". Adjust function code to use
7694 * nto-low.c (nto_create_inferior): Adjust function prototype and
7695 code to reflect change on "target.h". Update comments.
7696 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7697 "common-terminal.h" and "environ.h".
7698 (terminal_fd): Moved to fork-child.c.
7699 (old_foreground_pgrp): Likewise.
7700 (restore_old_foreground_pgrp): Likewise.
7701 (last_status): Make it global.
7702 (last_ptid): Likewise.
7703 (our_environ): New variable.
7704 (startup_with_shell): Likewise.
7705 (program_name): Likewise.
7706 (program_argv): Rename to...
7707 (program_args): ...this.
7708 (wrapper_argv): New variable.
7709 (start_inferior): Delete function.
7710 (get_exec_wrapper): New function.
7711 (get_exec_file): Likewise.
7712 (get_environ): Likewise.
7713 (prefork_hook): Likewise.
7714 (post_fork_inferior): Likewise.
7715 (postfork_hook): Likewise.
7716 (postfork_child_hook): Likewise.
7717 (handle_v_run): Update code to deal with arguments coming from the
7718 remote host. Update calls from "start_inferior" to
7720 (captured_main): Likewise. Initialize environment variable. Call
7722 * server.h (post_fork_inferior): New prototype.
7723 (get_environ): Likewise.
7724 (last_status): Declare.
7725 (last_ptid): Likewise.
7726 (signal_pid): Likewise.
7727 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7728 (spu_ptrace_fun): New function.
7729 (spu_create_inferior): Adjust function prototype to reflect change
7730 on "target.h". Adjust function code to use "fork_inferior".
7731 * target.c (target_terminal_init): New function.
7732 (target_terminal_inferior): Likewise.
7733 (target_terminal_ours): Likewise.
7734 * target.h: Include <vector>.
7735 (struct target_ops) <create_inferior>: Update prototype.
7736 (create_inferior): Update macro.
7737 * utils.c (gdb_flush_out_err): New function.
7738 * win32-low.c (win32_create_inferior): Adjust function prototype
7739 and code to reflect change on "target.h".
7741 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7743 * inferiors.c (switch_to_thread): New function.
7745 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7747 * Makefile.in (SFILE): Add "common/job-control.c".
7748 (OBS): Add "job-control.o".
7750 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7752 * Makefile: Remove "@host_makefile_frag@".
7754 2017-05-05 Pedro Alves <palves@redhat.com>
7756 * configure: Regenerate.
7758 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7760 * configure: Regenerate.
7762 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7764 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7765 software_single_step change of return type to
7766 std::vector<CORE_ADDR>.
7767 * linux-low.c (install_software_single_step_breakpoints):
7769 * linux-low.h (install_software_single_step_breakpoints):
7772 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7774 * remote-utils.c: Include "gdb_termios.h" instead of
7776 * terminal.h: Delete file.
7778 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7780 * server.c: Include <vector>.
7781 <program_argv, wrapper_argv>: Convert to std::vector.
7782 (start_inferior): Rewrite function to use C++.
7783 (handle_v_run): Likewise. Update code that calculates the argv
7784 based on the vRun packet; use C++.
7785 (captured_main): Likewise.
7787 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7789 * server.c (handle_v_cont): Initialize thread_resume::thread
7792 2017-04-05 Pedro Alves <palves@redhat.com>
7794 * configure: Regenerate.
7796 2017-04-05 Pedro Alves <palves@redhat.com>
7798 * gdbreplay.c (sync_error): Constify.
7799 * linux-x86-low.c (push_opcode): Constify.
7801 2017-04-05 Pedro Alves <palves@redhat.com>
7803 * win32-low.c (get_child_debug_event)
7804 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7805 Report TARGET_WAITKIND_SPURIOUS instead.
7807 2017-04-05 Pedro Alves <palves@redhat.com>
7809 * remote-utils.c (remote_prepare, remote_open): Constify.
7810 * remote-utils.h (remote_prepare, remote_open): Constify.
7811 * server.c (captured_main): Constify 'port' handling.
7813 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7815 * Makefile.in (clean): Clear .deps.
7817 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7819 * .gitignore: Remove generated files, replace with wildcard.
7820 * (clean): Replace removal of generated files with wildcard.
7821 (version.c): Replace with...
7822 (version-generated.c): ...this.
7823 (xml-builtin.c): Replace with...
7824 (xml-builtin-generated.c): ...this.
7825 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7826 (%.c: *regformats*): Replace with...
7827 (%-generated.c: *regformats*): ...this.
7829 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7831 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7832 (xtensa_fill_gregset): Call collect_register_by_name for
7834 (xtensa_store_gregset): Call supply_register_by_name for
7837 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7839 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7840 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7841 (xtensa_store_gregset): Call supply_register for all registers in
7842 a0_regnum..a0_regnum + C0_NREGS range.
7844 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7846 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7847 (ax-ipa.o: ax.c): Remove.
7848 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7849 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7850 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7851 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7852 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7854 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7856 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7857 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7858 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7859 (errors-ipa.o: ../common/errors.c): Remove.
7860 (format-ipa.o: ../common/format.c): Remove.
7861 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7863 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7865 * Makefile.in (%-ipa.o: %.c): New rule.
7866 (tracepoint-ipa.o: tracepoint.c): Remove.
7867 (utils-ipa.o: utils.c): Remove.
7868 (remote-utils-ipa.o: remote-utils.c): Remove.
7869 (regcache-ipa.o: regcache.c): Remove.
7870 (i386-linux-ipa.o: i386-linux.c): Remove.
7871 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7872 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7873 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7874 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7875 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7876 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7877 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7878 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7879 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7880 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7881 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7882 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7883 (aarch64-ipa.o: aarch64.c): Remove.
7884 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7885 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7886 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7887 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7888 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7889 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7890 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7891 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7892 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7893 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7894 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7895 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7896 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7897 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7898 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7899 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7900 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7901 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7902 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7903 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7904 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7905 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7906 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7907 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7908 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7909 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7910 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7911 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7912 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7913 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7914 (tdesc-ipa.o: tdesc.c): Remove.
7915 (x32-linux-ipa.o: x32-linux.c): Remove.
7916 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7917 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7919 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7921 * Makefile.in (%.o: ../arch/%.c): New rule.
7922 (arm.o: ../arch/arm.c): Remove.
7923 (arm-linux.o: ../arch/arm-linux.c): Remove.
7924 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7925 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7927 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7929 * Makefile.in (%.o: ../nat/%.c): New rule.
7930 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7931 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7932 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7933 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7934 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7935 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7936 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7937 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7938 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7939 (linux-personality.o: ../nat/linux-personality.c): Remove.
7940 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7941 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7942 (x86-linux.o: ../nat/x86-linux.c): Remove.
7943 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7944 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7946 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7948 * Makefile.in (%.o: ../common/%.c): New rule.
7949 (signals.o: ../common/signals.c): Remove.
7950 (print-utils.o: ../common/print-utils.c): Remove.
7951 (rsp-low.o: ../common/rsp-low.c): Remove.
7952 (common-utils.o: ../common/common-utils.c): Remove.
7953 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7954 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7955 (vec.o: ../common/vec.c): Remove.
7956 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7957 (xml-utils.o: ../common/xml-utils.c): Remove.
7958 (ptid.o: ../common/ptid.c): Remove.
7959 (buffer.o: ../common/buffer.c): Remove.
7960 (format.o: ../common/format.c): Remove.
7961 (filestuff.o: ../common/filestuff.c): Remove.
7962 (agent.o: ../common/agent.c): Remove.
7963 (errors.o: ../common/errors.c): Remove.
7964 (environ.o: ../common/environ.c): Remove.
7965 (common-debug.o: ../common/common-debug.c): Remove.
7966 (cleanups.o: ../common/cleanups.c): Remove.
7967 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7968 (fileio.o: ../common/fileio.c): Remove.
7969 (common-regcache.o: ../common/common-regcache.c): Remove.
7970 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7971 (new-op.o: ../common/new-op.c): Remove.
7972 (btrace-common.o: ../common/btrace-common.c): Remove.
7974 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7976 * Makefile.in (%.o: ../target/%.c): New rule.
7977 (waitstatus.o: ../target/waitstatus.c): Remove.
7979 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7982 (%.c: ../regformats/%.dat,
7983 (%.c: ../regformats/arm/%.dat,
7984 (%.c: ../regformats/i386/%.dat,
7985 (%.c: ../regformats/rs6000/%.dat): New rules.
7986 (aarch64.c): Remove.
7987 (reg-arm.c): Remove.
7988 (arm-with-iwmmxt.c): Remove.
7989 (arm-with-vfpv2.c): Remove.
7990 (arm-with-vfpv3.c): Remove.
7991 (arm-with-neon.c): Remove.
7992 (reg-bfin.c): Remove.
7993 (reg-cris.c): Remove.
7994 (reg-crisv32.c): Remove.
7996 (i386-linux.c): Remove.
7997 (i386-avx.c): Remove.
7998 (i386-avx-linux.c): Remove.
7999 (i386-avx-avx512.c): Remove.
8000 (i386-avx-avx512-linux.c): Remove.
8001 (i386-mpx.c): Remove.
8002 (i386-mpx-linux.c): Remove.
8003 (i386-avx-mpx-avx512-pku.c): Remove.
8004 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8005 (i386-avx-mpx.c): Remove.
8006 (i386-avx-mpx-linux.c): Remove.
8007 (i386-mmx.c): Remove.
8008 (i386-mmx-linux.c): Remove.
8009 (reg-ia64.c): Remove.
8010 (reg-m32r.c): Remove.
8011 (reg-m68k.c): Remove.
8013 (mips-linux.c): Remove.
8014 (mips-dsp-linux.c): Remove.
8015 (mips64-linux.c): Remove.
8016 (mips64-dsp-linux.c): Remove.
8017 (nios2-linux.c): Remove.
8018 (powerpc-32.c): Remove.
8019 (powerpc-32l.c): Remove.
8020 (powerpc-altivec32l.c): Remove.
8021 (powerpc-cell32l.c): Remove.
8022 (powerpc-vsx32l.c): Remove.
8023 (powerpc-isa205-32l.c): Remove.
8024 (powerpc-isa205-altivec32l.c): Remove.
8025 (powerpc-isa205-vsx32l.c): Remove.
8026 (powerpc-e500l.c): Remove.
8027 (powerpc-64l.c): Remove.
8028 (powerpc-altivec64l.c): Remove.
8029 (powerpc-cell64l.c): Remove.
8030 (powerpc-vsx64l.c): Remove.
8031 (powerpc-isa205-64l.c): Remove.
8032 (powerpc-isa205-altivec64l.c): Remove.
8033 (powerpc-isa205-vsx64l.c): Remove.
8034 (s390-linux32.c): Remove.
8035 (s390-linux32v1.c): Remove.
8036 (s390-linux32v2.c): Remove.
8037 (s390-linux64.c): Remove.
8038 (s390-linux64v1.c): Remove.
8039 (s390-linux64v2.c): Remove.
8040 (s390-te-linux64.c): Remove.
8041 (s390-vx-linux64.c): Remove.
8042 (s390-tevx-linux64.c): Remove.
8043 (s390x-linux64.c): Remove.
8044 (s390x-linux64v1.c): Remove.
8045 (s390x-linux64v2.c): Remove.
8046 (s390x-te-linux64.c): Remove.
8047 (s390x-vx-linux64.c): Remove.
8048 (s390x-tevx-linux64.c): Remove.
8049 (tic6x-c64xp-linux.c): Remove.
8050 (tic6x-c64x-linux.c): Remove.
8051 (tic6x-c62x-linux.c): Remove.
8053 (reg-sparc64.c): Remove.
8054 (reg-spu.c): Remove.
8056 (amd64-linux.c): Remove.
8057 (amd64-avx.c): Remove.
8058 (amd64-avx-linux.c): Remove.
8059 (amd64-avx-avx512.c): Remove.
8060 (amd64-avx-avx512-linux.c): Remove.
8061 (amd64-mpx.c): Remove.
8062 (amd64-mpx-linux.c): Remove.
8063 (amd64-avx-mpx-avx512-pku.c): Remove.
8064 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8065 (amd64-avx-mpx.c): Remove.
8066 (amd64-avx-mpx-linux.c): Remove.
8068 (x32-linux.c): Remove.
8069 (x32-avx.c): Remove.
8070 (x32-avx-linux.c): Remove.
8071 (x32-avx-avx512.c): Remove.
8072 (x32-avx-avx512-linux.c): Remove.
8073 (reg-xtensa.c): Remove.
8074 (reg-tilegx.c): Remove.
8075 (reg-tilegx32.c): Remove.
8077 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8079 * Makefile.in (SFILES): Add "common/environ.c".
8080 (OBJS): Add "common/environ.h".
8082 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8084 * configure.ac: Check if the fs_base and gs_base members of
8085 `struct user_regs_struct' exist.
8086 * config.in: Regenerated.
8087 * configure: Likewise.
8089 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8091 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8093 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8094 (get_next_pcs_syscall_next_pc): Likewise.
8096 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8098 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8099 * nto-x86-low.c: Likewise.
8101 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8103 * Makefile.in: Include disable-implicit-rules.mk.
8105 2016-11-23 Pedro Alves <palves@redhat.com>
8107 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8108 (debug_vprintf): Use std::chrono::steady_clock instead of
8109 gettimeofday. Use '.' instead of ':'.
8110 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8111 (get_timestamp): Use std::chrono::steady_clock instead of
8114 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8116 * Makefile.in: Fix whitespace formatting.
8118 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8120 * Makefile.in (SFILES, OBS): Flatten list and order
8123 2016-11-23 Pedro Alves <palves@redhat.com>
8125 * event-loop.c (handle_file_event): Use warning.
8126 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8127 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8130 2016-11-23 Pedro Alves <palves@redhat.com>
8132 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8134 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8135 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8136 debug_printf and debug_flush for debug output.
8137 * server.c (handle_general_set): Likewise.
8138 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8141 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8143 * Makefile.in (.c.o): Replace rule with ...
8144 (%.o: %.c): ... this one.
8146 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8148 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8149 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8151 * configure.ac: Remove checks for the make program.
8152 * configure: Re-generate.
8154 2016-10-28 Pedro Alves <palves@redhat.com>
8156 * Makefile.in (CXX_DIALECT): Get from configure.
8157 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8158 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8159 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8160 * config.in: Regenerate.
8161 * configure: Regenerate.
8163 2016-10-27 Yao Qi <yao.qi@linaro.org>
8165 * linux-low.c (linux_supports_range_stepping): Return true if
8166 can_software_single_step return true.
8168 2016-10-27 Yao Qi <yao.qi@linaro.org>
8170 * inferiors.c (find_inferior_in_random): New function.
8171 * inferiors.h (find_inferior_in_random): Declare.
8172 * linux-low.c (linux_wait_for_event_filtered): Call
8173 find_inferior_in_random instead of find_inferior.
8175 2016-10-27 Yao Qi <yao.qi@linaro.org>
8177 * linux-low.c (linux_wait_1): If single-step breakpoints are
8178 inserted, remove them.
8180 2016-10-26 Pedro Alves <palves@redhat.com>
8182 * linux-low.c (handle_extended_wait): Link parent/child fork
8184 (linux_wait_1): Unlink them.
8185 (linux_set_resume_request): Ignore resume requests for
8186 already-resumed and unhandled fork child threads.
8187 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8188 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8190 (handle_v_requests) <vCont>: Don't call require_running.
8191 * server.h (in_queued_stop_replies): New declaration.
8193 2016-10-24 Yao Qi <yao.qi@linaro.org>
8196 * linux-aarch64-low.c (append_insns): Cast the return value to
8199 2016-10-10 Yao Qi <yao.qi@linaro.org>
8201 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8203 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8205 * target.c (target_supports_multi_process): New function, moved
8207 * target.h (target_supports_multi_process): ... here. Remove
8210 2016-10-05 Tom Tromey <tom@tromey.com>
8213 * tracepoint.c (handle_tracepoint_bkpts): Check
8214 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8216 2016-10-05 Yao Qi <yao.qi@linaro.org>
8218 * configure.srv: Update the path of arm-*.xml files.
8220 2016-10-05 Terry Guo <terry.guo@arm.com>
8221 Yao Qi <yao.qi@linaro.org>
8223 * Makefile.in: Adjust the path of rules.
8224 * configure.srv: Update the path of xml files.
8225 * regformats/arm-with-iwmmxt.dat: Regenerated.
8226 * regformats/arm-with-neon.dat: Likewise.
8227 * regformats/arm-with-vfpv2.dat: Likewise.
8228 * regformats/arm-with-vfpv3.dat Likewise.
8230 2016-09-30 Yao Qi <yao.qi@linaro.org>
8233 * target.c (target_stop_and_wait): Don't call
8234 target_continue_no_signal, use resume_stop instead.
8236 2016-09-26 Yao Qi <yao.qi@linaro.org>
8238 * linux-low.c (linux_wait_1): Call debug_exit.
8240 2016-09-23 Pedro Alves <palves@redhat.com>
8242 * Makefile.in (SFILES): Add common/new-op.c.
8243 (OBS): Add common/new-op.o.
8244 (new-op.o): New rule.
8246 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8248 * .gitinore: Ignore more files.
8250 2016-09-21 Yao Qi <yao.qi@linaro.org>
8252 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8255 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8257 * server.c (start_inferior): Call target_mourn_inferior instead of
8258 mourn_inferior; pass ptid_t argument to it.
8260 (handle_target_event): Likewise.
8261 * target.c (target_mourn_inferior): New function.
8262 * target.h (mourn_inferior): Delete macro.
8264 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8266 * linux-low.c (lwp_is_stepping): New function.
8268 2016-09-06 Carl Love <cel@us.ibm.com>
8270 * server.c (start_inferior): Fixed comment, requested comment change
8271 didn't get updated correctly. Removed reference to ptrace () call as
8272 it is only true on Linux systems.
8274 2016-09-06 Carl Love <cel@us.ibm.com>
8276 * server.c (start_inferior): Do not call
8277 function target_post_create_inferior () if the
8278 inferior process has already exited.
8280 2016-09-05 Pedro Alves <palves@redhat.com>
8282 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8283 (COMPILE.pre, CC_LD): Use CXX directly.
8284 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8285 * acinclude.m4: Don't include build-with-cxx.m4.
8286 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8287 * configure: Regenerate.
8289 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8292 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8293 call writing data to own_buf.
8295 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8297 * target.c (mywait): Call target_wait instead of
8299 (target_wait): New function.
8301 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8303 * server.c (start_inferior): New variable 'ptid'. Replace calls
8304 to the_target->resume by target_continue{,_no_signal}, depending
8306 * target.c (target_stop_and_wait): Call target_continue_no_signal
8307 instead of the_target->resume.
8308 (target_continue): New function.
8310 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8312 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8314 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8317 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8319 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8320 * linux-arm-low.c (ps_get_thread_area): Likewise.
8321 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8322 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8323 * linux-mips-low.c (ps_get_thread_area): Likewise.
8324 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8325 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8326 * linux-x86-low.c (ps_get_thread_area): Likewise.
8327 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8329 2016-08-19 Pedro Alves <palves@redhat.com>
8331 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8333 2016-08-19 Pedro Alves <palves@redhat.com>
8335 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8336 comment. Use memcpy instead of casting through unsigned long.
8338 2016-08-19 Pedro Alves <palves@redhat.com>
8340 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8341 allocating around 0x80000000.
8343 2016-08-19 Pedro Alves <palves@redhat.com>
8346 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8347 (x32-avx512-linux-ipa.o): New rules.
8348 * configure.ac (x86_64-*-linux*): New x32 check.
8349 * configure.srv (ipa_x32_linux_regobj): New.
8350 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8351 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8353 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8355 * configure: Regenerate.
8357 2016-08-09 Pedro Alves <palves@redhat.com>
8360 * Makefile.in (OBS): Add signals-state-save-restore.o.
8361 (signals-state-save-restore.o): New rule.
8362 * config.in: Regenerate.
8363 * configure: Regenerate.
8364 * linux-low.c: Include "signals-state-save-restore.h".
8365 (linux_create_inferior): Call
8366 restore_original_signals_state.
8367 * server.c: Include "dispositions-save-restore.h".
8368 (captured_main): Call save_original_signals_state.
8370 2016-08-05 Pedro Alves <palves@redhat.com>
8372 * configure: Regenerate.
8374 2016-08-04 Yao Qi <yao.qi@linaro.org>
8376 * linux-low.c (regsets_fetch_inferior_registers): Check
8377 errno is ESRCH or not.
8379 2016-08-02 Yao Qi <yao.qi@linaro.org>
8381 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8382 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8383 (thread_db_load_search): Update.
8384 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8385 td_ta_set_event and td_ta_event_getmsg.
8387 2016-07-26 Pedro Alves <palves@redhat.com>
8390 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8391 of unsigned long for 64-bit registers and use uint32_t instead of
8392 unsigned int for 32-bit registers.
8394 2016-07-26 Pedro Alves <palves@redhat.com>
8396 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8399 2016-07-21 Tom Tromey <tom@tromey.com>
8401 * configure: Rebuild.
8403 2016-07-21 Yao Qi <yao.qi@linaro.org>
8405 * mem-break.c (find_gdb_breakpoint): Cast bp to
8406 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8408 2016-07-21 Yao Qi <yao.qi@linaro.org>
8410 * server.c (handle_v_requests): Support s and S actions
8411 if target_supports_software_single_step return true.
8413 2016-07-21 Yao Qi <yao.qi@linaro.org>
8415 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8416 is resume_step, call maybe_hw_step.
8417 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8419 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8421 (proceed_one_lwp): If resume request is resume_step, install
8422 reinsert breakpoints and call maybe_hw_step.
8424 2016-07-21 Yao Qi <yao.qi@linaro.org>
8426 * linux-low.c (proceed_one_lwp): Declare.
8427 (linux_resume_one_thread): Remove local variable 'step'.
8428 Lift code enqueue signal. Call proceed_one_lwp instead of
8429 linux_resume_one_lwp.
8431 2016-07-21 Yao Qi <yao.qi@linaro.org>
8433 * linux-low.c (linux_resume_one_thread): Call
8434 enqueue_pending_signal.
8436 2016-07-21 Yao Qi <yao.qi@linaro.org>
8438 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8439 * inferiors.c (do_restore_current_thread_cleanup): New function.
8440 (make_cleanup_restore_current_thread): Likewise.
8441 * linux-low.c (install_software_single_step_breakpoints): Call
8442 make_cleanup_restore_current_thread. Switch current_thread to
8445 2016-07-21 Yao Qi <yao.qi@linaro.org>
8447 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8448 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8449 (clone_one_breakpoint): Likewise.
8450 (delete_reinsert_breakpoints): Change parameter to thread.
8452 (has_reinsert_breakpoints): Likewise.
8453 (uninsert_reinsert_breakpoints): Likewise.
8454 (reinsert_reinsert_breakpoints): Likewise.
8455 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8456 (delete_reinsert_breakpoints): Likewise.
8457 (reinsert_reinsert_breakpoints): Likewise.
8458 (uninsert_reinsert_breakpoints): Likewise.
8459 (has_reinsert_breakpoints): Likewise.
8461 2016-07-21 Yao Qi <yao.qi@linaro.org>
8463 * inferiors.c (get_thread_process): Make parameter const.
8464 * inferiors.h (get_thread_process): Update declaration.
8465 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8466 Add new parameters child_thread and parent_thread. Callers
8468 * mem-break.h (clone_all_breakpoints): Update declaration.
8470 2016-07-21 Yao Qi <yao.qi@linaro.org>
8472 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8473 <command_list, handler>: Remove.
8474 (struct gdb_breakpoint): New.
8475 (struct other_breakpoint): New.
8476 (struct reinsert_breakpoint): New.
8477 (is_gdb_breakpoint): New function.
8478 (any_persistent_commands): Update command_list if
8479 is_gdb_breakpoint returns true.
8480 (set_breakpoint): Create breakpoints according to their types.
8481 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8482 (set_gdb_breakpoint_1): Likewise.
8483 (set_gdb_breakpoint): Likewise.
8484 (clear_breakpoint_conditions): Change parameter type to
8485 'struct gdb_breakpoint *'.
8486 (clear_breakpoint_commands): Likewise.
8487 (clear_breakpoint_conditions_and_commands): Likewise.
8488 (add_condition_to_breakpoint): Likewise.
8489 (add_breakpoint_condition): Likewise.
8490 (add_commands_to_breakpoint): Likewise.
8491 (check_breakpoints): Check other_breakpoint.
8492 (clone_one_breakpoint): Clone breakpopint according to its type.
8493 * mem-break.h (struct gdb_breakpoint): Declare.
8494 (set_gdb_breakpoint): Update declaration.
8495 (clear_breakpoint_conditions_and_commands): Likewise.
8496 (add_breakpoint_condition): Likewise.
8497 (add_breakpoint_commands): Likewise.
8498 * server.c (process_point_options): Change parameter type to
8499 'struct gdb_breakpoint *'.
8501 2016-07-21 Yao Qi <yao.qi@linaro.org>
8503 * mem-break.c (set_breakpoint_at): Rename it to ...
8504 (set_breakpoint_type_at): ... it.
8505 (set_breakpoint_at): Call set_breakpoint_type_at.
8506 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8507 * mem-break.h (set_breakpoint_at): Update comments.
8509 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8511 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8513 (nios2_store_gregset): Likewise.
8515 2016-07-01 Pedro Alves <palves@redhat.com>
8516 Antoine Tremblay <antoine.tremblay@ericsson.com>
8518 * linux-low.c: Change interface to take the target lwp_info
8519 pointer directly and return void. Handle detaching from a zombie
8521 (linux_detach_lwp_callback): New function.
8522 (linux_detach): Detach from the leader thread after detaching from
8525 2016-06-28 Yao Qi <yao.qi@linaro.org>
8527 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8528 for variable new_offset.
8529 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8530 (aarch64_ftrace_insn_reloc_cb): Likewise.
8531 (aarch64_ftrace_insn_reloc_tb): Likewise.
8532 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8533 PRIx64 instead of PRIx32.
8535 2016-06-28 Yao Qi <yao.qi@linaro.org>
8537 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8538 (the_low_target): Install arm_get_syscall_trapinfo.
8540 2016-06-28 Yao Qi <yao.qi@linaro.org>
8542 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8544 (the_low_target): Install aarch64_get_syscall_trapinfo.
8546 2016-06-28 Yao Qi <yao.qi@linaro.org>
8548 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8550 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8551 Remove parameter sysno.
8552 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8555 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8557 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8558 (s390_emit_ne_goto): Likewise.
8559 (s390_emit_lt_goto): Likewise.
8560 (s390_emit_le_goto): Likewise.
8561 (s390_emit_gt_goto): Likewise.
8562 (s390_emit_ge_goto): Likewise.
8563 (s390x_emit_eq_goto): Likewise.
8564 (s390x_emit_ne_goto): Likewise.
8565 (s390x_emit_lt_goto): Likewise.
8566 (s390x_emit_le_goto): Likewise.
8567 (s390x_emit_gt_goto): Likewise.
8568 (s390x_emit_ge_goto): Likewise.
8569 (s390_emit_ops_impl): Mark variable static.
8570 (s390x_emit_ops): Likewise.
8572 2016-06-17 Yao Qi <yao.qi@linaro.org>
8574 * linux-low.c (handle_extended_wait): Call
8575 uninsert_reinsert_breakpoints for the parent process. Remove
8576 reinsert breakpoints from the child process. Reinsert them to
8577 the parent process when vfork is done.
8578 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8579 (reinsert_reinsert_breakpoints): New function.
8580 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8581 (reinsert_reinsert_breakpoints): Declare.
8583 2016-06-17 Yao Qi <yao.qi@linaro.org>
8585 * linux-low.c (handle_extended_wait): If the parent is doing
8586 step-over, remove the reinsert breakpoints from the forked child.
8588 2016-06-17 Yao Qi <yao.qi@linaro.org>
8590 * linux-low.c (unsuspend_all_lwps): Declare.
8591 (linux_low_filter_event): If thread exited, call finish_step_over.
8592 If step-over is finished, unsuspend other threads.
8594 2016-06-17 Yao Qi <yao.qi@linaro.org>
8596 * linux-low.c (linux_resume_one_lwp_throw): Assert
8597 has_reinsert_breakpoints returns false.
8598 * mem-break.c (delete_disabled_breakpoints): Assert
8599 bp type isn't reinsert_breakpoint.
8601 2016-06-17 Yao Qi <yao.qi@linaro.org>
8603 * linux-low.c (maybe_hw_step): New function.
8604 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8605 (finish_step_over): Switch current_thread to lwp temporarily,
8606 and assert has_reinsert_breakpoints returns true.
8607 (proceed_one_lwp): Call maybe_hw_step.
8608 * mem-break.c (has_reinsert_breakpoints): New function.
8609 * mem-break.h (has_reinsert_breakpoints): Declare.
8611 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8613 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8615 2016-05-17 Yao Qi <yao.qi@linaro.org>
8617 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8618 instead of find_inferior.
8620 2016-05-05 Yao Qi <yao.qi@linaro.org>
8622 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8623 Initialize res to zero.
8625 2016-05-05 Yao Qi <yao.qi@linaro.org>
8627 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8630 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8632 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8633 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8634 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8636 2016-04-28 Par Olsson <par.olsson@windriver.com>
8637 Simon Marchi <simon.marchi@ericsson.com>
8639 * tracepoint.c (write_inferior_int8): New function.
8640 (cmd_qtenable_disable): Write enable flag using
8641 write_inferior_int8.
8643 2016-04-25 Yao Qi <yao.qi@linaro.org>
8645 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8646 (need_step_over_p): Return zero if the LWP has pending signals
8647 can be delivered on software single step target.
8649 2016-04-25 Yao Qi <yao.qi@linaro.org>
8651 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8652 return instead of error.
8654 2016-04-22 Yao Qi <yao.qi@linaro.org>
8656 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8659 2016-04-22 Yao Qi <yao.qi@linaro.org>
8661 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8662 signal when stepping over breakpoint with software single
8665 2016-04-21 Pedro Alves <palves@redhat.com>
8667 * linux-s390-low.c (s390_collect_ptrace_register)
8668 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8670 (s390_check_regset): Use void * instead of gdb_byte *.
8672 2016-04-20 Pedro Alves <palves@redhat.com>
8674 * configure: Renegerate.
8676 2016-04-20 Yao Qi <yao.qi@linaro.org>
8678 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8679 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8681 (arm_store_gregset): Likewise.
8683 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8685 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8686 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8687 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8688 (amd64-avx-mpx-linux.c): New rules.
8689 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8690 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8691 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8692 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8693 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8694 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8695 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8696 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8697 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8698 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8699 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8700 * linux-x86-low.c (x86_linux_read_description): Add case for
8701 X86_XSTATE_AVX_MPX_MASK.
8702 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8703 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8704 init_registers_i386_avx_mpx_linux.
8705 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8706 (initialize_low_tracepoint): Call
8707 init_registers_i386_avx_mpx_linux.
8708 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8709 (initialize_low_tracepoint): Call
8710 init_registers_amd64_avx_mpx_linux.
8711 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8712 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8713 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8716 2016-04-18 Pedro Alves <palves@redhat.com>
8718 * configure: Regenerate.
8720 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8722 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8723 (aarch64_emit_sub): Likewise.
8725 2016-04-12 Pedro Alves <palves@redhat.com>
8727 * utils.c (prepare_to_throw_exception): Delete.
8729 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8731 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8733 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8735 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8737 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8739 * linux-aarch64-ipa.c: Add <elf.h> include.
8740 * linux-ppc-ipa.c: Add <elf.h> include.
8741 * linux-s390-ipa.c: Add <elf.h> include.
8743 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8745 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8746 (get_raw_reg_ptr): Likewise.
8747 (get_trace_state_variable_value_ptr): Likewise.
8748 (set_trace_state_variable_value_ptr): Likewise.
8749 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8752 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8753 Marcin Kościelnicki <koriakin@0x04.net>
8756 * linux-ppc-low.c (emit_insns): New function.
8757 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8758 (ppc_emit_prologue): New function.
8759 (ppc_emit_epilogue): New function.
8760 (ppc_emit_add): New function.
8761 (ppc_emit_sub): New function.
8762 (ppc_emit_mul): New function.
8763 (ppc_emit_lsh): New function.
8764 (ppc_emit_rsh_signed): New function.
8765 (ppc_emit_rsh_unsigned): New function.
8766 (ppc_emit_ext): New function.
8767 (ppc_emit_zero_ext): New function.
8768 (ppc_emit_log_not): New function.
8769 (ppc_emit_bit_and): New function.
8770 (ppc_emit_bit_or): New function.
8771 (ppc_emit_bit_xor): New function.
8772 (ppc_emit_bit_not): New function.
8773 (ppc_emit_equal): New function.
8774 (ppc_emit_less_signed): New function.
8775 (ppc_emit_less_unsigned): New function.
8776 (ppc_emit_ref): New function.
8777 (ppc_emit_const): New function.
8778 (ppc_emit_reg): New function.
8779 (ppc_emit_pop): New function.
8780 (ppc_emit_stack_flush): New function.
8781 (ppc_emit_swap): New function.
8782 (ppc_emit_stack_adjust): New function.
8783 (ppc_emit_call): New function.
8784 (ppc_emit_int_call_1): New function.
8785 (ppc_emit_void_call_2): New function.
8786 (ppc_emit_if_goto): New function.
8787 (ppc_emit_goto): New function.
8788 (ppc_emit_eq_goto): New function.
8789 (ppc_emit_ne_goto): New function.
8790 (ppc_emit_lt_goto): New function.
8791 (ppc_emit_le_goto): New function.
8792 (ppc_emit_gt_goto): New function.
8793 (ppc_emit_ge_goto): New function.
8794 (ppc_write_goto_address): New function.
8795 (ppc_emit_ops_impl): New static variable.
8796 (ppc64v1_emit_prologue): New function.
8797 (ppc64v2_emit_prologue): New function.
8798 (ppc64_emit_epilogue): New function.
8799 (ppc64_emit_add): New function.
8800 (ppc64_emit_sub): New function.
8801 (ppc64_emit_mul): New function.
8802 (ppc64_emit_lsh): New function.
8803 (ppc64_emit_rsh_signed): New function.
8804 (ppc64_emit_rsh_unsigned): New function.
8805 (ppc64_emit_ext): New function.
8806 (ppc64_emit_zero_ext): New function.
8807 (ppc64_emit_log_not): New function.
8808 (ppc64_emit_bit_and): New function.
8809 (ppc64_emit_bit_or): New function.
8810 (ppc64_emit_bit_xor): New function.
8811 (ppc64_emit_bit_not): New function.
8812 (ppc64_emit_equal): New function.
8813 (ppc64_emit_less_signed): New function.
8814 (ppc64_emit_less_unsigned): New function.
8815 (ppc64_emit_ref): New function.
8816 (ppc64_emit_const): New function.
8817 (ppc64v1_emit_reg): New function.
8818 (ppc64v2_emit_reg): New function.
8819 (ppc64_emit_pop): New function.
8820 (ppc64_emit_stack_flush): New function.
8821 (ppc64_emit_swap): New function.
8822 (ppc64v1_emit_call): New function.
8823 (ppc64v2_emit_call): New function.
8824 (ppc64v1_emit_int_call_1): New function.
8825 (ppc64v2_emit_int_call_1): New function.
8826 (ppc64v1_emit_void_call_2): New function.
8827 (ppc64v2_emit_void_call_2): New function.
8828 (ppc64_emit_if_goto): New function.
8829 (ppc64_emit_eq_goto): New function.
8830 (ppc64_emit_ne_goto): New function.
8831 (ppc64_emit_lt_goto): New function.
8832 (ppc64_emit_le_goto): New function.
8833 (ppc64_emit_gt_goto): New function.
8834 (ppc64_emit_ge_goto): New function.
8835 (ppc64v1_emit_ops_impl): New static variable.
8836 (ppc64v2_emit_ops_impl): New static variable.
8837 (ppc_emit_ops): New function.
8838 (linux_low_target): Wire in ppc_emit_ops.
8840 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8841 Marcin Kościelnicki <koriakin@0x04.net>
8844 * Makefile.in: Add powerpc-*-ipa.o
8845 * configure.srv: Add ipa_obj for powerpc*-linux.
8846 * linux-ppc-ipa.c: New file.
8847 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8849 (PPC_FIELD): New macro.
8850 (PPC_SEXT): New macro.
8851 (PPC_OP6): New macro.
8852 (PPC_BO): New macro.
8853 (PPC_LI): New macro.
8854 (PPC_BD): New macro.
8855 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8856 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8857 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8858 (ppc_get_thread_area): New function.
8859 (is_elfv2_inferior): New function.
8860 (gen_ds_form): New function.
8861 (GEN_STD): New macro.
8862 (GEN_STDU): New macro.
8863 (GEN_LD): New macro.
8864 (GEN_LDU): New macro.
8865 (gen_d_form): New function.
8866 (GEN_ADDI): New macro.
8867 (GEN_ADDIS): New macro.
8868 (GEN_LI): New macro.
8869 (GEN_LIS): New macro.
8870 (GEN_ORI): New macro.
8871 (GEN_ORIS): New macro.
8872 (GEN_LWZ): New macro.
8873 (GEN_STW): New macro.
8874 (GEN_STWU): New macro.
8875 (gen_xfx_form): New function.
8876 (GEN_MFSPR): New macro.
8877 (GEN_MTSPR): New macro.
8878 (GEN_MFCR): New macro.
8879 (GEN_MTCR): New macro.
8880 (GEN_SYNC): New macro.
8881 (GEN_LWSYNC): New macro.
8882 (gen_x_form): New function.
8883 (GEN_OR): New macro.
8884 (GEN_MR): New macro.
8885 (GEN_LWARX): New macro.
8886 (GEN_STWCX): New macro.
8887 (GEN_CMPW): New macro.
8888 (gen_md_form): New function.
8889 (GEN_RLDICL): New macro.
8890 (GEN_RLDICR): New macro.
8891 (gen_i_form): New function.
8893 (GEN_BL): New macro.
8894 (gen_b_form): New function.
8895 (GEN_BNE): New macro.
8896 (GEN_LOAD): New macro.
8897 (GEN_STORE): New macro.
8898 (gen_limm): New function.
8899 (gen_atomic_xchg): New function.
8900 (gen_call): New function.
8901 (ppc_relocate_instruction): New function.
8902 (ppc_install_fast_tracepoint_jump_pad): New function.
8903 (ppc_get_min_fast_tracepoint_insn_len): New function.
8904 (ppc_get_ipa_tdesc_idx): New function.
8905 (the_low_target): Wire in the new functions.
8906 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8908 * linux-ppc-tdesc.h: New file.
8910 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8912 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8913 (alloc_jump_pad_buffer): New function.
8914 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8915 (alloc_jump_pad_buffer): New function.
8916 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8917 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8918 (alloc_jump_pad_buffer): New function.
8919 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8920 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8921 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8922 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8924 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8926 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8927 * linux-amd64-ipa.c: Likewise.
8928 * linux-i386-ipa.c: Likewise.
8929 * linux-s390-ipa.c: Likewise.
8930 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8931 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8932 set_trace_state_variable_value_ptr.
8933 (struct ipa_sym_addresses): Likewise.
8934 (symbol_list): Likewise.
8935 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8936 accessing gdb_collect directly.
8937 (gdb_collect_ptr_type): New typedef.
8938 (get_raw_reg_ptr_type): New typedef.
8939 (get_trace_state_variable_value_ptr_type): New typedef.
8940 (set_trace_state_variable_value_ptr_type): New typedef.
8941 (gdb_collect_ptr): New global.
8942 (get_raw_reg_ptr): New global.
8943 (get_trace_state_variable_value_ptr): New global.
8944 (set_trace_state_variable_value_ptr): New global.
8945 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8946 accessing get_raw_reg directly.
8947 (get_get_tsv_func_addr): Likewise for
8948 get_trace_state_variable_value_ptr.
8949 (get_set_tsv_func_addr): Likewise for
8950 set_trace_state_variable_value_ptr.
8951 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8953 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8955 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8957 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8959 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8961 (relocate_instruction): Remove own_buf.
8962 * server.c (own_buf): Make global.
8963 (handle_v_requests): Make global.
8964 * server.h (own_buf): New declaration.
8965 (handle_v_requests): New prototype.
8967 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8970 * linux-s390-low.c (add_insns): New function.
8971 (s390_emit_prologue): New function.
8972 (s390_emit_epilogue): New function.
8973 (s390_emit_add): New function.
8974 (s390_emit_sub): New function.
8975 (s390_emit_mul): New function.
8976 (s390_emit_lsh): New function.
8977 (s390_emit_rsh_signed): New function.
8978 (s390_emit_rsh_unsigned): New function.
8979 (s390_emit_ext): New function.
8980 (s390_emit_log_not): New function.
8981 (s390_emit_bit_and): New function.
8982 (s390_emit_bit_or): New function.
8983 (s390_emit_bit_xor): New function.
8984 (s390_emit_bit_not): New function.
8985 (s390_emit_equal): New function.
8986 (s390_emit_less_signed): New function.
8987 (s390_emit_less_unsigned): New function.
8988 (s390_emit_ref): New function.
8989 (s390_emit_if_goto): New function.
8990 (s390_emit_goto): New function.
8991 (s390_write_goto_address): New function.
8992 (s390_emit_litpool): New function.
8993 (s390_emit_const): New function.
8994 (s390_emit_call): New function.
8995 (s390_emit_reg): New function.
8996 (s390_emit_pop): New function.
8997 (s390_emit_stack_flush): New function.
8998 (s390_emit_zero_ext): New function.
8999 (s390_emit_swap): New function.
9000 (s390_emit_stack_adjust): New function.
9001 (s390_emit_set_r2): New function.
9002 (s390_emit_int_call_1): New function.
9003 (s390_emit_void_call_2): New function.
9004 (s390_emit_eq_goto): New function.
9005 (s390_emit_ne_goto): New function.
9006 (s390_emit_lt_goto): New function.
9007 (s390_emit_le_goto): New function.
9008 (s390_emit_gt_goto): New function.
9009 (s390_emit_ge_goto): New function.
9010 (s390x_emit_prologue): New function.
9011 (s390x_emit_epilogue): New function.
9012 (s390x_emit_add): New function.
9013 (s390x_emit_sub): New function.
9014 (s390x_emit_mul): New function.
9015 (s390x_emit_lsh): New function.
9016 (s390x_emit_rsh_signed): New function.
9017 (s390x_emit_rsh_unsigned): New function.
9018 (s390x_emit_ext): New function.
9019 (s390x_emit_log_not): New function.
9020 (s390x_emit_bit_and): New function.
9021 (s390x_emit_bit_or): New function.
9022 (s390x_emit_bit_xor): New function.
9023 (s390x_emit_bit_not): New function.
9024 (s390x_emit_equal): New function.
9025 (s390x_emit_less_signed): New function.
9026 (s390x_emit_less_unsigned): New function.
9027 (s390x_emit_ref): New function.
9028 (s390x_emit_if_goto): New function.
9029 (s390x_emit_const): New function.
9030 (s390x_emit_call): New function.
9031 (s390x_emit_reg): New function.
9032 (s390x_emit_pop): New function.
9033 (s390x_emit_stack_flush): New function.
9034 (s390x_emit_zero_ext): New function.
9035 (s390x_emit_swap): New function.
9036 (s390x_emit_stack_adjust): New function.
9037 (s390x_emit_int_call_1): New function.
9038 (s390x_emit_void_call_2): New function.
9039 (s390x_emit_eq_goto): New function.
9040 (s390x_emit_ne_goto): New function.
9041 (s390x_emit_lt_goto): New function.
9042 (s390x_emit_le_goto): New function.
9043 (s390x_emit_gt_goto): New function.
9044 (s390x_emit_ge_goto): New function.
9045 (s390_emit_ops): New function.
9046 (struct linux_target_ops): Fill in emit_ops hook.
9048 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9051 * Makefile.in: Add s390 IPA files.
9052 * configure.srv: Build IPA for s390.
9053 * linux-s390-ipa.c: New file.
9054 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9055 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9056 (tdesc_s390_linux32): Likewise.
9057 (init_registers_s390_linux32v1): Likewise.
9058 (tdesc_s390_linux32v1): Likewise.
9059 (init_registers_s390_linux32v2): Likewise.
9060 (tdesc_s390_linux32v2): Likewise.
9061 (init_registers_s390_linux64): Likewise.
9062 (tdesc_s390_linux64): Likewise.
9063 (init_registers_s390_linux64v1): Likewise.
9064 (tdesc_s390_linux64v1): Likewise.
9065 (init_registers_s390_linux64v2): Likewise.
9066 (tdesc_s390_linux64v2): Likewise.
9067 (init_registers_s390_te_linux64): Likewise.
9068 (tdesc_s390_te_linux64): Likewise.
9069 (init_registers_s390_vx_linux64): Likewise.
9070 (tdesc_s390_vx_linux64): Likewise.
9071 (init_registers_s390_tevx_linux64): Likewise.
9072 (tdesc_s390_tevx_linux64): Likewise.
9073 (init_registers_s390x_linux64): Likewise.
9074 (tdesc_s390x_linux64): Likewise.
9075 (init_registers_s390x_linux64v1): Likewise.
9076 (tdesc_s390x_linux64v1): Likewise.
9077 (init_registers_s390x_linux64v2): Likewise.
9078 (tdesc_s390x_linux64v2): Likewise.
9079 (init_registers_s390x_te_linux64): Likewise.
9080 (tdesc_s390x_te_linux64): Likewise.
9081 (init_registers_s390x_vx_linux64): Likewise.
9082 (tdesc_s390x_vx_linux64): Likewise.
9083 (init_registers_s390x_tevx_linux64): Likewise.
9084 (tdesc_s390x_tevx_linux64): Likewise.
9085 (have_hwcap_s390_vx): New static variable.
9086 (s390_arch_setup): Fill have_hwcap_s390_vx.
9087 (s390_get_thread_area): New function.
9088 (s390_ft_entry_gpr_esa): New const.
9089 (s390_ft_entry_gpr_zarch): New const.
9090 (s390_ft_entry_misc): New const.
9091 (s390_ft_entry_fr): New const.
9092 (s390_ft_entry_vr): New const.
9093 (s390_ft_main_31): New const.
9094 (s390_ft_main_64): New const.
9095 (s390_ft_exit_fr): New const.
9096 (s390_ft_exit_vr): New const.
9097 (s390_ft_exit_misc): New const.
9098 (s390_ft_exit_gpr_esa): New const.
9099 (s390_ft_exit_gpr_zarch): New const.
9100 (append_insns): New function.
9101 (s390_relocate_instruction): New function.
9102 (s390_install_fast_tracepoint_jump_pad): New function.
9103 (s390_get_min_fast_tracepoint_insn_len): New function.
9104 (s390_get_ipa_tdesc_idx): New function.
9105 (struct linux_target_ops): Wire in the above functions.
9106 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9107 * linux-s390-tdesc.h: New file.
9109 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9111 * linux-s390-low.c (s390_supports_tracepoints): New function.
9112 (struct linux_target_ops): Fill supports_tracepoints hook.
9114 2016-03-18 Yao Qi <yao.qi@linaro.org>
9116 * linux-low.c (lwp_signal_can_be_delivered): New function.
9117 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9119 2016-03-18 Yao Qi <yao.qi@linaro.org>
9121 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9122 0 if signal is enqueued. Remove 'signal' from one debugging
9123 message. Move one debugging message to some lines below.
9124 Remove code setting 'signal' to 0.
9126 2016-03-18 Yao Qi <yao.qi@linaro.org>
9128 * linux-low.c (linux_low_filter_event): Remove redundant
9129 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9131 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9133 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9134 (struct linux_target_ops): Wire in the above.
9136 2016-03-03 Yao Qi <yao.qi@linaro.org>
9138 * linux-low.c: Update comments to start_step_over.
9140 2016-03-03 Yao Qi <yao.qi@linaro.org>
9143 * linux-low.c (handle_extended_wait): Set child suspended
9144 if event_lwp->bp_reinsert isn't zero.
9146 2016-03-02 Yao Qi <yao.qi@linaro.org>
9148 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9149 enqueue_pending_signal.
9151 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9153 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9156 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9158 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9159 (s390_regmap_3264) [!__s390x__]: New global.
9160 (s390_collect_ptrace_register): Skip map entries containing -1.
9161 (s390_supply_ptrace_register): Ditto.
9162 (s390_fill_gprs_high): New function.
9163 (s390_store_gprs_high): New function.
9164 (s390_regsets): Add NT_S390_HIGH_GPRS.
9165 (s390_get_hwcap): Enable on 31-bit.
9166 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9167 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9168 Detect NT_S390_HIGH_GPRS.
9169 (s390_usrregs_info_3264): Enable on 31-bit.
9170 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9171 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9173 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9176 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9177 * configure.srv: Ditto.
9178 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9179 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9180 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9181 (init_registers_amd64_linux): Remove prototype.
9182 (tdesc_amd64_linux): Remove declaration.
9183 (get_ipa_tdesc): New function.
9184 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9185 initialize remaining tdescs.
9186 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9187 (init_registers_i386_linux): Remove prototype.
9188 (tdesc_i386_linux): Remove declaration.
9189 (get_ipa_tdesc): New function.
9190 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9191 initialize remaining tdescs.
9192 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9193 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9194 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9195 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9196 (x86_get_ipa_tdesc_idx): New function.
9197 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9198 * linux-x86-tdesc.h: New file.
9199 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9200 (target_get_ipa_tdesc_idx): New macro.
9201 * tracepoint.c (ipa_tdesc_idx): New macro.
9202 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9203 (symbol_list): Add ipa_tdesc_idx.
9204 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9205 (ipa_tdesc): Remove.
9206 (ipa_tdesc_idx): New variable.
9207 (get_context_regcache): Use get_ipa_tdesc.
9208 (gdb_collect): Ditto.
9210 * tracepoint.h (get_ipa_tdesc): New prototype.
9211 (ipa_tdesc): Remove.
9213 2016-02-24 Pedro Alves <palves@redhat.com>
9215 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9216 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9217 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9218 Factor out common code between the USE_SIGTRAP_SIGINFO and
9219 !USE_SIGTRAP_SIGINFO blocks.
9220 (linux_low_filter_event): Call save_stop_reason instead of
9221 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9223 (linux_wait_1): Update comments.
9225 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9227 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9228 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9229 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9230 ppc_insert_point, ppc_remove_point.
9232 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9234 * linux-s390-low.c (s390_supports_z_point_type): New function.
9235 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9237 2016-02-16 Yao Qi <yao.qi@linaro.org>
9239 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9240 PC. Get pc from regcache_read_pc.
9242 2016-02-12 Yao Qi <yao.qi@linaro.org>
9244 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9245 or linux_get_pc_32bit.
9246 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9248 2016-02-12 Yao Qi <yao.qi@linaro.org>
9250 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9251 arm_linux_get_next_pcs_fixup.
9253 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9255 * tracepoint.c (x_tracepoint_action_download): Change
9256 write_inferior_data_ptr to write_inferior_data_pointer.
9257 (cmd_qtstart): Likewise.
9258 (write_inferior_data_ptr): Remove.
9259 (download_agent_expr): Change write_inferior_data_ptr to
9260 write_inferior_data_pointer.
9261 (download_tracepoint_1): Likewise.
9262 (download_tracepoint): Likewise.
9263 (download_trace_state_variables): Likewise.
9265 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9266 Marcin Kościelnicki <koriakin@0x04.net>
9268 * tracepoint.c (struct tracepoint_action_ops): Remove.
9269 (struct tracepoint_action): Remove ops.
9270 (m_tracepoint_action_download, r_tracepoint_action_download)
9271 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9272 size and offset accordingly.
9273 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9274 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9275 (tracepoint_action_send, tracepoint_action_download): New functions.
9276 Helpers for trace action handlers.
9277 (add_tracepoint_action): Remove setup actions ops.
9278 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9280 2016-02-10 Yao Qi <yao.qi@linaro.org>
9282 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9284 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9286 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9288 * configure: Regenerate.
9290 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9292 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9293 void * to gdb_byte *.
9294 * linux-low.c (siginfo_fixup): Likewise.
9295 (linux_xfer_siginfo): Likewise.
9296 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9298 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9300 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9302 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9304 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9306 * linux-x86-low.c [__x86_64__]: Include
9307 "nat/amd64-linux-siginfo.h".
9308 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9309 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9310 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9311 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9312 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9313 (cpt_si_fd, si_timerid, si_overrun): Move from
9314 nat/amd64-linux-siginfo.c.
9315 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9317 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9319 * server.c (skip_to_semicolon): Remove.
9320 (process_point_options): Use strchrnul instead of
9323 2016-01-26 Yao Qi <yao.qi@linaro.org>
9325 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9326 * linux-low.c (install_software_single_step_breakpoints): Don't
9327 call regcache_read_pc.
9328 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9331 2016-01-26 Yao Qi <yao.qi@linaro.org>
9333 * linux-low.c (install_software_single_step_breakpoints): Call
9334 regcache_read_pc instead of get_pc.
9336 2016-01-26 Yao Qi <yao.qi@linaro.org>
9338 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9339 (unblock_async_io): Rename to ...
9340 (block_unblock_async_io): ... it. New function.
9341 (enable_async_io): Don't install SIGIO handler. Unblock it
9343 (disable_async_io): Don't ignore SIGIO. Block it instead.
9344 (initialize_async_io): Install SIGIO handler. Don't call
9347 2016-01-26 Yao Qi <yao.qi@linaro.org>
9349 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9350 first character is '\003', call *the_target->request_interrupt.
9352 2016-01-25 Yao Qi <yao.qi@linaro.org>
9354 * remote-utils.c (new_thread_notify): Remove.
9355 (dead_thread_notify): Likewise.
9356 * remote-utils.h (new_thread_notify): Remove declaration.
9357 (dead_thread_notify): Likewise.
9359 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9361 * gdb.trace/pending.exp: Fix expected message on continue.
9363 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9365 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9366 it works properly on big-endian machines where sizeof (CORE_ADDR)
9369 2016-01-21 Pedro Alves <palves@redhat.com>
9371 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9372 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9373 * configure: Regenerate.
9375 2016-01-21 Yao Qi <yao.qi@linaro.org>
9377 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9378 is_thumb and set it according to CPSR saved on the stack.
9379 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9380 arm_sigreturn_next_pc.
9382 2016-01-18 Yao Qi <yao.qi@linaro.org>
9384 * linux-low.c (linux_set_pc_64bit): New function.
9385 (linux_get_pc_64bit): New function.
9386 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9388 * linux-sparc-low.c (debug_threads): Remove declaration.
9389 (sparc_get_pc): Remove.
9390 (the_low_target): Use linux_get_pc_64bit instead of
9392 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9393 (the_low_target): Use linux_get_pc_64bit and
9396 2016-01-18 Yao Qi <yao.qi@linaro.org>
9398 * linux-arm-low.c (debug_threads): Remove declaration.
9399 (arm_get_pc, arm_set_pc): Remove.
9400 (the_low_target): Use linux_get_pc_32bit and
9402 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9403 (the_low_target): Use linux_get_pc_32bit and
9405 * linux-cris-low.c (debug_threads): Remove declaration.
9406 (cris_get_pc, cris_set_pc,): Remove.
9407 (the_low_target): Use linux_get_pc_32bit and
9409 * linux-crisv32-low.c (debug_threads): Remove declaration.
9410 (cris_get_pc, cris_set_pc): Remove.
9411 (the_low_target): Use linux_get_pc_32bit and
9413 * linux-low.c: Include inttypes.h.
9414 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9415 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9416 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9417 (the_low_target): Use linux_get_pc_32bit and
9419 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9420 (the_low_target): Use linux_get_pc_32bit and
9422 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9423 (the_low_target): Use linux_get_pc_32bit and
9425 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9426 (the_low_target): Use linux_get_pc_32bit and
9428 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9429 (the_low_target): Use linux_get_pc_32bit and
9432 2016-01-18 Gary Benson <gbenson@redhat.com>
9434 * configure.ac (AC_FUNC_FORK): New check.
9435 * config.in: Regenerate.
9436 * configure: Likewise.
9438 2016-01-14 Yao Qi <yao.qi@linaro.org>
9440 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9441 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9442 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9443 arm_get_next_pcs_ctor.
9445 2016-01-12 Josh Stone <jistone@redhat.com>
9446 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9448 * inferiors.h: Include "gdb_vecs.h".
9449 (struct process_info): Add syscalls_to_catch.
9450 * inferiors.c (remove_process): Free syscalls_to_catch.
9451 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9452 syscall_return stops.
9453 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9454 * server.c (handle_general_set): Handle QCatchSyscalls.
9455 (handle_query): Report support for QCatchSyscalls.
9456 * target.h (struct target_ops): Add supports_catch_syscall.
9457 (target_supports_catch_syscall): New macro.
9458 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9459 (struct lwp_info): Add syscall_state.
9460 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9461 Maintain syscall_state and syscalls_to_catch across exec.
9462 (get_syscall_trapinfo): New function, proxy to the_low_target.
9463 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9464 (linux_low_filter_event): Toggle syscall_state entry/return for
9465 syscall traps, and set it ignored for all others.
9466 (gdb_catching_syscalls_p): New function.
9467 (gdb_catch_this_syscall_p): New function.
9468 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9469 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9470 (linux_supports_catch_syscall): New function.
9471 (linux_target_ops): Install it.
9472 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9473 (the_low_target): Install it.
9475 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9477 * acinclude.m4: Include new ../warning.m4 file.
9478 * configure: Regenerated.
9479 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9481 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9483 * ax.c (is_goto_target): Mark static.
9484 * linux-low.c (register_addr): Likewise.
9485 (linux_fetch_registers, linux_store_registers): Likewise.
9486 * mem-break.c (any_persistent_commands): Fix old prototype.
9487 (add_commands_to_breakpoint): Mark static.
9488 * regcache.c (find_register_by_name): Delete unused func.
9489 * remote-utils.c (hex_or_minus_one): Mark static.
9490 * server.c (monitor_show_help): Mark static.
9491 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9492 handle_v_requests): Likewise.
9494 2016-01-12 Pedro Alves <palves@redhat.com>
9496 Remove use of the registered trademark symbol throughout.
9498 2016-01-08 Yao Qi <yao.qi@linaro.org>
9500 * remote-utils.c (getpkt): If c is '\003', call target hook
9503 2016-01-06 Yao Qi <yao.qi@linaro.org>
9505 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9506 linux-aarch32-low.c.
9507 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9508 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9509 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9510 (thumb2_breakpoint): Declare.
9511 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9512 linux-aarch32-low.h.
9513 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9514 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9515 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9517 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9519 * gdbreplay.c (gdbreplay_version): Change copyright year in
9521 * server.c (gdbserver_version): Likewise.
9523 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9525 * server.c (crc32_table): Delete.
9526 (crc32): Use libiberty's xcrc32 function.
9528 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9530 * lynx-low.c (lynx_delete_thread_callback): New function.
9531 (lynx_mourn): Properly delete our process and all of its
9532 threads. Remove call to clear_inferiors.
9534 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9536 * target.c (thread_search_callback): Add check that
9537 the thread_stopped target callback is not NULL before
9540 2015-12-21 Yao Qi <yao.qi@linaro.org>
9542 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9545 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9547 * server.c (handle_query): Call target_supports_software_single_step.
9549 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9551 * linux-low.c (single_step): New function.
9552 (linux_resume_one_lwp_throw): Call single_step.
9553 (start_step_over): Likewise.
9555 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9557 * Makefile.in (SFILES): Append arch/arm-linux.c,
9558 arch/arm-get-next-pcs.c.
9559 (arm-linux.o): New rule.
9560 (arm-get-next-pcs.o): New rule.
9561 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9563 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9564 to linux-aarch32-low.c.
9565 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9566 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9567 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9568 (thumb2_breakpoint_len): Likewise.
9569 (arm_is_thumb_mode): Make non-static.
9570 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9571 from linux-aarch32-low.c.
9572 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9573 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9574 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9575 (thumb2_breakpoint_len): Likewise.
9576 (arm_is_thumb_mode): New declaration.
9577 * linux-arm-low.c: Include arch/arm-linux.h
9578 aarch/arm-get-next-pcs.h, sys/syscall.h.
9579 (get_next_pcs_ops): New struct.
9580 (get_next_pcs_addr_bits_remove): New function.
9581 (get_next_pcs_is_thumb): New function.
9582 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9583 (arm_sigreturn_next_pc): Likewise.
9584 (get_next_pcs_syscall_next_pc): Likewise.
9585 (arm_gdbserver_get_next_pcs): Likewise.
9586 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9588 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9589 * server.h: Include gdb_vecs.h.
9591 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9593 * Makefile.in (SFILES): Append common/common-regcache.c.
9594 (OBS): Append common-regcache.o.
9595 (common-regcache.o): New rule.
9596 * regcache.c (init_register_cache): Initialize cache to
9598 (regcache_raw_read_unsigned): New function.
9599 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9600 register_status enum.
9602 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9604 * linux-aarch64-low.c (the_low_targets): Rename
9605 breakpoint_reinsert_addr to get_next_pcs.
9606 * linux-arm-low.c (the_low_targets): Likewise.
9607 * linux-bfin-low.c (the_low_targets): Likewise.
9608 * linux-cris-low.c (the_low_targets): Likewise.
9609 * linux-crisv32-low.c (the_low_targets): Likewise.
9610 * linux-low.c (can_software_single_step): Likewise.
9611 (install_software_single_step_breakpoints): New function.
9612 (start_step_over): Use install_software_single_step_breakpoints.
9613 * linux-low.h: New CORE_ADDR vector.
9614 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9616 * linux-mips-low.c (the_low_targets): Likewise.
9617 * linux-nios2-low.c (the_low_targets): Likewise.
9618 * linux-sparc-low.c (the_low_targets): Likewise.
9620 2015-12-17 Pedro Alves <palves@redhat.com>
9622 * linux-low.c (linux_kill_one_lwp): Remove references to
9624 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9626 (linux_init_signals): Delete.
9627 (initialize_low): Adjust.
9628 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9630 2015-12-16 Pedro Alves <palves@redhat.com>
9632 * configure.ac (compiler warning flags): When testing a
9633 -Wno-foo option, check whether -Wfoo works instead.
9634 * configure: Regenerate.
9636 2015-12-11 Don Breazeal <donb@codesourcery.com>
9638 * server.c (process_serial_event): Don't exit from gdbserver
9639 in remote mode if there are still active inferiors.
9641 2015-12-11 Yao Qi <yao.qi@linaro.org>
9643 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9644 arm_breakpoint_at if the process is 32-bit.
9646 2015-12-11 Yao Qi <yao.qi@linaro.org>
9648 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9651 2015-12-07 Yao Qi <yao.qi@linaro.org>
9653 * configure.srv: Append arm.o to srv_tgtobj for
9654 aarch64*-*-linux* target.
9655 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9656 from linux-arm-low.c.
9657 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9658 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9659 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9660 (thumb2_breakpoint_len): Likewise.
9661 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9662 (arm_breakpoint_kinds): Likewise.
9663 (arm_breakpoint_kind_from_pc): Likewise.
9664 (arm_sw_breakpoint_from_kind): Likewise.
9665 (arm_breakpoint_kind_from_current_state): Likewise.
9666 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9667 (arm_sw_breakpoint_from_kind): Declare.
9668 (arm_breakpoint_kind_from_current_state): Declare.
9669 (arm_breakpoint_at): Declare.
9670 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9671 arm_sw_breakpoint_from_kind if process is 32-bit.
9672 (aarch64_breakpoint_kind_from_pc): New function.
9673 (aarch64_breakpoint_kind_from_current_state): New function.
9674 (the_low_target): Initialize fields breakpoint_kind_from_pc
9675 and breakpoint_kind_from_current_state.
9676 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9677 linux-aarch32-low.c.
9678 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9679 (arm_breakpoint, arm_breakpoint_len): Likewise.
9680 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9681 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9682 (arm_is_thumb_mode): Likewise.
9683 (arm_breakpoint_at): Likewise.
9684 (arm_breakpoint_kind_from_pc): Likewise.
9685 (arm_sw_breakpoint_from_kind): Likewise.
9686 (arm_breakpoint_kind_from_current_state): Likewise.
9689 2015-08-04 Yao Qi <yao.qi@linaro.org>
9691 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9692 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9693 * server.c (extended_protocol): Remove "static".
9694 * server.h (extended_protocol): Declare it.
9696 2015-12-04 Josh Stone <jistone@redhat.com>
9698 * target.h (struct target_ops) <arch_setup>: Rename to ...
9699 (struct target_ops) <post_create_inferior>: ... this.
9700 (target_arch_setup): Rename to ...
9701 (target_post_create_inferior): ... this, calling post_create_inferior.
9702 * server.c (start_inferior): Update target_arch_setup calls to
9703 target_post_create_inferior.
9704 * linux-low.c (linux_low_ptrace_options): Forward declare.
9705 (linux_arch_setup): Update its comment for general use.
9706 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9707 (struct linux_target_ops): Use linux_post_create_inferior.
9708 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9709 to post_create_inferior.
9710 * nto-low.c (struct nto_target_ops): Likewise.
9711 * spu-low.c (struct spu_target_ops): Likewise.
9712 * win32-low.c (struct win32_target_ops): Likewise.
9714 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9716 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9718 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9720 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9721 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9722 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9723 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9724 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9725 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9726 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9727 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9728 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9729 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9730 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9731 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9733 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9735 * linux-low.c (linux_look_up_symbols): Don't call
9736 linux_supports_traceclone.
9737 * linux-low.h (thread_db_init): Remove use_events argument.
9738 * thread-db.c (thread_db_use_event): Remove global variable.
9739 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9740 (struct thread_db) <td_create_bp>: Remove field.
9741 (thread_db_create_event): Remove function.
9742 (thread_db_enable_reporting): Likewise.
9743 (find_one_thread): Don't check for thread_db_use_events.
9744 (attach_thread): Likewise.
9745 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9746 (try_thread_db_load_1): Don't check for thread_db_use_events.
9747 (thread_db_init): Remove use_events argument and thread events
9749 (remove_thread_event_breakpoints): Remove function.
9750 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9752 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9754 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9756 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9757 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9758 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9759 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9760 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9762 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9764 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9765 * linux-low.c (can_hardware_single_step): Use
9766 supports_hardware_single_step.
9767 (can_software_single_step): New function.
9768 (start_step_over): Call can_software_single_step.
9769 (linux_supports_hardware_single_step): New function.
9770 (struct target_ops) <supports_software_single_step>: Initialize.
9771 * linux-low.h (struct linux_target_ops)
9772 <supports_hardware_single_step>: Initialize.
9773 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9774 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9775 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9776 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9777 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9778 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9779 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9780 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9781 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9782 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9784 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9785 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9787 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9788 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9789 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9791 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9792 * target.h (struct target_ops): <supports_software_single_step>:
9794 (target_supports_software_single_step): New macro.
9796 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9798 * linux-low.c (linux_wait_1): Fix pc advance condition.
9799 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9800 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9802 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9804 * linux-arm-low.c (arm_is_thumb_mode): New function.
9805 (arm_breakpoint_at): Use arm_is_thumb_mode.
9806 (arm_breakpoint_kind_from_current_state): New function.
9807 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9809 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9810 (linux_breakpoint_kind_from_current_state): New function.
9811 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9812 * linux-low.h (struct linux_target_ops)
9813 <breakpoint_kind_from_current_state>: New field.
9814 * target.h (struct target_ops): Likewise.
9815 (target_breakpoint_kind_from_current_state): New macro.
9817 2015-11-30 Pedro Alves <palves@redhat.com>
9819 * linux-low.c (linux_resume): Wake up the event loop before
9822 2015-11-30 Pedro Alves <palves@redhat.com>
9824 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9826 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9828 * target.c (struct thread_search): New structure.
9829 (thread_search_callback): New function.
9830 (prev_general_thread): New global.
9831 (prepare_to_access_memory, done_accessing_memory): New functions.
9832 * target.h (prepare_to_access_memory, done_accessing_memory):
9833 Replace macros with function declarations.
9835 2015-11-30 Pedro Alves <palves@redhat.com>
9838 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9839 report TARGET_WAITKIND_NO_RESUMED.
9840 * remote-utils.c (prepare_resume_reply): Handle
9841 TARGET_WAITKIND_NO_RESUMED.
9842 * server.c (report_no_resumed): New global.
9843 (handle_query) <qSupported>: Handle "no-resumed+". Report
9844 "no-resumed+" support.
9845 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9846 return error if the client doesn't support no-resumed events.
9847 (push_stop_notification): New function.
9848 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9849 events if the client supports them.
9851 2015-11-30 Pedro Alves <palves@redhat.com>
9853 * linux-low.c (thread_still_has_status_pending_p): Don't check
9855 (lwp_resumed): New function.
9856 (status_pending_p_callback): Return early if the LWP is not
9857 supposed to be resumed.
9859 2015-11-30 Pedro Alves <palves@redhat.com>
9861 * linux-low.c (handle_extended_wait): Assert that the LWP's
9862 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9863 thread create events, leave the new child's status pending.
9864 (linux_low_filter_event): If GDB wants to hear about thread exit
9865 events, leave the LWP marked dead and don't delete it.
9866 (linux_wait_for_event_filtered): Don't check for thread exit.
9867 (filter_exit_event): New function.
9868 (linux_wait_1): Use it, when returning an exit event.
9869 (linux_resume_one_lwp_throw): Assert that the LWP's
9870 waitstatus is TARGET_WAITKIND_IGNORE.
9871 * remote-utils.c (prepare_resume_reply): Handle
9872 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9873 * server.c (report_thread_events): New global.
9874 (handle_general_set): Handle QThreadEvents.
9875 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9876 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9877 TARGET_WAITKIND_THREAD_EXITED.
9878 * server.h (report_thread_events): Declare.
9880 2015-11-30 Pedro Alves <palves@redhat.com>
9882 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9883 the thread's last_resume_kind was resume_stop.
9885 2015-11-30 Pedro Alves <palves@redhat.com>
9887 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9890 2015-11-30 Pedro Alves <palves@redhat.com>
9892 * server.c (handle_v_requests): Handle vCtrlC.
9894 2015-11-30 Pedro Alves <palves@redhat.com>
9896 * gdbthread.h (find_any_thread_of_pid): Declare.
9897 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9899 * server.c (handle_query): If current_thread is NULL, look for
9900 another thread of the selected process.
9902 2015-11-26 Daniel Colascione <dancol@dancol.org>
9903 Simon Marchi <simon.marchi@ericsson.com>
9905 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9906 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9908 * target.h (struct target_ops) <thread_name>: New field.
9909 (target_thread_name): New macro.
9911 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9913 * regcache.h (regcache_invalidate_pid): Add declaration.
9914 * regcache.c (regcache_invalidate_pid): New function, extracted
9915 from regcache_invalidate.
9916 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9917 Add trivial documentation comment.
9918 * lynx-low.c: Use regcache_invalidate_pid instead of
9919 regcache_invalidate.
9921 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9923 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9924 and Elf64_auxv_t if the target is Android.
9926 2015-11-22 Doug Evans <xdje42@gmail.com>
9928 * target.h: #include <sys/types.h>.
9930 2015-11-19 Pedro Alves <palves@redhat.com>
9932 * linux-low.c (linux_process_qsupported): Change prototype.
9934 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9936 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9937 and adjust to loop over all features.
9938 * server.c (handle_query) <qSupported>: Adjust to call
9939 target_process_qsupported once, passing it a vector of unprocessed
9941 * target.h (struct target_ops) <process_qsupported>: Change
9943 (target_process_qsupported): Adjust.
9945 2015-11-19 Pedro Alves <palves@redhat.com>
9947 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9949 * configure: Regenerate.
9951 2015-11-19 Pedro Alves <palves@redhat.com>
9953 * configure: Regenerate.
9955 2015-11-19 Yao Qi <yao.qi@linaro.org>
9957 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9960 2015-11-19 Yao Qi <yao.qi@linaro.org>
9962 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9963 (struct aarch64_operand): Move enum out.
9965 2015-11-19 Yao Qi <yao.qi@linaro.org>
9967 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9968 struct user_fpsimd_state *.
9969 (aarch64_store_fpregset): Likewise.
9971 2015-11-19 Yao Qi <yao.qi@linaro.org>
9973 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9974 struct user_pt_regs *.
9975 (aarch64_store_gregset): Likewise.
9977 2015-11-18 Pedro Alves <palves@redhat.com>
9979 * Makefile.in (all_object_files): Add $IPA_OBJS.
9981 2015-11-17 Pedro Alves <palves@redhat.com>
9983 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9984 GDB_SIGNAL_0 and gdb_signal_to_string.
9986 2015-11-17 Pedro Alves <palves@redhat.com>
9988 * win32-low.c (handle_output_debug_string): Remove parameter.
9989 (win32_kill): Remove our_status local and adjust call to
9990 handle_output_debug_string.
9991 (get_child_debug_event): Adjust call to
9992 handle_output_debug_string.
9994 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9996 * linux-mips-low.c (mips_fill_gregset): Add cast.
9997 (mips_store_gregset): Likewise.
9998 (mips_fill_fpregset): Likewise.
9999 (mips_store_fpregset): Likewise.
10001 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10003 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10006 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10008 * linux-mips-low.c (mips_linux_new_thread): Change type of
10009 watch_type to enum target_hw_bp_type.
10011 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10013 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10014 Change return type to arm_hwbp_type.
10016 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10018 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10019 (arm_store_gregset): Likewise.
10020 * linux-arm-low.c (arm_get_hwcap): Likewise.
10021 (arm_read_description): Likewise.
10023 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10025 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10027 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10029 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10030 (ppc_fill_vsxregset): Likewise.
10031 (ppc_store_vsxregset): Likewise.
10032 (ppc_fill_vrregset): Likewise.
10033 (ppc_store_vrregset): Likewise.
10034 (ppc_fill_evrregset): Likewise.
10035 (ppc_store_evrregset): Likewise.
10037 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10039 * linux-ppc-low.c (ppc_usrregs_info): Remove
10040 forward-declaration.
10041 (ppc_arch_setup): Move lower in file.
10043 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10045 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10046 (ps_pdwrite): Likewise.
10048 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10050 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10051 to after assert checks.
10053 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10055 * proc-service.c (ps_pdread): Add/adjust casts.
10056 (ps_pdwrite): Add/adjust casts.
10058 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10060 * server.c (handle_search_memory_1): Cast return value of
10063 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10065 * server.c (write_qxfer_response): Change type of data to
10068 2015-10-29 Pedro Alves <palves@redhat.com>
10070 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10072 2015-10-29 Pedro Alves <palves@redhat.com>
10074 * tracepoint.c (clear_installed_tracepoints): Add casts.
10076 2015-10-29 Pedro Alves <palves@redhat.com>
10078 * server.c (handle_v_cont, process_serial_event): Add enum
10079 gdb_signal casts to signal parsing code.
10081 2015-10-29 Pedro Alves <palves@redhat.com>
10083 * linux-low.h (NULL_REGSET): Define.
10084 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10085 * linux-arm-low.c (arm_regsets): Likewise.
10086 * linux-crisv32-low.c (cris_regsets): Likewise.
10087 * linux-m68k-low.c (m68k_regsets): Likewise.
10088 * linux-mips-low.c (mips_regsets): Likewise.
10089 * linux-nios2-low.c (nios2_regsets): Likewise.
10090 * linux-ppc-low.c (ppc_regsets): Likewise.
10091 * linux-s390-low.c (s390_regsets): Likewise.
10092 * linux-sh-low.c (sh_regsets): Likewise.
10093 * linux-sparc-low.c (sparc_regsets): Likewise.
10094 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10095 * linux-tile-low.c (tile_regsets): Likewise.
10096 * linux-x86-low.c (x86_regsets): Likewise.
10097 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10099 2015-10-29 Pedro Alves <palves@redhat.com>
10101 * linux-low.h (NULL_REGSET): Define.
10102 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10103 * linux-arm-low.c (arm_regsets): Likewise.
10104 * linux-crisv32-low.c (cris_regsets): Likewise.
10105 * linux-m68k-low.c (m68k_regsets): Likewise.
10106 * linux-mips-low.c (mips_regsets): Likewise.
10107 * linux-nios2-low.c (nios2_regsets): Likewise.
10108 * linux-ppc-low.c (ppc_regsets): Likewise.
10109 * linux-s390-low.c (s390_regsets): Likewise.
10110 * linux-sh-low.c (sh_regsets): Likewise.
10111 * linux-sparc-low.c (sparc_regsets): Likewise.
10112 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10113 * linux-tile-low.c (tile_regsets): Likewise.
10114 * linux-x86-low.c (x86_regsets): Likewise.
10115 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10117 2015-10-26 Doug Evans <dje@google.com>
10119 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10121 2015-10-26 Doug Evans <dje@google.com>
10123 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10125 2015-10-26 Doug Evans <dje@google.com>
10127 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10129 (attach_thread, find_new_threads_callback): Ditto.
10131 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10133 * mem-break.h (set_breakpoint_data): Remove.
10135 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10137 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10138 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10139 (initialize_low): Remove set_breakpoint_data call.
10140 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10141 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10142 (initialize_low): Remove set_breakpoint_data call.
10143 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10144 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10145 (initialize_low): Remove set_breakpoint_data call.
10147 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10149 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10150 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10151 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10152 * target.h (target_breakpoint_kind_from_pc): New macro.
10154 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10156 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10157 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10158 the default breakpoint kind.
10160 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10162 * linux-arm-low.c (arm_supports_z_point_type): Add software
10163 breakpoint support.
10165 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10167 * linux-arm-low.c: Refactor breakpoint definitions.
10168 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10169 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10171 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10173 * Makefile.in: Add arm.c/o.
10174 * configure.srv: Likewise.
10175 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10176 (arm_breakpoint_kind_from_pc): New function.
10177 (arm_sw_breakpoint_from_kind): Return proper kind.
10178 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10180 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10182 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10184 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10185 (struct raw_breakpoint) <size>: Remove.
10186 (struct raw_breakpoint) <kind>: Add.
10187 (bp_size): New function.
10188 (bp_opcode): Likewise.
10189 (find_raw_breakpoint_at): Adjust for kind.
10190 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10191 (remove_memory_breakpoint): Adjust for kind call bp_size.
10192 (set_raw_breakpoint_at): Adjust for kind.
10193 (set_breakpoint): Likewise.
10194 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10195 (delete_raw_breakpoint): Adjust for kind.
10196 (delete_breakpoint): Likewise.
10197 (find_gdb_breakpoint): Likewise.
10198 (set_gdb_breakpoint_1): Likewise.
10199 (set_gdb_breakpoint): Likewise.
10200 (delete_gdb_breakpoint_1): Likewise.
10201 (delete_gdb_breakpoint): Likewise.
10202 (uninsert_raw_breakpoint): Likewise.
10203 (reinsert_raw_breakpoint): Likewise.
10204 (set_breakpoint_data): Remove.
10205 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10206 (check_mem_read): Adjust for kind call bp_size.
10207 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10208 (clone_one_breakpoint): Adjust for kind.
10209 * mem-break.h (set_gdb_breakpoint): Likewise.
10210 (delete_gdb_breakpoint): Likewise.
10211 * server.c (process_serial_event): Likewise.
10213 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10215 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10216 (struct linux_target_ops) <breakpoint>: Remove.
10217 (struct linux_target_ops) <breakpoint_len>: Remove.
10218 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10219 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10220 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10221 (arm_sw_breakpoint_from_kind): New function.
10222 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10223 (struct linux_target_ops) <breakpoint>: Remove.
10224 (struct linux_target_ops) <breakpoint_len>: Remove.
10225 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10226 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10227 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10228 (struct linux_target_ops) <breakpoint>: Remove.
10229 (struct linux_target_ops) <breakpoint_len>: Remove.
10230 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10231 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10232 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10233 (struct linux_target_ops) <breakpoint>: Remove.
10234 (struct linux_target_ops) <breakpoint_len>: Remove.
10235 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10236 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10237 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10238 and sw_breakpoint_from_kind to increment the pc.
10239 (linux_breakpoint_kind_from_pc): New function.
10240 (linux_sw_breakpoint_from_kind): New function.
10241 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10242 (initialize_low): Call breakpoint_kind_from_pc and
10243 sw_breakpoint_from_kind to replace breakpoint_data/len.
10244 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10246 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10247 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10248 (struct linux_target_ops) <breakpoint>: Remove.
10249 (struct linux_target_ops) <breakpoint_len>: Remove.
10250 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10251 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10252 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10253 (struct linux_target_ops) <breakpoint>: Remove.
10254 (struct linux_target_ops) <breakpoint_len>: Remove.
10255 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10256 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10257 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10258 (struct linux_target_ops) <breakpoint>: Remove.
10259 (struct linux_target_ops) <breakpoint_len>: Remove.
10260 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10261 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10262 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10263 (struct linux_target_ops) <breakpoint>: Remove.
10264 (struct linux_target_ops) <breakpoint_len>: Remove.
10265 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10266 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10267 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10268 (struct linux_target_ops) <breakpoint>: Remove.
10269 (struct linux_target_ops) <breakpoint_len>: Remove.
10270 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10271 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10272 * linux-s390-low.c (s390_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-sh-low.c (sh_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.
10282 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10283 (struct linux_target_ops) <breakpoint>: Remove.
10284 (struct linux_target_ops) <breakpoint_len>: Remove.
10285 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10286 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10287 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10288 (struct linux_target_ops) <breakpoint>: Remove.
10289 (struct linux_target_ops) <breakpoint_len>: Remove.
10290 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10291 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10292 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10293 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10294 (struct linux_target_ops) <breakpoint>: Remove.
10295 (struct linux_target_ops) <breakpoint_len>: Remove.
10296 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10297 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10298 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10299 (struct linux_target_ops) <breakpoint>: Remove.
10300 (struct linux_target_ops) <breakpoint_len>: Remove.
10301 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10302 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10304 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10306 * linux-cris-low.c (cris_get_pc): Remove void arg.
10308 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10310 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10313 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10315 * inferiors.c (thread_pid_matches_callback): New function.
10316 (find_thread_process): New function.
10317 (remove_thread): Reset current_thread.
10318 (remove_process): Assert threads have been removed first.
10320 2015-10-15 Yao Qi <yao.qi@linaro.org>
10322 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10324 (aarch64_remove_point): Likewise.
10325 * regcache.c (regcache_register_size): New function.
10327 2015-10-12 Yao Qi <yao.qi@linaro.org>
10329 * linux-aarch64-low.c: Update all callers as emit_load_store
10330 is renamed to aarch64_emit_load_store.
10332 2015-10-12 Yao Qi <yao.qi@linaro.org>
10334 * linux-aarch64-low.c: Update all callers of function renaming
10335 from emit_insn to aarch64_emit_insn.
10337 2015-10-12 Yao Qi <yao.qi@linaro.org>
10339 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10340 arch/aarch64-insn.h.
10341 (struct aarch64_memory_operand): Likewise.
10342 (ENCODE): Likewise.
10343 (emit_insn): Move to arch/aarch64-insn.c.
10344 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10345 (emit_load_store): Move to arch/aarch64-insn.c.
10346 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10347 (can_encode_int32): Remove.
10349 2015-10-12 Yao Qi <yao.qi@linaro.org>
10351 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10352 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10353 (aarch64_relocate_instruction): Likewise.
10354 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10355 (struct aarch64_insn_visitor): Likewise.
10357 2015-10-12 Yao Qi <yao.qi@linaro.org>
10359 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10360 (struct aarch64_insn_visitor): New.
10361 (struct aarch64_insn_relocation_data): New.
10362 (aarch64_ftrace_insn_reloc_b): New function.
10363 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10364 (aarch64_ftrace_insn_reloc_cb): Likewise.
10365 (aarch64_ftrace_insn_reloc_tb): Likewise.
10366 (aarch64_ftrace_insn_reloc_adr): Likewise.
10367 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10368 (aarch64_ftrace_insn_reloc_others): Likewise.
10370 (aarch64_relocate_instruction): Use visitor.
10372 2015-10-12 Yao Qi <yao.qi@linaro.org>
10374 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10375 int. Add argument buf.
10376 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10377 aarch64_relocate_instruction.
10379 2015-10-12 Yao Qi <yao.qi@linaro.org>
10381 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10382 argument insn. Remove local variable insn. Don't call
10383 target_read_uint32.
10384 (aarch64_install_fast_tracepoint_jump_pad): Call
10385 target_read_uint32.
10387 2015-09-30 Yao Qi <yao.qi@linaro.org>
10389 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10390 (emit_load_store_pair): Likewise.
10392 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10394 * dll.c (match_dll): Add cast(s).
10395 (unloaded_dll): Likewise.
10396 * linux-low.c (second_thread_of_pid_p): Likewise.
10397 (delete_lwp_callback): Likewise.
10398 (count_events_callback): Likewise.
10399 (select_event_lwp_callback): Likewise.
10400 (linux_set_resume_request): Likewise.
10401 * server.c (accumulate_file_name_length): Likewise.
10402 (emit_dll_description): Likewise.
10403 (handle_qxfer_threads_worker): Likewise.
10404 (visit_actioned_threads): Likewise.
10405 * thread-db.c (any_thread_of): Likewise.
10406 * tracepoint.c (same_process_p): Likewise.
10407 (match_blocktype): Likewise.
10408 (build_traceframe_info_xml): Likewise.
10410 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10412 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10414 (gdb_unparse_agent_expr): Likewise.
10415 * hostio.c (require_data): Likewise.
10416 (handle_pread): Likewise.
10417 * linux-low.c (disable_regset): Likewise.
10418 (fetch_register): Likewise.
10419 (store_register): Likewise.
10420 (get_dynamic): Likewise.
10421 (linux_qxfer_libraries_svr4): Likewise.
10422 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10423 (set_fast_tracepoint_jump): Likewise.
10424 (uninsert_fast_tracepoint_jumps_at): Likewise.
10425 (reinsert_fast_tracepoint_jumps_at): Likewise.
10426 (validate_inserted_breakpoint): Likewise.
10427 (clone_agent_expr): Likewise.
10428 * regcache.c (init_register_cache): Likewise.
10429 * remote-utils.c (putpkt_binary_1): Likewise.
10430 (decode_M_packet): Likewise.
10431 (decode_X_packet): Likewise.
10432 (look_up_one_symbol): Likewise.
10433 (relocate_instruction): Likewise.
10434 (monitor_output): Likewise.
10435 * server.c (handle_search_memory): Likewise.
10436 (handle_qxfer_exec_file): Likewise.
10437 (handle_qxfer_libraries): Likewise.
10438 (handle_qxfer): Likewise.
10439 (handle_query): Likewise.
10440 (handle_v_cont): Likewise.
10441 (handle_v_run): Likewise.
10442 (captured_main): Likewise.
10443 * target.c (write_inferior_memory): Likewise.
10444 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10445 * tracepoint.c (init_trace_buffer): Likewise.
10446 (add_tracepoint_action): Likewise.
10447 (add_traceframe): Likewise.
10448 (add_traceframe_block): Likewise.
10449 (cmd_qtdpsrc): Likewise.
10450 (cmd_qtdv): Likewise.
10451 (cmd_qtstatus): Likewise.
10452 (response_source): Likewise.
10453 (response_tsv): Likewise.
10454 (cmd_qtnotes): Likewise.
10455 (gdb_collect): Likewise.
10456 (initialize_tracepoint): Likewise.
10458 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10460 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10461 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10462 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10464 (enum aarch64_condition_codes): New enum.
10465 (w0): New static global.
10468 (struct aarch64_memory_operand) <type>: New
10469 MEMORY_OPERAND_POSTINDEX type.
10470 (postindex_memory_operand): New helper function.
10471 (emit_ret): New function.
10472 (emit_load_store_pair): New function, factored out of emit_stp
10473 with support for MEMORY_OPERAND_POSTINDEX.
10474 (emit_stp): Rewrite using emit_load_store_pair.
10475 (emit_ldp): New function.
10476 (emit_load_store): Likewise.
10477 (emit_ldr): Mention post-index instruction in comment.
10478 (emit_ldrh): New function.
10479 (emit_ldrb): New function.
10480 (emit_ldrsw): Mention post-index instruction in comment.
10481 (emit_str): Likewise.
10482 (emit_subs): New function.
10483 (emit_cmp): Likewise.
10484 (emit_and): Likewise.
10485 (emit_orr): Likewise.
10486 (emit_orn): Likewise.
10487 (emit_eor): Likewise.
10488 (emit_mvn): Likewise.
10489 (emit_lslv): Likewise.
10490 (emit_lsrv): Likewise.
10491 (emit_asrv): Likewise.
10492 (emit_mul): Likewise.
10493 (emit_sbfm): Likewise.
10494 (emit_sbfx): Likewise.
10495 (emit_ubfm): Likewise.
10496 (emit_ubfx): Likewise.
10497 (emit_csinc): Likewise.
10498 (emit_cset): Likewise.
10499 (emit_nop): Likewise.
10500 (emit_ops_insns): New helper function.
10501 (emit_pop): Likewise.
10502 (emit_push): Likewise.
10503 (aarch64_emit_prologue): New function.
10504 (aarch64_emit_epilogue): Likewise.
10505 (aarch64_emit_add): Likewise.
10506 (aarch64_emit_sub): Likewise.
10507 (aarch64_emit_mul): Likewise.
10508 (aarch64_emit_lsh): Likewise.
10509 (aarch64_emit_rsh_signed): Likewise.
10510 (aarch64_emit_rsh_unsigned): Likewise.
10511 (aarch64_emit_ext): Likewise.
10512 (aarch64_emit_log_not): Likewise.
10513 (aarch64_emit_bit_and): Likewise.
10514 (aarch64_emit_bit_or): Likewise.
10515 (aarch64_emit_bit_xor): Likewise.
10516 (aarch64_emit_bit_not): Likewise.
10517 (aarch64_emit_equal): Likewise.
10518 (aarch64_emit_less_signed): Likewise.
10519 (aarch64_emit_less_unsigned): Likewise.
10520 (aarch64_emit_ref): Likewise.
10521 (aarch64_emit_if_goto): Likewise.
10522 (aarch64_emit_goto): Likewise.
10523 (aarch64_write_goto_address): Likewise.
10524 (aarch64_emit_const): Likewise.
10525 (aarch64_emit_call): Likewise.
10526 (aarch64_emit_reg): Likewise.
10527 (aarch64_emit_pop): Likewise.
10528 (aarch64_emit_stack_flush): Likewise.
10529 (aarch64_emit_zero_ext): Likewise.
10530 (aarch64_emit_swap): Likewise.
10531 (aarch64_emit_stack_adjust): Likewise.
10532 (aarch64_emit_int_call_1): Likewise.
10533 (aarch64_emit_void_call_2): Likewise.
10534 (aarch64_emit_eq_goto): Likewise.
10535 (aarch64_emit_ne_goto): Likewise.
10536 (aarch64_emit_lt_goto): Likewise.
10537 (aarch64_emit_le_goto): Likewise.
10538 (aarch64_emit_gt_goto): Likewise.
10539 (aarch64_emit_ge_got): Likewise.
10540 (aarch64_emit_ops_impl): New static global variable.
10541 (aarch64_emit_ops): New target function, return
10542 &aarch64_emit_ops_impl.
10543 (struct linux_target_ops): Install it.
10545 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10547 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10548 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10550 * linux-aarch64-ipa.c: New file.
10551 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10553 (aarch64_get_thread_area): New target method.
10554 (extract_signed_bitfield): New helper function.
10555 (aarch64_decode_ldr_literal): New function.
10556 (enum aarch64_opcodes): New enum.
10557 (struct aarch64_register): New struct.
10558 (struct aarch64_operand): New struct.
10559 (x0): New static global.
10568 (aarch64_register): New helper function.
10569 (register_operand): Likewise.
10570 (immediate_operand): Likewise.
10571 (struct aarch64_memory_operand): New struct.
10572 (offset_memory_operand): New helper function.
10573 (preindex_memory_operand): Likewise.
10574 (enum aarch64_system_control_registers): New enum.
10575 (ENCODE): New macro.
10576 (emit_insn): New helper function.
10577 (emit_b): New function.
10578 (emit_bcond): Likewise.
10579 (emit_cb): Likewise.
10580 (emit_tb): Likewise.
10581 (emit_blr): Likewise.
10582 (emit_stp): Likewise.
10583 (emit_ldp_q_offset): Likewise.
10584 (emit_stp_q_offset): Likewise.
10585 (emit_load_store): Likewise.
10586 (emit_ldr): Likewise.
10587 (emit_ldrsw): Likewise.
10588 (emit_str): Likewise.
10589 (emit_ldaxr): Likewise.
10590 (emit_stxr): Likewise.
10591 (emit_stlr): Likewise.
10592 (emit_data_processing_reg): Likewise.
10593 (emit_data_processing): Likewise.
10594 (emit_add): Likewise.
10595 (emit_sub): Likewise.
10596 (emit_mov): Likewise.
10597 (emit_movk): Likewise.
10598 (emit_mov_addr): Likewise.
10599 (emit_mrs): Likewise.
10600 (emit_msr): Likewise.
10601 (emit_sevl): Likewise.
10602 (emit_wfe): Likewise.
10603 (append_insns): Likewise.
10604 (can_encode_int32_in): New helper function.
10605 (aarch64_relocate_instruction): New function.
10606 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10607 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10608 (struct linux_target_ops): Install aarch64_get_thread_area,
10609 aarch64_install_fast_tracepoint_jump_pad and
10610 aarch64_get_min_fast_tracepoint_insn_len.
10612 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10614 * Makefile.in (aarch64-insn.o): New rule.
10615 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10617 2015-09-21 Yao Qi <yao.qi@linaro.org>
10619 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10621 2015-09-21 Yao Qi <yao.qi@linaro.org>
10623 * tracepoint.c (max_jump_pad_size): Remove.
10625 2015-09-18 Yao Qi <yao.qi@linaro.org>
10627 * linux-aarch64-low.c: Don't include sys/uio.h.
10628 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10630 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10632 * tracepoint.c (eval_result_type): Change prototype.
10633 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10635 2015-09-15 Pedro Alves <palves@redhat.com>
10637 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10638 Check whether to report exec events instead of checking whether
10639 multiprocess is enabled.
10641 2015-09-15 Pedro Alves <palves@redhat.com>
10644 * remote-utils.c (prepare_resume_reply): Merge
10645 TARGET_WAITKIND_VFORK_DONE switch case with the
10646 TARGET_WAITKIND_FORKED case.
10648 2015-09-15 Yao Qi <yao.qi@linaro.org>
10650 * server.c (handle_query): Check string comparison using
10651 "else if" instead of "if".
10653 2015-09-15 Yao Qi <yao.qi@linaro.org>
10655 * server.c (vCont_supported): New global variable.
10656 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10657 matches. Append ";vContSupported+" to own_buf.
10658 (handle_v_requests): Append ";s;S" to own_buf if target supports
10659 hardware single step or vCont_supported is false.
10660 (capture_main): Set vCont_supported to zero.
10662 2015-09-15 Yao Qi <yao.qi@linaro.org>
10664 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10666 (linux_supports_hardware_single_step): ... New function.
10667 (linux_target_ops): Update.
10668 * lynx-low.c (lynx_target_ops): Set field
10669 supports_hardware_single_step to target_can_do_hardware_single_step.
10670 * nto-low.c (nto_target_ops): Likewise.
10671 * spu-low.c (spu_target_ops): Likewise.
10672 * win32-low.c (win32_target_ops): Likewise.
10673 * target.c (target_can_do_hardware_single_step): New function.
10674 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10675 Remove. <supports_hardware_single_step>: New field.
10676 (target_supports_conditional_breakpoints): Remove.
10677 (target_supports_hardware_single_step): New macro.
10678 (target_can_do_hardware_single_step): Declare.
10679 * server.c (handle_query): Use target_supports_hardware_single_step
10680 instead of target_supports_conditional_breakpoints.
10682 2015-09-15 Yao Qi <yao.qi@linaro.org>
10684 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10686 (struct linux_target_ops the_low_target): Install
10687 aarch64_linux_siginfo_fixup.
10689 2015-09-11 Don Breazeal <donb@codesourcery.com>
10690 Luis Machado <lgustavo@codesourcery.com>
10692 * linux-low.c (linux_mourn): Static declaration.
10693 (linux_arch_setup): Move in front of
10694 handle_extended_wait.
10695 (linux_arch_setup_thread): New function.
10696 (handle_extended_wait): Handle exec events. Call
10697 linux_arch_setup_thread. Make event_lwp argument a
10698 pointer-to-a-pointer.
10699 (check_zombie_leaders): Do not check stopped threads.
10700 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10701 (linux_low_filter_event): Add lwp and thread for exec'ing
10702 non-leader thread if leader thread has been deleted.
10703 Refactor code into linux_arch_setup_thread and call it.
10704 Pass child lwp pointer by reference to handle_extended_wait.
10705 (linux_wait_for_event_filtered): Update comment.
10706 (linux_wait_1): Prevent clobbering exec event status.
10707 (linux_supports_exec_events): New function.
10708 (linux_target_ops) <supports_exec_events>: Initialize new member.
10709 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10711 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10712 * server.c (report_exec_events): New global variable.
10713 (handle_query): Handle qSupported query for exec-events feature.
10714 (captured_main): Initialize report_exec_events.
10715 * server.h (report_exec_events): Declare new global variable.
10716 * target.h (struct target_ops) <supports_exec_events>: New
10718 (target_supports_exec_events): New macro.
10719 * win32-low.c (win32_target_ops) <supports_exec_events>:
10720 Initialize new member.
10722 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10724 * linux-low.c (linux_low_enable_btrace): Remove.
10725 (linux_target_ops): Replace linux_low_enable_btrace with
10726 linux_enable_btrace.
10728 2015-09-03 Yao Qi <yao.qi@linaro.org>
10730 * linux-aarch64-low.c (aarch64_insert_point): Call
10731 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10734 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10736 * linux-low.c (check_stopped_by_breakpoint): Use
10737 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10739 2015-08-27 Pedro Alves <palves@redhat.com>
10741 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10743 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10745 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10746 the XNEW-family equivalent.
10747 (compile_bytecodes): Likewise.
10748 * dll.c (loaded_dll): Likewise.
10749 * event-loop.c (append_callback_event): Likewise.
10750 (create_file_handler): Likewise.
10751 (create_file_event): Likewise.
10752 * hostio.c (handle_open): Likewise.
10753 * inferiors.c (add_thread): Likewise.
10754 (add_process): Likewise.
10755 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10756 * linux-arm-low.c (arm_new_process): Likewise.
10757 (arm_new_thread): Likewise.
10758 * linux-low.c (add_to_pid_list): Likewise.
10759 (linux_add_process): Likewise.
10760 (handle_extended_wait): Likewise.
10761 (add_lwp): Likewise.
10762 (enqueue_one_deferred_signal): Likewise.
10763 (enqueue_pending_signal): Likewise.
10764 (linux_resume_one_lwp_throw): Likewise.
10765 (linux_resume_one_thread): Likewise.
10766 (linux_read_memory): Likewise.
10767 (linux_write_memory): Likewise.
10768 * linux-mips-low.c (mips_linux_new_process): Likewise.
10769 (mips_linux_new_thread): Likewise.
10770 (mips_add_watchpoint): Likewise.
10771 * linux-x86-low.c (initialize_low_arch): Likewise.
10772 * lynx-low.c (lynx_add_process): Likewise.
10773 * mem-break.c (set_raw_breakpoint_at): Likewise.
10774 (set_breakpoint): Likewise.
10775 (add_condition_to_breakpoint): Likewise.
10776 (add_commands_to_breakpoint): Likewise.
10777 (clone_agent_expr): Likewise.
10778 (clone_one_breakpoint): Likewise.
10779 * regcache.c (new_register_cache): Likewise.
10780 * remote-utils.c (look_up_one_symbol): Likewise.
10781 * server.c (queue_stop_reply): Likewise.
10782 (start_inferior): Likewise.
10783 (queue_stop_reply_callback): Likewise.
10784 (handle_target_event): Likewise.
10785 * spu-low.c (fetch_ppc_memory): Likewise.
10786 (store_ppc_memory): Likewise.
10787 * target.c (set_target_ops): Likewise.
10788 * thread-db.c (thread_db_load_search): Likewise.
10789 (try_thread_db_load_1): Likewise.
10790 * tracepoint.c (add_tracepoint): Likewise.
10791 (add_tracepoint_action): Likewise.
10792 (create_trace_state_variable): Likewise.
10793 (cmd_qtdpsrc): Likewise.
10794 (cmd_qtro): Likewise.
10795 (add_while_stepping_state): Likewise.
10796 * win32-low.c (child_add_thread): Likewise.
10797 (get_image_name): Likewise.
10799 2015-08-25 Yao Qi <yao.qi@linaro.org>
10801 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10803 2015-08-25 Yao Qi <yao.qi@linaro.org>
10805 * Makefile.in (aarch64-linux.o): New rule.
10806 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10808 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10809 (aarch64_init_debug_reg_state): Make it extern.
10810 (aarch64_linux_prepare_to_resume): Remove.
10812 2015-08-25 Yao Qi <yao.qi@linaro.org>
10814 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10815 lwp_arch_private_info and ptid_of_lwp.
10817 2015-08-25 Yao Qi <yao.qi@linaro.org>
10819 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10820 Find proc_info by find_process_pid. All callers updated.
10822 2015-08-25 Yao Qi <yao.qi@linaro.org>
10824 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10826 (debug_reg_change_callback): Remove.
10827 (aarch64_notify_debug_reg_change): Remove.
10829 2015-08-25 Yao Qi <yao.qi@linaro.org>
10831 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10832 Call current_lwp_ptid.
10834 2015-08-25 Yao Qi <yao.qi@linaro.org>
10836 * linux-aarch64-low.c (debug_reg_change_callback): Use
10839 2015-08-25 Yao Qi <yao.qi@linaro.org>
10841 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10843 2015-08-25 Yao Qi <yao.qi@linaro.org>
10845 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10847 2015-08-25 Yao Qi <yao.qi@linaro.org>
10849 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10852 2015-08-25 Yao Qi <yao.qi@linaro.org>
10854 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10856 (debug_reg_change_callback): Remove argument entry and add argument
10857 lwp. Remove local variable thread. Don't print thread id in the
10858 debugging output. Don't check whether pid of thread equals to pid.
10859 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10860 iterate_over_lwps instead find_inferior.
10862 2015-08-24 Pedro Alves <palves@redhat.com>
10864 * inferiors.c (get_first_process): New function.
10865 * inferiors.h (get_first_process): New declaration.
10866 * remote-utils.c (read_ptid): Default to the first process in the
10867 list, instead of to the current thread's process.
10869 2015-08-24 Pedro Alves <palves@redhat.com>
10871 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10872 * event-loop.c: Likewise.
10873 * remote-utils.c: Likewise.
10874 * tracepoint.c: Likewise.
10876 2015-08-24 Pedro Alves <palves@redhat.com>
10878 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10881 2015-08-21 Pedro Alves <palves@redhat.com>
10883 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10884 instead of literal 1.
10886 2015-08-21 Pedro Alves <palves@redhat.com>
10888 * tdesc.c (default_description): Explicitly zero-initialize.
10890 2015-08-21 Pedro Alves <palves@redhat.com>
10893 * inferiors.c (remove_thread): Discard any pending stop reply for
10895 * server.c (remove_all_on_match_pid): Rename to ...
10896 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10898 (discard_queued_stop_replies): Change parameter to a ptid. Now
10900 (handle_v_kill, kill_inferior_callback, captured_main)
10901 (process_serial_event): Adjust.
10902 * server.h (discard_queued_stop_replies): Declare.
10904 2015-08-21 Pedro Alves <palves@redhat.com>
10906 * linux-low.c (wait_for_sigstop): Always switch to no thread
10907 selected if the previously current thread dies.
10908 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10909 process instead of the current thread's.
10910 * remote-utils.c (input_interrupt): Don't check if there's no
10912 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10913 current thread to the general thread fails, error out.
10914 (handle_qxfer_auxv, handle_qxfer_libraries)
10915 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10916 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10917 (handle_query): Check if there's a thread selected instead of
10918 checking whether there's any thread in the thread list.
10919 (handle_qxfer_threads, handle_qxfer_btrace)
10920 (handle_qxfer_btrace_conf): Don't error out early if there's no
10921 thread in the thread list.
10922 (handle_v_cont, myresume): Don't set the current thread to the
10924 (process_serial_event) <Hg handling>: Also set thread_id if the
10925 previous general thread is still alive.
10926 (process_serial_event) <g/G handling>: If setting the current
10927 thread to the general thread fails, error out.
10928 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10929 thread's lwp instead of the current thread's.
10930 * target.c (set_desired_thread): If the desired thread was not
10931 found, leave the current thread pointing to NULL. Return an int
10932 (boolean) indicating success.
10933 * target.h (set_desired_thread): Change return type to int.
10935 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10937 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10938 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10940 (ps_get_thread_area): New function.
10942 2015-08-19 Gary Benson <gbenson@redhat.com>
10944 * hostio.c (handle_pread): Do not attempt to read more data
10945 than hostio_reply_with_data can fit in a packet.
10947 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10949 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10951 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10953 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10955 2015-08-06 Pedro Alves <palves@redhat.com>
10957 * tracepoint.c (expr_eval_result): Now an int.
10959 2015-08-06 Pedro Alves <palves@redhat.com>
10961 * gdbthread.h (struct regcache): Forward declare.
10962 (struct thread_info) <regcache_data>: Now a struct regcache
10964 * inferiors.c (inferior_regcache_data)
10965 (set_inferior_regcache_data): Now work with struct regcache
10967 * inferiors.h (struct regcache): Forward declare.
10968 (inferior_regcache_data, set_inferior_regcache_data): Now work
10969 with struct regcache pointers.
10970 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10971 (free_register_cache_thread): Remove struct regcache pointer
10974 2015-08-06 Pedro Alves <palves@redhat.com>
10976 * server.c (captured_main): On error, print the exception message
10977 to stderr, and if run_once is set, throw a quit.
10979 2015-08-06 Pedro Alves <palves@redhat.com>
10981 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10982 the current thread.
10984 2015-08-06 Pedro Alves <palves@redhat.com>
10986 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10987 reading beyond the passed in buffer length.
10989 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10991 * tracepoint.c (symbol_list) <required>: Remove.
10993 2015-08-06 Pedro Alves <palves@redhat.com>
10995 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10996 count if stopping and suspending threads.
10997 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10998 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10999 (linux_detach): Complete an ongoing step-over.
11000 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11002 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11003 (linux_wait_1): If passing a signal to the inferior after
11004 finishing a step-over, unsuspend and re-resume all lwps. If we
11005 see a single-step event but the thread should be continuing, don't
11006 pass the trap to gdb.
11007 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11008 internal_error instead of gdb_assert.
11009 (enqueue_pending_signal): New function.
11010 (check_ptrace_stopped_lwp_gone): Add debug output.
11011 (start_step_over): Use internal_error instead of gdb_assert.
11012 (complete_ongoing_step_over): New function.
11013 (linux_resume_one_thread): Don't resume a suspended thread.
11014 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11017 2015-08-06 Pedro Alves <palves@redhat.com>
11019 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11020 (linux_thread_alive): Use lwp_is_marked_dead.
11021 (extended_event_reported): Delete.
11022 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11023 instead of extended_event_reported.
11024 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11026 (lwp_is_marked_dead): New function.
11027 (lwp_running): Use lwp_is_marked_dead.
11028 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11031 2015-08-06 Pedro Alves <palves@redhat.com>
11033 * linux-low.c (linux_wait_1): Move fork event output out of the
11034 !report_to_gdb check. Pass event_child->waitstatus to
11035 target_waitstatus_to_string instead of ourstatus.
11037 2015-08-04 Yao Qi <yao.qi@linaro.org>
11039 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11040 if current_thread is 32 bit.
11042 2015-08-04 Yao Qi <yao.qi@linaro.org>
11044 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11045 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11046 * server.c (extended_protocol): Remove "static".
11047 * server.h (extended_protocol): Declare it.
11049 2015-08-04 Yao Qi <yao.qi@linaro.org>
11051 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11052 both aarch64 and aarch32.
11053 (aarch64_set_pc): Likewise.
11055 2015-08-04 Yao Qi <yao.qi@linaro.org>
11057 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11058 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11059 arm-with-neon.xml to srv_xmlfiles.
11060 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11061 (is_64bit_tdesc): New function.
11062 (aarch64_linux_read_description): New function.
11063 (aarch64_arch_setup): Call aarch64_linux_read_description.
11064 (regs_info): Rename to regs_info_aarch64.
11065 (aarch64_regs_info): Return right regs_info.
11066 (initialize_low_arch): Call initialize_low_arch_aarch32.
11068 2015-08-04 Yao Qi <yao.qi@linaro.org>
11070 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11071 * linux-aarch32-low.c: New file.
11072 * linux-aarch32-low.h: New file.
11073 * linux-arm-low.c (arm_fill_gregset): Move it to
11074 linux-aarch32-low.c.
11075 (arm_store_gregset): Likewise.
11076 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11077 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11078 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11079 (regs_info): Rename to regs_info_arm.
11080 (arm_regs_info): Return regs_info_aarch32 if
11081 have_ptrace_getregset is 1 and target description is
11082 arm_with_neon or arm_with_vfpv3.
11083 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11084 Call initialize_low_arch_aarch32 instead.
11086 2015-08-04 Yao Qi <yao.qi@linaro.org>
11088 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11089 * linux-low.c: ... here.
11090 * linux-low.h (have_ptrace_getregset): Declare it.
11092 2015-08-04 Pedro Alves <palves@redhat.com>
11094 * thread-db.c (struct thread_db): Use new typedefs.
11095 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11097 (disable_thread_event_reporting): Cast result of dlsym to
11098 destination function pointer type.
11099 (thread_db_mourn): Use td_ta_delete_ftype.
11101 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11103 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11105 (CDX_BREAKPOINT): Define for R2.
11106 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11107 (the_low_target): Add comments.
11109 2015-07-30 Yao Qi <yao.qi@linaro.org>
11111 * linux-arm-low.c (arm_hwcap): Remove it.
11112 (arm_read_description): New local variable arm_hwcap. Don't
11113 set arm_hwcap to zero.
11115 2015-07-30 Yao Qi <yao.qi@linaro.org>
11117 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11118 Use regcache->tdesc instead.
11119 (arm_store_wmmxregset): Likewise.
11120 (arm_fill_vfpregset): Likewise.
11121 (arm_store_vfpregset): Likewise.
11123 2015-07-30 Yao Qi <yao.qi@linaro.org>
11125 * linux-arm-low.c: Include arch/arm.h.
11126 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11127 (arm_store_gregset): Likewise.
11129 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11131 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11132 ptrace's 4th parameter.
11134 2015-07-27 Yao Qi <yao.qi@linaro.org>
11136 * configure.srv (case aarch64*-*-linux*): Don't set
11139 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11141 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11143 * linux-arm-low.c: Likewise.
11144 * linux-cris-low.c: Likewise.
11145 * linux-crisv32-low.c: Likewise.
11146 * linux-low.c: Likewise.
11147 * linux-m68k-low.c: Likewise.
11148 * linux-mips-low.c: Likewise.
11149 * linux-nios2-low.c: Likewise.
11150 * linux-s390-low.c: Likewise.
11151 * linux-sparc-low.c: Likewise.
11152 * linux-tic6x-low.c: Likewise.
11153 * linux-tile-low.c: Likewise.
11154 * linux-x86-low.c: Likewise.
11156 2015-07-24 Pedro Alves <palves@redhat.com>
11158 * config.in: Regenerate.
11159 * configure: Regenerate.
11161 2015-07-24 Pedro Alves <palves@redhat.com>
11163 * acinclude.m4: Include ../ptrace.m4.
11164 * configure.ac: Call GDB_AC_PTRACE.
11165 * config.in, configure: Regenerate.
11167 2015-07-24 Yao Qi <yao.qi@linaro.org>
11169 * linux-low.c (linux_create_inferior): Remove setting to
11170 proc->priv->new_inferior.
11171 (linux_attach): Likewise.
11172 (linux_low_filter_event): Likewise.
11173 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11175 2015-07-24 Yao Qi <yao.qi@linaro.org>
11177 * linux-low.c (linux_arch_setup): New function.
11178 (linux_low_filter_event): If proc->tdesc is NULL and
11179 proc->attached is true, call the_low_target.arch_setup.
11180 Otherwise, keep status pending, and return.
11181 (linux_resume_one_lwp_throw): Don't call get_pc if
11182 thread->while_stepping isn't NULL. Don't call
11183 get_thread_regcache if proc->tdesc is NULL.
11184 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11185 (linux_target_ops): Install arch_setup.
11186 * server.c (start_inferior): Call the_target->arch_setup.
11187 * target.h (struct target_ops) <arch_setup>: New field.
11188 (target_arch_setup): New marco.
11189 * lynx-low.c (lynx_target_ops): Update.
11190 * nto-low.c (nto_target_ops): Update.
11191 * spu-low.c (spu_target_ops): Update.
11192 * win32-low.c (win32_target_ops): Update.
11194 2015-07-24 Yao Qi <yao.qi@linaro.org>
11196 * linux-low.c (linux_add_process): Don't set
11197 proc->priv->new_inferior.
11198 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11199 (linux_attach): Likewise.
11201 2015-07-24 Yao Qi <yao.qi@linaro.org>
11203 * server.c (start_inferior): Code refactor.
11205 2015-07-24 Yao Qi <yao.qi@linaro.org>
11207 * server.c (process_serial_event): Set general_thread.
11209 2015-07-21 Yao Qi <yao.qi@linaro.org>
11211 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11212 aarch64_linux_get_debug_reg_capacity.
11214 2015-07-17 Yao Qi <yao.qi@linaro.org>
11216 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11217 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11218 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11219 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11220 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11221 (AARCH64_HWP_ALIGNMENT): Likewise.
11222 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11223 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11224 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11225 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11226 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11227 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11228 (struct aarch64_debug_reg_state): Likewise.
11229 (struct arch_lwp_info): Likewise.
11230 (aarch64_align_watchpoint): Likewise.
11231 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11232 (aarch64_watchpoint_length): Likewise.
11233 (aarch64_point_encode_ctrl_reg): Likewise
11234 (aarch64_point_is_aligned): Likewise.
11235 (aarch64_align_watchpoint): Likewise.
11236 (aarch64_linux_set_debug_regs):
11237 (aarch64_dr_state_insert_one_point): Likewise.
11238 (aarch64_dr_state_remove_one_point): Likewise.
11239 (aarch64_handle_breakpoint): Likewise.
11240 (aarch64_handle_aligned_watchpoint): Likewise.
11241 (aarch64_handle_unaligned_watchpoint): Likewise.
11242 (aarch64_handle_watchpoint): Likewise.
11244 2015-07-17 Yao Qi <yao.qi@linaro.org>
11246 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11247 and don't aarch64_get_debug_reg_state. All callers update.
11248 (aarch64_handle_aligned_watchpoint): Likewise.
11249 (aarch64_handle_unaligned_watchpoint): Likewise.
11250 (aarch64_handle_watchpoint): Likewise.
11251 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11252 (aarch64_remove_point): Likewise.
11254 2015-07-17 Yao Qi <yao.qi@linaro.org>
11256 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11258 (aarch64_handle_unaligned_watchpoint): Likewise.
11260 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11262 Revert the previous 3 commits:
11263 Move gdb_regex* to common/
11264 Move linux_find_memory_regions_full & co.
11265 gdbserver build-id attribute generator
11267 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11268 Jan Kratochvil <jan.kratochvil@redhat.com>
11270 gdbserver build-id attribute generator.
11271 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11272 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11273 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11275 (get_dynamic): Use find_pdhr to traverse program headers.
11276 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11277 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11278 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11279 (get_hex_build_id): New.
11280 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11281 to reply XML document.
11283 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11284 Jan Kratochvil <jan.kratochvil@redhat.com>
11286 * target.c: Include target/target-utils.h and fcntl.h.
11287 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11288 (target_fileio_read_stralloc): New functions.
11290 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11292 * Makefile.in (OBS): Add gdb_regex.o.
11293 (gdb_regex.o): New.
11294 * config.in: Rebuilt.
11295 * configure: Rebuilt.
11297 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11298 Jan Kratochvil <jan.kratochvil@redhat.com>
11300 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11301 * Makefile.in (OBS): Add target-utils.o.
11302 (linux-maps.o, target-utils.o): New.
11303 * configure.srv (srv_linux_obj): Add linux-maps.o.
11305 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11307 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11308 function, return 1.
11309 (the_low_target): Install it.
11311 2015-07-14 Pedro Alves <palves@redhat.com>
11313 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11314 Instead, ignore ECHILD, and throw an error for other errnos.
11316 2015-07-10 Pedro Alves <palves@redhat.com>
11318 * event-loop.c (struct callback_event) <data>: Change type to
11319 gdb_client_data instance instead of gdb_client_data pointer.
11320 (append_callback_event): Adjust.
11322 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11324 * linux-aarch64-low.c: Add comments for each linux_target_ops
11325 method. Remove comments already covered in target_ops and
11326 linux_target_ops definitions.
11327 (the_low_target): Add comments for each unimplemented method.
11329 2015-07-09 Yao Qi <yao.qi@linaro.org>
11331 * linux-aarch64-low.c (aarch64_regmap): Remove.
11332 (aarch64_usrregs_info): Remove.
11333 (regs_info): Set field usrregs to NULL.
11335 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11337 * linux-low.c: Include "rsp-low.h"
11338 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11339 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11340 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11341 (handle_btrace_enable_pt): New.
11342 (handle_btrace_general_set): Support "pt".
11343 (handle_btrace_conf_general_set): Support "pt:size".
11345 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11347 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11350 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11352 * linux-aarch64-low.c: Remove comment about endianness.
11353 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11354 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11357 2015-06-24 Gary Benson <gbenson@redhat.com>
11359 * linux-i386-ipa.c (stdint.h): Do not include.
11360 * lynx-i386-low.c (stdint.h): Likewise.
11361 * lynx-ppc-low.c (stdint.h): Likewise.
11362 * mem-break.c (stdint.h): Likewise.
11363 * thread-db.c (stdint.h): Likewise.
11364 * tracepoint.c (stdint.h): Likewise.
11365 * win32-low.c (stdint.h): Likewise.
11367 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11369 * server.c (write_qxfer_response): Update call to
11370 remote_escape_output.
11372 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11373 Jan Kratochvil <jan.kratochvil@redhat.com>
11375 Merge multiple hex conversions.
11376 * gdbreplay.c (tohex): Rename to 'fromhex'.
11377 (logchar): Use fromhex.
11379 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11381 * server.c (handle_qxfer_libraries): Set `version' attribute for
11384 2015-06-10 Gary Benson <gbenson@redhat.com>
11386 * target.h (struct target_ops) <multifs_open>: New field.
11387 <multifs_unlink>: Likewise.
11388 <multifs_readlink>: Likewise.
11389 * linux-low.c (nat/linux-namespaces.h): New include.
11390 (linux_target_ops): Initialize the_target->multifs_open,
11391 the_target->multifs_unlink and the_target->multifs_readlink.
11392 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11393 * hostio.c (hostio_fs_pid): New static variable.
11394 (hostio_handle_new_gdb_connection): New function.
11395 (handle_setfs): Likewise.
11396 (handle_open): Use the_target->multifs_open as appropriate.
11397 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11398 (handle_readlink): Use the_target->multifs_readlink as
11400 (handle_vFile): Handle vFile:setfs packets.
11401 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11402 after target_handle_new_gdb_connection.
11404 2015-06-10 Gary Benson <gbenson@redhat.com>
11406 * configure.ac (AC_CHECK_FUNCS): Add setns.
11407 * config.in: Regenerate.
11408 * configure: Likewise.
11409 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11410 (linux-namespaces.o): New rule.
11411 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11413 2015-06-09 Gary Benson <gbenson@redhat.com>
11415 * hostio.c (handle_open): Process mode argument with
11416 fileio_to_host_mode.
11418 2015-06-01 Yao Qi <yao.qi@linaro.org>
11420 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11421 * linux-x86-low.c: Likewise.
11423 2015-05-28 Don Breazeal <donb@codesourcery.com>
11425 * linux-low.c (handle_extended_wait): Initialize
11426 thread_info.last_resume_kind for new fork children.
11428 2015-05-15 Pedro Alves <palves@redhat.com>
11430 * target.h (target_handle_new_gdb_connection): Rewrite using if
11431 wrapped in do/while.
11433 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11435 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11436 * configure, config.in: Regenerate.
11437 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11440 2015-05-12 Don Breazeal <donb@codesourcery.com>
11442 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11443 PTRACE_EVENT_VFORK_DONE.
11444 (linux_low_ptrace_options, extended_event_reported): Add vfork
11446 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11447 and "vforkdone" for RSP 'T' Stop Reply Packet.
11448 * server.h (report_vfork_events): Declare
11451 2015-05-12 Don Breazeal <donb@codesourcery.com>
11453 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11454 (the_low_target) <new_fork>: Initialize new member.
11455 * linux-arm-low.c (arm_new_fork): New function.
11456 (the_low_target) <new_fork>: Initialize new member.
11457 * linux-low.c (handle_extended_wait): Call new target function
11459 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11460 * linux-mips-low.c (mips_add_watchpoint): New function
11461 extracted from mips_insert_point.
11462 (the_low_target) <new_fork>: Initialize new member.
11463 (mips_linux_new_fork): New function.
11464 (mips_insert_point): Call mips_add_watchpoint.
11465 * linux-x86-low.c (x86_linux_new_fork): New function.
11466 (the_low_target) <new_fork>: Initialize new member.
11468 2015-05-12 Don Breazeal <donb@codesourcery.com>
11470 * linux-low.c (handle_extended_wait): Implement return value,
11471 rename argument 'event_child' to 'event_lwp', handle
11472 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11473 (linux_low_ptrace_options): New function.
11474 (linux_low_filter_event): Call linux_low_ptrace_options,
11475 use different argument fo linux_enable_event_reporting,
11476 use return value from handle_extended_wait.
11477 (extended_event_reported): New function.
11478 (linux_wait_1): Call extended_event_reported and set
11479 status to report fork events.
11480 (linux_write_memory): Add pid to debug message.
11481 (reset_lwp_ptrace_options_callback): New function.
11482 (linux_handle_new_gdb_connection): New function.
11483 (linux_target_ops): Initialize new structure member.
11484 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11485 * lynx-low.c: Initialize new structure member.
11486 * remote-utils.c (prepare_resume_reply): Implement stop reason
11487 "fork" for "T" stop message.
11488 * server.c (handle_query): Call handle_new_gdb_connection.
11489 * server.h (report_fork_events): Declare global flag.
11490 * target.h (struct target_ops) <handle_new_gdb_connection>:
11492 (target_handle_new_gdb_connection): New macro.
11493 * win32-low.c: Initialize new structure member.
11495 2015-05-12 Don Breazeal <donb@codesourcery.com>
11497 * mem-break.c (APPEND_TO_LIST): Define macro.
11498 (clone_agent_expr): New function.
11499 (clone_one_breakpoint): New function.
11500 (clone_all_breakpoints): New function.
11501 * mem-break.h: Declare new functions.
11503 2015-05-12 Don Breazeal <donb@codesourcery.com>
11505 * linux-low.c (linux_supports_fork_events): New function.
11506 (linux_supports_vfork_events): New function.
11507 (linux_target_ops): Initialize new structure members.
11508 (initialize_low): Call linux_check_ptrace_features.
11509 * lynx-low.c (lynx_target_ops): Initialize new structure
11511 * server.c (report_fork_events, report_vfork_events):
11513 (handle_query): Add new features to qSupported packet and
11515 (captured_main): Initialize new global variables.
11516 * target.h (struct target_ops) <supports_fork_events>:
11518 <supports_vfork_events>: New member.
11519 (target_supports_fork_events): New macro.
11520 (target_supports_vfork_events): New macro.
11521 * win32-low.c (win32_target_ops): Initialize new structure
11524 2015-05-12 Gary Benson <gbenson@redhat.com>
11526 * server.c (handle_qxfer_exec_file): Use current process
11529 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11531 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11532 Remove HAVE_PTRACE_GETREGS conditionals.
11533 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11534 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11536 2015-05-08 Yao Qi <yao.qi@linaro.org>
11538 * linux-low.c (linux_supports_conditional_breakpoints): New
11540 (linux_target_ops): Install new target method.
11541 * lynx-low.c (lynx_target_ops): Install NULL hook for
11542 supports_conditional_breakpoints.
11543 * nto-low.c (nto_target_ops): Likewise.
11544 * spu-low.c (spu_target_ops): Likewise.
11545 * win32-low.c (win32_target_ops): Likewise.
11546 * server.c (handle_query): Check
11547 target_supports_conditional_breakpoints.
11548 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11550 (target_supports_conditional_breakpoints): New macro.
11552 2015-05-06 Pedro Alves <palves@redhat.com>
11555 * server.c (start_inferior): If the process exits, mourn it.
11557 2015-04-21 Gary Benson <gbenson@redhat.com>
11559 * hostio.c (fileio_open_flags_to_host): Factored out to
11560 fileio_to_host_openflags in common/fileio.c. Single use
11563 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11565 * linux-xtensa-low.c (xtensa_fill_gregset)
11566 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11569 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11571 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11572 (regs_info): Replace usrregs pointer with NULL.
11574 2015-04-17 Gary Benson <gbenson@redhat.com>
11576 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11577 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11578 * server.c (handle_qxfer_exec_file): New function.
11579 (qxfer_packets): Add exec-file entry.
11580 (handle_query): Report qXfer:exec-file:read as supported packet.
11582 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11584 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11586 2015-04-09 Gary Benson <gbenson@redhat.com>
11588 * hostio-errno.c (errno_to_fileio_error): Remove function.
11589 Update caller to use remote_fileio_to_fio_error.
11591 2015-04-09 Yao Qi <yao.qi@linaro.org>
11593 * linux-low.c (linux_insert_point): Call
11594 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11595 (linux_remove_point): Call remove_memory_breakpoint if type is
11597 * linux-x86-low.c (x86_insert_point): Don't call
11598 insert_memory_breakpoint.
11599 (x86_remove_point): Don't call remove_memory_breakpoint.
11601 2015-04-01 Pedro Alves <palves@redhat.com>
11602 Cleber Rosa <crosa@redhat.com>
11604 * server.c (gdbserver_usage): Reorganize and extend the usage
11607 2015-03-24 Pedro Alves <palves@redhat.com>
11609 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11610 output. Also dump TRAP_TRACE.
11611 (linux_low_filter_event): In debug output, distinguish a
11612 resume_stop SIGSTOP from a delayed SIGSTOP.
11614 2015-03-24 Gary Benson <gbenson@redhat.com>
11616 * linux-x86-low.c (x86_linux_new_thread): Moved to
11618 (x86_linux_prepare_to_resume): Likewise.
11620 2015-03-24 Gary Benson <gbenson@redhat.com>
11622 * Makefile.in (x86-linux-dregs.o): New rule.
11623 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11624 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11625 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11626 (x86_linux_dr_get): Likewise.
11627 (x86_linux_dr_set): Likewise.
11628 (update_debug_registers_callback): Likewise.
11629 (x86_linux_dr_set_addr): Likewise.
11630 (x86_linux_dr_get_addr): Likewise.
11631 (x86_linux_dr_set_control): Likewise.
11632 (x86_linux_dr_get_control): Likewise.
11633 (x86_linux_dr_get_status): Likewise.
11634 (x86_linux_update_debug_registers): Likewise.
11636 2015-03-24 Gary Benson <gbenson@redhat.com>
11638 * linux-x86-low.c (x86_linux_update_debug_registers):
11639 New function, factored out from...
11640 (x86_linux_prepare_to_resume): ...this.
11642 2015-03-24 Gary Benson <gbenson@redhat.com>
11644 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11645 (x86_linux_dr_set): Likewise.
11646 (update_debug_registers_callback): Likewise.
11647 (x86_linux_dr_set_addr): Likewise.
11648 (x86_linux_dr_get_addr): Likewise.
11649 (x86_linux_dr_set_control): Likewise.
11650 (x86_linux_dr_get_control): Likewise.
11651 (x86_linux_dr_get_status): Likewise.
11652 (x86_linux_prepare_to_resume): Likewise.
11654 2015-03-24 Gary Benson <gbenson@redhat.com>
11656 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11657 Use perror_with_name. Pass string through gettext.
11658 (x86_linux_dr_set): Likewise.
11660 2015-03-24 Gary Benson <gbenson@redhat.com>
11662 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11663 (x86_linux_dr_set_addr): ...this.
11664 (x86_dr_low_get_addr): Rename to...
11665 (x86_linux_dr_get_addr): ...this.
11666 (x86_dr_low_set_control): Rename to...
11667 (x86_linux_dr_set_control): ...this.
11668 (x86_dr_low_get_control): Rename to...
11669 (x86_linux_dr_get_control): ...this.
11670 (x86_dr_low_get_status): Rename to...
11671 (x86_linux_dr_get_status): ...this.
11672 (x86_dr_low): Update with new function names.
11674 2015-03-24 Gary Benson <gbenson@redhat.com>
11676 * Makefile.in (x86-linux.o): New rule.
11677 * configure.srv: Add x86-linux.o to relevant targets.
11678 * linux-low.c (lwp_set_arch_private_info): New function.
11679 (lwp_arch_private_info): Likewise.
11680 * linux-x86-low.c: Include nat/x86-linux.h.
11681 (arch_lwp_info): Removed structure.
11682 (update_debug_registers_callback):
11683 Use lwp_set_debug_registers_changed.
11684 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11685 and lwp_set_debug_registers_changed.
11686 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11688 2015-03-24 Gary Benson <gbenson@redhat.com>
11690 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11691 * linux-arm-low.c (arm_new_thread): Likewise.
11692 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11693 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11694 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11695 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11697 2015-03-24 Gary Benson <gbenson@redhat.com>
11699 * linux-low.c (ptid_of_lwp): New function.
11700 (lwp_is_stopped): Likewise.
11701 (lwp_stop_reason): Likewise.
11702 * linux-x86-low.c (update_debug_registers_callback):
11703 Use lwp_is_stopped.
11704 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11707 2015-03-24 Gary Benson <gbenson@redhat.com>
11709 * linux-low.h (linux_stop_lwp): Remove declaration.
11711 2015-03-24 Gary Benson <gbenson@redhat.com>
11713 * linux-low.h: Include nat/linux-nat.h.
11714 * linux-low.c (iterate_over_lwps_args): New structure.
11715 (iterate_over_lwps_filter): New function.
11716 (iterate_over_lwps): Likewise.
11717 * linux-x86-low.c (update_debug_registers_callback):
11718 Update signature to what iterate_over_lwps expects.
11719 Remove PID check that iterate_over_lwps now performs.
11720 (x86_dr_low_set_addr): Use iterate_over_lwps.
11721 (x86_dr_low_set_control): Likewise.
11723 2015-03-24 Gary Benson <gbenson@redhat.com>
11725 * linux-x86-low.c (x86_debug_reg_state): New function.
11726 (x86_linux_prepare_to_resume): Use the above.
11728 2015-03-24 Gary Benson <gbenson@redhat.com>
11730 * linux-low.c (current_lwp_ptid): New function.
11731 * linux-x86-low.c: Include nat/linux-nat.h.
11732 (x86_dr_low_get_addr): Use current_lwp_ptid.
11733 (x86_dr_low_get_control): Likewise.
11734 (x86_dr_low_get_status): Likewise.
11736 2015-03-20 Pedro Alves <palves@redhat.com>
11738 * tracepoint.c (cmd_qtstatus): Make "str" const.
11740 2015-03-20 Pedro Alves <palves@redhat.com>
11742 * server.c (handle_general_set): Make "req_str" const.
11744 2015-03-19 Pedro Alves <palves@redhat.com>
11746 * linux-low.c (linux_resume_one_lwp): Rename to ...
11747 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11748 instead call perror_with_name.
11749 (check_ptrace_stopped_lwp_gone): New function.
11750 (linux_resume_one_lwp): Reimplement as wrapper around
11751 linux_resume_one_lwp_throw that swallows errors if the LWP is
11754 2015-03-19 Pedro Alves <palves@redhat.com>
11756 * linux-low.c (count_events_callback, select_event_lwp_callback):
11757 No longer check whether the thread has resume_stop as last resume
11760 2015-03-19 Pedro Alves <palves@redhat.com>
11762 * linux-low.c (count_events_callback, select_event_lwp_callback):
11763 Use the lwp's status_pending_p field, not the thread's.
11765 2015-03-19 Pedro Alves <palves@redhat.com>
11767 * linux-low.c (select_event_lwp_callback): Update comments to
11768 no longer mention SIGTRAP.
11770 2015-03-18 Gary Benson <gbenson@redhat.com>
11772 * server.c (handle_query): Do not report vFile:fstat as supported.
11774 2015-03-11 Gary Benson <gbenson@redhat.com>
11776 * hostio.c (sys/types.h): New include.
11777 (sys/stat.h): Likewise.
11778 (common-remote-fileio.h): Likewise.
11779 (handle_fstat): New function.
11780 (handle_vFile): Handle vFile:fstat packets.
11782 2015-03-11 Gary Benson <gbenson@redhat.com>
11784 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11785 struct stat.st_blocks and struct stat.st_blksize.
11786 * configure: Regenerate.
11787 * config.in: Likewise.
11788 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11789 (OBS): Add common-remote-fileio.o.
11790 (common-remote-fileio.o): New rule.
11792 2015-03-09 Pedro Alves <palves@redhat.com>
11794 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11795 'struct sockaddr' pointer in 'accept' call.
11797 2015-03-09 Pedro Alves <palves@redhat.com>
11800 2015-03-07 Pedro Alves <palves@redhat.com>
11801 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11802 or <winsock2.h> here. Instead include "gdb_socket.h".
11803 (remote_open): Use union gdb_sockaddr_u.
11804 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11805 or <winsock2.h> here. Instead include "gdb_socket.h".
11806 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11807 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11809 (init_named_socket, gdb_agent_helper_thread): Use union
11812 2015-03-07 Pedro Alves <palves@redhat.com>
11814 * configure.ac (build_warnings): Move
11815 -Wdeclaration-after-statement to the C-specific set.
11816 * configure: Regenerate.
11818 2015-03-07 Pedro Alves <palves@redhat.com>
11820 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11821 or <winsock2.h> here. Instead include "gdb_socket.h".
11822 (remote_open): Use union gdb_sockaddr_u.
11823 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11824 or <winsock2.h> here. Instead include "gdb_socket.h".
11825 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11826 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11828 (init_named_socket, gdb_agent_helper_thread): Use union
11831 2015-03-07 Pedro Alves <palves@redhat.com>
11833 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11836 2015-03-06 Yao Qi <yao.qi@linaro.org>
11838 * linux-aarch64-low.c (aarch64_insert_point): Use
11839 show_debug_regs as a boolean.
11840 (aarch64_remove_point): Likewise.
11842 2015-03-05 Pedro Alves <palves@redhat.com>
11844 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11845 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11846 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11847 * nto-low.c (nto_target_ops): Likewise.
11848 * spu-low.c (spu_target_ops): Likewise.
11849 * win32-low.c (win32_target_ops): Likewise.
11851 2015-03-04 Pedro Alves <palves@redhat.com>
11853 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11854 Decide whether a breakpoint triggered based on the SIGTRAP's
11856 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11857 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11858 (linux_low_filter_event): Check for breakpoints before checking
11860 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11862 (linux_stopped_by_sw_breakpoint)
11863 (linux_supports_stopped_by_sw_breakpoint)
11864 (linux_stopped_by_hw_breakpoint)
11865 (linux_supports_stopped_by_hw_breakpoint): New functions.
11866 (linux_target_ops): Install new target methods.
11868 2015-03-04 Pedro Alves <palves@redhat.com>
11870 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11871 * server.c (swbreak_feature, hwbreak_feature): New globals.
11872 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11873 (captured_main): Clear swbreak_feature and hwbreak_feature.
11874 * server.h (swbreak_feature, hwbreak_feature): Declare.
11875 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11876 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11877 supports_stopped_by_hw_breakpoint>: New fields.
11878 (target_supports_stopped_by_sw_breakpoint)
11879 (target_stopped_by_sw_breakpoint)
11880 (target_supports_stopped_by_hw_breakpoint)
11881 (target_stopped_by_hw_breakpoint): Declare.
11883 2015-03-04 Pedro Alves <palves@redhat.com>
11885 enum lwp_stop_reason -> enum target_stop_reason
11886 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11887 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11888 (linux_wait_1, stuck_in_jump_pad_callback)
11889 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11890 (linux_stopped_by_watchpoint):
11891 * linux-low.h (enum lwp_stop_reason): Delete.
11892 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11893 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11895 2015-03-04 Yao Qi <yao.qi@linaro.org>
11897 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11899 2015-03-03 Gary Benson <gbenson@redhat.com>
11901 * hostio.c (handle_vFile): Fix prefix lengths.
11903 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11905 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11908 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11910 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11911 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11912 (clean): Add "rm -f" for above C files.
11913 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11914 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11915 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11916 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11917 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11918 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11919 (init_registers_s390x_vx_linux64)
11920 (init_registers_s390x_tevx_linux64)
11921 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11922 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11924 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11925 (s390_store_vxrs_high): New functions.
11926 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11928 (s390_arch_setup): Add logic for selecting one of the new target
11929 descriptions. Activate the new vector regsets if applicable.
11930 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11931 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11932 and init_registers_s390x_tevx_linux64.
11934 2015-03-01 Pedro Alves <palves@redhat.com>
11936 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11939 2015-02-27 Pedro Alves <palves@redhat.com>
11941 * linux-x86-low.c (u_debugreg_offset): New function.
11942 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11944 2015-02-27 Pedro Alves <palves@redhat.com>
11946 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11947 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11948 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11949 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11950 (ps_lsetfpregs, ps_getpid)
11951 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11952 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11953 (ps_lsetxregs, ps_plog): Declare.
11955 2015-02-27 Pedro Alves <palves@redhat.com>
11957 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11958 IP_AGENT_EXPORT_FUNC.
11959 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11960 IP_AGENT_EXPORT_FUNC.
11961 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11962 (IP_AGENT_EXPORT): Delete.
11963 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11964 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11965 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11966 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11967 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11968 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11969 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11970 (traceframe_read_count, traceframe_write_count)
11971 (traceframes_created, trace_state_variables, get_raw_reg)
11972 (get_trace_state_variable_value, set_trace_state_variable_value)
11973 (ust_loaded, helper_thread_id, cmd_buf): Use
11974 IPA_SYM_EXPORTED_NAME.
11975 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11976 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11977 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11978 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11979 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11980 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11981 EXTERN_C_PUSH/EXTERN_C_POP.
11982 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11983 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11984 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11985 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11986 (traceframe_write_count, traceframe_read_count)
11987 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11988 (about_to_request_buffer_space, get_trace_state_variable_value)
11989 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11990 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11991 EXTERN_C_PUSH/EXTERN_C_POP.
11992 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11993 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11994 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11995 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11996 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11997 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11998 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11999 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12001 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12002 (IP_AGENT_EXPORT_VAR_DECL): Define.
12003 (tracing): Declare.
12004 (gdb_agent_get_raw_reg): Declare.
12006 2015-02-27 Tom Tromey <tromey@redhat.com>
12007 Pedro Alves <palves@redhat.com>
12009 Rename symbols whose names are reserved C++ keywords throughout.
12011 2015-02-27 Pedro Alves <palves@redhat.com>
12013 * Makefile.in (COMPILER): New, get it from autoconf.
12014 (CXX): Get from autoconf instead.
12015 (COMPILE.pre): Use COMPILER.
12016 (CC-LD): Rename to ...
12017 (CC_LD): ... this. Use COMPILER.
12018 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12019 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12020 * acinclude.m4: Include build-with-cxx.m4.
12021 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12022 Disable -Werror by default if building in C++ mode.
12023 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12024 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12025 the C++ compiler. Save/restore CXXFLAGS too.
12026 * configure: Regenerate.
12028 2015-02-27 Pedro Alves <palves@redhat.com>
12030 * acinclude.m4: Include libiberty.m4.
12031 * configure.ac: Call libiberty_INIT.
12032 * config.in, configure: Regenerate.
12034 2015-02-26 Pedro Alves <palves@redhat.com>
12036 * linux-low.c (linux_wait_1): When incrementing the PC past a
12037 program breakpoint always use the_low_target.breakpoint_len as
12038 increment, rather than the maximum between that and
12039 the_low_target.decr_pc_after_break.
12041 2015-02-23 Pedro Alves <palves@redhat.com>
12043 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12044 thread was doing a step-over; always adjust the PC if
12045 we stepped over a permanent breakpoint.
12046 (linux_wait_1): If we stepped over breakpoint that was on top of a
12047 permanent breakpoint, manually advance the PC past it.
12049 2015-02-23 Pedro Alves <palves@redhat.com>
12051 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12053 (x86_fill_gregset, x86_store_gregset): Use it when handling
12056 2015-02-20 Pedro Alves <palves@redhat.com>
12058 * thread-db.c: Include "nat/linux-procfs.h".
12059 (thread_db_init): Skip listing new threads if the kernel supports
12060 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12062 2015-02-20 Pedro Alves <palves@redhat.com>
12064 * linux-low.c (status_pending_p_callback): Use ptid_match.
12066 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12068 PR breakpoints/16812
12069 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12070 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12071 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12073 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12075 PR breakpoints/15956
12076 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12078 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12080 * linux-low.c (linux_low_btrace_conf): Print size.
12081 * server.c (handle_btrace_conf_general_set): New.
12082 (hanle_general_set): Call handle_btrace_conf_general_set.
12083 (handle_query): Report Qbtrace-conf:bts:size as supported.
12085 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12087 * linux-low.c (linux_low_enable_btrace): Update parameters.
12088 (linux_low_btrace_conf): New.
12089 (linux_target_ops)<to_btrace_conf>: Initialize.
12090 * server.c (current_btrace_conf): New.
12091 (handle_btrace_enable): Rename to ...
12092 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12093 to target_enable_btrace. Update comment. Update users.
12094 (handle_qxfer_btrace_conf): New.
12095 (qxfer_packets): Add btrace-conf entry.
12096 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12097 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12098 (target_ops)<read_btrace_conf>: New.
12099 (target_enable_btrace): Update parameters.
12100 (target_read_btrace_conf): New.
12102 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12104 * server.c (handle_btrace_general_set): Remove call to
12105 target_supports_btrace.
12106 (supported_btrace_packets): New.
12107 (handle_query): Call supported_btrace_packets.
12108 * target.h: include btrace-common.h.
12109 (btrace_target_info): Removed.
12110 (supports_btrace, target_supports_btrace): Update parameters.
12112 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12114 * Makefile.in (SFILES): Add common/btrace-common.c.
12115 (OBS): Add common/btrace-common.o.
12116 (btrace-common.o): Add build rules.
12117 * linux-low: Include btrace-common.h.
12118 (linux_low_read_btrace): Use struct btrace_data. Call
12119 btrace_data_init and btrace_data_fini.
12121 2015-02-06 Pedro Alves <palves@redhat.com>
12123 * thread-db.c (find_new_threads_callback): Add debug output.
12125 2015-02-04 Pedro Alves <palves@redhat.com>
12127 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12128 (resume_stopped_resumed_lwps): New function.
12129 (linux_wait_for_event_filtered): Use it.
12131 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12133 * Makefile.in (SFILES): Add linux-personality.c.
12134 (linux-personality.o): New rule.
12135 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12136 list of objects to be built.
12137 * linux-low.c: Include nat/linux-personality.h.
12138 (linux_create_inferior): Remove code to disable address space
12139 randomization (moved to ../nat/linux-personality.c). Create
12140 cleanup to disable address space randomization.
12142 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12144 * Makefile.in (posix-strerror.o): New rule.
12145 (mingw-strerror.o): Likewise.
12146 * configure: Regenerated.
12147 * configure.ac: Source file ../common/common.host. Initialize new
12148 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12150 2015-01-14 Yao Qi <yao@codesourcery.com>
12152 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12153 (ppc-linux.o): New rule.
12154 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12155 * configure.ac: AC_CHECK_FUNCS(getauxval).
12156 * config.in: Re-generated.
12157 * configure: Re-generated.
12158 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12159 ppc64_64bit_inferior_p
12161 2015-01-14 Yao Qi <yao@codesourcery.com>
12163 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12164 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12165 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12166 (PT_ORIG_R3, PT_TRAP): Likewise.
12167 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12168 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12169 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12171 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12173 * i387-fp.c (i387_cache_to_xsave): In look over
12174 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12175 zmmh_low_space field by use of zmmh_high_space.
12177 2015-01-09 Pedro Alves <palves@redhat.com>
12179 * linux-low.c (step_over_bkpt): Move higher up in the file.
12180 (handle_extended_wait): Don't store the stop_pc here.
12181 (get_stop_pc): Adjust comments and rename to ...
12182 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12183 stopped for a software breakpoint or hardware breakpoint.
12184 (thread_still_has_status_pending_p): New function.
12185 (status_pending_p_callback): Use
12186 thread_still_has_status_pending_p. If the event is no longer
12187 interesting, resume the LWP.
12188 (handle_tracepoints): Add assert.
12189 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12190 (wstatus_maybe_breakpoint): New function.
12191 (cancel_breakpoint): Delete function.
12192 (check_stopped_by_watchpoint): New function, factored out from
12193 linux_low_filter_event.
12194 (lp_status_maybe_breakpoint): Delete function.
12195 (linux_low_filter_event): Remove filter_ptid argument.
12196 Leave thread group exits pending here. Store the LWP's stop PC.
12197 Always leave events pending.
12198 (linux_wait_for_event_filtered): Pull all events out of the
12199 kernel, and leave them all pending.
12200 (count_events_callback, select_event_lwp_callback): Consider all
12202 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12203 (select_event_lwp): Only give preference to the stepping LWP in
12204 all-stop mode. Adjust comments.
12205 (ignore_event): New function.
12206 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12207 references to cancel_breakpoints. Adjust to renames. Also give
12208 equal priority to all LWPs that have had events in non-stop mode.
12209 If reporting a software breakpoint event, unadjust the LWP's PC.
12210 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12211 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12213 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12214 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12215 (linux_stopped_by_watchpoint): Adjust.
12216 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12217 * linux-low.h (enum lwp_stop_reason): New.
12218 (struct lwp_info) <stop_pc>: Adjust comment.
12219 <stopped_by_watchpoint>: Delete field.
12220 <stop_reason>: New field.
12221 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12222 * mem-break.c (software_breakpoint_inserted_here)
12223 (hardware_breakpoint_inserted_here): New function.
12224 * mem-break.h (software_breakpoint_inserted_here)
12225 (hardware_breakpoint_inserted_here): Declare.
12226 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12227 (cancel_breakpoints): Delete.
12228 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12229 (upload_fast_traceframes): Remove references to
12230 cancel_breakpoints.
12232 2015-01-09 Pedro Alves <palves@redhat.com>
12234 * thread-db.c (find_new_threads_callback): Ignore thread if the
12235 kernel thread ID is -1.
12237 2015-01-09 Pedro Alves <palves@redhat.com>
12239 * linux-low.c (linux_attach_fail_reason_string): Move to
12240 nat/linux-ptrace.c, and rename.
12241 (linux_attach_lwp): Update comment.
12242 (attach_proc_task_lwp_callback): New function.
12243 (linux_attach): Adjust to rename and use
12244 linux_proc_attach_tgid_threads.
12245 (linux_attach_fail_reason_string): Delete declaration.
12247 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12249 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12250 * server.c (gdbserver_version): Likewise.
12252 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12254 * remote-utils.c: Include ctype.h.
12255 (input_interrupt): Explicitly handle the case when the char
12256 received is the NUL byte. Improve the printing of non-ASCII
12259 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12261 * linux-low.c (linux_low_filter_event): Update call to
12262 linux_enable_event_reporting following the addition of
12263 a new parameter to that function.
12265 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12268 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12269 (AARCH64_FPCR_REGNO): Likewise.
12270 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12271 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12272 (aarch64_store_fpregset): Likewise.
12274 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12276 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12277 Remove FIXME comment about assumption about N.
12279 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12281 * configure.ac: If large-file support is disabled in GDBserver,
12282 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12283 * configure: Regenerate.
12285 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12287 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12288 warning upon ENODATA from ptrace.
12289 * linux-s390-low.c (s390_store_tdb): New.
12290 (s390_regsets): Add regset for NT_S390_TDB.
12292 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12294 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12295 without a fill_function.
12296 * linux-s390-low.c (s390_fill_last_break): Remove.
12297 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12298 (s390_arch_setup): Use regset's size instead of fill_function for
12299 loop end condition.
12301 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12303 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12304 the regset's store function when ptrace returned an error.
12305 * regcache.c (get_thread_regcache): Invalidate register cache
12306 before fetching inferior's registers.
12308 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12310 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12311 while-loop as for-loop.
12312 (regsets_store_inferior_registers): Likewise.
12314 2014-11-28 Yao Qi <yao@codesourcery.com>
12316 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12317 * config.in, configure: Re-generate.
12318 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12321 2014-11-21 Yao Qi <yao@codesourcery.com>
12323 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12324 (AC_CHECK_HEADERS): Remove malloc.h.
12325 * configure: Re-generated.
12326 * config.in: Re-generated.
12327 * server.h: Don't include alloca.h and malloc.h.
12328 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12329 Don't include malloc.h.
12331 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12333 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12334 corresponding ERRNO check in same block.
12336 2014-11-12 Pedro Alves <palves@redhat.com>
12338 * server.c (cont_thread): Update comment.
12339 (start_inferior, attach_inferior): No longer clear cont_thread.
12340 (handle_v_cont): No longer set cont_thread.
12341 (captured_main): Clear cont_thread each time a GDB connects.
12343 2014-11-12 Pedro Alves <palves@redhat.com>
12345 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12346 thread, and don't resume all threads if the Hc thread has exited.
12348 2014-11-12 Pedro Alves <palves@redhat.com>
12350 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12351 the process group instead of to a specific LWP.
12353 2014-10-15 Pedro Alves <palves@redhat.com>
12356 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12358 (arm_set_thread_context): Delete.
12359 (the_low_target): Adjust.
12360 * win32-i386-low.c (debug_registers_changed)
12361 (debug_registers_used): Delete.
12362 (update_debug_registers_callback): New function.
12363 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12364 needing to update their debug registers.
12365 (win32_get_current_dr): New function.
12366 (x86_dr_low_get_addr, x86_dr_low_get_control)
12367 (x86_dr_low_get_status): Fetch the debug register from the thread
12369 (i386_initial_stuff): Adjust.
12370 (i386_get_thread_context): Remove current_event parameter. Don't
12371 clear debug_registers_changed nor copy DR values to
12373 (i386_set_thread_context): Delete.
12374 (i386_prepare_to_resume): New function.
12375 (i386_thread_added): Mark the thread as needing to update irs
12377 (the_low_target): Remove i386_set_thread_context and install
12378 i386_prepare_to_resume.
12379 * win32-low.c (win32_get_thread_context): Adjust.
12380 (win32_set_thread_context): Use SetThreadContext
12382 (win32_prepare_to_resume): New function.
12383 (win32_require_context): New function, factored out from ...
12384 (thread_rec): ... this.
12385 (continue_one_thread): Call win32_prepare_to_resume on each thread
12386 we're about to continue.
12387 (win32_resume): Call win32_prepare_to_resume on the event thread.
12388 * win32-low.h (struct win32_thread_info)
12389 <debug_registers_changed>: New field.
12390 (struct win32_target_ops): Change prototype of set_thread_context,
12391 delete set_thread_context and add prepare_to_resume.
12392 (win32_require_context): New declaration.
12394 2014-10-08 Gary Benson <gbenson@redhat.com>
12396 * server.h: Do not include common-exceptions.h.
12398 2014-10-08 Gary Benson <gbenson@redhat.com>
12400 * server.h: Do not include cleanups.h.
12402 2014-09-30 James Hogan <james.hogan@imgtec.com>
12404 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12405 mips64-dsp-linux.c.
12407 2014-09-23 Yao Qi <yao@codesourcery.com>
12409 * linux-low.c (lp_status_maybe_breakpoint): New function.
12410 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12411 (count_events_callback): Likewise.
12412 (select_event_lwp_callback): Likewise.
12413 (cancel_breakpoints_callback): Likewise.
12415 2014-09-19 Don Breazeal <donb@codesourcery.com>
12417 * linux-low.c (handle_extended_wait): Call
12418 linux_ptrace_get_extended_event.
12419 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12420 linux_is_extended_waitstatus.
12422 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12424 * Makefile.in (CPPFLAGS): Define.
12425 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12426 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12428 2014-09-16 Gary Benson <gbenson@redhat.com>
12430 * inferiors.h (current_inferior): Renamed as...
12431 (current_thread): New variable. All uses updated.
12432 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12433 (maybe_move_out_of_jump_pad): Likewise.
12434 (cancel_breakpoint): Likewise.
12435 (linux_low_filter_event): Likewise.
12436 (wait_for_sigstop): Likewise.
12437 (linux_resume_one_lwp): Likewise.
12438 (need_step_over_p): Likewise.
12439 (start_step_over): Likewise.
12440 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12441 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12442 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12443 and save_inferior as saved_thread.
12444 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12446 (regcache_invalidate_thread): Likewise.
12447 * remote-utils.c (prepare_resume_reply): Likewise.
12448 * thread-db.c (thread_db_get_tls_address): Likewise.
12449 (disable_thread_event_reporting): Likewise.
12450 (remove_thread_event_breakpoints): Likewise.
12451 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12453 * target.h (set_desired_inferior): Renamed as...
12454 (set_desired_thread): New declaration. All uses updated.
12455 * server.c (myresume): Updated comment to reference thread instead
12457 (handle_serial_event): Likewise.
12458 (handle_target_event): Likewise.
12460 2014-09-12 Tom Tromey <tromey@redhat.com>
12461 Gary Benson <gbenson@redhat.com>
12463 * regcache.h: Include common-regcache.h.
12464 (regcache_read_pc): Don't declare.
12465 * regcache.c (get_thread_regcache_for_ptid): New function.
12467 2014-09-11 Tom Tromey <tromey@redhat.com>
12468 Gary Benson <gbenson@redhat.com>
12470 * symbol.c: New file.
12471 * Makefile.in (SFILES): Add symbol.c.
12472 (OBS): Add symbol.o.
12474 2014-09-11 Gary Benson <gbenson@redhat.com>
12476 * target.c (target_stop_ptid, target_continue_ptid): New
12479 2014-09-11 Tom Tromey <tromey@redhat.com>
12480 Gary Benson <gbenson@redhat.com>
12482 * target.h: Include target/target.h.
12483 * target.c (target_read_memory, target_read_uint32)
12484 (target_write_memory): New functions.
12486 2014-09-11 Gary Benson <gbenson@redhat.com>
12488 * server.h (debug_hw_points): Don't declare.
12489 * server.c (debug_hw_points): Don't define. Replace all uses
12490 with show_debug_regs.
12491 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12492 all uses with show_debug_regs.
12494 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12496 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12497 endianness into account.
12498 (ppc_supply_ptrace_register): Likewise.
12500 2014-09-03 James Hogan <james.hogan@imgtec.com>
12502 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12503 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12505 2014-09-03 Gary Benson <gbenson@redhat.com>
12507 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12508 ALL_DEBUG_ADDRESS_REGISTERS.
12510 2014-09-02 Gary Benson <gbenson@redhat.com>
12512 * i386-low.h: Renamed as...
12513 * x86-low.h: New file. All type, function and variable name
12514 prefixes changed from "i386_" to "x86_". All references updated.
12515 * i386-low.c: Renamed as...
12516 * x86-low.c: New file. All type, function and variable name
12517 prefixes changed from "i386_" to "x86_". All references updated.
12519 2014-09-02 Gary Benson <gbenson@redhat.com>
12521 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12522 (x86_linux_new_thread): Likewise.
12524 2014-08-29 Gary Benson <gbenson@redhat.com>
12526 * server.h (setjmp.h): Do not include.
12527 (toplevel): Do not declare.
12528 (common-exceptions.h): Include.
12529 (cleanups.h): Likewise.
12530 * server.c (toplevel): Do not define.
12531 (exit_code): New static global.
12532 (detach_or_kill_for_exit_cleanup): New function.
12533 (main): New function. Original main renamed to...
12534 (captured_main): New function.
12535 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12537 2014-08-29 Gary Benson <gbenson@redhat.com>
12539 * Makefile.in (SFILES): Add common/common-exceptions.c.
12540 (OBS): Add common-exceptions.o.
12541 (common-exceptions.o): New rule.
12542 * utils.c (prepare_to_throw_exception): New function.
12544 2014-08-29 Gary Benson <gbenson@redhat.com>
12546 * config.in: Regenerate.
12547 * configure: Likewise.
12549 2014-08-29 Gary Benson <gbenson@redhat.com>
12551 * Makefile.in (SFILES): Add common/cleanups.c.
12553 (cleanups.o): New rule.
12555 2014-08-29 Gary Benson <gbenson@redhat.com>
12557 * utils.c (internal_vwarning): New function.
12559 2014-08-28 Gary Benson <gbenson@redhat.com>
12561 * utils.h (fatal): Remove declaration.
12562 * utils.c (fatal): Remove function.
12564 2014-08-28 Gary Benson <gbenson@redhat.com>
12566 * tracepoint.c (gdb_agent_init): Replace fatal with
12568 (initialize_tracepoint): Likewise.
12570 2014-08-28 Gary Benson <gbenson@redhat.com>
12572 * remote-utils.c (remote_prepare): Replace fatal with error.
12574 2014-08-28 Gary Benson <gbenson@redhat.com>
12576 * linux-low.c (linux_async): Replace fatal with warning.
12577 Tidy up and return.
12578 (linux_start_non_stop): Return -1 if linux_async failed.
12580 2014-08-28 Gary Benson <gbenson@redhat.com>
12582 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12584 (i386_dr_low_get_addr): Remove vague comment.
12585 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12588 2014-08-28 Gary Benson <gbenson@redhat.com>
12590 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12591 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12593 (linux_resume_one_lwp): Likewise.
12594 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12596 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12597 with internal_error.
12598 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12599 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12600 (find_register_by_name): Replace fatal with internal_error.
12601 (find_regno): Likewise.
12602 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12603 * thread-db.c (thread_db_create_event): Likewise.
12604 (thread_db_load_search): Likewise.
12605 (try_thread_db_load_1): Likewise.
12606 * tracepoint.c (get_jump_space_head): Replace fatal with
12608 (claim_trampoline_space): Likewise.
12609 (have_fast_tracepoint_trampoline_buffer): Likewise.
12610 (cmd_qtstart): Likewise.
12611 (stop_tracing): Likewise.
12612 (fast_tracepoint_collecting): Likewise.
12613 (target_malloc): Likewise.
12614 (download_tracepoint): Likewise.
12615 (download_trace_state_variables): Replace check with gdb_assert.
12616 (upload_fast_traceframes): Replace fatal with internal_error.
12618 2014-08-19 Tom Tromey <tromey@redhat.com>
12619 Gary Benson <gbenson@redhat.com>
12621 * Makefile.in (SFILES): Add common/common-debug.c.
12622 (OBS): Add common-debug.o.
12623 (common-debug.o): New rule.
12624 * debug.h (debug_printf): Don't declare.
12625 * debug.c (debug_printf): Renamed and rewritten as...
12626 (debug_vprintf): New function.
12628 2014-08-19 Gary Benson <gbenson@redhat.com>
12630 * utils.h: Do not include print-utils.h.
12632 2014-08-19 Tom Tromey <tromey@redhat.com>
12633 Gary Benson <gbenson@redhat.com>
12635 * server.h: Add static assertion.
12636 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12638 2014-08-19 Tom Tromey <tromey@redhat.com>
12639 Gary Benson <gbenson@redhat.com>
12641 * Makefile.in (SFILES): Add common/errors.c.
12642 (OBS): Add errors.o.
12643 (IPA_OBS): Add errors-ipa.o.
12644 (errors.o): New rule.
12645 (errors-ipa.o): Likewise.
12646 * utils.h (perror_with_name, error, warning): Don't declare.
12647 * utils.c (warning): Renamed and rewritten as...
12648 (vwarning): New function.
12649 (error): Renamed and rewritten as...
12650 (verror): New function.
12651 (internal_error): Renamed and rewritten as...
12652 (internal_verror): New function.
12654 2014-08-07 Gary Benson <gbenson@redhat.com>
12656 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12657 * configure: Regenerate.
12658 * config.in: Likewise.
12659 * server.h: Do not include errno.h.
12660 * event-loop.c: Likewise.
12661 * hostio-errno.c: Likewise.
12662 * linux-low.c: Likewise.
12663 * remote-utils.c: Likewise.
12664 * spu-low.c: Likewise.
12665 * utils.c: Likewise.
12666 * gdbreplay.c: Unconditionally include errno.h.
12668 2014-08-07 Gary Benson <gbenson@redhat.com>
12670 * server.h: Do not include string.h.
12671 * event-loop.c: Likewise.
12672 * linux-low.c: Likewise.
12673 * regcache.c: Likewise.
12674 * remote-utils.c: Likewise.
12675 * spu-low.c: Likewise.
12676 * utils.c: Likewise.
12678 2014-08-07 Gary Benson <gbenson@redhat.com>
12680 * server.h: Do not include gdb_assert.h.
12682 2014-08-07 Gary Benson <gbenson@redhat.com>
12684 * server.h: Do not include common-utils.h.
12686 2014-08-07 Gary Benson <gbenson@redhat.com>
12688 * server.h: Do not include ptid.h.
12689 * notif.h: Likewise.
12691 2014-08-07 Gary Benson <gbenson@redhat.com>
12693 * server.h: Do not include gdb_locale.h.
12695 2014-08-07 Gary Benson <gbenson@redhat.com>
12697 * server.h: Do not include gdb/signals.h.
12698 * win32-low.c: Likewise.
12700 2014-08-07 Gary Benson <gbenson@redhat.com>
12702 * server.h: Do not include pathmax.h.
12704 2014-08-07 Gary Benson <gbenson@redhat.com>
12706 * server.h: Do not include libiberty.h.
12707 * linux-bfin-low.c: Likewise.
12709 2014-08-07 Gary Benson <gbenson@redhat.com>
12711 * server.h: Do not include ansidecl.h.
12713 2014-08-07 Gary Benson <gbenson@redhat.com>
12715 * linux-x86-low.c: Do not include stddef.h.
12716 * lynx-ppc-low.c: Likewise.
12717 * tracepoint.c: Likewise.
12719 2014-08-07 Gary Benson <gbenson@redhat.com>
12721 * server.h: Do not include stdarg.h.
12722 * nto-low.c: Likewise.
12724 2014-08-07 Gary Benson <gbenson@redhat.com>
12726 * server.h: Do not include stdlib.h.
12727 * inferiors.c: Likewise.
12728 * linux-low.c: Likewise.
12729 * regcache.c: Likewise.
12730 * spu-low.c: Likewise.
12731 * tracepoint.c: Likewise.
12732 * utils.c: Likewise.
12734 2014-08-07 Gary Benson <gbenson@redhat.com>
12736 * server.h: Do not include stdio.h.
12737 * linux-low.c: Likewise.
12738 * remote-utils.c: Likewise.
12739 * spu-low.c: Likewise.
12740 * utils.c: Likewise.
12741 * wincecompat.c: Likewise.
12743 2014-08-06 Gary Benson <gbenson@redhat.com>
12745 * regcache.c (init_register_cache): Move conditionals inside if.
12747 2014-08-06 Gary Benson <gbenson@redhat.com>
12749 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12751 2014-07-31 Gary Benson <gbenson@redhat.com>
12753 * ax.h: Do not include server.h.
12754 * gdbthread.h: Likewise.
12755 * lynx-low.h: Likewise.
12756 * notif.h: Likewise.
12758 2014-07-30 Gary Benson <gbenson@redhat.com>
12760 * server.h: Include common-defs.h.
12761 Do not include config.h or build-gnulib-gdbserver/config.h.
12763 2014-07-30 Gary Benson <gbenson@redhat.com>
12765 * hostio-errno.c: Move server.h to top of includes list.
12766 * inferiors.c: Likewise.
12767 * linux-x86-low.c: Likewise.
12768 * notif.c: Include server.h.
12770 2014-07-24 Tom Tromey <tromey@redhat.com>
12771 Gary Benson <gbenson@redhat.com>
12773 * server.h (CORE_ADDR): Now unsigned.
12775 2014-07-16 Pedro Alves <palves@redhat.com>
12777 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12779 2014-07-15 Pedro Alves <palves@redhat.com>
12781 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12784 2014-07-11 Pedro Alves <palves@redhat.com>
12786 * linux-low.c (kill_wait_lwp): New function, based on
12787 kill_one_lwp_callback, but use my_waitpid directly.
12788 (kill_one_lwp_callback, linux_kill): Use it.
12790 2014-06-23 Pedro Alves <palves@redhat.com>
12792 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12793 before setting DR0..DR3.
12795 2014-06-20 Gary Benson <gbenson@redhat.com>
12797 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12798 * configure: Regenerated.
12799 * config.in: Likewise.
12801 2014-06-20 Gary Benson <gbenson@redhat.com>
12803 * Makefile.in (SFILES): Update locations for files moved
12804 from common to nat.
12805 (object file files): Reordered.
12807 2014-06-20 Gary Benson <gbenson@redhat.com>
12809 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12810 (i386_dr_low_set_addr): Likewise.
12811 (i386_dr_low_get_addr): Likewise.
12812 (i386_dr_low_can_set_control): Likewise.
12813 (i386_dr_low_set_control): Likewise.
12814 (i386_dr_low_get_control): Likewise.
12815 (i386_dr_low_get_status): Likewise.
12816 (i386_get_debug_register_length): Likewise.
12817 * linux-x86-low.c (i386_dr_low_set_addr):
12818 Changed signature. Made static.
12819 (i386_dr_low_get_addr): Likewise.
12820 (i386_dr_low_set_control): Likewise.
12821 (i386_dr_low_get_control): Likewise.
12822 (i386_dr_low_get_status): Likewise.
12823 (i386_dr_low): New global variable.
12824 * win32-i386-low.c (i386_dr_low_set_addr):
12825 Changed signature. Made static.
12826 (i386_dr_low_get_addr): Likewise.
12827 (i386_dr_low_set_control): Likewise.
12828 (i386_dr_low_get_control): Likewise.
12829 (i386_dr_low_get_status): Likewise.
12830 (i386_dr_low): New global variable.
12832 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12834 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12835 * Makefile.in (AR, AR_FLAGS): Define.
12836 * configure: Regenerate.
12838 2014-06-19 Gary Benson <gbenson@redhat.com>
12840 * Makefile.in (i386-dregs.o): New rule.
12841 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12842 * i386-low.c (target.h): Remove include.
12843 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12844 (DR_CONTROL_SHIFT): Likewise.
12845 (DR_CONTROL_SIZE): Likewise.
12846 (DR_RW_EXECUTE): Likewise.
12847 (DR_RW_WRITE): Likewise.
12848 (DR_RW_READ): Likewise.
12849 (DR_RW_IORW): Likewise.
12850 (DR_LEN_1): Likewise.
12851 (DR_LEN_2): Likewise.
12852 (DR_LEN_4): Likewise.
12853 (DR_LEN_8): Likewise.
12854 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12855 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12856 (DR_ENABLE_SIZE): Likewise.
12857 (DR_LOCAL_SLOWDOWN): Likewise.
12858 (DR_GLOBAL_SLOWDOWN): Likewise.
12859 (DR_CONTROL_RESERVED): Likewise.
12860 (I386_DR_CONTROL_MASK): Likewise.
12861 (I386_DR_VACANT): Likewise.
12862 (I386_DR_LOCAL_ENABLE): Likewise.
12863 (I386_DR_GLOBAL_ENABLE): Likewise.
12864 (I386_DR_DISABLE): Likewise.
12865 (I386_DR_SET_RW_LEN): Likewise.
12866 (I386_DR_GET_RW_LEN): Likewise.
12867 (I386_DR_WATCH_HIT): Likewise.
12868 (i386_wp_op_t): Likewise.
12869 (i386_show_dr): Likewise.
12870 (i386_length_and_rw_bits): Likewise.
12871 (i386_insert_aligned_watchpoint): Likewise.
12872 (i386_remove_aligned_watchpoint): Likewise.
12873 (i386_handle_nonaligned_watchpoint): Likewise.
12874 i386_update_inferior_debug_regs(): Likewise.
12875 (i386_dr_insert_watchpoint): Likewise.
12876 (i386_dr_remove_watchpoint): Likewise.
12877 (i386_dr_region_ok_for_watchpoint): Likewise.
12878 (i386_dr_stopped_data_address): Likewise.
12879 (i386_dr_stopped_by_watchpoint): Likewise.
12881 2014-06-19 Gary Benson <gbenson@redhat.com>
12883 * i386-low.c (i386_dr_show): Renamed to
12884 i386_show_dr and made static. All uses updated.
12885 (i386_dr_length_and_rw_bits): Renamed to
12886 i386_length_and_rw_bits and made static.
12888 (i386_dr_insert_aligned_watchpoint): Renamed to
12889 i386_insert_aligned_watchpoint and made static.
12891 (i386_dr_remove_aligned_watchpoint): Renamed to
12892 i386_remove_aligned_watchpoint and made static.
12894 (i386_dr_update_inferior_debug_regs): Renamed to
12895 i386_update_inferior_debug_regs and made static.
12898 2014-06-18 Gary Benson <gbenson@redhat.com>
12900 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12901 (i386_dr_low_can_set_control): Likewise.
12902 (i386_get_debug_register_length): Likewise.
12903 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12904 (i386_dr_low_can_set_control): Likewise.
12905 (i386_get_debug_register_length): Likewise.
12907 2014-06-17 Gary Benson <gbenson@redhat.com>
12909 * i386-low.h (i386-dregs.h): New include.
12910 (DR_FIRSTADDR): Now in i386-dregs.h.
12911 (DR_LASTADDR): Likewise.
12912 (DR_NADDR): Likewise.
12913 (DR_STATUS): Likewise.
12914 (DR_CONTROL): Likewise.
12915 (i386_debug_reg_state): Likewise.
12916 (i386_dr_insert_watchpoint): Likewise.
12917 (i386_dr_remove_watchpoint): Likewise.
12918 (i386_dr_region_ok_for_watchpoint): Likewise.
12919 (i386_dr_stopped_data_address): Likewise.
12920 (i386_dr_stopped_by_watchpoint): Likewise.
12921 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12923 2014-06-18 Gary Benson <gbenson@redhat.com>
12925 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12926 i386_dr_insert_watchpoint.
12927 (i386_low_remove_watchpoint): Renamed to
12928 i386_dr_remove_watchpoint.
12929 (i386_low_region_ok_for_watchpoint): Renamed to
12930 i386_dr_region_ok_for_watchpoint.
12931 (i386_low_stopped_data_address): Renamed to
12932 i386_dr_stopped_data_address.
12933 (i386_low_stopped_by_watchpoint): Renamed to
12934 i386_dr_stopped_by_watchpoint.
12935 * i386-low.c (i386_show_dr): Renamed to
12936 i386_dr_show and made nonstatic. All uses updated.
12937 (i386_length_and_rw_bits): Renamed to
12938 i386_dr_length_and_rw_bits and made nonstatic.
12940 (i386_insert_aligned_watchpoint): Renamed to
12941 i386_dr_insert_aligned_watchpoint and made nonstatic.
12943 (i386_remove_aligned_watchpoint): Renamed to
12944 i386_dr_remove_aligned_watchpoint and made nonstatic.
12946 (i386_update_inferior_debug_regs): Renamed to
12947 i386_dr_update_inferior_debug_regs and made nonstatic.
12949 (i386_low_insert_watchpoint): Renamed to
12950 i386_dr_insert_watchpoint. All uses updated.
12951 (i386_low_remove_watchpoint): Renamed to
12952 i386_dr_remove_watchpoint. All uses updated.
12953 (i386_low_region_ok_for_watchpoint): Renamed to
12954 i386_dr_region_ok_for_watchpoint. All uses updated.
12955 (i386_low_stopped_data_address): Renamed to
12956 i386_dr_stopped_data_address. All uses updated.
12957 (i386_low_stopped_by_watchpoint): Renamed to
12958 i386_dr_stopped_by_watchpoint. All uses updated.
12960 2014-06-18 Gary Benson <gbenson@redhat.com>
12962 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12963 (i386_dr_low_can_set_control): Likewise.
12964 (i386_insert_aligned_watchpoint): New check.
12966 2014-06-18 Gary Benson <gbenson@redhat.com>
12968 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12971 2014-06-18 Gary Benson <gbenson@redhat.com>
12973 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12974 instead of fatal and error.
12975 (i386_handle_nonaligned_watchpoint): Likewise.
12977 2014-06-18 Gary Benson <gbenson@redhat.com>
12979 * i386-low.c (i386_get_debug_register_length): New macro.
12980 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12981 (i386_show_dr): Use debug_printf instead of fprintf. Use
12982 phex to format values.
12984 2014-06-18 Gary Benson <gbenson@redhat.com>
12986 * i386-low.h: Comment changes.
12987 * i386-low.c: Likewise.
12989 2014-06-18 Gary Benson <gbenson@redhat.com>
12991 * i386-low.c: Whitespace changes.
12993 2014-06-12 Tom Tromey <tromey@redhat.com>
12995 * utils.c (freeargv): Remove.
12997 2014-06-12 Tom Tromey <tromey@redhat.com>
12999 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13000 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13001 (parse_debug_format_options): Likewise.
13002 (gdbserver_usage): Likewise.
13003 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13004 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13005 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13007 ($(LIBGNU)): Depend on libiberty.
13008 (all-lib): Recurse into all subdirs.
13009 (install-only): Invoke "install" target in subdirs.
13010 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13012 * configure: Rebuild.
13013 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13014 for vasprintf, vsnprintf, or gettimeofday.
13015 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13018 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13020 * development.sh: Delete.
13021 * Makefile.in (config.status): Adjust dependency on development.sh.
13022 * configure.ac: Adjust development.sh source call.
13023 * configure: Regenerate.
13025 2014-06-02 Pedro Alves <palves@redhat.com>
13027 * ax.c (gdb_free_agent_expr): New function.
13028 * ax.h (gdb_free_agent_expr): New declaration.
13029 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13031 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13033 (clear_breakpoint_conditions_and_commands): New function.
13034 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13035 (clear_breakpoint_conditions_and_commands): New declaration.
13037 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13039 * linux-aarch64-low.c (asm/ptrace.h): Include.
13041 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13043 Fix TLS access for -static -pthread.
13044 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13045 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13046 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13048 2014-05-20 Pedro Alves <palves@redhat.com>
13050 * linux-aarch64-low.c (aarch64_insert_point)
13051 (aarch64_remove_point): No longer check whether the type is
13052 supported here. Adjust to new interface.
13053 (the_low_target): Install aarch64_supports_z_point_type as
13054 supports_z_point_type method.
13055 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13056 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13057 instead of a Z packet char. Adjust.
13058 (arm_supports_z_point_type): New function.
13059 (arm_insert_point, arm_remove_point): Adjust to new interface.
13060 (the_low_target): Install arm_supports_z_point_type.
13061 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13062 (cris_insert_point, cris_remove_point): Adjust to new interface.
13063 Don't check whether the type is supported here.
13064 (the_low_target): Install cris_supports_z_point_type.
13065 * linux-low.c (linux_supports_z_point_type): New function.
13066 (linux_insert_point, linux_remove_point): Adjust to new interface.
13067 * linux-low.h (struct linux_target_ops) <insert_point,
13068 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13069 raw_breakpoint pointer parameter.
13070 <supports_z_point_type>: New method.
13071 * linux-mips-low.c (mips_supports_z_point_type): New function.
13072 (mips_insert_point, mips_remove_point): Adjust to new interface.
13073 Use mips_supports_z_point_type.
13074 (the_low_target): Install mips_supports_z_point_type.
13075 * linux-ppc-low.c (the_low_target): Install NULL as
13076 supports_z_point_type method.
13077 * linux-s390-low.c (the_low_target): Install NULL as
13078 supports_z_point_type method.
13079 * linux-sparc-low.c (the_low_target): Install NULL as
13080 supports_z_point_type method.
13081 * linux-x86-low.c (x86_supports_z_point_type): New function.
13082 (x86_insert_point): Adjust to new insert_point interface. Use
13083 insert_memory_breakpoint. Adjust to new
13084 i386_low_insert_watchpoint interface.
13085 (x86_remove_point): Adjust to remove_point interface. Use
13086 remove_memory_breakpoint. Adjust to new
13087 i386_low_remove_watchpoint interface.
13088 (the_low_target): Install x86_supports_z_point_type.
13089 * lynx-low.c (lynx_target_ops): Install NULL as
13090 supports_z_point_type callback.
13091 * nto-low.c (nto_supports_z_point_type): New.
13092 (nto_insert_point, nto_remove_point): Adjust to new interface.
13093 (nto_target_ops): Install nto_supports_z_point_type.
13094 * mem-break.c: Adjust intro comment.
13095 (struct raw_breakpoint) <raw_type, size>: New fields.
13096 <inserted>: Update comment.
13097 <shlib_disabled>: Delete field.
13098 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13099 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13100 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13101 (raw_bkpt_type_to_target_hw_bp_type): New function.
13102 (find_enabled_raw_code_breakpoint_at): New function.
13103 (find_raw_breakpoint_at): New type and size parameters. Use them.
13104 (insert_memory_breakpoint): New function, based off
13105 set_raw_breakpoint_at.
13106 (remove_memory_breakpoint): New function.
13107 (set_raw_breakpoint_at): Reimplement.
13108 (set_breakpoint): New, based on set_breakpoint_at.
13109 (set_breakpoint_at): Reimplement.
13110 (delete_raw_breakpoint): Go through the_target->remove_point
13111 instead of assuming memory breakpoints.
13112 (find_gdb_breakpoint_at): Delete.
13113 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13114 (find_gdb_breakpoint): New function.
13115 (set_gdb_breakpoint_at): Delete.
13116 (z_type_supported): New function.
13117 (set_gdb_breakpoint_1): New function, loosely based off
13118 set_gdb_breakpoint_at.
13119 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13120 (delete_gdb_breakpoint_at): Delete.
13121 (delete_gdb_breakpoint_1): New function, loosely based off
13122 delete_gdb_breakpoint_at.
13123 (delete_gdb_breakpoint): New function.
13124 (clear_gdb_breakpoint_conditions): Rename to ...
13125 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13127 (add_condition_to_breakpoint): Make static.
13128 (add_breakpoint_condition): Take a struct breakpoint pointer
13129 instead of an address. Adjust.
13130 (gdb_condition_true_at_breakpoint): Rename to ...
13131 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13133 (gdb_condition_true_at_breakpoint): Reimplement.
13134 (add_breakpoint_commands): Take a struct breakpoint pointer
13135 instead of an address. Adjust.
13136 (gdb_no_commands_at_breakpoint): Rename to ...
13137 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13138 parameter. Return true if no breakpoint was found. Change debug
13140 (gdb_no_commands_at_breakpoint): Reimplement.
13141 (run_breakpoint_commands): Rename to ...
13142 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13143 and change return type to boolean.
13144 (run_breakpoint_commands): New function.
13145 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13146 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13147 breakpoint. Go through the_target->remove_point instead of
13148 assuming memory breakpoint.
13149 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13150 software and hardware breakpoints.
13151 (reinsert_raw_breakpoint): Go through the_target->insert_point
13152 instead of assuming memory breakpoint.
13153 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13154 software and hardware breakpoints.
13155 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13156 Check both software and hardware breakpoints.
13157 (validate_inserted_breakpoint): Assert the breakpoint is a
13158 software breakpoint. Set the inserted flag to -1 instead of
13159 setting shlib_disabled.
13160 (delete_disabled_breakpoints): Adjust.
13161 (validate_breakpoints): Only validate software breakpoints.
13162 Adjust to inserted flag change.
13163 (check_mem_read, check_mem_write): Skip breakpoint types other
13164 than software breakpoints. Adjust to inserted flag change.
13165 * mem-break.h (enum raw_bkpt_type): New enum.
13166 (raw_breakpoint, struct process_info): Forward declare.
13167 (Z_packet_to_target_hw_bp_type): Delete declaration.
13168 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13169 (set_gdb_breakpoint, delete_gdb_breakpoint)
13170 (clear_breakpoint_conditions): New declarations.
13171 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13172 (breakpoint_inserted_here): Update comment.
13173 (add_breakpoint_condition, add_breakpoint_commands): Replace
13174 address parameter with a breakpoint pointer parameter.
13175 (gdb_breakpoint_here): Update comment.
13176 (delete_gdb_breakpoint_at): Delete.
13177 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13178 * server.c (process_point_options): Take a struct breakpoint
13179 pointer instead of an address. Adjust.
13180 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13181 delete_gdb_breakpoint.
13182 * spu-low.c (spu_target_ops): Install NULL as
13183 supports_z_point_type method.
13184 * target.h: Include mem-break.h.
13185 (struct target_ops) <prepare_to_access_memory>: Update comment.
13186 <supports_z_point_type>: New field.
13187 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13188 instead of a char. Also take a raw breakpoint pointer.
13189 * win32-arm-low.c (the_low_target): Install NULL as
13190 supports_z_point_type.
13191 * win32-i386-low.c (i386_supports_z_point_type): New function.
13192 (i386_insert_point, i386_remove_point): Adjust to new interface.
13193 (the_low_target): Install i386_supports_z_point_type.
13194 * win32-low.c (win32_supports_z_point_type): New function.
13195 (win32_insert_point, win32_remove_point): Adjust to new interface.
13196 (win32_target_ops): Install win32_supports_z_point_type.
13197 * win32-low.h (struct win32_target_ops):
13198 <supports_z_point_type>: New method.
13199 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13200 instead of a char. Also take a raw breakpoint pointer.
13202 2014-05-20 Pedro Alves <palves@redhat.com>
13204 * mem-break.h: Include break-common.h.
13205 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13206 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13207 (Z_packet_to_target_hw_bp_type): New declaration.
13208 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13209 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13210 (Z_PACKET_ACCESS_WP): Delete macros.
13211 (Z_packet_to_hw_type): Delete function.
13212 * i386-low.h: Don't include break-common.h here.
13213 (Z_packet_to_hw_type): Delete declaration.
13214 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13215 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13216 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13217 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13218 * linux-aarch64-low.c: Don't include break-common.h here.
13219 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13220 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13221 (Z_packet_to_target_hw_bp_type): Delete function.
13222 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13224 (mips_insert_point, mips_remove_point): Use
13225 Z_packet_to_target_hw_bp_type.
13227 2014-05-20 Pedro Alves <palves@redhat.com>
13229 * linux-aarch64-low.c: Include break-common.h.
13230 (enum target_point_type): Delete.
13231 (Z_packet_to_point_type): Rename to ...
13232 (Z_packet_to_target_hw_bp_type): ... this, and return a
13233 target_hw_bp_type instead.
13234 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13235 instead of an enum target_point_type.
13236 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13238 (aarch64_dr_state_insert_one_point)
13239 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13240 (aarch64_handle_aligned_watchpoint)
13241 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13242 Take an enum target_hw_bp_type instead of an enum
13244 (aarch64_supports_z_point_type): New function.
13245 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13246 use Z_packet_to_target_hw_bp_type.
13248 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13250 * configure.ac: Only use -Werror by default when DEVELOPMENT
13252 * configure: Regenerate.
13254 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13256 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13257 * linux-x86-low.c (X86_64_USER_REGS): New.
13258 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13260 2014-04-28 Yao Qi <yao@codesourcery.com>
13262 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13265 2014-04-25 Pedro Alves <palves@redhat.com>
13268 * linux-low.c (linux_attach_fail_reason_string): New function.
13269 (linux_attach_lwp): Delete.
13270 (linux_attach_lwp_1): Rename to ...
13271 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13272 argument. Remove "initial" parameter. Return int instead of
13273 void. Don't error or warn here.
13274 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13275 failure to attach to the tgid. Call warning when failing to
13277 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13278 argument. Remove "initial" parameter. Return int instead of
13279 void. Don't error or warn here.
13280 (linux_attach_fail_reason_string): New declaration.
13281 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13282 interface change. Use linux_attach_fail_reason_string.
13284 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13285 Walfred Tedeschi <walfred.tedeschi@intel.com>
13287 * Makefile.in: Added rules to handle new files
13288 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13289 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13290 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13291 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13292 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13293 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13294 x32-avx512-linux.o.
13295 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13296 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13297 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13298 i386/x32-avx512.xml.
13299 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13300 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13301 i386/x32-avx512-linux.xml.
13302 * i387-fp.c (num_avx512_k_registers): New constant for number
13304 (num_avx512_zmmh_low_registers): New constant for number of
13305 lower ZMM registers (0-15).
13306 (num_avx512_zmmh_high_registers): New constant for number of
13307 higher ZMM registers (16-31).
13308 (num_avx512_ymmh_registers): New contant for number of higher
13309 YMM registers (ymm16-31 added by avx521 on x86_64).
13310 (num_avx512_xmm_registers): New constant for number of higher
13311 XMM registers (xmm16-31 added by AVX512 on x86_64).
13312 (struct i387_xsave): Add space for AVX512 registers.
13313 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13314 Add code to handle AVX512 registers.
13315 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13316 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13317 prototypei from generated file.
13318 (tdesc_amd64_avx512_linux): Likewise.
13319 (init_registers_x32_avx512_linux): Likewise.
13320 (tdesc_x32_avx512_linux): Likewise.
13321 (init_registers_i386_avx512_linux): Likewise.
13322 (tdesc_i386_avx512_linux): Likewise.
13323 (x86_64_regmap): Add AVX512 registers.
13324 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13326 (initialize_low_arch): Add code to initialize AVX512 registers.
13328 2014-04-23 Pedro Alves <palves@redhat.com>
13330 * mem-break.c (find_gdb_breakpoint_at): Make static.
13331 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13333 2014-04-23 Pedro Alves <palves@redhat.com>
13335 * i386-low.c: Don't include break-common.h here.
13336 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13337 prototype to take target_hw_bp_type as argument instead of a Z
13339 * i386-low.h: Include break-common.h here.
13340 (Z_packet_to_hw_type): Declare.
13341 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13343 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13344 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13345 (x86_remove_point): Convert the packet number to a
13346 target_hw_bp_type before calling i386_low_remove_watchpoint.
13347 * win32-i386-low.c (i386_insert_point): Convert the packet number
13348 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13349 (i386_remove_point): Convert the packet number to a
13350 target_hw_bp_type before calling i386_low_remove_watchpoint.
13352 2014-04-23 Pedro Alves <palves@redhat.com>
13354 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13356 2014-04-10 Pedro Alves <palves@redhat.com>
13358 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13359 Check if the condition or command is NULL before checking if the
13360 breakpoint is known. On success, return true.
13361 * mem-break.h (add_breakpoint_condition): Document return.
13362 (add_breakpoint_commands): Add describing comment.
13363 * server.c (skip_to_semicolon): New function.
13364 (process_point_options): Use it.
13366 2014-04-09 Pedro Alves <palves@redhat.com>
13368 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13371 2014-02-27 Pedro Alves <palves@redhat.com>
13374 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13376 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13378 (last_thread_of_process_p): Take a PID argument instead of a
13380 (linux_wait_for_lwp): Delete.
13381 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13383 (linux_low_filter_event): New function, party factored out from
13384 linux_wait_for_event.
13385 (linux_wait_for_event): Rename to ...
13386 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13387 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13388 sigsuspend. Check for zombie leaders.
13389 (linux_wait_for_event): Reimplement as wrapper around
13390 linux_wait_for_event_filtered.
13391 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13392 a normal or signal exit is seen, it's the whole process exiting.
13393 (wait_for_sigstop): No longer a for_each_inferior callback.
13394 Rewrite on top of linux_wait_for_event_filtered.
13395 (stop_all_lwps): Call wait_for_sigstop directly.
13396 * server.c (resume, handle_target_event): Handle
13397 TARGET_WAITKIND_NO_RESUMED.
13399 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13401 * win32-low.c (psapi_get_dll_name,
13402 * win32_CreateToolhelp32Snapshot): Delete.
13403 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13404 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13406 (handle_load_dll): Add function description.
13407 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13409 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13411 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13413 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13414 base address when calling win32_add_one_solib.
13415 (handle_load_dll): Delete local variable load_addr.
13416 Remove 0x1000 offset applied to DLL base address when calling
13417 win32_add_one_solib.
13418 (handle_unload_dll): Add comment.
13420 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13422 * win32-low.c (win32_add_all_dlls): Renames
13423 win32_ensure_ntdll_loaded. Rewrite function documentation.
13424 Adjust implementation to always load all DLLs.
13425 Add 0x1000 offset to DLL base address when calling
13426 win32_add_one_solib.
13427 (child_initialization_done): New static global.
13428 (do_initial_child_stuff): Set child_initialization_done to
13429 zero during child initialization, and 1 after. Replace call
13430 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13432 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13433 (handle_unload_dll): Add function documentation.
13434 (get_child_debug_event): Ignore load and unload DLL events
13435 during child initialization.
13437 2014-02-20 Doug Evans <dje@google.com>
13439 Remove global all_lwps.
13440 * inferiors.h (ptid_of): Move here from linux-low.h.
13441 (pid_of, lwpid_of): Ditto.
13442 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13443 parameter is a struct thread_info * now.
13444 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13445 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13446 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13448 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13449 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13450 * linux-arm-low.c (update_registers_callback): Update, "entry"
13451 parameter is a struct thread_info * now.
13452 Fetch lwpid from current_inferior directly.
13453 (arm_insert_point): Pass &all_threads to find_inferior instead of
13455 (arm_remove_point): Ditto.
13456 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13457 (arm_prepare_to_resume): Fetch pid from thread.
13458 (arm_read_description): Fetch lwpid from current_inferior directly.
13459 * linux-low.c (all_lwps): Delete.
13460 (delete_lwp): Delete call to remove_inferior.
13461 (handle_extended_wait): Fetch lwpid from thread.
13462 (add_lwp): Don't set lwp->entry.id. Remove call to
13463 add_inferior_to_list.
13464 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13465 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13466 (kill_one_lwp_callback): Ditto.
13467 (linux_kill): Don't dereference NULL pointer.
13468 Fetch ptid,lwpid from thread.
13469 (get_detach_signal): Fetch ptid from thread.
13470 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13471 Simplify call to regcache_invalidate_thread.
13472 (delete_lwp_callback): Update, "entry" parameter is a
13473 struct thread_info * now. Fetch pid from thread.
13474 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13475 (status_pending_p_callback): Update, "entry" parameter is a
13476 struct thread_info * now. Fetch ptid from thread.
13477 (find_lwp_pid): Update, "entry" parameter is a
13478 struct thread_info * now.
13479 (linux_wait_for_lwp): Fetch pid from thread.
13480 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13481 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13482 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13483 (dequeue_one_deferred_signal): Ditto.
13484 (cancel_breakpoint): Fetch ptid from current_inferior.
13485 (linux_wait_for_event): Pass &all_threads to find_inferior,
13486 not &all_lwps. Fetch ptid, lwpid from thread.
13487 (count_events_callback): Update, "entry" parameter is a
13488 struct thread_info * now.
13489 (select_singlestep_lwp_callback): Ditto.
13490 (select_event_lwp_callback): Ditto.
13491 (cancel_breakpoints_callback): Ditto.
13492 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13494 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13495 (unsuspend_one_lwp): Update, "entry" parameter is a
13496 struct thread_info * now.
13497 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13499 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13500 Fetch lwpid from thread, not lwp.
13501 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13502 Pass &all_threads to find_inferior, not &all_lwps.
13503 (send_sigstop): Fetch lwpid from thread, not lwp.
13504 (send_sigstop_callback): Update, "entry" parameter is a
13505 struct thread_info * now.
13506 (suspend_and_send_sigstop_callback): Ditto.
13507 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13508 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13509 struct thread_info * now.
13510 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13512 (lwp_running): Update, "entry" parameter is a
13513 struct thread_info * now.
13514 (stop_all_lwps): Fetch ptid from thread.
13515 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13516 (linux_resume_one_lwp): Fetch lwpid from thread.
13517 (linux_set_resume_request): Update, "entry" parameter is a
13518 struct thread_info * now. Fetch pid, lwpid from thread.
13519 (resume_status_pending_p): Update, "entry" parameter is a
13520 struct thread_info * now.
13521 (need_step_over_p): Ditto. Fetch lwpid from thread.
13522 (start_step_over): Fetch lwpid from thread.
13523 (linux_resume_one_thread): Update, "entry" parameter is a
13524 struct thread_info * now. Fetch lwpid from thread.
13525 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13526 (proceed_one_lwp): Update, "entry" parameter is a
13527 struct thread_info * now. Fetch lwpid from thread.
13528 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13529 struct thread_info * now.
13530 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13531 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13532 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13534 (regsets_store_inferior_registers): Ditto.
13535 (fetch_register, store_register): Ditto.
13536 (linux_read_memory, linux_write_memory): Ditto.
13537 (linux_request_interrupt): Ditto.
13538 (linux_read_auxv): Ditto.
13539 (linux_xfer_siginfo): Ditto.
13540 (linux_qxfer_spu): Ditto.
13541 (linux_qxfer_libraries_svr4): Ditto.
13542 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13543 moved to inferiors.h.
13545 (get_thread_lwp): Update.
13546 (struct lwp_info): Delete member "entry". Simplify comment for
13548 (all_lwps): Delete.
13549 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13550 current_inferior directly.
13551 (update_watch_registers_callback): Update, "entry" parameter is a
13552 struct thread_info * now. Fetch pid from thread.
13553 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13554 (mips_insert_point): Fetch lwpid from current_inferior.
13555 Pass &all_threads to find_inferior, not &all_lwps.
13556 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13557 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13559 (mips_stopped_data_address): Ditto.
13560 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13562 * linux-tile-low.c (tile_arch_setup): Ditto.
13563 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13564 (update_debug_registers_callback): Update, "entry" parameter is a
13565 struct thread_info * now. Fetch pid from thread.
13566 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13567 Pass &all_threads to find_inferior, not &all_lwps.
13568 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13569 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13570 Pass &all_threads to find_inferior, not &all_lwps.
13571 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13572 (i386_dr_low_get_status): Ditto.
13573 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13574 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13575 (x86_linux_read_description): Ditto.
13576 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13578 2014-02-20 Doug Evans <dje@google.com>
13580 * inferiors.c (get_first_inferior): Fix buglet.
13582 2014-02-19 Doug Evans <dje@google.com>
13584 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13585 * inferiors.c (add_thread): Change result type to struct thread_info *.
13586 All callers updated.
13587 (add_lwp): Call add_thread here instead of in callers.
13588 All callers updated.
13589 * linux-low.h (get_lwp_thread): Rewrite.
13590 (struct lwp_info): New member "thread".
13592 2014-02-19 Doug Evans <dje@google.com>
13594 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13595 All callers updated.
13597 2014-02-19 Doug Evans <dje@google.com>
13599 * inferiors.c (add_thread): Fix whitespace.
13601 2014-02-19 Doug Evans <dje@google.com>
13603 * dll.c (clear_dlls): Replace accessing list implemention details
13605 * gdbthread.h (get_first_thread): Declare.
13606 * inferiors.c (for_each_inferior_with_data): New function.
13607 (get_first_thread): New function.
13608 (find_thread_ptid): Simplify.
13609 (get_first_inferior): New function.
13610 (clear_list): Delete.
13611 (one_inferior_p): New function.
13612 (clear_inferior_list): New function.
13613 (clear_inferiors): Update.
13614 * inferiors.h (for_each_inferior_with_data): Declare.
13615 (clear_inferior_list): Declare.
13616 (one_inferior_p): Declare.
13617 (get_first_inferior): Declare.
13618 * linux-low.c (linux_wait_for_event): Replace accessing list
13619 implemention details with API function.
13620 * server.c (target_running): Ditto.
13621 (accumulate_file_name_length): New function.
13622 (emit_dll_description): New function.
13623 (handle_qxfer_libraries): Replace accessing list implemention
13624 details with API function.
13625 (handle_qxfer_threads_worker): New function.
13626 (handle_qxfer_threads_proper): Replace accessing list implemention
13627 details with API function.
13628 (handle_query): Ditto.
13629 (visit_actioned_threads_callback_ftype): New typedef.
13630 (visit_actioned_threads_data): New struct.
13631 (visit_actioned_threads): Rewrite to be find_inferior callback.
13632 (resume): Call find_inferior.
13633 (handle_status): Replace accessing list implemention
13634 details with API function.
13635 (process_serial_event): Replace accessing list implemention details
13637 * target.c (set_desired_inferior): Replace accessing list implemention
13638 details with API function.
13639 * tracepoint.c (same_process_p): New function.
13640 (gdb_agent_about_to_close): Replace accessing list implemention
13641 details with API function.
13642 * win32-low.c (child_delete_thread): Replace accessing list
13643 implemention details with API function.
13644 (match_dll_by_basename): New function.
13645 (dll_is_loaded_by_basename): New function.
13646 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13647 details call to dll_is_loaded_by_basename.
13649 2014-02-19 Doug Evans <dje@google.com>
13651 * dll.h (struct dll_info): Add comment.
13652 * gdbthread.h (struct thread_info): Add comment.
13653 (current_ptid): Simplify.
13654 * inferiors.c (add_process): Update.
13655 (remove_process): Update.
13656 * inferiors.h (struct process_info): Rename member "head" to "entry".
13657 * linux-low.c (delete_lwp): Update.
13659 (last_thread_of_process_p): Update.
13660 (kill_one_lwp_callback, linux_kill): Update.
13661 (status_pending_p_callback): Update.
13662 (wait_for_sigstop): Update. Simplify read of ptid.
13663 (start_step_over): Update.
13664 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13665 (get_lwp_thread): Update.
13666 (struct lwp_info): Rename member "head" to "entry".
13667 * regcache.h (inferior_list_entry): Delete.
13668 * server.c (kill_inferior_callback): Update.
13669 (detach_or_kill_inferior_callback): Update.
13670 (print_started_pid): Update.
13671 (print_attached_pid): Update.
13672 (process_serial_event): Simplify read of ptid.
13673 * thread-db.c (thread_db_create_event): Update.
13674 (thread_db_get_tls_address): Update.
13675 * win32-low.c (current_inferior_ptid): Simplify.
13677 2014-02-19 Tom Tromey <tromey@redhat.com>
13679 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13681 (target_supports_btrace): Update.
13683 2014-02-14 Yao Qi <yao@codesourcery.com>
13685 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13686 (rsp-low-ipa.o): New target.
13688 2014-02-12 Tom Tromey <tromey@redhat.com>
13690 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13691 convert_ascii_to_int.
13692 * regcache.c (registers_to_string): Likewise.
13693 * remote-utils.c (decode_M_packet): Likewise.
13694 * server.c (process_serial_event): Likewise.
13696 2014-02-12 Tom Tromey <tromey@redhat.com>
13698 * server.c (handle_query, handle_v_run): Use hex2bin, not
13700 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13702 2014-02-12 Tom Tromey <tromey@redhat.com>
13704 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13705 convert_int_to_ascii.
13706 * regcache.c (registers_to_string, collect_register_as_string):
13708 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13710 * server.c (process_serial_event): Likewise.
13711 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13712 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13714 2014-02-12 Tom Tromey <tromey@redhat.com>
13716 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13717 bin2hex, not hexify.
13718 * tracepoint.c (cmd_qtstatus): Likewise.
13720 2014-02-12 Tom Tromey <tromey@redhat.com>
13722 * remote-utils.c (monitor_output): Pass explicit length to
13725 2014-02-12 Tom Tromey <tromey@redhat.com>
13727 * tracepoint.c: Include rsp-low.h.
13728 * server.c: Include rsp-low.h.
13729 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13730 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13732 * remote-utils.c: Include rsp-low.h.
13733 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13734 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13735 (convert_int_to_ascii, convert_ascii_to_int): Move to
13737 * regcache.c: Include rsp-low.h.
13738 * ax.c: Include rsp-low.h.
13739 * Makefile.in (SFILES): Add common/rsp-low.c.
13740 (OBS): Add rsp-low.o.
13741 (rsp-low.o): New target.
13743 2014-02-12 Tom Tromey <tromey@redhat.com>
13745 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13746 Include print-utils.h.
13747 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13748 (plongest, thirty_two, phex_nz): Remove.
13749 * Makefile.in (SFILES): Add common/print-utils.c.
13750 (OBS): Add print-utils.o.
13751 (print-utils-ipa.o): New target.
13752 (print-utils.o): New target.
13753 (IPA_OBJS): Add print-utils-ipa.o.
13755 2014-02-06 Tom Tromey <tromey@redhat.com>
13757 * Makefile.in (SFILES): Fix indentation.
13759 2014-02-05 Doug Evans <dje@google.com>
13761 * linux-low.c (linux_wait_for_event): Improve comment.
13762 (linux_wait_1): Keep current_inferior in sync with event_child.
13764 2014-01-22 Doug Evans <dje@google.com>
13766 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13768 2014-01-22 Doug Evans <dje@google.com>
13770 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13771 * configure: Regenerate.
13772 * config.in: Regenerate.
13773 * Makefile.in (SFILES): Add debug.c.
13774 (OBS): Add debug.o.
13775 * debug.c: New file.
13776 * debug.h: New file.
13777 * linux-aarch64-low.c (*): Update all debugging printfs to use
13778 debug_printf instead of fprintf.
13779 * linux-arm-low.c (*): Ditto.
13780 * linux-cris-low.c (*): Ditto.
13781 * linux-crisv32-low.c (*): Ditto.
13782 * linux-m32r-low.c (*): Ditto.
13783 * linux-sparc-low.c (*): Ditto.
13784 * linux-x86.c (*): Ditto.
13785 * linux-low.c (*): Ditto.
13786 (linux_wait_1): Add calls to debug_enter, debug_exit.
13787 (linux_wait): Remove redundant debugging printf.
13788 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13789 (linux_resume, unstop_all_lwps): Ditto.
13790 * mem-break.c (*): Update all debugging printfs to use
13791 debug_printf instead of fprintf.
13792 * remote-utils.c (*): Ditto.
13793 * thread-db.c (*): Ditto.
13794 * server.c #include <ctype.h>, "gdb_vecs.h".
13795 (debug_threads): Moved to debug.c.
13796 (*): Update all debugging printfs to use debug_printf instead of
13798 (start_inferior): Replace call to fflush with call to debug_flush.
13799 (monitor_show_help): Mention set debug-format.
13800 (parse_debug_format_options): New function.
13801 (handle_monitor_command): Handle "monitor set debug-format".
13802 (gdbserver_usage): Mention --debug-format.
13803 (main): Parse --debug-format.
13804 * server.h (debug_threads): Declaration moved to debug.h.
13805 #include "debug.h".
13806 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13807 trace_debug_1 that uses debug_printf.
13808 (tracepoint_look_up_symbols): Update all debugging printfs to use
13809 debug_printf instead of fprintf.
13811 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13813 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13816 2014-01-17 Pedro Alves <palves@redhat.com>
13819 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13820 defined after including gdb_proc_service.h.
13822 2014-01-16 Doug Evans <dje@google.com>
13824 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13825 (match_dll): Use it.
13827 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13829 * target.h (target_ops) <read_btrace>: Change parameters and
13830 return type to allow error reporting.
13831 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13832 trace reading errors on.
13833 * linux-low.c (linux_low_read_btrace): Pass trace reading
13835 (linux_low_disable_btrace): New.
13837 2014-01-15 Doug Evans <dje@google.com>
13839 * inferiors.c (thread_id_to_gdb_id): Delete.
13840 * inferiors.h (thread_id_to_gdb_id): Delete.
13842 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13844 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13845 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13848 2014-01-08 Pedro Alves <palves@redhat.com>
13850 * server.c (handle_status): Don't discard previous queued stop
13851 replies or thread's pending status here.
13852 (main) <disconnection>: Do it here instead.
13854 2014-01-08 Pedro Alves <palves@redhat.com>
13856 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13857 * server.c (visit_actioned_threads, handle_pending_status): New
13859 (handle_v_cont): Factor out parts to ...
13860 (resume): ... this new function. If in all-stop, and a thread
13861 being resumed has a pending status, report it without actually
13863 (myresume): Adjust to use the new 'resume' function.
13864 (clear_pending_status_callback, set_pending_status_callback)
13865 (find_status_pending_thread_callback): New functions.
13866 (handle_status): Handle the case of multiple threads having
13867 interesting statuses to report. Report threads' real last signal
13868 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13869 with an interesting thread to report the status for, instead of
13870 always reporting the status of the first thread.
13872 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13874 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13875 * gdbreplay.c (gdbreplay_version): Likewise.
13877 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13879 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13880 iov.iov_len with the real length in use.
13882 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13884 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13885 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13886 for all targets that use win32-low.c.
13887 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13888 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13890 2013-12-13 Pedro Alves <palves@redhat.com>
13892 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13893 if equal to TARGET_WAITKIND_LOADED.
13894 * win32-low.c (cached_status): New static global.
13895 (win32_wait): Add declaration.
13896 (do_initial_child_stuff): Flush all initial pending debug events
13897 up to the initial breakpoint.
13898 (win32_wait): If CACHED_STATUS was set, return that instead
13899 of doing a real wait. Remove the code resuming the execution
13900 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13901 during the initial phase. Also remove the code changing
13902 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13903 TARGET_WAITKIND_STOPPED.
13905 2013-12-11 Yao Qi <yao@codesourcery.com>
13907 * notif.c (handle_notif_ack): Return 0 if no notification
13910 2013-11-20 Doug Evans <dje@google.com>
13912 * linux-low.c (linux_set_resume_request): Fix comment.
13914 2013-11-20 Doug Evans <dje@google.com>
13916 * linux-low.c (resume_status_pending_p): Tweak comment.
13918 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13920 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13921 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13922 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13923 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13924 (srv_amd64_regobj): Add amd64-mpx.o.
13925 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13926 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13927 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13928 * i387-fp.c (num_pl_bnd_register) Added constant.
13929 (num_pl_bnd_cfg_registers) Added constant.
13930 (struct i387_xsave) Added reserved area and MPX fields.
13931 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13932 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13934 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13935 (init_registers_amd64_mpx_linux): Declare new function.
13936 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13937 (x86_64_regmap): Add MPX registers.
13938 (x86_linux_read_description): Add MPX case.
13939 (initialize_low_arch): Initialize MPX targets.
13941 2013-11-18 Tom Tromey <tromey@redhat.com>
13943 * configure: Rebuild.
13944 * configure.ac: Don't check for stdlib.h.
13945 * gdbreplay.c: Unconditionally include stdlib.h.
13947 2013-11-18 Tom Tromey <tromey@redhat.com>
13949 * config.in: Rebuild.
13950 * configure: Rebuild.
13951 * configure.ac: Don't use AC_HEADER_DIRENT.
13953 2013-11-18 Tom Tromey <tromey@redhat.com>
13955 * server.h: Don't check HAVE_STRING_H.
13956 * gdbreplay.c: Don't check HAVE_STRING_H.
13957 * configure: Rebuild.
13959 2013-11-18 Tom Tromey <tromey@redhat.com>
13961 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13964 2013-11-08 Tom Tromey <tromey@redhat.com>
13966 * configure, config.in: Rebuild.
13967 * configure.ac: Remove unused configury.
13969 2013-11-08 Tom Tromey <tromey@redhat.com>
13971 * acinclude.m4: Include common.m4, codeset.m4.
13972 * configure, config.in: Rebuild.
13973 * configure.ac: Use GDB_AC_COMMON.
13975 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13977 * linux-s390-low.c (HWCAP_S390_TE): New define.
13978 (s390_arch_setup): Consider the TE field in the HWCAP for
13979 determining 'have_regset_tdb'.
13981 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13984 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13987 2013-10-02 Pedro Alves <palves@redhat.com>
13989 * server.c (process_serial_event): Don't output "GDBserver
13990 exiting" if GDB is connected through stdio.
13991 * target.c (mywait): Likewise, be silent if GDB is connected
13994 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13996 * lynx-low.c (lynx_add_threads_after_attach): New function.
13997 (lynx_attach): Remove call to add_thread. Add call to
13998 lynx_add_threads_after_attach instead.
14000 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14002 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14003 * config.in, configure: Regenerated.
14005 2013-09-18 Yao Qi <yao@codesourcery.com>
14008 * server.c (start_inferior): Clear 'resume_info'.
14010 2013-09-16 Jiong Wang <jiwang@tilera.com>
14012 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14015 2013-09-16 Jiong Wang <jiwang@tilera.com>
14017 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14018 linux-tile-low.o to srv_tgtobj.
14020 2013-09-16 Will Newton <will.newton@linaro.org>
14022 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14025 2013-09-06 Pedro Alves <palves@redhat.com>
14027 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14028 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14029 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14030 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14031 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14032 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14034 2013-09-06 Pedro Alves <palves@redhat.com>
14036 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14037 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14039 2013-09-06 Pedro Alves <palves@redhat.com>
14041 * linux-amd64-ipa.c: Include tracepoint.h.
14042 * linux-i386-ipa.c: Include tracepoint.h.
14044 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14046 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14047 (ps_get_thread_area): New function.
14049 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14051 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14052 (initialize_low_arch): Call init_registers_crisv32 rather than
14053 init_register_crisv32.
14055 2013-09-05 Pedro Alves <palves@redhat.com>
14057 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14059 * hostio.h: ... this new file.
14060 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14061 win32-low.c: Include hostio.h.
14063 2013-09-05 Pedro Alves <palves@redhat.com>
14065 * server.h (gdb_client_data, handler_func, callback_handler_func)
14066 (delete_file_handler, add_file_handler, append_callback_event)
14067 (delete_callback_event, start_event_loop, initialize_event_loop):
14068 Move to event-loop.h and include it.
14069 * event-loop.h: New file.
14071 2013-09-05 Pedro Alves <palves@redhat.com>
14073 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14074 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14075 (loaded_dll, unloaded_dll): Move to ...
14076 * dll.h: ... this new file.
14077 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14079 2013-09-05 Pedro Alves <palves@redhat.com>
14081 * server.h (current_process, get_thread_process, all_processes)
14082 (add_inferior_to_list, for_each_inferior, current_inferior)
14083 (remove_inferior, add_process, remove_process, find_process_pid)
14084 (have_started_inferiors_p, have_attached_inferiors_p)
14085 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14086 (clear_inferiors, find_inferior, find_inferior_id)
14087 (inferior_target_data, set_inferior_target_data)
14088 (inferior_regcache_data, set_inferior_regcache_data): Move to
14089 inferiors.h, and include it.
14090 * inferiors.h: New file.
14092 2013-09-05 Pedro Alves <palves@redhat.com>
14094 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14098 2013-09-05 Pedro Alves <palves@redhat.com>
14100 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14102 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14103 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14104 (handle_tracepoint_general_set, handle_tracepoint_query)
14105 (tracepoint_finished_step, tracepoint_was_hit)
14106 (release_while_stepping_state_list, current_traceframe)
14107 (in_readonly_region, traceframe_read_mem)
14108 (fetch_traceframe_registers, traceframe_read_sdata)
14109 (traceframe_read_info, struct fast_tpoint_collect_status)
14110 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14111 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14112 (supply_fast_tracepoint_registers)
14113 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14114 (ipa_tdesc, claim_trampoline_space)
14115 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14116 (agent_mem_read, agent_get_trace_state_variable_value)
14117 (agent_set_trace_state_variable_value, agent_tsv_read)
14118 (agent_mem_read_string, get_raw_reg_func_addr)
14119 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14120 * tracepoint.h: ... this new file.
14122 2013-09-05 Pedro Alves <palves@redhat.com>
14124 * server.h (perror_with_name, error, fatal, warning, paddress)
14125 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14127 * utils.h: New file.
14129 2013-09-05 Pedro Alves <palves@redhat.com>
14131 * server.h (remote_debug, noack_mode, transport_is_reliable)
14132 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14133 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14134 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14135 (write_enn, initialize_async_io, enable_async_io)
14136 (disable_async_io, check_remote_input_interrupt_request)
14137 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14138 (dead_thread_notify, prepare_resume_reply)
14139 (decode_address_to_semicolon, decode_address, decode_m_packet)
14140 (decode_M_packet, decode_X_packet, decode_xfer_write)
14141 (decode_search_memory_packet, unhexify, hexify)
14142 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14143 (look_up_one_symbol, relocate_instruction)
14144 (monitor_output): Move to remote-utils.h, and include it.
14145 * remote-utils.h: New file.
14147 2013-09-05 Pedro Alves <palves@redhat.com>
14149 * server.h (_): Delete.
14151 2013-09-02 Pedro Alves <palves@redhat.com>
14153 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14154 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14156 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14158 2013-09-02 Pierre Muller <muller@sourceware.org>
14160 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14161 or WriteProcessMemory complete successfully and handle
14162 ERROR_PARTIAL_COPY error.
14164 2013-09-02 Pedro Alves <palves@redhat.com>
14166 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14167 error instead of EIO.
14169 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14172 * linux-low.c: Include filestuff.h.
14173 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14174 * lynx-low.c: Include filestuff.h.
14175 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14176 * server.c: Include filestuff.h.
14177 (main): Call notice_open_fds.
14178 * spu-low.c: Include filestuff.h.
14179 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14181 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14183 * Makefile.in: Explain why ../target and ../nat are not
14184 listed as include file search paths.
14185 (linux-waitpid.o): New object file rule.
14186 * configure.srv (srv_native_linux_obj): New variable.
14187 Replace all occurrences of linux native object files with
14188 $srv_native_linux_obj.
14189 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14190 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14191 (linux_enable_event_reporting): Remove declaration.
14192 (my_waitpid): Moved to common/linux-waitpid.c.
14193 (linux_wait_for_event): Pass ptid when calling
14194 linux_enable_event_reporting.
14195 (linux_supports_tracefork_flag): Remove.
14196 (linux_enable_event_reporting): Likewise.
14197 (linux_tracefork_grandchild): Remove.
14198 (STACK_SIZE): Moved to common/linux-ptrace.c.
14199 (linux_tracefork_child): Remove.
14200 (linux_test_for_tracefork): Remove.
14201 (linux_look_up_symbols): Call linux_supports_traceclone.
14202 (initialize_low): Remove call to linux_test_for_tracefork.
14203 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14204 common/linux-ptrace.h.
14205 (PTRACE_TYPE_ARG4): Likewise.
14206 Include linux-ptrace.h.
14208 2013-08-21 Pedro Alves <palves@redhat.com>
14210 * config.in: Renegerate.
14212 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14214 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14215 (SFILES): Remove $(srcdir)/common/target-common.c and
14216 add $(srcdir)/target/waitstatus.c.
14217 (OBS): Remove target-common.o and add waitstatus.o.
14218 (server_h): Remove $(srcdir)/../common/target-common.h and
14219 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14220 and $(srcdir)/../target/waitstatus.h.
14221 (target-common.o): Remove.
14222 (waitstatus.o): New target object file.
14223 * target.h: Do not include target-common.h and
14224 include target/resume.h, target/wait.h and
14225 target/waitstatus.h.
14227 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14229 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14230 to PTRACE_TYPE_ARG3.
14231 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14232 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14234 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14235 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14237 2013-07-27 Jie Zhang <jie@codesourcery.com>
14238 Daniel Jacobowitz <dan@codesourcery.com>
14239 Yao Qi <yao@codesourcery.com>
14241 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14242 (mips-linux-watch.o): New rule.
14243 (mips_linux_watch_h): New variable.
14244 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14246 * linux-mips-low.c: Include mips-linux-watch.h.
14247 (struct arch_process_info, struct arch_lwp_info): New.
14248 (update_watch_registers_callback): New function.
14249 (mips_linux_new_process, mips_linux_new_thread) New functions.
14250 (mips_linux_prepare_to_resume, mips_insert_point): New
14252 (mips_remove_point, mips_stopped_by_watchpoint): New
14254 (rsp_bp_type_to_target_hw_bp_type): New function.
14255 (mips_stopped_data_address): New function.
14256 (the_low_target): Add watchpoint support functions.
14258 2013-07-27 Yao Qi <yao@codesourcery.com>
14260 * i386-low.c: Include break-common.h.
14261 (enum target_hw_bp_type): Remove.
14263 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14265 * Makefile.in (SFILES): /common/target-common.c.
14266 (OBS): Add target-common.o.
14267 (server_h): Add $(srcdir)/../common/target-common.h.
14268 (target-common.o): New target.
14269 * server.c (queue_stop_reply_callback): Free
14270 status string after use.
14271 * target.c (target_waitstatus_to_string): Remove.
14272 * target.h: Include target-common.h.
14273 (resume_kind): Likewise.
14274 (target_waitkind): Likewise.
14275 (target_waitstatus): Likewise.
14276 (TARGET_WNOHANG): Likewise.
14278 2013-07-04 Yao Qi <yao@codesourcery.com>
14280 * Makefile.in (host_alias): Use @host_noncanonical@.
14281 (target_alias): Use @target_noncanonical@.
14282 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14283 ACX_NONCANONICAL_HOST.
14284 * configure: Regenerated.
14287 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14289 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14290 * configure: Rebuild.
14291 * Makefile.in (version_host, version_target): Get from configure.
14292 (version.c): Use $(version_host) and $(version_target).
14294 2013-07-03 Pedro Alves <palves@redhat.com>
14296 * Makefile.in (config.status): Depend on development.sh.
14297 * acinclude.m4: Include libmcheck.m4.
14298 * configure: Regenerate.
14300 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14302 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14303 attribute inside the parentheses.
14304 (winapi_DebugSetProcessKillOnExit): Ditto.
14305 (winapi_DebugBreakProcess): Ditto.
14306 (winapi_GenerateConsoleCtrlEvent): Ditto.
14308 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14310 * notif.h (notif_event): Add a dummy member to avoid compiler
14313 2013-07-01 Pedro Alves <palves@redhat.com>
14315 * hostio.c (HOSTIO_PATH_MAX): Define.
14316 (require_filename, handle_open, handle_unlink, handle_readlink):
14319 2013-07-01 Pedro Alves <palves@redhat.com>
14321 * server.h: Include "pathmax.h".
14322 * linux-low.c: Don't include sys/param.h.
14323 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14325 * win32-low.c: Don't include sys/param.h.
14326 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14328 2013-07-01 Pedro Alves <palves@redhat.com>
14330 * event-loop.c: Don't check HAVE_UNISTD_H before including
14332 * gdbreplay.c: Likewise.
14333 * remote-utils.c: Likewise.
14334 * server.c: Likewise.
14335 * configure.ac: Don't check for unistd.h.
14336 * configure: Regenerate.
14338 2013-06-28 Tom Tromey <tromey@redhat.com>
14340 * Makefile.in (version.c): Use version.in, not
14343 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14345 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14346 * configure: Rebuild.
14347 * Makefile.in (version_host, version_target): Get from configure.
14348 (version.c): Use $(version_host) and $(version_target).
14350 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14352 Fix trace-status to output user name without trailing colon.
14353 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14355 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14357 Fix trace-status to output proper start-time and stop-time.
14358 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14359 output start time and stop time in hex as gdb expects.
14361 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14363 * tracepoint.c (build_traceframe_info_xml): Output trace state
14364 variables present in the trace buffer.
14366 2013-06-24 Tom Tromey <tromey@redhat.com>
14368 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14370 (version.o): Remove.
14371 * gdbreplay.c: Include version.h.
14372 (version, host_name): Don't declare.
14373 * server.h: Include version.h.
14374 (version, host_name): Don't declare.
14376 2013-06-12 Pedro Alves <palves@redhat.com>
14378 * linux-x86-low.c (linux_is_elf64): Delete global.
14379 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14380 with local linux_pid_exe_is_elf_64_file use.
14382 2013-06-11 Pedro Alves <palves@redhat.com>
14384 * linux-low.c (regset_disabled, disable_regset): New functions.
14385 (regsets_fetch_inferior_registers)
14386 (regsets_store_inferior_registers): Use them.
14387 (initialize_regsets_info); Don't allocate the disabled_regsets
14389 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14392 2013-06-11 Pedro Alves <palves@redhat.com>
14394 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14397 2013-06-11 Pedro Alves <palves@redhat.com>
14399 * linux-x86-low.c (initialize_low_arch): Call
14400 init_registers_x32_avx_linux.
14402 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14404 Fix compatibility with Android Bionic.
14405 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14408 2013-06-07 Pedro Alves <palves@redhat.com>
14411 * Makefile.in (OBS): Add tdesc.o.
14412 (IPA_OBJS): Add tdesc-ipa.o.
14413 (tdesc-ipa.o): New rule.
14414 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14416 * linux-low.c (new_inferior): Delete.
14417 (disabled_regsets, num_regsets): Delete.
14418 (linux_add_process): Adjust to set the new per-process
14420 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14421 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14422 was a stop. When calling arch_setup, switch the current inferior
14423 to the thread that got an event.
14424 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14425 (regsets_fetch_inferior_registers)
14426 (regsets_store_inferior_registers): New regsets_info parameter.
14428 (linux_register_in_regsets): New regs_info parameter. Adjust to
14430 (register_addr, fetch_register, store_register): New usrregs_info
14431 parameter. Adjust to use it.
14432 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14433 parameter regs_info. Adjust to use it.
14434 (linux_fetch_registers): Get the current inferior's regs_info, and
14436 (linux_store_registers): Ditto.
14437 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14438 (initialize_low): Don't initialize the target_regsets here. Call
14439 initialize_low_arch.
14440 * linux-low.h (target_regsets): Delete declaration.
14441 (struct regsets_info): New.
14442 (struct usrregs_info): New.
14443 (struct regs_info): New.
14444 (struct process_info_private) <new_inferior>: New field.
14445 (struct linux_target_ops): Delete the num_regs, regmap, and
14446 regset_bitmap fields. New field regs_info.
14447 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14448 * i387-fp.c (num_xmm_registers): Delete.
14449 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14450 calls to new interface.
14451 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14452 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14453 Infer the number of xmm registers from the regcache's target
14455 * i387-fp.h (num_xmm_registers): Delete.
14456 * inferiors.c (add_thread): Don't install the thread's regcache
14458 * proc-service.c (gregset_info): Fetch the current inferior's
14459 regs_info. Adjust to use it.
14460 * regcache.c: Include tdesc.h.
14461 (register_bytes, reg_defs, num_registers)
14462 (gdbserver_expedite_regs): Delete.
14463 (get_thread_regcache): If the thread doesn't have a regcache yet,
14464 create one, instead of aborting gdbserver.
14465 (regcache_invalidate_one): Rename to ...
14466 (regcache_invalidate_thread): ... this.
14467 (regcache_invalidate_one): New.
14468 (regcache_invalidate): Only invalidate registers of the current
14470 (init_register_cache): Add target_desc parameter, and use it.
14471 (new_register_cache): Ditto. Assert the target description has a
14472 non zero registers_size.
14473 (regcache_cpy): Add assertions. Adjust.
14474 (realloc_register_cache, set_register_cache): Delete.
14475 (registers_to_string, registers_from_string): Adjust.
14476 (find_register_by_name, find_regno, find_register_by_number)
14477 (register_cache_size): Add target_desc parameter, and use it.
14478 (free_register_cache_thread, free_register_cache_thread_one)
14479 (regcache_release, register_cache_size): New.
14480 (register_size): Add target_desc parameter, and use it.
14481 (register_data, supply_register, supply_register_zeroed)
14482 (supply_regblock, supply_register_by_name, collect_register)
14483 (collect_register_as_string, collect_register_by_name): Adjust.
14484 * regcache.h (struct target_desc): Forward declare.
14485 (struct regcache) <tdesc>: New field.
14486 (init_register_cache, new_register_cache): Add target_desc
14488 (regcache_invalidate_thread): Declare.
14489 (regcache_invalidate_one): Delete declaration.
14490 (regcache_release): Declare.
14491 (find_register_by_number, register_cache_size, register_size)
14492 (find_regno): Add target_desc parameter.
14493 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14495 * remote-utils.c: Include tdesc.h.
14496 (outreg, prepare_resume_reply): Adjust.
14497 * server.c: Include tdesc.h.
14498 (gdbserver_xmltarget): Delete declaration.
14499 (get_features_xml, process_serial_event): Adjust.
14500 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14502 (struct process_info) <tdesc>: New field.
14503 (ipa_tdesc): Declare.
14504 * tdesc.c: New file.
14505 * tdesc.h: New file.
14506 * tracepoint.c: Include tdesc.h.
14507 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14508 (get_context_regcache): Adjust to pass ipa_tdesc down.
14509 (do_action_at_tracepoint): Adjust to get the register cache size
14510 from the context regcache's description.
14511 (traceframe_walk_blocks): Adjust to get the register cache size
14512 from the current trace frame's description.
14513 (traceframe_get_pc): Adjust to get current trace frame's
14514 description and pass it down.
14515 (gdb_collect): Adjust to get the register cache size from the
14517 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14518 (gdbserver_xmltarget): Delete.
14519 (initialize_low_tracepoint): Set the ipa's target description.
14520 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14521 (initialize_low_tracepoint): Set the ipa's target description.
14522 * linux-x86-low.c: Include tdesc.h.
14523 [__x86_64__] (is_64bit_tdesc): New.
14524 (ps_get_thread_area, x86_get_thread_area): Use it.
14525 (i386_cannot_store_register): Rename to ...
14526 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14527 (i386_cannot_fetch_register): Rename to ...
14528 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14529 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14531 (target_regsets): Rename to ...
14532 (x86_regsets): ... this.
14533 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14535 (x86_siginfo_fixup): Use is_64bit_tdesc.
14536 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14537 (tdesc_x32_avx_linux, tdesc_x32_linux)
14538 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14540 (x86_linux_update_xmltarget): Delete.
14541 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14542 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14543 (AMD64_LINUX_USER64_CS): New.
14544 (x86_linux_read_description): New, based on
14545 x86_linux_update_xmltarget.
14546 (same_process_callback): New.
14547 (x86_arch_setup_process_callback): New.
14548 (x86_linux_update_xmltarget): New.
14549 (x86_regsets_info): New.
14550 (amd64_linux_regs_info): New.
14551 (i386_linux_usrregs_info): New.
14552 (i386_linux_regs_info): New.
14553 (x86_linux_regs_info): New.
14554 (x86_arch_setup): Reimplement.
14555 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14556 (x86_emit_ops): Ditto.
14557 (the_low_target): Adjust. Install x86_linux_regs_info,
14558 x86_cannot_fetch_register, and x86_cannot_store_register.
14559 (initialize_low_arch): New.
14560 * linux-ia64-low.c (tdesc_ia64): Declare.
14561 (ia64_fetch_register): Adjust.
14562 (ia64_usrregs_info, regs_info): New globals.
14563 (ia64_regs_info): New function.
14564 (the_low_target): Adjust.
14565 (initialize_low_arch): New function.
14566 * linux-sparc-low.c (tdesc_sparc64): Declare.
14567 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14569 (sparc_arch_setup): New function.
14570 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14571 (the_low_target): Adjust.
14572 (initialize_low_arch): New function.
14573 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14574 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14575 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14576 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14577 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14578 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14579 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14580 (tdesc_powerpc_isa205_vsx64l): Declare.
14581 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14582 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14583 (ppc_set_pc, ppc_get_hwcap): Adjust.
14584 (ppc_usrregs_info): Forward declare.
14585 (!__powerpc64__) ppc_regmap_adjusted: New global.
14586 (ppc_arch_setup): Adjust to the current process'es target
14588 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14589 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14590 (ppc_store_evrregset): Adjust.
14591 (target_regsets): Rename to ...
14592 (ppc_regsets): ... this, and make static.
14593 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14594 (ppc_regs_info): New function.
14595 (the_low_target): Adjust.
14596 (initialize_low_arch): New function.
14597 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14598 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14599 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14600 (tdesc_s390x_linux64v2): Declare.
14601 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14602 (s390_fill_gregset, s390_store_last_break): Adjust.
14603 (target_regsets): Rename to ...
14604 (s390_regsets): ... this, and make static.
14605 (s390_get_pc, s390_set_pc): Adjust.
14606 (s390_get_hwcap): New target_desc parameter, and use it.
14607 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14608 (s390_arch_setup): Adjust to set the current process'es target
14609 description. Don't adjust the regmap.
14610 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14611 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14612 (regs_info_3264): New globals.
14613 (s390_regs_info): New function.
14614 (the_low_target): Adjust.
14615 (initialize_low_arch): New function.
14616 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14617 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14618 [__mips64] (init_registers_mips_linux)
14619 (init_registers_mips_dsp_linux): Delete defines.
14620 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14621 (have_dsp): New global.
14622 (mips_read_description): New, based on mips_arch_setup.
14623 (mips_arch_setup): Reimplement.
14624 (get_usrregs_info): New function.
14625 (mips_cannot_fetch_register, mips_cannot_store_register)
14626 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14627 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14628 (target_regsets): Rename to ...
14629 (mips_regsets): ... this, and make static.
14630 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14631 (dsp_regs_info, regs_info): New globals.
14632 (mips_regs_info): New function.
14633 (the_low_target): Adjust.
14634 (initialize_low_arch): New function.
14635 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14636 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14638 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14639 (arm_read_description): New, with bits factored from
14641 (arm_arch_setup): Reimplement.
14642 (target_regsets): Rename to ...
14643 (arm_regsets): ... this, and make static.
14644 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14645 (arm_regs_info): New function.
14646 (the_low_target): Adjust.
14647 (initialize_low_arch): New function.
14648 * linux-m68k-low.c (tdesc_m68k): Declare.
14649 (target_regsets): Rename to ...
14650 (m68k_regsets): ... this, and make static.
14651 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14652 (m68k_regs_info): New function.
14653 (m68k_arch_setup): New function.
14654 (the_low_target): Adjust.
14655 (initialize_low_arch): New function.
14656 * linux-sh-low.c (tdesc_sharch): Declare.
14657 (target_regsets): Rename to ...
14658 (sh_regsets): ... this, and make static.
14659 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14660 (sh_regs_info, sh_arch_setup): New functions.
14661 (the_low_target): Adjust.
14662 (initialize_low_arch): New function.
14663 * linux-bfin-low.c (tdesc_bfin): Declare.
14664 (bfin_arch_setup): New function.
14665 (bfin_usrregs_info, regs_info): New globals.
14666 (bfin_regs_info): New function.
14667 (the_low_target): Adjust.
14668 (initialize_low_arch): New function.
14669 * linux-cris-low.c (tdesc_cris): Declare.
14670 (cris_arch_setup): New function.
14671 (cris_usrregs_info, regs_info): New globals.
14672 (cris_regs_info): New function.
14673 (the_low_target): Adjust.
14674 (initialize_low_arch): New function.
14675 * linux-cris-low.c (tdesc_crisv32): Declare.
14676 (cris_arch_setup): New function.
14677 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14678 (cris_regs_info): New function.
14679 (the_low_target): Adjust.
14680 (initialize_low_arch): New function.
14681 * linux-m32r-low.c (tdesc_m32r): Declare.
14682 (m32r_arch_setup): New function.
14683 (m32r_usrregs_info, regs_info): New globals.
14684 (m32r_regs_info): Adjust.
14685 (initialize_low_arch): New function.
14686 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14687 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14688 (tic6x_usrregs_info): Forward declare.
14689 (tic6x_read_description): New function, based on ...
14690 (tic6x_arch_setup): ... this. Reimplement.
14691 (target_regsets): Rename to ...
14692 (tic6x_regsets): ... this, and make static.
14693 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14694 (tic6x_regs_info): New function.
14695 (the_low_target): Adjust.
14696 (initialize_low_arch): New function.
14697 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14698 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14699 (target_regsets): Rename to ...
14700 (xtensa_regsets): ... this, and make static.
14701 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14703 (xtensa_arch_setup, xtensa_regs_info): New functions.
14704 (the_low_target): Adjust.
14705 (initialize_low_arch): New function.
14706 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14707 (nios2_arch_setup): Set the current process'es tdesc.
14708 (target_regsets): Rename to ...
14709 (nios2_regsets): ... this.
14710 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14711 (nios2_regs_info): New function.
14712 (the_low_target): Adjust.
14713 (initialize_low_arch): New function.
14714 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14715 (aarch64_arch_setup): Set the current process'es tdesc.
14716 (target_regsets): Rename to ...
14717 (aarch64_regsets): ... this.
14718 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14719 (aarch64_regs_info): New function.
14720 (the_low_target): Adjust.
14721 (initialize_low_arch): New function.
14722 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14724 (target_regsets): Rename to ...
14725 (tile_regsets): ... this.
14726 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14727 (tile_regs_info): New function.
14728 (tile_arch_setup): Set the current process'es tdesc.
14729 (the_low_target): Adjust.
14730 (initialize_low_arch): New function.
14731 * spu-low.c (tdesc_spu): Declare.
14732 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14733 * win32-arm-low.c (tdesc_arm): Declare.
14734 (arm_arch_setup): New function.
14735 (the_low_target): Install arm_arch_setup instead of
14736 init_registers_arm.
14737 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14738 (init_windows_x86): Rename to ...
14739 (i386_arch_setup): ... this. Set `win32_tdesc'.
14740 (the_low_target): Adjust.
14741 * win32-low.c (win32_tdesc): New global.
14742 (child_add_thread): Don't create the thread cache here.
14743 (do_initial_child_stuff): Set the new process'es tdesc.
14744 * win32-low.h (struct target_desc): Forward declare.
14745 (win32_tdesc): Declare.
14746 * lynx-i386-low.c (tdesc_i386): Declare global.
14747 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14748 * lynx-low.c (lynx_tdesc): New global.
14749 (lynx_add_process): Set the new process'es tdesc.
14750 * lynx-low.h (struct target_desc): Forward declare.
14751 (lynx_tdesc): Declare global.
14752 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14753 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14754 * nto-low.c (nto_tdesc): New global.
14755 (do_attach): Set the new process'es tdesc.
14756 * nto-low.h (struct target_desc): Forward declare.
14757 (nto_tdesc): Declare.
14758 * nto-x86-low.c (tdesc_i386): Declare.
14759 (nto_x86_arch_setup): Set `nto_tdesc'.
14761 2013-06-04 Gary Benson <gbenson@redhat.com>
14763 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14764 to qSupported response when appropriate.
14765 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14766 with nonzero-length annex.
14767 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14768 arguments supplied in annex.
14770 2013-05-31 Doug Evans <dje@google.com>
14773 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14774 64 bits in 64-cross-32 environment.
14776 2013-05-28 Pedro Alves <palves@redhat.com>
14778 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14779 (aarch64-without-fpu.c): Delete rule.
14780 * configure.srv (aarch64*-*-linux*): Remove references to
14781 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14782 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14785 2013-05-24 Pedro Alves <palves@redhat.com>
14787 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14788 instead of strchr/decode_address. Error if the range isn't split
14789 with a ','. Don't assume there's be a ':' in the action.
14791 2013-05-23 Yao Qi <yao@codesourcery.com>
14792 Pedro Alves <palves@redhat.com>
14794 * linux-low.c (lwp_in_step_range): New function.
14795 (linux_wait_1): If the thread was range stepping and stopped
14796 outside the stepping range, report the stop to GDB. Otherwise,
14797 continue stepping. Add range stepping debug output.
14798 (linux_set_resume_request): Copy the step range from the resume
14799 request to the lwp.
14800 (linux_supports_range_stepping): New.
14801 (linux_target_ops) <supports_range_stepping>: Set to
14802 linux_supports_range_stepping.
14803 * linux-low.h (struct linux_target_ops)
14804 <supports_range_stepping>: New field.
14805 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14806 * linux-x86-low.c (x86_supports_range_stepping): New.
14807 (the_low_target) <supports_range_stepping>: Set to
14808 x86_supports_range_stepping.
14809 * server.c (handle_v_cont): Handle 'r' action.
14810 (handle_v_requests): Append ";r" if the target supports range
14812 * target.h (struct thread_resume) <step_range_start,
14813 step_range_end>: New fields.
14814 (struct target_ops) <supports_range_stepping>:
14816 (target_supports_range_stepping): New macro.
14818 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14820 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14821 confusion in comment.
14823 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14825 * lynx-low.c (struct process_info_private): New type.
14826 (lynx_add_process): New function.
14827 (lynx_create_inferior, lynx_attach): Replace calls to
14828 add_process by calls to lynx_add_process.
14829 (lynx_resume): If PTID is null, then try using
14830 current_process()->private->last_wait_event_ptid.
14832 (lynx_clear_inferiors): Delete. The contents of that function
14833 has been inlined in lynx_mourn;
14834 (lynx_wait_1): Save the ptid in the process's private data.
14835 (lynx_mourn): Free the process' private data. Replace call
14836 to lynx_clear_inferiors by call to clear_inferiors.
14838 2013-05-17 Yao Qi <yao@codesourcery.com>
14840 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14843 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14845 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14846 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14847 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14848 PT_TEXT_END_ADDR guards. Update comments.
14849 (linux_target_op) <read_offsets>: Conditionally define to
14850 linux_read_offsets if the target is UCLIBC and if it defines
14851 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14853 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14854 Andrew Jenner <andrew@codesourcery.com>
14856 * Makefile.in (SFILES): Add linux-nios2-low.c.
14857 (clean): Add action to delete nios2-linux.c.
14858 (nios2-linux.c): New rule.
14859 * configure.srv: Add nios2*-*-linux*.
14860 * linux-nios2-low.c: New.
14862 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14864 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14866 2013-04-25 Hui Zhu <hui@codesourcery.com>
14869 * ax.c (ax_printf): Add fflush.
14871 2013-04-22 Tom Tromey <tromey@redhat.com>
14873 * Makefile.in (SFILES): Add filestuff.c.
14874 (OBS): Add filestuff.o.
14875 (filestuff.o): New target.
14876 * config.in, configure: Rebuild.
14877 * configure.ac: Check for fdwalk, pipe2.
14879 2013-04-17 Pedro Alves <palves@redhat.com>
14881 * configure.ac (USE_THREAD_DB): Delete variable.
14882 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14883 Don't AC_SUBST USE_THREAD_DB.
14884 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14885 * config.in, configure: Regenerate.
14887 2013-04-16 Pedro Alves <palves@redhat.com>
14889 * linux-low.h (struct lwp_info) <thread_known>: Move under
14890 the USE_THREAD_DB #ifdef.
14892 2013-04-16 Pedro Alves <palves@redhat.com>
14894 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14895 (linux-low.o): Delete rule.
14896 * linux-low.h: Always include "gdb_thread_db.h" instead of
14897 conditionally including thread_db.h.
14898 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14901 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14903 * Makefile.in (install-only): Fix make install regression.
14905 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14907 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14908 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14910 * gdbserver.1: Remove.
14912 2013-03-22 Pedro Alves <palves@redhat.com>
14914 * linux-low.c (handle_extended_wait): Don't call
14915 linux_enable_event_reporting.
14917 2013-03-15 Tony Theodore <tonyt@logyst.com>
14920 * Makefile.in (SHELL): Use @SHELL@.
14922 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14924 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14927 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14929 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14930 Remove extraneous NULL element.
14932 2013-03-13 Yao Qi <yao@codesourcery.com>
14934 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14935 'V' block in trace frame.
14937 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14939 * target.h (struct target_ops): Add btrace ops.
14940 (target_supports_btrace): New macro.
14941 (target_enable_btrace): New macro.
14942 (target_disable_btrace): New macro.
14943 (target_read_btrace): New macro.
14944 * gdbthread.h (struct thread_info): Add btrace field.
14945 * server.c: Include btrace-common.h.
14946 (handle_btrace_general_set): New function.
14947 (handle_btrace_enable): New function.
14948 (handle_btrace_disable): New function.
14949 (handle_general_set): Call handle_btrace_general_set.
14950 (handle_qxfer_btrace): New function.
14951 (struct qxfer qxfer_packets[]): Add btrace entry.
14952 * inferiors.c (remove_thread): Disable btrace.
14953 * linux-low: Include linux-btrace.h.
14954 (linux_low_enable_btrace): New function.
14955 (linux_low_read_btrace): New function.
14956 (linux_target_ops): Add btrace ops.
14957 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14958 Add srv_linux_btrace=yes.
14959 (x86_64-*-linux*): Add linux-btrace.o.
14960 Add srv_linux_btrace=yes.
14961 * configure.ac: Define HAVE_LINUX_BTRACE.
14962 * config.in: Regenerated.
14963 * configure: Regenerated.
14965 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14967 * server.c (handle_qxfer): Preserve error message if -3 is
14969 (qxfer): Document the -3 return value.
14971 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14973 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14974 (linux_btrace_h): New variable.
14975 (linux-btrace.o): New rule.
14977 2013-03-08 Stan Shebs <stan@codesourcery.com>
14978 Hafiz Abid Qadeer <abidh@codesourcery.com>
14980 * tracepoint.c (trace_buffer_size): New global.
14981 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14982 (init_trace_buffer): Change to one-argument function. Allocate
14983 trace buffer memory.
14984 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14985 handle QTBuffer:size packet.
14986 (cmd_bigqtbuffer_size): New function.
14987 (initialize_tracepoint): Call init_trace_buffer with
14988 DEFAULT_TRACE_BUFFER_SIZE.
14989 * server.c (handle_query): Add QTBuffer:size in the
14992 2013-03-07 Yao Qi <yao@codesourcery.com>
14994 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14995 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14997 (cmd_qtsp): Adjust condition. Do post increment.
14998 Set cur_action and cur_step_action back to 0.
15000 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15003 * linux-low.c (linux_write_memory): Return early success if LEN is
15006 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15008 * configure.srv: Add x86_64-*-cygwin* as target.
15010 2013-02-28 Tom Tromey <tromey@redhat.com>
15012 * configure.ac: Invoke AC_SYS_LARGEFILE.
15013 * configure, config.in: Rebuild.
15015 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15017 * win32-low.c: Throughout, fix format strings and casts of
15018 printf-like functions to avoid type related warnings on all
15020 (get_child_debug_event): Print dwDebugEventCode as hex since
15021 that's how it's usually documented.
15023 2013-02-28 Yao Qi <yao@codesourcery.com>
15025 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15028 2013-02-27 Jiong Wang <jiwang@tilera.com>
15030 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15031 (reg-tilegx32.c): New rule.
15032 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15033 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15034 different register info initializer according to elf class.
15035 (init_registers_tilgx32): New function. The tilegx32 register info
15037 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15038 (tile_store_gregset): Likewise.
15040 2013-02-27 Yao Qi <yao@codesourcery.com>
15042 * server.c (process_point_options): Print debug message when
15043 debug_threads is true.
15045 2013-02-26 Yao Qi <yao@codesourcery.com>
15047 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15049 2013-02-19 Pedro Alves <palves@redhat.com>
15050 Kai Tietz <ktietz@redhat.com>
15054 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15055 instead of strtoul to extract address from packet.
15056 (process_serial_event) <'z'>: Likewise.
15058 2013-02-18 Yao Qi <yao@codesourcery.com>
15060 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15062 2013-02-14 Pedro Alves <palves@redhat.com>
15066 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15067 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15069 2013-02-14 Pedro Alves <palves@redhat.com>
15071 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15073 2013-02-14 Pedro Alves <palves@redhat.com>
15075 * tracepoint.c (save_string): Delete.
15076 (add_tracepoint_action): Use savestring instead of save_string.
15078 2013-02-12 Pedro Alves <palves@redhat.com>
15080 * linux-xtensa-low.c: Ditto.
15081 * xtensa-xtregs.c: Ditto.
15083 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15085 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15088 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15090 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15091 aarch64_num_wp_regs and aarch64_num_bp_regs to
15092 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15094 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15096 * linux-aarch64-low.c (ps_get_thread_area): Replace
15097 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15099 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15100 Marcus Shawcroft <marcus.shawcroft@arm.com>
15101 Nigel Stephens <nigel.stephens@arm.com>
15102 Yufeng Zhang <yufeng.zhang@arm.com>
15104 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15105 (aarch64.c, aarch64-without-fpu.c): New targets.
15106 * configure.srv (aarch64*-*-linux*): New.
15107 * linux-aarch64-low.c: New file.
15109 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15111 * linux-low.c (handle_extended_wait, linux_create_inferior)
15112 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15113 (dequeue_one_deferred_signal, linux_resume_one_thread)
15114 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15115 (linux_tracefork_grandchild, linux_test_for_tracefork)
15116 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15117 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15118 where the argument is 0.
15120 2013-01-25 Yao Qi <yao@codesourcery.com>
15122 * event-loop.c: Include "queue.h".
15123 (gdb_event_p): New typedef.
15124 (struct gdb_event) <next_event>: Remove.
15125 (event_queue): Change to QUEUE(gdb_event_p).
15126 (async_queue_event): Remove.
15127 (gdb_event_xfree): New.
15128 (initialize_event_loop): New.
15129 (process_event): Use API from QUEUE.
15130 (wait_for_event): Likewise.
15131 * server.c (main): Call initialize_event_loop.
15132 * server.h (initialize_event_loop): Declare.
15134 2013-01-18 Yao Qi <yao@codesourcery.com>
15136 * ax.h (struct eval_agent_expr_context): New.
15137 (gdb_eval_agent_expr): Update declaration.
15138 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15139 TFRAME. Add new argument CTX.
15140 * server.h (struct eval_agent_expr_context): Declare.
15141 (agent_mem_read, agent_tsv_read): Update declaration.
15142 (agent_mem_read_string): Likewise.
15143 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15144 (add_traceframe_block): Add new argument TPOINT.
15145 Increase TPOINT->traceframe_usage.
15146 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15147 eval_tracepoint_agent_expr.
15148 (condition_true_at_tracepoint): Likewise.
15149 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15150 (agent_mem_read_string, agent_tsv_read): Likewise.
15152 2013-01-16 Yao Qi <yao@codesourcery.com>
15154 * linux-low.c (linux_resume_one_lwp): Don't check
15155 'lwp->bp_reinsert != 0'.
15157 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15158 Pedro Alves <palves@redhat.com>
15160 * lynx-low.c (ptrace_request_to_str): Define a temporary
15161 macro and use it to simplify this function's implementation.
15163 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15165 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15168 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15170 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15172 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15174 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15176 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15178 * lynx-low.c (lynx_resume): Use the resume_info parameter
15179 to determine the ptid for the lynx_ptrace call, unless
15180 it is equal to minus_one_ptid, in which case we use the
15181 ptid of the current_inferior.
15182 (lynx_wait_1): After having received a thread create/exit
15183 event, resume the inferior's execution using the signaling
15184 thread's ptid, rather than the old ptid.
15186 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15188 * lynx-low.c (lynx_resume): Delete variable ret.
15190 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15192 * gdbreplay.c (gdbreplay_version): Update copyright year.
15193 * server.c (gdbserver_version): Likewise.
15195 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15197 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15200 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15202 * lynx-low.c (ptrace_request_to_str): Add handling for
15203 PTRACE_GETTRACESIG.
15205 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15207 * lynx-low.c (lynx_attach): Delete variable new_process.
15209 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15211 * lynx-low.c (lynx_create_inferior): Delete variable
15214 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15216 * lynx-low.c (ptrace_request_to_str): Do not handle
15217 PTRACE_GETTHREADLIST if this macro does not exist.
15219 2012-12-15 Yao Qi <yao@codesourcery.com>
15221 * Makefile.in (OBS): Add notif.o.
15222 * notif.c, notif.h: New.
15223 * server.c: Include "notif.h".
15224 (struct vstop_notif) <next>: Remove.
15226 (queue_stop_reply): Update.
15227 (push_event, send_next_stop_reply): Remove.
15228 (discard_queued_stop_replies): Update.
15229 (notif_stop): New variable.
15230 (handle_v_stopped): Remove.
15231 (handle_v_requests): Don't call handle_v_stopped. Call
15232 handle_ack_notif instead.
15233 (queue_stop_reply_callback): Call notif_event_enque instead
15234 of queue_stop_reply.
15235 (handle_status): Don't call send_next_stop_reply, call
15236 notif_write_event instead.
15237 (kill_inferior_callback): Likewise.
15238 (detach_or_kill_inferior_callback): Likewise.
15239 (main): Call initialize_notif.
15240 (process_serial_event): Call QUEUE_is_empty.
15241 (handle_target_event): Call notif_push instead of push event.
15242 * server.h (push_event): Remove declaration.
15244 2012-12-10 Tom Tromey <tromey@redhat.com>
15246 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15247 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15250 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15251 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15252 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15253 (amd64-linux-ipa.o, ax.o): Rewrite.
15254 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15255 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15256 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15257 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15258 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15259 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15260 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15261 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15262 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15263 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15264 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15265 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15266 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15267 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15268 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15269 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15270 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15271 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15272 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15273 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15274 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15275 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15276 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15277 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15278 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15279 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15280 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15281 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15282 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15283 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15284 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15285 (reg-tilegx.o): Remove.
15286 (all_object_files): New macro.
15287 Include .deps files.
15288 * aclocal.m4, configure: Rebuild.
15289 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15290 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15291 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15293 2012-12-05 Tom Tromey <tromey@redhat.com>
15296 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15298 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15300 * configure.ac: Check for linux/perf_event.h.
15301 * config.in: Regenerated.
15302 * configure: Regenerated.
15304 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15306 * hostio.c (handle_readlink): Decrease buffer size
15307 parameter passed to readlink by one byte.
15309 2012-11-26 Yao Qi <yao@codesourcery.com>
15311 * configure.ac (build_warnings): Append '-Wempty-body'.
15312 * configure: Regenerated.
15313 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15316 2012-11-15 Pierre Muller <muller@sourceware.org>
15318 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15319 * config.in: Regenerate.
15320 * configure: Regenerate.
15321 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15322 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15323 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15324 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15326 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15327 instead of <sys/wait.h> header.
15328 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15330 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15332 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15333 (various make rules): Remove -DGDBSERVER
15335 2012-11-09 Yao Qi <yao@codesourcery.com>
15337 * spu-low.c (current_ptid): Move it to ..
15338 * gdbthread.h: ... here. New.
15339 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15340 * server.c (myresume, process_serial_event): Likewise.
15341 * thread-db.c (thread_db_find_new_threads): Likewise.
15342 * tracepoint.c (run_inferior_command): Likewise.
15344 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15346 * server.c (handle_search_memory_1): Include access length in
15349 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15351 * linux-crisv32-low.c: Fix compile errors.
15353 2012-09-04 Yao Qi <yao@codesourcery.com>
15355 * tracepoint.c (cmd_qtsv): Adjust debug message.
15356 Don't check CUR_TPOINT.
15358 2012-08-28 Yao Qi <yao@codesourcery.com>
15360 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15361 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15362 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15363 Remove declarations of xmalloc, xreallloc, xstrdup and
15365 * Makefile.in (libiberty_h): New.
15366 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15367 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15369 2012-08-23 Yao Qi <yao@codesourcery.com>
15371 * server.h: Remove declaration of 'xsnprintf'.
15373 2012-08-22 Keith Seitz <keiths@redhat.com>
15375 * server.h: Include build-gnulib-gbserver/config.h.
15376 * gdbreplay.c: Likewise.
15378 2012-08-08 Doug Evans <dje@google.com>
15380 * Makefile.in (SFILES): Add gdb_vecs.c.
15381 (OBS): Add gdb_vecs.o.
15382 (gdb_vecs_h, host_defs_h): New variables.
15383 (thread-db.o): Add $(gdb_vecs_h) dependency.
15384 (gdb_vecs.o): New rule.
15385 * thread-db.c: #include "gdb_vecs.h".
15386 (thread_db_load_search): Use a vector to iterate over path elements.
15387 Handle text appearing after "$pdir".
15389 * configure.ac: Add check for strstr.
15390 * config.in: Regenerate.
15391 * configure: Regenerate.
15393 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15395 * hostio.c (handle_pread): If pread fails, fall back to attempting
15397 (handle_pwrite): Likewise for pwrite.
15399 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15401 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15402 between unsupported TYPE and unimplementable ADDR/LEN combination.
15403 (arm_insert_point): Act on new return value.
15405 2012-07-31 Pedro Alves <palves@redhat.com>
15407 * server.c (process_point_options): Only skip tokens if we find
15408 one that is unrecognized. Don't treat 'X' specially while
15409 skipping unrecognized tokens.
15411 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15413 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15414 to 4-byte-align HW breakpoint addresses for Thumb.
15416 2012-07-27 Yao Qi <yao@codesourcery.com>
15420 * server.h: Declare gdb_agent_about_to_close.
15421 * target.c (kill_inferior): Include "agent.h".
15422 New. Send command 'kill'.
15423 * target.h (kill_inferior): Removed macro.
15424 * tracepoint.c (gdb_agent_about_to_close): New.
15425 (gdb_agent_helper_thread): Handle command 'close'.
15426 Wait endlessly until the inferior stops.
15427 Install gdb_agent_remove_socket to atexit hook.
15428 (agent_socket_name): New static variable.
15429 (gdb_agent_socket_init): Replace local variable 'name' with
15430 'agent_socket_name'.
15431 (gdb_agent_remove_socket): New.
15433 2012-07-27 Yao Qi <yao@codesourcery.com>
15435 * server.c (process_point_options): Stop at 'X' when parsing.
15437 2012-07-19 Michael Eager <eager@eagercon.com>
15439 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15441 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15442 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15443 hardware breakpoint.
15445 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15447 * gdbserver/linux-low.c (initialize_low): Call
15448 linux_ptrace_init_warnings.
15450 2012-07-02 Doug Evans <dje@google.com>
15452 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15455 2012-07-02 Stan Shebs <stan@codesourcery.com>
15457 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15458 (ax.o): Add it to build rule.
15460 (OBS): Add format.o.
15461 (IPA_OBS): Add format.o.
15462 * server.c (handle_query): Claim support for breakpoint commands.
15463 (process_point_options): Add command case.
15464 (process_serial_event): Leave running if there are printfs in
15466 * mem-break.h (any_persistent_commands): Declare.
15467 (add_breakpoint_commands): Declare.
15468 (gdb_no_commands_at_breakpoint): Declare.
15469 (run_breakpoint_commands): Declare.
15470 * mem-break.c (struct point_command_list): New struct.
15471 (struct breakpoint): New field command_list.
15472 (any_persistent_commands): New function.
15473 (add_commands_to_breakpoint): New function.
15474 (add_breakpoint_commands): New function.
15475 (gdb_no_commands_at_breakpoint): New function.
15476 (run_breakpoint_commands): New function.
15477 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15479 * ax.c: Include format.h.
15480 (ax_printf): New function.
15481 (gdb_eval_agent_expr): Add printf opcode.
15483 2012-06-13 Yao Qi <yao@codesourcery.com>
15485 * server.c (start_inferior): Remove duplicated writes to fields
15486 'last_resume_kind' and 'last_status' of 'current_inferior'.
15488 2012-06-12 Yao Qi <yao@codesourcery.com>
15489 Pedro Alves <palves@redhat.com>
15491 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15493 * server.c (handle_v_cont): Extend comment.
15495 2012-06-11 Yao Qi <yao@codesourcery.com>
15497 * linux-low.c (linux_attach): Add 'static'.
15499 2012-06-06 Yao Qi <yao@codesourcery.com>
15501 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15503 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15505 Fix gcc -flto compilation warning.
15506 * server.c (main): Make variable multi_mode and attach volatile.
15508 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15510 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15511 if the platform doesn't know about it.
15513 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15515 * Makefile.in (SFILES): Add linux-tile-low.c.
15516 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15517 * configure.srv: Handle tilegx-*-linux*.
15518 * linux-tile-low.c: New file.
15520 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15522 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15524 2012-05-24 Pedro Alves <palves@redhat.com>
15528 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15530 2012-05-24 Pedro Alves <palves@redhat.com>
15534 Replace target_signal with gdb_signal throughout.
15536 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15538 * linux-low.c (linux_store_registers): Avoid the copying sequence
15539 when no data has been retrieved by ptrace.
15541 2012-05-22 Will Deacon <will.deacon@arm.com>
15543 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15544 Include asm/ptrace.h.
15545 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15548 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15550 * linux-low.c (linux_store_registers): Don't re-retrieve data
15551 with ptrace that has already been obtained from /proc. Always
15552 copy any data retrieved with ptrace to the buffer supplied.
15554 2012-05-11 Yao Qi <yao@codesourcery.com>
15555 Pedro Alves <palves@redhat.com>
15557 * linux-low.c (enum stopping_threads_kind): New.
15558 (stopping_threads): Change type to `enum stopping_threads_kind'.
15559 (handle_extended_wait): If stopping and suspending threads, leave
15560 the new_lwp suspended too.
15561 (linux_wait_for_event): Adjust.
15562 (stop_all_lwps): Set `stopping_threads' to
15563 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15564 whether we're suspending threads or just stopping them. Assert no
15567 2012-04-29 Yao Qi <yao@codesourcery.com>
15569 * server.h: Move some code to ...
15570 * gdbthread.h: ... here. New.
15571 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15572 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15573 (nto-low.o, win32-low.o): Likewise.
15574 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15575 * regcache.c, remote-utils.c, server.c: Likewise.
15576 * target.c, tracepoint.c, win32-low.c: Likewise.
15578 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15580 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15581 (PTRACE_ARG4_TYPE): Likewise.
15582 (PTRACE_XFER_TYPE): Likewise.
15583 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15584 ptrace to PTRACE_ARG3_TYPE.
15585 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15586 (PTRACE_ARG4_TYPE): Likewise.
15587 (PTRACE_XFER_TYPE): Likewise.
15588 (linux_detach_one_lwp): Cast fourth argument of
15589 ptrace to long then PTRACE_ARG4_TYPE.
15590 (regsets_fetch_inferior_registers): Cast third argument of
15591 ptrace to long then PTRACE_ARG3_TYPE.
15592 (regsets_store_inferior_registers): Likewise.
15594 2012-04-20 Pedro Alves <palves@redhat.com>
15596 * configure: Regenerate.
15598 2012-04-19 Pedro Alves <palves@redhat.com>
15600 * Makefile.in (GNULIB_BUILDDIR): New.
15601 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15602 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15603 (all, install-only, uninstall, clean-info, all-lib, clean): No
15604 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15605 (maintainer-clean realclean distclean): Use subdir_do.
15607 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15608 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15609 * acinclude.m4: Include acx_configure_dir.m4.
15610 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15611 calls. Call AC_PROG_RANLIB. Configure gnulib using
15614 (GNULIB_STDINT_H): Adjust.
15615 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15616 * gdbreplay.c: Include build-gnulib/config.h.
15617 * server.h: Likewise.
15618 * aclocal.m4: Regenerate.
15619 * config.in: Regenerate.
15620 * configure: Regenerate.
15622 2012-04-19 Pedro Alves <palves@redhat.com>
15624 * Makefile.in (LIBGNU, INCGNU): Adjust.
15625 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15626 (all, install-only, uninstall, clean-info, all-lib, clean)
15627 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15628 * configure.ac: Adjust AC_OUTPUT output.
15629 * aclocal.m4: Regenerate.
15630 * configure: Regenerate.
15632 2012-04-19 Pedro Alves <palves@redhat.com>
15634 * Makefile.in (generated_files): New.
15635 (server_h): Remove the explicit dependency on config.h, and depend
15636 on $generated_files.
15638 2012-04-19 Pedro Alves <palves@redhat.com>
15640 * Makefile.in (INCGNU): Add -Ignulib.
15642 2012-04-19 Pedro Alves <palves@redhat.com>
15644 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15645 (INCGNU): ... this, and spell out -I here.
15646 (GNULIB_LIB): Rename to ...
15647 (LIBGNU): ... this.
15648 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15650 2012-04-19 Pedro Alves <palves@redhat.com>
15652 * config.in: Regenerate.
15654 2012-04-19 Pedro Alves <palves@redhat.com>
15656 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15657 * server.h (memmem): Remove declaration.
15658 * config.in: Regenerate.
15659 * configure: Regenerate.
15661 2012-04-19 Yao Qi <yao@codesourcery.com>
15663 * Makefile.in (SFILES): Add common/vec.c.
15667 2012-04-19 Yao Qi <yao@codesourcery.com>
15669 * remote-utils.c (prepare_resume_reply): Replace with macro
15670 target_core_of_thread.
15671 * server.c (handle_qxfer_threads_proper): Likewise.
15672 * target.h (traget_core_of_thread): New macro.
15674 2012-04-18 Pedro Alves <palves@redhat.com>
15676 * aclocal.m4: Regenerate.
15677 * configure: Regenerate.
15679 2012-04-16 Yao Qi <yao@codesourcery.com>
15681 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15682 duplicated on address.
15684 2012-04-16 Yao Qi <yao@codesourcery.com>
15686 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15687 (struct tracepoint_action_ops) <send>: New field.
15688 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15689 (agent_expr_send, x_tracepoint_action_send): New.
15690 (l_tracepoint_action_send): New.
15691 (cmd_qtdp): Download and install tracepoint
15692 according to `use_agent'.
15693 (run_inferior_command): Add one more parameter `len'.
15695 (tracepoint_send_agent): New.
15696 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15698 2012-04-16 Yao Qi <yao@codesourcery.com>
15700 * tracepoint.c (download_tracepoints): Moved to ...
15701 (cmd_qtstart): ... here.
15703 2012-04-14 Yao Qi <yao@codesourcery.com>
15705 * tracepoint.c: Include inttypes.h.
15706 (struct collect_memory_action): Use sized types.
15707 (struct tracepoint): Likewise.
15708 (cmd_qtdp, stop_tracing): Update print specifiers.
15709 (cmd_qtp, response_tracepoint): Likewise.
15710 (collect_data_at_tracepoint): Likewise.
15711 (collect_data_at_step): Likewise.
15713 2012-04-14 Yao Qi <yao@codesourcery.com>
15715 Import gnulib module inttypes.
15716 * aclocal.m4, config.in, configure: Regenerated.
15718 2012-04-14 Yao Qi <yao@codesourcery.com>
15720 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15721 Makefile and config.status at last.
15723 2012-04-13 Yao Qi <yao@codesourcery.com>
15725 * tracepoint.c: Include stdint.h unconditionally.
15727 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15729 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15730 on BFD_HAVE_SYS_PROCFS_TYPE.
15731 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15732 * configure: Regenerate.
15733 * config.in: Likewise.
15735 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15737 * Makefile.in (clean): Also remove x32.c x32-linux.c
15738 x32-avx.c x32-avx-linux.c.
15739 (x32.o): New target.
15741 (x32-linux.o): Likewise.
15742 (x32-linux.c): Likewise.
15743 (x32-avx.o): Likewise.
15744 (x32-avx.c): Likewise.
15745 (x32-avx-linux.o): Likewise.
15746 (x32-avx-linux.c): Likewise.
15748 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15749 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15750 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15751 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15752 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15753 i386/x32-avx-linux.xml.
15755 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15756 (init_registers_x32_avx_linux): Likwise.
15757 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15758 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15760 2012-04-13 Pedro Alves <palves@redhat.com>
15762 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15763 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15764 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15765 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15768 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15770 * linux-x86-low.c (compat_x32_clock_t): New.
15771 (compat_x32_siginfo_t): Likewise.
15772 (compat_x32_siginfo_from_siginfo): Likewise.
15773 (siginfo_from_compat_x32_siginfo): Likewise.
15774 (linux_is_elf64): Likewise.
15775 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15776 and siginfo_from_compat_x32_siginfo for x32.
15777 (x86_arch_setup): Set linux_is_elf64.
15779 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15782 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15784 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15785 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15786 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15787 compatible with process.
15789 2012-04-12 Yao Qi <yao@codesourcery.com>
15791 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15792 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15793 (install-only, install-info, clean): Handle sub dir gnulib.
15794 (all-lib, am--refresh): New targets.
15795 (memmem.o): Remove target.
15796 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15797 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15798 (AC_REPLACE_FUNCS): Remove memmem.
15799 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15800 (AC_OUTPUT): Generate Makefile in gnulib/.
15801 * aclocal.m4, config.in, configure: Regenerated.
15803 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15805 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15807 2012-04-05 Pedro Alves <palves@redhat.com>
15809 -Werror=strict-aliasing
15811 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15814 2012-04-04 Pedro Alves <palves@redhat.com>
15816 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15817 (sparc_store_gregset_from_stack, sparc_store_gregset)
15818 (sparc_breakpoint_at): Fix formatting.
15820 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15822 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15824 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15825 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15826 * config.in: Regenerate.
15827 * configure: Likewise.
15829 2012-03-29 Pedro Alves <palves@redhat.com>
15831 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15832 Correct ptrace arguments.
15834 2012-03-28 Pedro Alves <palves@redhat.com>
15836 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15837 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15838 (IA64_FR1_REGNUM): New defines.
15839 (ia64_fetch_register): New.
15840 (the_low_target): Install it.
15841 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15843 * linux-low.c (linux_fetch_registers): Try the
15844 the_low_target.fetch_register hook first.
15846 * linux-arm-low.c (the_low_target): Adjust.
15847 * linux-bfin-low.c (the_low_target): Adjust.
15848 * linux-cris-low.c (the_low_target): Adjust.
15849 * linux-crisv32-low.c (the_low_target): Adjust.
15850 * linux-m32r-low.c (the_low_target): Adjust.
15851 * linux-m68k-low.c (the_low_target): Adjust.
15852 * linux-mips-low.c (the_low_target): Adjust.
15853 * linux-ppc-low.c (the_low_target): Adjust.
15854 * linux-s390-low.c (the_low_target): Adjust.
15855 * linux-sh-low.c (the_low_target): Adjust.
15856 * linux-sparc-low.c (the_low_target): Adjust.
15857 * linux-tic6x-low.c (the_low_target): Adjust.
15858 * linux-x86-low.c (the_low_target): Adjust.
15859 * linux-xtensa-low.c (the_low_target): Adjust.
15861 2012-03-26 Pedro Alves <palves@redhat.com>
15863 * server.c (handle_qxfer_libraries): Don't bail early if
15864 the_target->qxfer_libraries_svr4 is not NULL.
15866 2012-03-26 Pedro Alves <palves@redhat.com>
15868 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15870 2012-03-23 Pedro Alves <palves@redhat.com>
15872 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15873 "library-list-svr4" element's start tag when the the DSO list is
15876 2012-03-23 Pedro Alves <palves@redhat.com>
15878 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15879 a variable whose type size is the same as the inferior's pointer
15882 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15884 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15886 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15887 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15888 * linux-low.h: Include <signal.h>.
15889 (struct siginfo): Remove forward declaration.
15890 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15893 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15895 * .gitignore: Ignore more files.
15897 2012-03-19 Pedro Alves <palves@redhat.com>
15898 Jan Kratochvil <jan.kratochvil@redhat.com>
15900 * server.c (cont_thread, general_thread): Add describing comments.
15901 (start_inferior): Clear `cont_thread'.
15902 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15905 2012-03-15 Yao Qi <yao@codesourcery.com>
15907 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15909 (cmd_qtdp): ... here.
15911 2012-03-15 Yao Qi <yao@codesourcery.com>
15913 * tracepoint.c (struct tracepoint_action_ops): New.
15914 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15915 (m_tracepoint_action_download): New.
15916 (r_tracepoint_action_download): New.
15917 (x_tracepoint_action_download): New.
15918 (l_tracepoint_action_download): New.
15919 (add_tracepoint_action): Install `action->ops' according type.
15920 (download_tracepoint_1): Move code `download' function pointer
15921 of various tracepoint_action_ops.
15923 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15925 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15926 linux_ptrace_attach_warnings.
15928 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15930 * Makefile.in (linux-ptrace.o): New.
15931 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15932 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15933 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15934 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15935 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15937 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15939 2012-03-08 Yao Qi <yao@codesourcery.com>
15940 Pedro Alves <palves@redhat.com>
15942 Fix PR server/13392.
15943 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15944 offset of JMP insn.
15945 * tracepoint.c (remove_tracepoint): New.
15946 (cmd_qtdp): Call remove_tracepoint when failed to install.
15948 2012-03-07 Pedro Alves <palves@redhat.com>
15950 * linux-low.c (get_detach_signal): New.
15951 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15952 Pass on pending signals to PTRACE_DETACH. Check the result of the
15954 * server.c (program_signals, program_signals_p): New.
15955 (handle_general_set): Handle QProgramSignals.
15956 * server.h (program_signals, program_signals_p): Declare.
15958 2012-03-05 Pedro Alves <palves@redhat.com>
15959 Jan Kratochvil <jan.kratochvil@redhat.com>
15961 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15964 2012-03-03 Yao Qi <yao@codesourcery.com>
15966 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15967 agent_look_up_symbols.
15969 2012-03-03 Yao Qi <yao@codesourcery.com>
15971 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15972 (linux-x86-low.o): Likewise.
15973 * server.h: Remove in_process_agent_loaded.
15974 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15978 2012-03-03 Yao Qi <yao@codesourcery.com>
15980 * tracepoint.c (gdb_agent_capability): New global.
15981 (in_process_agent_loaded_ust): Renamed to
15982 `in_process_agent_supports_ust'.
15984 (in_process_agent_supports_ust): Call agent_capability_check.
15985 (clear_installed_tracepoints): Assert that agent supports
15988 2012-03-03 Yao Qi <yao@codesourcery.com>
15990 * linux-low.c (linux_supports_agent): New.
15991 (linux_target_ops): Initialize field `supports_agent' with
15992 linux_supports_agent.
15993 * target.h (struct target_ops) <supports_agent>: New.
15994 (target_supports_agent): New macro.
15995 * server.c (handle_general_set): Handle packet 'QAgent'.
15996 (handle_query): Send `QAgent+'.
15997 * Makefile.in (server.o): Depends on agent.h.
15999 2012-03-03 Yao Qi <yao@codesourcery.com>
16001 * Makefile.in (OBS): Add agent.o.
16002 Add new rule for agent.o.
16003 Track dependence of tracepoint.c on agent.h.
16004 * tracepoint.c (run_inferior_command_1):
16005 (run_inferior_command): Call agent_run_command.
16006 (gdb_ust_connect_sync_socket): Deleted. Move it to
16008 (resume_thread, stop_thread): Likewise.
16009 (gdb_ust_socket_init): Renamed to ...
16010 (gdb_agent_socket_init): ... New.
16011 (gdb_ust_thread): Renamed to ...
16012 (gdb_agent_helper_thread): ... New.
16013 (gdb_ust_init): Move some code to ...
16014 (gdb_agent_init): ... here. New.
16015 [HAVE_UST]: Call gdb_ust_init.
16016 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16017 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16018 * config.in, configure: Regenerated.
16020 2012-03-02 Pedro Alves <palves@redhat.com>
16022 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16023 * linux-low.c (struct simple_pid_list): New.
16024 (stopped_pids): New a struct simple_pid_list pointer.
16025 (add_to_pid_list, pull_pid_from_list): New.
16026 (handle_extended_wait): Don't assume the first signal new children
16027 report is SIGSTOP. Adjust call to pull_pid_from_list.
16028 (linux_wait_for_lwp): Adjust.
16030 2012-03-02 Yao Qi <yao@codesourcery.com>
16032 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16035 2012-03-02 Yao Qi <yao@codesourcery.com>
16037 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16038 `stop_pc' and `tpoint'. Update caller.
16040 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16042 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16043 * linux-low.c (use_linux_regsets): New macro.
16044 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16045 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16046 (linux_register_in_regsets): New function.
16047 (usr_fetch_inferior_registers): Skip registers covered by
16049 (usr_store_inferior_registers): Likewise.
16050 (usr_fetch_inferior_registers): New macro.
16051 (usr_store_inferior_registers): Likewise.
16052 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16053 (linux_store_registers): Likewise.
16054 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16056 (init_registers_mips64_dsp_linux): Likewise.
16057 (init_registers_mips_linux): New macro.
16058 (init_registers_mips_dsp_linux): Likewise.
16059 (mips_dsp_num_regs): Likewise.
16060 (DSP_BASE, DSP_CONTROL): New fallback macros.
16061 (mips_base_regs): New macro.
16062 (mips_regmap): Use it. Fix the size.
16063 (mips_dsp_regmap): New variable.
16064 (mips_dsp_regset_bitmap): Likewise.
16065 (mips_arch_setup): New function.
16066 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16068 (mips_cannot_store_register): Likewise.
16069 (the_low_target): Update .arch_setup, .num_regs and .regmap
16070 initializers. Add .regset_bitmap initializer.
16071 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16073 * linux-bfin-low.c (the_low_target): Likewise.
16074 * linux-cris-low.c (the_low_target): Likewise.
16075 * linux-crisv32-low.c (the_low_target): Likewise.
16076 * linux-ia64-low.c (the_low_target): Likewise.
16077 * linux-m32r-low.c (the_low_target): Likewise.
16078 * linux-m68k-low.c (the_low_target): Likewise.
16079 * linux-ppc-low.c (the_low_target): Likewise.
16080 * linux-s390-low.c (the_low_target): Likewise.
16081 * linux-sh-low.c (the_low_target): Likewise.
16082 * linux-sparc-low.c (the_low_target): Likewise.
16083 * linux-tic6x-low.c (the_low_target): Likewise.
16084 * linux-x86-low.c (the_low_target): Likewise.
16085 * linux-xtensa-low.c (the_low_target): Likewise.
16086 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16087 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16088 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16090 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16091 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16093 2012-02-29 Yao Qi <yao@codesourcery.com>
16094 Pedro Alves <palves@redhat.com>
16096 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16097 `step_over_finished' is true.
16099 2012-02-27 Pedro Alves <palves@redhat.com>
16101 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16102 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16104 2012-02-27 Pedro Alves <palves@redhat.com>
16107 * linux-low.c (pid_is_stopped): New.
16108 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16110 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16112 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16115 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16117 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16119 2012-02-24 Luis Machado <lgustavo@codesourcery>
16121 * server.c (handle_query): Advertise support for target-side
16122 breakpoint condition evaluation.
16123 (process_point_options): New function.
16124 (process_serial_event): When inserting a breakpoint, check for
16125 a target-side condition that should be evaluated.
16127 * mem-break.c: Include regcache.h and ax.h.
16128 (point_cond_list_t): New data structure.
16129 (breakpoint) <cond_list>: New field.
16130 (find_gdb_breakpoint_at): Make non-static.
16131 (delete_gdb_breakpoint_at): Clear any target-side
16133 (clear_gdb_breakpoint_conditions): New function.
16134 (add_condition_to_breakpoint): Likewise.
16135 (add_breakpoint_condition): Likewise.
16136 (gdb_condition_true_at_breakpoint): Likewise.
16137 (gdb_breakpoint_here): Return result directly instead
16138 of going through a local variable.
16140 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16141 (clear_gdb_breakpoint_conditions): Likewise.
16142 (add_breakpoint_condition): Likewise.
16143 (gdb_condition_true_at_breakpoint): Likewise.
16145 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16146 (need_step_over_p): Take target-side breakpoint condition into
16149 2012-02-24 Luis Machado <lgustavo@codesourcery>
16151 * server.h: Include tracepoint.h.
16152 (agent_mem_read, agent_get_trace_state_variable_value,
16153 agent_set_trace_state_variable_value,
16154 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16155 get_set_tsv_func_addr): New prototypes.
16157 * ax.h: New include file.
16158 * ax.c: New source file.
16160 * tracepoint.c: Include ax.h.
16161 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16162 agent_expr, eval_result_type): Move to ax.h.
16163 (parse_agent_expr): Rename to ...
16164 (gdb_parse_agent_expr): ... this, make it non-static and move
16166 (unparse_agent_expr) Rename to ...
16167 (gdb_unparse_agent_expr): ... this, make it non-static and move
16169 (eval_agent_expr): Rename to ...
16170 (eval_tracepoint_agent_expr): ... this.
16171 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16172 forward declarations.
16173 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16174 (agent_get_trace_state_variable_value): New function.
16175 (agent_set_trace_state_variable_value): New function.
16176 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16177 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16178 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16179 (condition_true_at_tracepoint): Likewise.
16180 (parse_agent_expr): Rename to ...
16181 (gdb_parse_agent_expr): ... this and move to ax.c.
16182 (unparse_agent_expr): Rename to ...
16183 (gdb_unparse_agent_expr): ... this and move to ax.c.
16184 (gdb_agent_op_name): Move to ax.c.
16185 (eval_agent_expr): Rename to ...
16186 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16188 (eval_tracepoint_agent_expr): New function.
16189 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16191 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16193 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16194 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16195 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16196 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16197 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16198 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16199 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16200 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16201 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16202 (compile_bytecodes): Remove forward declaration.
16203 (is_goto_target): Move to ax.c.
16204 (compile_bytecodes): Move to ax.c and call
16205 agent_get_trace_state_variable_value (...) and
16206 agent_set_trace_state_variable_value (...).
16208 * Makefile.in: Update ax.c and IPA dependencies.
16210 2012-02-24 Pedro Alves <palves@redhat.com>
16212 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16213 (cmd_bigqtbuffer_circular): ... this. Only handle
16214 'QTBuffer:circular:'.
16215 (handle_tracepoint_general_set): Adjust.
16217 2012-02-16 Yao Qi <yao@codesourcery.com>
16219 * inferiors.c: Move code to ...
16220 * dll.c: .... here. New.
16221 * server.h: Declare clear_dlls.
16222 * Makefile.in (SFILES): Add dll.c.
16226 2012-02-11 Yao Qi <yao@codesourcery.com>
16228 * server.c: (handle_monitor_command): Add a new parameter
16230 (handle_query): Update caller.
16232 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16234 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16235 * configure, config.in: Regenerate.
16236 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16239 2012-02-02 Pedro Alves <palves@redhat.com>
16241 Try SIGKILL first, then PTRACE_KILL.
16242 * linux-low.c (linux_kill_one_lwp): New.
16243 (linux_kill_one_lwp): Rename to ...
16244 (kill_one_lwp_callback): ... this. Use the new
16245 linux_kill_one_lwp.
16247 2012-02-02 Pedro Alves <palves@redhat.com>
16249 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16252 2012-01-27 Pedro Alves <palves@redhat.com>
16254 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16255 (elf_64_file_p): Make static.
16256 (linux_pid_exe_is_elf_64_file): New.
16257 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16258 Delete declarations.
16259 (linux_pid_exe_is_elf_64_file): Declare.
16260 * linux-x86-low.c (x86_arch_setup): Use
16261 linux_pid_exe_is_elf_64_file.
16263 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16265 * linux-low.c (linux_wait_for_event_1): Rename to ...
16266 (linux_wait_for_event): ... here and merge it with former
16267 linux_wait_for_event - new variable wait_ptid, use it.
16268 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16270 2012-01-23 Pedro Alves <palves@redhat.com>
16272 * server.c (main): Avoid yet another case of infinite loop while
16273 detaching/killing after a longjmp.
16275 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16278 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16280 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16282 * hostio.c (handle_readlink): New function.
16283 (handle_vFile): Call it to handle "vFile:readlink" packets.
16285 2012-01-20 Pedro Alves <palves@redhat.com>
16286 Ulrich Weigand <ulrich.weigand@linaro.org>
16288 * server.c (handle_v_requests): Only support vAttach and vRun to
16289 start multiple processes when in extended protocol mode.
16291 2012-01-17 Pedro Alves <palves@redhat.com>
16293 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16294 memalign plus mprotect to allocate the scratch buffer.
16296 2012-01-13 Pedro Alves <palves@redhat.com>
16298 * server.c (attach_inferior): Clear `cont_thread'.
16300 2012-01-13 Pedro Alves <palves@redhat.com>
16302 * server.c (main): Avoid infinite loop while detaching/killing
16305 2012-01-09 Doug Evans <dje@google.com>
16307 * server.c (start_inferior): Set last_ptid in --wrapper case.
16309 2012-01-06 Yao Qi <yao@codesourcery.com>
16311 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16313 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16315 2012-01-04 Yao Qi <yao@codesourcery.com>
16317 * tracepoint.c (cmd_qtdp): Print debug message
16318 for static tracepoint.
16320 2012-01-04 Yao Qi <yao@codesourcery.com>
16322 * tracepoint.c (trace_vdebug): Differentiate debug message
16323 between gdbserver and IPA.
16325 2012-01-03 Yao Qi <yao@codesourcery.com>
16327 * tracepoint.c (tracepoint_was_hit): Don't collect for
16330 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16332 * terminal.h: Reformat copyright header.
16334 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16336 * server.c (gdbserver_version): Update copyright year.
16337 * gdbreplay.c (gdbreplay_version): Likewise.
16339 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16341 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16344 2011-12-18 Hui Zhu <teawater@gmail.com>
16345 * linux-low.c (linux_create_inferior): Save return value to ret.
16347 2011-12-18 Hui Zhu <teawater@gmail.com>
16349 * linux-low.c (linux_create_inferior): Save return value to ret.
16351 2011-12-16 Doug Evans <dje@google.com>
16353 * linux-low.c (linux_create_inferior): If stdio connection,
16354 redirect stdin from /dev/null, stdout to stderr.
16355 * remote-utils.c (remote_is_stdio): New static global.
16356 (remote_connection_is_stdio): New function.
16357 (remote_prepare): Handle stdio connection.
16358 (remote_open): Ditto.
16359 (remote_close): Don't close stdin for stdio connections.
16360 (read_prim,write_prim): New functions. Replace all calls to
16361 read/write to these.
16362 * server.c (main): Watch for "-" argument. Move call to
16363 remote_prepare before start_inferior.
16364 * server.h (STDIO_CONNECTION_NAME): New macro.
16365 (remote_connection_is_stdio): Declare.
16367 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16368 in debugging output.
16370 2011-12-15 Yao Qi <yao@codesourcery.com>
16372 * tracepoint.c: Include sys/syscall.h.
16373 (gdb_ust_thread): Remove preprocessor conditional.
16375 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16377 * linux-low.c (linux_detach_one_lwp): Call
16378 the_low_target.prepare_to_resume before detaching.
16380 2011-12-14 Yao Qi <yao@codesourcery.com>
16382 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16385 2011-12-14 Yao Qi <yao@codesourcery.com>
16387 * i386-low.c (i386_low_stopped_data_address): Initialize local
16388 variable `control'.
16390 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16394 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16395 DR_CONTROL unless necessary. Extend comments.
16396 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16397 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16399 2011-12-13 Yao Qi <yao@codesourcery.com>
16401 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16403 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16405 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16407 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16408 Print new debug message for such case.
16410 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16412 Fix overlapping memcpy.
16413 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16414 the read_inferior_memory transfer.
16415 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16416 write_inferior_memory transfer.
16417 (set_fast_tracepoint_jump): New variable buf. Use it for the
16418 read_inferior_memory and write_inferior_memory transfers.
16419 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16420 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16421 Use it for the write_inferior_memory transfer.
16422 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16425 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16427 * linux-low.c (fetch_register, store_register): Make code
16428 consistent, fix formatting.
16430 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16432 * linux-low.c (usr_store_inferior_registers): Factor out code
16433 to handle individual registers into...
16434 (store_register): ... this new function.
16436 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16438 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16439 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16440 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16441 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16442 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16443 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16444 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16445 (srv_xmlfiles): Add new XML files.
16447 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16449 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16450 (init_registers_s390_linux32v1): Add prototype.
16451 (init_registers_s390_linux32v2): Likewise.
16452 (init_registers_s390_linux64v1): Likewise.
16453 (init_registers_s390_linux64v2): Likewise.
16454 (init_registers_s390x_linux64v1): Likewise.
16455 (init_registers_s390x_linux64v2): Likewise.
16456 (s390_num_regs): Increment to 52.
16457 (s390_regmap): Add orig_r2 register.
16458 (s390_num_regs_3264): Increment to 68.
16459 (s390_regmap_3264): Add orig_r2 register.
16460 (s390_collect_ptrace_register): Handle orig_r2 register.
16461 (s390_supply_ptrace_register): Likewise.
16462 (s390_fill_last_break): New function.
16463 (s390_store_last_break): Likewise.
16464 (s390_fill_system_call): New function.
16465 (s390_store_system_call): Likewise.
16466 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16468 (s390_check_regset): New function.
16469 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16470 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16471 Update target_regsets for available register sets.
16473 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16474 Jan Kratochvil <jan.kratochvil@redhat.com>
16476 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16477 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16479 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16480 * linux-low.h (struct process_info_private): New member r_debug.
16481 * server.c (handle_qxfer_libraries): Call
16482 the_target->qxfer_libraries_svr4.
16483 (handle_qxfer_libraries_svr4): New function.
16484 (qxfer_packets): New entry "libraries-svr4".
16485 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16486 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16487 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16488 PACKET_qXfer_libraries_svr4.
16490 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16492 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16493 PSW address/mask between 8-byte and 16-byte formats.
16494 (s390_supply_ptrace_register): Likewise.
16495 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16496 basic addressing mode bit.
16498 2011-11-24 Stan Shebs <stan@codesourcery.com>
16500 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16502 2011-11-17 Stan Shebs <stan@codesourcery.com>
16504 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16505 (tracing_start_time): New global.
16506 (tracing_stop_time): New global.
16507 (tracing_user_name): New global.
16508 (tracing_notes): New global.
16509 (tracing_stop_note): New global.
16510 (cmd_qtstart): Set traceframe_usage, start_time.
16511 (stop_tracing): Set stop_time.
16512 (cmd_qtstatus): Report additional status.
16513 (cmd_qtp): New function.
16514 (handle_tracepoint_query): Call it.
16515 (cmd_qtnotes): New function.
16516 (handle_tracepoint_general_set): Call it.
16517 (get_timestamp): Rename from tsv_get_timestamp.
16519 2011-11-14 Stan Shebs <stan@codesourcery.com>
16520 Kwok Cheung Yeung <kcy@codesourcery.com>
16522 * linux-x86-low.c (small_jump_insn): New.
16523 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16524 trampoline and error message, build a trampoline and issue a small
16525 jump instruction to it.
16526 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16527 trampoline and error message.
16528 (x86_get_min_fast_tracepoint_insn_len): New.
16529 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16530 * linux-low.h (struct linux_target_ops): Add arguments to
16531 install_fast_tracepoint_jump_pad operation, add new operation.
16532 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16534 (linux_get_min_fast_tracepoint_insn_len): New function.
16535 (linux_target_op): Add new operation.
16536 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16537 (gdb_trampoline_buffer_end): Ditto.
16538 (gdb_trampoline_buffer_error): Ditto.
16539 (struct ipa_sym_addresses): Add fields for new IPA variables.
16540 (symbol_list): Add entries for new IPA variables.
16541 (struct tracepoint): Add fields to hold the address range of the
16542 trampoline used by the tracepoint.
16543 (trampoline_buffer_head): New static variable.
16544 (trampoline_buffer_tail): Ditto.
16545 (claim_trampoline_space): New function.
16546 (have_fast_tracepoint_trampoline_buffer): New function.
16547 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16549 (install_fast_tracepoint): Ditto, also add error buffer argument.
16550 (cmd_qtminftpilen): New function.
16551 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16552 (fast_tracepoint_from_trampoline_address): New function.
16553 (fast_tracepoint_collecting): Handle trampoline as part of jump
16555 (set_trampoline_buffer_space): New function.
16556 (initialize_tracepoint): Initialize new IPA variables.
16557 * target.h (struct target_ops): Add arguments to
16558 install_fast_tracepoint_jump_pad operation, add new
16559 get_min_fast_tracepoint_insn_len operation.
16560 (target_get_min_fast_tracepoint_insn_len): New.
16561 (install_fast_tracepoint_jump_pad): Add arguments.
16562 * server.h (IPA_BUFSIZ): Define.
16563 * linux-i386-ipa.c: Include extra header files.
16564 (initialize_fast_tracepoint_trampoline_buffer): New function.
16565 (initialize_low_tracepoint): Call it.
16566 * server.h (set_trampoline_buffer_space): Declare.
16567 (claim_trampoline_space): Ditto.
16568 (have_fast_tracepoint_trampoline_buffer): Ditto.
16570 2011-11-14 Yao Qi <yao@codesourcery.com>
16572 * server.c (handle_query): Handle InstallInTrace for qSupported.
16573 * tracepoint.c (add_tracepoint): Sort list.
16574 (install_tracepoint, download_tracepoint): New.
16575 (cmd_qtdp): Call them to install and download tracepoints.
16576 (sort_tracepoints): Removed.
16577 (cmd_qtstart): Update.
16579 2011-11-14 Yao Qi <yao@codesourcery.com>
16581 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16582 * mem-break.h: Declare.
16583 * tracepoint.c (cmd_qtstart): Move some code to ...
16584 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16586 (download_tracepoints): Move some code to ...
16587 (download_tracepoint_1): ... here. New.
16589 2011-11-08 Yao Qi <yao@codesourcery.com>
16591 * remote-utils.c (relocate_instruction): A comment fix.
16593 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16595 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16596 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16597 dr_status_mirror and dr_control_mirror from debug_reg_state.
16598 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16599 (i386_initial_stuff): Remove use of deleted globals.
16600 (i386_get_thread_context, i386_set_thread_context,
16601 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16602 from debug_reg_state.
16604 2011-11-05 Yao Qi <yao@codesourcery.com>
16606 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16607 address as TPOINT's.
16609 2011-11-02 Stan Shebs <stan@codesourcery.com>
16611 * tracepoint.c (agent_mem_read_string): New function.
16612 (eval_agent_expr): Call it for tracenz.
16613 * server.c (handle_query): Report support for tracenz.
16615 2011-11-02 Yao Qi <yao@codesourcery.com>
16617 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16619 2011-11-02 Yao Qi <yao@codesourcery.com>
16621 * target.h: Fix a typo in comment.
16623 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16625 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16626 clobber the breakpoints' shadows with fast tracepoint jumps.
16627 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16628 * target.c (write_inferior_memory): Also pass MYADDR down to
16631 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16633 * configure.ac: Check support for personality routine.
16634 * configure: Regenerate.
16635 * config.in: Likewise.
16636 * linux-low.c: Include <sys/personality.h>.
16637 Define ADDR_NO_RANDOMIZE if necessary.
16638 (linux_create_inferior): Disable address space randomization when
16639 forking inferior, if requested.
16640 (linux_supports_disable_randomization): New function.
16641 (linux_target_ops): Install it.
16642 * server.h (disable_randomization): Declare.
16643 * server.c (disable_randomization): New global variable.
16644 (handle_general_set): Handle QDisableRandomization.
16645 (handle_query): Likewise for qSupported.
16646 (main): Support --disable-randomization and --no-disable-randomization
16647 command line arguments.
16648 * target.h (struct target_ops): Add supports_disable_randomization.
16649 (target_supports_disable_randomization): New macro.
16651 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16653 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16655 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16656 [!PT_GETDSBT] (target_loadmap): New definition.
16657 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16658 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16659 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16660 and PT_GETDSBT to LINUX_LOADMAP.
16661 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16662 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16664 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16666 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16667 (arm_linux_hwbp_cap): New static variable.
16668 (arm_linux_get_hwbp_cap): Replace by ...
16669 (arm_linux_init_hwbp_cap): ... this new function.
16670 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16671 (arm_linux_get_hw_watchpoint_count): Likewise.
16672 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16673 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16674 (arm_prepare_to_resume): Use perror_with_name instead of error.
16676 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16678 * linux-arm-low.c: Include <signal.h>.
16679 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16680 (struct arm_linux_hwbp_cap): New data type.
16681 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16682 (struct arm_linux_hw_breakpoint): New data type.
16683 (MAX_BPTS, MAX_WPTS): Define.
16684 (struct arch_process_info, struct arch_lwp_info): New data types.
16685 (arm_linux_get_hwbp_cap): New function.
16686 (arm_linux_get_hw_breakpoint_count): Likewise.
16687 (arm_linux_get_hw_watchpoint_count): Likewise.
16688 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16689 (arm_hwbp_control_initialize): Likewise.
16690 (arm_hwbp_control_is_enabled): Likewise.
16691 (arm_hwbp_control_is_initialized): Likewise.
16692 (arm_hwbp_control_disable): Likewise.
16693 (arm_linux_hw_breakpoint_equal): Likewise.
16694 (arm_linux_hw_point_initialize): Likewise.
16695 (struct update_registers_data): New data structure.
16696 (update_registers_callback: New function.
16697 (arm_insert_point): Likewise.
16698 (arm_remove_point): Likewise.
16699 (arm_stopped_by_watchpoint): Likewise.
16700 (arm_stopped_data_address): Likewise.
16701 (arm_new_process): Likewise.
16702 (arm_new_thread): Likewise.
16703 (arm_prepare_to_resume): Likewise.
16704 (the_low_target): Register arm_insert_point, arm_remove_point,
16705 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16706 arm_new_thread, and arm_prepare_to_resume.
16708 2011-09-15 Stan Shebs <stan@codesourcery.com>
16710 * server.h (struct emit_ops): Add compare-goto fields.
16711 * tracepoint.c (gdb_agent_op_sizes): New table.
16712 (emit_eq_goto): New function.
16713 (emit_ne_goto): New function.
16714 (emit_lt_goto): New function.
16715 (emit_le_goto): New function.
16716 (emit_gt_goto): New function.
16717 (emit_ge_goto): New function.
16718 (is_goto_target): New function.
16719 (compile_bytecodes): Recognize special cases of compare-goto
16720 combinations and call specialized emitters for them.
16721 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16722 (amd64_emit_ne_goto): New function.
16723 (amd64_emit_lt_goto): New function.
16724 (amd64_emit_le_goto): New function.
16725 (amd64_emit_gt_goto): New function.
16726 (amd64_emit_ge_goto): New function.
16727 (amd64_emit_ops): Add the new functions.
16728 (i386_emit_eq_goto): New function.
16729 (i386_emit_ne_goto): New function.
16730 (i386_emit_lt_goto): New function.
16731 (i386_emit_le_goto): New function.
16732 (i386_emit_gt_goto): New function.
16733 (i386_emit_ge_goto): New function.
16734 (i386_emit_ops): Add the new functions.
16736 2011-09-08 Stan Shebs <stan@codesourcery.com>
16738 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16739 (i386_emit_epilogue): Restore %ebx.
16741 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16743 * server.c (step_thread): Remove definition.
16744 (process_serial_event): Don't handle Hs.
16745 * server.h (step_thread): Remove declaration.
16746 * target.c (set_desired_inferior): Remove use of step_thread.
16748 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16750 * linux-low.c: Include linux-procfs.h.
16751 (linux_attach_lwp_1): Update comments.
16752 (linux_attach): Scan for existing threads when attaching to a
16753 process that is the tgid.
16754 * Makefile.in: Update dependencies.
16756 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16758 * configure.srv: Add linux-procfs.o dependencies.
16760 2011-08-14 Yao Qi <yao@codesourcery.com>
16762 * target.h (struct target_ops): Fix indent.
16763 * win32-low.c (win32_target_ops): Fix comment.
16765 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16766 Yao Qi <yao@codesourcery.com>
16768 * Makefile.in (clean): Remove tic6x-*.c files.
16769 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16770 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16771 (tic6x-c64xp-linux.c): Likewise.
16772 * configure.srv: Add support for tic6x-*-uclinux.
16773 * linux-tic6x-low.c: New.
16774 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16776 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16777 Yao Qi <yao@codesourcery.com>
16779 * target.h (struct target_ops): Add read_loadmap.
16780 * linux-low.c (struct target_loadseg): New type.
16781 (struct target_loadmap): New type.
16782 (linux_read_loadmap): New function.
16783 (linux_target_ops): Add linux_read_loadmap.
16784 * server.c (handle_query): Support qXfer:fdpic:read packet.
16785 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16788 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16790 * win32-low.c: Include <stdint.h>.
16792 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16794 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16795 to the inferior here.
16796 (i386_remove_aligned_watchpoint): Ditto.
16797 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16798 fit part of the watchpoint in the debug registers.
16799 (i386_update_inferior_debug_regs): New.
16800 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16801 registers, and only update the inferior on success.
16802 (i386_low_remove_watchpoint): Ditto.
16804 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16806 * linux-low.c (compare_ints, unique, list_threads, show_process,
16807 linux_core_of_thread): Delete.
16808 (linux_target_ops): Change linux_core_of_thread to
16809 linux_common_core_of_thread.
16810 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16811 * utils.c (malloc_failure): Change type of argument.
16812 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16813 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16814 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16815 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16816 (IPA_OBJS): Add common-utils-ipa.o.
16817 (ptid_h, linux_osdata_h): New macros.
16818 (server_h): Add common/common-utils.h, common/xml-utils.h,
16819 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16821 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16822 ptid.o, buffer.o): New rules.
16823 (linux-low.o): Add common/linux-osdata.h as a dependency.
16824 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16825 * configure.ac: Add AC_HEADER_DIRENT check.
16826 * config.in: Regenerate.
16827 * configure: Regenerate.
16828 * remote-utils.c (xml_escape_text): Delete.
16829 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16830 buffer_xml_printf): Move to common/buffer.c.
16831 * server.c (main): Remove call to initialize_inferiors.
16832 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16833 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16834 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16835 internal_error, gdb_assert, gdb_assert_fail): Delete.
16836 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16837 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16839 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16840 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16841 initialize_inferiors): Delete.
16843 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16845 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16848 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16850 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16852 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16854 2011-05-26 Yao Qi <yao@codesourcery.com>
16856 * Makefile.in (thread-db.o): Track dependence to
16857 common/gdb_thread_db.h.
16858 * thread-db.c: include gdb_thread_db.h from right place.
16860 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16862 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16863 __FILE__ and __LINE__ to internal_error.
16865 2011-05-13 Doug Evans <dje@google.com>
16867 * thread-db.c (try_thread_db_load_from_sdir): New function.
16868 (try_thread_db_load_from_dir): New function.
16869 (thread_db_load_search): Handle $sdir, ignore $pdir.
16870 Remove trying of system directories if search of
16871 libthread-db-search-path fails, that is now done via $sdir.
16873 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16875 * server.c (handle_query): Add EnableDisableTracepoints to the list
16876 of supported features.
16877 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16879 (cmd_qtenable_disable): New.
16880 (cmd_qtstart): Install tracepoints even if disabled.
16881 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16882 receiving a QTEnable or QTDisable packet.
16883 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16884 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16886 (gdb_probe): Skip data collection if static tracepoint is disabled.
16888 2011-05-10 Doug Evans <dje@google.com>
16890 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16892 2011-05-04 Doug Evans <dje@google.com>
16894 * linux-low.c (linux_join): Skip process lookup.
16895 * spu-low.c (spu_join): Ditto.
16896 * server.c (join_inferiors_callback): Delete.
16897 (process_serial_event): For 'D' packet (detach) call join_inferior
16900 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16902 * README: Don't mention xscale*-*-linux*.
16903 * configure.srv (xscale*-*-linux*): Don't handle target.
16905 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16907 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16909 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16910 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16911 (i386_emit_void_call_2): Likewise.
16913 2011-04-26 Yao Qi <yao@codesourcery.com>
16915 * linux-low.c: Move common macros to linux-ptrace.h.
16916 Include linux-ptrace.h.
16917 * Makefile.in (linux_ptrace_h): New.
16918 (linux-low.o): Depends on linux-ptrace.h.
16920 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16922 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16923 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16924 (remote_prepare): New function with most of the TCP code from ...
16925 (remote_open): ... here. Detect PORT here unconditionally. Move also
16926 setting transport_is_reliable.
16927 * server.c (run_once): New variable.
16928 (gdbserver_usage): Document it.
16929 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16930 the first run if RUN_ONCE.
16931 * server.h (run_once, remote_prepare): New declarations.
16933 2011-04-19 Tom Tromey <tromey@redhat.com>
16935 * win32-low.c (handle_load_dll): Remove duplicate "the".
16937 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16939 Remove support for old Cygwin 1.5 versions.
16940 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16941 function to avoid warning.
16942 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16945 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16947 * gdbserver/server.h (Macro _): Define it if not available.
16949 2011-03-14 Michael Snyder <msnyder@vmware.com>
16951 * hostio.c (handle_close): Remove unnecessary null test.
16953 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16955 * Makefile.in (maintainer-clean realclean distclean): Remove
16956 "make ... subdir_do" command.
16958 2011-03-10 Michael Snyder <msnyder@vmware.com>
16960 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16962 * server.c (handle_v_run): Free alloced buffer on early return.
16964 2011-03-09 Yao Qi <yao@codesourcery.com>
16967 2011-03-04 Yao Qi <yao@codesourcery.com>
16969 * Makefile.in: Remove GNU make feature --directory.
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-02-11 Yao Qi <yao@codesourcery.com>
16980 * configure.ac: Call AC_PROG_RANLIB.
16981 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16982 * configure: Regenerate.
16984 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16986 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16988 2011-03-06 Yao Qi <yao@codesourcery.com>
16990 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16992 2011-03-05 Yao Qi <yao@codesourcery.com>
16994 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16995 (subdir_do): New make target. Copied from gdb/Makefile.
16996 (maintainer-clean, realclean, distclean, clean): Call corresponding
16997 make targets in common/Makefile.
16999 2011-03-04 Yao Qi <yao@codesourcery.com>
17001 * Makefile.in: Remove GNU make feature --directory.
17003 2011-03-04 Michael Snyder <msnyder@vmware.com>
17005 * server.c (queue_stop_reply): Call xmalloc not malloc.
17007 2011-03-02 Michael Snyder <msnyder@vmware.com>
17009 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17011 2011-02-28 Michael Snyder <msnyder@vmware.com>
17013 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17014 (cmd_qtframe): Ditto.
17015 (cmd_qtbuffer): Ditto.
17016 (cmd_bigqtbuffer): Ditto.
17018 * utils.c (decimal2str): Initialize 'width' to nine, then
17019 don't mess with it.
17021 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17023 * hostio.c (require_data): Free *data, not data.
17025 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17027 * hostio.c (require_data): Use free, not xfree.
17029 2011-02-27 Michael Snyder <msnyder@vmware.com>
17031 * server.c (handle_query): Discard unused value.
17033 * hostio.c (require_data): Free malloc memory before returning
17036 2011-02-26 Michael Snyder <msnyder@vmware.com>
17038 * linux-low.c (list_threads): Call closedir for dirent.
17040 2011-02-27 Michael Snyder <msnyder@vmware.com>
17042 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17043 a case statement falls through.
17045 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17047 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17050 2011-02-26 Michael Snyder <msnyder@vmware.com>
17052 * utils.c (decimal2str): Eliminate dead code and dead param.
17053 (pulongest): Drop dead param from call to decimal2str.
17056 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17058 Revert the following patch (not approved yet):
17059 2011-02-21 Hui Zhu <teawater@gmail.com>
17060 * tracepoint.c (tp_printf): New function.
17061 (eval_agent_expr): Handle gdb_agent_op_printf.
17063 2011-02-21 Hui Zhu <teawater@gmail.com>
17065 * tracepoint.c (tp_printf): New function.
17066 (eval_agent_expr): Handle gdb_agent_op_printf.
17068 2011-02-18 Tom Tromey <tromey@redhat.com>
17070 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17071 (tracepoint.o): Likewise.
17072 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17073 (gdb_agent_op_names): Likewise.
17075 2011-02-18 Tom Tromey <tromey@redhat.com>
17077 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17078 gdb_agent_op_rot>: New constants.
17079 (gdb_agent_op_names): Add pick and roll.
17080 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17083 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17085 * aclocal.m4: Regenerated with aclocal-1.11.1.
17087 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17089 * server.c (handle_qxfer_traceframe_info): New.
17090 (qxfer_packets): Register "traceframe-info".
17091 (handle_query): Report support for qXfer:traceframe-info:read+.
17092 * tracepoint.c (match_blocktype): New.
17093 (traceframe_find_block_type): Rename to ...
17094 (traceframe_walk_blocks): ... this. Add callback filter argument,
17096 (traceframe_find_block_type): New, reimplemented on top of
17097 traceframe_walk_blocks.
17098 (build_traceframe_info_xml): New.
17099 (traceframe_read_info): New.
17100 * server.h (traceframe_read_info): Declare.
17102 2011-02-11 Yao Qi <yao@codesourcery.com>
17104 * configure.ac: Call AC_PROG_RANLIB.
17105 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17106 * configure: Regenerate.
17108 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17110 * server.c (gdb_read_memory): Change return semantics to allow
17112 (handle_search_memory_1): Adjust.
17113 (process_serial_event) <'m' packet>: Handle partial transfers.
17114 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17116 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17118 * regcache.c (init_register_cache): Initialize
17119 regcache->register_status.
17120 (free_register_cache): Release regcache->register_status.
17121 (regcache_cpy): Copy register_status.
17122 (registers_to_string): Print 'x's for unavailable registers.
17123 (supply_register): Mark the register's status valid or
17124 unavailable, depending on whether a buffer was passed in or not.
17125 (supply_register_zeroed): New.
17126 (supply_regblock): Mark the registers' status valid or
17127 unavailable, depending on whether a buffer was passed in or not.
17128 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17129 (struct regcache): New `register_status' field.
17130 (supply_register_zeroed): Declare.
17131 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17132 supply_register_zeroed, rather than passing a NULL buffer to
17134 * tracepoint.c (fetch_traceframe_registers): Update comment.
17136 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17138 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17141 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17143 * server.h (decode_xfer_write): Change prototype.
17144 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17145 and don't extract the annex here.
17146 * server.c (decode_xfer_read): Remove `annex' parameter,
17147 and don't extract the annex here.
17148 (decode_xfer): New.
17149 (struct qxfer): New.
17150 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17151 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17152 (handle_qxfer_statictrace): New functions, abstracted out from
17153 handle_query, and made to use the struct qxfer interface.
17154 (handle_threads_qxfer_proper): Rename to ...
17155 (handle_qxfer_threads_proper): ... this.
17156 (handle_threads_qxfer): Rename to ...
17157 (handle_qxfer_threads): ... this. Adjust.
17158 (qxfer_packets): New array.
17159 (handle_qxfer): New function.
17160 (handle_query): Use handle_qxfer.
17162 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17164 * gdbreplay.c: Shorten lines of >= 80 columns.
17165 * linux-low.c: Ditto.
17166 * linux-ppc-low.c: Ditto.
17167 * linux-s390-low.c: Ditto.
17168 * linux-sparc-low.c: Ditto.
17169 * linux-x86-low.c: Ditto.
17170 * linux-xtensa-low.c: Ditto.
17171 * mem-break.c: Ditto.
17172 * nto-low.c: Ditto.
17173 * regcache.h: Ditto.
17174 * remote-utils.c: Ditto.
17177 * thread-db.c: Ditto.
17178 * tracepoint.c: Ditto.
17180 * win32-low.h: Ditto.
17182 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17184 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17187 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17189 * server.c (gdbserver_version): Update copyright year in version
17191 * gdbreplay.c (gdbreplay_version): Ditto.
17193 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17195 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17196 * linux-bfin-low.c: New file.
17197 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17198 PT_DATA_ADDR for BFIN targets.
17199 * Makefile.in (SFILES): Add linux-bfin-low.c.
17200 (clean): Remove reg-bfin.c.
17201 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17202 * README: Mention supported Blackfin targets.
17204 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17206 * .gitignore: New file.
17208 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17210 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17212 2010-10-22 Jie Zhang <jie@codesourcery.com>
17214 * Makefile.in: Add FLAGS_TO_PASS variable.
17215 (install): Remove dependency of install-only and recursively
17216 invoke make for install-only.
17218 2010-10-04 Doug Evans <dje@google.com>
17220 * Makefile.in (uninstall): Use $(DESTDIR).
17222 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17226 * linux-x86-low.c (compat_siginfo_from_siginfo)
17227 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17228 si_code is < 0. Check for si_code == SI_TIMER before checking for
17231 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17233 * lynx-i386-low.c: New file.
17234 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17236 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17238 * lynx-low.c (ptrace_request_to_str): Remove handling for
17239 request values that have been removed in LynxOS 5.x.
17241 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17243 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17246 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17248 * configure.ac: Add --enable-inprocess-agent option.
17249 * configure: Rebuilt.
17251 2010-09-06 Yao Qi <yao@codesourcery.com>
17253 * linux-low.c (linux_kill): Remove unused variable.
17254 (linux_stabilize_threads): Likewise.
17255 * server.c (start_inferior): Likewise.
17256 (queue_stop_reply_callback): Likewise.
17257 * tracepoint.c (do_action_at_tracepoint): Likewise.
17259 2010-09-06 Yao Qi <yao@codesourcery.com>
17261 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17264 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17266 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17268 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17270 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17273 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17275 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17276 gdbserver/lynx-ppc-low.c: New files.
17277 * Makefile.in (lynx_low_h): New variable.
17278 (lynx-low.o, lynx-ppc-low.o): New rules.
17279 * configure.ac: On LynxOS, link with -lnetinet.
17280 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17281 * configure: regenerate.
17283 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17285 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17286 * configure.ac: Add check for vasprintf and vsnprintf.
17287 * configure, config.in: Regenerate.
17288 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17290 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17292 * gdbreplay.c: Move include of alloca.h up, next to include of
17294 * server.h: Add include of malloc.h.
17295 * mem-break.c: Remove include of malloc.h.
17296 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17298 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17300 * Makefile.in (memmem.o): Build with -Wno-error.
17302 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17304 * utils.c (xsnprintf): Make non-static.
17305 * server.h: Add xsnprintf declaration.
17306 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17307 replace calls to snprintf by calls to xsnprintf throughout.
17309 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17311 * configure.ac: Add configure check for alloca.
17312 * configure, config.in: Regenerate.
17313 * server.h: Include alloca.h if it exists.
17314 * gdbreplay.c: Include alloca.h if it exists.
17316 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17318 * linux-low.c (__SIGRTMIN): Define if not already defined.
17319 (linux_create_inferior): Check for __ANDROID__ rather than
17321 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17322 are already deferred.
17323 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17324 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17325 stopped and already has a pending signal to report.
17326 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17327 a pending signal to report or is moving out of a jump pad.
17328 (linux_init_signals): Check for __ANDROID__ rather than
17331 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17333 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17334 debug_threads check. Avoid a linear search when not doing debug
17337 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17339 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17340 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17341 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17342 (process_event): Change local fd's type to gdb_fildes_t.
17343 (create_file_handler): Adjust prototype.
17344 (delete_file_handler): Adjust prototype.
17345 (handle_file_event): Adjust prototype. Use pfildes.
17346 (create_file_event): Adjsut prototype.
17347 * remote-utils.c (remote_desc, listen_desc): Change type to
17349 * server.h: New gdb_fildes_t typedef.
17350 [USE_WIN32API]: Include winsock2.h.
17351 (delete_file_handler, add_file_handler): Adjust prototypes.
17352 (pfildes): Declare.
17353 * utils.c (pfildes): New.
17355 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17357 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17358 * configure: Regenerate.
17360 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17362 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17363 (linux_done_accessing_memory): ... this.
17364 (linux_target_ops): Adjust.
17365 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17366 * nto-low.c (nto_target_ops): Adjust comment.
17367 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17368 * spu-low.c (spu_target_ops): Adjust comment.
17369 * target.h (target_ops): Rename unprepare_to_access_memory field
17370 to done_accessing_memory.
17371 (unprepare_to_access_memory): Rename to ...
17372 (done_accessing_memory): ... this.
17374 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17376 * linux-low.c (linux_prepare_to_access_memory): New.
17377 (linux_unprepare_to_access_memory): New.
17378 (linux_target_ops): Install them.
17379 * server.c (read_memory): Rename to ...
17380 (gdb_read_memory): ... this. Use
17381 prepare_to_access_memory/prepare_to_access_memory.
17382 (write_memory): Rename to ...
17383 (gdb_write_memory): ... this. Use
17384 prepare_to_access_memory/prepare_to_access_memory.
17385 (handle_search_memory_1): Adjust.
17386 (process_serial_event): Adjust.
17387 * target.h (struct target_ops): New fields
17388 prepare_to_access_memory and unprepare_to_access_memory.
17389 (prepare_to_access_memory, unprepare_to_access_memory): New.
17390 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17391 prepare_to_access_memory/prepare_to_access_memory.
17392 * nto-low.c (nto_target_ops): Adjust.
17393 * spu-low.c (spu_target_ops): Adjust.
17394 * win32-low.c (win32_target_ops): Adjust.
17396 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17398 * Makefile.in (WARN_CFLAGS): Get it from configure.
17399 (WERROR_CFLAGS): New.
17400 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17401 * configure.ac: Introduce --enable-werror, which adds -Werror to
17402 the compiler command line. Enabled by default. Disable with
17403 --disable-werror. Add -Wdeclaration-after-statement
17404 Wpointer-arith and -Wformat-nonliteral to warning flags.
17405 * configure: Regenerate.
17407 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17409 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17411 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17413 * gdbreplay.c (remote_error): New.
17415 (expect): Use gdbchar. Check for error reading from GDB.
17416 Clarify sync error output.
17417 (play): Check for errors writing to GDB.
17418 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17419 * remote-utils.c (getpkt): Check for errors writing to the remote
17422 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17424 * linux-low.c (linux_wait_1): Move non-debugging code out of
17425 `debug_threads' control.
17427 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17429 * linux-low.c (linux_wait_1): Don't set last_status here.
17430 * server.c (push_event, queue_stop_reply_callback): Assert we're
17431 not pushing a TARGET_WAITKIND_IGNORE event.
17432 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17433 (myresume, handle_target_event): Set the thread's last_resume_kind
17434 and last_status from the target returned status.
17436 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17440 * linux-x86-low.c (update_debug_registers_callback): New.
17441 (i386_dr_low_set_addr): Use it.
17442 (i386_dr_low_get_addr): New.
17443 (i386_dr_low_set_control): Use update_debug_registers_callback.
17444 (i386_dr_low_get_control): New.
17445 (i386_dr_low_get_status): Adjust.
17446 * linux-low.c (linux_stop_lwp): New.
17447 * linux-low.h (linux_stop_lwp): Declare.
17449 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17450 argument instead of a i386_debug_reg_state.
17451 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17452 a i386_debug_reg_state.
17453 (i386_insert_aligned_watchpoint): Adjust.
17454 (i386_remove_aligned_watchpoint): Adjust.
17455 (i386_low_stopped_data_address): Read the debug registers from the
17456 inferior instead of from the mirrors.
17457 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17458 (i386_dr_low_get_addr): Declare.
17459 (i386_dr_low_get_control): Declare.
17460 (i386_dr_low_get_status): Change prototype.
17462 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17463 (i386_dr_low_get_addr): New.
17464 (i386_dr_low_get_control): New.
17465 (i386_dr_low_get_status): Adjust prototype. Return
17467 (i386_initial_stuff): Clear dr_status_mirror and
17469 (i386_get_thread_context): Adjust.
17470 (i386_set_thread_context): Adjust.
17471 (i386_thread_added): Adjust.
17473 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17475 * linux-low.h (linux_thread_area): Delete declaration.
17477 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17479 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17480 after its termination.
17482 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17484 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17485 (gdb_wants_all_stopped): Delete.
17486 (linux_wait_1): Don't call them.
17487 * server.c (handle_v_cont): Tag all threads as want-stopped.
17488 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17489 stopped as "client-wants-stopped".
17491 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17493 * Makefile.in (signals_h): New.
17494 (server_h): Depend on it.
17495 (server.o): Don't depend on $(signals_def).
17496 (signals.o): Depend on $(signals_def).
17498 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17500 * Makefile.in (signals_def): New.
17501 (server_h): Append include/gdb/signals.h and signals_def.
17502 (server.o): Append signals_def.
17504 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17506 * server.c (handle_target_event): Use target_signal_to_host for
17507 resume_info.sig initialization.
17508 * target.h (struct thread_resume) <sig>: New comment.
17510 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17512 * server.c (handle_query): strcpy() the returned string from paddress()
17513 instead of sprintf().
17514 * utils.c (paddress): Return phex_nz().
17516 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17518 * server.c (handle_v_cont): Call mourn_inferior if process
17520 (myresume): Likewise.
17522 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17524 Static tracepoints, and integration with UST.
17526 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17527 * mem-break.c (uninsert_all_breakpoints)
17528 (reinsert_all_breakpoints): New.
17529 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17530 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17531 (gdb_agent_ust_loaded, helper_thread_id)
17532 (gdb_agent_helper_thread_id): New macros.
17533 (struct ipa_sym_addresses): Add addr_ust_loaded,
17534 addr_helper_thread_id, addr_cmd_buf.
17535 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17536 (in_process_agent_loaded_ust): New.
17537 (write_e_ust_not_loaded): New.
17538 (maybe_write_ipa_ust_not_loaded): New.
17539 (struct collect_static_trace_data_action): New.
17540 (enum tracepoint_type) <static_tracepoint>: New.
17541 (struct tracepoint) <handle>: Mention static tracepoints.
17542 (struct static_tracepoint_ctx): New.
17543 (CMD_BUF_SIZE): New.
17544 (add_tracepoint_action): Handle static tracepoint actions.
17545 (unprobe_marker_at): New.
17546 (clear_installed_tracepoints): Handle static tracepoints.
17547 (cmd_qtdp): Handle static tracepoints.
17548 (probe_marker_at): New.
17549 (cmd_qtstart): Handle static tracepoints.
17550 (response_tracepoint): Handle static tracepoints.
17551 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17552 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17553 (get_context_regcache): Handle static tracepoints.
17554 (do_action_at_tracepoint): Handle static tracepoint actions.
17555 (traceframe_find_block_type): Handle static trace data blocks.
17556 (traceframe_read_sdata): New.
17557 (download_tracepoints): Download static tracepoint actions.
17558 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17559 (GDB_PROBE_NAME): New.
17561 (GET_UST_SYM): New.
17564 (ust_marker_to_static_tracepoint): New.
17566 (collect_ust_data_at_tracepoint): New.
17567 (gdb_ust_probe): New.
17568 (UNIX_PATH_MAX, SOCK_DIR): New.
17569 (gdb_ust_connect_sync_socket): New.
17570 (resume_thread, stop_thread): New.
17571 (run_inferior_command): New.
17572 (init_named_socket): New.
17573 (gdb_ust_socket_init): New.
17574 (cstr_to_hexstr): New.
17576 (first_marker, next_marker): New.
17577 (response_ust_marker): New.
17578 (cmd_qtfstm, cmd_qtsstm): New.
17579 (unprobe_marker_at, probe_marker_at): New.
17580 (cmd_qtstmat, gdb_ust_thread): New.
17581 (gdb_ust_init): New.
17582 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17583 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17584 (ST_REGENTRY): New.
17585 (x86_64_st_collect_regmap): New.
17586 (X86_64_NUM_ST_COLLECT_GREGS): New.
17587 (AMD64_RIP_REGNUM): New.
17588 (supply_static_tracepoint_registers): New.
17589 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17590 (ST_REGENTRY): New.
17591 (i386_st_collect_regmap): New.
17592 (i386_NUM_ST_COLLECT_GREGS): New.
17593 (supply_static_tracepoint_registers): New.
17594 * server.c (handle_query): Handle qXfer:statictrace:read.
17595 <qSupported>: Report support for StaticTracepoints, and
17596 qXfer:statictrace:read features.
17597 * server.h (traceframe_read_sdata)
17598 (supply_static_tracepoint_registers): Declare.
17599 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17600 (unpack_varlen_hex): Include in IPA build.
17601 * Makefile.in (ustlibs, ustinc): New.
17602 (IPA_OBJS): Add remote-utils-ipa.o.
17603 ($(IPA_LIB)): Link -ldl and -lpthread.
17605 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17606 * config.in, configure: Regenerate.
17608 2010-06-20 Ian Lance Taylor <iant@google.com>
17609 Pedro Alves <pedro@codesourcery.com>
17611 * linux-x86-low.c (always_true): Delete.
17612 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17613 trying to fool the compiler with always_true.
17615 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17617 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17618 conditions in gdbserver.
17620 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17622 * spu-low.c (spu_read_memory): Wrap around local store limit.
17623 (spu_write_memory): Likewise.
17625 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17627 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17628 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17630 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17632 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17633 uses with LONGEST uses.
17635 2010-06-14 Stan Shebs <stan@codesourcery.com>
17636 Pedro Alves <pedro@codesourcery.com>
17640 * linux-x86-low.c: Include limits.h.
17642 (always_true): New.
17645 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17646 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17647 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17648 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17649 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17650 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17651 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17652 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17653 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17654 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17655 (amd64_emit_void_call_2): New.
17656 (amd64_emit_ops): New.
17657 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17658 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17659 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17660 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17661 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17662 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17663 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17664 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17665 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17666 (i386_emit_stack_adjust, i386_emit_int_call_1)
17667 (i386_emit_void_call_2): New.
17668 (i386_emit_ops): New.
17669 (x86_emit_ops): New.
17670 (the_low_target): Install x86_emit_ops.
17671 * server.h (struct emit_ops): New.
17672 (get_raw_reg_func_addr): Declare.
17673 (current_insn_ptr, emit_error): Declare.
17674 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17675 (set_trace_state_variable_value): New defines.
17676 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17677 addr_get_trace_state_variable_value and
17678 addr_set_trace_state_variable_value.
17679 (symbol_list): New fields for get_raw_reg,
17680 get_trace_state_variable_value and set_trace_state_variable_value.
17681 (condfn): New typedef.
17682 (struct tracepoint): New field `compiled_cond'.
17683 (do_action_at_tracepoint): Clear compiled_cond.
17684 (get_trace_state_variable_value, set_trace_state_variable_value):
17686 (condition_true_at_tracepoint): If there's a compiled condition,
17688 (current_insn_ptr, emit_error): New globals.
17689 (struct bytecode_address): New.
17690 (get_raw_reg_func_addr): New.
17691 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17692 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17693 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17694 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17695 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17696 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17697 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17698 (compile_tracepoint_condition, compile_bytecodes): New.
17699 * target.h (emit_ops): Forward declare.
17700 (struct target_ops): New field emit_ops.
17701 (target_emit_ops): New.
17702 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17703 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17704 * linux-low.c (linux_emit_ops): New.
17705 (linux_target_ops): Install it.
17706 * linux-low.h (struct linux_target_ops): New field emit_ops.
17708 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17710 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17711 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17713 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17714 Stan Shebs <stan@codesourcery.com>
17716 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17717 (all): Depend on $(extra_libraries).
17718 (install-only): Install the IPA.
17719 (IPA_OBJS, IPA_LIB): New.
17720 (clean): Remove the IPA lib.
17721 (IPAGENT_CFLAGS): New.
17722 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17723 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17724 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17725 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17726 * configure.ac: Check for atomic builtins support in the compiler.
17727 (IPA_DEPFILES, extra_libraries): Define.
17728 * configure.srv (ipa_obj): Add description.
17729 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17730 (i[34567]86-*-linux*): Set ipa_obj.
17731 (x86_64-*-linux*): Set ipa_obj.
17732 * linux-low.c (stabilizing_threads): New.
17733 (supports_fast_tracepoints): New.
17734 (linux_detach): Stabilize threads before detaching.
17735 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17736 the lwp is either not stabilizing, or is moving out of a jump pad.
17737 (linux_fast_tracepoint_collecting): New.
17738 (maybe_move_out_of_jump_pad): New.
17739 (enqueue_one_deferred_signal): New.
17740 (dequeue_one_deferred_signal): New.
17741 (linux_wait_for_event_1): If moving out of a jump pad, defer
17742 pending signals to later.
17743 (linux_stabilize_threads): New.
17744 (linux_wait_1): Check if threads need moving out of jump pads, and
17746 (stuck_in_jump_pad_callback): New.
17747 (move_out_of_jump_pad_callback): New.
17748 (lwp_running): New.
17749 (linux_resume_one_lwp): Handle moving out of jump pads.
17750 (linux_set_resume_request): Dequeue deferred signals.
17751 (need_step_over_p): Also step over fast tracepoint jumps.
17752 (start_step_over): Also uninsert fast tracepoint jumps.
17753 (finish_step_over): Also reinsert fast tracepoint jumps.
17754 (linux_install_fast_tracepoint_jump): New.
17755 (linux_target_ops): Install linux_stabilize_threads and
17756 linux_install_fast_tracepoint_jump_pad.
17757 * linux-low.h (linux_target_ops) <get_thread_area,
17758 install_fast_tracepoint_jump_pad>: New fields.
17759 (struct lwp_info) <collecting_fast_tracepoint,
17760 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17761 (linux_get_thread_area): Declare.
17762 * linux-x86-low.c (jump_insn): New.
17763 (x86_get_thread_area): New.
17764 (append_insns): New.
17765 (push_opcode): New.
17766 (amd64_install_fast_tracepoint_jump_pad): New.
17767 (i386_install_fast_tracepoint_jump_pad): New.
17768 (x86_install_fast_tracepoint_jump_pad): New.
17769 (the_low_target): Install x86_get_thread_area and
17770 x86_install_fast_tracepoint_jump_pad.
17771 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17772 (struct fast_tracepoint_jump): New.
17773 (fast_tracepoint_jump_insn): New.
17774 (fast_tracepoint_jump_shadow): New.
17775 (find_fast_tracepoint_jump_at): New.
17776 (fast_tracepoint_jump_here): New.
17777 (delete_fast_tracepoint_jump): New.
17778 (set_fast_tracepoint_jump): New.
17779 (uninsert_fast_tracepoint_jumps_at): New.
17780 (reinsert_fast_tracepoint_jumps_at): New.
17781 (set_breakpoint_at): Use write_inferior_memory.
17782 (uninsert_raw_breakpoint): Use write_inferior_memory.
17783 (check_mem_read): Mask out fast tracepoint jumps.
17784 (check_mem_write): Mask out fast tracepoint jumps.
17785 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17786 (set_fast_tracepoint_jump): Declare.
17787 (delete_fast_tracepoint_jump)
17788 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17789 (reinsert_fast_tracepoint_jumps_at): Declare.
17790 * regcache.c: Don't compile many functions when building the
17791 in-process agent library.
17792 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17793 the register buffer in the heap.
17794 (free_register_cache): If the register buffer isn't owned by the
17795 regcache, don't free it.
17796 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17797 pre-existing register caches.
17798 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17800 (convert_ascii_to_int): : Constify `from' parameter type.
17801 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17802 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17803 the needed buffer in-place.
17804 (relocate_instruction): New.
17805 * server.c (handle_query) <qSymbols>: If the target supports
17806 tracepoints, give it a chance of looking up symbols. Report
17807 support for fast tracepoints.
17808 (handle_status): Stabilize threads.
17809 (process_serial_event): Adjust.
17810 * server.h (struct fast_tracepoint_jump): Forward declare.
17811 (struct process_info) <fast_tracepoint_jumps>: New field.
17812 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17813 (decode_X_packet, decode_M_packet): Adjust.
17814 (relocate_instruction): Declare.
17815 (in_process_agent_loaded): Declare.
17816 (tracepoint_look_up_symbols): Declare.
17817 (struct fast_tpoint_collect_status): Declare.
17818 (fast_tracepoint_collecting): Declare.
17819 (force_unlock_trace_buffer): Declare.
17820 (handle_tracepoint_bkpts): Declare.
17821 (initialize_low_tracepoint)
17822 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17823 * target.h (struct target_ops) <stabilize_threads,
17824 install_fast_tracepoint_jump_pad>: New fields.
17825 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17826 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17827 [HAVE_STDINT_H]: Include stdint.h.
17828 (trace_debug_1): Rename to ...
17829 (trace_vdebug): ... this.
17830 (trace_debug): Rename to ...
17831 (trace_debug_1): ... this. Add `level' parameter.
17832 (trace_debug): New.
17833 (ATTR_USED, ATTR_NOINLINE): New.
17834 (IP_AGENT_EXPORT): New.
17835 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17836 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17837 (about_to_request_buffer_space, trace_buffer_is_full)
17838 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17839 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17840 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17841 (traceframe_write_count, traceframes_created)
17842 (trace_state_variables)
17843 New renaming defines.
17844 (struct ipa_sym_addresses): New.
17845 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17846 (symbol_list): New.
17847 (ipa_sym_addrs): New.
17848 (all_tracepoint_symbols_looked_up): New.
17849 (in_process_agent_loaded): New.
17850 (write_e_ipa_not_loaded): New.
17851 (maybe_write_ipa_not_loaded): New.
17852 (tracepoint_look_up_symbols): New.
17853 (debug_threads) [IN_PROCESS_AGENT]: New.
17854 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17855 (UNKNOWN_SIDE_EFFECTS): New.
17856 (stop_tracing): New.
17857 (flush_trace_buffer): New.
17858 (stop_tracing_bkpt): New.
17859 (flush_trace_buffer_bkpt): New.
17860 (read_inferior_integer): New.
17861 (read_inferior_uinteger): New.
17862 (read_inferior_data_pointer): New.
17863 (write_inferior_data_pointer): New.
17864 (write_inferior_integer): New.
17865 (write_inferior_uinteger): New.
17866 (struct collect_static_trace_data_action): Delete.
17867 (enum tracepoint_type): New.
17868 (struct tracepoint) <type>: New field `type'.
17869 <actions_str, step_actions, step_actions_str>: Only include in
17871 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17872 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17873 (tracepoints): Use IP_AGENT_EXPORT.
17874 (last_tracepoint): Don't include in the IPA.
17875 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17876 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17877 (alloced_trace_state_variables): New.
17878 (trace_state_variables): Use IP_AGENT_EXPORT.
17879 (traceframe_t): Delete unused variable.
17880 (circular_trace_buffer): Don't include in the IPA.
17881 (trace_buffer_start): Delete.
17882 (struct trace_buffer_control): New.
17883 (trace_buffer_free): Delete.
17884 (struct ipa_trace_buffer_control): New.
17885 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17886 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17888 (trace_buffer_ctrl): New.
17889 (TRACE_BUFFER_CTRL_CURR): New.
17890 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17891 Reimplement as macros.
17892 (trace_buffer_wrap): Delete.
17893 (traceframe_write_count, traceframe_read_count)
17894 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17895 (struct tracepoint_hit_ctx) <type>: New field.
17896 (struct fast_tracepoint_ctx): New.
17897 (memory_barrier): New.
17899 (record_tracepoint_error): Update atomically in the IPA.
17900 (clear_inferior_trace_buffer): New.
17901 (about_to_request_buffer_space): New.
17902 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17903 updating the same buffer.
17904 (add_tracepoint): Default the tracepoint's type to trap
17905 tracepoint, and orig_size to -1.
17906 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17907 internal variables.
17908 (create_trace_state_variable): New parameter `gdb'. Handle it.
17909 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17910 (cmd_qtdp): Handle fast tracepoints.
17911 (cmd_qtdv): Adjust.
17912 (max_jump_pad_size): New.
17913 (gdb_jump_pad_head): New.
17914 (get_jump_space_head): New.
17915 (claim_jump_space): New.
17916 (sort_tracepoints): New.
17917 (MAX_JUMP_SIZE): New.
17918 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17920 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17921 support. Upload fast traceframes, and delete internal IPA
17923 (stop_tracing_handler): New.
17924 (flush_trace_buffer_handler): New.
17925 (cmd_qtstop): Upload fast tracepoints.
17926 (response_tracepoint): Handle fast tracepoints.
17927 (tracepoint_finished_step): Upload fast traceframes. Set the
17928 tracepoint hit context's tracepoint type.
17929 (handle_tracepoint_bkpts): New.
17930 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17931 type. Add comment about fast tracepoints.
17932 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17933 non-existing action_str field.
17934 (get_context_regcache): Handle fast tracepoints.
17935 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17937 (fast_tracepoint_from_jump_pad_address): New.
17938 (fast_tracepoint_from_ipa_tpoint_address): New.
17939 (collecting_t): New.
17940 (force_unlock_trace_buffer): New.
17941 (fast_tracepoint_collecting): New.
17943 (gdb_collect): New.
17944 (write_inferior_data_ptr): New.
17945 (target_tp_heap): New.
17946 (target_malloc): New.
17947 (download_agent_expr): New.
17949 (download_tracepoints): New.
17950 (download_trace_state_variables): New.
17951 (upload_fast_traceframes): New.
17952 (IPA_FIRST_TRACEFRAME): New.
17953 (IPA_NEXT_TRACEFRAME_1): New.
17954 (IPA_NEXT_TRACEFRAME): New.
17955 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17956 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17957 (gdb_jump_pad_buffer_end): New.
17958 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17959 (initialize_tracepoint): Adjust.
17960 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17961 buffer. Initialize the low module.
17962 * utils.c (PREFIX, TOOLNAME): New.
17963 (malloc_failure): Use PREFIX.
17964 (error): In the IPA, an error causes an exit.
17965 (fatal, warning): Use PREFIX.
17966 (internal_error): Use TOOLNAME.
17967 (NUMCELLS): Increase to 10.
17968 * configure, config.in: Regenerate.
17970 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17972 * server.c (handle_query) <qSupported>: Do two passes over the
17973 qSupported string to avoid nesting strtok.
17975 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17977 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17979 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17980 -Wl,--dynamic-list.
17981 * configure: Regenerate.
17982 * proc-service.list: New.
17984 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17986 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17989 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17991 * gdbreplay.c (remote_open): Check error return from socket() call by
17992 its equality to -1 not by it being negative.
17993 * remote-utils.c (remote_open): Likewise.
17995 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17997 * config.h: Regenerate.
17999 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18001 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18002 doesn't provide PTRACE_GET_THREAD_AREA.
18004 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18006 * linux-m68k-low.c: Include <asm/ptrace.h>
18007 (ps_get_thread_area): Implement.
18009 2010-05-03 Doug Evans <dje@google.com>
18011 * event-loop.c (struct callback_event): New struct.
18012 (callback_list): New global.
18013 (append_callback_event, delete_callback_event): New functions.
18014 (process_callback): New function.
18015 (start_event_loop): Call it.
18016 * remote-utils.c (NOT_SCHEDULED): Define.
18017 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18018 moved out of readchar.
18019 (readchar): Rewrite. Call reschedule before returning.
18020 (reset_readchar): New function.
18021 (remote_close): Call it.
18022 (process_remaining, reschedule): New functions.
18023 * server.h (callback_handler_func): New typedef.
18024 (append_callback_event, delete_callback_event): Declare.
18026 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18028 * proc-service.c (ps_pglobal_lookup): Use
18029 thread_db_look_up_one_symbol.
18030 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18031 parameter. Use it instead of all_symbols_looked_up.
18032 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18034 (all_symbols_looked_up): Don't declare.
18035 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18036 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18038 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18039 Set all_symbols_looked_up here.
18040 (thread_db_look_up_one_symbol): New.
18041 (thread_db_get_tls_address): Adjust.
18042 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18043 thread_db object on the heap, and tentatively set it in the
18045 (thread_db_init): Don't set all_symbols_looked_up here.
18046 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18048 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18050 * linux-low.c (linux_kill, linux_detach): Adjust.
18051 (status_pending_p_callback): Remove redundant statement. Check
18052 for !TARGET_WAITIKIND_IGNORE, instead of
18053 TARGET_WAITKIND_STOPPED.
18054 (handle_tracepoints): Make sure LWP is locked. Adjust.
18055 (linux_wait_for_event_1): Adjust.
18056 (linux_cancel_breakpoints): New.
18057 (unsuspend_one_lwp): New.
18058 (unsuspend_all_lwps): New.
18059 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18060 (send_sigstop_callback): Change return type to int, add new
18061 `except' parameter and handle it.
18062 (suspend_and_send_sigstop_callback): New.
18063 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18064 pass them down. If SUSPEND, also increment the lwp's suspend
18066 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18067 (need_step_over_p): Don't consider suspended LWPs.
18068 (start_step_over): Adjust.
18069 (proceed_one_lwp): Change return type to int, add new `except'
18070 parameter and handle it.
18071 (unsuspend_and_proceed_one_lwp): New.
18072 (proceed_all_lwps): Use find_inferior instead of
18074 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18075 also decrement the suspend count of LWPs. Pass `except' down,
18076 instead of hacking its suspend count.
18077 (linux_pause_all): Add `freeze' parameter. Adjust.
18078 (linux_unpause_all): New.
18079 (linux_target_ops): Install linux_unpause_all.
18080 * server.c (handle_status): Adjust.
18081 * target.h (struct target_ops): New fields `unpause_all' and
18082 `cancel_breakpoints'. Add new parameter to `pause_all'.
18083 (pause_all): Add new `freeze' parameter.
18084 (unpause_all): New.
18085 (cancel_breakpoints): New.
18086 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18087 cancel breakpoints.
18088 (cmd_qtstart): Pause threads.
18089 (stop_tracing): Pause threads, and cancel breakpoints.
18090 * win32-low.c (win32_target_ops): Adjust.
18092 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18094 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18095 the inferior right away from here...
18096 (linux_wait_1): ... to here, and adjust to check the thread's
18097 last_resume_kind instead of the lwp's step or stop_expected flags.
18099 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18101 * README: Use consistent `GDB' and `GDBserver' spellings.
18103 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18105 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18106 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18107 (linux_detach_one_lwp): Assume the lwp is stopped.
18108 (any_thread_of): Delete.
18109 (linux_detach): Stop all lwps here. Don't blindly delete all
18111 (delete_lwp_callback): New.
18112 (linux_mourn): Delete all lwps of the process that is gone.
18113 (linux_wait_1): Don't delete the last lwp of the process here.
18114 * mem-break.h (mark_breakpoints_out): Declare.
18115 * mem-break.c (mark_breakpoints_out): New.
18116 (free_all_breakpoints): Use it.
18117 * server.c (handle_target_event): If the process is gone, mark
18119 * thread-db.c (struct thread_db) <create_bp>: New field.
18120 (thread_db_enable_reporting): Fix prototype. Store a thread event
18121 breakpoint reference in the thread_db struct.
18122 (thread_db_load_search): Clear the thread_db object.
18123 (try_thread_db_load_1): Ditto.
18124 (switch_to_process): New.
18125 (disable_thread_event_reporting): Use it.
18126 (remove_thread_event_breakpoints): New.
18127 (thread_db_detach, thread_db_mourn): Use it.
18129 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18131 * linux-low.c (linux_enable_event_reporting): New.
18132 (linux_wait_for_event_1, handle_extended_wait): Use it.
18134 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18136 * linux-low.c (linux_kill_one_lwp, linux_kill)
18137 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18138 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18139 SIGSTOP even if the LWP is stopped.
18140 (send_sigstop_callback): New.
18141 (stop_all_lwps): Use send_sigstop_callback instead.
18142 (linux_resume_one_thread): Adjust.
18143 (proceed_one_lwp): Still proceed an LWP that the client has
18144 requested to stop, if we haven't reported it as stopped yet. Make
18145 sure that LWPs the client want stopped, have a pending SIGSTOP.
18147 2010-04-26 Doug Evans <dje@google.com>
18149 * server.c (handle_general_set): Make static.
18151 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18152 Print received char after testing for error/eof instead of before.
18153 (input_interrupt): Tweak comment.
18155 2010-04-23 Doug Evans <dje@google.com>
18157 * server.c (start_inferior): Print inferior argv if --debug.
18159 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18161 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18162 * nto-x86-low.c: Include server.h
18164 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18166 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18167 be consistent with other sources of this directory.
18168 (init_registers_amd64): Correct name of source file of this function
18171 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18173 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18174 64-bit executables.
18176 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18178 * win32-i386-low.c: Add 64-bit support.
18179 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18180 (init_registers_amd64): Declare.
18181 (mappings): Add 64-bit version of array.
18182 (init_windows_x86): New function.
18183 (the_low_target): Change init_arch field to init_windows_x86.
18185 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18187 * win32-low.c: Adapt to support also 64-bit architecture.
18188 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18189 (get_image_name): Use SIZE_T type for local variable `done'.
18190 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18191 (toolhelp_get_dll_name): Idem.
18192 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18193 Use uintptr_t typecast to avoid warning.
18194 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18195 (handle_exception): Use phex_nz to avoid warning.
18196 (win32_wait): Remove unused local variable `process'.
18198 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18200 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18203 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18205 * configure.ac: Use `ws2_32' library for srv_mingw.
18206 * configure: Regenerate.
18207 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18208 * remote-utils.c: Likewise.
18210 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18212 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18213 if __x86_64__ is defined.
18215 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18217 * configure: Regenerate.
18219 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18221 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18222 * target.h (target_ops): New get_tib_address field.
18223 * win32-low.h (win32_thread_info): Add thread_local_base field.
18224 * win32-low.c (child_add_thread): Add tlb argument.
18225 Set thread_local_base field to TLB.
18226 (get_child_debug_event): Adapt to child_add_thread change.
18227 (win32_get_tib_address): New function.
18228 (win32_target_ops): Set get_tib_address field to
18229 win32_get_tib_address.
18230 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18232 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18234 * linux-low.c (linux_mourn): Also remove the process.
18235 * server.c (handle_target_event): Don't remove the process here.
18236 * nto-low.c (nto_mourn): New.
18237 (nto_target_ops): Install it.
18238 * spu-low.c (spu_mourn): New.
18239 (spu_target_ops): Install it.
18240 * win32-low.c (win32_mourn): New.
18241 (win32_target_ops): Install it.
18243 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18245 * server.h (buffer_xml_printf): Remove redundant `;'.
18247 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18249 * regcache.c (set_register_cache): Invalidate regcaches before
18250 changing the register cache layout.
18251 (regcache_invalidate_one): Allow a NULL regcache.
18252 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18253 regcaches before changing the register cache layout or the target
18256 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18258 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18259 variable warning on Linux/x86-64.
18261 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18263 GDBserver disconnected tracing support.
18265 * linux-low.c (linux_remove_process): Delete.
18266 (add_lwp): Don't set last_resume_kind here.
18267 (linux_kill): Use `mourn'.
18268 (linux_detach): Use `thread_db_detach', and `mourn'.
18269 (linux_mourn): New.
18270 (linux_attach_lwp_1): Adjust comment.
18271 (linux_attach): last_resume_kind moved the thread_info; adjust.
18272 (status_pending_p_callback): Adjust.
18273 (linux_wait_for_event_1): Adjust.
18274 (count_events_callback, select_singlestep_lwp_callback)
18275 (select_event_lwp_callback, cancel_breakpoints_callback)
18276 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18277 (proceed_one_lwp): Adjust.
18278 (linux_async): Add debug output.
18279 (linux_thread_stopped): New.
18280 (linux_pause_all): New.
18281 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18283 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18284 (thread_db_free): Delete declaration.
18285 (thread_db_detach, thread_db_mourn): Declare.
18286 * thread-db.c (thread_db_init): Use thread_db_mourn.
18287 (thread_db_free): Delete, split in two.
18288 (disable_thread_event_reporting): New.
18289 (thread_db_detach): New.
18290 (thread_db_mourn): New.
18292 * server.h (struct thread_info) <last_resume_kind>: New field.
18293 <attached>: Add comment.
18294 <gdb_detached>: New field.
18295 (handler_func): Change return type to int.
18296 (handle_serial_event, handle_target_event): Ditto.
18297 (gdb_connected): Declare.
18299 (disconnected_tracing): Declare.
18300 (stop_tracing): Declare.
18302 * server.c (handle_query) <qSupported>: Report support for
18303 disconnected tracing.
18304 (queue_stop_reply_callback): Account for running threads.
18305 (gdb_wants_thread_stopped): New.
18306 (gdb_wants_all_threads_stopped): New.
18307 (gdb_reattached_process): New.
18308 (handle_status): Clear the `gdb_detached' flag of all processes.
18309 In all-stop, stop all threads.
18310 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18311 (process_serial_event): If the remote connection breaks, or if an
18312 exit was forced with "monitor exit", force an event loop exit.
18313 Handle disconnected tracing on detach.
18314 (handle_serial_event): Adjust.
18315 (handle_target_event): If GDB isn't connected, forward events back
18316 to the inferior, unless the last process exited, in which case,
18317 exit gdbserver. Adjust interface.
18319 * remote-utils.c (remote_open): Don't block in accept. Instead
18320 register an event loop source on the listen socket file
18321 descriptor. Refactor bits into ...
18322 (listen_desc): ... this new global.
18323 (gdb_connected): ... this new function.
18324 (enable_async_notification): ... this new function.
18325 (handle_accept_event): ... this new function.
18326 (remote_close): Clear remote_desc.
18328 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18330 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18332 (mourn_inferior): Define.
18333 (target_process_qsupported): Avoid the dangling else problem.
18334 (thread_stopped): Define.
18335 (pause_all): Define.
18336 (target_waitstatus_to_string): Declare.
18337 * target.c (target_waitstatus_to_string): New.
18339 * tracepoint.c (tracing): Make extern.
18340 (disconnected_tracing): New.
18341 (stop_tracing): Make extern. Handle tracing stops due to GDB
18343 (cmd_qtdisconnected): New.
18344 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18345 (handle_tracepoint_general_set): Handle QTDisconnected.
18347 * event-loop.c (event_handler_func): Change return type to int.
18348 (process_event): Bail out if the event handler wants the event
18350 (handle_file_event): Ditto.
18351 (start_event_loop): Bail out if the event handler wants the event
18354 * nto-low.c (nto_target_ops): Adjust.
18355 * spu-low.c (spu_wait): Don't remove the process here.
18356 (spu_target_ops): Adjust.
18357 * win32-low.c (win32_wait): Don't remove the process here.
18358 (win32_target_ops): Adjust.
18360 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18362 * regcache.c (realloc_register_cache): Invalidate inferior's
18363 regcache before recreating it.
18365 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18367 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18369 2010-04-09 Stan Shebs <stan@codesourcery.com>
18370 Pedro Alves <pedro@codesourcery.com>
18372 * server.h (LONGEST): New.
18373 (struct thread_info) <while_stepping>: New field.
18374 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18376 (initialize_tracepoint, handle_tracepoint_general_set)
18377 (handle_tracepoint_query, tracepoint_finished_step)
18378 (tracepoint_was_hit, release_while_stepping_state_list):
18379 (current_traceframe): Declare.
18380 * server.c (handle_general_set): Handle tracepoint packets.
18381 (read_memory): New.
18382 (write_memory): New.
18383 (handle_search_memory_1): Use read_memory.
18384 (handle_query): Report support for conditional tracepoints, trace
18385 state variables, and tracepoint sources. Handle tracepoint
18387 (main): Initialize the tracepoints module.
18388 (process_serial_event): Handle traceframe reads/writes.
18390 * linux-low.c (handle_tracepoints): New.
18391 (linux_wait_1): Call it.
18392 (linux_resume_one_lwp): Handle while-stepping.
18393 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18394 (linux_target_ops): Install them.
18395 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18397 * linux-x86-low.c (x86_supports_tracepoints): New.
18398 (the_low_target). Install it.
18400 * mem-break.h (delete_breakpoint): Declare.
18401 * mem-break.c (delete_breakpoint): Make external.
18403 * target.h (struct target_ops): Add `supports_tracepoints',
18404 `read_pc', and `write_pc' fields.
18405 (target_supports_tracepoints): Define.
18406 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18409 * regcache.h (struct regcache) <registers_owned>: New field.
18410 (init_register_cache, regcache_cpy): Declare.
18411 (regcache_read_pc, regcache_write_pc): Declare.
18412 (register_cache_size): Declare.
18413 (supply_regblock): Declare.
18414 * regcache.c (init_register_cache): New.
18415 (new_register_cache): Use it.
18416 (regcache_cpy): New.
18417 (register_cache_size): New.
18418 (supply_regblock): New.
18419 (regcache_read_pc, regcache_write_pc): New.
18421 * tracepoint.c: New.
18423 * Makefile.in (OBS): Add tracepoint.o.
18424 (tracepoint.o): New rule.
18426 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18428 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18430 (i386-mmx.c): Likewise.
18431 (i386-mmx-linux.o): Likewise.
18432 (i386-mmx-linux.c): Likewise.
18434 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18435 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18436 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18437 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18439 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18440 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18441 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18443 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18445 * Makefile.in (clean): Updated.
18447 (i386-avx.c): Likewise.
18448 (i386-avx-linux.o): Likewise.
18449 (i386-avx-linux.c): Likewise.
18450 (amd64-avx.o): Likewise.
18451 (amd64-avx.c): Likewise.
18452 (amd64-avx-linux.o): Likewise.
18453 (amd64-avx-linux.c): Likewise.
18455 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18456 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18457 (srv_amd64_regobj): Add amd64-avx.o.
18458 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18459 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18460 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18461 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18462 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18463 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18464 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18466 * i387-fp.c: Include "i386-xstate.h".
18468 (i387_cache_to_xsave): Likewise.
18469 (i387_xsave_to_cache): Likewise.
18470 (x86_xcr0): Likewise.
18472 * i387-fp.h (i387_cache_to_xsave): Likewise.
18473 (i387_xsave_to_cache): Likewise.
18474 (x86_xcr0): Likewise.
18476 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18477 * linux-crisv32-low.c (target_regsets): Likewise.
18478 * linux-m68k-low.c (target_regsets): Likewise.
18479 * linux-mips-low.c (target_regsets): Likewise.
18480 * linux-ppc-low.c (target_regsets): Likewise.
18481 * linux-s390-low.c (target_regsets): Likewise.
18482 * linux-sh-low.c (target_regsets): Likewise.
18483 * linux-sparc-low.c (target_regsets): Likewise.
18484 * linux-xtensa-low.c (target_regsets): Likewise.
18486 * linux-low.c: Include <sys/uio.h>.
18487 (regsets_fetch_inferior_registers): Support nt_type.
18488 (regsets_store_inferior_registers): Likewise.
18489 (linux_process_qsupported): New.
18490 (linux_target_ops): Add linux_process_qsupported.
18492 * linux-low.h (regset_info): Add nt_type.
18493 (linux_target_ops): Add process_qsupported.
18495 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18497 (init_registers_i386_avx_linux): New.
18498 (init_registers_amd64_avx_linux): Likewise.
18499 (xmltarget_i386_linux_no_xml): Likewise.
18500 (xmltarget_amd64_linux_no_xml): Likewise.
18501 (PTRACE_GETREGSET): Likewise.
18502 (PTRACE_SETREGSET): Likewise.
18503 (x86_fill_xstateregset): Likewise.
18504 (x86_store_xstateregset): Likewise.
18505 (use_xml): Likewise.
18506 (x86_linux_update_xmltarget): Likewise.
18507 (x86_linux_process_qsupported): Likewise.
18508 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18509 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18510 init_registers_i386_linux here. Call
18511 x86_linux_update_xmltarget.
18512 (the_low_target): Add x86_linux_process_qsupported.
18514 * server.c (handle_query): Call target_process_qsupported.
18516 * target.h (target_ops): Add process_qsupported.
18517 (target_process_qsupported): New.
18519 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18521 * inferiors.c (add_thread): Set last_status kind to
18522 TARGET_WAITKIND_IGNORE.
18523 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18524 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18525 (linux_wait_1): Move `thread' local definition to block that uses
18526 it. Don't NULL initialize `event_child'.
18527 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18528 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18529 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18531 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18533 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18534 an extended waitstatus, or by a watchpoint.
18535 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18536 thread was stepping or has been stopped by a watchpoint.
18538 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18540 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18541 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18542 of another, then delete the previous, and validate all
18544 (validate_inserted_breakpoint): New.
18545 (delete_disabled_breakpoints): New.
18546 (validate_breakpoints): New.
18547 (check_mem_read): Validate breakpoints before trusting their
18548 shadow. Delete disabled breakpoints.
18549 (check_mem_write): Validate breakpoints before trusting they
18550 should be inserted. Delete disabled breakpoints.
18551 * mem-break.h (validate_breakpoints):
18552 * server.c (handle_query): Validate breakpoints when we see a
18555 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18557 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18558 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18559 if we could tell there's a GDB breakpoint at stop_pc.
18560 (need_step_over_p): Don't do a step over if we find a GDB
18561 breakpoint at the resume PC.
18563 * mem-break.c (struct raw_breakpoint): New.
18564 (enum bkpt_type): New type `gdb_breakpoint'.
18565 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18566 fields. New field `raw'.
18567 (find_raw_breakpoint_at): New.
18568 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18569 breakpoint instead.
18570 (set_breakpoint_at): Adjust.
18571 (delete_raw_breakpoint): New.
18572 (release_breakpoint): New.
18573 (delete_breakpoint): Rename to...
18574 (delete_breakpoint_1): ... this. Add proc parameter. Use
18575 release_breakpoint. Return ENOENT.
18576 (delete_breakpoint): Reimplement.
18577 (find_breakpoint_at): Delete.
18578 (find_gdb_breakpoint_at): New.
18579 (delete_breakpoint_at): Delete.
18580 (set_gdb_breakpoint_at): New.
18581 (delete_gdb_breakpoint_at): New.
18582 (gdb_breakpoint_here): New.
18583 (set_reinsert_breakpoint): Use release_breakpoint.
18584 (uninsert_breakpoint): Rename to ...
18585 (uninsert_raw_breakpoint): ... this.
18586 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18587 (reinsert_raw_breakpoint): Change parameter type to
18589 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18591 (check_breakpoints): Adjust. Use release_breakpoint.
18592 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18593 (breakpoint_inserted_here): Ditto.
18594 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18595 Don't trust the breakpoint's shadow if it is not inserted.
18596 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18597 (delete_all_breakpoints): Adjust.
18598 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18599 use delete_breakpoint_1.
18601 * mem-break.h (breakpoints_supported): Delete declaration.
18602 (set_gdb_breakpoint_at): Declare.
18603 (gdb_breakpoint_here): Declare.
18604 (delete_breakpoint_at): Delete.
18605 (delete_gdb_breakpoint_at): Declare.
18607 * server.h (struct raw_breakpoint): Forward declare.
18608 (struct process_info): New field `raw_breakpoints'.
18610 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18613 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18615 * linux-low.c (status_pending_p_callback): Fix comment.
18616 (linux_wait_for_event_1): Move most of the internal breakpoint
18617 handling from here...
18618 (linux_wait_1): ... to here.
18619 (count_events_callback): New.
18620 (select_singlestep_lwp_callback): New.
18621 (select_event_lwp_callback): New.
18622 (cancel_breakpoints_callback): New.
18623 (select_event_lwp): New.
18624 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18625 priority to all LWPs that have had events that should be reported
18626 to the client. Cancel breakpoints when about to reporting the
18627 event to the client, not while stopping lwps. No longer cancel
18628 finished single-steps here.
18629 (cancel_finished_single_step): Delete.
18630 (cancel_finished_single_steps): Delete.
18632 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18634 * mem-break.c (enum bkpt_type): New.
18635 (struct breakpoint): New field `type'.
18636 (set_breakpoint_at): Change return type to struct breakpoint
18637 pointer. Set type to `other_breakpoint' by default.
18638 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18639 in the breakpoint list.
18640 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18641 (reinsert_breakpoint): Rename to ...
18642 (reinsert_raw_breakpoint): ... this.
18643 (reinsert_breakpoints_at): Adjust.
18644 * mem-break.h (struct breakpoint): Declare.
18645 (set_breakpoint_at): Change return type to struct breakpoint
18648 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18650 * server.c (handle_query): Assign, not compare.
18652 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18654 Teach linux gdbserver to step-over-breakpoints.
18656 * linux-low.c (can_hardware_single_step): New.
18657 (supports_breakpoints): New.
18658 (handle_extended_wait): If stopping threads, read the stop pc of
18659 the new cloned LWP.
18661 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18662 low target doesn't support retrieving the PC.
18663 (add_lwp): Set last_resume_kind to resume_continue.
18664 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18665 (linux_attach): Don't clear stop_expected. Set the lwp's
18666 last_resume_kind to resume_stop.
18667 (linux_detach_one_lwp): Don't check for removed breakpoints.
18668 (check_removed_breakpoint): Delete.
18669 (status_pending_p): Rename to ...
18670 (status_pending_p_callback): ... this. Don't check for removed
18671 breakpoints. Don't consider threads that are stopped from GDB's
18673 (linux_wait_for_lwp): Always read the stop_pc here.
18674 (cancel_breakpoint): New.
18675 (step_over_bkpt): New global.
18676 (linux_wait_for_event_1): Implement stepping over breakpoints.
18677 (gdb_wants_lwp_stopped): New.
18678 (gdb_wants_all_stopped): New.
18679 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18680 single-step traps here. Store the thread's last reported target
18682 (send_sigstop): Don't clear stop_expected. Always set it,
18684 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18685 (cancel_finished_single_step): New.
18686 (cancel_finished_single_steps): New.
18687 (wait_for_sigstop): Don't cancel finished single-step traps here.
18688 (linux_resume_one_lwp): Don't check for removed breakpoints.
18689 Don't set `step' on non-hardware step archs.
18690 (linux_set_resume_request): Ignore resume_stop requests if already
18691 stopping or stopped. Set the lwp's last_resume_kind.
18692 (resume_status_pending_p): Don't check for removed breakpoints.
18693 (need_step_over_p): New.
18694 (start_step_over): New.
18695 (finish_step_over): New.
18696 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18697 requests. Clear the thread's last reported target waitstatus.
18698 Don't use the `suspended' flag. Don't consider pending breakpoints.
18699 (linux_resume): Start a step-over if necessary.
18700 (proceed_one_lwp): New.
18701 (proceed_all_lwps): New.
18702 (unstop_all_lwps): New.
18703 * linux-low.h (struct lwp_info): Rewrite comment for the
18704 `suspended' flag. Add the `stop_pc' field. Delete the
18705 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18706 Add `'last_resume_kind' and `need_step_over' fields.
18707 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18708 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18709 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18710 (set_raw_breakpoint_at): New.
18711 (set_breakpoint_at): Rewrite to use it.
18712 (reinsert_breakpoint_handler): Delete.
18713 (set_reinsert_breakpoint): New.
18714 (reinsert_breakpoint_by_bp): Delete.
18715 (delete_reinsert_breakpoints): New.
18716 (uninsert_breakpoint): Rewrite.
18717 (uninsert_breakpoints_at): New.
18718 (reinsert_breakpoint): Rewrite.
18719 (reinsert_breakpoints_at): New.
18720 (check_breakpoints): Rewrite.
18721 (breakpoint_here): New.
18722 (breakpoint_inserted_here): New.
18723 (check_mem_read): Adjust.
18724 * mem-break.h (breakpoints_supported, breakpoint_here)
18725 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18726 (reinsert_breakpoint_by_bp): Delete declaration.
18727 (delete_reinsert_breakpoints): Declare.
18728 (reinsert_breakpoint): Delete declaration.
18729 (reinsert_breakpoints_at): Declare.
18730 (uninsert_breakpoint): Delete declaration.
18731 (uninsert_breakpoints_at): Declare.
18732 (check_breakpoints): Adjust prototype.
18733 * server.h: Adjust include order.
18734 (struct thread_info): Declare here. Add a `last_status' field.
18736 2010-03-23 Michael Snyder <msnyder@vmware.com>
18738 * server.c (crc32): New function.
18739 (handle_query): Add handling for 'qCRC:' request.
18741 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18743 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18744 lwp had been stopped by a watchpoint.
18746 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18748 * server.h (internal_error): Declare.
18749 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18750 * utils.c (internal_error): New function.
18752 2010-03-15 Andreas Schwab <schwab@redhat.com>
18754 * configure.srv: Fix typo setting srv_regobj.
18756 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18758 * linux-low.c (fetch_register): Avoid passing a non string literal
18760 (usr_store_inferior_registers): Ditto.
18762 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18764 * linux-low.c (linux_write_memory): Bail out early if peeking
18767 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18769 * linux-low.h (struct lwp_info): New fields
18770 `stopped_by_watchpoint' and `stopped_data_address'.
18771 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18772 here, and cache them in the lwp object.
18773 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18775 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18777 (linux_stopped_by_watchpoint): Rewrite.
18778 (linux_stopped_data_address): Rewrite.
18780 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18782 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18783 switching the current inferior, not before.
18785 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18787 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18788 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18789 i386-linux.c and amd64-linux.c.
18790 (reg-i386.o): Removed.
18791 (reg-i386.c): Likewise.
18792 (reg-i386-linux.o): Likewise.
18793 (reg-i386-linux.c): Likewise.
18794 (reg-x86-64.o): Likewise.
18795 (reg-x86-64.c): Likewise.
18796 (reg-x86-64-linux.o): Likewise.
18797 (reg-x86-64-linux.c): Likewise.
18799 (i386.c): Likewise.
18800 (i386-linux.o): Likewise.
18801 (i386-linux.c): Likewise.
18802 (amd64.o): Likewise.
18803 (amd64.c): Likewise.
18804 (amd64-linux.o): Likewise.
18805 (amd64-linux.c): Likewise.
18807 * configure.srv (srv_i386_regobj): New.
18808 (srv_i386_linux_regobj): Likewise.
18809 (srv_amd64_regobj): Likewise.
18810 (srv_amd64_linux_regobj): Likewise.
18811 (srv_i386_32bit_xmlfiles): Likewise.
18812 (srv_i386_64bit_xmlfiles): Likewise.
18813 (srv_i386_xmlfiles): Likewise.
18814 (srv_amd64_xmlfiles): Likewise.
18815 (srv_i386_linux_xmlfiles): Likewise.
18816 (srv_amd64_linux_xmlfiles): Likewise.
18817 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18818 srv_xmlfiles to $srv_i386_xmlfiles.
18819 (i[34567]86-*-mingw32ce*): Likewise.
18820 (i[34567]86-*-mingw*): Likewise.
18821 (i[34567]86-*-nto*): Likewise.
18822 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18823 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18824 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18825 (x86_64-*-linux*): Likewise.
18827 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18828 (init_registers_amd64_linux): New.
18829 (x86_arch_setup): Replace init_registers_x86_64_linux with
18830 init_registers_amd64_linux.
18832 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18834 * configure.ac: Check for libdl. If it is not available link against
18835 static libthread_db.
18836 * configure: Regenerate.
18838 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18842 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18843 handing a read watchpoint.
18844 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18846 2010-02-12 Doug Evans <dje@google.com>
18848 * linux-low.c (linux_supports_tracefork_flag): Document.
18849 (linux_look_up_symbols): Add comment.
18851 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18853 * regcache.c (supply_register): Clear regcache if buf is NULL.
18855 2010-02-02 Nicolas Roche <roche@sourceware.org>
18856 Joel Brobecker <brobecker@adacore.com>
18858 * inferiors.c (find_inferior): Add function documentation.
18859 (unloaded_dll): Handle the case where the unloaded dll has not
18860 been previously registered in the dll list.
18862 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18864 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18865 (thumb2_breakpoint): New.
18866 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18868 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18870 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18871 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18874 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18876 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18878 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18880 * linux-s390-low.c (s390_collect_ptrace_register)
18881 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18883 2010-01-21 Doug Evans <dje@google.com>
18885 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18886 (PTRACE_ARG4_TYPE): New macro.
18887 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18888 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18889 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18890 (usr_store_inferior_registers): Ditto.
18891 (linux_read_memory, linux_write_memory): Ditto.
18892 (linux_test_for_tracefork): Ditto.
18894 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18895 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18897 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18899 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18902 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18904 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18905 prototype to take a regcache. Adjust.
18907 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18909 * regcache.h (struct thread_info): Forward declare.
18910 (struct regcache): New.
18911 (new_register_cache): Adjust prototype.
18912 (get_thread_regcache): Declare.
18913 (free_register_cache): Adjust prototype.
18914 (registers_to_string, registers_from_string): Ditto.
18915 (supply_register, supply_register_by_name, collect_register)
18916 (collect_register_as_string, collect_register_by_name): Ditto.
18917 * regcache.c (struct inferior_regcache_data): Delete.
18918 (get_regcache): Rename to ...
18919 (get_thread_regcache): ... this. Adjust. Switch inferior before
18920 fetching registers.
18921 (regcache_invalidate_one): Adjust.
18922 (regcache_invalidate): Fix prototype.
18923 (new_register_cache): Return the new register cache.
18924 (free_register_cache): Change prototype.
18925 (realloc_register_cache): Adjust.
18926 (registers_to_string): Change prototype to take a regcache. Adjust.
18927 (registers_from_string): Ditto.
18928 (register_data): Ditto.
18929 (supply_register): Ditto.
18930 (supply_register_by_name): Ditto.
18931 (collect_register): Ditto.
18932 (collect_register_as_string): Ditto.
18933 (collect_register_by_name): Ditto.
18934 * server.c (process_serial_event): Adjust.
18935 * linux-low.h (regset_fill_func, regset_store_func): Change
18937 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18939 * linux-low.c (get_stop_pc): Adjust.
18940 (check_removed_breakpoint): Adjust.
18941 (linux_wait_for_event): Adjust.
18942 (linux_resume_one_lwp): Adjust.
18943 (fetch_register): Add regcache parameter. Adjust.
18944 (usr_store_inferior_registers): Ditto.
18945 (regsets_fetch_inferior_registers): Ditto.
18946 (regsets_store_inferior_registers): Ditto.
18947 (linux_fetch_registers, linux_store_registers): Ditto.
18948 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18950 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18952 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18953 prototype to take a regcache.
18954 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18955 * remote-utils.c (convert_ascii_to_int, outreg)
18956 (prepare_resume_reply): Change prototype to take a regcache.
18958 * target.h (struct target_ops) <fetch_registers, store_registers>:
18959 Change prototype to take a regcache.
18960 (fetch_inferior_registers, store_inferior_registers): Change
18961 prototype to take a regcache. Adjust.
18962 * proc-service.c (ps_lgetregs): Adjust.
18963 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18964 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18965 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18966 take a regcache. Adjust.
18967 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18968 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18969 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18970 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18971 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18972 (cris_cannot_fetch_register):
18973 (cris_breakpoint_at): Change prototype to take a regcache.
18975 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18976 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18977 to take a regcache. Adjust.
18978 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18980 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18981 take a regcache. Adjust.
18982 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18983 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18984 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18985 * linux-mips-low.c (mips_get_pc):
18986 (mips_set_pc): Change prototype to take a regcache. Adjust.
18987 (mips_reinsert_addr): Adjust.
18988 (mips_collect_register): Change prototype to take a regcache.
18990 (mips_supply_register):
18991 (mips_collect_register_32bit, mips_supply_register_32bit)
18992 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18993 (mips_store_fpregset): Ditto.
18994 * linux-ppc-low.c (ppc_supply_ptrace_register)
18995 (ppc_supply_ptrace_register): Ditto.
18996 (parse_spufs_run): Adjust.
18997 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18998 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18999 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19000 take a regcache. Adjust.
19001 * linux-s390-low.c (s390_collect_ptrace_register)
19002 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19003 (s390_set_pc): Change prototype to take a regcache. Adjust.
19004 (s390_arch_setup): Adjust.
19005 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19006 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19007 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19008 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19009 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19011 (sparc_breakpoint_at): Adjust.
19012 * linux-xtensa-low.c (xtensa_fill_gregset):
19013 (xtensa_store_gregset):
19014 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19015 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19016 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19017 prototype to take a regcache. Adjust.
19018 * win32-arm-low.c (arm_fetch_inferior_register)
19019 (arm_store_inferior_register): Change prototype to take a
19021 * win32-i386-low.c (i386_fetch_inferior_register)
19022 (i386_store_inferior_register): Change prototype to take a
19024 * win32-low.c (child_fetch_inferior_registers)
19025 (child_store_inferior_registers): Change prototype to take a
19027 (win32_wait): Adjust.
19028 (win32_fetch_inferior_registers): Change prototype to take a
19030 (win32_store_inferior_registers): Adjust.
19031 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19032 store_inferior_register>: Change prototype to take a regcache.
19034 2010-01-20 Doug Evans <dje@google.com>
19036 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19038 (linux_wait_for_event1, linux_init_signals): Ditto.
19039 (W_STOPCODE): Provide definition if missing.
19041 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19043 * linux-low.c (linux_core_of_thread): New.
19044 (compare_ints, show_process, list_threads): New.
19045 (linux_qxfer_osdata): Report threads and cores.
19046 (linux_target_op): Register linux_core_of_thread.
19047 * remote-utils.c (prepare_resume_reply): Report the core.
19048 (buffer_xml_printf): Support %d specifier.
19049 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19051 (handle_query): Handle qXfer:threads. Announce availability
19053 * target.h (struct target_ops): New field core_of_thread.
19055 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19057 * Makefile.in (clean): Remove new generated files.
19058 (reg-s390.o, reg-s390.c): Remove rules.
19059 (reg-s390x.o, reg-s390x.c): Likewise.
19060 (s390-linux32.o, s390-linux32.c): Add rules.
19061 (s390-linux64.o, s390-linux64.c): Likewise.
19062 (s390x-linux64.o, s390x-linux64.c): Likewise.
19063 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19064 * linux-s390-low.c: Include <elf.h>.
19065 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19066 (init_registers_s390): Remove prototype.
19067 (init_registers_s390x): Likewise.
19068 (init_registers_s390_linux32): Add prototype.
19069 (init_registers_s390_linux64): Likewise.
19070 (init_registers_s390x_linux64): Likewise.
19071 (s390_num_regs_3264): New define.
19072 (s390_regmap_3264): New global variable.
19073 (s390_cannot_fetch_register): Remove obsolete check.
19074 (s390_cannot_store_register): Likewise.
19075 (s390_collect_ptrace_register): Handle upper/lower register halves.
19076 (s390_supply_ptrace_register): Likewise.
19077 (s390_fill_gregset): Update to register number changes.
19078 (s390_get_hwcap): New routine.
19079 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19080 Install appropriate regmap and register set.
19082 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19084 * server.c (gdbserver_version): Update copyright year to 2010.
19085 * gdbreplay.c (gdbreplay_version): Likewise.
19087 2009-12-28 Doug Evans <dje@google.com>
19089 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19090 elf/external.h. Include <elf.h> instead but only if necessary.
19092 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19094 * linux-low.c (linux_remove_process): Remove `detaching'
19095 parameter. Don't release/detach from thread_db here.
19096 (linux_kill): Release/detach from thread_db here, ...
19097 (linux_detach): ... and here, before actually detaching.
19098 (linux_wait_1): ... and here, when a process exits.
19099 * thread-db.c (any_thread_of): New.
19100 (thread_db_free): Switch the current inferior to a thread of the
19103 2009-12-21 Doug Evans <dje@google.com>
19105 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19107 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19108 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19109 warning ifndef __NR_tkill. Move setting of errno there too.
19110 Delete unnecessary resetting of errno after syscall.
19111 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19113 * configure.ac: Check for dladdr.
19114 * config.in: Regenerate.
19115 * configure: Regenerate.
19116 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19117 (try_thread_db_load): Update.
19119 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19121 2009-12-18 Doug Evans <dje@google.com>
19123 * event-loop.c: Include unistd.h if it exists.
19125 * linux-low.c (my_waitpid): Move definition away from being in
19126 between linux_tracefork_child/linux_test_for_tracefork.
19128 * gdb_proc_service.h (psaddr_t): Fix type.
19129 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19130 signature to match glibc.
19132 2009-12-16 Doug Evans <dje@google.com>
19134 * linux-low.c (linux_read_memory): Fix argument to read.
19136 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19138 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19139 events, don't leave current_inferior pointing at null.
19141 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19143 * win32-low.c (LOG): Delete.
19144 (OUTMSG): Output to stderr.
19145 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19146 on compile time LOG macro.
19147 (win32_wait): Fix debug output.
19149 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19151 * win32-low.c (win32_add_one_solib): If the dll name is
19152 "ntdll.dll", prepend the system directory to the dll path.
19154 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19156 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19158 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19159 Vladimir Prus <vladimir@codesourcery.com>
19161 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19162 * configure.ac: Check for __mcoldfire__ and set
19163 gdb_cv_m68k_is_coldfire.
19164 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19165 reg-cf.o and reg-m68k.o.
19166 * configure: Regenerated.
19168 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19170 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19171 Pass it to thread_db_free.
19172 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19173 proper `detaching' argument to linux_remove_process.
19174 * linux-low.h (thread_db_free): Add `detaching' parameter.
19175 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19177 (thread_db_free): Add `detaching' parameter. Only
19178 call td_ta_clear_event if detaching from process.
19180 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19182 * thread-db.c (thread_db_free): Fix typo.
19184 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19187 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19189 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19191 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19192 with an i686 compiler.
19193 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19195 * configure: Rebuilt.
19197 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19201 * server.c (handle_search_memory_1): Correct read_addr initialization
19202 in loop for searching subsequent chunks.
19204 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19206 * configure.ac: New --with-libthread-db option.
19207 * thread-db.c: Allow direct dependence on libthread_db.
19208 (thread_db_free): Adjust.
19209 * config.in: Regenerate.
19210 * configure: Likewise.
19212 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19215 * thread-db.c (attach_thread): New function.
19216 (maybe_attach_thread): Return success/failure.
19217 (find_new_threads_callback): Adjust.
19218 (thread_db_find_new_threads): Loop until no new threads.
19220 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19222 * proc-service.c (ps_lgetregs): Formatting.
19224 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19226 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19227 * configure.ac: Adjust.
19228 * linux-low.h (struct process_info_private): Move members to struct
19230 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19231 * linux-low.c (linux_remove_process): Adjust.
19232 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19233 * server.c (handle_query): Move code ...
19234 (handle_monitor_command): ... here. New function.
19235 * target.h (struct target_ops): New member.
19236 * thread-db.c (struct thread_db): New.
19237 (libthread_db_search_path): New variable.
19238 (thread_db_create_event, thread_db_enable_reporting)
19239 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19240 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19241 (try_thread_db_load_1, dladdr_to_soname): New functions.
19242 (try_thread_db_load, thread_db_load_search): New functions.
19243 (thread_db_init): Search for libthread_db.
19244 (thread_db_free): New function.
19245 (thread_db_handle_monitor_command): Likewise.
19246 * config.in: Regenerate.
19247 * configure: Regenerate.
19249 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19251 * spu-low.c (spu_kill): Wait for inferior to terminate.
19252 Call clear_inferiors.
19253 (spu_detach): Call clear_inferiors.
19255 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19257 * aclocal.m4: Regenerate.
19258 * config.in: Likewise.
19259 * configure: Likewise.
19261 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19263 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19264 (parse_spufs_run): New function.
19265 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19266 (ppc_breakpoint_at): Handle SPU breakpoints.
19268 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19270 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19271 (SPUFS_MAGIC): Define.
19272 (spu_enumerate_spu_ids): New function.
19273 (linux_qxfer_spu): New function.
19274 (linux_target_ops): Install linux_qxfer_spu.
19276 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19278 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19279 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19280 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19281 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19282 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19283 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19284 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19285 (init_registers_powerpc_cell32l): Add prototype.
19286 (init_registers_powerpc_cell64l): Likewise.
19287 (ppc_arch_setup): Detect Cell/B.E. architecture.
19289 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19291 * Makefile.in (datarootdir): New variable.
19293 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19295 * linux-low.c (linux_write_memory): Update debugging output.
19296 * Makefile.in (clean): Add new descriptions.
19297 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19298 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19299 * configure.srv: Add new files for arm*-*-linux*.
19300 * linux-arm-low.c: Add new declarations.
19301 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19302 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19303 (HWCAP_VFPv3D16): New.
19304 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19305 instead of __IWMMXT__.
19306 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19307 (arm_arch_setup): New.
19308 (target_regsets): Remove #ifdef. Add VFP regset.
19309 (the_low_target): Use arm_arch_setup.
19311 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19313 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19314 the main thread again.
19316 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19318 Adding Neutrino gdbserver.
19319 * configure: Regenerated.
19320 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19321 * configure.srv (i[34567]86-*-nto*): New target.
19322 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19323 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19324 (nto_comctrl) [__QNX__]: New function.
19325 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19327 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19329 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19332 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19333 Pedro Alves <pedro@codesourcery.com>
19335 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19336 don't support CONTEXT_EXTENDED_REGISTERS.
19337 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19338 (the_low_target): Install them.
19339 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19340 failing with ERROR_PIPE_NOT_CONNECTED.
19342 2009-06-30 Doug Evans <dje@google.com>
19343 Pierre Muller <muller@ics.u-strasbg.fr>
19345 Add h/w watchpoint support to x86-linux, win32-i386.
19346 * Makefile.in (SFILES): Add i386-low.c
19347 (i386_low_h): Define.
19348 (i386-low.o): Add dependencies.
19349 (linux-x86-low.o): Add i386-low.h dependency.
19350 (win32-i386-low.o): Ditto.
19351 * i386-low.c: New file.
19352 * i386-low.h: New file.
19353 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19354 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19355 * linux-low.c (linux_add_process): Initialize arch_private.
19356 (linux_remove_process): Free arch_private.
19357 (add_lwp): Initialize arch_private.
19358 (delete_lwp): Free arch_private.
19359 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19361 * linux-low.h (process_info_private): New member arch_private.
19362 (lwp_info): New member arch_private.
19363 (linux_target_ops): New members new_process, new_thread,
19365 (ptid_of): New macro.
19366 * linux-x86-low.c: Include stddef.h, i386-low.h.
19367 (arch_process_info): New struct.
19368 (arch_lwp_info): New struct.
19369 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19370 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19371 (i386_dr_low_get_status): New function.
19372 (x86_insert_point, x86_remove_point): New functions.
19373 (x86_stopped_by_watchpoint): New function.
19374 (x86_stopped_data_address): New function.
19375 (x86_linux_new_process, x86_linux_new_thread): New functions.
19376 (x86_linux_prepare_to_resume): New function.
19377 (the_low_target): Add entries for insert_point, remove_point,
19378 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19380 * server.c (debug_hw_points): New global.
19381 (monitor_show_help): Document set debug-hw-points.
19382 (handle_query): Process "set debug-hw-points".
19383 * server.h (debug_hw_points): Declare.
19384 (paddress): Declare.
19385 * utils.c (NUMCELLS, CELLSIZE): New macros.
19386 (get_sell, xsnprintf, paddress): New functions.
19387 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19388 remove_point, stopped_by_watchpoint, stopped_data_address.
19389 * win32-i386-low.c: Include i386-low.h.
19390 (debug_reg_state): Replaces dr.
19391 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19392 (i386_dr_low_get_status): New function.
19393 (i386_insert_point, i386_remove_point): New functions.
19394 (i386_stopped_by_watchpoint): New function.
19395 (i386_stopped_data_address): New function.
19396 (i386_initial_stuff): Update.
19397 (get_thread_context,set_thread_context,i386_thread_added): Update.
19398 (the_low_target): Add entries for insert_point,
19399 remove_point, stopped_by_watchpoint, stopped_data_address.
19400 * win32-low.c (win32_insert_watchpoint): New function.
19401 (win32_remove_watchpoint): New function.
19402 (win32_stopped_by_watchpoint): New function.
19403 (win32_stopped_data_address): New function.
19404 (win32_target_ops): Add entries for insert_watchpoint,
19405 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19406 * win32-low.h (win32_target_ops): New members insert_point,
19407 remove_point, stopped_by_watchpoint, stopped_data_address.
19409 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19411 * server.c (process_serial_event): Re-return unsupported, not
19412 error, if the type isn't recognized. Re-allow supporting only
19413 insert or remove packets. Also call require_running for
19414 breakpoints. Add missing break statement to default case. Tidy.
19415 * target.h (struct target_ops): Rename insert_watchpoint to
19416 insert_point, and remove_watchpoint to remove_point.
19418 * linux-low.h (struct linux_target_ops): Likewise.
19419 * linux-low.c (linux_insert_watchpoint): Rename to ...
19420 (linux_insert_point): ... this. Adjust.
19421 (linux_remove_watchpoint): Rename to ...
19422 (linux_remove_point): ... this. Adjust.
19423 (linux_target_ops): Adjust.
19424 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19425 (cris_insert_point): ... this.
19426 (cris_remove_watchpoint): Rename to ...
19427 (cris_remove_point): ... this.
19428 (the_low_target): Adjust.
19430 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19432 * server.c (handle_v_kill): Pass signal_pid to
19433 kill_inferior if multi_process is zero.
19435 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19437 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19438 * target.h (target_ops): Comment for *_watchpoint to make it clear
19439 the functions can get types '0' and '1'.
19441 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19443 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19444 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19445 * regcache.c (get_regcache): Likewise.
19446 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19447 * win32-low.c (child_fetch_inferior_registers): Remove check for
19450 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19451 Pedro Alves <pedro@codesourcery.com>
19453 * target.h (struct target_ops) <supports_multi_process>: New
19455 (target_supports_multi_process): New.
19456 * server.c (handle_query): Even if GDB reports support, only
19457 enable multi-process if the target also supports it. Report
19458 multi-process support only if the target backend supports it.
19459 * linux-low.c (linux_supports_multi_process): New function.
19460 (linux_target_ops): Install it as target_supports_multi_process
19463 2009-05-24 Doug Evans <dje@google.com>
19465 Global renaming of find_thread_pid to find_thread_ptid.
19466 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19467 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19468 All callers updated.
19470 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19471 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19474 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19475 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19476 (linux_resume_one_lwp): Ditto.
19478 2009-05-23 Doug Evans <dje@google.com>
19480 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19481 from struct inferior_list_entry * to struct lwp_info *.
19482 All callers updated.
19484 2009-05-13 Doug Evans <dje@google.com>
19486 * linux-x86-low.c: Don't include assert.h.
19487 (x86_siginfo_fixup): Use fatal, not assert.
19488 (x86_arch_setup): Fix comment.
19490 2009-05-12 Doug Evans <dje@google.com>
19492 Biarch support for i386/amd64 gdbserver.
19493 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19494 Add linux-x86-low.c.
19495 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19496 (linux-x86-low.o): Add.
19497 * linux-x86-64-low.c: Delete.
19498 * linux-i386-low.c: Delete.
19499 * linux-x86-low.c: New file.
19500 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19502 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19504 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19505 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19506 (linux_child_pid_to_exec_file): New function.
19507 (elf_64_header_p, elf_64_file_p): New functions.
19508 (siginfo_fixup): New function.
19509 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19510 give target a chance to convert layout.
19511 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19512 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19514 2009-05-07 Doug Evans <dje@google.com>
19516 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19517 (regsets_store_inferior_registers): Ditto.
19519 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19523 * linux-low.c (must_set_ptrace_flags): Delete.
19524 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19526 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19527 `lwp->must_set_ptrace_flags' instead.
19528 (linux_wait_for_event_1): Set ptrace options here.
19529 (linux_wait_1): ... not here.
19531 2009-04-30 Doug Evans <dje@google.com>
19533 * inferiors.c (started_inferior_callback): New function.
19534 (attached_inferior_callback): New function.
19535 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19536 * server.c (print_started_pid, print_attached_pid): New functions.
19537 (detach_or_kill_for_exit): New function.
19538 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19539 * server.h (have_started_inferiors_p): Declare.
19540 (have_attached_inferiors_p): Declare.
19542 * inferiors.c (remove_process): Fix memory leak, free process.
19543 * linux-low.c (linux_remove_process): New function.
19544 (linux_kill): Call it instead of remove_process.
19545 (linux_detach, linux_wait_1): Ditto.
19547 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19549 * configure.srv: Add x86 Windows CE target.
19551 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19553 * inferiors.c (get_thread_process): Make global.
19554 * server.h (get_thread_process): Add prototype.
19555 * thread-db.c (find_one_thread): Use get_thread_process
19556 instead of current_process.
19557 (thread_db_get_tls_address): Do not crash if called when
19558 thread layer is not yet initialized.
19560 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19562 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19563 * spu-low.c (current_tid): Rename to ...
19564 (current_ptid): ... this.
19565 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19566 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19567 ptid_get_lwp (current_ptid) instead of current_tid.
19568 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19569 instead of current_tid. Use find_process_pid to verify pid
19570 argument is valid. Pass proper argument to remove_process.
19571 (spu_thread_alive): Compare current_ptid instead of current_tid.
19572 (spu_resume): Likewise.
19574 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19576 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19579 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19581 Implement the multiprocess extensions, and add linux multiprocess
19584 * server.h (ULONGEST): Declare.
19585 (struct ptid, ptid_t): New.
19586 (minus_one_ptid, null_ptid): Declare.
19587 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19588 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19589 (struct inferior_list_entry): Change `id' type from unsigned from
19591 (struct sym_cache, struct breakpoint, struct
19592 process_info_private): Forward declare.
19593 (struct process_info): Declare.
19594 (current_process): Declare.
19595 (all_processes): Declare.
19596 (initialize_inferiors): Declare.
19597 (add_thread): Adjust to use ptid_t.
19598 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19599 (add_process, remove_process, find_thread_pid): Declare.
19600 (find_inferior_id): Adjust to use ptid_t.
19601 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19602 (multi_process): Declare.
19603 (push_event): Adjust to use ptid_t.
19604 (read_ptid, write_ptid): Declare.
19605 (prepare_resume_reply): Adjust to use ptid_t.
19606 (clear_symbol_cache): Declare.
19607 * inferiors.c (all_processes): New.
19608 (null_ptid, minus_one_ptid): New.
19609 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19610 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19611 (add_thread): Change unsigned long to ptid. Remove gdb_id
19613 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19614 (gdb_id_to_thread): Rename to ...
19615 (find_thread_pid): ... this. Change unsigned long to ptid.
19616 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19617 (loaded_dll, pull_pid_from_list): Adjust.
19618 (add_process, remove_process, find_process_pid)
19619 (get_thread_process, current_process, initialize_inferiors): New.
19620 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19621 (struct target_waitstatus) <related_pid>: Ditto.
19622 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19623 return type to int.
19624 (struct target_ops) <join>: Add `pid' argument.
19625 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19626 (struct target_ops) <wait>: Add `ptid' field. Change return type
19628 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19629 (mywait): Add `ptid' argument. Change return type to ptid_t.
19630 (target_pid_to_str): Declare.
19631 * target.c (set_desired_inferior): Adjust to use ptids.
19632 (mywait): Add new `ptid' argument. Adjust.
19633 (target_pid_to_str): New.
19634 * mem-break.h (free_all_breakpoints): Declare.
19635 * mem-break.c (breakpoints): Delelete.
19636 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19637 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19638 to use per-process breakpoint list.
19639 (free_all_breakpoints): New.
19640 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19641 (symbol_cache, all_symbols_looked_up): Delete.
19643 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19645 (prepare_resume_reply): Change ptid argument's type from unsigned
19646 long to ptid_t. Adjust. Implement W;process and X;process.
19647 (free_sym_cache, clear_symbol_cache): New.
19648 (look_up_one_symbol): Adjust to per-process symbol cache. *
19649 * server.c (cont_thread, general_thread, step_thread): Change type
19651 (attached): Delete.
19652 (multi_process): New.
19653 (last_ptid): Change type to ptid_t.
19654 (struct vstop_notif) <ptid>: Change type to ptid_t.
19655 (queue_stop_reply, push_event): Change `ptid' argument's type to
19657 (discard_queued_stop_replies): Add `pid' argument.
19658 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19659 changes. Don't reference the `attached' global.
19660 (attach_inferior): Adjust to mywait interface changes.
19661 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19662 features. Handle and report "multiprocess+". Handle
19664 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19666 (handle_v_kill): New.
19667 (handle_v_stopped): Adjust to use target_pid_to_str.
19668 (handle_v_requests): Allow multiple attaches and runs when
19669 multiprocess extensions are in effect. Handle "vKill".
19670 (myresume): Adjust to use ptids.
19671 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19672 (handle_status): Adjust to discard_queued_stop_replies interface
19674 (first_thread_of, kill_inferior_callback)
19675 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19676 (main): Call initialize_inferiors. Adjust to use ptids, killing
19677 and detaching from all inferiors. Handle multiprocess packet
19679 * linux-low.h: Include gdb_proc_service.h.
19680 (struct process_info_private): New.
19681 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19682 <lwpid_of>: Use ptid_get_lwp.
19683 (get_lwp_thread): Adjust.
19684 (struct lwp_info): Add `dead' member.
19685 (find_lwp_pid): Declare.
19686 * linux-low.c (thread_db_active): Delete.
19687 (new_inferior): Adjust comment.
19688 (inferior_pid): Delete.
19689 (linux_add_process): New.
19690 (handle_extended_wait): Adjust.
19691 (add_lwp): Change unsigned long to ptid.
19692 (linux_create_inferior): Add process to processes table. Adjust
19693 to use ptids. Don't set new_inferior here.
19694 (linux_attach_lwp): Rename to ...
19695 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19696 it. Adjust to use ptids.
19697 (linux_attach_lwp): New.
19698 (linux_attach): Add process to processes table. Don't set
19700 (struct counter): New.
19701 (second_thread_of_pid_p, last_thread_of_process_p): New.
19702 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19703 multiple processes.
19704 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19705 processes. Remove process from process table.
19706 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19707 to multiple processes.
19708 (any_thread_of): New.
19709 (linux_detach): Add `pid' argument, and handle it. Remove process
19710 from processes table.
19711 (linux_join): Add `pid' argument. Handle it.
19712 (linux_thread_alive): Change unsighed long argument to ptid_t.
19713 Consider dead lwps as not being alive.
19714 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19715 threads we're not interested in.
19716 (same_lwp, find_lwp_pid): New.
19717 (linux_wait_for_lwp): Change `pid' argument's type from int to
19719 (linux_wait_for_event): Rename to ...
19720 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19721 from int to ptid_t. Adjust.
19722 (linux_wait_for_event): New.
19723 (linux_wait_1): Add `ptid' argument. Change return type to
19724 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19725 that exit from the process table.
19726 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19728 (mark_lwp_dead): New.
19729 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19730 stopping all threads, mark its main lwp as dead.
19731 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19733 (fetch_register, usr_store_inferior_registers)
19734 (regsets_fetch_inferior_registers)
19735 (regsets_store_inferior_registers, linux_read_memory)
19736 (linux_write_memory): Inline `inferior_pid'.
19737 (linux_look_up_symbols): Adjust to use per-process
19738 `thread_db_active'.
19739 (linux_request_interrupt): Adjust to use ptids.
19740 (linux_read_auxv): Inline `inferior_pid'.
19741 (initialize_low): Don't reference thread_db_active.
19742 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19743 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19744 (ps_getpid): Return the pid of the current inferior.
19745 * thread-db.c (proc_handle, thread_agent): Delete.
19746 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19748 (find_one_thread): Change argument type to ptid_t. Adjust to
19750 (maybe_attach_thread): Adjust to per-process data and ptids.
19751 (thread_db_find_new_threads): Ditto.
19752 (thread_db_init): Ditto.
19753 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19754 processes table. Adjust to use ptids.
19755 (spu_kill, spu_detach): Adjust interface. Remove process from
19757 (spu_join, spu_thread_alive): Adjust interface.
19758 (spu_wait): Adjust interface. Remove process from processes
19759 table. Adjust to use ptids.
19760 * win32-low.c (current_inferior_tid): Delete.
19761 (current_inferior_ptid): New.
19762 (debug_event_ptid): New.
19763 (thread_rec): Take a ptid. Adjust.
19764 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19765 (child_delete_thread): Ditto.
19766 (do_initial_child_stuff): Add `attached' argument. Add process to
19768 (child_fetch_inferior_registers, child_store_inferior_registers):
19770 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19771 (win32_attach): Pass 1 to do_initial_child_stuff.
19772 (win32_kill): Adjust interface. Remove process from processes
19774 (win32_detach): Ditto.
19775 (win32_join): Adjust interface.
19776 (win32_thread_alive): Take a ptid.
19777 (win32_resume): Adjust to use ptids.
19778 (get_child_debug_event): Ditto.
19779 (win32_wait): Adjust interface. Remove exiting process from
19782 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19784 Non-stop mode support.
19786 * server.h (non_stop): Declare.
19787 (gdb_client_data, handler_func): Declare.
19788 (delete_file_handler, add_file_handler, start_event_loop):
19790 (handle_serial_event, handle_target_event, push_event)
19791 (putpkt_notif): Declare.
19792 * target.h (enum resume_kind): New.
19793 (struct thread_resume): Replace `step' field by `kind' field.
19794 (TARGET_WNOHANG): Define.
19795 (struct target_ops) <wait>: Add `options' argument.
19796 <supports_non_stop, async, start_non_stop>: New fields.
19797 (target_supports_non_stop, target_async): New.
19798 (start_non_stop): Declare.
19799 (mywait): Add `options' argument.
19800 * target.c (mywait): Add `options' argument. Print child exit
19801 notifications here.
19802 (start_non_stop): New.
19803 * server.c (non_stop, own_buf, mem_buf): New globals.
19804 (struct vstop_notif): New.
19805 (notif_queue): New global.
19806 (queue_stop_reply, push_event, discard_queued_stop_replies)
19807 (send_next_stop_reply): New.
19808 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19810 (attach_inferior): In non-stop mode, don't wait for the target
19812 (handle_general_set): Handle QNonStop.
19813 (handle_query): When handling qC, return the current general
19814 thread, instead of the first thread of the list.
19815 (handle_query): If the backend supports non-stop mode, include
19816 QNonStop+ in the qSupported query response.
19817 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19819 (handle_v_attach, handle_v_run): Handle non-stop mode.
19820 (handle_v_stopped): New.
19821 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19822 (myresume): Adjust to use resume_kind. Handle non-stop.
19823 (queue_stop_reply_callback): New.
19824 (handle_status): Handle non-stop mode.
19825 (main): Clear non_stop flag on reconnection. Use the event-loop.
19826 Refactor serial protocol handling from here ...
19827 (process_serial_event): ... to this new function. When GDB
19828 selects any thread, select one here. In non-stop mode, wait until
19829 GDB acks all pending events before exiting.
19830 (handle_serial_event, handle_target_event): New.
19831 * remote-utils.c (remote_open): Install remote_desc in the event
19833 (remote_close): Remove remote_desc from the event loop.
19834 (putpkt_binary): Rename to...
19835 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19836 (putpkt_binary): New as wrapper around putpkt_binary_1.
19837 (putpkt_notif): New.
19838 (prepare_resume_reply): In non-stop mode, don't change the
19840 * event-loop.c: New.
19841 * Makefile.in (OBJ): Add event-loop.o.
19842 (event-loop.o): New rule.
19844 * linux-low.h (pid_of): Moved here.
19846 (get_lwp_thread): Use lwpid_of.
19847 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19848 * linux-low.c (pid_of): Delete.
19849 (inferior_pid): Use lwpid_of.
19850 (linux_event_pipe): New.
19851 (target_is_async_p): New.
19853 (handle_extended_wait): Use lwpid_of.
19854 (add_lwp): Don't set lwpid field.
19855 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19856 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19857 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19858 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19859 first. Adjust to linux_wait_for_event interface changes. Use
19861 (linux_detach): Don't delete the main lwp here.
19862 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19863 (status_pending_p): Don't consider explicitly suspended lwps.
19864 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19865 pointer. Add OPTIONS argument. Change return type to int. Use
19866 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19867 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19868 pointer. Add status pointer argument. Return a pid instead of a
19869 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19870 changes. In non-stop mode, don't switch to a random thread.
19871 (linux_wait): Rename to...
19872 (linux_wait_1): ... this. Add target_options argument, and handle
19873 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19874 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19875 clean exit and signal exit code. Don't stop all threads in
19876 non-stop mode. In all-stop mode, only stop all threads when
19877 reporting a stop to GDB. Handle explicit thread stop requests.
19878 (async_file_flush, async_file_mark): New.
19880 (send_sigstop): Use lwpid_of.
19881 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19882 interface changes. In non-stop mode, don't switch to a random
19884 (linux_resume_one_lwp): Use lwpid_of.
19885 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19886 (linux_resume_one_thread): ... this. Handle resume_stop. In
19887 non-stop mode, don't look for pending flag in all threads.
19888 (resume_status_pending_p): Don't consider explicitly suspended
19890 (my_waitpid): Reimplement. Emulate __WALL.
19891 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19893 (sigchld_handler, linux_supports_non_stop, linux_async)
19894 (linux_start_non_stop): New.
19895 (linux_target_ops): Register linux_supports_non_stop, linux_async
19896 and linux_start_non_stop.
19897 (initialize_low): Install SIGCHLD handler.
19898 * thread-db.c (thread_db_create_event, find_one_thread)
19899 (thread_db_get_tls_address): Use lwpid_of.
19900 * win32-low.c (win32_detach): Adjust to use resume_kind.
19901 (win32_wait): Add `options' argument.
19902 * spu-low.c (spu_resume): Adjust to use resume_kind.
19903 (spu_wait): Add `options' argument.
19905 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19907 Decouple target code from remote protocol.
19909 * target.h (enum target_waitkind): New.
19910 (struct target_waitstatus): New.
19911 (struct target_ops) <wait>: Return an unsigned long. Take a
19912 target_waitstatus pointer instead of a char pointer.
19913 (mywait): Likewise.
19914 * target.c (mywait): Change prototype to return an unsigned long.
19915 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19916 * server.h (thread_from_wait, old_thread_from_wait): Delete
19918 (prepare_resume_reply): Change prototype to take a
19920 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19921 (last_status, last_ptid): New.
19922 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19923 pid instead of a signal.
19924 (attach_inferior): Remove "status" and "signal" parameters.
19926 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19928 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19929 (handle_v_requests, myresume): Remove "status" and "signal"
19930 parameters. Adjust.
19931 (handle_status): New.
19932 (main): Delete local `status'. Adjust.
19933 * remote-utils.c: Include target.h.
19934 (prepare_resume_reply): Change prototype to take a
19935 target_waitstatus. Adjust.
19937 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19939 * spu-low.c (spu_wait): Adjust.
19940 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19942 (win32_wait): Adjust.
19944 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19946 * target.h (struct thread_resume): Delete leave_stopped member.
19947 (struct target_ops): Add a `n' argument to the `resume' callback.
19948 * server.c (start_inferior): Adjust.
19949 (handle_v_cont, myresume): Adjust.
19950 * linux-low.c (check_removed_breakpoint): Adjust to resume
19951 interface change, and to removed leave_stopped field.
19952 (resume_ptr): Delete.
19953 (struct thread_resume_array): New.
19954 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19955 resume interface change.
19956 (linux_continue_one_thread, linux_queue_one_thread)
19957 (resume_status_pending_p): Check if the resume field is NULL
19958 instead of checking the leave_stopped member.
19959 (linux_resume): Adjust to the target resume interface change.
19960 * spu-low.c (spu_resume): Adjust to the target resume interface
19962 * win32-low.c (win32_detach, win32_resume): Ditto.
19964 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19966 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19968 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19970 (linux_continue_one_thread): Only preserve the stepping flag if
19971 there's a pending breakpoint.
19973 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19975 * server.c (main): After the inferior having exited, call
19976 remote_close before exiting gdbserver.
19978 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19980 Fix size of FPSCR in Power 7 processors.
19981 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19982 (PPC_FEATURE_HAS_DFP): New #define.
19983 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19986 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19988 * server.c (handle_query) Whitespace and formatting.
19990 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19992 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19993 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19994 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19995 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19996 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19997 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19998 Makefile.in, configure.ac: Fix whitespace throughout.
19999 * configure: Regenerate.
20001 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20003 * inferiors.c (find_inferior): Make it safe for the callback
20004 function to delete the currently iterated inferior.
20006 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20008 * Makefile.in (linuw_low_h): Move higher.
20009 (thread-db.o): Depend on $(linux_low_h).
20011 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20013 Rename "process" to "lwp" throughout.
20015 * linux-low.c (all_processes): Rename to...
20016 (all_lwps): ... this.
20017 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20018 (add_process): Rename to ...
20019 (add_lwp): ... this. Adjust.
20020 (linux_create_inferior): Adjust.
20021 (linux_attach_lwp): Adjust.
20022 (linux_attach): Adjust.
20023 (linux_kill_one_process): Rename to ...
20024 (linux_kill_one_lwp): ... this. Adjust.
20025 (linux_kill): Adjust.
20026 (linux_detach_one_process): Rename to ...
20027 (linux_detach_one_lwp): ... this. Adjust.
20028 (linux_detach): Adjust.
20029 (check_removed_breakpoint): Adjust.
20030 (status_pending_p): Adjust.
20031 (linux_wait_for_process): Rename to ...
20032 (linux_wait_for_lwp): ... this. Adjust.
20033 (linux_wait_for_event): Adjust.
20034 (send_sigstop): Adjust.
20035 (wait_for_sigstop): Adjust.
20036 (stop_all_processes): Rename to ...
20037 (stop_all_lwps): ... this.
20038 (linux_resume_one_process): Rename to ...
20039 (linux_resume_one_lwp): ... this. Adjust.
20040 (linux_set_resume_request, linux_continue_one_thread)
20041 (linux_queue_one_thread, resume_status_pending_p)
20042 (usr_store_inferior_registers, regsets_store_inferior_registers)
20043 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20045 * linux-low.h (get_process): Rename to ...
20046 (get_lwp): ... this. Adjust.
20047 (get_thread_process): Rename to ...
20048 (get_thread_lwp): ... this. Adjust.
20049 (get_process_thread): Rename to ...
20050 (get_lwp_thread): ... this. Adjust.
20051 (struct process_info): Rename to ...
20052 (struct lwp_info): ... this.
20053 (all_processes): Rename to ...
20054 (all_lwps): ... this.
20055 * proc-service.c (ps_lgetregs): Adjust.
20056 * thread-db.c (thread_db_create_event, find_one_thread)
20057 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20059 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20061 * server.c (handle_query): Handle "qAttached".
20063 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20065 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20066 GPLv3, update license URL.
20068 2009-03-01 Doug Evans <dje@google.com>
20070 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20071 (server_h): Add gdb_signals.h.
20072 (signals.o): Update.
20073 * server.h (target_signal_from_host,target_signal_to_host_p)
20074 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20076 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20078 * remote-utils.c (getpkt): Also generate remote-debug
20079 information if noack_mode is set.
20081 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20083 * server.c (handle_query): Report qXfer:siginfo:read and
20084 qXfer:siginfo:write as supported and handle them.
20085 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20086 * linux-low.c (linux_xfer_siginfo): New.
20087 (linux_target_ops): Set it.
20089 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20091 * server.c (gdbserver_usage): Mention --remote-debug.
20092 (main): Accept '--remote-debug' switch.
20094 2009-01-18 Doug Evans <dje@google.com>
20096 * regcache.c (new_register_cache): No need to check result of xcalloc.
20097 * server.c (handle_search_memory): Back out calls to xmalloc,
20098 result is checked and error is returned to user upon failure.
20099 (handle_query): Ditto. Add more checks for result of malloc.
20100 (handle_v_cont): Check result of malloc, report error back to
20102 (handle_v_run): Ditto. Call freeargv.
20103 * server.h (freeargv): Declare.
20104 * utils.c (freeargv): New fn.
20106 2009-01-15 Doug Evans <dje@google.com>
20108 * gdbreplay.c (perror_with_name): Make arg const char *.
20109 * server.h (target_signal_to_name): Make return type const char *.
20110 * thread-db.c (thread_db_err_str): Make return type const char *.
20111 * utils.c (perror_with_name): Make arg const char *.
20113 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20115 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20116 when handling a EXIT_PROCESS_DEBUG_EVENT.
20118 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20120 * gdbreplay.c (gdbreplay_version): Update copyright year.
20121 * server.c (gdbserver_version): Likewise.
20123 2009-01-05 Doug Evans <dje@google.com>
20125 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20126 (handle_extended_wait): Improve comment.
20128 2008-12-13 Doug Evans <dje@google.com>
20130 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20131 * server.h (ATTR_MALLOC): New macro.
20132 (xmalloc,xcalloc,xstrdup): Declare.
20133 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20134 * inferiors.c: Ditto.
20135 * linux-low.c: Ditto.
20136 * mem-break.c: Ditto.
20137 * regcache.c: Ditto.
20138 * remote-utils.c: Ditto.
20141 * win32-low.c: Ditto.
20143 2008-12-12 Doug Evans <dje@google.com>
20145 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20146 in debugging printf.
20148 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20150 2008-12-09 Doug Evans <dje@google.com>
20152 * linux-low.h (struct process_info): Delete member tid, unused.
20153 * thread-db.c (find_one_thread): Update.
20154 (maybe_attach_thread): Update.
20156 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20158 * target.h (struct target_ops): Add qxfer_osdata member.
20159 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20161 (linux_qxfer_osdata): New functions.
20162 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20164 * server.c (handle_query): Handle "qXfer:osdata:read:".
20165 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20166 (buffer_xml_printf): New functions.
20167 * server.h (struct buffer): New.
20168 (buffer_grow_str, buffer_grow_str0): New macros.
20169 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20170 (buffer_xml_printf): Declare.
20172 2008-11-24 Doug Evans <dje@google.com>
20174 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20176 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20178 * server.c (handle_v_run): Always use the supplied argument list.
20180 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20182 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20183 (xtensa_regmap_table): Add entry for scompare1.
20185 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20187 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20188 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20189 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20190 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20191 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20192 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20193 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20194 XML target descriptions.
20195 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20196 when inferior is running on an ISA 2.05 or later processor. Add
20197 special case to return offset for full 64-bit slot of FPSCR when
20200 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20202 * Makefile.in (SFILES, clean): Added sparc64 files.
20203 (reg-sparc64.o, reg-sparc64.c): New.
20204 * configure.srv (sparc*-*-linux*): New configuration.
20205 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20206 syscall arguments for SPARC.
20207 (regsets_store_inferior_registers): Likewise.
20208 * linux-sparc-low.c: New file.
20210 2008-10-21 Doug Evans <dje@google.com>
20212 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20213 (READLINE_DIR,READLINE_DEP): Delete.
20214 (INTERNAL_CFLAGS): Update.
20215 (LINTFLAGS): Update.
20217 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20219 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20220 whole argv from the last run, not just argv[0].
20222 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20224 * regcache.c (new_register_cache): Return NULL if the register
20225 cache size isn't known yet.
20226 (free_register_cache): Avoid dereferencing a NULL regcache.
20228 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20230 * configure.srv: Merge MIPS and MIPS64.
20232 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20234 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20236 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20238 * Makefile.in: Add required vsx dependencies.
20240 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20241 Declare init_registers_powerpc_vsx32l.
20242 Declare init_registers_powerpc_vsx64l.
20243 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20244 (ppc_arch_setup): Check for VSX in hwcap.
20245 (ppc_fill_vsxregset): New function.
20246 (ppc_store_vsxregset): New function.
20247 Add new VSX entry in regset_info target_regsets.
20249 * configure.srv: Add new VSX dependencies.
20251 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20253 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20254 (remote_open): Set or clear transport_is_reliable.
20255 (putpkt_binary): Don't expect acks in noack mode.
20256 (getpkt): Don't send ack/nac in noack mode.
20257 * server.c (handle_general_set): Handle QStartNoAckMode.
20258 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20260 (main): Reset noack_mode on every connection.
20261 * server.h (noack_mode): Declare.
20263 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20265 * Makefile.in (GDBREPLAY_OBS): New variable.
20266 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20268 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20269 Daniel Jacobowitz <dan@codesourcery.com>
20271 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20272 (usr_store_inferior_registers): Likewise.
20273 (regsets_store_inferior_registers): Likewise.
20275 2008-07-31 Rolf Jansen <rj@surtec.com>
20276 Pedro Alves <pedro@codesourcery.com>
20278 * configure.ac: Check for memmem declaration.
20279 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20280 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20281 (disable_packet_qfThreadInfo): Unconditionally compile.
20282 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20283 * configure, config.in: Regenerate.
20285 2008-07-28 Doug Kwan <dougkwan@google.com>
20287 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20288 (linux_write_memory): Remove declaration of errno.
20290 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20292 * linux-low.c (handle_extended_wait): Do not use "status"
20293 variable uninitialized.
20295 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20297 * server.c (handle_v_attach): Inhibit reporting dll changes.
20299 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20301 * remote-utils.c (prepare_resume_reply): If requested, don't
20302 output "thread:TID" in the T stop reply.
20304 * server.c (disable_packet_vCont, disable_packet_Tthread)
20305 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20306 (handle_query): If requested, disable support for qC, qfThreadInfo
20308 (handle_v_requests): If requested, disable support for vCont.
20309 (gdbserver_show_disableable): New.
20310 (main): Handle --disable-packet and --disable-packet=LIST.
20312 * server.h (disable_packet_vCont, disable_packet_Tthread)
20313 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20315 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20317 * server.c (gdbserver_usage): Mention --version.
20319 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20321 * Makefile.in (gdbreplay.o): New rule.
20323 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20325 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20326 message, not gdbserver.
20328 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20329 Nathan Sidwell <nathan@codesourcery.com>
20330 Joseph Myers <joseph@codesourcery.com>
20332 * acinclude.m4: Include ../../config/acx.m4.
20333 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20334 * configure, config.in: Regenerate.
20335 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20336 * server.c (gdbserver_version): Print PKGVERSION.
20337 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20338 (main): Adjust gdbserver_usage calls.
20339 * gdbreplay.c (version, host_name): Add declarations.
20340 (gdbreplay_version, gdbreplay_usage): New.
20341 (main): Accept --version and --help options.
20343 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20345 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20346 (arm_breakpoint_at): Handle Thumb.
20347 (the_low_target): Add comment.
20349 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20351 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20353 2008-05-09 Doug Evans <dje@google.com>
20355 * server.h (decode_search_memory_packet): Declare.
20356 * remote-utils.c (decode_search_memory_packet): New fn.
20357 * server.c (handle_search_memory_1): New fn.
20358 (handle_search_memory): New fn.
20359 (handle_query): Process qSearch:memory packets.
20361 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20363 * regcache.c (registers_length): Remove.
20364 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20365 full register packet.
20366 * regcache.h (registers_length): Remove prototype.
20367 * server.h (PBUFSIZ): Define to 16384.
20369 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20371 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20372 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20373 powerpc-64l.o, and powerpc-altivec64l.o.
20374 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20375 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20376 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20377 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20378 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20381 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20382 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20383 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20384 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20385 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20386 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20387 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20388 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20389 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20390 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20393 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20394 (init_registers_powerpc_32l): ... this new prototype.
20395 (init_registers_powerpc_32): Remove, replace by ...
20396 (init_registers_powerpc_altivec32l): ... this new prototype.
20397 (init_registers_powerpc_e500): Remove, replace by ...
20398 (init_registers_powerpc_e500l): ... this new prototype.
20399 (init_registers_ppc64): Remove, replace by ...
20400 (init_registers_powerpc_64l): ... this new prototype.
20401 (init_registers_powerpc_64): Remove, replace by ...
20402 (init_registers_powerpc_altivec64l): ... this new prototype.
20403 (ppc_num_regs): Set to 73.
20404 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20405 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20406 (ppc_cannot_store_register): Handle orig_r3 and trap.
20407 (ppc_arch_setup): Update init_registers_... calls.
20408 (ppc_fill_gregset): Handle orig_r3 and trap.
20410 * inferiors.c (clear_inferiors): Reset current_inferior.
20412 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20414 * acinclude.m4: Add override.m4.
20415 * configure: Regenerate.
20417 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20419 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20420 initial call to init_register_ppc64.
20422 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20424 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20425 single powerpc*-*-linux* case.
20426 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20428 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20430 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20431 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20433 * linux-ppc-low.c: Include <elf.h>.
20434 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20435 (ppc_hwcap): New global variable.
20436 (ppc_regmap): Remove __SPE__ #ifdef sections.
20437 (ppc_regmap_e500): New global variable.
20438 (ppc_cannot_store_register): Update __SPE__ special case.
20439 (ppc_get_hwcap): New function.
20440 (ppc_arch_setup): Use it to determine whether inferior supports
20441 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20442 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20443 Do not access registers if target does not support AltiVec.
20444 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20445 Do not access registers if target does not support SPE.
20446 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20448 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20450 * linux-low.c (disabled_regsets, num_regsets): New.
20451 (use_regsets_p): Delete.
20452 (linux_wait_for_process): Clear disabled_regsets.
20453 (regsets_fetch_inferior_registers): Check and set it.
20454 (regsets_store_inferior_registers): Likewise.
20455 (linux_fetch_registers, linux_store_registers): Do not use
20457 (initialize_low): Allocate disabled_regsets.
20459 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20461 * Makefile.in (LIBOBJS): New.
20462 (OBS): Use LIBOBJS.
20463 (memmem.o): New rule.
20464 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20465 * configure: Regenerated.
20467 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20469 * server.c (handle_query): Never return "unsupported" for
20470 qXfer:features:read queries.
20472 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20474 * server.c (get_features_xml): Fix inverted condition.
20475 (handle_query): Always support qXfer:feature:read.
20477 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20479 * server.c (wrapper_argv): New.
20480 (start_inferior): Handle wrapper_argv. If set, expect an extra
20482 (gdbserver_usage): Document --wrapper.
20483 (main): Parse --wrapper.
20485 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20487 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20488 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20489 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20490 (ppc_set_pc): Likewise.
20491 (ppc_arch_setup): New function.
20492 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20493 of collect_register.
20494 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20496 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20498 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20499 instead of linux-ppc64-low.o.
20500 * linux-ppc64-low.c: Remove file.
20501 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20502 (linux-ppc64-low.o): Remove rule.
20504 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20505 (init_registers_powerpc_64): Likewise.
20506 (ppc_regmap): Conditionally define depending on __powerpc64__.
20507 (ppc_cannot_store_register): Do not special-case "fpscr" when
20508 compiled on __powerpc64__.
20509 (ppc_collect_ptrace_register): New function.
20510 (ppc_supply_ptrace_register): New function.
20511 (ppc_breakpoint): Change type to "unsigned int".
20512 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20513 (the_low_target): Conditionally provide initializers for the
20514 arch_setup member depending on __powerpc64__. Install
20515 collect_ptrace_register and supply_ptrace_register members.
20517 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20519 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20520 * server.c (gdbserver_xmltarget): Define.
20521 (get_features_xml): Use it to replace "target.xml" and arch_string.
20523 * configure.srv: Remove srv_xmltarget. Add XML files that were
20524 mentioned there to srv_xmlfiles instead. Remove conditional tests
20525 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20526 srv_xmlfiles and srv_regobj to include all possible choices.
20527 * configure.ac (srv_xmltarget): Remove.
20528 (srv_xmlfiles): Do not add "target.xml".
20529 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20530 checks for supplementary target information.
20531 * configure: Regenerate.
20532 * Makefile.in (XML_TARGET): Remove.
20533 (target.xml): Remove rule.
20534 (clean): Do not clean up target.xml.
20535 (.PRECIOUS): Do not mention target.xml.
20537 * target.h (struct target_ops): Remove arch_string member.
20538 * linux-low.c (linux_arch_string): Remove.
20539 (linux_target_ops): Remove arch_string initializer.
20540 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20541 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20542 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20543 * spu-low.c (spu_arch_string): Remove.
20544 (spu_target_ops): Remove arch_string initializer.
20545 * win32-low.c (win32_arch_string): Remove.
20546 (win32_target_ops): Remove arch_string initializer.
20547 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20548 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20549 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20551 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20553 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20554 by collect_ptrace_register and supply_ptrace_register hooks.
20555 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20556 instead of checking for the_low_target.left_pad_xfer.
20557 (usr_store_inferior_registers): Use collect_ptrace_register callback
20558 instead of checking for the_low_target.left_pad_xfer.
20560 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20561 (s390_supply_ptrace_register): Likewise.
20562 (s390_fill_gregset): Call s390_collect_ptrace_register.
20563 (the_low_target): Update.
20565 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20566 (ppc_supply_ptrace_register): Likewise.
20567 (the_low_target): Update.
20569 * linux-i386-low.c (the_low_target): Update.
20570 * linux-x86-64-low.c (the_low_target): Update.
20572 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20574 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20575 reg-s390.o and reg-s390x.o.
20577 * linux-low.c (new_inferior): New global variable.
20578 (linux_create_inferior, linux_attach): Set it.
20579 (linux_wait_for_process): Call the_low_target.arch_setup after the
20580 target has stopped for the first time.
20581 (initialize_low): Do not call the_low_target.arch_setup.
20583 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20584 (s390_set_pc): Likewise.
20585 (s390_arch_setup): New function.
20586 (the_low_target): Use s390_arch_setup as arch_setup routine.
20588 * regcache.c (realloc_register_cache): New function.
20589 (set_register_cache): Call it for each existing regcache.
20591 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20593 * server.h (init_registers): Remove prototype.
20595 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20596 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20597 instead of init_registers ().
20598 * linux-arm-low.c (init_registers_arm): Add prototype.
20599 (init_registers_arm_with_iwmmxt): Likewise.
20600 (the_low_target): Add initializer for arch_setup field.
20601 * linux-cris-low.c (init_registers_cris): Add prototype.
20602 (the_low_target): Add initializer for arch_setup field.
20603 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20604 (the_low_target): Add initializer for arch_setup field.
20605 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20606 (the_low_target): Add initializer for arch_setup field.
20607 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20608 (the_low_target): Add initializer for arch_setup field.
20609 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20610 (the_low_target): Add initializer for arch_setup field.
20611 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20612 (the_low_target): Add initializer for arch_setup field.
20613 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20614 (init_registers_mips64_linux): Likewise.
20615 (the_low_target): Add initializer for arch_setup field.
20616 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20617 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20618 (the_low_target): Add initializer for arch_setup field.
20619 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20620 (init_registers_powerpc_64): Likewise.
20621 (the_low_target): Add initializer for arch_setup field.
20622 * linux-s390-low.c (init_registers_s390): Add prototype.
20623 (init_registers_s390x): Likewise.
20624 (the_low_target): Add initializer for arch_setup field.
20625 * linux-sh-low.c (init_registers_sh): Add prototype.
20626 (the_low_target): Add initializer for arch_setup field.
20627 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20628 (the_low_target): Add initializer for arch_setup field.
20629 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20630 (the_low_target): Add initializer for arch_setup field.
20632 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20633 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20634 instead of init_registers ().
20635 * win32-arm-low.c (init_registers_arm): Add prototype.
20636 (the_low_target): Add initializer for arch_setup field.
20637 * win32-i386-low.c (init_registers_i386): Add prototype.
20638 (the_low_target): Add initializer for arch_setup field.
20640 * spu-low.c (init_registers_spu): Add prototype.
20641 (initialize_low): Call initialie_registers_spu () instead of
20642 initialize_registers ().
20644 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20646 * server.c (handle_v_requests): When handling the vRun and vAttach
20647 packets, if already debugging a process, don't kill it. Return an
20650 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20652 * server.c (handle_query): Correct length check.
20654 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20656 * win32-low.c (do_initial_child_stuff): Add process handle
20657 parameter. Set current_process_handle and current_process_id from the
20658 parameters. Clear globals.
20659 (win32_create_inferior): Don't set current_process_handle and
20660 current_process_id here. Instead pass them on the call to
20661 do_initial_child_stuff.
20662 (win32_attach): Likewise.
20663 (win32_clear_inferiors): New.
20664 (win32_kill): Don't close the current process handle or the
20665 current thread handle here. Instead call win32_clear_inferiors.
20666 (win32_detach): Don't open a new handle to the process. Call
20667 win32_clear_inferiors.
20668 (win32_join): Don't rely on current_process_handle; open a new
20669 handle using the process id.
20670 (win32_wait): Call win32_clear_inferiors when the inferior process
20673 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20675 * server.c (monitor_show_help): Add "exit".
20677 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20679 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20680 (clean): Add reg-xtensa.c.
20681 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20682 * configure.srv (xtensa*-*-linux*) New target.
20683 * linux-xtensa-low.c: New.
20684 * xtensa-xtregs.c: New.
20686 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20688 * hostio.c: Don't include errno.h.
20689 (errno_to_fileio_errno): Move to hostio-errno.
20690 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20691 error number outputting to the target->hostio_last_error callback.
20692 (hostio_packet_error): Use FILEIO_EINVAL directly.
20693 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20694 calls to hostio_error.
20695 * hostio-errno.c: New.
20696 * server.h (hostio_last_error_from_errno): Declare.
20697 * target.h (target_ops): Add hostio_last_error member.
20698 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20699 as hostio_last_error handler.
20700 * spu-low.c (spu_target_ops): Likewise.
20701 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20702 (wince_hostio_last_error): New functions.
20703 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20704 as hostio_last_error handler.
20705 (win32_target_ops) [!_WIN32_WCE]: Register
20706 hostio_last_error_from_errno as hostio_last_error handler.
20707 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20708 (hostio-errno.o): New rule.
20709 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20710 * configure.srv (srv_hostio_err_objs): New variable. Default to
20712 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20713 * configure: Regenerate.
20715 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20717 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20718 (linux_kill, linux_detach): Clean up the process list.
20719 * remote-utils.c (remote_open): Improve port number parsing.
20720 (putpkt_binary, input_interrupt): Only send interrupts if the target
20722 * server.c (extended_protocol): Make static.
20723 (attached): Define earlier.
20724 (exit_requested, response_needed, program_argv): New variables.
20725 (target_running): New.
20726 (start_inferior): Clear attached here.
20727 (attach_inferior): Set attached here.
20728 (require_running): Define.
20729 (handle_query): Use require_running and target_running. Implement
20731 (handle_v_attach, handle_v_run): New.
20732 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20733 (gdbserver_usage): Update.
20734 (main): Redo argument parsing. Handle --debug and --multi. Handle
20735 --attach along with other options or after the port. Save
20736 program_argv. Support no initial program. Resynchronize
20737 communication with GDB after an error. Handle "monitor exit".
20738 Use require_running and target_running. Always allow the extended
20739 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20740 restart in extended mode.
20741 * README: Refer to the GDB manual. Update --attach usage.
20743 2007-12-20 Andreas Schwab <schwab@suse.de>
20745 * linux-low.c (STACK_SIZE): Define.
20746 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20747 (linux_test_for_tracefork): Likewise.
20749 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20751 * linux-low.c (linux_wait_for_event): Update messages. Do not
20752 reinsert auto-delete breakpoints.
20753 * mem-break.c (struct breakpoint): Change return type of handler to
20755 (set_breakpoint_at): Update handler type.
20756 (reinsert_breakpoint_handler): Return 1 instead of calling
20758 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20760 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20761 * mem-break.h (set_breakpoint_at): Update handler type.
20762 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20763 * win32-low.c (auto_delete_breakpoint): New.
20764 (get_child_debug_event): Use it.
20766 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20768 * configure.ac: Check for pread and pwrite.
20769 * hostio.c (handle_pread): Fall back to lseek and read.
20770 (handle_pwrite): Fall back to lseek and write.
20771 * config.in, configure: Regenerated.
20773 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20775 * server.c (myresume): Add own_buf argument.
20776 (main): Update calls.
20778 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20780 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20781 * remote-utils.c (remote_open): Do not call disable_async_io.
20782 (block_async_io): Delete.
20783 (unblock_async_io): Make static.
20784 (initialize_async_io): New.
20785 * server.c (handle_v_cont): Handle async I/O here.
20786 (myresume): Likewise. Move other common resume tasks here...
20787 (main): ... from here. Call initialize_async_io. Disable async
20788 I/O before the main loop.
20789 * server.h (initialize_async_io): Declare.
20790 (block_async_io, unblock_async_io): Delete prototypes.
20791 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20793 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20795 * remote-utils.c (readchar): Allow binary data in received messages.
20797 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20799 * win32-low.c (attaching): New global.
20800 (win32_create_inferior): Clear the `attaching' global.
20801 (win32_attach): Set the `attaching' global.
20802 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20803 attaching. Only set a breakpoint at the entry point if not
20806 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20808 * server.c (main): Don't report dll events on the initial
20809 connection on attaches.
20811 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20813 * server.c (main): Relax numerical bases supported for the pid of
20814 the --attach command line argument.
20816 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20818 * win32-low.c (win32_attach): Call OpenProcess before
20819 DebugActiveProcess, not after. Add last error output to error
20822 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20824 * win32-low.c (win32_get_thread_context)
20825 (win32_set_thread_context): New functions.
20826 (thread_rec): Use win32_get_thread_context.
20827 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20828 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20831 2007-12-03 Leo Zayas
20832 Pedro Alves <pedro_alves@portugalmail.pt>
20834 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20836 (child_add_thread): Minor cleanup.
20837 (child_continue): Resume artificially suspended threads before
20838 calling ContinueDebugEvent.
20839 (suspend_one_thread): New.
20840 (fake_breakpoint_event): New.
20841 (get_child_debug_event): Change return type to int. Check here if
20842 gdb sent an interrupt request. If a soft interrupt was requested,
20843 fake a breakpoint event. Return 0 if there is no event to handle,
20845 (win32_wait): Don't check here if gdb sent an interrupt request.
20846 Ensure there is a valid event to handle.
20847 (win32_request_interrupt): Add soft interruption method as last
20850 2007-12-03 Leo Zayas
20851 Pedro Alves <pedro_alves@portugalmail.pt>
20853 * win32-low.h (win32_thread_info): Add descriptions to the
20854 structure members. Replace `suspend_count' counter by a
20856 * win32-low.c (thread_rec): Update condition of when to get the
20857 context from the inferior. Rely on ContextFlags being set if it
20858 has already been retrieved. Only suspend the inferior thread if
20859 we haven't already. Warn if that fails.
20860 (continue_one_thread): s/suspend_count/suspended/. Only call
20861 ResumeThread once. Warn if that fails.
20863 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20865 * win32-low.c (win32_wait): Don't read from the inferior when it
20866 has already exited.
20868 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20870 * Makefile.in (win32_low_h): New variable.
20871 (win32-low.o): Add dependency on $(win32_low_h).
20872 (win32-arm-low.o, win32-i386-low.o): New rules.
20874 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20876 * hostio.c: Correct copyright year.
20878 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20880 * Makefile.in (OBS): Add hostio.o.
20881 (hostio.o): New rule.
20882 * server.h (handle_vFile): Declare.
20883 * hostio.c: New file.
20884 * server.c (handle_v_requests): Take packet_len and new_packet_len
20885 for binary packets. Call handle_vFile.
20886 (main): Update call to handle_v_requests.
20888 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20890 * linux-low.c: Include <sched.h>.
20892 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20894 * linux-low.c (linux_tracefork_grandchild): New.
20895 (linux_tracefork_child): Use clone.
20896 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20898 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20900 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20902 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20904 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20906 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20908 * inferiors.c (change_inferior_id): Delete.
20909 (add_pid_to_list, pull_pid_from_list): New.
20910 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20911 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20912 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20913 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20914 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20915 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20916 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20917 (using_threads): Always set to 1.
20918 (handle_extended_wait): New.
20919 (add_process): Do not set TID.
20920 (linux_create_inferior): Set must_set_ptrace_flags.
20921 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20922 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20923 (linux_thread_alive): Rename TID argument to LWPID.
20924 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20925 (linux_wait_for_event): Do not use TID or check using_threads. Update
20926 call to dead_thread_notify. Call handle_extended_wait.
20927 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20928 (send_sigstop): Delete sigstop_sent.
20929 (wait_for_sigstop): Avoid TID.
20930 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20931 (linux_test_for_tracefork): New.
20932 (linux_lookup_signals): Use thread_db_active and
20933 linux_supports_tracefork_flag.
20934 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20935 * linux-low.h (get_process_thread): Avoid TID.
20936 (struct process_ifo): Move thread_known and tid to the end. Remove
20938 (linux_attach_lwp, thread_db_init): Update prototypes.
20939 * server.h (change_inferior_id): Delete prototype.
20940 (add_pid_to_list, pull_pid_from_list): New prototypes.
20941 * thread-db.c (thread_db_use_events): New.
20942 (find_first_thread): Rename to...
20943 (find_one_thread): ...this. Update callers and messages. Do not
20944 call fatal. Check thread_db_use_events. Do not call
20945 change_inferior_id or new_thread_notify.
20946 (maybe_attach_thread): Update. Do not call new_thread_notify.
20947 (thread_db_init): Set thread_db_use_events. Check use_events.
20948 * utils.c (fatal, warning): Correct message prefix.
20950 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20952 * Makefile.in (clean): Remove new files.
20953 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20954 (powerpc-64.o, powerpc-64.c): New rules.
20955 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20956 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20958 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20960 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20961 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20962 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20963 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20964 (target_regsets): Add AltiVec and SPE register sets.
20965 * configure.ac: Check for AltiVec and SPE.
20966 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20967 (ppc_fill_vrregset, ppc_store_vrregset): New.
20968 (target_regsets): Add AltiVec register set.
20969 * configure: Regenerated.
20971 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20973 * linux-low.c (O_LARGEFILE): Define.
20974 (linux_read_memory): Use /proc/PID/mem.
20975 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20976 * configure, config.in: Regenerated.
20978 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20980 * linux-low.c (linux_wait_for_event): Do not pass signals while
20983 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20985 * win32-low.c (create_process): New.
20986 (win32_create_inferior): Use create_process instead of
20987 CreateProcess. If create_process failed retry appending an ".exe"
20988 suffix. Store the GetLastError result immediatelly after
20989 create_process calls and use it on the call to error.
20991 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20993 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20995 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20997 * configure.ac: Switch license to GPLv3.
20999 2007-08-01 Michael Snyder <msnyder@access-company.com>
21001 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21003 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21005 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21007 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21008 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21009 CloseToolhelp32Snapshot.
21010 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21011 CloseToolhelp32Snapshot.
21013 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21015 * server.c (main): Check for inferior exit before main loop.
21017 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21019 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21020 instead of on tmp_desc.
21022 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21023 Daniel Jacobowitz <dan@codesourcery.com>
21025 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21026 (add_thread): Minor cleanups.
21027 (clear_inferiors): Move lower in the file. Clear the DLL
21029 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21030 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21031 (xml_escape_text): New.
21032 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21034 (handle_v_cont): Report errors.
21035 (gdbserver_version): Update.
21036 (main): Correct size of own_buf. Do not report initial DLL events.
21037 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21038 (unloaded_dll, xml_escape_text): New.
21039 * win32-low.c (enum target_waitkind): Update comments.
21040 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21041 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21042 (win32_EnumProcessModules, win32_GetModuleInformation)
21043 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21044 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21045 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21046 (win32_Module32First, win32_Module32Next, load_toolhelp)
21047 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21048 (get_child_debug_event): Handle DLL events.
21049 (win32_wait): Likewise.
21051 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21053 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21054 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21056 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21058 * win32-low.c (handle_output_debug_string): Ignore event if not
21061 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21063 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21065 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21067 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21069 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21071 * inferiors.c (change_inferior_id): Add comment.
21072 * linux-low.c (check_removed_breakpoint): Add an early
21073 prototype. Improve debug output.
21074 (linux_attach): Doc update.
21075 (linux_detach_one_process, linux_detach): Clean up before releasing
21077 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21078 * linux-low.h (struct process_info): Doc improvement.
21079 * mem-break.c (delete_all_breakpoints): New.
21080 * mem-break.h (delete_all_breakpoints): New prototype.
21081 * thread-db.c (find_first_thread): New.
21082 (thread_db_create_event): Call it instead of
21083 thread_db_find_new_threads. Clean up unused variables.
21084 (maybe_attach_thread): Remove first thread handling.
21085 (thread_db_find_new_threads): Use find_first_thread.
21086 (thread_db_get_tls_address): Likewise.
21088 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21090 * thread-db.c (thread_db_find_new_threads): Add prototype.
21091 (thread_db_create_event): Check for the main thread before adding
21093 (maybe_attach_thread): Only enable event reporting if TID == 0.
21094 (thread_db_get_tls_address): Check for new threads.
21096 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21098 * linux-low.c (linux_create_inferior): Try execv before execvp.
21099 * spu-low.c (spu_create_inferior): Likewise.
21101 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21103 * linux-low.c (linux_create_inferior): Change execv to execvp.
21104 * spu-low.c (spu_create_inferior): Likewies.
21106 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21108 * Makefile.in (clean): Clean new files instead of deleted ones.
21109 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21110 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21112 * configure.srv: Specify XML files and new regformats for MIPS and
21114 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21115 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21116 an entry for the restart register.
21117 (mips_cannot_fetch_register, mips_cannot_store_register)
21118 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21119 register names to match the XML descriptions.
21120 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21121 restart register instead of $0.
21123 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21124 Markus Deuling <deuling@de.ibm.com>
21126 * remote-utils.c (decode_xfer_write): New function.
21127 * server.h (decode_xfer_write): Add prototype.
21128 * server.c (handle_query): Add PACKET_LEN argument. Support
21129 qXfer:spu:read and qXfer:spu:write packets.
21130 (main): Pass packet_len to handle_query.
21131 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21132 * target.h (target_ops): Add qxfer_spu.
21134 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21136 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21137 accessing non-seekable spufs files.
21139 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21141 * server.c (handle_query): Add reply for qC packet.
21143 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21144 Leo Zayas <lerele@champenstudios@com>
21146 * server.h (check_remote_input_interrupt_request): New function.
21147 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21148 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21149 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21150 (check_remote_input_interrupt_request): New function.
21151 * server.h (check_remote_input_interrupt_request): Declare.
21152 * win32-low.c (winapi_DebugBreakProcess,
21153 winapi_GenerateConsoleCtrlEvent): New typedefs.
21154 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21156 (win32_wait): Check for remote interrupt request
21157 with check_remote_input_interrupt_request.
21158 (win32_request_interrupt): New function.
21159 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21161 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21163 * win32-low.c (debug_registers_changed,
21164 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21165 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21166 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21167 (thread_rec): Get context using the low target.
21168 (child_add_thread): Call thread_added on the low target,
21169 which does the same thing.
21171 (do_initial_child_stuff): Remove debug registers references.
21172 Set context using the low target. Resume threads after
21173 setting the contexts.
21174 (child_continue): Remove dead variable. Remove debug
21175 registers references.
21176 (child_fetch_inferior_registers): Go through the low target.
21177 (do_child_store_inferior_registers): Remove.
21178 (child_store_inferior_registers): Go through the low target.
21179 (win32_resume): Remove debug registers references.
21180 Set context using the low target.
21181 (handle_exception): Change return type to void. Don't record
21182 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21183 first chance exception.
21184 (get_child_debug_event): Change return type to void. Remove
21185 goto loop. Always return after waiting for debug event.
21186 (win32_wait): Convert to switch statement. Handle spurious
21189 * win32-i386-low.c (debug_registers_changed,
21190 debug_registers_used): New.
21191 (initial_stuff): Rename to ...
21192 (i386_initial_stuff): ... this. Clear debug registers
21194 (store_debug_registers): Delete.
21195 (i386_get_thread_context): New.
21196 (load_debug_registers): Delete.
21197 (i386_set_thread_context): New.
21198 (i386_thread_added): New.
21199 (single_step): Rename to ...
21200 (i386_single_step): ... this.
21201 (do_fetch_inferior_registers): Rename to ...
21202 (i386_fetch_inferior_register): ... this.
21203 (i386_store_inferior_register): New.
21204 (the_low_target): Adapt to new interface.
21206 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21207 (arm_get_thread_context): New.
21208 (arm_set_thread_context): New.
21210 (do_fetch_inferior_registers): Rename to ...
21211 (arm_fetch_inferior_register): ... this.
21212 (arm_store_inferior_register): New.
21213 (arm_wince_breakpoint): Reimplement as unsigned long.
21214 (arm_wince_breakpoint_len): Define.
21215 (the_low_target): Adapt to new interface.
21217 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21218 load_debug_registers. Add get_thread_context, set_thread_context,
21219 thread_added and store_inferior_register. Rename
21220 fetch_inferior_registers to fetch_inferior_register.
21221 (regptr): Remove declaration.
21223 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21225 * linux-low.c (linux_detach): Change return type to int. Return 0.
21226 * spu-low.c (spu_detach): Likewise.
21228 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21230 * target.h (target_ops): Change return type of detach to int.
21232 (join_inferior): New.
21233 * server.c (main): Don't skip detach support on mingw32.
21234 If the inferior doesn't support detaching return error.
21235 Call join_inferior instead of using waitpid.
21236 * linux-low.c (linux_join): New.
21237 (linux_target_op): Add linux_join.
21238 * spu-low.c (spu_join): New.
21239 (spu_target_ops): Add spu_join.
21240 * win32-low.c (win32_detach): Adapt to new interface.
21241 Reopen current_process_handle before detaching. Issue a child
21242 resume before detaching.
21244 (win32_target_op): Add win32_join.
21246 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21248 * win32-low.c (win32-attach): Fix return value.
21249 * target.h (target_ops): Describe ATTACH return values.
21251 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21253 * win32-low.c (GETPROCADDRESS): Define.
21254 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21255 (winapi_DebugSetProcessKillOnExit): Likewise.
21256 (win32_create_inferior): Force usage of ansi CreateProcessA.
21257 (win32_attach): Use GETPROCADDRESS.
21258 (win32_detach): Likewise.
21260 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21262 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21264 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21266 * win32-low.c: Commit leftover changes from 2007-03-29.
21268 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21270 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21271 fields short instead of int. Add explicit padding.
21272 (i387_cache_to_fsave): Remove unnecessary casts.
21273 (i387_fsave_to_cache): Doc fix.
21274 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21276 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21278 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21279 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21281 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21283 * configure.srv (arm*-*-mingw32ce*): Move near the other
21286 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21288 * configure.ac: Add errno checking.
21289 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21290 sys/file.h and malloc.h.
21291 (AC_CHECK_DECLS): Add perror.
21292 (srv_mingwce): Handle.
21293 * configure.srv (i[34567]86-*-cygwin*): Add
21294 win32-i386-low.o to srv_tgtobj.
21295 (i[34567]86-*-mingw*): Likewise.
21296 (arm*-*-mingw32ce*): Add case.
21297 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21298 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21299 [__MINGW32CE__] (strerror): New function.
21300 [__MINGW32CE__] (errno): Define to GetLastError.
21301 [__MINGW32CE__] (COUNTOF): New macro.
21302 (remote_open): Remove extra close call.
21303 * mem-break.c (delete_breakpoint_at): New function.
21304 * mem-break.h (delete_breakpoint_at): Declare.
21305 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21306 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21307 [USE_WIN32API] (read, write): Add char* casts.
21308 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21309 * server.h: Include wincecompat.h on Windows CE.
21310 [HAVE_ERRNO_H]: Check.
21311 (perror): Declare if not declared.
21312 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21313 (perror_with_name): Remove errno declaration.
21314 * wincecompat.h: New.
21315 * wincecompat.c: New.
21316 * win32-low.h: New.
21317 * win32-arm-low.c: New.
21318 * win32-i386-low.c: New.
21319 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21320 (OUTMSG2): Make it safe.
21322 (COUNTOF): New macro.
21323 (NUM_REGS): Get it from the low target.
21324 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21325 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21326 (thread_rec): Let low target handle debug registers.
21327 (child_add_thread): Likewise.
21328 (child_init_thread_list): Likewise.
21329 (continue_one_thread): Likewise.
21331 (do_child_fetch_inferior_registers): Move to ...
21332 * win32-i386-low.c: ... here, and rename to ...
21333 (do_fetch_inferior_registers): ... this.
21334 * win32-low.c (child_fetch_inferior_registers):
21335 Go through the low target.
21336 (do_child_store_inferior_registers): Use regptr.
21337 (strwinerror): New function.
21338 (win32_create_inferior): Handle Windows CE.
21339 Use strwinerror instead of strerror on Windows error
21340 codes. Add program to the error output.
21341 Don't close the main thread handle on Windows CE.
21342 (win32_attach): Use coredll.dll on Windows CE.
21343 (win32_kill): Close current process and current
21345 (win32_detach): Use coredll.dll on Windows CE.
21346 (win32_resume): Let low target handle debug registers, and
21348 (handle_exception): Add/Remove initial breakpoint. Avoid
21349 non-existant WSTOPSIG on Windows CE.
21350 (win32_read_inferior_memory): Cast to remove warning.
21351 (win32_arch_string): Go through the low target.
21352 (initialize_low): Call set_breakpoint_data with the low
21353 target's breakpoint.
21354 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21355 FOP_REGNUM, mappings): Move to ...
21356 * win32-i386-low.c: ... here.
21357 * win32-low.c (win32_thread_info): Move to ...
21358 * win32-low.h: ... here.
21359 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21360 win32-arm-low.c and wincecompat.c.
21361 (all:): Add $EXEEXT.
21362 (install-only:): Likewise.
21363 (gdbserver:): Likewise.
21364 (gdbreplay:): Likewise.
21365 * config.in: Regenerate.
21366 * configure: Regenerate.
21368 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21370 * win32-low.c: Rename typedef thread_info to
21371 win32_thread_info throughout.
21373 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21375 * win32-i386-low.c: Rename to ...
21376 * win32-low.c: ... this.
21377 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21378 * Makefile.in: Likewise.
21380 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21382 * remote-utils.c (monitor_output): Constify msg parameter.
21383 * server.h (monitor_output): Likewise.
21384 * win32-i386-low.c (handle_output_debug_string): New.
21385 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21386 handle_output_debug_string.
21387 (get_child_debug_event): Likewise.
21389 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21391 * server.c (main): Correct strtoul check.
21393 2007-03-27 Jon Ringle <jon@ringle.org>
21395 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21397 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21399 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21401 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21403 * terminal.h: Check HAVE_SGTTY_H.
21405 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21407 * remote-utils.c (remote_open): Print out the assigned port number.
21409 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21411 * remote-utils.c (monitor_output): New function.
21412 * server.c (debug_threads): Define here.
21413 (monitor_show_help): New function.
21414 (handle_query): Handle qRcmd.
21415 (main): Do not handle 'd' packet.
21416 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21417 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21420 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21422 * Makefile.in (EXEEXT): New.
21423 (clean): Use $(EXEEXT).
21425 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21427 * target.h (target_ops): Rename send_signal to request_interrupt,
21428 and remove enum target_signal parameter.
21429 * linux-low.c (linux_request_interrupt): Rename from
21430 linux_send_signal, and always send SIGINT.
21431 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21432 and always send SIGINT.
21433 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21435 (input_interrupt): Likewise.
21437 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21439 * server.c (get_features_xml): Check if target implemented
21441 * win32-i386-low.c (win32_arch_string): New.
21442 (win32_target_ops): Add win32_arch_string as arch_string member.
21444 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21446 * spu-low.c (spu_arch_string): New.
21447 (spu_target_ops): Add spu_arch_string.
21449 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21451 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21452 * configure.ac: Do not check for terminal.h.
21453 * configure, config.in: Regenerated.
21455 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21457 * Makefile.in (OBS): Add $(XML_BUILTIN).
21458 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21460 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21461 (arm-with-iwmmxt.c): New.
21462 * config.in, configure: Regenerate.
21463 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21464 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21465 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21466 (arm*-*-linux*): Add iWMMXt and regset support.
21467 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21468 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21469 (arm_store_wmmxregset, target_regsets): New.
21470 * server.c (get_features_xml): Take annex argument. Check builtin
21472 (handle_query): Handle multiple annexes.
21474 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21476 * remote-utils.c [USE_WIN32API] (read, write): Define.
21477 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21480 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21482 * linux-i386-low.c (the_low_target): Set arch_string.
21483 * linux-x86-64-low.c (the_low_target): Likewise.
21484 * linux-low.c (linux_arch_string): New.
21485 (linux_target_ops): Add it.
21486 * linux-low.h (struct linux_target_ops): Add arch_string.
21487 * server.c (write_qxfer_response): Use const void * for DATA.
21488 (get_features_xml): New.
21489 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21490 * target.h (struct target_ops): Add arch_string method.
21492 2007-01-03 Denis Pilat <denis.pilat@st.com>
21493 Daniel Jacobowitz <dan@codesourcery.com>
21495 * linux-low.c (linux_kill): Handle being called with no threads.
21496 * win32-i386-low.c (win32_kill): Likewise.
21497 (get_child_debug_event): Clear current_process_handle.
21499 2006-12-30 Denis PILAT <denis.pilat@st.com>
21500 Daniel Jacobowitz <dan@codesourcery.com>
21502 * remote-utils.c (remote_open): Check the type of specified
21503 serial port devices before opening them.
21504 * server.c (main): Kill the inferior if an error occurs during
21505 the first remote_open.
21507 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21509 * README: Update supported targets.
21511 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21513 * Makefile.in (clean): Remove reg-mips64.c.
21514 (reg-mips64.c, reg-mips64.o): New rules.
21515 * configure.srv: Handle mips64. Include regset support for mips.
21516 * linux-mips-low.c (union mips_register): New.
21517 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21518 (mips_breakpoint, mips_breakpoint_at): Use int.
21519 (mips_collect_register, mips_supply_register)
21520 (mips_collect_register_32bit, mips_supply_register_32bit)
21521 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21522 (mips_store_fpregset, target_regsets): New.
21523 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21525 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21527 * configure.srv: Add target "spu*-*-*".
21528 * Makefile.in (clean): Remove reg-spu.c.
21529 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21530 * spu-low.c: New file.
21532 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21534 * configure.ac: Correct td_thr_tls_get_addr test.
21535 * configure: Regenerated.
21537 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21539 * linux-low.c (linux_wait_for_event): Reformat. Use the
21540 pass_signals array.
21541 * remote-utils.c (decode_address_to_semicolon): New.
21542 * server.c (pass_signals, handle_general_set): New.
21543 (handle_query): Mention QPassSignals for qSupported.
21544 (main): Call handle_general_set.
21545 * server.h (pass_signals, decode_address_to_semicolon): New.
21547 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21549 * server.c (handle_query): Correct error handling for read_auxv.
21551 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21553 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21554 and srv_linux_thread_db to yes.
21555 * linux-s390-low.c (s390_fill_gregset): New function.
21556 (target_regsets): Define data structure.
21558 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21560 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21561 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21562 * config.in, configure: Regenerated.
21563 * inferiors.c (gdb_id_to_thread): New function.
21564 (gdb_id_to_thread_id): Use it.
21565 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21566 * linux-low.h (struct process_info): Add th member.
21567 (thread_db_get_tls_address): New prototype.
21568 * remote-utils.c (decode_address): Make non-static.
21569 * server.c (handle_query): Handle qGetTLSAddr.
21570 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21571 * target.h (struct target_ops): Add get_tls_address.
21572 * thread-db.c (maybe_attach_thread): Save the thread handle.
21573 (thread_db_get_tls_address): New.
21575 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21577 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21578 (linux_resume_one_process): Take a siginfo_t *. Update all
21579 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21580 (struct pending_signals): Add a siginfo_t.
21581 (linux_wait_for_process): Always set last_status.
21582 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21583 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21584 * linux-low.h (struct process_info): Add last_status.
21586 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21588 * remote-utils.c (try_rle): New function.
21589 (putpkt_binary): Use it.
21591 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21593 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21594 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21595 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21596 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21597 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21600 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21602 * server.c (terminal_fd): New variable.
21603 (old_foreground_pgrp): Likewise.
21604 (restore_old_foreground_pgrp): New function.
21605 (start_inferior): Record the terminal file descriptor in terminal_fd
21606 and its original foreground group in old_foreground_pgrp. Register
21607 restore_old_foreground_pgrp with atexit().
21609 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21611 * server.c (handle_query): Correct qPart to qXfer.
21613 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21615 * configure.ac: Check for more headers which are missing on
21616 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21617 * configure.srv: Add Cygwin and mingw32.
21618 * remote-utils.c: Don't include headers unconditionally which
21619 are missing on mingw32. Include <winsock.h> for mingw32.
21620 (remote_open): Adjust for mingw32 support. Flush
21621 standard error after writing to it.
21622 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21623 (unblock_async_io, enable_async_io, disable_async_io)
21624 (readchar, getpkt): Update for Winsock support.
21625 (prepare_resume_reply): Expect a protocol signal number.
21626 * server.c: Disable <sys/wait.h> on mingw32.
21627 (start_inferior): Adjust for mingw32 support. Flush
21628 standard error after writing to it.
21629 (attach_inferior): Likewise. Use protocol signal
21631 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21633 * win32-i386-low.c: New file.
21634 * Makefile.in (XM_CLIBS): Set.
21635 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21636 (win32-i386-low.o): New dependency rule.
21637 * linux-low.c (linux_wait): Use target signal numbers.
21638 * target.h (struct target_ops): Doc fix.
21639 * server.h (target_signal_to_name): New prototype.
21640 * gdbreplay.c: Don't include headers unconditionally which
21641 are missing on mingw32. Include <winsock.h> for mingw32.
21642 (remote_close, remote_open): Adjust for Winsock support.
21643 * configure, config.in: Regenerated.
21645 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21647 * server.c (decode_xfer_read, write_qxfer_response): New.
21648 (handle_query): Take a packet length argument. Handle
21649 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21650 the qSupported response.
21651 (main): Update call to handle_query.
21653 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21655 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21656 (putpkt_binary): Renamed from putpkt and adjusted for binary
21658 (putpkt): New wrapper for putpkt_binary.
21659 (readchar): Don't mask off the high bit.
21660 (decode_X_packet): New function.
21661 * server.c (main): Call putpkt_binary if a handler sets the packet
21662 length. Save the length of the incoming packet. Handle 'X'.
21663 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21665 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21667 * server.c (handle_query): Handle qSupported.
21669 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21671 * remote-utils.c (all_symbols_looked_up): New variable.
21672 (look_up_one_symbol): Check it.
21673 * server.h (look_up_one_symbol): New declaration.
21674 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21676 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21678 * Makefile.in (linux-arm-low.o): Update dependencies.
21679 * linux-arm-low.c: Include "gdb_proc_service.h".
21680 (PTRACE_GET_THREAD_AREA): Define.
21681 (ps_get_thread_area): New function.
21683 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21685 * configure.srv (m68k*-*-uclinux*): New target.
21686 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21687 (linux_resume_one_process): Remove extraneous cast.
21688 (linux_read_offsets): New.
21689 (linux_target_op): Add linux_read_offsets on mmuless systems.
21690 * server.c (handle_query): Add qOffsets logic.
21691 * target.h (struct target_ops): Add read_offsets.
21693 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21695 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21696 (PTRACE_GET_THREAD_AREA): Define.
21697 (ps_get_thread_area): New function.
21698 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21699 (linux-x86-64-low.o): Update.
21701 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21703 * configure.ac: Remove checks for prfpregset_t.
21704 * gdb_proc_service.h: New file.
21705 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21706 new "gdb_proc_service.h".
21707 * proc-service.c: Likewise.
21708 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21709 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21710 * Makefile.in (gdb_proc_service_h): Updated.
21711 * configure, config.in: Regenerated.
21713 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21715 * remote-utils.c (prepare_resume_reply): Move declaration
21716 of gdb_id_from_wait to the top of the block.
21718 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21720 * linux-low.c (regsets_store_inferior_registers): Read the regset
21721 from the target before filling it.
21723 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21725 * server.c (attach_inferior): Return SIGTRAP for a successful
21728 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21730 * Makefile.in (OBS): Add version.o.
21731 (STAGESTUFF): Delete.
21732 (version.o): Add dependencies.
21733 (version.c): Replace rule.
21734 (clean): Remove version.c.
21735 * server.c (gdbserver_version): New.
21736 (gdbserver_usage): Use printf.
21737 (main): Handle --version and --help.
21738 * server.h (version, host_name): Add declarations.
21740 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21752 * linux-x86-64-low.c:
21754 * linux-s390-low.c:
21755 * linux-ppc64-low.c:
21757 * linux-mips-low.c:
21758 * linux-m68k-low.c:
21759 * linux-m32r-low.c:
21762 * linux-ia64-low.c:
21763 * linux-i386-low.c:
21764 * linux-crisv32-low.c:
21776 * gdbserver.1: Add (C) after Copyright. Update the FSF
21779 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21781 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21782 (arm_breakpoint_at): Recognize both breakpoints.
21783 (the_low_target): Use the correct breakpoint instruction.
21785 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21787 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21788 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21789 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21790 (the_low_target): Update.
21792 2005-10-25 Andreas Schwab <schwab@suse.de>
21794 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21796 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21797 (ia64_num_regs): Reduce to 462.
21799 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21801 * acinclude.m4: Correct quoting.
21802 * aclocal.m4: Regenerated.
21804 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21805 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21806 (thread_db_init): Call thread_db_err_str.
21807 * configure.ac: Check for TD_VERSION.
21808 * config.in, configure: Regenerated.
21810 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21812 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21814 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21816 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21817 is not available. Define HAVE_PTRACE_GETREGS if it is.
21818 * config.in, configure: Regenerated.
21819 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21820 * linux-i386-low.c, linux-m68k-low.c: Update to use
21821 HAVE_PTRACE_GETREGS.
21822 * linux-low.c (regsets_fetch_inferior_registers)
21823 (regsets_store_inferior_registers): Only return 0 if we processed
21825 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21826 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21828 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21830 * inferiors.c (struct thread_info): Add gdb_id.
21831 (add_thread): Add gdb_id argument.
21832 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21833 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21834 calls to add_thread.
21835 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21836 * server.c (handle_query): Use thread_to_gdb_id.
21837 (handle_v_cont, main): Use gdb_id_to_thread_id.
21838 * server.h (add_thread): Update prototype.
21839 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21842 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21844 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21845 left-padded registers.
21846 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21847 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21849 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21851 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21852 * configure: Regenerate.
21853 * config.in: Regenerate.
21854 * server.h (NEED_DECLARATION_STRERROR):
21855 Replace with !HAVE_DECL_STRERROR.
21857 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21859 * linux-low.c (linux_wait, linux_send_signal): Don't test
21860 an unsigned long variable for > 0 if it could be MAX_ULONG.
21861 * server.c (myresume): Likewise.
21862 * target.c (set_desired_inferior): Likewise.
21864 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21866 * configure.ac: Simplify and improve check for socklen_t.
21867 * configure, config.in: Regenerate.
21869 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21871 * acconfig.h: Remove.
21872 * configure.ac: Add a test for socklen_t. Use three-argument
21873 AC_DEFINE throughout.
21874 * config.in: Regenerated using autoheader 2.59.
21875 * configure: Regenerated.
21877 * gdbreplay.c (socklen_t): Provide a default.
21878 (remote_open): Use socklen_t.
21879 * remote-utils.c (socklen_t): Provide a default.
21880 (remote_open): Use socklen_t.
21881 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21884 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21886 * linux-low.c (linux_read_memory, linux_write_memory)
21887 (linux_read_auxv): Likewise.
21888 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21889 (check_mem_write): Likewise.
21890 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21892 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21893 (registers_from_string, register_data): Likewise.
21894 * server.c (handle_query, main): Likewise.
21895 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21896 (decode_M_packet): Likewise.
21897 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21898 * target.h (struct target_ops): Update read_memory, write_memory,
21900 (read_inferior_memory, write_inferior_memory): Update.
21901 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21902 to unsigned char *.
21903 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21904 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21905 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21906 linux-s390-low.c, linux-sh-low.c: Update for changes in
21907 read_inferior_memory and the_low_target->breakpoint.
21909 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21911 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21912 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21913 * configure.srv: Add powerpc64-*-linux*.
21914 * linux-ppc64-low.c: New file.
21916 2005-05-23 Orjan Friberg <orjanf@axis.com>
21918 * linux-cris-low.c: New file with support for CRIS.
21919 * linux-crisv32-low.c: Ditto for CRISv32.
21920 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21921 (clean): Add reg-cris.c and reg-crisv32.c.
21922 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21923 reg-crisv32.o, and reg-crisv32.c to make rules.
21924 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21925 recognized targets.
21927 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21929 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21930 of sizeof (PTRACE_XFER_TYPE).
21931 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21933 2005-05-12 Orjan Friberg <orjanf@axis.com>
21935 * target.h (struct target_ops): Add insert_watchpoint,
21936 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21937 pointers for hardware watchpoint support.
21938 * linux-low.h (struct linux_target_ops): Ditto.
21939 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21940 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21941 to linux_target_ops.
21942 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21944 * server.c (main): Recognize 'Z' and 'z' packets.
21946 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21948 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21949 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21950 (the_low_target): Add new members.
21952 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21954 * proc-service.c (ps_lgetregs): Search all_processes instead of
21957 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21959 * server.c (start_inferior): Change return type to int.
21960 (attach_inferior): Change sigptr to int *.
21961 (handle_v_cont, handle_v_requests): Change signal to int *.
21962 (main): Change signal to int.
21964 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21966 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21967 * configure.srv: Add m32r*-*-linux*.
21968 * linux-m32r-low.c: New file.
21970 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21972 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21974 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21976 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21977 Take unsigned long arguments for PIDs.
21978 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21979 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21980 (wait_for_sigstop, linux_resume_one_process)
21981 (regsets_fetch_inferior_registers, linux_send_signal)
21982 (linux_read_auxv): Likewise. Update the types of variables holding
21983 PIDs. Update format string specifiers.
21984 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21985 * remote-utils.c (prepare_resume_reply): Likewise.
21986 * server.c (cont_thread, general_thread, step_thread)
21987 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21989 (handle_query): Update format specifiers.
21990 (handle_v_cont, main): Use strtoul for thread IDs.
21991 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21992 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21993 (general_thread, step_thread, thread_from_wait)
21994 (old_thread_from_wait): Update.
21995 * target.h (struct thread_resume): Use unsigned long for THREAD.
21996 (struct target_ops): Use unsigned long for arguments to attach and
21999 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22001 * acinclude.m4: Include bfd/bfd.m4 directly.
22002 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22003 <agriffis@toolchain.org>.
22004 * aclocal.m4, configure: Regenerated.
22006 2005-01-07 Andrew Cagney <cagney@gnu.org>
22008 * configure.ac: Rename configure.in, require autoconf 2.59.
22009 * configure: Re-generate.
22011 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22013 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22014 LIBS when finished.
22015 * aclocal.m4: Regenerated.
22016 * configure: Regenerated.
22018 2004-11-21 Andreas Schwab <schwab@suse.de>
22020 * linux-m68k-low.c (m68k_num_gregs): Define.
22021 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22022 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22023 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22024 (m68k_breakpoint_at): New. Add to the_low_target.
22026 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22027 srv_linux_thread_db to yes.
22029 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22031 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22032 (ARCH_SET_FS): Likewise.
22033 (ARCH_GET_FS): Likewise.
22034 (ARCH_GET_GS): Likewise.
22036 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22038 * linux-i386-low.c (ps_get_thread_area): New.
22039 * linux-x86-64-low.c (ps_get_thread_area): New.
22040 * linux-low.c: Include <sys/syscall.h>.
22041 (linux_kill_one_process): Don't kill the first thread here.
22042 (linux_kill): Kill the first thread here.
22043 (kill_lwp): New function.
22044 (send_sigstop, linux_send_signal): Use it.
22045 * proc-service.c: Clean up #ifdefs.
22046 (fpregset_info): Delete.
22047 (ps_lgetregs): Update and enable implementation.
22048 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22050 * remote-utils.c (struct sym_cache, symbol_cache): New.
22051 (input_interrupt): Print a clearer message.
22052 (async_io_enabled): New variable.
22053 (enable_async_io, disable_async_io): Use it. Update comments.
22054 (look_up_one_symbol): Use the symbol cache.
22055 * thread-db.c (thread_db_look_up_symbols): New function.
22056 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22058 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22060 * configure.in: Test for -rdynamic.
22061 * configure: Regenerated.
22062 * Makefile (INTERNAL_LDFLAGS): New.
22063 (gdbserver, gdbreplay): Use it.
22065 2004-09-02 Andrew Cagney <cagney@gnu.org>
22067 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22069 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22071 * linux-low.c (linux_wait): Clear all_processes list also.
22073 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22075 * linux-low.c: Include <errno.h>. Remove extern declaration of
22078 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22080 * gdbreplay.c, server.h, utils.c: Update copyright years.
22082 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22084 * server.c (main): Print child status or termination signal from
22085 variable 'signal', not 'sig'.
22087 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22089 * linux-low.c (linux_read_memory): Change return type to
22090 int. Check for and return error from ptrace().
22091 * target.c (read_inferior_memory): Change return type to int. Pass
22092 back return status from the_target->read_memory().
22093 * target.h (struct target_ops): Adapt *read_memory() prototype.
22095 (read_inferior_memory): Adapt prototype.
22096 * server.c (main): Return an error packet if
22097 read_inferior_memory() returns an error.
22099 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22101 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22102 Unify with other clean targets.
22104 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22106 * server.c (handle_v_cont): Call set_desired_inferior.
22108 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22110 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22112 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22114 * linux-low.c (linux_wait): Unblock async I/O.
22115 (linux_resume): Block and enable async I/O.
22116 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22117 * server.h (block_async_io, unblock_async_io): Add prototypes.
22119 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22121 * remote-utils.c (remote_open): Print a status notice after
22122 opening a TCP port.
22123 * server.c (attach_inferior): Print a status notice after
22126 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22128 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22130 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22132 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22134 * server.c, target.h: Update copyright years.
22136 2004-02-25 Roland McGrath <roland@redhat.com>
22138 * target.h (struct target_ops): New member `read_auxv'.
22139 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22140 * linux-low.c (linux_read_auxv): New function.
22141 (linux_target_ops): Initialize `read_auxv' member to that.
22143 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22145 Committed by Jim Blandy <jimb@redhat.com>.
22147 * linux-s390-low.c (s390_num_regs): Update.
22148 (s390_regmap): Remove control registers. Use __s390x__ predefine
22149 instead of GPR_SIZE to distiguish s390 and s390x targets.
22151 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22153 * linux-low.c: Update copyright year.
22154 (check_removed_breakpoint): Clear pending_is_breakpoint.
22155 (linux_set_resume_request, linux_queue_one_thread)
22156 (resume_status_pending_p): New functions.
22157 (linux_continue_one_thread): Use process->resume.
22158 (linux_resume): Only resume threads if there are no pending events.
22159 * linux-low.h (struct process_info): Add resume request
22162 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22164 * regcache.c (new_register_cache): Clear the allocated register
22165 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22167 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22169 * linux-low.c (linux_resume): Take a struct thread_resume *
22171 (linux_wait): Update call.
22172 (resume_ptr): New static variable.
22173 (linux_continue_one_thread): Renamed from
22174 linux_continue_one_process. Use resume_ptr.
22175 (linux_resume): Use linux_continue_one_thread.
22176 * server.c (handle_v_cont, handle_v_requests): New functions.
22177 (myresume): New function.
22178 (main): Handle 'v' case.
22179 * target.h (struct thread_resume): New type.
22180 (struct target_ops): Change argument of "resume" to struct
22182 (myresume): Delete macro.
22184 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22186 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22187 (uninstall): Support DESTDIR.
22189 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22191 * configure.srv: Add xscale*linux copy of arm*linux entry.
22193 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22195 * linux-arm-low.c (arm_reinsert_addr): New function.
22196 (the_low_target): Add arm_reinsert_addr.
22198 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22200 * mem-break.c: Remove whitespace at end of file.
22202 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22204 * configure.in: Check whether we need to prototype strerror.
22205 * server.h: Optionally prototype strerror.
22206 * gdbreplay.c (perror_with_name): Use strerror.
22207 * linux-low.c (linux_attach_lwp): Use strerror.
22208 * utils.c (perror_with_name): Use strerror.
22209 * config.in, configure: Regenerated.
22211 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22213 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22214 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22216 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22218 * Makefile.in (SFILES): Update.
22219 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22220 low-sun3.c: Remove files.
22222 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22224 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22225 (linux_detach_one_process, linux_detach): New functions.
22226 (linux_target_ops): Add linux_detach.
22227 * server.c (main): Handle 'D' packet.
22228 * target.h (struct target_ops): Add "detach" member.
22229 (detach_inferior): Define.
22231 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22233 From Kelley Cook <kelleycook@wideopenwest.com>:
22234 * configure.srv: Accept i[34567]86 variants.
22236 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22238 * linux-low.c (linux_wait_for_event): Correct comment typos.
22239 (linux_resume_one_process): Call check_removed_breakpoint.
22240 (linux_send_signal): New function.
22241 (linux_target_ops): Add linux_send_signal.
22242 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22244 * target.h (struct target_ops): Add send_signal.
22246 2003-05-29 Jim Blandy <jimb@redhat.com>
22248 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22249 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22250 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22251 away part of the register's value.
22253 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22255 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22256 (linux_wait_for_event, linux_init_signals): Likewise.
22258 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22260 * configure.in: Check for stdlib.h.
22261 * configure: Regenerated.
22262 * config.in: Regenerated.
22264 2003-01-04 Andreas Schwab <schwab@suse.de>
22266 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22268 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22270 * Makefile.in: Remove obsolete code.
22272 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22274 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22275 defined(PT_FPR0_HI).
22277 2002-11-17 Stuart Hughes <seh@zee2.com>
22279 * linux-arm-low.c (arm_num_regs): Increase.
22280 (arm_regmap): Include status register.
22282 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22284 * linux-low.c (register_addr): Remove incorrect -1 check.
22286 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22288 * linux-low.c (linux_create_inferior): Call setpgid. Return
22290 (unstopped_p, linux_signal_pid): Remove.
22291 (linux_target_ops): Remove linux_signal_pid.
22292 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22293 global instead of target method.
22294 * target.h (struct target_ops): Remove signal_pid. Update comment
22295 for create_inferior.
22296 * server.c (signal_pid): New variable.
22297 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22298 gdbserver. Set the child to be the foreground process group.
22299 (attach_inferior): Set signal_pid.
22301 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22303 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22305 2002-08-20 Jim Blandy <jimb@redhat.com>
22307 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22310 2002-08-01 Andrew Cagney <cagney@redhat.com>
22312 * Makefile.in: Make chill references obsolete.
22314 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22316 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22317 * configure: Regenerate.
22318 * config.in: Regenerate.
22320 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22322 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22323 (perror_with_name, remote_close, remote_open, expect, play): Static.
22325 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22327 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22328 byte offsets instead of an array of indexes.
22329 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22331 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22333 * regcache.c: Add comment.
22335 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22337 * thread-db.c: New file.
22338 * proc-service.c: New file.
22339 * acinclude.m4: New file.
22340 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22341 proc-service.o, and thread-db.o.
22342 (linux-low.o): Add USE_THREAD_DB.
22343 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22344 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22345 * aclocal.m4: Regenerated.
22346 * config.in: Regenerated.
22347 * configure: Regenerated.
22348 * configure.in: Check for proc_service.h, sys/procfs.h,
22349 thread_db.h, and linux/elf.h headrs.
22350 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22351 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22352 Check for -lthread_db and thread support.
22353 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22354 PowerPC, and SuperH.
22355 * i387-fp.c: Constify arguments.
22356 * i387-fp.h: Likewise.
22357 * inferiors.c: (struct thread_info): Renamed from
22358 `struct inferior_info'. Remove PID member. Use generic inferior
22359 list header. All uses updated.
22360 (inferiors, signal_pid): Removed.
22361 (all_threads): New variable.
22362 (get_thread): Define.
22363 (add_inferior_to_list): New function.
22364 (for_each_inferior): New function.
22365 (change_inferior_id): New function.
22366 (add_inferior): Removed.
22367 (remove_inferior): New function.
22368 (add_thread): New function.
22369 (free_one_thread): New function.
22370 (remove_thread): New function.
22371 (clear_inferiors): Use for_each_inferior and free_one_thread.
22372 (find_inferior): New function.
22373 (find_inferior_id): New function.
22374 (inferior_target_data): Update argument type.
22375 (set_inferior_target_data): Likewise.
22376 (inferior_regcache_data): Likewise.
22377 (set_inferior_regcache_data): Likewise.
22378 * linux-low.c (linux_bp_reinsert): Remove.
22379 (all_processes, stopping_threads, using_thrads)
22380 (struct pending_signals, debug_threads, pid_of): New.
22381 (inferior_pid): Replace with macro.
22382 (struct inferior_linux_data): Remove.
22383 (get_stop_pc, add_process): New functions.
22384 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22385 Use add_process and add_thread.
22386 (linux_attach_lwp): New function, based on old linux_attach. Use
22387 add_process and add_thread. Set stop_expected for new threads.
22388 (linux_attach): New function.
22389 (linux_kill_one_process): New function.
22390 (linux_kill): Kill all LWPs.
22391 (linux_thread_alive): Use find_inferior_id.
22392 (check_removed_breakpoints, status_pending_p): New functions.
22393 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22394 Update. Use WNOHANG. Wait for cloned processes also. Update process
22395 struct for the found process.
22396 (linux_wait_for_event): New function.
22397 (linux_wait): Use it. Support LWPs.
22398 (send_sigstop, wait_for_sigstop, stop_all_processes)
22399 (linux_resume_one_process, linux_continue_one_process): New functions.
22400 (linux_resume): Support LWPs.
22401 (REGISTER_RAW_SIZE): Remove.
22402 (fetch_register): Use register_size instead. Call supply_register.
22403 (usr_store_inferior_registers): Likewise. Call collect_register.
22404 Fix recursive case.
22405 (regsets_fetch_inferior_registers): Improve error message.
22406 (regsets_store_inferior_registers): Add debugging.
22407 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22408 (unstopped_p, linux_signal_pid): New functions.
22409 (linux_target_ops): Add linux_signal_pid.
22410 (linux_init_signals): New function.
22411 (initialize_low): Call it. Initialize using_threads.
22412 * regcache.c (inferior_regcache_data): Add valid
22414 (get_regcache): Fetch registers lazily. Add fetch argument
22415 and update all callers.
22416 (regcache_invalidate_one, regcache_invalidate): New
22418 (new_register_cache): Renamed from create_register_cache.
22419 Return the new regcache.
22420 (free_register_cache): Change argument to a void *.
22421 (registers_to_string, registers_from_string): Call get_regcache
22422 with fetch flag set.
22423 (register_data): Make static. Pass fetch flag to get_regcache.
22424 (supply_register): Call get_regcache with fetch flag clear.
22425 (collect_register): Call get_regcache with fetch flag set.
22426 (collect_register_as_string): New function.
22427 * regcache.h: Update.
22428 * remote-utils.c (putpkt): Flush after debug output and use
22430 Handle input interrupts while waiting for an ACK.
22431 (input_interrupt): Use signal_pid method.
22432 (getpkt): Flush after debug output and use stderr.
22433 (outreg): Use collect_register_as_string.
22434 (new_thread_notify, dead_thread_notify): New functions.
22435 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22436 and general_thread.
22437 (look_up_one_symbol): Flush after debug output.
22438 * server.c (step_thread, server_waiting): New variables.
22439 (start_inferior): Don't use signal_pid. Update call to mywait.
22440 (attach_inferior): Update call to mywait.
22441 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22442 (main): Don't fetch/store registers explicitly. Use
22443 set_desired_inferior. Support proposed ``Hs'' packet. Update
22445 * server.h: Update.
22446 (struct inferior_list, struct_inferior_list_entry): New.
22447 * target.c (set_desired_inferior): New.
22448 (write_inferior_memory): Constify.
22449 (mywait): New function.
22450 * target.h: Update.
22451 (struct target_ops): New signal_pid method.
22452 (mywait): Removed macro, added prototype.
22454 * linux-low.h (regset_func): Removed.
22455 (regset_fill_func, regset_store_func): New.
22456 (enum regset_type): New.
22457 (struct regset_info): Add type field. Use new operation types.
22458 (struct linux_target_ops): stop_pc renamed to get_pc.
22459 Add decr_pc_after_break and breakpoint_at.
22460 (get_process, get_thread_proess, get_process_thread)
22461 (strut process_info, all_processes, linux_attach_lwp)
22462 (thread_db_init): New.
22464 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22465 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22466 (the_low_target): Add new members.
22467 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22468 (i386_store_fpxregset): Constify.
22469 (target_regsets): Add new kind identifier.
22470 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22471 (i386_set_pc): Add debugging.
22472 (i386_breakpoint_at): New function.
22473 (the_low_target): Add new members.
22474 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22475 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22476 (mips_breakpoint_at): New.
22477 (the_low_target): Add new members.
22478 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22479 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22480 (the_low_target): Add new members.
22481 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22482 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22483 (the_low_target): Add new members.
22484 * linux-x86-64-low.c (target_regsets): Add new kind
22487 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22489 From Martin Pool <mbp@samba.org>:
22490 * server.c (gdbserver_usage): New function.
22493 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22495 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22496 stop_at -> stop_pc.
22498 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22500 * Makefile.in: Remove obsolete code.
22502 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22504 * linux-low.c (regsets_fetch_inferior_registers),
22505 (regsets_store_inferior_registers): Removed cast to int from
22507 * regcache.h: Added declaration of struct inferior_info.
22509 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22511 * inferiors.c (struct inferior_info): Add regcache_data.
22512 (add_inferior): Call create_register_cache.
22513 (clear_inferiors): Call free_register_cache.
22514 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22515 * regcache.c (struct inferior_regcache_data): New.
22516 (registers): Remove.
22517 (get_regcache): New function.
22518 (create_register_cache, free_register_cache): New functions.
22519 (set_register_cache): Don't initialize the register cache here.
22520 (registers_to_string, registers_from_string, register_data): Call
22522 * regcache.h: Add prototypes.
22523 * server.h: Likewise.
22525 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22527 * mem-break.c: New file.
22528 * mem-break.h: New file.
22529 * Makefile.in: Add mem-break.o rule; update server.h
22531 * inferiors.c (struct inferior_info): Add target_data
22533 (clear_inferiors): Free target_data member if set.
22534 (inferior_target_data, set_inferior_target_data): New functions.
22535 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22536 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22537 * linux-low.c (linux_bp_reinsert): New variable.
22538 (struct inferior_linux_data): New.
22539 (linux_create_inferior): Use set_inferior_target_data.
22540 (linux_attach): Likewise. Call add_inferior.
22541 (linux_wait_for_one_inferior): New function.
22542 (linux_wait): Call it.
22543 (linux_write_memory): Add const.
22544 (initialize_low): Call set_breakpoint_data.
22545 * linux-low.h (struct linux_target_ops): Add breakpoint
22547 * server.c (attach_inferior): Remove extra add_inferior
22549 * server.h: Include mem-break.h. Update inferior.c
22551 * target.c (read_inferior_memory)
22552 (write_inferior_memory): New functions.
22553 * target.h (read_inferior_memory)
22554 (write_inferior_memory): Change macros to prototypes.
22555 (struct target_ops): Update comments. Add const to write_memory
22558 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22560 * linux-low.c (usr_store_inferior_registers): Support
22561 registers which are allowed to fail to store.
22562 * linux-low.h (linux_target_ops): Likewise.
22563 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22564 (ppc_cannot_store_register): FPSCR may not be storable.
22566 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22568 * server.h: Include <string.h> if HAVE_STRING_H.
22569 * ChangeLog: Correct paths in last ChangeLog entry.
22571 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22573 * linux-low.h: Remove obsolete prototypes.
22574 (struct linux_target_ops): New.
22575 (extern the_low_target): New.
22576 * linux-low.c (num_regs, regmap): Remove declarations.
22577 (register_addr): Use the_low_target explicitly.
22578 (fetch_register): Likewise.
22579 (usr_fetch_inferior_registers): Likewise.
22580 (usr_store_inferior_registers): Likewise.
22581 * linux-arm-low.c (num_regs): Remove.
22582 (arm_num_regs): Define.
22583 (arm_regmap): Renamed from regmap, made static.
22584 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22586 (arm_cannot_store_register): Renamed from cannot_store_register,
22588 (the_low_target): New.
22589 * linux-i386-low.c (num_regs): Remove.
22590 (i386_num_regs): Define.
22591 (i386_regmap): Renamed from regmap, made static.
22592 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22594 (i386_cannot_store_register): Renamed from cannot_store_register,
22596 (the_low_target): New.
22597 * linux-ia64-low.c (num_regs): Remove.
22598 (ia64_num_regs): Define.
22599 (ia64_regmap): Renamed from regmap, made static.
22600 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22602 (ia64_cannot_store_register): Renamed from cannot_store_register,
22604 (the_low_target): New.
22605 * linux-m68k-low.c (num_regs): Remove.
22606 (m68k_num_regs): Define.
22607 (m68k_regmap): Renamed from regmap, made static.
22608 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22610 (m68k_cannot_store_register): Renamed from cannot_store_register,
22612 (the_low_target): New.
22613 * linux-mips-low.c (num_regs): Remove.
22614 (mips_num_regs): Define.
22615 (mips_regmap): Renamed from regmap, made static.
22616 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22618 (mips_cannot_store_register): Renamed from cannot_store_register,
22620 (the_low_target): New.
22621 * linux-ppc-low.c (num_regs): Remove.
22622 (ppc_num_regs): Define.
22623 (ppc_regmap): Renamed from regmap, made static.
22624 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22626 (ppc_cannot_store_register): Renamed from cannot_store_register,
22628 (the_low_target): New.
22629 * linux-s390-low.c (num_regs): Remove.
22630 (s390_num_regs): Define.
22631 (s390_regmap): Renamed from regmap, made static.
22632 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22634 (s390_cannot_store_register): Renamed from cannot_store_register,
22636 (the_low_target): New.
22637 * linux-sh-low.c (num_regs): Remove.
22638 (sh_num_regs): Define.
22639 (sh_regmap): Renamed from regmap, made static.
22640 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22642 (sh_cannot_store_register): Renamed from cannot_store_register,
22644 (the_low_target): New.
22645 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22646 (the_low_target): New.
22648 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22650 * Makefile.in: Add stamp-h target.
22651 * configure.in: Create stamp-h.
22652 * configure: Regenerated.
22654 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22656 * inferiors.c: New file.
22657 * target.c: New file.
22658 * target.h: New file.
22659 * Makefile.in: Add target.o and inferiors.o. Update
22661 * linux-low.c (inferior_pid): New static variable,
22662 moved from server.c.
22663 (linux_create_inferior): Renamed from create_inferior.
22664 Call add_inferior. Return 0 on success instead of a PID.
22665 (linux_attach): Renamed from myattach.
22666 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22667 (linux_thread_alive): Renamed from mythread_alive.
22668 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22670 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22671 (regsets_store_inferior_registers): Correct error message.
22672 Add missing ``return 0''.
22673 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22674 (linux_store_registers): Renamed from store_inferior_registers.
22675 (linux_read_memory): Renamed from read_inferior_memory.
22676 (linux_write_memory): Renamed from write_inferior_memory.
22677 (linux_target_ops): New structure.
22678 (initialize_low): Call set_target_ops ().
22679 * remote-utils.c (unhexify): New function.
22680 (hexify): New function.
22681 (input_interrupt): Send signals to ``signal_pid''.
22682 * server.c (inferior_pid): Remove.
22683 (start_inferior): Update create_inferior call.
22684 (attach_inferior): Call add_inferior.
22685 (handle_query): New function.
22686 (main): Call handle_query for `q' packets.
22687 * server.h: Include "target.h". Remove obsolete prototypes.
22688 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22690 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22692 * Makefile.in: Add WARN_CFLAGS. Update configury
22694 * configure.in: Check for <string.h>
22695 * configure: Regenerate.
22696 * config.in: Regenerate.
22697 * gdbreplay.c: Include needed system headers.
22698 (remote_open): Remove strchr prototype.
22699 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22700 * regcache.c (supply_register): Change buf argument to const void *.
22701 (supply_register_by_name): Likewise.
22702 (collect_register): Change buf argument to void *.
22703 (collect_register_by_name): Likewise.
22704 * regcache.h: Add missing prototypes.
22705 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22706 * server.c (handle_query): New function.
22707 (attached): New static variable, moved out of main.
22708 (main): Quiet longjmp clobber warnings.
22709 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22710 * utils.c (error): Remove NORETURN.