1 2021-04-13 Pedro Alves <pedro@palves.net>
3 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
5 2021-04-13 Tom Tromey <tromey@adacore.com>
7 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
8 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
10 2021-04-13 Pedro Alves <pedro@palves.net>
12 * Makefile.in (SFILES): Remove hostio-errno.cc.
13 * configure: Regenerate.
14 * configure.ac (GDBSERVER_DEPFILES): No longer add
16 * configure.srv (srv_hostio_err_objs): Delete.
17 * hostio-errno.cc: Delete.
18 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
20 * hostio.h (hostio_last_error_from_errno): Delete.
21 * target.cc (process_stratum_target::hostio_last_error): Delete.
22 * target.h (class process_stratum_target) <hostio_last_error>:
25 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
27 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
28 * win32-low.h: Likewise.
30 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
32 * target.h (class process_stratum_target) <pid_to_exec_file>:
33 Constify the return type. Update the definition/references below.
34 * target.cc (process_stratum_target::pid_to_exec_file)
35 * linux-low.h (class linux_process_target) <pid_to_exec_file>
36 * linux-low.cc (linux_process_target::pid_to_exec_file)
37 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
38 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
39 * server.cc (handle_qxfer_exec_file)
41 2021-04-11 Eli Zaretskii <eliz@gnu.org>
43 * win32-low.cc (win32_add_dll): New function, with body almost
44 identical to what win32_add_all_dlls did. Accepts one argument;
45 if that is non-NULL, returns the file name of the DLL that is
46 loaded at the base address equal to that argument, or NULL if not
47 found. If the argument is NULL, add all the DLLs loaded by the
48 inferior to the list of solibs and return NULL.
49 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
50 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
51 failed to glean the file name of the DLL, call win32_add_dll to
52 try harder using the lpBaseOfDll member of the load-DLL event.
54 2021-03-30 Luis Machado <luis.machado@linaro.org>
56 * server.cc (handle_general_set, handle_query): Update variable
57 to bool and fix verification logic.
59 2021-03-24 Luis Machado <luis.machado@linaro.org>
61 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
62 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
63 nat/aarch64-mte-linux-ptrace.o.
64 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
65 (class aarch64_target) <supports_memory_tagging>
66 <fetch_memtags, store_memtags>: New method overrides.
67 (aarch64_target::supports_memory_tagging)
68 (aarch64_target::fetch_memtags)
69 (aarch64_target::store_memtags): New methods.
71 2021-03-24 Luis Machado <luis.machado@linaro.org>
73 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
74 (aarch64_store_mteregset): New function.
75 (aarch64_regsets): Add MTE register set entry.
76 (aarch64_sve_regsets): Add MTE register set entry.
78 2021-03-24 Luis Machado <luis.machado@linaro.org>
80 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
81 aarch64_linux_read_description.
82 (initialize_low_tracepoint): Likewise.
83 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
85 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
87 (aarch64_linux_read_description): Add mte_p parameter and update to
89 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
92 2021-03-24 Luis Machado <luis.machado@linaro.org>
94 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
96 2021-03-24 Luis Machado <luis.machado@linaro.org>
98 * server.cc (test_memory_tagging_functions): New function.
99 (captured_main): Register test_memory_tagging_functions.
101 2021-03-24 Luis Machado <luis.machado@linaro.org>
103 * remote-utils.cc (decode_m_packet_params): Renamed from ...
104 (decode_m_packet): ... this, which now calls decode_m_packet_params.
105 Make char * param/return const char *.
106 (decode_M_packet): Use decode_m_packet_params and make char * param
108 * remote-utils.h (decode_m_packet_params): New prototype.
109 (decode_m_packet): Constify char pointers.
110 (decode_M_packet): Likewise.
111 * server.cc (create_fetch_memtags_reply)
112 (parse_store_memtags_request): New
114 (handle_general_set): Handle the QMemTags packet.
115 (parse_fetch_memtags_request): New function.
116 (handle_query): Handle the qMemTags packet and advertise memory
118 (captured_main): Initialize memory tagging flag.
119 * server.h (struct client_state): Initialize memory tagging flag.
120 * target.cc (process_stratum_target::supports_memory_tagging)
121 (process_stratum_target::fetch_memtags)
122 (process_stratum_target::store_memtags): New methods.
123 * target.h: Include gdbsupport/byte-vector.h.
124 (class process_stratum_target) <supports_memory_tagging>
125 <fetch_memtags, store_memtags>: New class virtual methods.
126 (target_supports_memory_tagging): Define.
128 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
130 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
133 (unloaded_dll): Declare an overloaded version that takes a proc
135 * dll.cc (loaded_dll)
136 (unloaded_dll): Implement the overloaded versions.
137 (clear_dlls): Clear all process' dll lists.
138 (all_dlls, dlls_changed): Remove the global variables.
139 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
141 * server.cc (handle_qxfer_libraries): Ditto.
142 (handle_v_attach): Ditto.
143 (captured_main): Ditto.
145 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
147 * linux-low.cc (linux_process_target::filter_event): Return
149 * linux-low.h (class linux_process_target) <filter_event>:
152 2021-02-12 Tom Tromey <tromey@adacore.com>
154 * gdbreplay.cc (remote_desc): Remove.
155 (remote_desc_in, remote_desc_out): New globals.
156 (remote_close): Update.
157 (remote_open): Handle "-".
158 (remote_open): Update.
159 (logchar): Log to stderr.
160 (expect, play): Update.
162 2021-02-12 Tom Tromey <tromey@adacore.com>
164 * gdbreplay.cc (remote_open): Constify.
166 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
168 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
169 gnulib free replacement too.
170 * common-defs.h [USE_WIN32API](read, write): Undefine
171 gnulib versions before defining these macros.
173 2021-02-03 Pedro Alves <pedro@palves.net>
175 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
176 Discard step SIGTRAP, unless GDB wanted the thread to step.
178 2021-02-03 Pedro Alves <pedro@palves.net>
180 * server.cc (discard_queued_stop_replies): Don't ever discard the
181 notification at the head of the list.
183 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
185 * ax.cc (bytecode_address_table): Make static.
186 * debug.cc (debug_file): Make static.
187 * linux-low.cc (stopping_threads): Make static.
188 (step_over_bkpt): Make static.
189 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
190 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
191 alloced_trace_state_variables, trace_buffer_ctrl,
192 tracing_start_time, tracing_stop_time, tracing_user_name,
193 tracing_notes, tracing_stop_note): Make static.
195 2021-01-20 Tom de Vries <tdevries@suse.de>
197 * linux-x86-low.cc (collect_register_i386): New function.
198 (x86_fill_gregset): Remove memset. Use collect_register_i386.
200 2021-01-07 Tom de Vries <tdevries@suse.de>
202 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
203 (LIBIBERTY_FOR_SHLIB): New var.
204 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
205 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
207 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
209 * debug.cc (debug_print_depth): New.
211 2021-01-01 Joel Brobecker <brobecker@adacore.com>
213 * server.cc (gdbserver_version): Update copyright year.
214 * gdbreplay.cc (gdbreplay_version): Likewise.
216 2020-12-16 Luis Machado <luis.machado@linaro.org>
218 * linux-aarch64-low.cc (address_significant): New function.
219 (aarch64_target::low_stopped_data_address): Handle the TBI.
221 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
223 * Makefile.in (IPA_LIB): Include libiberty library.
225 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
227 * server.cc (gdbserver_usage): Add missing option to usage text.
228 (gdbserver_show_disableable): Likewise.
230 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
232 * ax.cc: Fix indentation.
233 * dll.cc: Fix indentation.
234 * inferiors.h: Fix indentation.
235 * linux-low.cc: Fix indentation.
236 * linux-nios2-low.cc: Fix indentation.
237 * linux-ppc-ipa.cc: Fix indentation.
238 * linux-ppc-low.cc: Fix indentation.
239 * linux-x86-low.cc: Fix indentation.
240 * linux-xtensa-low.cc: Fix indentation.
241 * regcache.cc: Fix indentation.
242 * server.cc: Fix indentation.
243 * tracepoint.cc: Fix indentation.
245 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
247 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
249 * configure: Re-generate.
251 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
253 * configure: Re-generate.
255 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
257 * configure: Re-generate.
259 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
261 * configure: Re-generate.
263 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
265 * configure: Re-generate.
267 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
269 * configure.ac: Modernize.
270 * configure: Re-generate.
272 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
274 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
276 * configure: Re-generate.
278 2020-10-26 Pedro Alves <pedro@palves.net>
280 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
281 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
284 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
286 * acinclude.m4: Update ptrace.m4 path.
288 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
290 * config.in: Re-generate.
291 * configure: Re-generate.
293 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
295 * server.cc (handle_general_set): Don't use sprintf with
296 argument overlapping buffer.
298 2020-10-20 Tom Tromey <tromey@adacore.com>
301 * inferiors.cc (remove_thread): Clear current_thread before
304 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
306 * netbsd-low.cc (netbsd_tdesc): Remove.
307 (netbsd_add_process): Likewise.
308 (netbsd_process_target::create_inferior): Update.
310 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
312 * linux-arc-low.cc (arc_linux_read_description): Release the
313 unique_ptr returned from arc_create_target_description.
315 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
317 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
318 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
320 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
322 * linux-low.cc (linux_process_target::handle_extended_wait):
323 Release the unique_ptr returned from allocate_target_description.
324 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
325 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
326 (tdesc_i386_linux_no_xml): Change type.
327 (x86_linux_read_description): Borrow pointer from unique_ptr
329 (x86_target::get_ipa_tdesc_idx): Likewise.
330 (initialize_low_arch): Likewise.
331 * tdesc.cc (allocate_target_description): Update return type.
333 2020-10-07 Tom Tromey <tromey@adacore.com>
335 * server.cc (handle_search_memory): Remove dead code.
337 2020-10-07 Tom Tromey <tromey@adacore.com>
339 * server.cc (handle_search_memory_1): Remove.
340 (handle_search_memory): Use simple_search_memory.
342 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
344 * Makefile.in (COMPILE): Add CXXFLAGS.
345 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
346 (gdbserver$(EXEEXT)): Add CXXFLAGS.
347 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
348 ($(IPA_LIB)): Add CXXFLAGS.
349 (IPAGENT_COMPILE): Add CXXFLAGS.
351 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
353 * configure.srv: Support ARC architecture.
354 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
355 * linux-arc-low.cc: New file.
357 2020-10-07 Kamil Rytarowski <n54@gmx.com>
359 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
360 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
361 (netbsd_process_target::qxfer_libraries_svr4): Update.
363 2020-10-07 Kamil Rytarowski <n54@gmx.com>
365 * netbsd-low.cc: Fix whitespace formatting.
366 * netbsd-amd64-low.cc: Likewise.
368 2020-10-07 Kamil Rytarowski <n54@gmx.com>
370 * netbsd-low.cc (netbsd_process_target::read_memory)
371 (netbsd_process_target::write_memory): Update.
373 2020-10-07 Kamil Rytarowski <n54@gmx.com>
375 * netbsd-aarch64-low.cc: Add.
376 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
377 * configure.srv: Add aarch64*-*-netbsd*.
379 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
381 * regcache.cc (register_data): Remove unused "fetch" argument.
383 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
385 * server.cc (handle_monitor_command): Handle "set
387 (captured_main): Handle "--debug-event-loop".
388 (monitor_show_help): Mention new setting.
389 (gdbserver_usage): Mention new flag.
391 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
393 * linux-low.cc (linux_process_target::async): Pass name to
395 * remote-utils.cc (handle_accept_event): Likewise.
396 (remote_open): Likewise.
398 2020-10-01 Kamil Rytarowski <n54@gmx.com>
400 * netbsd-i386-low.cc: Add.
401 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
402 * configure.srv: Add i[34567]86-*-netbsd*.
404 2020-10-01 Kamil Rytarowski <n54@gmx.com>
406 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
407 (netbsd_target_regsets): Now const.
408 (the_low_target): Remove.
409 (class netbsd_amd64_target, the_netbsd_amd64_target)
410 (the_netbsd_target): Add.
411 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
413 (netbsd_process_target::fetch_registers)
414 (netbsd_process_target::store_registers, initialize_low): Update.
415 (the_netbsd_target): Remove.
416 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
417 (the_low_target, netbsd_tdesc): Remove.
418 (netbsd_process_target::get_regs_info)
419 (netbsd_process_target::low_arch_setup): Add.
421 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
423 * win32-low.cc: Remove local wow64_process variable.
424 * win32-low.h: Remove local wow64_process variable.
426 2020-09-18 Tom Tromey <tromey@adacore.com>
428 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
429 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
430 (netbsd_process_target::wait): Change type of target_options.
431 * win32-low.h (class win32_process_target) <wait>: Update.
432 * win32-low.cc (win32_process_target::wait): Update.
433 * target.h (class process_stratum_target) <wait>: Update.
435 * target.cc (mywait, target_wait): Change type of "options".
436 * linux-low.h (class linux_process_target) <wait, wait_1>:
438 * linux-low.cc (linux_process_target::wait)
439 (linux_process_target::wait_1): Update.
441 2020-09-15 Tom Tromey <tromey@adacore.com>
443 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
444 (xmltarget_amd64_linux_no_xml): Now arrays.
446 2020-09-14 Tom Tromey <tromey@adacore.com>
448 * tracepoint.cc (eval_result_names): Now const.
449 * ax.cc (gdb_agent_op_names): Now const.
451 2020-09-10 Kamil Rytarowski <n54@gmx.com>
453 * netbsd-low.cc: Add.
454 * netbsd-low.h: Likewise.
455 * netbsd-amd64-low.cc: Likewise.
456 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
457 "netbsd-amd64-low.cc".
458 * configure.srv: Add x86_64-*-netbsd*.
460 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
462 * server.cc (captured_main): Accept multiple `--selftest=`
463 options. Pass all `--selftest=` arguments to run_tests.
465 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
467 * configure, config.in: Regenerate.
469 2020-07-26 Eli Zaretskii <eliz@gnu.org>
471 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
472 When checking whether socklen_t type is defined, use ws2tcpip.h if
473 it is available and sys/socket.h isn't.
474 * configure: Regenerate.
475 * config.in: Regenerate.
477 2020-07-22 Pedro Alves <pedro@palves.net>
479 * inferiors.cc (switch_to_process): New, moved here from
480 thread-db.cc, and made extern.
481 * inferiors.h (switch_to_process): Declare.
482 * server.cc: Include "gdbsupport/scoped_restore.h".
483 (handle_qxfer_threads_proper): Now returns bool. Prepare to
484 access memory around target calls.
485 (handle_qxfer_threads): Handle errors.
486 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
488 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
490 * linux-low.cc (stopped_pids): Make static.
492 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
494 * tdesc.cc (allocate_target_description): Add header comment.
495 (target_desc_deleter::operator()): New function.
496 * tdesc.h (struct target_desc): Declare as final.
498 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
500 * server.cc (handle_query): Use std::vector of
501 std::string for `qsupported` vector. Use separate
503 * target.h (class process_stratum_target) <process_qsupported>:
504 Change parameters to array_view of const char *.
505 (target_process_qsupported): Remove `count` parameter.
506 * target.cc (process_stratum_target::process_qsupported): Change
507 parameters to array_view of const char *.
508 * linux-x86-low.cc (class x86_target) <process_qsupported>:
511 2020-06-29 Tom de Vries <tdevries@suse.de>
513 * ax.h: Include gdbsupport/debug_agent.h.
515 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
517 * tdesc.cc (struct tdesc_compatible_info): New struct.
518 (tdesc_compatible_info_list): New function.
519 (tdesc_compatible_info_arch_name): New function.
521 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523 Use std::list to stop pending signal instead of manually-created
525 * linux-low.h: Include <list>.
526 (struct pending_signal): Move here from linux-low.cc.
527 (struct lwp_info) <pending_signals>
528 <pending_signals_to_report>: Update the type.
529 * linux-low.cc (struct pending_signals): Remove.
530 (linux_process_target::delete_lwp)
531 (linux_process_target::add_lwp)
532 (enqueue_one_deferred_signal)
533 (dequeue_one_deferred_signal)
534 (enqueue_pending_signal)
535 (linux_process_target::resume_one_lwp_throw)
536 (linux_process_target::thread_needs_step_over)
537 (linux_process_target::resume_one_thread)
538 (linux_process_target::proceed_one_lwp): Update the use of pending
541 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
543 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
546 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
548 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
549 * configure.srv: Remove mingw32ce cases.
550 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
551 * win32-low.h (to_back_slashes): Remove.
552 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
554 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
556 * Makefile.in (SFILES): linux-tile-low.cc.
557 * configure.srv: Remove tilegx case.
558 * linux-tile-low.cc: Remove.
560 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
562 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
563 * configure.srv: Remove m32r case.
564 * linux-m32r-low.cc: Remove.
566 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
568 * Makefile.in (SFILES): Remove linux-cris-low.c.
569 * configure.srv: Remove cris cases.
570 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
572 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
574 * Makefile.in (SFILES): Remove linux-bfin-low.c.
575 * configure.srv: Remove bfin case.
576 * linux-bfin-low.cc: Remove.
577 * linux-low.cc: Remove BFIN-conditional code.
579 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
581 * configure: Re-generate.
582 * configure.ac: Remove srv_qnx test.
583 * configure.srv: Remove nto case.
584 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
585 * remote-utils.c: Remove __QNX__-guarded code.
587 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
589 * configure: Re-generate.
590 * configure.ac: Remove srv_lynxos test.
591 * configure.srv: Remove lynxos cases.
592 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
595 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
597 * README: Fix a few outdated or incoherent things.
599 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
601 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
602 (win32_clear_inferiors): Use open_process_used.
603 (get_child_debug_event): Likewise.
605 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
608 * linux-low.cc (linux_process_target::create_inferior),
609 lynx-low.cc (lynx_process_target::create_inferior),
610 win32-low.cc (win32_process_target::create_inferior): Use
611 construct_inferior_arguments instead of stringify_argv
612 to get string representation which properly escapes
614 * server.cc (handle_v_run): Just pass empty program arg
615 as such, since any further processing is now handled via
616 construct_inferior_arguments.
618 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
620 * nto-low.cc (nto_process_target::create_inferior): Pass
621 argv to spawnp function as char **.
623 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
625 * server.cc (captured_main), (handle_v_run): No longer
626 insert extra NULL element to args vector.
628 2020-05-23 Pedro Alves <palves@redhat.com>
630 * gdb-safe-ctype.h: New.
632 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
634 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
635 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
636 (ia64_target::low_breakpoint_at): Ditto.
638 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
640 * win32-i386-low.cc (i386_supports_z_point_type): Handle
641 Z_PACKET_HW_BP z_type.
642 (i386_insert_point): Handle raw_bkpt_type type.
643 (i386_remove_point): Likewise.
645 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
647 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
649 * win32-arm-low.cc (arm_num_regs): New function.
650 (struct win32_target_ops): Use arm_num_regs.
651 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
653 (i386_get_thread_context): Likewise.
654 (i386_prepare_to_resume): Likewise.
655 (i386_thread_added): Likewise.
656 (i386_single_step): Likewise.
657 (i386_fetch_inferior_register): Likewise.
658 (i386_store_inferior_register): Likewise.
659 (i386_arch_setup): Likewise.
660 (i386_win32_num_regs): New function.
661 (struct win32_target_ops): Use i386_win32_num_regs.
662 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
664 (win32_require_context): Likewise.
665 (child_add_thread): Likewise.
666 (do_initial_child_stuff): Likewise.
667 (continue_one_thread): Likewise.
668 (win32_process_target::resume): Likewise.
669 (load_psapi): Likewise.
670 (win32_add_all_dlls): Likewise.
671 (maybe_adjust_pc): Likewise.
672 (win32_process_target::qxfer_siginfo): Likewise.
673 (initialize_low): Likewise.
674 * win32-low.h (struct win32_target_ops): Change num_regs to
677 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
679 * configure.ac: Remove check for fs_base/gs_base in
681 * configure: Re-generate.
682 * config.in: Re-generate.
683 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
684 x86_store_gregset): Adjust.
686 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
688 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
691 2020-04-16 Tom Tromey <tromey@adacore.com>
693 * win32-low.cc (windows_nat::handle_access_violation): New
696 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
698 * win32-low.cc (get_child_debug_event): Fix format string warning.
700 2020-04-13 Tom Tromey <tom@tromey.com>
702 * server.h (gdb_fildes_t): Remove typedef.
703 * remote-utils.c (remote_desc, list_desc): Now int.
704 (INVALID_DESCRIPTOR): Remove.
705 (gdb_connected, remote_close)
706 (check_remote_input_interrupt_request): Update.
707 * utils.h (pfildes): Don't declare.
708 * utils.c (pfildes): Remove.
710 2020-04-13 Tom Tromey <tom@tromey.com>
712 * server.h (handle_serial_event, handle_target_event): Update.
713 * server.c: Don't call initialize_event_loop.
714 (keep_processing_events): New global.
715 (handle_serial_event): Return void. Set keep_processing_events.
716 (handle_target_event): Return void.
717 (start_event_loop): Move from event-loop.c. Rewrite.
718 * remote-utils.c (handle_accept_event): Return void.
719 (reset_readchar): Use delete_timer.
720 (process_remaining): Return void.
721 (reschedule): Use create_timer.
722 * event-loop.h: Remove.
723 * event-loop.cc: Remove.
724 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
726 2020-04-13 Tom Tromey <tom@tromey.com>
728 * server.c (invoke_async_signal_handlers)
729 (check_async_event_handlers, flush_streams, gdb_select): New
732 2020-04-13 Tom Tromey <tom@tromey.com>
734 * configure: Rebuild.
735 * config.in: Rebuild.
737 2020-04-08 Tom Tromey <tromey@adacore.com>
740 * win32-low.c (child_continue): Call matching_pending_stop.
741 (get_child_debug_event): Call fetch_pending_stop. Push pending
744 2020-04-08 Tom Tromey <tromey@adacore.com>
746 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
747 (win32_process_target::supports_stopped_by_sw_breakpoint):
749 * win32-low.c (win32_supports_z_point_type): Always handle
751 (win32_insert_point): Call insert_memory_breakpoint when needed.
752 (win32_remove_point): Call remove_memory_breakpoint when needed.
753 (win32_process_target::stopped_by_sw_breakpoint)
754 (win32_process_target::supports_stopped_by_sw_breakpoint): New
756 (win32_target_ops): Update.
757 (maybe_adjust_pc): New function.
758 (win32_wait): Call maybe_adjust_pc.
760 2020-04-08 Tom Tromey <tromey@adacore.com>
762 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
764 * win32-i386-low.c (the_low_target): Update.
765 * win32-arm-low.c (the_low_target): Update.
767 2020-04-08 Tom Tromey <tromey@adacore.com>
769 * win32-low.h (win32_process_target::read_pc)
770 (win32_process_target::write_pc): Declare.
771 * win32-low.c (win32_process_target::read_pc)
772 (win32_process_target::write_pc): New methods.
773 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
775 (the_low_target): Update.
776 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
778 (the_low_target): Update.
780 2020-04-08 Tom Tromey <tromey@adacore.com>
782 * win32-low.c (win32_kill, get_child_debug_event): Use
783 wait_for_debug_event.
785 2020-04-08 Tom Tromey <tromey@adacore.com>
787 * win32-low.c (child_continue): Call continue_last_debug_event.
789 2020-04-08 Tom Tromey <tromey@adacore.com>
791 * win32-low.c (handle_exception): Remove.
792 (windows_nat::handle_ms_vc_exception): New function.
793 (get_child_debug_event): Add "continue_status" parameter.
795 (win32_wait): Update.
797 2020-04-08 Tom Tromey <tromey@adacore.com>
799 * win32-low.c (windows_nat::handle_load_dll): Rename from
800 handle_load_dll. No longer static.
801 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
804 2020-04-08 Tom Tromey <tromey@adacore.com>
806 * win32-low.c (handle_output_debug_string): Add parameter. Change
808 (win32_kill, get_child_debug_event): Update.
810 2020-04-08 Tom Tromey <tromey@adacore.com>
812 * win32-low.c (current_process_handle, current_process_id)
813 (main_thread_id, last_sig, current_event, siginfo_er): Move to
816 2020-04-08 Tom Tromey <tromey@adacore.com>
818 * win32-low.c (get_image_name): Remove.
819 (handle_load_dll): Update.
821 2020-04-08 Tom Tromey <tromey@adacore.com>
823 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
824 No longer static. Change parameters.
825 (child_add_thread, child_fetch_inferior_registers)
826 (child_store_inferior_registers, win32_resume)
827 (win32_get_tib_address): Update.
829 2020-04-08 Tom Tromey <tromey@adacore.com>
831 * win32-low.h (struct win32_target_ops): Use qualified names where
833 * win32-i386-low.c: Add "using namespace".
834 * win32-low.c: Add "using namespace".
835 * win32-arm-low.c: Add "using namespace".
837 2020-04-08 Tom Tromey <tromey@adacore.com>
839 * win32-low.c (delete_thread_info): Don't call CloseHandle.
841 2020-04-08 Tom Tromey <tromey@adacore.com>
843 * win32-low.c (win32_require_context, suspend_one_thread): Use
844 windows_thread_info::suspend.
845 (continue_one_thread): Use windows_thread_info::resume.
846 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
848 2020-04-08 Tom Tromey <tromey@adacore.com>
850 * win32-i386-low.c (update_debug_registers)
851 (i386_prepare_to_resume, i386_thread_added): Update.
853 2020-04-08 Tom Tromey <tromey@adacore.com>
855 * win32-low.c (child_add_thread): Use new.
856 (delete_thread_info): Use delete.
858 2020-04-08 Tom Tromey <tromey@adacore.com>
860 * win32-low.h (struct windows_thread_info): Remove.
862 2020-04-08 Tom Tromey <tromey@adacore.com>
864 * win32-low.h (struct windows_thread_info): Rename from
865 win32_thread_info. Remove typedef.
866 (struct win32_target_ops, win32_require_context): Update.
867 * win32-low.c (win32_get_thread_context)
868 (win32_set_thread_context, win32_prepare_to_resume)
869 (win32_require_context, thread_rec, child_add_thread)
870 (delete_thread_info, continue_one_thread)
871 (child_fetch_inferior_registers, child_store_inferior_registers)
872 (win32_resume, suspend_one_thread, win32_get_tib_address):
874 * win32-i386-low.c (update_debug_registers)
875 (win32_get_current_dr, i386_get_thread_context)
876 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
877 (i386_fetch_inferior_register, i386_store_inferior_register):
879 * win32-arm-low.c (arm_get_thread_context)
880 (arm_fetch_inferior_register, arm_store_inferior_register):
883 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
885 * linux-low.h (struct linux_target_ops): Remove.
886 (the_low_target): Remove.
887 * linux-x86-low.cc (the_low_target): Remove.
888 * linux-aarch64-low.cc (the_low_target): Ditto.
889 * linux-arm-low.cc (the_low_target): Ditto.
890 * linux-bfin-low.cc (the_low_target): Ditto.
891 * linux-cris-low.cc (the_low_target): Ditto.
892 * linux-crisv32-low.cc (the_low_target): Ditto.
893 * linux-ia64-low.cc (the_low_target): Ditto.
894 * linux-m32r-low.cc (the_low_target): Ditto.
895 * linux-m68k-low.cc (the_low_target): Ditto.
896 * linux-mips-low.cc (the_low_target): Ditto.
897 * linux-nios2-low.cc (the_low_target): Ditto.
898 * linux-ppc-low.cc (the_low_target): Ditto.
899 * linux-riscv-low.cc (the_low_target): Ditto.
900 * linux-s390-low.cc (the_low_target): Ditto.
901 * linux-sh-low.cc (the_low_target): Ditto.
902 * linux-sparc-low.cc (the_low_target): Ditto.
903 * linux-tic6x-low.cc (the_low_target): Ditto.
904 * linux-tile-low.cc (the_low_target): Ditto.
905 * linux-xtensa-low.cc (the_low_target): Ditto.
907 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
909 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
910 linux target define the op by overriding the declaration in
911 process_stratum_target.
913 * linux-low.h (struct linux_target_ops): Remove the op.
914 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
915 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
916 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
917 (x86_get_ipa_tdesc_idx): Turn into...
918 (x86_target::get_ipa_tdesc_idx): ...this.
919 (the_low_target): Remove the op field.
920 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
921 (ppc_get_ipa_tdesc_idx): Turn into...
922 (ppc_target::get_ipa_tdesc_idx): ...this.
923 (the_low_target): Remove the op field.
924 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
925 (s390_get_ipa_tdesc_idx): Turn into...
926 (s390_target::get_ipa_tdesc_idx): ...this.
927 (the_low_target): Remove the op field.
929 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
931 Turn the 'get_syscall_trapinfo' linux target op into a method
932 of process_stratum_target.
934 * linux-low.h (struct linux_target_ops): Remove the op.
935 (class linux_process_target) <get_syscall_trapinfo>
936 <gdb_catch_this_syscall>
937 <low_supports_catch_syscall>
938 <low_get_syscall_trapinfo>: Declare.
939 * linux-low.cc (get_syscall_trapinfo): Turn into...
940 (linux_process_target::get_syscall_trapinfo): ...this.
941 (linux_process_target::low_get_syscall_trapinfo): Define.
942 (gdb_catch_this_syscall_p): Turn into...
943 (linux_process_target::gdb_catch_this_syscall): ...this.
944 (linux_process_target::low_supports_catch_syscall): Define.
946 Update the callers below.
948 (linux_process_target::wait_1)
949 (linux_process_target::supports_catch_syscall)
951 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
952 <low_get_syscall_trapinfo>: Declare.
953 (x86_target::low_supports_catch_syscall): Define.
954 (x86_get_syscall_trapinfo): Turn into...
955 (x86_target::low_get_syscall_trapinfo): ...this.
956 (the_low_target): Remove the op field.
957 * linux-aarch64-low.cc (class aarch64_target)
958 <low_supports_catch_syscall>
959 <low_get_syscall_trapinfo>: Declare.
960 (aarch64_target::low_supports_catch_syscall): Define.
961 (aarch64_get_syscall_trapinfo): Turn into...
962 (aarch64_target::low_get_syscall_trapinfo): ...this.
963 (the_low_target): Remove the op field.
964 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
965 <low_get_syscall_trapinfo>: Declare.
966 (arm_target::low_supports_catch_syscall): Define.
967 (arm_get_syscall_trapinfo): Turn into...
968 (arm_target::low_get_syscall_trapinfo): ...this.
969 (the_low_target): Remove the op field.
970 * linux-ppc-low.cc (the_low_target): Remove the op field.
971 * linux-s390-low.cc (the_low_target): Remove the op field.
973 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
975 Remove the 'supports_hardware_single_step' linux target op and
976 override the process_stratum_target's op definition in
977 linux_process_target to return true.
979 * linux-low.h (struct linux_target_ops): Remove the op.
980 (class linux_process_target) <finish_step_over>
981 <maybe_hw_step>: Declare.
982 * linux-low.cc (can_hardware_single_step): Remove.
983 (maybe_hw_step): Turn into...
984 (linux_process_target::maybe_hw_step): ...this.
985 (finish_step_over): Turn into...
986 (linux_process_target::finish_step_over): ...this.
987 (linux_process_target::supports_hardware_single_step): Update
990 Update the callers below.
992 (linux_process_target::single_step)
993 (linux_process_target::resume_one_lwp_throw)
995 * linux-arm-low.cc (class arm_target)
996 <supports_hardware_single_step>: Declare.
997 (arm_supports_hardware_single_step): Turn into...
998 (arm_target::supports_hardware_single_step): ...this.
999 (the_low_target): Remove the op field.
1000 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1001 (the_low_target): Remove the op field.
1002 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1004 (the_low_target): Remove the op field.
1005 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1006 (the_low_target): Remove the op field.
1007 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1008 (the_low_target): Remove the op field.
1009 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1010 (the_low_target): Remove the op field.
1011 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1012 (the_low_target): Remove the op field.
1013 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1014 (the_low_target): Remove the op field.
1015 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1016 (the_low_target): Remove the op field.
1017 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1018 (the_low_target): Remove the op field.
1019 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1020 (the_low_target): Remove the op field.
1021 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1022 (the_low_target): Remove the op field.
1023 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1025 (the_low_target): Remove the op field.
1027 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1029 Turn the 'supports_range_stepping' linux target op into a method
1030 of linux_process_target.
1032 * linux-low.h (struct linux_target_ops): Remove the op.
1033 (class linux_process_target) <low_supports_range_stepping>: Declare.
1034 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1036 (linux_process_target::supports_range_stepping): Update the call
1038 * linux-x86-low.cc (class x86_target)
1039 <low_supports_range_stepping>: Declare.
1040 (x86_supports_range_stepping): Turn into...
1041 (x86_target::low_supports_range_stepping): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-aarch64-low.cc (class aarch64_target)
1044 <low_supports_range_stepping>: Declare.
1045 (aarch64_supports_range_stepping): Turn into...
1046 (aarch64_target::low_supports_range_stepping): ...this.
1047 (the_low_target): Remove the op field.
1048 * linux-arm-low.cc (the_low_target): Remove the op field.
1049 * linux-bfin-low.cc (the_low_target): Ditto.
1050 * linux-crisv32-low.cc (the_low_target): Ditto.
1051 * linux-m32r-low.cc (the_low_target): Ditto.
1052 * linux-m68k-low.cc (the_low_target): Ditto.
1053 * linux-ppc-low.cc (the_low_target): Ditto.
1054 * linux-s390-low.cc (the_low_target): Ditto.
1055 * linux-sh-low.cc (the_low_target): Ditto.
1056 * linux-tic6x-low.cc (the_low_target): Ditto.
1057 * linux-tile-low.cc (the_low_target): Ditto.
1058 * linux-xtensa-low.cc (the_low_target): Ditto.
1060 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1062 Remove the 'emit_ops' linux target ops and let the concrete
1063 linux target define the op by overriding the declaration of
1064 process_stratum_target.
1066 * linux-low.h (struct linux_target_ops): Remove the op.
1067 (class linux_process_target) <emit_ops>: Remove.
1068 * linux-low.cc (linux_process_target::emit_ops): Remove.
1069 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1070 (x86_emit_ops): Turn into...
1071 (x86_target::emit_ops): ...this.
1072 (the_low_target): Remove the op field.
1073 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1074 (aarch64_emit_ops): Turn into...
1075 (aarch64_target::emit_ops): ...this.
1076 (the_low_target): Remove the op field.
1077 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1078 (ppc_emit_ops): Turn into...
1079 (ppc_target::emit_ops): ...this.
1080 (the_low_target): Remove the op field.
1081 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1082 (s390_emit_ops): Turn into...
1083 (s390_target::emit_ops): ...this.
1084 (the_low_target): Remove the op field.
1085 * linux-arm-low.cc (the_low_target): Remove the op field.
1086 * linux-bfin-low.cc (the_low_target): Ditto.
1087 * linux-crisv32-low.cc (the_low_target): Ditto.
1088 * linux-m32r-low.cc (the_low_target): Ditto.
1089 * linux-m68k-low.cc (the_low_target): Ditto.
1090 * linux-sh-low.cc (the_low_target): Ditto.
1091 * linux-tic6x-low.cc (the_low_target): Ditto.
1092 * linux-tile-low.cc (the_low_target): Ditto.
1093 * linux-xtensa-low.cc (the_low_target): Ditto.
1095 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1097 Remove the 'install_fast_tracepoint_jump_pad' and
1098 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1099 concrete linux target define the ops by overriding the declarations
1100 of process_stratum_target.
1102 * linux-low.h (struct linux_target_ops): Remove the ops.
1103 (class linux_process_target) <supports_fast_tracepoints>
1104 <install_fast_tracepoint_jump_pad>
1105 <get_min_fast_tracepoint_insn_len>: Remove.
1106 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1107 (linux_process_target::install_fast_tracepoint_jump_pad)
1108 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1109 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1110 <install_fast_tracepoint_jump_pad>
1111 <get_min_fast_tracepoint_insn_len>: Declare.
1112 (x86_target::supports_fast_tracepoints): Define.
1113 (x86_install_fast_tracepoint_jump_pad): Turn into...
1114 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1115 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1116 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1117 (the_low_target): Remove the op fields.
1118 * linux-aarch64-low.cc (class aarch64_target)
1119 <supports_fast_tracepoints>
1120 <install_fast_tracepoint_jump_pad>
1121 <get_min_fast_tracepoint_insn_len>: Declare.
1122 (aarch64_target::supports_fast_tracepoints): Define.
1123 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1124 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1125 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1126 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1127 (the_low_target): Remove the op fields.
1128 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1129 <install_fast_tracepoint_jump_pad>
1130 <get_min_fast_tracepoint_insn_len>: Declare.
1131 (ppc_target::supports_fast_tracepoints): Define.
1132 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1133 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1134 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1135 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1136 (the_low_target): Remove the op fields.
1137 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1138 <install_fast_tracepoint_jump_pad>
1139 <get_min_fast_tracepoint_insn_len>: Declare.
1140 (s390_target::supports_fast_tracepoints): Define.
1141 (s390_install_fast_tracepoint_jump_pad): Turn into...
1142 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1143 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1144 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1145 (the_low_target): Remove the op fields.
1146 * linux-arm-low.cc (the_low_target): Remove the op fields.
1147 * linux-bfin-low.cc (the_low_target): Ditto.
1148 * linux-crisv32-low.cc (the_low_target): Ditto.
1149 * linux-m32r-low.cc (the_low_target): Ditto.
1150 * linux-m68k-low.cc (the_low_target): Ditto.
1151 * linux-sh-low.cc (the_low_target): Ditto.
1152 * linux-tic6x-low.cc (the_low_target): Ditto.
1153 * linux-tile-low.cc (the_low_target): Ditto.
1154 * linux-xtensa-low.cc (the_low_target): Ditto.
1156 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1158 Turn the 'get_thread_area' linux target op into a method of
1159 process_stratum_target.
1161 * linux-low.h (struct linux_target_ops): Remove the op.
1162 (class linux_process_target) <stuck_in_jump_pad>
1163 <linux_fast_tracepoint_collecting>
1164 <low_get_thread_area>: Declare.
1165 * linux-low.cc (supports_fast_tracepoints): Remove.
1166 (linux_fast_tracepoint_collecting): Turn into...
1167 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1168 (linux_process_target::low_get_thread_area): Define.
1169 (stuck_in_jump_pad_callback): Turn into...
1170 (linux_process_target::stuck_in_jump_pad): ...this.
1172 Update the caller below.
1174 (linux_process_target::stabilize_threads)
1176 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1178 (x86_get_thread_area): Turn into...
1179 (x86_target::low_get_thread_area): ...this.
1180 (the_low_target): Remove the op field.
1181 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1183 (aarch64_get_thread_area): Turn into...
1184 (aarch64_target::low_get_thread_area): ...this.
1185 (the_low_target): Remove the op field.
1186 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1188 (ppc_get_thread_area): Turn into...
1189 (ppc_target::low_get_thread_area): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1193 (s390_get_thread_area): Turn into...
1194 (s390_target::low_get_thread_area): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-arm-low.cc (the_low_target): Remove the op field.
1197 * linux-bfin-low.cc (the_low_target): Ditto.
1198 * linux-crisv32-low.cc (the_low_target): Ditto.
1199 * linux-m32r-low.cc (the_low_target): Ditto.
1200 * linux-m68k-low.cc (the_low_target): Ditto.
1201 * linux-sh-low.cc (the_low_target): Ditto.
1202 * linux-tic6x-low.cc (the_low_target): Ditto.
1203 * linux-tile-low.cc (the_low_target): Ditto.
1204 * linux-xtensa-low.cc (the_low_target): Ditto.
1206 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1208 Remote the 'supports_tracepoints' linux target op and let the
1209 concrete linux target define it by overriding the op declared in
1210 process_stratum_target.
1212 * linux-low.h (struct linux_target_ops): Remove the op.
1213 (class linux_process_target) <supports_tracepoints>: Remove.
1214 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1215 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1217 (x86_supports_tracepoints): Turn into...
1218 (x86_target::supports_tracepoints): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-aarch64-low.cc (class aarch64_target)
1221 <supports_tracepoints>: Declare.
1222 (aarch64_supports_tracepoints): Turn into...
1223 (aarch64_target::supports_tracepoints): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1227 (ppc_supports_tracepoints): Turn into...
1228 (ppc_target::supports_tracepoints): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1232 (s390_supports_tracepoints): Turn into...
1233 (s390_target::supports_tracepoints): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-arm-low.cc (the_low_target): Remove the op field.
1236 * linux-bfin-low.cc (the_low_target): Ditto.
1237 * linux-crisv32-low.cc (the_low_target): Ditto.
1238 * linux-m32r-low.cc (the_low_target): Ditto.
1239 * linux-m68k-low.cc (the_low_target): Ditto.
1240 * linux-sh-low.cc (the_low_target): Ditto.
1241 * linux-tic6x-low.cc (the_low_target): Ditto.
1242 * linux-tile-low.cc (the_low_target): Ditto.
1243 * linux-xtensa-low.cc (the_low_target): Ditto.
1245 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1247 Remove the 'process_qsupported' linux target op and let a concrete
1248 linux target define the op by overriding the op declaration in
1249 process_stratum_target.
1251 * linux-low.h (struct linux_target_ops): Remove the op.
1252 (class linux_process_target) <process_qsupported>: Remove.
1253 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1254 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1255 (x86_linux_process_qsupported): Turn into...
1256 (x86_target::process_qsupported): ...this.
1257 (the_low_target): Remove the op field.
1258 * linux-aarch64-low.cc (the_low_target): Remove the op
1260 * linux-arm-low.cc (the_low_target): Ditto.
1261 * linux-bfin-low.cc (the_low_target): Ditto.
1262 * linux-crisv32-low.cc (the_low_target): Ditto.
1263 * linux-m32r-low.cc (the_low_target): Ditto.
1264 * linux-m68k-low.cc (the_low_target): Ditto.
1265 * linux-ppc-low.cc (the_low_target): Ditto.
1266 * linux-s390-low.cc (the_low_target): Ditto.
1267 * linux-sh-low.cc (the_low_target): Ditto.
1268 * linux-tic6x-low.cc (the_low_target): Ditto.
1269 * linux-tile-low.cc (the_low_target): Ditto.
1270 * linux-xtensa-low.cc (the_low_target): Ditto.
1272 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1274 Turn the 'prepare_to_resume' linux target op into a method of
1275 linux_process_target.
1277 * linux-low.h (struct linux_target_ops): Remove the op.
1278 (class linux_process_target) <low_prepare_to_resume>: Declare.
1279 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1282 Update the callers below:
1284 (linux_process_target::resume_one_lwp_throw)
1285 (linux_process_target::low_prepare_to_resume)
1287 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1289 (x86_target::low_prepare_to_resume): Define.
1290 (the_low_target): Remove the op field.
1291 * linux-aarch64-low.cc (class aarch64_target)
1292 <low_prepare_to_resume>: Declare.
1293 (aarch64_target::low_prepare_to_resume): Define.
1294 (the_low_target): Remove the op field.
1295 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1297 (arm_prepare_to_resume): Turn into...
1298 (arm_target::low_prepare_to_resume): ...this.
1299 (the_low_target): Remove the op field.
1300 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1302 (mips_linux_prepare_to_resume): Turn into...
1303 (mips_target::low_prepare_to_resume): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-bfin-low.cc (the_low_target): Remove the op field.
1306 * linux-crisv32-low.cc (the_low_target): Ditto.
1307 * linux-m32r-low.cc (the_low_target): Ditto.
1308 * linux-m68k-low.cc (the_low_target): Ditto.
1309 * linux-ppc-low.cc (the_low_target): Ditto.
1310 * linux-s390-low.cc (the_low_target): Ditto.
1311 * linux-sh-low.cc (the_low_target): Ditto.
1312 * linux-tic6x-low.cc (the_low_target): Ditto.
1313 * linux-tile-low.cc (the_low_target): Ditto.
1314 * linux-xtensa-low.cc (the_low_target): Ditto.
1316 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1318 Turn the 'new_process', 'delete_process', 'new_thread',
1319 'delete_thread', and 'new_fork' linux target ops into methods
1320 of linux_process_target.
1322 * linux-low.h (struct linux_target_ops): Remove the ops.
1323 (class linux_process_target) <add_linux_process>
1328 <check_zombie_leaders>
1331 <low_delete_process>
1334 <low_new_fork>: Declare.
1335 * linux-low.cc (delete_lwp): Turn into...
1336 (linux_process_target::delete_lwp): ...this.
1337 (linux_process_target::low_delete_thread): Define.
1338 (linux_add_process): Turn into...
1339 (linux_process_target::add_linux_process): ...this.
1340 (linux_process_target::low_new_process): Define.
1341 (linux_process_target::low_delete_process): Define.
1342 (linux_process_target::low_new_fork): Define.
1343 (add_lwp): Turn into...
1344 (linux_process_target::add_lwp): ...this.
1345 (linux_process_target::low_new_thread): Define.
1346 (linux_attach_lwp): Turn into...
1347 (linux_process_target::attach_lwp): ...this.
1348 (linux_detach_one_lwp): Turn into...
1349 (linux_process_target::detach_one_lwp): ...this.
1350 (linux_detach_lwp_callback): Remove and inline...
1351 (linux_process_target::detach): ...here.
1352 (check_zombie_leaders): Turn into...
1353 (linux_process_target::check_zombie_leaders): ...this.
1354 (filter_exit_event): Turn into...
1355 (linux_process_target::filter_exit_event): ...this.
1357 Update the callers below.
1359 (linux_process_target::handle_extended_wait)
1360 (linux_process_target::create_inferior)
1361 (attach_proc_task_lwp_callback)
1362 (linux_process_target::attach)
1363 (linux_process_target::detach)
1364 (linux_process_target::mourn)
1365 * thread-db.cc (attach_thread)
1367 * linux-x86-low.cc (class x86_target) <low_new_process>
1368 <low_delete_process>
1371 <low_new_fork>: Declare.
1372 (x86_linux_new_process): Turn into...
1373 (x86_target::low_new_process): ...this.
1374 (x86_linux_delete_process): Turn into...
1375 (x86_target::low_delete_process): ...this.
1376 (x86_target::low_new_thread): Define.
1377 (x86_target::low_delete_thread): Define.
1378 (x86_linux_new_fork): Turn into...
1379 (x86_target::low_new_fork): ...this.
1380 (the_low_target): Remove the op fields.
1381 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1382 <low_delete_process>
1385 <low_new_fork>: Declare.
1386 (aarch64_linux_new_process): Turn into...
1387 (aarch64_target::low_new_process): ...this.
1388 (aarch64_linux_delete_process): Turn into...
1389 (aarch64_target::low_delete_process): ...this.
1390 (aarch64_target::low_new_thread): Define.
1391 (aarch64_target::low_delete_thread): Define.
1392 (aarch64_linux_new_fork): Turn into...
1393 (aarch64_target::low_new_fork): ...this.
1394 (the_low_target): Remove the op fields.
1395 * linux-arm-low.cc (class arm_target) <low_new_process>
1396 <low_delete_process>
1399 <low_new_fork>: Declare.
1400 (arm_new_process): Turn into...
1401 (arm_target::low_new_process): ...this.
1402 (arm_delete_process): Turn into...
1403 (arm_target::low_delete_process): ...this.
1404 (arm_new_thread): Turn into...
1405 (arm_target::low_new_thread): ...this.
1406 (arm_delete_thread): Turn into...
1407 (arm_target::low_delete_thread): ...this.
1408 (arm_new_fork): Turn into...
1409 (arm_target::low_new_fork): ...this.
1410 (the_low_target): Remove the op fields.
1411 * linux-mips-low.cc (class mips_target) <low_new_process>
1412 <low_delete_process>
1415 <low_new_fork>: Declare.
1416 (mips_linux_new_process): Turn into...
1417 (mips_target::low_new_process): ...this.
1418 (mips_linux_delete_process): Turn into...
1419 (mips_target::low_delete_process): ...this.
1420 (mips_linux_new_thread): Turn into...
1421 (mips_target::low_new_thread): ...this.
1422 (mips_linux_delete_thread): Turn into...
1423 (mips_target::low_delete_thread): ...this.
1424 (mips_linux_new_fork): Turn into...
1425 (mips_target::low_new_fork): ...this.
1426 (the_low_target): Remove the op fields.
1427 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1428 * linux-crisv32-low.cc (the_low_target): Ditto.
1429 * linux-m32r-low.cc (the_low_target): Ditto.
1430 * linux-m68k-low.cc (the_low_target): Ditto.
1431 * linux-ppc-low.cc (the_low_target): Ditto.
1432 * linux-s390-low.cc (the_low_target): Ditto.
1433 * linux-sh-low.cc (the_low_target): Ditto.
1434 * linux-tic6x-low.cc (the_low_target): Ditto.
1435 * linux-tile-low.cc (the_low_target): Ditto.
1436 * linux-xtensa-low.cc (the_low_target): Ditto.
1438 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1440 Turn the 'siginfo_fixup' linux target op into a method of
1441 linux_process_target.
1443 * linux-low.h (struct linux_target_ops): Remove the op.
1444 (class linux_process_target) <siginfo_fixup>
1445 <low_siginfo_fixup>: Declare.
1446 * linux-low.cc (siginfo_fixup): Turn into...
1447 (linux_process_target::siginfo_fixup): ...this.
1448 (linux_process_target::low_siginfo_fixup): Define.
1449 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1450 (x86_siginfo_fixup): Turn into...
1451 (x86_target::low_siginfo_fixup): ...this.
1452 (the_low_target): Remove the op field.
1453 * linux-aarch64-low.cc (class aarch64_target):
1454 <low_siginfo_fixup>: Declare.
1455 (aarch64_linux_siginfo_fixup): Turn into...
1456 (aarch64_target::low_siginfo_fixup): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-arm-low.cc (the_low_target): Remove the op field.
1459 * linux-bfin-low.cc (the_low_target): Ditto.
1460 * linux-crisv32-low.cc (the_low_target): Ditto.
1461 * linux-m32r-low.cc (the_low_target): Ditto.
1462 * linux-m68k-low.cc (the_low_target): Ditto.
1463 * linux-mips-low.cc (the_low_target): Ditto.
1464 * linux-ppc-low.cc (the_low_target): Ditto.
1465 * linux-s390-low.cc (the_low_target): Ditto.
1466 * linux-sh-low.cc (the_low_target): Ditto.
1467 * linux-tic6x-low.cc (the_low_target): Ditto.
1468 * linux-tile-low.cc (the_low_target): Ditto.
1469 * linux-xtensa-low.cc (the_low_target): Ditto.
1471 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1473 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1474 linux target ops into methods of linux_process_target.
1476 * linux-low.h (struct linux_target_ops): Remove the ops.
1477 (class linux_process_target) <low_collect_ptrace_register>
1478 <low_store_ptrace_register>: Declare.
1479 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1480 (linux_process_target::low_supply_ptrace_register): Define.
1482 Update the callers below.
1484 (linux_process_target::fetch_register)
1485 (linux_process_target::store_register)
1487 * linux-x86-low.cc (the_low_target): Remove the op fields.
1488 * linux-aarch64-low.cc (the_low_target): Ditto.
1489 * linux-arm-low.cc (the_low_target): Ditto.
1490 * linux-bfin-low.cc (the_low_target): Ditto.
1491 * linux-crisv32-low.cc (the_low_target): Ditto.
1492 * linux-m32r-low.cc (the_low_target): Ditto.
1493 * linux-m68k-low.cc (the_low_target): Ditto.
1494 * linux-sh-low.cc (the_low_target): Ditto.
1495 * linux-sparc-low.cc (the_low_target): Ditto.
1496 * linux-tic6x-low.cc (the_low_target): Ditto.
1497 * linux-tile-low.cc (the_low_target): Ditto.
1498 * linux-xtensa-low.cc (the_low_target): Ditto.
1499 * linux-mips-low.cc (class mips_target)
1500 <low_collect_ptrace_register>
1501 <low_supply_ptrace_register>: Declare.
1502 (mips_collect_ptrace_register): Turn into ...
1503 (mips_target::low_collect_ptrace_register): ...this.
1504 (mips_supply_ptrace_register): Turn into...
1505 (mips_target::low_supply_ptrace_register): ...this.
1506 (the_low_target): Remove the op fields.
1507 * linux-ppc-low.cc (class ppc_target)
1508 <low_collect_ptrace_register>
1509 <low_supply_ptrace_register>: Declare.
1510 (ppc_collect_ptrace_register): Turn into ...
1511 (ppc_target::low_collect_ptrace_register): ...this.
1512 (ppc_supply_ptrace_register): Turn into ...
1513 (ppc_target::low_supply_ptrace_register): ...this.
1514 (ppc_fill_gregset): Update for the calls to
1515 low_collect_ptrace_register.
1516 (the_low_target): Remove the op fields.
1517 * linux-s390-low.cc (class s390_target)
1518 <low_collect_ptrace_register>
1519 <low_supply_ptrace_register>: Declare.
1520 (s390_collect_ptrace_register): Turn into ...
1521 (s390_target::low_collect_ptrace_register): ...this.
1522 (s390_supply_ptrace_register): Turn into ...
1523 (s390_target::low_supply_ptrace_register): ...this.
1524 (s390_fill_gregset): Update for the calls to
1525 low_collect_ptrace_register.
1526 (the_low_target): Remove the op fields.
1528 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1531 target ops into methods of linux_process_target.
1533 * linux-low.h (struct linux_target_ops): Remove the ops.
1534 (class linux_process_target) <check_stopped_by_watchpoint>
1535 <low_stopped_by_watchpoint>
1536 <low_stopped_data_address>: Declare.
1537 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1538 (linux_process_target::check_stopped_by_watchpoint): ...this.
1539 (linux_process_target::low_stopped_by_watchpoint): Define.
1540 (linux_process_target::low_stopped_data_address): Define.
1541 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1542 <low_stopped_data_address>: Declare.
1543 (x86_stopped_by_watchpoint): Turn into...
1544 (x86_target::low_stopped_by_watchpoint): ...this.
1545 (x86_stopped_data_address): Turn into...
1546 (x86_target::low_stopped_data_address): ...this.
1547 (the_low_target): Remove the op fields.
1548 * linux-aarch64-low.cc (class aarch64_target)
1549 <low_stopped_by_watchpoint>
1550 <low_stopped_data_address>: Declare.
1551 (aarch64_stopped_by_watchpoint): Turn into...
1552 (aarch64_target::low_stopped_by_watchpoint): ...this.
1553 (aarch64_stopped_data_address): Turn into...
1554 (aarch64_target::low_stopped_data_address): ...this.
1555 (the_low_target): Remove the op fields.
1556 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1557 <low_stopped_data_address>: Declare.
1558 (arm_stopped_by_watchpoint): Turn into...
1559 (arm_target::low_stopped_by_watchpoint): ...this.
1560 (arm_stopped_data_address): Turn into...
1561 (arm_target::low_stopped_data_address): ...this.
1562 (the_low_target): Remove the op fields.
1563 * linux-crisv32-low.cc (class crisv32_target)
1564 <low_stopped_by_watchpoint>
1565 <low_stopped_data_address>: Declare.
1566 (cris_stopped_by_watchpoint): Turn into...
1567 (crisv32_target::low_stopped_by_watchpoint): ...this.
1568 (cris_stopped_data_address): Turn into...
1569 (crisv32_target::low_stopped_data_address): ...this.
1570 (the_low_target): Remove the op fields.
1571 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1572 <low_stopped_data_address>: Declare.
1573 (mips_stopped_by_watchpoint): Turn into...
1574 (mips_target::low_stopped_by_watchpoint): ...this.
1575 (mips_stopped_data_address): Turn into...
1576 (mips_target::low_stopped_data_address): ...this.
1577 (the_low_target): Remove the op fields.
1578 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1579 * linux-m32r-low.cc (the_low_target): Ditto.
1580 * linux-m68k-low.cc (the_low_target): Ditto.
1581 * linux-ppc-low.cc (the_low_target): Ditto.
1582 * linux-s390-low.cc (the_low_target): Ditto.
1583 * linux-sh-low.cc (the_low_target): Ditto.
1584 * linux-sparc-low.cc (the_low_target): Ditto.
1585 * linux-tic6x-low.cc (the_low_target): Ditto.
1586 * linux-tile-low.cc (the_low_target): Ditto.
1587 * linux-xtensa-low.cc (the_low_target): Ditto.
1589 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1591 Turn the 'insert_point' and 'remove_point' linux target ops into
1592 methods of linux_process_target.
1594 * linux-low.h (struct linux_target_ops): Remove the ops.
1595 (class linux_process_target) <low_insert_point>
1596 <low_remove_point>: Declare.
1597 * linux-low.cc (linux_process_target::low_insert_point)
1598 (linux_process_target::low_remove_point): Define.
1599 (linux_process_target::insert_point)
1600 (linux_process_target::remove_point): Update for calls to
1601 low_insert_point and low_remove_point.
1602 * linux-x86-low.cc (class x86_target) <low_insert_point>
1603 <low_remove_point>: Declare.
1604 (x86_insert_point): Turn into...
1605 (x86_target::low_insert_point): ...this.
1606 (x86_remove_point): Turn into...
1607 (x86_target::low_remove_point): ...this.
1608 (the_low_target): Remove the op fields.
1609 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1610 <low_remove_point>: Declare.
1611 (aarch64_insert_point): Turn into...
1612 (aarch64_target::low_insert_point): ...this.
1613 (aarch64_remove_point): Turn into...
1614 (aarch64_target::low_remove_point): ...this.
1615 (the_low_target): Remove the op fields.
1616 * linux-arm-low.cc (class arm_target) <low_insert_point>
1617 <low_remove_point>: Declare.
1618 (arm_insert_point): Turn into...
1619 (arm_target::low_insert_point): ...this.
1620 (arm_remove_point): Turn into...
1621 (arm_target::low_remove_point): ...this.
1622 (the_low_target): Remove the op fields.
1623 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1624 <low_remove_point>: Declare.
1625 (crisv32_insert_point): Turn into...
1626 (crisv32_target::low_insert_point): ...this.
1627 (crisv32_remove_point): Turn into...
1628 (crisv32_target::low_remove_point): ...this.
1629 (the_low_target): Remove the op fields.
1630 * linux-mips-low.cc (class mips_target) <low_insert_point>
1631 <low_remove_point>: Declare.
1632 (mips_insert_point): Turn into...
1633 (mips_target::low_insert_point): ...this.
1634 (mips_remove_point): Turn into...
1635 (mips_target::low_remove_point): ...this.
1636 (the_low_target): Remove the op fields.
1637 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1638 <low_remove_point>: Declare.
1639 (ppc_insert_point): Turn into...
1640 (ppc_target::low_insert_point): ...this.
1641 (ppc_remove_point): Turn into...
1642 (ppc_target::low_remove_point): ...this.
1643 (the_low_target): Remove the op fields.
1644 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1645 * linux-m32r-low.cc (the_low_target): Ditto.
1646 * linux-m68k-low.cc (the_low_target): Ditto.
1647 * linux-s390-low.cc (the_low_target): Ditto.
1648 * linux-sh-low.cc (the_low_target): Ditto.
1649 * linux-sparc-low.cc (the_low_target): Ditto.
1650 * linux-tic6x-low.cc (the_low_target): Ditto.
1651 * linux-tile-low.cc (the_low_target): Ditto.
1652 * linux-xtensa-low.cc (the_low_target): Ditto.
1654 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1656 Remove the 'supports_z_point_type' linux target op and let the
1657 concrete linux target define it by overriding the op declared in
1658 process_stratum_target.
1660 * linux-low.cc (linux_process_target::supports_z_point_type):
1662 * linux-low.h (struct linux_target_ops): Remove the op.
1663 (class linux_process_target) <supports_z_point_type>: Remove.
1664 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1666 (x86_supports_z_point_type): Turn into...
1667 (x86_target::supports_z_point_type): ...this.
1668 (the_low_target): Remove the op field.
1669 * linux-aarch64-low.cc (class aarch64_target)
1670 <supports_z_point_type>: Declare.
1671 (aarch64_supports_z_point_type): Turn into...
1672 (aarch64_target::supports_z_point_type): ...this.
1673 (the_low_target): Remove the op field.
1674 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1676 (arm_supports_z_point_type): Turn into...
1677 (arm_target::supports_z_point_type): ...this.
1678 (the_low_target): Remove the op field.
1679 * linux-crisv32-low.cc (class crisv32_target)
1680 <supports_z_point_type>: Declare.
1681 (cris_supports_z_point_type): Turn into...
1682 (crisv32_target::supports_z_point_type): ...this.
1683 (the_low_target): Remove the op field.
1684 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1686 (mips_supports_z_point_type): Turn into...
1687 (mips_target::supports_z_point_type): ...this.
1688 (the_low_target): Remove the op field.
1689 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1691 (ppc_supports_z_point_type): Turn into...
1692 (ppc_target::supports_z_point_type): ...this.
1693 (the_low_target): Remove the op field.
1694 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1696 (s390_supports_z_point_type): Turn into...
1697 (s390_target::supports_z_point_type): ...this.
1698 (the_low_target): Remove the op field.
1699 * linux-bfin-low.cc (the_low_target): Remove the op field.
1700 * linux-m32r-low.cc (the_low_target): Ditto.
1701 * linux-m68k-low.cc (the_low_target): Ditto.
1702 * linux-sh-low.cc (the_low_target): Ditto.
1703 * linux-sparc-low.cc (the_low_target): Ditto.
1704 * linux-tic6x-low.cc (the_low_target): Ditto.
1705 * linux-tile-low.cc (the_low_target): Ditto.
1706 * linux-xtensa-low.cc (the_low_target): Ditto.
1708 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1710 Turn the 'breakpoint_at' linux target op into a method of
1711 linux_process_target.
1713 * linux-low.h (struct linux_target_ops): Remove the op.
1714 (class linux_process_target) <low_breakpoint_at>: Declare.
1716 Update the callers below:
1718 * linux-low.cc (linux_process_target::save_stop_reason)
1719 (linux_process_target::thread_still_has_status_pending)
1720 (linux_process_target::wait_1)
1722 * linux-x86-low.cc (class x86_target)
1723 <low_breakpoint_at>: Declare.
1724 (x86_breakpoint_at): Turn into...
1725 (x86_target::low_breakpoint_at): ...this.
1726 (the_low_target): Remove the op field.
1727 * linux-aarch64-low.cc (class aarch64_target)
1728 <low_breakpoint_at>: Declare.
1729 (aarch64_breakpoint_at): Turn into...
1730 (aarch64_target::low_breakpoint_at): ...this.
1731 (the_low_target): Remove the op field.
1732 * linux-arm-low.cc (class arm_target)
1733 <low_breakpoint_at>: Declare.
1734 (arm_target::low_breakpoint_at): Define.
1735 (the_low_target): Remove the op field.
1736 * linux-bfin-low.cc (class bfin_target)
1737 <low_breakpoint_at>: Declare.
1738 (bfin_breakpoint_at): Turn into...
1739 (bfin_target::low_breakpoint_at): ...this.
1740 (the_low_target): Remove the op field.
1741 * linux-cris-low.cc (class cris_target)
1742 <low_breakpoint_at>: Declare.
1743 (cris_breakpoint_at): Turn into...
1744 (cris_target::low_breakpoint_at): ...this.
1745 (the_low_target): Remove the op field.
1746 * linux-crisv32-low.cc (class crisv32_target)
1747 <low_breakpoint_at>: Declare.
1748 (crisv32_breakpoint_at): Turn into...
1749 (crisv32_target::low_breakpoint_at): ...this.
1750 (the_low_target): Remove the op field.
1751 * linux-ia64-low.cc (class ia64_target)
1752 <low_breakpoint_at>: Declare.
1753 (ia64_target::low_breakpoint_at): Define.
1754 * linux-m32r-low.cc (class m32r_target)
1755 <low_breakpoint_at>: Declare.
1756 (m32r_breakpoint_at): Turn into...
1757 (m32r_target::low_breakpoint_at): ...this.
1758 (the_low_target): Remove the op field.
1759 * linux-m68k-low.cc (class m68k_target)
1760 <low_breakpoint_at>: Declare.
1761 (m68k_breakpoint_at): Turn into...
1762 (m68k_target::low_breakpoint_at): ...this.
1763 (the_low_target): Remove the op field.
1764 * linux-mips-low.cc (class mips_target)
1765 <low_breakpoint_at>: Declare.
1766 (mips_breakpoint_at): Turn into...
1767 (mips_target::low_breakpoint_at): ...this.
1768 (the_low_target): Remove the op field.
1769 * linux-nios2-low.cc (class nios2_target)
1770 <low_breakpoint_at>: Declare.
1771 (nios2_breakpoint_at): Turn into...
1772 (nios2_target::low_breakpoint_at): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-ppc-low.cc (class ppc_target)
1775 <low_breakpoint_at>: Declare.
1776 (ppc_breakpoint_at): Turn into...
1777 (ppc_target::low_breakpoint_at): ...this.
1778 (the_low_target): Remove the op field.
1779 * linux-riscv-low.cc (class riscv_target)
1780 <low_breakpoint_at>: Declare.
1781 (riscv_breakpoint_at): Turn into...
1782 (riscv_target::low_breakpoint_at): ...this.
1783 (the_low_target): Remove the op field.
1784 * linux-s390-low.cc (class s390_target)
1785 <low_breakpoint_at>: Declare.
1786 (s390_breakpoint_at): Turn into...
1787 (s390_target::low_breakpoint_at): ...this.
1788 (the_low_target): Remove the op field.
1789 * linux-sh-low.cc (class sh_target)
1790 <low_breakpoint_at>: Declare.
1791 (sh_breakpoint_at): Turn into...
1792 (sh_target::low_breakpoint_at): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-sparc-low.cc (class sparc_target)
1795 <low_breakpoint_at>: Declare.
1796 (sparc_breakpoint_at): Turn into...
1797 (sparc_target::low_breakpoint_at): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-tic6x-low.cc (class tic6x_target)
1800 <low_breakpoint_at>: Declare.
1801 (tic6x_breakpoint_at): Turn into...
1802 (tic6x_target::low_breakpoint_at): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-tile-low.cc (class tile_target)
1805 <low_breakpoint_at>: Declare.
1806 (tile_breakpoint_at): Turn into...
1807 (tile_target::low_breakpoint_at): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-xtensa-low.cc (class xtensa_target)
1810 <low_breakpoint_at>: Declare.
1811 (xtensa_breakpoint_at): Turn into...
1812 (xtensa_target::low_breakpoint_at): ...this.
1813 (the_low_target): Remove the op field.
1815 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1817 Turn the 'decr_pc_after_break' linux_target_ops field into
1818 a method of linux_process_target.
1820 * linux-low.h (struct linux_target_ops)
1821 <decr_pc_after_break>: Remove.
1822 (class linux_process_target) <low_decr_pc_after_break>: New method
1824 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1825 New method implementation.
1827 Update the users below.
1829 (linux_process_target::save_stop_reason)
1830 (linux_process_target::wait_1)
1831 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1833 (x86_target::low_decr_pc_after_break): New method implementation.
1834 (the_low_target): Remove the field.
1835 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1837 (bfin_target::low_decr_pc_after_break): New method implementation.
1838 (the_low_target): Remove the field.
1839 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1841 (m68k_target::low_decr_pc_after_break): New method implementation.
1842 (the_low_target): Remove the field.
1843 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1845 (s390_target::low_decr_pc_after_break): New method implementation.
1846 (the_low_target): Remove the field.
1847 * linux-aarch64-low.cc (the_low_target): Remove the field.
1848 * linux-arm-low.cc (the_low_target): Remove the field.
1849 * linux-cris-low.cc (the_low_target): Remove the field.
1850 * linux-crisv32-low.cc (the_low_target): Remove the field.
1851 * linux-m32r-low.cc (the_low_target): Remove the field.
1852 * linux-mips-low.cc (the_low_target): Remove the field.
1853 * linux-nios2-low.cc (the_low_target): Remove the field.
1854 * linux-ppc-low.cc (the_low_target): Remove the field.
1855 * linux-riscv-low.cc (the_low_target): Remove the field.
1856 * linux-sh-low.cc (the_low_target): Remove the field.
1857 * linux-sparc-low.cc (the_low_target): Remove the field.
1858 * linux-tic6x-low.cc (the_low_target): Remove the field.
1859 * linux-tile-low.cc (the_low_target): Remove the field.
1860 * linux-xtensa-low.cc (the_low_target): Remove the field.
1862 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1864 Remove the 'supports_software_single_step' linux target op and let
1865 the concrete linux target define it by overriding the op in
1866 process_stratum_target.
1867 Turn the 'get_next_pcs' linux target op into a method of
1868 linux_process_target.
1870 * linux-low.h (struct linux_target_ops): Remove the ops.
1871 (class linux_process_target) <supports_software_single_step>:
1873 <low_get_next_pcs>: Declare.
1874 * linux-low.cc (can_software_single_step): Remove.
1875 (linux_process_target::low_get_next_pcs): Define.
1876 (linux_process_target::supports_software_single_step): Remove.
1878 Update the callers below.
1880 (linux_process_target::handle_extended_wait)
1881 (linux_process_target::wait_1)
1882 (linux_process_target::install_software_single_step_breakpoints)
1883 (linux_process_target::single_step)
1884 (linux_process_target::thread_needs_step_over)
1885 (linux_process_target::proceed_one_lwp)
1886 (linux_process_target::supports_range_stepping)
1888 * linux-x86-low.cc (the_low_target): Remove the op field.
1889 * linux-aarch64-low.cc (the_low_target): Ditto.
1890 * linux-bfin-low.cc (the_low_target): Ditto.
1891 * linux-cris-low.cc (the_low_target): Ditto.
1892 * linux-crisv32-low.cc (the_low_target): Ditto.
1893 * linux-m32r-low.cc (the_low_target): Ditto.
1894 * linux-m68k-low.cc (the_low_target): Ditto.
1895 * linux-mips-low.cc (the_low_target): Ditto.
1896 * linux-nios2-low.cc (the_low_target): Ditto.
1897 * linux-ppc-low.cc (the_low_target): Ditto.
1898 * linux-riscv-low.cc (the_low_target): Ditto.
1899 * linux-s390-low.cc (the_low_target): Ditto.
1900 * linux-sh-low.cc (the_low_target): Ditto.
1901 * linux-sparc-low.cc (the_low_target): Ditto.
1902 * linux-tic6x-low.cc (the_low_target): Ditto.
1903 * linux-tile-low.cc (the_low_target): Ditto.
1904 * linux-xtensa-low.cc (the_low_target): Ditto.
1905 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1906 <supports_software_single_step>: Declare.
1907 (arm_target::supports_software_single_step): Define.
1908 (arm_gdbserver_get_next_pcs): Turn into...
1909 (arm_target::low_get_next_pcs): ...this.
1910 (the_low_target): Remove the op field.
1912 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1914 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1915 the concrete linux target define it by overriding the op
1916 in process_stratum_target.
1918 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1920 * linux-low.h (struct linux_target_ops): Remove the op.
1921 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1922 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1924 (x86_sw_breakpoint_from_kind): Turn into...
1925 (x86_target::sw_breakpoint_from_kind): ...this.
1926 (the_low_target): Remove the op field.
1927 * linux-aarch64-low.cc (class aarch64_target)
1928 <sw_breakpoint_from_kind>: Declare.
1929 (aarch64_sw_breakpoint_from_kind): Turn into...
1930 (aarch64_target::sw_breakpoint_from_kind): ...this.
1931 (the_low_target): Remove the op field.
1932 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1934 (arm_target::sw_breakpoint_from_kind): Define.
1935 (the_low_target): Remove the op field.
1936 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1938 (bfin_sw_breakpoint_from_kind): Turn into...
1939 (bfin_target::sw_breakpoint_from_kind): ...this.
1940 (the_low_target): Remove the op field.
1941 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1943 (cris_sw_breakpoint_from_kind): Turn into...
1944 (cris_target::sw_breakpoint_from_kind): ...this.
1945 (the_low_target): Remove the op field.
1946 * linux-crisv32-low.cc (class crisv32_target)
1947 <sw_breakpoint_from_kind>: Declare.
1948 (cris_sw_breakpoint_from_kind): Turn into...
1949 (crisv32_target::sw_breakpoint_from_kind): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1953 (ia64_target::sw_breakpoint_from_kind): Define.
1954 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1956 (m32r_sw_breakpoint_from_kind): Turn into...
1957 (m32r_target::sw_breakpoint_from_kind): ...this.
1958 (the_low_target): Remove the op field.
1959 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1961 (m68k_sw_breakpoint_from_kind): Turn into...
1962 (m68k_target::sw_breakpoint_from_kind): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1966 (mips_sw_breakpoint_from_kind): Turn into...
1967 (mips_target::sw_breakpoint_from_kind): ...this.
1968 (the_low_target): Remove the op field.
1969 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1971 (nios2_sw_breakpoint_from_kind): Turn into...
1972 (nios2_target::sw_breakpoint_from_kind): ...this.
1973 (the_low_target): Remove the op field.
1974 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1976 (ppc_sw_breakpoint_from_kind): Turn into...
1977 (ppc_target::sw_breakpoint_from_kind): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1981 (riscv_sw_breakpoint_from_kind): Turn into...
1982 (riscv_target::sw_breakpoint_from_kind): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1986 (s390_sw_breakpoint_from_kind): Turn into...
1987 (s390_target::sw_breakpoint_from_kind): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1991 (sh_sw_breakpoint_from_kind): Turn into...
1992 (sh_target::sw_breakpoint_from_kind): ...this.
1993 (the_low_target): Remove the op field.
1994 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1996 (sparc_sw_breakpoint_from_kind): Turn into...
1997 (sparc_target::sw_breakpoint_from_kind): ...this.
1998 (the_low_target): Remove the op field.
1999 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2001 (tic6x_sw_breakpoint_from_kind): Turn into...
2002 (tic6x_target::sw_breakpoint_from_kind): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2006 (tile_sw_breakpoint_from_kind): Turn into...
2007 (tile_target::sw_breakpoint_from_kind): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-xtensa-low.cc (class xtensa_target)
2010 <sw_breakpoint_from_kind>: Declare.
2011 (xtensa_sw_breakpoint_from_kind): Turn into...
2012 (xtensa_target::sw_breakpoint_from_kind): ...this.
2013 (the_low_target): Remove the op field.
2015 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2017 Remove the 'breakpoint_kind_from_pc' and
2018 'breakpoint_kind_from_current_state' linux target ops, and let the
2019 concrete linux target define them by overriding the ops of
2020 process_stratum_target.
2022 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2024 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2025 * linux-low.h (struct linux_target_ops): Remove ops.
2026 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2027 <breakpoint_kind_from_current_state>: Remove.
2028 * linux-x86-low.cc (the_low_target): Remove the op fields.
2029 * linux-bfin-low.cc (the_low_target): Ditto.
2030 * linux-cris-low.cc (the_low_target): Ditto.
2031 * linux-crisv32-low.cc (the_low_target): Ditto.
2032 * linux-m32r-low.cc (the_low_target): Ditto.
2033 * linux-m68k-low.cc (the_low_target): Ditto.
2034 * linux-mips-low.cc (the_low_target): Ditto.
2035 * linux-nios2-low.cc (the_low_target): Ditto.
2036 * linux-ppc-low.cc (the_low_target): Ditto.
2037 * linux-s390-low.cc (the_low_target): Ditto.
2038 * linux-sh-low.cc (the_low_target): Ditto.
2039 * linux-sparc-low.cc (the_low_target): Ditto.
2040 * linux-tic6x-low.cc (the_low_target): Ditto.
2041 * linux-tile-low.cc (the_low_target): Ditto.
2042 * linux-xtensa-low.cc (the_low_target): Ditto.
2043 * linux-aarch64-low.cc (class aarch64_target)
2044 <breakpoint_kind_from_pc>
2045 <breakpoint_kind_from_current_state>: Declare.
2046 (aarch64_breakpoint_kind_from_pc): Turn into...
2047 (aarch64_target::breakpoint_kind_from_pc): ...this.
2048 (aarch64_breakpoint_kind_from_current_state): Turn into...
2049 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2050 (the_low_target): Remove the op fields.
2051 * linux-arm-low.cc (class arm_target):
2052 <breakpoint_kind_from_pc>
2053 <breakpoint_kind_from_current_state>: Declare.
2054 (arm_target::breakpoint_kind_from_pc): Define.
2055 (arm_target::breakpoint_kind_from_current_state): Define.
2056 (the_low_target): Remove the op fields.
2057 * linux-riscv-low.cc (class riscv_target):
2058 <breakpoint_kind_from_pc>: Declare.
2059 (riscv_breakpoint_kind_from_pc): Turn into...
2060 (riscv_target::breakpoint_kind_from_pc): ...this.
2061 (the_low_target): Remove the op fields.
2063 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2065 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2066 of linux_process_target.
2068 * linux-low.h (struct linux_target_ops): Remove the ops.
2069 (class linux_process_target) <low_supports_breakpoints>
2071 <low_set_pc>: Declare.
2072 * linux-low.cc (supports_breakpoints): Turn into...
2073 (linux_process_target::low_supports_breakpoints): ...this.
2074 (linux_process_target::low_get_pc): Define.
2075 (linux_process_target::low_set_pc): Define.
2077 Update the callers below.
2079 (linux_process_target::get_pc)
2080 (linux_process_target::save_stop_reason)
2081 (linux_process_target::maybe_move_out_of_jump_pad)
2082 (linux_process_target::wait_1)
2083 (linux_process_target::resume_one_lwp_throw)
2084 (linux_process_target::resume)
2085 (linux_process_target::proceed_all_lwps)
2086 (linux_process_target::read_pc)
2087 (linux_process_target::write_pc)
2089 * linux-x86-low.cc (class linux_process_target)
2090 <low_supports_breakpoints>
2092 <low_set_pc>: Declare.
2093 (x86_target::low_supports_breakpoints): Define.
2094 (x86_get_pc): Turn into...
2095 (x86_target::low_get_pc): ...this.
2096 (x86_set_pc): Turn into...
2097 (x86_target::low_set_pc): ...this.
2098 (the_low_target): Remove the op fields.
2099 * linux-arm-low.cc (class arm_target)
2100 <low_supports_breakpoints>
2102 <low_set_pc>: Declare.
2103 (arm_target::low_supports_breakpoints)
2104 (arm_target::low_get_pc)
2105 (arm_target::low_set_pc): Define.
2106 (the_low_target): Remove the op fields.
2107 * linux-bfin-low.cc (class bfin_target)
2108 <low_supports_breakpoints>
2110 <low_set_pc>: Declare.
2111 (bfin_target::low_supports_breakpoints)
2112 (bfin_target::low_get_pc)
2113 (bfin_target::low_set_pc): Define.
2114 (the_low_target): Remove the op fields.
2115 * linux-cris-low.cc (class cris_target)
2116 <low_supports_breakpoints>
2118 <low_set_pc>: Declare.
2119 (cris_target::low_supports_breakpoints)
2120 (cris_target::low_get_pc)
2121 (cris_target::low_set_pc): Define.
2122 (the_low_target): Remove the op fields.
2123 * linux-crisv32-low.cc (class crisv32_target)
2124 <low_supports_breakpoints>
2126 <low_set_pc>: Declare.
2127 (crisv32_target::low_supports_breakpoints)
2128 (crisv32_target::low_get_pc)
2129 (crisv32_target::low_set_pc): Define.
2130 (the_low_target): Remove the op fields.
2131 * linux-m32r-low.cc (class m32r_target)
2132 <low_supports_breakpoints>
2134 <low_set_pc>: Declare.
2135 (m32r_target::low_supports_breakpoints)
2136 (m32r_target::low_get_pc)
2137 (m32r_target::low_set_pc): Define.
2138 (the_low_target): Remove the op fields.
2139 * linux-m68k-low.cc (class m68k_target)
2140 <low_supports_breakpoints>
2142 <low_set_pc>: Declare.
2143 (m68k_target::low_supports_breakpoints)
2144 (m68k_target::low_get_pc)
2145 (m68k_target::low_set_pc): Define.
2146 (the_low_target): Remove the op fields.
2147 * linux-nios2-low.cc (class nios2_target)
2148 <low_supports_breakpoints>
2150 <low_set_pc>: Declare.
2151 (nios2_target::low_supports_breakpoints)
2152 (nios2_target::low_get_pc)
2153 (nios2_target::low_set_pc): Define.
2154 (the_low_target): Remove the op fields.
2155 * linux-sh-low.cc (class sh_target)
2156 <low_supports_breakpoints>
2158 <low_set_pc>: Declare.
2159 (sh_target::low_supports_breakpoints)
2160 (sh_target::low_get_pc)
2161 (sh_target::low_set_pc): Define.
2162 (the_low_target): Remove the op fields.
2163 * linux-xtensa-low.cc (class xtensa_target)
2164 <low_supports_breakpoints>
2166 <low_set_pc>: Declare.
2167 (xtensa_target::low_supports_breakpoints)
2168 (xtensa_target::low_get_pc)
2169 (xtensa_target::low_set_pc): Define.
2170 (the_low_target): Remove the op fields.
2171 * linux-sparc-low.cc (class sparc_target)
2172 <low_supports_breakpoints>
2173 <low_get_pc>: Declare.
2174 (sparc_target::low_supports_breakpoints)
2175 (sparc_target::low_get_pc): Define.
2176 (the_low_target): Remove the op fields.
2177 * linux-tile-low.cc (class tile_target)
2178 <low_supports_breakpoints>
2180 <low_set_pc>: Declare.
2181 (tile_target::low_supports_breakpoints)
2182 (tile_target::low_get_pc)
2183 (tile_target::low_set_pc): Define.
2184 (the_low_target): Remove the op fields.
2185 * linux-aarch64-low.cc (class aarch64_target)
2186 <low_supports_breakpoints>
2188 <low_set_pc>: Declare.
2189 (aarch64_target::low_supports_breakpoints): Define.
2190 (aarch64_get_pc): Turn into...
2191 (aarch64_target::low_get_pc): ...this.
2192 (aarch64_set_pc): Turn into...
2193 (aarch64_target::low_set_pc): ...this.
2194 (the_low_target): Remove the op fields.
2195 * linux-mips-low.cc (class mips_target)
2196 <low_supports_breakpoints>
2198 <low_set_pc>: Declare.
2199 (mips_target::low_supports_breakpoints): Define.
2200 (mips_get_pc): Turn into...
2201 (mips_target::low_get_pc): ...this.
2202 (mips_set_pc): Turn into...
2203 (mips_target::low_set_pc): ...this.
2204 (the_low_target): Remove the op fields.
2205 * linux-ppc-low.cc (class ppc_target)
2206 <low_supports_breakpoints>
2208 <low_set_pc>: Declare.
2209 (ppc_target::low_supports_breakpoints): Define.
2210 (ppc_get_pc): Turn into...
2211 (ppc_target::low_get_pc): ...this.
2212 (ppc_set_pc): Turn into...
2213 (ppc_target::low_set_pc): ...this.
2214 (the_low_target): Remove the op fields.
2215 * linux-riscv-low.cc (class riscv_target)
2216 <low_supports_breakpoints>
2218 <low_set_pc>: Declare.
2219 (riscv_target::low_supports_breakpoints): Define.
2220 (riscv_get_pc): Turn into...
2221 (riscv_target::low_get_pc): ...this.
2222 (riscv_set_pc): Turn into...
2223 (riscv_target::low_set_pc): ...this.
2224 (the_low_target): Remove the op fields.
2225 * linux-s390-low.cc (class s390_target)
2226 <low_supports_breakpoints>
2228 <low_set_pc>: Declare.
2229 (s390_target::low_supports_breakpoints): Define.
2230 (s390_get_pc): Turn into...
2231 (s390_target::low_get_pc): ...this.
2232 (s390_set_pc): Turn into...
2233 (s390_target::low_set_pc): ...this.
2234 (the_low_target): Remove the op fields.
2235 * linux-tic6x-low.cc (class tic6x_target)
2236 <low_supports_breakpoints>
2238 <low_set_pc>: Declare.
2239 (tic6x_target::low_supports_breakpoints): Define.
2240 (tic6x_get_pc): Turn into...
2241 (tic6x_target::low_get_pc): ...this.
2242 (tic6x_set_pc): Turn into...
2243 (tic6x_target::low_set_pc): ...this.
2244 (the_low_target): Remove the op fields.
2246 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2248 Turn some more static methods in linux-low into private methods
2249 of linux_process_target.
2251 * linux-low.cc (get_pc): Turn into...
2252 (linux_process_target::get_pc): ...this.
2253 (save_stop_reason): Turn into...
2254 (linux_process_target::save_stop_reason): ...this.
2255 (thread_still_has_status_pending_p): Turn into...
2256 (linux_process_target::thread_still_has_status_pending): ...this.
2257 (status_pending_p_callback): Turn into...
2258 (linux_process_target::status_pending_p_callback): ...this.
2259 (resume_stopped_resumed_lwps): Turn into...
2260 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2261 (install_software_single_step_breakpoints): Turn into...
2262 (linux_process_target::install_software_single_step_breakpoints):
2264 (single_step): Turn into...
2265 (linux_process_target::single_step): ...this.
2266 (linux_resume_one_lwp_throw): Turn into...
2267 (linux_process_target::resume_one_lwp_throw): ...this.
2268 (linux_resume_one_lwp): Turn into...
2269 (linux_process_target::resume_one_lwp): ...this.
2270 (resume_status_pending_p): Turn into...
2271 (linux_process_target::resume_status_pending): ...this.
2272 (need_step_over_p): Turn into...
2273 (linux_process_target::thread_needs_step_over): ...this.
2274 (linux_resume_one_thread): Turn into...
2275 (linux_process_target::resume_one_thread): ...this.
2276 (proceed_one_lwp): Turn into...
2277 (linux_process_target::proceed_one_lwp): ...this.
2278 (unsuspend_and_proceed_one_lwp): Turn into...
2279 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2281 Update the calls/references to the above functions below.
2283 (linux_process_target::handle_extended_wait)
2284 (linux_process_target::filter_event)
2285 (linux_process_target::wait_for_event_filtered)
2286 (linux_process_target::wait_1)
2287 (linux_process_target::move_out_of_jump_pad)
2288 (linux_process_target::start_step_over)
2289 (linux_process_target::resume)
2290 (linux_process_target::proceed_all_lwps)
2291 (regsets_store_inferior_registers)
2292 (linux_process_target::store_register)
2294 * linux-low.h (class linux_process_target)
2297 <thread_still_has_status_pending>
2298 <status_pending_p_callback>
2299 <resume_stopped_resumed_lwps>
2300 <install_software_single_step_breakpoints>
2302 <resume_one_lwp_throw>
2304 <resume_status_pending>
2305 <thread_needs_step_over>
2308 <unsuspend_and_proceed_one_lwp>: Declare.
2310 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2312 Turn the 'fetch_register' linux target op into a method of
2313 linux_process_target.
2315 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2316 (class linux_process_target) <low_fetch_register>: Declare.
2317 * linux-x86-low.cc (the_low_target)
2318 * linux-aarch64-low.cc (the_low_target)
2319 * linux-arm-low.cc (the_low_target)
2320 * linux-bfin-low.cc (the_low_target)
2321 * linux-cris-low.cc (the_low_target)
2322 * linux-crisv32-low.cc (the_low_target)
2323 * linux-m32r-low.cc (the_low_target)
2324 * linux-m68k-low.cc (the_low_target)
2325 * linux-nios2-low.cc (the_low_target)
2326 * linux-ppc-low.cc (the_low_target)
2327 * linux-s390-low.cc (the_low_target)
2328 * linux-sh-low.cc (the_low_target)
2329 * linux-sparc-low.cc (the_low_target)
2330 * linux-tic6x-low.cc (the_low_target)
2331 * linux-tile-low.cc (the_low_target)
2332 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2333 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2335 (ia64_fetch_register): Turn into...
2336 (ia64_target::low_fetch_register): ...this.
2337 (the_low_target): Remove the op field.
2338 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2340 (mips_fetch_register): Turn into...
2341 (mips_target::low_fetch_register): ...this.
2342 (the_low_target): Remove the op field.
2343 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2345 (riscv_fetch_register): Turn into...
2346 (riscv_target::low_fetch_register): ...this.
2347 (the_low_target): Remove the op field.
2349 Update the callers below.
2351 * linux-low.cc (linux_process_target::fetch_registers)
2352 (linux_process_target::low_fetch_register)
2354 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2356 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2357 linux target ops into methods of linux_process_target.
2359 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2360 (class linux_process_target) <fetch_register>
2362 <usr_fetch_inferior_registers>
2363 <usr_store_inferior_registers>
2364 <low_cannot_fetch_register>
2365 <low_cannot_fetch_register> Declare.
2366 * linux-low.cc (fetch_register): Turn into...
2367 (linux_process_target::fetch_register): ...this.
2368 (store_register): Turn into ...
2369 (linux_process_target::store_register): ...this.
2370 (usr_fetch_inferior_registers): Turn into...
2371 (linux_process_target::usr_fetch_inferior_registers): ...this.
2372 (usr_store_inferior_registers): Turn into...
2373 (linux_process_target::usr_store_inferior_registers): ...this.
2374 * linux-x86-low.cc (class x86_target)
2375 <low_cannot_fetch_register>
2376 <low_cannot_store_register>: Declare.
2377 (x86_cannot_store_register): Turn into...
2378 (x86_target::low_cannot_store_register): ...this.
2379 (x86_cannot_fetch_register): Turn into...
2380 (x86_target::low_cannot_fetch_register): ...this.
2381 (the_low_target): Remove the target op fields.
2382 * linux-aarch64-low.cc (class aarch64_target)
2383 <low_cannot_fetch_register>
2384 <low_cannot_store_register>: Declare.
2385 (aarch64_target::low_cannot_fetch_register)
2386 (aarch64_target::low_cannot_store_register): Define.
2387 (the_low_target): Remove the op fields.
2388 * linux-arm-low.cc (class arm_target)
2389 <low_cannot_fetch_register>
2390 <low_cannot_store_register>: Declare.
2391 (arm_cannot_fetch_register): Turn into...
2392 (arm_target::low_cannot_fetch_register): ...this.
2393 (arm_cannot_store_register): Turn into...
2394 (arm_target::low_cannot_store_register): ...this.
2395 (the_low_target): Remove the op fields.
2396 * linux-bfin-low.cc (class bfin_target)
2397 <low_cannot_fetch_register>
2398 <low_cannot_store_register>: Declare.
2399 (bfin_cannot_fetch_register): Turn into...
2400 (bfin_target::low_cannot_fetch_register): ...this.
2401 (bfin_cannot_store_register): Turn into...
2402 (bfin_target::low_cannot_store_register): ...this.
2403 (the_low_target): Remove the op fields.
2404 * linux-cris-low.cc (class cris_target)
2405 <low_cannot_fetch_register>
2406 <low_cannot_store_register>: Declare.
2407 (cris_cannot_fetch_register): Turn into...
2408 (cris_target::low_cannot_fetch_register): ...this.
2409 (cris_cannot_store_register): Turn into...
2410 (cris_target::low_cannot_store_register): ...this.
2411 (the_low_target): Remove the op fields.
2412 * linux-crisv32-low.cc (class crisv32_target)
2413 <low_cannot_fetch_register>
2414 <low_cannot_store_register>: Declare.
2415 (crisv32_target::low_cannot_fetch_register)
2416 (crisv32_target::low_cannot_store_register): Define.
2417 (the_low_target): Remove the op fields.
2418 * linux-ia64-low.cc (class ia64_target)
2419 <low_cannot_fetch_register>
2420 <low_cannot_store_register>: Declare.
2421 (ia64_cannot_fetch_register): Turn into...
2422 (ia64_target::low_cannot_fetch_register): ...this.
2423 (ia64_cannot_store_register): Turn into...
2424 (ia64_target::low_cannot_store_register): ...this.
2425 (the_low_target): Remove the op fields.
2426 * linux-m32r-low.cc (class m32r_target)
2427 <low_cannot_fetch_register>
2428 <low_cannot_store_register>: Declare.
2429 (m32r_cannot_fetch_register): Turn into...
2430 (m32r_target::low_cannot_fetch_register): ...this.
2431 (m32r_cannot_store_register): Turn into...
2432 (m32r_target::low_cannot_store_register): ...this.
2433 (the_low_target): Remove the op fields.
2434 * linux-m68k-low.cc (class m68k_target)
2435 <low_cannot_fetch_register>
2436 <low_cannot_store_register>: Declare.
2437 (m68k_cannot_fetch_register): Turn into...
2438 (m68k_target::low_cannot_fetch_register): ...this.
2439 (m68k_cannot_store_register): Turn into...
2440 (m68k_target::low_cannot_store_register): ...this.
2441 (the_low_target): Remove the op fields.
2442 * linux-mips-low.cc (class mips_target)
2443 <low_cannot_fetch_register>
2444 <low_cannot_store_register>: Declare.
2445 (mips_cannot_fetch_register): Turn into...
2446 (mips_target::low_cannot_fetch_register): ...this.
2447 (mips_cannot_store_register): Turn into...
2448 (mips_target::low_cannot_store_register): ...this.
2449 (get_usrregs_info): Inline at the call sites in
2450 low_cannot_fetch_register and low_cannot_store_register,
2452 (the_low_target): Remove the op fields.
2453 * linux-nios2-low.cc (class nios2_target)
2454 <low_cannot_fetch_register>
2455 <low_cannot_store_register>: Declare.
2456 (nios2_cannot_fetch_register): Turn into...
2457 (nios2_target::low_cannot_fetch_register): ...this.
2458 (nios2_cannot_store_register): Turn into...
2459 (nios2_target::low_cannot_store_register): ...this.
2460 (the_low_target): Remove the op fields.
2461 * linux-ppc-low.cc (class ppc_target)
2462 <low_cannot_fetch_register>
2463 <low_cannot_store_register>: Declare.
2464 (ppc_cannot_fetch_register): Turn into...
2465 (ppc_target::low_cannot_fetch_register): ...this.
2466 (ppc_cannot_store_register): Turn into...
2467 (ppc_target::low_cannot_store_register): ...this.
2468 (the_low_target): Remove the op fields.
2469 * linux-riscv-low.cc (class riscv_target)
2470 <low_cannot_fetch_register>
2471 <low_cannot_store_register>: Declare.
2472 (riscv_target::low_cannot_fetch_register)
2473 (riscv_target::low_cannot_store_register): Define.
2474 (the_low_target): Remove the op fields.
2475 * linux-s390-low.cc (class s390_target)
2476 <low_cannot_fetch_register>
2477 <low_cannot_store_register>: Declare.
2478 (s390_cannot_fetch_register): Turn into...
2479 (s390_target::low_cannot_fetch_register): ...this.
2480 (s390_cannot_store_register): Turn into...
2481 (s390_target::low_cannot_store_register): ...this.
2482 (the_low_target): Remove the op fields.
2483 * linux-sh-low.cc (class sh_target)
2484 <low_cannot_fetch_register>
2485 <low_cannot_store_register>: Declare.
2486 (sh_cannot_fetch_register): Turn into...
2487 (sh_target::low_cannot_fetch_register): ...this.
2488 (sh_cannot_store_register): Turn into...
2489 (sh_target::low_cannot_store_register): ...this.
2490 (the_low_target): Remove the op fields.
2491 * linux-sparc-low.cc (class sparc_target)
2492 <low_cannot_fetch_register>
2493 <low_cannot_store_register>: Declare.
2494 (sparc_cannot_fetch_register): Turn into...
2495 (sparc_target::low_cannot_fetch_register): ...this.
2496 (sparc_cannot_store_register): Turn into...
2497 (sparc_target::low_cannot_store_register): ...this.
2498 (the_low_target): Remove the op fields.
2499 * linux-tic6x-low.cc (class tic6x_target)
2500 <low_cannot_fetch_register>
2501 <low_cannot_store_register>: Declare.
2502 (tic6x_cannot_fetch_register): Turn into...
2503 (tic6x_target::low_cannot_fetch_register): ...this.
2504 (tic6x_cannot_store_register): Turn into...
2505 (tic6x_target::low_cannot_store_register): ...this.
2506 (the_low_target): Remove the op fields.
2507 * linux-tile-low.cc (class tile_target)
2508 <low_cannot_fetch_register>
2509 <low_cannot_store_register>: Declare.
2510 (tile_cannot_fetch_register): Turn into...
2511 (tile_target::low_cannot_fetch_register): ...this.
2512 (tile_cannot_store_register): Turn into...
2513 (tile_target::low_cannot_store_register): ...this.
2514 (the_low_target): Remove the op fields.
2515 * linux-xtensa-low.cc (class xtensa_target)
2516 <low_cannot_fetch_register>
2517 <low_cannot_store_register>: Declare.
2518 (xtensa_target::low_cannot_fetch_register)
2519 (xtensa_target::low_cannot_store_register): Define.
2520 (the_low_target): Remove the op fields.
2522 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2524 Turn the 'regs_info' linux target op into a method of
2525 linux_process_target.
2527 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2528 (class linux_process_target) <get_regs_info>: Define.
2530 Update the callers below.
2532 * linux-low.cc (linux_process_target::fetch_registers)
2533 (linux_process_target::store_registers)
2534 * proc-service.cc (gregset_info)
2536 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2537 (x86_linux_regs_info): Turn into ...
2538 (x86_target::get_regs_info): ...this.
2539 (the_low_target): Remove the op field.
2540 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2542 (aarch64_regs_info): Turn into ...
2543 (aarch64_target::get_regs_info): ...this.
2544 (the_low_target): Remove the op field.
2545 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2546 (arm_regs_info): Turn into ...
2547 (arm_target::get_regs_info): ...this.
2548 (the_low_target): Remove the op field.
2549 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2550 (bfin_regs_info): Turn into ...
2551 (bfin_target::get_regs_info): ...this.
2552 (the_low_target): Remove the op field.
2553 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2554 (cris_regs_info): Turn into ...
2555 (cris_target::get_regs_info): ...this.
2556 (the_low_target): Remove the op field.
2557 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2559 (crisv32_regs_info): Turn into ...
2560 (crisv32_target::get_regs_info): ...this.
2561 (the_low_target): Remove the op field.
2562 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2563 (ia64_regs_info): Turn into ...
2564 (ia64_target::get_regs_info): ...this.
2565 (the_low_target): Remove the op field.
2566 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2567 (m32r_regs_info): Turn into ...
2568 (m32r_target::get_regs_info): ...this.
2569 (the_low_target): Remove the op field.
2570 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2571 (m68k_regs_info): Turn into ...
2572 (m68k_target::get_regs_info): ...this.
2573 (the_low_target): Remove the op field.
2574 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2575 (mips_regs_info): Turn into ...
2576 (mips_target::get_regs_info): ...this.
2577 (the_low_target): Remove the op field.
2578 (get_usrregs_info): Update the call to the op.
2579 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2580 (nios2_regs_info): Turn into ...
2581 (nios2_target::get_regs_info): ...this.
2582 (the_low_target): Remove the op field.
2583 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2584 (ppc_regs_info): Turn into ...
2585 (ppc_target::get_regs_info): ...this.
2586 (the_low_target): Remove the op field.
2587 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2588 (riscv_regs_info): Turn into ...
2589 (riscv_target::get_regs_info): ...this.
2590 (the_low_target): Remove the op field.
2591 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2592 (s390_regs_info): Turn into ...
2593 (s390_target::get_regs_info): ...this.
2594 (the_low_target): Remove the op field.
2595 (s390_collect_ptrace_register)
2596 (s390_supply_ptrace_register)
2597 (s390_fill_gregset): Update the call to the op.
2598 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2599 (sh_regs_info): Turn into ...
2600 (sh_target::get_regs_info): ...this.
2601 (the_low_target): Remove the op field.
2602 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2603 (sparc_regs_info): Turn into ...
2604 (sparc_target::get_regs_info): ...this.
2605 (the_low_target): Remove the op field.
2606 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2607 (tic6x_regs_info): Turn into ...
2608 (tic6x_target::get_regs_info): ...this.
2609 (the_low_target): Remove the op field.
2610 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2611 (tile_regs_info): Turn into ...
2612 (tile_target::get_regs_info): ...this.
2613 (the_low_target): Remove the op field.
2614 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2616 (xtensa_regs_info): Turn into ...
2617 (xtensa_target::get_regs_info): ...this.
2618 (the_low_target): Remove the op field.
2620 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2622 Turn the 'arch_setup' linux target op into a method of
2623 linux_process_target.
2625 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2626 (class linux_process_target) <arch_setup_thread>
2627 <low_arch_setup>: New declarations.
2628 * linux-low.cc (linux_arch_setup): Delete.
2629 (linux_arch_setup_thread): Turn into...
2630 (linux_process_target::arch_setup_thread): ... this.
2632 Update the callers below.
2634 (linux_process_target::handle_extended_wait)
2635 (linux_process_target::post_create_inferior)
2636 (linux_process_target::filter_event)
2638 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2640 (x86_linux_update_xmltarget): Turn into...
2641 (x86_target::update_xmltarget): ...this.
2642 (x86_linux_process_qsupported): Update the call to
2643 x86_linux_update_xmltarget.
2644 (x86_arch_setup): Turn into ...
2645 (x86_target::low_arch_setup): ...this.
2646 (the_low_target): Remove the op field.
2647 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2649 (aarch64_arch_setup): Turn into ...
2650 (aarch64_target::low_arch_setup): ...this.
2651 (the_low_target): Remove the op field.
2652 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2654 (arm_arch_setup): Turn into ...
2655 (arm_target::low_arch_setup): ...this.
2656 (the_low_target): Remove the op field.
2657 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2659 (bfin_arch_setup): Turn into ...
2660 (bfin_target::low_arch_setup): ...this.
2661 (the_low_target): Remove the op field.
2662 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2664 (cris_arch_setup): Turn into ...
2665 (cris_target::low_arch_setup): ...this.
2666 (the_low_target): Remove the op field.
2667 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2669 (crisv32_arch_setup): Turn into ...
2670 (crisv32_target::low_arch_setup): ...this.
2671 (the_low_target): Remove the op field.
2672 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2674 (ia64_arch_setup): Turn into ...
2675 (ia64_target::low_arch_setup): ...this.
2676 (the_low_target): Remove the op field.
2677 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2679 (m32r_arch_setup): Turn into ...
2680 (m32r_target::low_arch_setup): ...this.
2681 (the_low_target): Remove the op field.
2682 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2684 (m68k_arch_setup): Turn into ...
2685 (m68k_target::low_arch_setup): ...this.
2686 (the_low_target): Remove the op field.
2687 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2689 (mips_arch_setup): Turn into ...
2690 (mips_target::low_arch_setup): ...this.
2691 (the_low_target): Remove the op field.
2692 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2694 (nios2_arch_setup): Turn into ...
2695 (nios2_target::low_arch_setup): ...this.
2696 (the_low_target): Remove the op field.
2697 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2699 (ppc_arch_setup): Turn into ...
2700 (ppc_target::low_arch_setup): ...this.
2701 (the_low_target): Remove the op field.
2702 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2704 (riscv_arch_setup): Turn into ...
2705 (riscv_target::low_arch_setup): ...this.
2706 (the_low_target): Remove the op field.
2707 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2709 (s390_arch_setup): Turn into ...
2710 (s390_target::low_arch_setup): ...this.
2711 (the_low_target): Remove the op field.
2712 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2714 (sh_arch_setup): Turn into ...
2715 (sh_target::low_arch_setup): ...this.
2716 (the_low_target): Remove the op field.
2717 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2719 (sparc_arch_setup): Turn into ...
2720 (sparc_target::low_arch_setup): ...this.
2721 (the_low_target): Remove the op field.
2722 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2724 (tic6x_arch_setup): Turn into ...
2725 (tic6x_target::low_arch_setup): ...this.
2726 (the_low_target): Remove the op field.
2727 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2729 (tile_arch_setup): Turn into ...
2730 (tile_target::low_arch_setup): ...this.
2731 (the_low_target): Remove the op field.
2732 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2734 (xtensa_arch_setup): Turn into ...
2735 (xtensa_target::low_arch_setup): ...this.
2736 (the_low_target): Remove the op field.
2738 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2740 * linux-low.h (the_linux_target): New extern declaration.
2741 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2743 (the_linux_target): Remove.
2744 * linux-x86-low.cc (class x86_target): New class.
2745 (the_x86_target): New static object.
2746 (the_linux_target): Define as pointer to the_x86_target.
2747 * linux-aarch64-low.cc (class aarch64_target): New class.
2748 (the_aarch64_target): New static object.
2749 (the_linux_target): Define as pointer to the_aarch64_target.
2750 * linux-arm-low.cc (class arm_target): New class.
2751 (the_arm_target): New static object.
2752 (the_linux_target): Define as pointer to the_arm_target.
2753 * linux-bfin-low.cc (class bfin_target): New class.
2754 (the_bfin_target): New static object.
2755 (the_linux_target): Define as pointer to the_bfin_target.
2756 * linux-cris-low.cc (class cris_target): New class.
2757 (the_cris_target): New static object.
2758 (the_linux_target): Define as pointer to the_cris_target.
2759 * linux-crisv32-low.cc (class crisv32_target): New class.
2760 (the_crisv32_target): New static object.
2761 (the_linux_target): Define as pointer to the_crisv32_target.
2762 * linux-ia64-low.cc (class ia64_target): New class.
2763 (the_ia64_target): New static object.
2764 (the_linux_target): Define as pointer to the_ia64_target.
2765 * linux-m32r-low.cc (class m32r_target): New class.
2766 (the_m32r_target): New static object.
2767 (the_linux_target): Define as pointer to the_m32r_target.
2768 * linux-m68k-low.cc (class m68k_target): New class.
2769 (the_m68k_target): New static object.
2770 (the_linux_target): Define as pointer to the_m68k_target.
2771 * linux-mips-low.cc (class mips_target): New class.
2772 (the_mips_target): New static object.
2773 (the_linux_target): Define as pointer to the_mips_target.
2774 * linux-nios2-low.cc (class nios2_target): New class.
2775 (the_nios2_target): New static object.
2776 (the_linux_target): Define as pointer to the_nios2_target.
2777 * linux-ppc-low.cc (class ppc_target): New class.
2778 (the_ppc_target): New static object.
2779 (the_linux_target): Define as pointer to the_ppc_target.
2780 * linux-riscv-low.cc (class riscv_target): New class.
2781 (the_riscv_target): New static object.
2782 (the_linux_target): Define as pointer to the_riscv_target.
2783 * linux-s390-low.cc (class s390_target): New class.
2784 (the_s390_target): New static object.
2785 (the_linux_target): Define as pointer to the_s390_target.
2786 * linux-sh-low.cc (class sh_target): New class.
2787 (the_sh_target): New static object.
2788 (the_linux_target): Define as pointer to the_sh_target.
2789 * linux-sparc-low.cc (class sparc_target): New class.
2790 (the_sparc_target): New static object.
2791 (the_linux_target): Define as pointer to the_sparc_target.
2792 * linux-tic6x-low.cc (class tic6x_target): New class.
2793 (the_tic6x_target): New static object.
2794 (the_linux_target): Define as pointer to the_tic6x_target.
2795 * linux-tile-low.cc (class tile_target): New class.
2796 (the_tile_target): New static object.
2797 (the_linux_target): Define as pointer to the_tile_target.
2798 * linux-xtensa-low.cc (class xtensa_target): New class.
2799 (the_xtensa_target): New static object.
2800 (the_linux_target): Define as pointer to the_xtensa_target.
2802 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2804 Turn some static functions in linux-low.cc into private methods of
2805 linux_process_target.
2807 * linux-low.cc (handle_extended_wait): Turn into ...
2808 (linux_process_target::handle_extended_wait): ...this. Call
2809 'mourn' on 'this' object instead of 'the_target'.
2810 (maybe_move_out_of_jump_pad): Turn into...
2811 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2812 (linux_low_filter_event): Turn into...
2813 (linux_process_target::filter_event): ...this.
2814 (linux_wait_for_event_filtered): Turn into...
2815 (linux_process_target::wait_for_event_filtered): ...this.
2816 (linux_wait_for_event): Turn into...
2817 (linux_process_target::wait_for_event): ...this.
2818 (linux_wait_1): Turn into...
2819 (linux_process_target::wait_1): ...this.
2820 (wait_for_sigstop): Turn into...
2821 (linux_process_target::wait_for_sigstop): ...this.
2822 (move_out_of_jump_pad_callback): Turn into...
2823 (linux_process_target::move_out_of_jump_pad): ...this.
2824 (stop_all_lwps): Turn into...
2825 (linux_process_target::stop_all_lwps): ...this.
2826 (start_step_over): Turn into...
2827 (linux_process_target::start_step_over): ...this.
2828 (complete_ongoing_step_over): Turn into...
2829 (linux_process_target::complete_ongoing_step_over): ...this.
2830 (proceed_all_lwps): Turn into...
2831 (linux_process_target::proceed_all_lwps): ...this.
2832 (unstop_all_lwps): Turn into...
2833 (linux_process_target::unstop_all_lwps): ...this.
2835 * linux-low.h (class linux_process_target)
2836 <handle_extended_wait>
2837 <maybe_move_out_of_jump_pad>
2839 <wait_for_event_filtered>
2843 <move_out_of_jump_pad>
2846 <complete_ongoing_step_over>
2848 <unstop_all_lwps>: Declare.
2850 Update the callers below.
2852 * linux-low.cc (linux_process_target::attach): Update.
2853 (linux_process_target::stabilize_threads): Ditto.
2854 (linux_process_target::wait): Ditto.
2856 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858 * linux-low.h (struct linux_target_ops): Update the comment for
2859 'cannot_store_register' to return 0 or 1.
2860 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2863 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2865 * config.in: Re-generate.
2866 * configure: Re-generate.
2868 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2870 * regcache.cc (find_register_by_number): Update.
2871 * tdesc.cc (init_target_desc): Likewise.
2872 * tdesc.h (target_desc::reg_defs): Likewise.
2874 2020-03-12 Tom Tromey <tom@tromey.com>
2876 * configure: Rebuild.
2877 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2878 (WIN32APILIBS): New subst.
2879 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2881 (gdbsupport/%.o): Remove target.
2882 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2883 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2884 (WIN32APILIBS): New variable.
2885 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2886 (gdbreplay$(EXEEXT)): Likewise.
2888 2020-03-12 Tom Tromey <tom@tromey.com>
2890 * config.in, configure: Rebuild.
2891 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2892 * acinclude.m4: Include gettext-sister.m4.
2893 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2895 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2896 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2898 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2900 * acinclude.m4: Update path to selftest.m4.
2902 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2904 * configure.ac: Don't source bfd/development.sh, move
2905 GDB_AC_COMMON higher.
2906 * configure: Re-generate.
2908 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2910 * configure: Re-generate.
2912 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2914 * configure: Re-generate.
2916 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2918 * .dir-locals.el: New file.
2920 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922 * .gitattributes: New file.
2924 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2926 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2927 reply into an S reply.
2928 * server.cc (disable_packet_T): New global.
2929 (captured_main): Set new global when appropriate.
2930 * server.h (disable_packet_T): Declare.
2932 2020-02-21 Tom Tromey <tom@tromey.com>
2934 * Makefile.in (mostlyclean): New target.
2936 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2938 * target.h (struct process_stratum_target): Remove.
2939 (class process_target): Rename to ...
2940 (class process_stratum_target): ... this.
2941 * linux-low.h (class linux_process_target): Derive from
2942 'process_stratum_target'.
2943 * linux-low.cc (linux_target_ops): Remove.
2944 (initialize_low): Set the_target to the singleton instance of
2945 linux_process_target.
2946 * lynx-low.h (class lynx_process_target): Derive from
2947 'process_stratum_target'.
2948 * lynx-low.cc (lynx_target_ops): Remove.
2949 (initialize_low): Set the_target to the singleton instance of
2950 lynx_process_target.
2951 * nto-low.h (class nto_process_target): Derive from
2952 'process_stratum_target'.
2953 * nto-low.cc (nto_target_ops): Remove.
2954 (initialize_low): Set the_target to the singleton instance of
2956 * win32-low.h (class win32_process_target): Derive from
2957 'process_stratum_target'.
2958 * win32-low.cc (win32_target_ops): Remove.
2959 (initialize_low): Set the_target to the singleton instance of
2960 win32_process_target.
2962 Replace 'the_target->pt' with 'the_target' in the uses below.
2964 * hostio.cc (hostio_error)
2969 * linux-aarch32-low.cc (arm_breakpoint_at)
2970 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2971 * linux-arm-low.cc (arm_sigreturn_next_pc)
2973 (arm_get_syscall_trapinfo)
2974 * linux-cris-low.cc (cris_breakpoint_at)
2975 * linux-crisv32-low.cc (cris_breakpoint_at)
2976 * linux-low.cc (handle_extended_wait)
2979 (linux_process_target::breakpoint_kind_from_pc)
2981 * linux-m32r-low.cc (m32r_breakpoint_at)
2982 * linux-mips-low.cc (mips_breakpoint_at)
2983 * linux-nios2-low.cc (nios2_breakpoint_at)
2984 * linux-ppc-low.cc (ppc_breakpoint_at)
2985 * linux-s390-low.cc (s390_get_hwcap)
2986 * linux-sh-low.cc (sh_breakpoint_at)
2987 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2988 (sparc_store_gregset_from_stack)
2989 (sparc_breakpoint_at)
2990 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2991 * linux-tile-low.cc (tile_breakpoint_at)
2992 * linux-x86-low.cc (x86_breakpoint_at)
2993 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2994 * mem-break.cc (bp_size)
2996 (insert_memory_breakpoint)
2997 (set_raw_breakpoint_at)
2998 (delete_raw_breakpoint)
3000 (uninsert_raw_breakpoint)
3001 (reinsert_raw_breakpoint)
3002 (validate_inserted_breakpoint)
3003 * regcache.cc (regcache_read_pc)
3005 * remote-utils.cc (putpkt_binary_1)
3008 (prepare_resume_reply)
3009 * server.cc (handle_general_set)
3012 (handle_qxfer_exec_file)
3013 (handle_qxfer_libraries_svr4)
3014 (handle_qxfer_osdata)
3015 (handle_qxfer_siginfo)
3016 (handle_qxfer_fdpic)
3020 (queue_stop_reply_callback)
3022 * target.cc (prepare_to_access_memory)
3023 (done_accessing_memory)
3024 (read_inferior_memory)
3025 (target_write_memory)
3026 (target_stop_and_wait)
3028 (target_mourn_inferior)
3029 (target_continue_no_signal)
3031 (target_supports_multi_process)
3034 (target_create_inferior)
3035 (target_post_create_inferior)
3037 (target_supports_fork_events)
3038 (target_supports_vfork_events)
3039 (target_supports_exec_events)
3040 (target_handle_new_gdb_connection)
3043 (fetch_inferior_registers)
3044 (store_inferior_registers)
3046 (target_supports_non_stop)
3048 (target_process_qsupported)
3049 (target_supports_catch_syscall)
3050 (target_get_ipa_tdesc_idx)
3051 (target_supports_tracepoints)
3052 (target_supports_fast_tracepoints)
3053 (target_get_min_fast_tracepoint_insn_len)
3054 (target_thread_stopped)
3056 (target_unpause_all)
3057 (target_stabilize_threads)
3058 (target_install_fast_tracepoint_jump_pad)
3060 (target_supports_disable_randomization)
3061 (target_supports_agent)
3062 (target_enable_btrace)
3063 (target_disable_btrace)
3064 (target_read_btrace)
3065 (target_read_btrace_conf)
3066 (target_supports_range_stepping)
3067 (target_supports_stopped_by_sw_breakpoint)
3068 (target_stopped_by_sw_breakpoint)
3069 (target_supports_stopped_by_hw_breakpoint)
3070 (target_supports_hardware_single_step)
3071 (target_stopped_by_hw_breakpoint)
3072 (target_breakpoint_kind_from_pc)
3073 (target_breakpoint_kind_from_current_state)
3074 (target_supports_software_single_step)
3075 (target_core_of_thread)
3076 (target_thread_name)
3077 (target_thread_handle)
3078 * win32-low.cc (do_initial_child_stuff)
3080 Rename target op default definitions listed below.
3082 * target.cc (process_target::post_create_inferior): Rename as ...
3083 (process_stratum_target::post_create_inferior): ... this.
3084 (process_target::prepare_to_access_memory): Rename as ...
3085 (process_stratum_target::prepare_to_access_memory): ... this.
3086 (process_target::done_accessing_memory): Rename as ...
3087 (process_stratum_target::done_accessing_memory): ... this.
3088 (process_target::look_up_symbols): Rename as ...
3089 (process_stratum_target::look_up_symbols): ... this.
3090 (process_target::supports_read_auxv): Rename as ...
3091 (process_stratum_target::supports_read_auxv): ... this.
3092 (process_target::read_auxv): Rename as ...
3093 (process_stratum_target::read_auxv): ... this.
3094 (process_target::supports_z_point_type): Rename as ...
3095 (process_stratum_target::supports_z_point_type): ... this.
3096 (process_target::insert_point): Rename as ...
3097 (process_stratum_target::insert_point): ... this.
3098 (process_target::remove_point): Rename as ...
3099 (process_stratum_target::remove_point): ... this.
3100 (process_target::stopped_by_sw_breakpoint): Rename as ...
3101 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3102 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3103 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3104 (process_target::stopped_by_hw_breakpoint): Rename as ...
3105 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3106 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3107 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3108 (process_target::supports_hardware_single_step): Rename as ...
3109 (process_stratum_target::supports_hardware_single_step): ... this.
3110 (process_target::stopped_by_watchpoint): Rename as ...
3111 (process_stratum_target::stopped_by_watchpoint): ... this.
3112 (process_target::stopped_data_address): Rename as ...
3113 (process_stratum_target::stopped_data_address): ... this.
3114 (process_target::supports_read_offsets): Rename as ...
3115 (process_stratum_target::supports_read_offsets): ... this.
3116 (process_target::read_offsets): Rename as ...
3117 (process_stratum_target::read_offsets): ... this.
3118 (process_target::supports_get_tls_address): Rename as ...
3119 (process_stratum_target::supports_get_tls_address): ... this.
3120 (process_target::get_tls_address): Rename as ...
3121 (process_stratum_target::get_tls_address): ... this.
3122 (process_target::hostio_last_error): Rename as ...
3123 (process_stratum_target::hostio_last_error): ... this.
3124 (process_target::supports_qxfer_osdata): Rename as ...
3125 (process_stratum_target::supports_qxfer_osdata): ... this.
3126 (process_target::qxfer_osdata): Rename as ...
3127 (process_stratum_target::qxfer_osdata): ... this.
3128 (process_target::supports_qxfer_siginfo): Rename as ...
3129 (process_stratum_target::supports_qxfer_siginfo): ... this.
3130 (process_target::qxfer_siginfo): Rename as ...
3131 (process_stratum_target::qxfer_siginfo): ... this.
3132 (process_target::supports_non_stop): Rename as ...
3133 (process_stratum_target::supports_non_stop): ... this.
3134 (process_target::async): Rename as ...
3135 (process_stratum_target::async): ... this.
3136 (process_target::start_non_stop): Rename as ...
3137 (process_stratum_target::start_non_stop): ... this.
3138 (process_target::supports_multi_process): Rename as ...
3139 (process_stratum_target::supports_multi_process): ... this.
3140 (process_target::supports_fork_events): Rename as ...
3141 (process_stratum_target::supports_fork_events): ... this.
3142 (process_target::supports_vfork_events): Rename as ...
3143 (process_stratum_target::supports_vfork_events): ... this.
3144 (process_target::supports_exec_events): Rename as ...
3145 (process_stratum_target::supports_exec_events): ... this.
3146 (process_target::handle_new_gdb_connection): Rename as ...
3147 (process_stratum_target::handle_new_gdb_connection): ... this.
3148 (process_target::handle_monitor_command): Rename as ...
3149 (process_stratum_target::handle_monitor_command): ... this.
3150 (process_target::core_of_thread): Rename as ...
3151 (process_stratum_target::core_of_thread): ... this.
3152 (process_target::supports_read_loadmap): Rename as ...
3153 (process_stratum_target::supports_read_loadmap): ... this.
3154 (process_target::read_loadmap): Rename as ...
3155 (process_stratum_target::read_loadmap): ... this.
3156 (process_target::process_qsupported): Rename as ...
3157 (process_stratum_target::process_qsupported): ... this.
3158 (process_target::supports_tracepoints): Rename as ...
3159 (process_stratum_target::supports_tracepoints): ... this.
3160 (process_target::read_pc): Rename as ...
3161 (process_stratum_target::read_pc): ... this.
3162 (process_target::write_pc): Rename as ...
3163 (process_stratum_target::write_pc): ... this.
3164 (process_target::supports_thread_stopped): Rename as ...
3165 (process_stratum_target::supports_thread_stopped): ... this.
3166 (process_target::thread_stopped): Rename as ...
3167 (process_stratum_target::thread_stopped): ... this.
3168 (process_target::supports_get_tib_address): Rename as ...
3169 (process_stratum_target::supports_get_tib_address): ... this.
3170 (process_target::get_tib_address): Rename as ...
3171 (process_stratum_target::get_tib_address): ... this.
3172 (process_target::pause_all): Rename as ...
3173 (process_stratum_target::pause_all): ... this.
3174 (process_target::unpause_all): Rename as ...
3175 (process_stratum_target::unpause_all): ... this.
3176 (process_target::stabilize_threads): Rename as ...
3177 (process_stratum_target::stabilize_threads): ... this.
3178 (process_target::supports_fast_tracepoints): Rename as ...
3179 (process_stratum_target::supports_fast_tracepoints): ... this.
3180 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3181 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3182 (process_target::emit_ops): Rename as ...
3183 (process_stratum_target::emit_ops): ... this.
3184 (process_target::supports_disable_randomization): Rename as ...
3185 (process_stratum_target::supports_disable_randomization): ... this.
3186 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3187 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3188 (process_target::qxfer_libraries_svr4): Rename as ...
3189 (process_stratum_target::qxfer_libraries_svr4): ... this.
3190 (process_target::supports_agent): Rename as ...
3191 (process_stratum_target::supports_agent): ... this.
3192 (process_target::enable_btrace): Rename as ...
3193 (process_stratum_target::enable_btrace): ... this.
3194 (process_target::disable_btrace): Rename as ...
3195 (process_stratum_target::disable_btrace): ... this.
3196 (process_target::read_btrace): Rename as ...
3197 (process_stratum_target::read_btrace): ... this.
3198 (process_target::read_btrace_conf): Rename as ...
3199 (process_stratum_target::read_btrace_conf): ... this.
3200 (process_target::supports_range_stepping): Rename as ...
3201 (process_stratum_target::supports_range_stepping): ... this.
3202 (process_target::supports_pid_to_exec_file): Rename as ...
3203 (process_stratum_target::supports_pid_to_exec_file): ... this.
3204 (process_target::pid_to_exec_file): Rename as ...
3205 (process_stratum_target::pid_to_exec_file): ... this.
3206 (process_target::supports_multifs): Rename as ...
3207 (process_stratum_target::supports_multifs): ... this.
3208 (process_target::multifs_open): Rename as ...
3209 (process_stratum_target::multifs_open): ... this.
3210 (process_target::multifs_unlink): Rename as ...
3211 (process_stratum_target::multifs_unlink): ... this.
3212 (process_target::multifs_readlink): Rename as ...
3213 (process_stratum_target::multifs_readlink): ... this.
3214 (process_target::breakpoint_kind_from_pc): Rename as ...
3215 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3216 (process_target::breakpoint_kind_from_current_state): Rename as ...
3217 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3218 (process_target::thread_name): Rename as ...
3219 (process_stratum_target::thread_name): ... this.
3220 (process_target::thread_handle): Rename as ...
3221 (process_stratum_target::thread_handle): ... this.
3222 (process_target::supports_software_single_step): Rename as ...
3223 (process_stratum_target::supports_software_single_step): ... this.
3224 (process_target::supports_catch_syscall): Rename as ...
3225 (process_stratum_target::supports_catch_syscall): ... this.
3226 (process_target::get_ipa_tdesc_idx): Rename as ...
3227 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3229 2020-02-20 Pedro Alves <palves@redhat.com>
3231 * target.cc (set_target_ops): Simply copy the given target pointer
3232 instead of creating a copy of the pointed object.
3234 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3236 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3239 * target.h (struct process_stratum_target): Remove the target op.
3240 (class process_target): Add the target op.
3241 (target_get_ipa_tdesc_idx): Update the macro.
3242 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3244 Update the derived classes and callers below.
3246 * linux-low.cc (linux_target_ops): Update.
3247 (linux_get_ipa_tdesc_idx): Turn into ...
3248 (linux_process_target::get_ipa_tdesc_idx): ... this.
3249 * linux-low.h (class linux_process_target): Update.
3250 * lynx-low.cc (lynx_target_ops): Update.
3251 * nto-low.cc (nto_target_ops): Update.
3252 * win32-low.cc (win32_target_ops): Update.
3254 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3256 Turn process_stratum_target's supports_catch_syscall op into a
3257 method of process_target.
3259 * target.h (struct process_stratum_target): Remove the target op.
3260 (class process_target): Add the target op.
3261 (target_supports_catch_syscall): Update the macro.
3262 * target.cc (process_target::supports_catch_syscall): Define.
3264 Update the derived classes and callers below.
3266 * linux-low.cc (linux_target_ops): Update.
3267 (linux_supports_catch_syscall): Turn into ...
3268 (linux_process_target::supports_catch_syscall): ... this.
3269 * linux-low.h (class linux_process_target): Update.
3270 * lynx-low.cc (lynx_target_ops): Update.
3271 * nto-low.cc (nto_target_ops): Update.
3272 * win32-low.cc (win32_target_ops): Update.
3274 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3276 Turn process_stratum_target's supports_software_single_step op
3277 into a method of process_target.
3279 * target.h (struct process_stratum_target): Remove the target op.
3280 (class process_target): Add the target op.
3281 (target_supports_software_single_step): Update the macro.
3282 * target.cc (process_target::supports_software_single_step): Define.
3284 Update the derived classes and callers below.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_supports_software_single_step): Turn into ...
3288 (linux_process_target::supports_software_single_step): ... this.
3289 * linux-low.h (class linux_process_target): Update.
3290 * lynx-low.cc (lynx_target_ops): Update.
3291 * nto-low.cc (nto_target_ops): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3296 Turn process_stratum_target's thread_name and thread_handle ops
3297 into methods of process_target.
3299 * target.h (struct process_stratum_target): Remove the target ops.
3300 (class process_target): Add the target ops.
3301 (target_thread_name): Update the macro.
3302 (target_thread_handle): Update the macro.
3303 * target.cc (process_target::thread_name): Define.
3304 (process_target::thread_handle): Define.
3306 Update the derived classes and callers below.
3308 * linux-low.cc (linux_target_ops): Update.
3309 (linux_process_target::thread_name): Define.
3310 (linux_process_target::thread_handle): Define.
3311 * linux-low.h (class linux_process_target): Update.
3312 * lynx-low.cc (lynx_target_ops): Update.
3313 * nto-low.cc (nto_target_ops): Update.
3314 * win32-low.cc (win32_target_ops): Update.
3316 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3318 Turn process_stratum_target's breakpoint_kind_from_pc,
3319 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3320 ops into methods of process_target.
3322 * target.h (struct process_stratum_target): Remove the target op.
3323 (class process_target): Add the target op.
3324 (target_breakpoint_kind_from_pc): Update the macro.
3325 (target_breakpoint_kind_from_current_state): Update the macro.
3326 (default_breakpoint_kind_from_pc): Remove declaration.
3327 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3328 (process_target::breakpoint_kind_from_pc): ... this.
3329 (process_target::breakpoint_kind_from_current_state): Define.
3331 Update the derived classes and callers below.
3333 * mem-break.cc (bp_size): Update.
3334 (bp_opcode): Update.
3335 * linux-low.cc (linux_target_ops): Update.
3336 (linux_wait_1): Update.
3337 (linux_breakpoint_kind_from_pc): Turn into ...
3338 (linux_process_target::breakpoint_kind_from_pc): ... this.
3339 (linux_sw_breakpoint_from_kind): Turn into ...
3340 (linux_process_target::sw_breakpoint_from_kind): ... this.
3341 (linux_breakpoint_kind_from_current_state): Turn into ...
3342 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3343 * linux-low.h (class linux_process_target): Update.
3344 * lynx-low.cc (lynx_target_ops): Update.
3345 (lynx_process_target::sw_breakpoint_from_kind): Define.
3346 * lynx-low.h (class lynx_process_target): Update.
3347 * nto-low.cc (nto_target_ops): Update.
3348 (nto_sw_breakpoint_from_kind): Turn into ...
3349 (nto_process_target::sw_breakpoint_from_kind): ... this.
3350 * nto-low.h (class nto_process_target): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3352 (win32_sw_breakpoint_from_kind): Turn into ...
3353 (win32_process_target::sw_breakpoint_from_kind): ... this.
3354 * win32-low.h (class win32_process_target): Update.
3356 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3358 Turn process_stratum_target's multifs_open, multifs_readlink,
3359 multifs_unlink ops into methods of process_target.
3361 * target.h (struct process_stratum_target): Remove the target ops.
3362 (class process_target): Add the target ops. Also add
3364 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3366 (process_target::supports_multifs): Define.
3367 (process_target::multifs_open): Define.
3368 (process_target::multifs_readlink): Define.
3369 (process_target::multifs_unlink): Define.
3371 Update the derived classes and callers below.
3373 * hostio.cc (handle_setfs): Update.
3374 (handle_open): Update.
3375 (handle_unlink): Update.
3376 (handle_readlink): Update.
3377 * linux-low.cc (linux_target_ops): Update.
3378 (linux_process_target::supports_multifs): Define.
3379 (linux_process_target::multifs_open): Define.
3380 (linux_process_target::multifs_readlink): Define.
3381 (linux_process_target::multifs_unlink): Define.
3382 * linux-low.h (class linux_process_target): Update.
3383 * lynx-low.cc (lynx_target_ops): Update.
3384 * nto-low.cc (nto_target_ops): Update.
3385 * win32-low.cc (win32_target_ops): Update.
3387 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3389 Turn process_stratum_target's pid_to_exec_file op into a method
3392 * target.h (struct process_stratum_target): Remove the target op.
3393 (class process_target): Add the target op. Also add
3394 'supports_pid_to_exec_file'.
3395 * target.cc (process_target::pid_to_exec_file): Define.
3396 (process_target::supports_pid_to_exec_file): Define.
3398 Update the derived classes and callers below.
3400 * server.cc (handle_qxfer_exec_file): Update.
3401 (handle_query): Update.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_target::supports_pid_to_exec_file): Define.
3404 (linux_process_target::pid_to_exec_file): Define.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3410 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412 Turn process_stratum_target's supports_range_stepping op into a
3413 method of process_target.
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op.
3417 (target_supports_range_stepping): Update the macro.
3418 * target.cc (process_target::supports_range_stepping): Define.
3420 Update the derived classes and callers below.
3422 * linux-low.cc (linux_target_ops): Update.
3423 (linux_supports_range_stepping): Turn into ...
3424 (linux_process_target::supports_range_stepping): ... this.
3425 * linux-low.h (class linux_process_target): Update.
3426 * lynx-low.cc (lynx_target_ops): Update.
3427 * nto-low.cc (nto_target_ops): Update.
3428 * win32-low.cc (win32_target_ops): Update.
3430 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3432 Turn process_stratum_target's btrace-related ops (enable_btrace,
3433 disable_btrace, read_btrace, read_btrace_conf) into methods of
3436 * target.h (struct process_stratum_target): Remove the target ops.
3437 (class process_target): Add the target ops.
3438 (target_enable_btrace): Update.
3439 (target_disable_btrace): Update.
3440 (target_read_btrace): Update.
3441 (target_read_btrace_conf): Update.
3442 * target.cc (process_target::enable_btrace): Define.
3443 (process_target::disable_btrace): Define.
3444 (process_target::read_btrace): Define.
3445 (process_target::read_btrace_conf): Define.
3447 Update the derived classes and callers below.
3449 * linux-low.cc (linux_target_ops): Update.
3450 (linux_process_target:enable_btrace): Define as a wrapper around
3451 linux_enable_btrace.
3452 (linux_low_disable_btrace): Turn into ...
3453 (linux_process_target::disable_btrace): ... this.
3454 (linux_low_read_btrace): Turn into ...
3455 (linux_process_target::read_btrace): ... this.
3456 (linux_low_btrace_conf): Turn into ...
3457 (linux_process_target::read_btrace_conf): ... this.
3458 * linux-low.h (class linux_process_target): Update.
3459 * lynx-low.cc (lynx_target_ops): Update.
3460 * nto-low.cc (nto_target_ops): Update.
3461 * win32-low.cc (win32_target_ops): Update.
3463 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3465 Turn process_stratum_target's supports_agent op into a method of
3468 * target.h (struct process_stratum_target): Remove the target op.
3469 (class process_target): Add the target op.
3470 (target_supports_agent): Update the macro.
3471 * target.cc (process_target::supports_agent): Define.
3473 Update the derived classes and callers below.
3475 * linux-low.cc (linux_target_ops): Update.
3476 (linux_supports_agent): Turn into ...
3477 (linux_process_target::supports_agent): ... this.
3478 * linux-low.h (class linux_process_target): Update.
3479 * lynx-low.cc (lynx_target_ops): Update.
3480 * nto-low.cc (nto_target_ops): Update.
3481 * win32-low.cc (win32_target_ops): Update.
3483 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3485 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3486 method of process_target.
3488 * target.h (struct process_stratum_target): Remove the target op.
3489 (class process_target): Add the target op. Also add
3490 'supports_qxfer_libraries_svr4'.
3491 * target.cc (process_target::qxfer_libraries_svr4): Define.
3492 (process_target::supports_qxfer_libraries_svr4): Define.
3494 Update the derived classes and callers below.
3496 * server.cc (handle_qxfer_libraries_svr4): Update.
3497 (handle_query): Update.
3498 * linux-low.cc (linux_target_ops): Update.
3499 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3500 (linux_qxfer_libraries_svr4): Turn into ...
3501 (linux_process_target::qxfer_libraries_svr4): ... this.
3502 * linux-low.h (class linux_process_target): Update.
3503 * lynx-low.cc (lynx_target_ops): Update.
3504 * nto-low.cc (nto_target_ops): Update.
3505 * win32-low.cc (win32_target_ops): Update.
3507 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3509 Turn process_stratum_target's supports_disable_randomization op
3510 into a method of process_target.
3512 * target.h (struct process_stratum_target): Remove the target op.
3513 (class process_target): Add the target op.
3514 (target_supports_disable_randomization): Update the macro.
3515 * target.cc (process_target::supports_disable_randomization): Define.
3517 Update the derived classes and callers below.
3519 * linux-low.cc (linux_target_ops): Update.
3520 (linux_supports_disable_randomization): Turn into ...
3521 (linux_process_target::supports_disable_randomization): ... this.
3522 * linux-low.h (class linux_process_target): Update.
3523 * lynx-low.cc (lynx_target_ops): Update.
3524 * nto-low.cc (nto_target_ops): Update.
3525 * win32-low.cc (win32_target_ops): Update.
3527 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3529 Turn process_stratum_target's emit_ops op into a method of
3532 * target.h (struct process_stratum_target): Remove the target op.
3533 (class process_target): Add the target op.
3534 (target_emit_ops): Update the macro.
3535 * target.cc (process_target::emit_ops): Define.
3537 Update the derived classes and callers below.
3539 * linux-low.cc (linux_target_ops): Update.
3540 (linux_emit_ops): Turn into ...
3541 (linux_process_target::emit_ops): ... this.
3542 * linux-low.h (class linux_process_target): Update.
3543 * lynx-low.cc (lynx_target_ops): Update.
3544 * nto-low.cc (nto_target_ops): Update.
3545 * win32-low.cc (win32_target_ops): Update.
3547 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3549 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3550 and get_min_fast_tracepoint_insn_len ops into methods of
3553 * target.h (struct process_stratum_target): Remove the target ops.
3554 (class process_target): Add the target ops. Also add
3555 'supports_fast_tracepoints'.
3556 (target_supports_fast_tracepoints): Update the macro.
3557 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3558 (install_fast_tracepoint_jump_pad): Update and rename the macro
3560 (target_install_fast_tracepoint_jump_pad): ... this.
3561 * target.cc (process_target::supports_fast_tracepoints): Define.
3562 (process_target::install_fast_tracepoint_jump_pad): Define.
3563 (process_target::get_min_fast_tracepoint_insn_len): Define.
3565 Update the derived classes and callers below.
3567 * tracepoint.cc (install_fast_tracepoint): Update.
3568 * linux-low.cc (linux_target_ops): Update.
3569 (linux_process_target::supports_fast_tracepoints): Define.
3570 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3571 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3572 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3573 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3574 * linux-low.h (class linux_process_target): Update.
3575 * lynx-low.cc (lynx_target_ops): Update.
3576 * nto-low.cc (nto_target_ops): Update.
3577 * win32-low.cc (win32_target_ops): Update.
3579 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581 Turn process_stratum_target's stabilize_threads op into a
3582 method of process_target.
3584 * target.h (struct process_stratum_target): Remove the target op.
3585 (class process_target): Add the target op.
3586 (target_stabilize_threads): Update the macro.
3587 * target.cc (process_target::stabilize_threads): Define.
3589 Update the derived classes and callers below.
3591 * server.cc (handle_status): Update.
3592 * tracepoint.cc (cmd_qtdp): Update.
3593 (cmd_qtstart): Update.
3594 * linux-low.cc (linux_target_ops): Update.
3595 (linux_stabilize_threads): Turn into ...
3596 (linux_process_target::stabilize_threads): ... this.
3597 (linux_wait_1): Update.
3598 * linux-low.h (class linux_process_target): Update.
3599 * lynx-low.cc (lynx_target_ops): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 * win32-low.cc (win32_target_ops): Update.
3603 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3605 Turn process_stratum_target's pause_all and unpause_all ops
3606 into methods of process_target.
3608 * target.h (struct process_stratum_target): Remove the target ops.
3609 (class process_target): Add the target ops.
3610 (pause_all): Update the macro and rename to...
3611 (target_pause_all): ... this.
3612 (unpause_all): Update the macro and rename to...
3613 (target_unpause_all): ... this.
3614 * target.cc (process_target::pause_all): Define.
3615 (process_target::unpause_all): Define.
3617 Update the derived classes and callers below.
3619 * server.cc (handle_status): Update.
3620 * tracepoint.cc (clear_installed_tracepoints): Update.
3622 (cmd_qtstart): Update.
3623 (stop_tracing): Update.
3624 (cmd_qtstatus): Update.
3625 (upload_fast_traceframes): Update.
3626 (run_inferior_command): Update.
3627 * linux-low.cc (linux_target_ops): Update.
3628 (linux_pause_all): Turn into ...
3629 (linux_process_target::pause_all): ... this.
3630 (linux_unpause_all): Turn into ...
3631 (linux_process_target::unpause_all): ... this.
3632 (linux_process_target::prepare_to_access_memory): Update.
3633 (linux_process_target::done_accessing_memory): Update.
3634 * linux-low.h (class linux_process_target): Update.
3635 * lynx-low.cc (lynx_target_ops): Update.
3636 * nto-low.cc (nto_target_ops): Update.
3637 * win32-low.cc (win32_target_ops): Update.
3639 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3641 Turn process_stratum_target's get_tib_address op into a method of
3644 * target.h (struct process_stratum_target): Remove the target op.
3645 (class process_target): Add the target op. Also add
3646 'supports_get_tib_address'.
3647 * target.cc (process_target::get_tib_address): Define.
3648 (process_target::supports_get_tib_address): Define.
3650 Update the derived classes and callers below.
3652 * server.cc (handle_query): Update.
3653 * linux-low.cc (win32_target_ops): Update.
3654 * lynx-low.cc (lynx_target_ops): Update.
3655 * nto-low.cc (nto_target_ops): Update.
3656 * win32-low.cc (win32_target_ops): Update.
3657 (win32_process_target::supports_get_tib_address): Define.
3658 (win32_get_tib_address): Turn into ...
3659 (win32_process_target::get_tib_address): ... this.
3660 * win32-low.h (class win32_process_target): Update.
3662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664 Turn process_stratum_target's thread_stopped op into a method of
3667 * target.h (struct process_stratum_target): Remove the target op.
3668 (class process_target): Add the target op. Also add
3669 'supports_thread_stopped'.
3670 (target_thread_stopped): Update the macro.
3671 * target.cc (process_target::thread_stopped): Define.
3672 (process_target::supports_thread_stopped): Define.
3673 (prepare_to_access_memory): Update.
3675 Update the derived classes and callers below.
3677 * server.cc (queue_stop_reply_callback): Update.
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_process_target::supports_thread_stopped): Define.
3680 (linux_thread_stopped): Turn into ...
3681 (linux_process_target::thread_stopped): ... this.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 * win32-low.cc (win32_target_ops): Update.
3687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3689 Turn process_stratum_target's read_pc and write_pc ops into
3690 methods of process_target.
3692 * target.h (struct process_stratum_target): Remove the target ops.
3693 (class process_target): Add the target ops.
3694 * target.cc (process_target::read_pc): Define.
3695 (process_target::write_pc): Define.
3697 Update the derived classes and callers below.
3699 * regcache.cc (regcache_read_pc): Update.
3700 (regcache_write_pc): Update.
3701 * linux-low.cc (linux_target_ops): Update.
3702 (linux_read_pc): Turn into ...
3703 (linux_process_target::read_pc): ... this.
3704 (linux_write_pc): Turn into ...
3705 (linux_process_target::write_pc): ... this.
3706 * linux-low.h (class linux_process_target): Update.
3707 * lynx-low.cc (lynx_target_ops): Update.
3708 * nto-low.cc (nto_target_ops): Update.
3709 * win32-low.cc (win32_target_ops): Update.
3711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3713 Turn process_stratum_target's supports_tracepoints op into a
3714 method of process_target.
3716 * target.h (struct process_stratum_target): Remove the target op.
3717 (class process_target): Add the target op.
3718 (target_supports_tracepoints): Update the macro.
3719 * target.cc (process_target::supports_tracepoints): Define.
3721 Update the derived classes and callers below.
3723 * linux-low.cc (linux_target_ops): Update.
3724 (linux_supports_tracepoints): Turn into ...
3725 (linux_process_target::supports_tracepoints): ... this.
3726 * linux-low.h (class linux_process_target): Update.
3727 * lynx-low.cc (lynx_target_ops): Update.
3728 * nto-low.cc (nto_target_ops): Update.
3729 * win32-low.cc (win32_target_ops): Update.
3731 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3733 Turn process_stratum_target's process_qsupported op into a method
3736 * target.h (struct process_stratum_target): Remove the target op.
3737 (class process_target): Add the target op.
3738 (target_process_qsupported): Update the macro.
3739 * target.cc (process_target::process_qsupported): Define.
3741 Update the derived classes and callers below.
3743 * linux-low.cc (linux_target_ops): Update.
3744 (linux_process_qsupported): Turn into ...
3745 (linux_process_target::process_qsupported): ... this.
3746 * linux-low.h (class linux_process_target): Update.
3747 * lynx-low.cc (lynx_target_ops): Update.
3748 * nto-low.cc (nto_target_ops): Update.
3749 * win32-low.cc (win32_target_ops): Update.
3751 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3753 Turn process_stratum_target's read_loadmap op into a method of
3756 * target.h (struct process_stratum_target): Remove the target op.
3757 (class process_target): Add the target op. Also add
3758 'supports_read_loadmap'.
3759 * target.cc (process_target::read_loadmap): Define.
3760 (process_target::supports_read_loadmap): Define.
3762 Update the derived classes and callers below.
3764 * server.cc (handle_qxfer_fdpic): Update.
3765 (handle_query): Update.
3766 * linux-low.cc (linux_target_ops): Update.
3767 (linux_process_target::supports_read_loadmap): Define.
3768 (linux_read_loadmap): Turn into ...
3769 (linux_process_target::read_loadmap): ... this.
3770 * linux-low.h (class linux_process_target): Update.
3771 * lynx-low.cc (lynx_target_ops): Update.
3772 * nto-low.cc (nto_target_ops): Update.
3773 * win32-low.cc (win32_target_ops): Update.
3775 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3777 Turn process_stratum_target's core_of_thread op into a method of
3780 * target.h (struct process_stratum_target): Remove the target op.
3781 (class process_target): Add the target op.
3782 (target_core_of_thread): Update the macro.
3783 * target.cc (process_target::core_of_thread): Define.
3785 Update the derived classes and callers below.
3787 * linux-low.cc (linux_target_ops): Update.
3788 (linux_process_target::core_of_thread): Define.
3789 * linux-low.h (class linux_process_target): Update.
3790 * lynx-low.cc (lynx_target_ops): Update.
3791 * nto-low.cc (nto_target_ops): Update.
3792 * win32-low.cc (win32_target_ops): Update.
3794 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796 Turn process_stratum_target's handle_monitor_command op into a
3797 method of process_target.
3799 * target.h (struct process_stratum_target): Remove the target op.
3800 (class process_target): Add the target op.
3801 (target_handle_monitor_command): Update the macro.
3802 * target.cc (process_target::handle_monitor_command): Define.
3804 Update the derived classes and callers below.
3806 * server.cc (handle_query): Update.
3807 * linux-low.cc (linux_target_ops): Update.
3808 (linux_process_target::handle_monitor_command): Define.
3809 * linux-low.h (class linux_process_target): Update.
3810 * lynx-low.cc (lynx_target_ops): Update.
3811 * nto-low.cc (nto_target_ops): Update.
3812 * win32-low.cc (win32_target_ops): Update.
3814 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3816 Turn process_stratum_target's handle_new_gdb_connection op into a
3817 method of process_target.
3819 * target.h (struct process_stratum_target): Remove the target op.
3820 (class process_target): Add the target op.
3821 (target_handle_new_gdb_connection): Update the macro.
3822 * target.cc (process_target::handle_new_gdb_connection): Define.
3824 Update the derived classes and callers below.
3826 * linux-low.cc (linux_target_ops): Update.
3827 (linux_handle_new_gdb_connection): Turn into ...
3828 (linux_process_target::handle_new_gdb_connection): ... this.
3829 * linux-low.h (class linux_process_target): Update.
3830 * lynx-low.cc (lynx_target_ops): Update.
3831 * nto-low.cc (nto_target_ops): Update.
3832 * win32-low.cc (win32_target_ops): Update.
3834 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3836 Turn process_stratum_target's supports_fork_events,
3837 supports_vfork_events, and supports_exec_events ops into methods
3840 * target.h (struct process_stratum_target): Remove the target ops.
3841 (class process_target): Add the target ops.
3842 (target_supports_fork_events): Update the macro.
3843 (target_supports_vfork_events): Update the macro.
3844 (target_supports_exec_events): Update the macro.
3845 * target.cc (process_target::supports_fork_events): Define.
3846 (process_target::supports_vfork_events): Define.
3847 (process_target::supports_exec_events): Define.
3849 Update the derived classes and callers below.
3851 * linux-low.cc (linux_target_ops): Update.
3852 (linux_supports_fork_events): Turn into ...
3853 (linux_process_target::supports_fork_events): ... this.
3854 (linux_supports_vfork_events): Turn into ...
3855 (linux_process_target::supports_vfork_events): ... this.
3856 (linux_supports_exec_events): Turn into ...
3857 (linux_process_target::supports_exec_events): ... this.
3858 * linux-low.h (class linux_process_target): Update.
3859 * lynx-low.cc (lynx_target_ops): Update.
3860 * nto-low.cc (nto_target_ops): Update.
3861 * win32-low.cc (win32_target_ops): Update.
3863 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3865 Turn process_stratum_target's supports_multi_process op into a
3866 method of process_target.
3868 * target.h (struct process_stratum_target): Remove the target op.
3869 (class process_target): Add the target op.
3870 * target.cc (process_target::supports_multi_process): Define.
3871 (target_supports_multi_process): Update.
3873 Update the derived classes and callers below.
3875 * linux-low.cc (linux_target_ops): Update.
3876 (linux_supports_multi_process): Turn into ...
3877 (linux_process_target::supports_multi_process): ... this.
3878 * linux-low.h (class linux_process_target): Update.
3879 * lynx-low.cc (lynx_target_ops): Update.
3880 * nto-low.cc (nto_target_ops): Update.
3881 * win32-low.cc (win32_target_ops): Update.
3883 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3885 Turn process_stratum_target's supports_non_stop, async, and
3886 start_non_stop ops into methods of process_target.
3888 * target.h (struct process_stratum_target): Remove the target ops.
3889 (class process_target): Add the target ops.
3890 (target_supports_non_stop): Update the macro.
3891 (target_async): Update the macro.
3892 (start_non_stop): Remove declaration.
3893 * target.cc (process_target::supports_non_stop): Define.
3894 (process_target::async): Define.
3895 (process_target::start_non_stop): Define.
3896 (start_non_stop): Remove.
3898 Update the derived classes and callers below.
3900 * server.cc (handle_qxfer_siginfo): Update.
3901 (handle_query): Update.
3902 * linux-low.cc (linux_target_ops): Update.
3903 (linux_supports_non_stop): Turn into ...
3904 (linux_process_target::supports_non_stop): ... this.
3905 (linux_async): Turn into ...
3906 (linux_process_target::async): ... this.
3907 (linux_start_non_stop): Turn into ...
3908 (linux_process_target::start_non_stop): ... this.
3909 * linux-low.h (class linux_process_target): Update.
3910 * lynx-low.cc (lynx_target_ops): Update.
3911 * nto-low.cc (nto_target_ops): Update.
3912 (nto_supports_non_stop): Remove; rely on the default behavior
3914 * win32-low.cc (win32_target_ops): Update.
3916 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3918 Turn process_stratum_target's qxfer_siginfo 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_qxfer_siginfo'.
3924 * target.cc (process_target::qxfer_siginfo): Define.
3925 (process_target::supports_qxfer_siginfo): Define.
3927 Update the derived classes and callers below.
3929 * server.cc (handle_qxfer_siginfo): Update.
3930 (handle_query): Update.
3931 * linux-low.cc (linux_target_ops): Update.
3932 (linux_process_target::supports_qxfer_siginfo): Define.
3933 (linux_xfer_siginfo): Turn into ...
3934 (linux_process_target::qxfer_siginfo): ... this.
3935 * linux-low.h (class linux_process_target): Update.
3936 * lynx-low.cc (lynx_target_ops): Update.
3937 * nto-low.cc (nto_target_ops): Update.
3938 * win32-low.cc (win32_target_ops): Update.
3940 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3942 Turn process_stratum_target's qxfer_osdata op into a method of
3945 * target.h (struct process_stratum_target): Remove the target op.
3946 (class process_target): Add the target op. Also add
3947 'supports_qxfer_osdata'.
3948 * target.cc (process_target::qxfer_osdata): Define.
3949 (process_target::supports_qxfer_osdata): Define.
3951 Update the derived classes and callers below.
3953 * server.cc (handle_qxfer_osdata): Update.
3954 (handle_query): Update.
3955 * linux-low.cc (linux_target_ops): Update.
3956 (linux_process_target::supports_qxfer_osdata): Define.
3957 (linux_qxfer_osdata): Turn into ...
3958 (linux_process_target::qxfer_osdata): ... this.
3959 * linux-low.h (class linux_process_target): Update.
3960 * lynx-low.cc (lynx_target_ops): Update.
3961 * nto-low.cc (nto_target_ops): Update.
3962 * win32-low.cc (win32_target_ops): Update.
3964 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3966 Turn process_stratum_target's hostio_last_error op into a
3967 method of process_target.
3969 * target.h (struct process_stratum_target): Remove the target op.
3970 (class process_target): Add the target op.
3971 * target.cc: Add "hostio.h" to includes.
3972 (process_target::hostio_last_error): Define.
3974 Update the derived classes and callers below.
3976 * hostio.cc (hostio_error): Update.
3977 * linux-low.cc: Remove "hostio.h" from includes.
3978 (linux_target_ops): Update.
3979 * lynx-low.cc (lynx_target_ops): Update.
3980 * nto-low.cc (nto_target_ops): Update.
3981 * win32-low.h (class win32_process_target): Update.
3982 * win32-low.cc (win32_target_ops): Update.
3983 (wince_hostio_last_error): Turn into ...
3984 (win32_process_target::hostio_last_error): ... this.
3986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3988 Turn process_stratum_target's get_tls_address op into a method of
3991 * target.h (struct process_stratum_target): Remove the target op.
3992 (class process_target): Add the target op. Also add
3993 'supports_get_tls_address'.
3994 * target.cc (process_target::get_tls_address): Define.
3995 (process_target::supports_get_tls_address): Define.
3997 Update the derived classes and callers below.
3999 * server.cc (handle_query): Update.
4000 * linux-low.cc (linux_target_ops): Update.
4001 (linux_process_target::supports_get_tls_address): Define.
4002 (linux_process_target::get_tls_address): Define.
4003 * linux-low.h (class linux_process_target): Update.
4004 * lynx-low.cc (lynx_target_ops): Update.
4005 * nto-low.cc (nto_target_ops): Update.
4006 * win32-low.cc (win32_target_ops): Update.
4008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4010 Turn process_stratum_target's read_offsets op into a method of
4013 * target.h (struct process_stratum_target): Remove the target op.
4014 (class process_target): Add the target op. Also add
4015 'supports_read_offsets'.
4016 * target.cc (process_target::read_offsets): Define.
4017 (process_target::supports_read_offsets): Define.
4019 Update the derived classes and callers below.
4021 * server.cc (handle_query): Update.
4022 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4023 (linux_target_ops): Update.
4024 (linux_process_target::supports_read_offsets): Define.
4025 (linux_read_offsets): Turn into ...
4026 (linux_process_target::read_offsets): ... this.
4027 * linux-low.h (class linux_process_target): Update.
4028 * lynx-low.cc (lynx_target_ops): Update.
4029 * nto-low.cc (nto_target_ops): Update.
4030 * win32-low.cc (win32_target_ops): Update.
4032 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4034 Turn process_stratum_target's stopped_by_watchpoint and
4035 stopped_data_address ops into methods of process_target.
4037 * target.h (struct process_stratum_target): Remove the target ops.
4038 (class process_target): Add the target ops.
4039 * target.cc (process_target::stopped_by_watchpoint): Define.
4040 (process_target::stopped_data_address): Define.
4042 Update the derived classes and callers below.
4044 * remote-utils.cc (prepare_resume_reply): Update.
4045 * linux-low.cc (linux_target_ops): Update.
4046 (linux_stopped_by_watchpoint): Turn into ...
4047 (linux_process_target::stopped_by_watchpoint): ... this.
4048 (linux_stopped_data_address): Turn into ...
4049 (linux_process_target::stopped_data_address): ... this.
4050 * linux-low.h (class linux_process_target): Update.
4051 * lynx-low.cc (lynx_target_ops): Update.
4052 * nto-low.cc (nto_target_ops): Update.
4053 (nto_stopped_by_watchpoint): Turn into ...
4054 (nto_process_target::stopped_by_watchpoint): ... this.
4055 (nto_stopped_data_address): Turn into ...
4056 (nto_process_target::stopped_data_address): ... this.
4057 * nto-low.h (class nto_process_target): Update.
4058 * win32-low.cc (win32_target_ops): Update.
4059 (win32_stopped_by_watchpoint): Turn into ...
4060 (win32_process_target::stopped_by_watchpoint): ... this.
4061 (win32_stopped_data_address): Turn into ...
4062 (win32_process_target::stopped_data_address): ... this.
4063 * win32-low.h (class win32_process_target): Update.
4065 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4067 Turn process_stratum_target's supports_hardware_single_step op into
4068 a method of process_target.
4070 * target.h (struct process_stratum_target): Remove the target op.
4071 (class process_target): Add the target op.
4072 (target_supports_hardware_single_step): Update the macro.
4073 (target_can_do_hardware_single_step): Remove declaration.
4074 * target.cc (process_target::supports_hardware_single_step): Define.
4075 (target_can_do_hardware_single_step): Remove.
4077 Update the derived classes and callers below.
4079 * linux-low.h (class linux_process_target): Update.
4080 * linux-low.cc (linux_target_ops): Update.
4081 (linux_supports_hardware_single_step): Turn into ...
4082 (linux_process_target::supports_hardware_single_step): ... this.
4083 * lynx-low.h (class lynx_process_target): Update.
4084 * lynx-low.cc (lynx_target_ops): Update.
4085 (lynx_process_target::supports_hardware_single_step): Define.
4086 * nto-low.h (class nto_process_target): Update.
4087 * nto-low.cc (nto_target_ops): Update.
4088 (nto_process_target::supports_hardware_single_step): Define.
4089 * win32-low.h (class win32_process_target): Update.
4090 * win32-low.cc (win32_target_ops): Update.
4091 (win32_process_target::supports_hardware_single_step): Define.
4093 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4095 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4096 ops into methods of process_target.
4098 * target.h (struct process_stratum_target): Remove the target ops.
4099 (class process_target): Add the target ops.
4100 (target_stopped_by_hw_breakpoint): Update the macro.
4101 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4102 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4103 (process_target::supports_stopped_by_hw_breakpoint): Define.
4105 Update the derived classes and callers below.
4107 * linux-low.cc (linux_target_ops): Update.
4108 (linux_stopped_by_hw_breakpoint): Turn into ...
4109 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4110 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4111 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4112 * linux-low.h (class linux_process_target): Update.
4113 * lynx-low.cc (lynx_target_ops): Update.
4114 * nto-low.cc (nto_target_ops): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4117 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4119 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4120 ops into methods of process_target.
4122 * target.h (struct process_stratum_target): Remove the target ops.
4123 (class process_target): Add the target ops.
4124 (target_stopped_by_sw_breakpoint): Update the macro.
4125 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4126 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4127 (process_target::supports_stopped_by_sw_breakpoint): Define.
4129 Update the derived classes and callers below.
4131 * linux-low.cc (linux_target_ops): Update.
4132 (linux_stopped_by_sw_breakpoint): Turn into ...
4133 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4134 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4135 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4136 * linux-low.h (class linux_process_target): Update.
4137 * lynx-low.cc (lynx_target_ops): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 * win32-low.cc (win32_target_ops): Update.
4141 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4143 Turn process_stratum_target's insert_point and remove_point ops
4144 into methods of process_target.
4146 * target.h (struct process_stratum_target): Remove the target ops.
4147 (class process_target): Add the target ops.
4148 * target.cc (process_target::insert_point): Define.
4149 (process_target::remove_point): Define.
4151 Update the derived classes and callers below.
4153 * mem-break.cc (set_raw_breakpoint_at): Update.
4154 (delete_raw_breakpoint): Update.
4155 (uninsert_raw_breakpoint): Update.
4156 (reinsert_raw_breakpoint): Update.
4157 * linux-low.cc (linux_target_ops): Update.
4158 (linux_insert_point): Turn into ...
4159 (linux_process_target::insert_point): ... this.
4160 (linux_remove_point): Turn into ...
4161 (linux_process_target::remove_point): ... this.
4162 * linux-low.h (class linux_process_target): Update.
4163 * lynx-low.cc (lynx_target_ops): Update.
4164 * nto-low.cc (nto_target_ops): Update.
4165 (nto_insert_point): Turn into ...
4166 (nto_process_target::insert_point): ... this.
4167 (nto_remove_point): Turn into ...
4168 (nto_process_target::remove_point): ... this.
4169 * nto-low.h (class nto_process_target): Update.
4170 * win32-low.cc (win32_target_ops): Update.
4171 (win32_insert_point): Turn into ...
4172 (win32_process_target::insert_point): ... this.
4173 (win32_remove_point): Turn into ...
4174 (win32_process_target::remove_point): ... this.
4175 * win32-low.h (class win32_process_target): Update.
4177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4179 Turn process_stratum_target's supports_z_point_type op into a
4180 method of process_target.
4182 * target.h (struct process_stratum_target): Remove the target op.
4183 (class process_target): Add the target op.
4184 * target.cc (process_target::supports_z_point_type): Define.
4186 Update the derived classes and callers below.
4188 * mem-break.cc (z_type_supported): Update.
4189 * linux-low.cc (linux_target_ops): Update.
4190 (linux_supports_z_point_type): Turn into ...
4191 (linux_process_target::supports_z_point_type): ... this.
4192 * linux-low.h (class linux_process_target): Update.
4193 * lynx-low.cc (lynx_target_ops): Update.
4194 * nto-low.cc (nto_target_ops): Update.
4195 (nto_supports_z_point_type): Turn into ...
4196 (nto_process_target::supports_z_point_type): ... this.
4197 * nto-low.h (class nto_process_target): Update.
4198 * win32-low.cc (win32_target_ops): Update.
4199 (win32_supports_z_point_type): Turn into ...
4200 (win32_process_target::supports_z_point_type): ... this.
4201 * win32-low.h (class win32_process_target): Update.
4203 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4205 Turn process_stratum_target's read_auxv op into a method of
4208 * target.h (class process_stratum_target): Remove the target op.
4209 (struct process_target): Add the target op. Also add
4210 'supports_read_auxv'.
4211 * target.cc (process_target::read_auxv): Define.
4212 (process_target::supports_read_auxv): Define.
4214 Update the derived classes and callers below.
4216 * server.cc (handle_qxfer_auxv): Update.
4217 (handle_query): Update.
4218 * linux-low.cc (linux_target_ops): Update.
4219 (linux_process_target::supports_read_auxv): Define.
4220 (linux_read_auxv): Turn into ...
4221 (linux_process_target::read_auxv): ... this.
4222 * linux-low.h (class linux_process_target): Update.
4223 * lynx-low.cc (lynx_target_ops): Update.
4224 * nto-low.cc (nto_target_ops): Update.
4225 (nto_process_target::supports_read_auxv): Define.
4226 (nto_read_auxv): Turn into ...
4227 (nto_process_target::read_auxv): ... this.
4228 * nto-low.h (class nto_process_target): Update.
4229 * win32-low.cc (win32_target_ops): Update.
4231 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4233 Turn process_stratum_target's request_interrupt op into a method of
4236 * target.h (struct process_stratum_target): Remove the target op.
4237 (class process_target): Add the target op.
4239 Update the derived classes and callers below.
4241 * remote-utils.cc (putpkt_binary_1): Update.
4242 (input_interrupt): Update.
4244 * server.cc (handle_v_requests): Update.
4245 * linux-low.cc (linux_target_ops): Update.
4246 (linux_request_interrupt): Turn into ...
4247 (linux_process_target::request_interrupt): ... this.
4248 * linux-low.h (class linux_process_target): Update.
4249 * lynx-low.cc (lynx_target_ops): Update.
4250 (lynx_request_interrupt): Turn into ...
4251 (lynx_process_target::request_interrupt): ... this.
4252 * lynx-low.h (class lynx_process_target): Update.
4253 * nto-low.cc (nto_target_ops): Update.
4254 (nto_request_interrupt): Turn into ...
4255 (nto_process_target::request_interrupt): ... this.
4256 * nto-low.h (class nto_process_target): Update.
4257 * win32-low.cc (win32_target_ops): Update.
4258 (win32_request_interrupt): Turn into ...
4259 (win32_process_target::request_interrupt): ... this.
4260 * win32-low.h (class win32_process_target): Update.
4262 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4264 Turn process_stratum_target's look_up_symbols op into a method of
4267 * target.h (struct process_stratum_target): Remove the target op.
4268 (class process_target): Add the target op.
4269 * target.cc (process_target::look_up_symbols): Define.
4271 Update the derived classes and callers below.
4273 * server.cc (handle_query): Update.
4274 * linux-low.cc (linux_target_ops): Update.
4275 (linux_look_up_symbols): Turn into ...
4276 (linux_process_target::look_up_symbols): ... this.
4277 * linux-low.h (class linux_process_target): Update.
4278 * lynx-low.cc (lynx_target_ops): Update.
4279 * nto-low.cc (nto_target_ops): Update.
4280 * win32-low.cc (win32_target_ops): Update.
4282 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4284 Turn process_stratum_target's read_memory and write_memory
4285 ops into methods of process_target.
4287 * target.h (struct process_stratum_target): Remove the target ops.
4288 (class process_target): Add the target ops.
4290 Update the derived classes and callers below.
4292 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4293 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4294 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4295 (arm_get_syscall_trapinfo): Update.
4296 * linux-cris-low.cc (cris_breakpoint_at): Update.
4297 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4298 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4299 * linux-mips-low.cc (mips_breakpoint_at): Update.
4300 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4301 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4302 * linux-sh-low.cc (sh_breakpoint_at): Update.
4303 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4304 (sparc_store_gregset_from_stack): Update.
4305 (sparc_breakpoint_at): Update.
4306 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4307 * linux-tile-low.cc (tile_breakpoint_at): Update.
4308 * linux-x86-low.cc (x86_breakpoint_at): Update.
4309 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4310 * mem-brea.cc (insert_memory_breakpoint): Update.
4311 (validate_inserted_breakpoint): Update.
4312 * target.cc (read_inferior_memory): Update.
4313 (target_write_memory): Update.
4314 * linux-low.cc (linux_target_ops): Update.
4315 (linux_read_memory): Make a wrapper around the read_memory target
4317 (linux_process_target::read_memory): Rename from linux_read_memory.
4318 (linux_write_memory): Turn into ...
4319 (linux_process_target::write_memory): ... this.
4320 * linux-low.h (class linux_process_target): Update.
4321 * lynx-low.cc (lynx_target_ops): Update.
4322 (lynx_read_memory): Turn into ...
4323 (lynx_process_target::read_memory): ... this.
4324 (lynx_write_memory): Turn into ...
4325 (lynx_process_target::write_memory): ... this.
4326 * lynx-low.h (class lynx_process_target): Update.
4327 * nto-low.cc (nto_target_ops): Update.
4328 (nto_read_memory): Turn into ...
4329 (nto_process_target::read_memory): ... this.
4330 (nto_write_memory): Turn into ...
4331 (nto_process_target::write_memory): ... this.
4332 * nto-low.h (class nto_process_target): Update.
4333 * win32-low.cc (win32_target_ops): Update.
4334 (win32_read_inferior_memory): Turn into ...
4335 (win32_process_target::read_memory): ... this.
4336 (win32_write_inferior_memory): Turn into ...
4337 (win32_process_target::write_memory): ... this.
4338 * win32-low.h (class win32_process_target): Update.
4340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342 Turn process_stratum_target's prepare_to_access_memory and
4343 done_accessing_memory ops into methods of process_target.
4345 * target.h (struct process_stratum_target): Remove the target ops.
4346 (class process_target): Add the target ops.
4347 * target.cc (process_target::prepare_to_access_memory): Define.
4348 (process_target::done_accessing_memory): Define.
4349 (prepare_to_access_memory): Update.
4350 (done_accessing_memory): Update.
4352 Update the derived classes and callers below.
4354 * linux-low.cc (linux_target_ops): Update.
4355 (linux_prepare_to_access_memory): Turn into ...
4356 (linux_process_target::prepare_to_access_memory): ... this.
4357 (linux_done_accessing_memory): Turn into ...
4358 (linux_process_target::done_accessing_memory): ... this.
4359 * linux-low.h (class linux_process_target): Update.
4360 * lynx-low.cc (lynx_target_ops): Update.
4361 * nto-low.cc (nto_target_ops): Update.
4362 * win32-low.cc (win32_target_ops): Update.
4364 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4366 Turn process_stratum_target's fetch_registers and store_registers
4367 ops into methods of process_target.
4369 * target.h (struct process_stratum_target): Remove the target ops.
4370 (class process_target): Add the target ops.
4371 (fetch_inferior_registers): Update the macro.
4372 (store_inferior_registers): Update the macro.
4374 Update the derived classes and callers below.
4376 * linux-low.cc (linux_target_ops): Update.
4377 (linux_fetch_registers): Turn into ...
4378 (linux_process_target::fetch_registers): ... this.
4379 (linux_store_registers): Turn into ...
4380 (linux_process_target::store_registers): ... this.
4381 * linux-low.h (class linux_process_target): Update.
4382 * lynx-low.cc (lynx_target_ops): Update.
4383 (lynx_fetch_registers): Turn into ...
4384 (lynx_process_target::fetch_registers): ... this.
4385 (lynx_store_registers): Turn into ...
4386 (lynx_process_target::store_registers): ... this.
4387 * lynx-low.h (class lynx_process_target): Update.
4388 * nto-low.cc (nto_target_ops): Update.
4389 (nto_fetch_registers): Turn into ...
4390 (nto_process_target::fetch_registers): ... this.
4391 (nto_store_registers): Turn into ...
4392 (nto_process_target::store_registers): ... this.
4393 * nto-low.h (class nto_process_target): Update.
4394 * win32-low.cc (win32_target_ops): Update.
4395 (win32_fetch_inferior_registers): Turn into ...
4396 (win32_process_target::fetch_registers): ... this.
4397 (win32_store_inferior_registers): Turn into ...
4398 (win32_process_target::store_registers): ... this.
4399 * win32-low.h (class win32_process_target): Update.
4401 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4403 Turn process_stratum_target's wait op into a method of
4406 * target.h (struct process_stratum_target): Remove the target op.
4407 (class process_target): Add the target op.
4409 Update the derived classes and callers below.
4411 * target.cc (target_wait): Update.
4412 * linux-low.cc (linux_target_ops): Update.
4413 (linux_wait): Turn into ...
4414 (linux_process_target::wait): ... this.
4415 * linux-low.h (class linux_process_target): Update.
4416 * lynx-low.cc (lynx_target_ops): Update.
4417 (lynx_wait): Turn into ...
4418 (lynx_process_target::wait): ... this.
4419 * lynx-low.h (class lynx_process_target): Update.
4420 * nto-low.cc (nto_target_ops): Update.
4421 (nto_wait): Turn into ...
4422 (nto_process_target::wait): ... this.
4423 * nto-low.h (class nto_process_target): Update.
4424 * win32-low.cc (win32_target_ops): Update.
4425 (win32_wait): Turn into ...
4426 (win32_process_target::wait): ... this.
4427 (do_initial_child_stuff): Update.
4428 * win32-low.h (class win32_process_target): Update.
4430 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4432 Turn process_stratum_target's resume op into a method of
4435 * target.h (struct process_stratum_target): Remove the target op.
4436 (class process_target): Add the target op.
4438 Update the derived classes and callers below.
4440 * server.cc (resume): Update.
4441 * target.cc (target_stop_and_wait): Update.
4442 (target_continue_no_signal): Update.
4443 (target_continue): Update.
4444 * linux-low.cc (linux_target_ops): Update.
4445 (linux_resume): Turn into ...
4446 (linux_process_target::resume): ... this.
4447 * linux-low.h (class linux_process_target): Update.
4448 * lynx-low.cc (lynx_target_ops): Update.
4449 (lynx_resume): Turn into ...
4450 (lynx_process_target::resume): ... this.
4451 * lynx-low.h (class lynx_process_target): Update.
4452 * nto-low.cc (nto_target_ops): Update.
4453 (nto_resume): Turn into ...
4454 (nto_process_target::resume): ... this.
4455 * nto-low.h (class nto_process_target): Update.
4456 * win32-low.cc (win32_target_ops): Update.
4457 (win32_resume): Turn into ...
4458 (win32_process_target::resume): ... this.
4459 (win32_process_target::detach): Update.
4460 (do_initial_child_stuff): Update.
4461 * win32-low.h (class win32_process_target): Update.
4463 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4465 Turn process_stratum_target's thread_alive op into a method of
4468 * target.h (struct process_stratum_target): Remove the target op.
4469 (class process_target): Add the target op.
4470 (mythread_alive): Update the macro.
4472 Update the derived classes and callers below.
4474 * linux-low.cc (linux_target_ops): Update.
4475 (linux_thread_alive): Turn into ...
4476 (linux_process_target::thread_alive): ... this.
4477 (wait_for_sigstop): Update.
4478 * linux-low.h (class linux_process_target): Update.
4479 * lynx-low.cc (lynx_target_ops): Update.
4480 (lynx_thread_alive): Turn into ...
4481 (lynx_process_target::thread_alive): ... this.
4482 * lynx-low.h (class lynx_process_target): Update.
4483 * nto-low.cc (nto_target_ops): Update.
4484 (nto_thread_alive): Turn into ...
4485 (nto_process_target::thread_alive): ... this.
4486 * nto-low.h (class nto_process_target): Update.
4487 * win32-low.cc (win32_target_ops): Update.
4488 (win32_thread_alive): Turn into ...
4489 (win32_process_target::thread_alive): ... this.
4490 * win32-low.h (class win32_process_target): Update.
4492 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4494 Turn process_stratum_target's join op into a method of
4497 * target.h (struct process_stratum_target): Remove the target op.
4498 (class process_target): Add the target op.
4499 (join_inferior): Update the macro.
4501 Update the derived classes and callers below.
4503 * linux-low.cc (linux_target_ops): Update.
4504 (linux_join): Turn into ...
4505 (linux_process_target::join): ... this.
4506 * linux-low.h (class linux_process_target): Update.
4507 * lynx-low.cc (lynx_target_ops): Update.
4508 (lynx_join): Turn into ...
4509 (lynx_process_target::join): ... this.
4510 * lynx-low.h (class lynx_process_target): Update.
4511 * nto-low.cc (nto_target_ops): Update.
4512 (nto_process_target::join): Define.
4513 * nto-low.h (class nto_process_target): Update.
4514 * win32-low.cc (win32_target_ops): Update.
4515 (win32_join): Turn into ...
4516 (win32_process_target::join): ... this.
4517 * win32-low.h (class win32_process_target): Update.
4519 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4521 Turn process_stratum_target's mourn op into a method of
4524 * target.h (struct process_stratum_target): Remove the target op.
4525 (class process_target): Add the target op.
4527 Update the derived classes and callers below.
4529 * target.cc (target_mourn_inferior): Update.
4530 * linux-low.cc (linux_target_ops): Update.
4531 (linux_mourn): Turn into ...
4532 (linux_process_target::mourn): ... this.
4533 (handle_extended_wait): Update.
4534 (linux_process_target::kill): Update.
4535 (linux_process_target::detach): Update.
4536 * linux-low.h (class linux_process_target): Update.
4537 * lynx-low.cc (lynx_target_ops): Update.
4538 (lynx_mourn): Turn into ...
4539 (lynx_process_target::mourn): ... this.
4540 * lynx-low.h (class lynx_process_target): Update.
4541 * nto-low.cc (nto_target_ops): Update.
4542 (nto_mourn): Turn into ...
4543 (nto_process_target::mourn): ... this.
4544 * nto-low.h (class nto_process_target): Update.
4545 * win32-low.cc (win32_target_ops): Update.
4546 (win32_mourn): Turn into ...
4547 (win32_process_target::mourn): ... this.
4548 * win32-low.h (class win32_process_target): Update.
4550 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4552 Turn process_stratum_target's detach op into a method of
4555 * target.h (struct process_stratum_target): Remove the target op.
4556 (class process_target): Add the target op.
4557 (detach_inferior): Update the macro.
4559 Update the derived classes and callers below.
4561 * linux-low.cc (linux_target_ops): Update.
4562 (linux_detach): Turn into ...
4563 (linux_process_target::detach): ... this.
4564 * linux-low.h (class linux_process_target): Update.
4565 * lynx-low.cc (lynx_target_ops): Update.
4566 (lynx_detach): Turn into ...
4567 (lynx_process_target::detach): ... this.
4568 * lynx-low.h (class lynx_process_target): Update.
4569 * nto-low.cc (nto_target_ops): Update.
4570 (nto_detach): Turn into ...
4571 (nto_process_target::detach): ... this.
4572 * nto-low.h (class nto_process_target): Update.
4573 * win32-low.cc (win32_target_ops): Update.
4574 (win32_detach): Turn into ...
4575 (win32_process_target::detach): ... this.
4576 * win32-low.h (class win32_process_target): Update.
4578 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4580 Turn process_stratum_target's kill op into a method of
4583 * target.h (struct process_stratum_target): Remove the target op.
4584 (class process_target): Add the target op.
4586 Update the derived classes and callers below.
4588 * target.cc (kill_inferior): Update.
4589 * linux-low.cc (linux_target_ops): Update.
4590 (linux_kill): Turn into ...
4591 (linux_process_target::kill): ... this.
4592 * linux-low.h (class linux_process_target): Update.
4593 * lynx-low.cc (lynx_target_ops): Update.
4594 (lynx_kill): Turn into ...
4595 (lynx_process_target::kill): ... this.
4596 * lynx-low.h (class lynx_process_target): Update.
4597 * nto-low.cc (nto_target_ops): Update.
4598 (nto_kill): Turn into ...
4599 (nto_process_target::kill): ... this.
4600 * nto-low.h (class nto_process_target): Update.
4601 * win32-low.cc (win32_target_ops): Update.
4602 (win32_kill): Turn into ...
4603 (win32_process_target::kill): ... this.
4604 * win32-low.h (class win32_process_target): Update.
4606 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4608 Turn process_stratum_target's attach op into a method of
4611 * target.h (struct process_stratum_target): Remove the target op.
4612 (class process_target): Add the target op.
4613 (myattach): Update the macro.
4615 Update the derived classes and callers below.
4617 * linux-low.cc (linux_target_ops): Update.
4618 (linux_attach): Turn into ...
4619 (linux_process_target::attach): ... this.
4620 * linux-low.h (class linux_process_target): Update.
4621 * lynx-low.cc (lynx_target_ops): Update.
4622 (lynx_attach): Turn into ...
4623 (lynx_process_target::attach): ... this.
4624 * lynx-low.h (class lynx_process_target): Update.
4625 * nto-low.cc (nto_target_ops): Update.
4626 (nto_attach): Turn into ...
4627 (nto_process_target::attach): ... this.
4628 * nto-low.h (class nto_process_target): Update.
4629 * win32-low.cc (win32_target_ops): Update.
4630 (win32_attach): Turn into ...
4631 (win32_process_target::attach): ... this.
4632 * win32-low.h (class win32_process_target): Update.
4634 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4636 Turn process_stratum_target's post_create_inferior op into a method
4639 * target.h (struct process_stratum_target): Remove the target op.
4640 (class process_target): Add the target op.
4641 (target_post_create_inferior): Update the macro.
4642 * target.cc (process_target::post_create_inferior): Define.
4644 Update the derived classes and callers below.
4646 * linux-low.cc (linux_target_ops): Update.
4647 (linux_post_create_inferior): Turn into ...
4648 (linux_process_target::post_create_inferior): ... this.
4649 * linux-low.h (class linux_process_target): Update.
4650 * lynx-low.cc (lynx_target_ops): Update.
4651 * nto-low.cc (nto_target_ops): Update.
4652 * win32-low.cc (win32_target_ops): Update.
4654 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4656 Turn process_stratum_target's create_inferior op into a method of
4659 * target.h (struct process_stratum_target): Remove the target op.
4660 (class process_target): Add the target op.
4661 (create_inferior): Rename the macro to ...
4662 (target_create_inferior): ... this.
4664 Update the derived classes and callers below.
4666 * server.cc (handle_v_run): Update.
4667 (captured_main): Update.
4668 (process_serial_event): Update.
4669 * linux-low.cc (linux_target_ops): Update.
4670 (linux_create_inferior): Turn into ...
4671 (linux_process_target::create_inferior): ... this.
4672 * linux-low.h (class linux_process_target): Update.
4673 * lynx-low.cc (lynx_target_ops): Update.
4674 (lynx_create_inferior): Turn into ...
4675 (lynx_process_target::create_inferior): ... this.
4676 * lynx-low.h (class lynx_process_target): Update.
4677 * nto-low.cc (nto_target_ops): Update.
4678 (nto_create_inferior): Turn into ...
4679 (nto_process_target::create_inferior): ... this.
4680 * nto-low.h (class nto_process_target): Update.
4681 * win32-low.cc (win32_target_ops): Update.
4682 (win32_create_inferior): Turn into ...
4683 (win32_process_target::create_inferior): ... this.
4684 * win32-low.h (class win32_process_target): Update.
4686 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4688 * target.h (class process_target): New class definition.
4689 (struct process_stratum_target) <pt>: New field with type
4691 * linux-low.h (class linux_process_target): Define as a derived
4692 class of 'process_target'.
4693 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4695 * lynx-low.h (class lynx_process_target): Define as a derived
4696 class of 'process_target'.
4697 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4699 * nto-low.h (class nto_process_target): Define as a derived
4700 class of 'process_target'.
4701 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4703 * win32-low.h (class win32_process_target): Define as a derived
4704 class of 'process_target'.
4705 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4708 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4710 * configure: Regenerate.
4712 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4713 Andrew Burgess <andrew.burgess@embecosm.com>
4715 * linux-riscv-low.cc: New file.
4716 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4717 and nat/riscv-linux-tdesc.c.
4718 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4719 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4722 2020-02-14 Tom Tromey <tom@tromey.com>
4724 * acinclude.m4: Don't include acx_configure_dir.m4.
4725 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4726 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4727 (all, install-only, uninstall, clean-info, clean)
4728 (maintainer-clean): Don't recurse.
4729 (subdir_do, all-lib): Remove.
4730 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4732 (generated_files): Update.
4733 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4734 * configure: Rebuild.
4735 * configure.ac: Don't configure gnulib or libiberty.
4738 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4740 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4741 preparing the command line for CreateProcess.
4742 (win32_create_inferior): Reflect the program name in debugging
4743 output that shows the process and its command line.
4745 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4747 * Makefile.in: Rename source files from .c to .cc.
4748 * %.c: Rename to %.cc.
4749 * configure.ac: Rename server.c to server.cc.
4750 * configure: Re-generate.
4752 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4754 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4756 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4758 * win32-low.c (win32_create_inferior): Set signal_pid.
4760 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4761 Pedro Alves <palves@redhat.com>
4763 Skip building gdbserver in a cross-configuration.
4764 * configure.srv: Set $gdbserver_host depending on whether $target
4765 is $host. Use $gdbserver_host instead of $host.
4767 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4769 * configure: Re-generate.
4771 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4773 * configure: Re-generate.
4775 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4777 * acinclude.m4: Update warning.m4 path.
4779 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4781 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4782 (handle_exception): Set siginfo_er.
4783 (win32_xfer_siginfo): New function.
4785 2020-02-07 Tom Tromey <tom@tromey.com>
4786 Pedro Alves <palves@redhat.com>
4788 * README: Update build documentation.
4789 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4791 * configure.ac: Update paths.
4792 * configure: Rebuild.
4793 * acinclude.m4: Update paths.
4794 * Makefile.in: Update include paths.
4795 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4796 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4797 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4798 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4799 (%-generated.c): Update paths.
4800 * Move entire directory from ../gdb/gdbserver.
4802 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4804 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4806 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4808 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4809 assignment instead of srv_linux_obj.
4811 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4813 * server.c (handle_qxfer_libraries): Write segment-address with
4816 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4818 * Makefile.in (install-strip): New target.
4819 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4820 * aclocal.m4: Regenerate.
4821 * configure: Regenerate.
4822 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4824 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4826 * Makefile.in (SFILES): Adjust paths to point to real files.
4827 (OBS): Move waitstatus.o to target/waitstatus.o.
4828 (TAGS): Transform paths appropriately.
4830 (nat/%.o): ... this pattern rule.
4832 (target/%.o): ... this pattern rule.
4833 * configure.srv: Adjust paths throughout to include nat/ prefix
4834 with the revant files.
4835 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4836 * configure: Regenerate.
4838 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4840 * Makefile.in (TAGS): Remove config files from the recipe.
4842 2020-01-14 Tom Tromey <tom@tromey.com>
4844 * configure: Rebuild.
4845 * configure.ac: Remove any checks that were added to common.m4.
4846 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4849 2020-01-14 Tom Tromey <tom@tromey.com>
4851 * server.h: Include config.h.
4852 * gdbreplay.c: Include config.h.
4853 * configure: Rebuild.
4854 * configure.ac: Don't source common.host.
4855 * acinclude.m4: Update path.
4856 * Makefile.in (INCSUPPORT): New variable.
4857 (INCLUDE_CFLAGS): Add INCSUPPORT.
4858 (SFILES): Update paths.
4859 (version-generated.c): Update path to create-version.sh.
4860 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4862 2020-01-14 Tom Tromey <tom@tromey.com>
4864 * configure.ac (LIBS): Use WIN32APILIBS.
4865 (USE_WIN32API): Don't define.
4866 * configure: Rebuild.
4868 2020-01-14 Tom Tromey <tom@tromey.com>
4870 * configure: Rebuild.
4872 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4874 * Makefile.in (%-generated.c): Remove rule for files from
4877 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4879 * configure: Re-generate.
4881 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4883 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4885 * tracepoint.c (stop_tracing, flush_trace_buffer,
4886 about_to_request_buffer_space, get_trace_state_variable_value,
4887 set_trace_state_variable_value, gdb_collect): Add declaration.
4889 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4891 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4892 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4893 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4894 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4895 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4898 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4900 * inferiors.c: Include gdbsupport/common-inferior.h.
4902 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4904 * hostio-errno.c: Include hostio.h.
4906 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4908 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4911 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4913 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4914 * linux-arm-tdesc.h: Include arch/arm.h.
4916 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4918 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4920 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4922 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4923 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4925 2020-01-10 Pedro Alves <palves@redhat.com>
4927 * fork-child.c (post_fork_inferior): Pass target down to
4929 * inferiors.c (switch_to_thread): Add process_stratum_target
4931 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4932 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4933 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4934 * remote-utils.c (prepare_resume_reply): Pass the target to
4936 * target.c (the_target): Now a process_stratum_target.
4937 (done_accessing_memory): Pass the target to switch_to_thread.
4938 (set_target_ops): Ajust to use process_stratum_target.
4939 * target.h (struct target_ops): Rename to ...
4940 (struct process_stratum_target): ... this.
4941 (the_target, set_target_ops): Adjust.
4942 (prepare_to_access_memory): Adjust comment.
4943 * win32-low.c (child_xfer_memory): Adjust to use
4944 process_stratum_target.
4945 (win32_target_ops): Now a process_stratum_target.
4947 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4948 Pedro Alves <palves@redhat.com>
4950 * win32-low.c (get_child_debug_event): Extract the fatal exception
4951 from the exit status and convert to the equivalent Posix signal
4953 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4954 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4956 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4958 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4960 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4962 * server.c (gdbserver_version): Change copyright year to 2020.
4963 * gdbreplay.c (gdbreplay_version): Likewise.
4965 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4967 * configure: Regenerate.
4968 * configure.ac: Quote variable arguments of test.
4970 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4972 * Makefile.in: Fix build with GNU Make 3.81
4974 2019-12-16 Tom Tromey <tromey@adacore.com>
4976 * server.c (get_exec_file): Constify result.
4978 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4980 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4981 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4982 * config.in: Regenerate.
4983 * configure: Regenerate.
4984 * configure.ac: Don't check for strerror.
4985 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4986 Call safe_strerror instead of strerror.
4987 * server.h (strerror): Remove this now-unnecessary declaration.
4988 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4990 (gdb_agent_helper_thread): Likewise.
4991 * utils.c (perror_with_name): Likewise.
4993 2019-11-26 Tom Tromey <tom@tromey.com>
4995 * configure, config.in: Rebuild.
4997 2019-11-26 Tom Tromey <tom@tromey.com>
4999 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5000 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5002 * configure, config.in: Rebuild.
5004 2019-11-26 Tom Tromey <tom@tromey.com>
5006 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5007 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5008 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5009 * acinclude.m4: Include ax_pthread.m4.
5010 * config.in, configure: Rebuild.
5012 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5014 * debug.c (debug_set_output): Call safe_strerror instead of
5016 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5017 (linux_kill_one_lwp): Likewise.
5018 (linux_detach_one_lwp): Likewise.
5019 (linux_wait_for_event_filtered): Likewise.
5020 (store_register): Likewise.
5021 * lynx-low.c (lynx_attach): Likewise.
5022 * mem-break.c (insert_memory_breakpoint): Likewise.
5023 (remove_memory_breakpoint): Likewise.
5024 (delete_fast_tracepoint_jump): Likewise.
5025 (set_fast_tracepoint_jump): Likewise.
5026 (uninsert_fast_tracepoint_jumps_at): Likewise.
5027 (reinsert_fast_tracepoint_jumps_at): Likewise.
5028 * nto-low.c (nto_xfer_memory): Likewise.
5029 (nto_resume): Likewise.
5031 2019-11-20 Luis Machado <luis.machado@linaro.org>
5033 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5034 instead of register count.
5035 * tdesc.c (tdesc_contains_feature): New function.
5036 * tdesc.h (tdesc_contains_feature): New prototype.
5038 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5040 * Makefile.in: Add safe-strerror.c.
5041 * configure: Regenerate.
5042 * configure.ac: Don't source common.host.
5044 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5046 * config.in: Regenerate.
5047 * configure: Regenerate.
5049 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5051 * ax.c (ax_printf): Handle size_t_arg.
5053 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5055 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5056 * mi/mi-main.c (output_cores): Likewise.
5057 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5058 (linux_xfer_osdata_modules): Likewise.
5059 * remote.c (register_remote_support_xml): Likewise.
5060 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5061 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5063 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5065 * configure: Regenerate.
5066 * configure.ac: Remove check for strerror_r.
5068 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5070 * config.in: Regenerate.
5071 * configure: Regenerate.
5072 * configure.ac: Also check for strerror_r.
5074 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5076 * ax.h (debug_agent): Remove duplicate declaration.
5078 2019-10-26 Tom de Vries <tdevries@suse.de>
5080 * linux-aarch64-low.c: Fix typos in comments.
5081 * linux-arm-low.c: Same.
5082 * linux-low.c: Same.
5083 * linux-ppc-low.c: Same.
5084 * proc-service.c: Same.
5087 * tracepoint.c: Same.
5088 * win32-low.c: Same.
5090 2019-10-25 Tom Tromey <tromey@adacore.com>
5092 * utils.c (xstrdup): Remove.
5094 2019-10-23 Tom Tromey <tom@tromey.com>
5096 * configure, config.in: Rebuild.
5098 2019-10-23 Tom Tromey <tom@tromey.com>
5100 * configure: Rebuild.
5101 * acinclude.m4: Use m4_include, not sinclude.
5103 2019-10-17 Tom Tromey <tromey@adacore.com>
5105 * configure: Rebuild.
5106 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5107 in AC_CONFIG_FILES invocation.
5108 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5111 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5113 * server.c: Include xml-builtin.h.
5114 (get_xml_features): Don't declare xml_builtins here.
5116 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5118 * Makefile.in: Remove references to vec-ipa.o.
5120 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5122 * Makefile.in: Remove references to vec.c.
5124 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5126 * server.c (server_waiting): Change to bool.
5127 (extended_protocol): Likewise.
5128 (response_needed): Likewise.
5129 (exit_requested): Likewise.
5130 (run_once): Likewise.
5131 (report_no_resumed): Likewise.
5132 (non_stop): Likewise.
5133 (disable_packet_vCont): Likewise.
5134 (disable_packet_Tthread): Likewise.
5135 (disable_packet_qC): Likewise.
5136 (disable_packet_qfThreadInfo): Likewise.
5137 (handle_general_set): Update.
5138 (handle_detach): Update.
5139 (handle_monitor_command): Update.
5140 (handle_query): Update.
5141 (captured_main): Update.
5142 (process_serial_event): Update.
5143 * server.h (server_waiting): Change to bool.
5144 (disable_packet_vCont): Likewise.
5145 (disable_packet_Tthread): Likewise.
5146 (disable_packet_qC): Likewise.
5147 (disable_packet_qfThreadInfo): Likewise.
5148 (run_once): Likewise.
5149 (non_stop): Likewise.
5150 * target.c (target_stop_and_wait): Update.
5152 2019-10-02 Tom Tromey <tromey@adacore.com>
5154 * Makefile.in (SFILES): Add common-inferior.c.
5155 (OBS): Add common-inferior.o.
5156 * server.c (startup_with_shell): Don't define.
5158 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5160 * linux-low.c (linux_low_read_btrace): Update for change to
5163 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5165 * debug.c (debug_threads): Remove comment in favor of the header.
5166 * debug.h (using_threads): Add declaration.
5167 (debug_threads): Add comment.
5168 * linux-aarch64-low.c: Include debug.h and remove declaration of
5170 * nto-low.c: Likewise.
5171 * remote-utils.c: Likewise.
5172 * thread-db.c: Likewise.
5174 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5176 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5177 and powerpc-cell64l-ipa.o.
5178 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5179 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5180 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5183 * spu-low.c: Remove file.
5185 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5186 (parse_spufs_run): Remove.
5187 (ppc_get_pc): Remove Cell/B.E. support.
5188 (ppc_set_pc): Likewise.
5189 (ppc_breakpoint_at): Likewise.
5190 (ppc_arch_setup): Likewise.
5191 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5192 tdesc_powerpc_cell32l.
5193 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5194 or init_registers_powerpc_cell32l.
5195 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5196 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5197 or init_registers_powerpc_cell32l.
5198 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5199 (init_registers_powerpc_cell32l): Remove prototype.
5200 (init_registers_powerpc_cell64l): Likewise.
5202 * target.h (struct target_ops): Remove qxfer_spu member.
5203 * server.c (handle_qxfer_spu): Remove.
5204 (qxfer_packets): Remove entry for "spu".
5205 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5206 * linux-low.c (SPUFS_MAGIC): Remove.
5207 (spu_enumerate_spu_ids): Remove.
5208 (linux_qxfer_spu): Remove.
5209 (linux_target_ops): Remove qxfer_spu member.
5210 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5211 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5212 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5214 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5216 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5217 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5218 * config.in: Regenerate.
5219 * configure: Regenerate.
5221 2019-08-15 Tom Tromey <tromey@adacore.com>
5223 * target.c (target_write_memory): Use gdb::byte_vector.
5225 2019-08-15 Tom Tromey <tromey@adacore.com>
5227 * tracepoint.c (write_inferior_data_pointer)
5228 (write_inferior_integer, write_inferior_int8)
5229 (write_inferior_uinteger, m_tracepoint_action_download)
5230 (r_tracepoint_action_download, x_tracepoint_action_download)
5231 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5232 (download_agent_expr, download_tracepoint_1)
5233 (download_trace_state_variables, upload_fast_traceframes): Update.
5234 * server.c (gdb_write_memory): Update.
5235 * remote-utils.c (relocate_instruction): Update.
5236 * proc-service.c (ps_pdwrite): Update.
5237 * mem-break.c (remove_memory_breakpoint)
5238 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5239 (uninsert_fast_tracepoint_jumps_at)
5240 (reinsert_fast_tracepoint_jumps_at): Update.
5241 * linux-x86-low.c (append_insns)
5242 (i386_install_fast_tracepoint_jump_pad)
5243 (amd64_write_goto_address, i386_write_goto_address): Update.
5244 * linux-s390-low.c (append_insns, s390_write_goto_address):
5246 * linux-ppc-low.c (ppc_relocate_instruction)
5247 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5248 (ppc_write_goto_address): Update.
5249 * linux-aarch64-low.c (append_insns): Update.
5250 * target.h (struct target_ops): Update.
5251 (write_inferior_memory): Don't declare.
5252 * target.c (target_write_memory): Rename from
5253 write_inferior_memory. Remove old target_write_memory.
5255 2019-08-15 Tom Tromey <tromey@adacore.com>
5257 * target.c (write_inferior_memory): Use std::vector.
5259 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5262 * configure.ac: Drop enable-libmcheck support.
5263 * configure, config.in: Rebuild.
5264 * acinclude.m4: Don't include it.
5266 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5268 * configure.srv: Remove Arm xml files.
5270 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5272 * configure.srv: Add new files. Remove xml generated files.
5273 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5275 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5276 * linux-aarch32-tdesc.c: New file.
5277 * linux-aarch32-tdesc.h: New file.
5278 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5279 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5280 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5281 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5282 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5283 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5284 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5285 (arm_read_description): Call arm_linux_read_description.
5286 (initialize_low_arch): Don't init registers.
5287 * linux-arm-tdesc.c: New file.
5288 * linux-arm-tdesc.h: New file.
5290 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5292 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5293 Move counter inside for.
5294 (arm_read_description): Check ptrace earlier.
5295 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5297 2019-07-09 Tom Tromey <tom@tromey.com>
5299 * configure: Rebuild.
5300 * configure.ac: Change common to gdbsupport.
5301 * acinclude.m4: Change common to gdbsupport.
5302 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5303 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5304 common to gdbsupport.
5305 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5306 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5307 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5308 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5309 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5310 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5311 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5312 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5313 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5314 common to gdbsupport.
5316 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5318 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5320 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5322 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5324 * configure.srv: Remove legacy xml.
5325 * linux-aarch64-low.c (initialize_low_arch): Remove
5326 initialize_low_tdesc call.
5327 * linux-aarch64-tdesc-selftest.c: Remove file.
5328 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5329 * linux-x86-low.c (initialize_low_arch): Remove
5330 initialize_low_tdesc call.
5331 * linux-x86-tdesc-selftest.c: Remove file.
5332 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5334 2019-06-20 Tom de Vries <tdevries@suse.de>
5336 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5337 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5339 2019-06-19 Tom de Vries <tdevries@suse.de>
5341 * debug.h (debug_write): Change return type to ssize_t.
5342 * debug.c (debug_write): Same.
5344 2019-06-14 Tom Tromey <tom@tromey.com>
5346 * configure.ac: Use new path to gnulib.
5347 * configure: Rebuild.
5348 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5351 2019-06-11 Tom Tromey <tom@tromey.com>
5353 * Makefile.in (SFILES): Add alloc.c.
5355 (IPA_OBJS): Add alloc-ipa.o.
5356 (alloc-ipa.o): New target.
5357 (%.o: ../%.c): New pattern rule.
5359 2019-06-10 Tom Tromey <tromey@adacore.com>
5361 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5362 end warning with a newline.
5363 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5365 * thread-db.c (attach_thread): Don't end warning with a newline.
5366 (thread_db_notice_clone): Likewise.
5367 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5369 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5370 end warning with a newline.
5372 2019-06-04 Pedro Alves <palves@redhat.com>
5374 * server.c (captured_main): Use make_unique_xstrdup.
5376 2019-06-02 Tom Tromey <tom@tromey.com>
5378 * gdbreplay.c (fromhex): Remove.
5379 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5381 2019-05-29 Tom Tromey <tromey@adacore.com>
5383 * configure: Rebuild.
5385 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5387 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5388 sign extension code on 32-bit builds.
5390 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5393 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5395 2019-04-19 Tom Tromey <tom@tromey.com>
5397 * server.c (struct vstop_notif): Derive from notif_event.
5399 (queue_stop_reply): Update.
5400 (remove_all_on_match_ptid): Change type. Rewrite.
5401 (discard_queued_stop_replies): Rewrite.
5402 (in_queued_stop_replies_ptid): Change type.
5403 (in_queued_stop_replies): Rewrite.
5404 (notif_stop): Update.
5405 (queue_stop_reply_callback): Update.
5406 (captured_main): Don't call initialize_notif.
5407 (push_stop_notification): Update.
5408 * notif.c (notif_write_event, handle_notif_ack)
5409 (notif_event_enque, notif_push): Update.
5410 (notif_event_xfree, initialize_notif): Remove.
5411 * notif.h (struct notif_event): Include <list>, not
5413 (struct notif_server) <queue>: Now a std::list.
5414 (notif_event_p): Remove typedef.
5415 (initialize_notif): Don't declare.
5416 (struct notif_event): Add virtual destructor.
5418 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5420 * ax.c (ax_vdebug): Call debug_printf.
5421 * debug.c (debug_write): New function.
5422 * debug.h (debug_write): New declaration.
5423 * linux-low.c (sigchld_handler): Call debug_write.
5425 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5427 * debug.c (debug_set_output): New function.
5428 (debug_vprintf): Send output to debug_file.
5429 (debug_flush): Likewise.
5430 * debug.h (debug_set_output): New declaration.
5431 * server.c (handle_monitor_command): Add debug-file option.
5432 (captured_main): Likewise.
5434 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5436 * debug.c (remote_debug): Add definition.
5437 * debug.h (remote_debug): Add declaration.
5438 * hostio.c (remote_debug): Remove declaration.
5439 * remote-utils.c (struct ui_file): Likewise.
5440 (remote_debug): Likewise.
5441 * remote-utils.h (remote_debug): Likewise,
5442 * server.c (remote_debug): Remove definition.
5444 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5446 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5447 when using a 64-bit gdbserver.
5449 2019-04-09 Tom Tromey <tromey@adacore.com>
5451 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5453 2019-04-08 Tom Tromey <tom@tromey.com>
5455 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5457 (linux_resume_one_lwp): Likewise.
5459 2019-04-08 Tom Tromey <tom@tromey.com>
5461 * gdbreplay.c: Update.
5462 * linux-low.c: Update.
5465 2019-04-08 Tom Tromey <tom@tromey.com>
5467 * server.c: Use C++ exception handling.
5468 * linux-low.c: Use C++ exception handling.
5469 * gdbreplay.c: Use C++ exception handling.
5471 2019-04-08 Tom Tromey <tom@tromey.com>
5473 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5474 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5475 (captured_main, main): Update.
5476 * gdbreplay.c (main): Update.
5478 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5480 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5481 value in argument pointer, return 1 if the entry is found and 0
5482 otherwise. Move comment.
5483 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5484 * linux-low.h (linux_get_auxv): Declare.
5485 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5487 2019-04-05 Tom Tromey <tromey@adacore.com>
5489 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5492 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5494 * linux-low.c (AT_HWCAP2): Add define if not already included.
5496 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5498 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5499 (aarch64_arch_setup): Call linux_get_hwcap.
5500 * linux-arm-low.c (arm_get_hwcap): Remove function.
5501 (arm_read_description): Call linux_get_hwcap.
5502 * linux-low.c (linux_get_auxv): New function.
5503 (linux_get_hwcap): Likewise.
5504 (linux_get_hwcap2): Likewise.
5505 * linux-low.h (linux_get_hwcap): New declaration.
5506 (linux_get_hwcap2): Likewise.
5507 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5508 (ppc_arch_setup): Call linux_get_hwcap.
5509 * linux-s390-low.c (s390_get_hwcap): Remove function.
5510 (s390_arch_setup): Call linux_get_hwcap.
5512 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5513 Jiong Wang <jiong.wang@arm.com>
5515 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5516 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5518 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5520 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5521 Jiong Wang <jiong.wang@arm.com>
5523 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5524 (aarch64_get_hwcap): New function.
5525 (aarch64_arch_setup): Read APIA hwcap.
5527 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5528 Jiong Wang <jiong.wang@arm.com>
5530 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5531 (initialize_low_tracepoint): Likewise.
5532 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5533 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5534 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5535 (aarch64_linux_read_description): Likewise.
5536 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5538 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5540 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5541 i386_create_target_description for 'segments' parameter.
5542 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5543 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5544 * win32-i386-low.c (i386_arch_setup): Likewise.
5546 2019-03-12 Tom Tromey <tromey@adacore.com>
5548 * linux-low.c (iterate_over_lwps): Update.
5550 2019-03-06 Tom Tromey <tom@tromey.com>
5552 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5553 (captured_main): Use SCOPE_EXIT.
5555 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5557 * configure.srv: Use '$enable_unittest' instead of '$development'
5558 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5561 2019-02-27 Tom Tromey <tromey@adacore.com>
5563 * gdbreplay.c (logchar): Handle \r\n.
5565 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5567 * linux-low.c (linux_attach): Add process before lwp.
5568 * server.c (attach_inferior): Check if already attached.
5570 2019-02-07 Tom Tromey <tom@tromey.com>
5572 * x86-tdesc.h: Rename include guard.
5573 * x86-low.h: Add include guard.
5574 * wincecompat.h: Rename include guard.
5575 * win32-low.h: Add include guard.
5576 * utils.h: Rename include guard.
5577 * tracepoint.h: Rename include guard.
5578 * tdesc.h: Rename include guard.
5579 * target.h: Rename include guard.
5580 * server.h: Rename include guard.
5581 * remote-utils.h: Rename include guard.
5582 * regcache.h: Rename include guard.
5583 * nto-low.h: Rename include guard.
5584 * notif.h: Add include guard.
5585 * mem-break.h: Rename include guard.
5586 * lynx-low.h: Add include guard.
5587 * linux-x86-tdesc.h: Add include guard.
5588 * linux-s390-tdesc.h: Add include guard.
5589 * linux-ppc-tdesc-init.h: Add include guard.
5590 * linux-low.h: Add include guard.
5591 * linux-aarch64-tdesc.h: Add include guard.
5592 * linux-aarch32-low.h: Add include guard.
5593 * inferiors.h: Rename include guard.
5594 * i387-fp.h: Rename include guard.
5595 * hostio.h: Rename include guard.
5596 * gdbthread.h: Rename include guard.
5597 * gdb_proc_service.h: Rename include guard.
5598 * event-loop.h: Rename include guard.
5599 * dll.h: Rename include guard.
5600 * debug.h: Rename include guard.
5601 * ax.h: Rename include guard.
5603 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5606 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5607 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5609 2019-01-25 Tom Tromey <tom@tromey.com>
5611 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5613 2019-01-25 Tom Tromey <tom@tromey.com>
5615 * win32-low.c: Fix common/ includes.
5616 * win32-i386-low.c: Fix common/ includes.
5617 * tracepoint.c: Fix common/ includes.
5618 * thread-db.c: Fix common/ includes.
5619 * target.h: Fix common/ includes.
5620 * symbol.c: Fix common/ includes.
5621 * spu-low.c: Fix common/ includes.
5622 * server.h: Fix common/ includes.
5623 * server.c: Fix common/ includes.
5624 * remote-utils.c: Fix common/ includes.
5625 * regcache.h: Fix common/ includes.
5626 * regcache.c: Fix common/ includes.
5627 * nto-x86-low.c: Fix common/ includes.
5628 * notif.h: Fix common/ includes.
5629 * mem-break.h: Fix common/ includes.
5630 * lynx-low.c: Fix common/ includes.
5631 * lynx-i386-low.c: Fix common/ includes.
5632 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5633 * linux-x86-low.c: Fix common/ includes.
5634 * linux-low.c: Fix common/ includes.
5635 * inferiors.h: Fix common/ includes.
5636 * i387-fp.c: Fix common/ includes.
5637 * hostio.c: Fix common/ includes.
5638 * hostio-errno.c: Fix common/ includes.
5639 * gdbthread.h: Fix common/ includes.
5640 * gdbreplay.c: Fix common/ includes.
5641 * fork-child.c: Fix common/ includes.
5642 * event-loop.c: Fix common/ includes.
5644 (enum gdb_agent_op): Fix common/ includes.
5646 2019-01-21 Tom Tromey <tom@tromey.com>
5648 * tracepoint.c: Fix includes.
5649 * remote-utils.c: Fix includes.
5650 * linux-x86-low.c: Fix includes.
5652 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5654 * gdbreplay.c (gdbreplay_version): Update copyright year in
5656 * server.c (gdbserver_version): Likewise.
5658 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5660 * linux-low.c (add_lwp): Switch ordering.
5662 2018-11-29 Tom Tromey <tom@tromey.com>
5664 * win32-low.c (win32_join): Take pid, not process.
5665 * target.h (struct target_ops) <join>: Change argument type.
5666 (join_inferior): Change argument name.
5667 * spu-low.c (spu_join): Take pid, not process.
5668 * server.c (handle_detach): Preserve pid before destroying
5670 * lynx-low.c (lynx_join): Take pid, not process.
5671 * linux-low.c (linux_join): Take pid, not process.
5673 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5675 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5676 (aarch64_cannot_fetch_register): Likewise.
5677 (struct linux_target_ops): Update references.
5679 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5681 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5683 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5685 * configure.srv (ipa_ppc_linux_regobj): Add
5686 powerpc-isa207-htm-vsx32l-ipa.o and
5687 powerpc-isa207-htm-vsx64l-ipa.o.
5688 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5689 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5690 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5691 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5692 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5693 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5694 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5695 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5696 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5697 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5698 (init_registers_powerpc_isa207_htm_vsx32l)
5699 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5700 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5701 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5702 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5703 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5704 (ppc_store_tm_ctarregset): New functions.
5705 (ppc_regsets): Add entries for HTM regsets.
5706 (ppc_arch_setup): Set htm in features struct when needed. Set
5707 sizes for the HTM regsets.
5708 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5709 (initialize_low_arch): Call
5710 init_registers_powerpc_isa207_htm_vsx32l and
5711 init_registers_powerpc_isa207_htm_vsx64l.
5712 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5713 PPC_TDESC_ISA207_HTM_VSX.
5714 (initialize_low_tracepoint): Call
5715 init_registers_powerpc_isa207_htm_vsx32l and
5716 init_registers_powerpc_isa207_htm_vsx64l.
5718 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5720 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5721 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5722 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5723 (ppc_store_pmuregset): New functions.
5724 (ppc_regsets): Add entries for ebb and pmu regsets.
5725 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5726 pmu regsets are available. Set sizes for these regsets.
5728 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5730 * configure.srv (ipa_ppc_linux_regobj): Add
5731 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5732 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5733 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5734 rs6000/powerpc-isa207-vsx32l.xml, and
5735 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5736 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5737 <PPC_TDESC_ISA207_VSX>: New enum value.
5738 (init_registers_powerpc_isa207_vsx32l): Declare.
5739 (init_registers_powerpc_isa207_vsx64l): Declare.
5740 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5741 (ppc_store_tarregset): New function.
5742 (ppc_regsets): Add entry for the TAR regset.
5743 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5744 size for the TAR regsets.
5745 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5746 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5747 and init_registers_powerpc_isa207_vsx64l.
5748 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5749 (initialize_low_tracepoint): Call
5750 init_registers_powerpc_isa207_vsx32l and
5751 init_registers_powerpc_isa207_vsx64l.
5753 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5754 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5756 * configure.srv (ipa_ppc_linux_regobj): Add
5757 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5758 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5759 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5760 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5761 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5762 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5763 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5764 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5765 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5766 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5767 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5768 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5769 (ppc_hwcap): Add comment.
5770 (ppc_hwcap2): New global.
5771 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5772 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5773 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5774 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5775 when needed. Set sizes for the the DSCR and PPR regsets.
5776 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5777 (initialize_low_arch): Call
5778 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5779 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5780 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5781 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5782 (initialize_low_tracepoint): Call
5783 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5784 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5786 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5788 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5790 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5791 Simon Marchi <simark@simark.ca>
5793 * acinclude.m4: Include "../selftest.m4".
5794 * configure: Regenerate.
5795 * configure.ac: Use "GDB_AC_SELFTEST".
5796 * configure.srv: Use "$enable_unittests" instead of
5797 "$development" when checking whether unit tests have been
5799 * server.c (captured_main): Update message informing that
5800 selftests have been disabled.
5802 2018-10-04 Tom Tromey <tom@tromey.com>
5804 * configure: Rebuild.
5806 2018-10-04 Tom Tromey <tom@tromey.com>
5808 * server.c (handle_status): Rename inner "thread".
5809 (process_serial_event): Declare "res" in 'm' case.
5810 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5811 (iterate_over_lwps): Rename inner "thread".
5812 (linux_qxfer_libraries_svr4): Rename inner "len".
5813 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5815 2018-10-01 Gary Benson <gbenson@redhat.com>
5817 * gdb_proc_service.h: Moved common code to
5818 common/gdb_proc_service.h.
5820 2018-10-01 Gary Benson <gbenson@redhat.com>
5822 * gdb_proc_service.h: Synchronize comments and whitespace with
5823 GDB's version of this file.
5825 2018-09-25 Tom Tromey <tom@tromey.com>
5827 * configure: Rebuild.
5828 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5830 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5832 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5833 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5834 ($(IPA_LIB)): Sort IPA_OBJS.
5836 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5838 * Makefile.in: Remove references to $(ADD_DEPS).
5840 2018-09-16 Tom Tromey <tom@tromey.com>
5842 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5844 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5847 2018-09-05 Tom Tromey <tom@tromey.com>
5849 * configure: Rebuild.
5851 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5854 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5856 2018-08-27 Tom Tromey <tom@tromey.com>
5859 * configure: Rebuild.
5861 2018-08-27 Tom Tromey <tom@tromey.com>
5863 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5864 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5865 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5866 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5867 (s390x_emit_stack_adjust): Add casts to unsigned char.
5869 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5873 * server.h (struct client_state) <disable_randomization>:
5876 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5878 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5880 (mips_supply_ptrace_register): Likewise.
5882 2018-07-22 Tom Tromey <tom@tromey.com>
5884 * configure: Rebuild.
5886 2018-07-22 Tom Tromey <tom@tromey.com>
5888 * win32-low.c (win32_create_inferior): Remove unused variables.
5889 * gdbreplay.c (remote_open): Remove unused variable.
5890 * remote-utils.c (remote_prepare): Remove unused variable.
5891 * x86-tdesc.h (X86_TDESC_H): Define.
5892 (amd64_expedite_regs): Define conditionally.
5893 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5894 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5895 * remote-utils.c (readchar): Remove unused variable.
5897 2018-07-13 Pedro Alves <palves@redhat.com>
5899 * linux-low.c (linux_kill): Change parameter to process_info
5900 pointer instead of pid. Adjust.
5901 * lynx-low.c (lynx_kill): Likewise.
5902 * nto-low.c (nto_kill): Likewise.
5903 * spu-low.c (spu_kill): Likewise.
5904 * win32-low.c (win32_kill): Likewise.
5905 * server.c (handle_v_kill, kill_inferior_callback)
5906 (detach_or_kill_for_exit): Adjust.
5907 * target.c (kill_inferior): Change parameter to process_info
5908 pointer instead of pid. Adjust.
5909 * target.h (struct target_ops) <kill>: Change parameter to
5910 process_info pointer instead of pid. Adjust all implementations
5912 (kill_inferior): Likewise.
5914 2018-07-13 Pedro Alves <palves@redhat.com>
5916 * linux-low.c (linux_detach, linux_join): Change parameter to
5917 process_info pointer instead of pid. Adjust.
5918 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5919 * nto-low.c (nto_detach): Likewise.
5920 * spu-low.c (spu_detach, spu_join): Likewise.
5921 * win32-low.c (win32_detach, win32_join): Likewise.
5922 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5923 * target.h (struct target_ops) <detach, join>: Change parameter to
5924 process_info pointer instead of pid. Adjust all implementations
5926 (detach_inferior, join_inferior): Rename 'pid' parameter to
5929 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5930 Jan Kratochvil <jan.kratochvil@redhat.com>
5931 Paul Fertser <fercerpav@gmail.com>
5932 Tsutomu Seki <sekiriki@gmail.com>
5934 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5935 (OBS): Add 'common/netstuff.o'.
5936 (GDBREPLAY_OBS): Likewise.
5937 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5938 (remote_open): Implement support for IPv6
5940 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5942 (handle_accept_event): Accept connections from IPv6 sources.
5943 (remote_prepare): Handle IPv6-style hostnames; implement
5944 support for IPv6 connections.
5945 (remote_open): Implement support for printing connections from
5948 2018-07-11 Pedro Alves <palves@redhat.com>
5951 * mem-break.c (any_persistent_commands): Add process_info
5952 parameter and use it instead of relying on the current process.
5953 Change return type to bool.
5954 * mem-break.h (any_persistent_commands): Add process_info
5955 parameter and change return type to bool.
5956 * server.c (handle_detach): Remove require_running_or_return call.
5957 Look up the process_info for the process we're about to detach.
5958 If not found, return back error to GDB. Adjust
5959 any_persistent_commands call to pass down a process pointer.
5961 2018-07-11 Pedro Alves <palves@redhat.com>
5963 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5964 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5965 instead of collect_register_by_name.
5966 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5967 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5969 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5970 Pedro Alves <palves@redhat.com>
5972 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5974 2018-07-03 Tom Tromey <tom@tromey.com>
5976 * linux-low.c: Update.
5977 * lynx-low.c: Update.
5978 * mem-break.c: Update.
5979 * nto-low.c: Update.
5980 * remote-utils.c: Update.
5982 * spu-low.c: Update.
5984 * win32-low.c: Update.
5986 2018-07-03 Tom Tromey <tom@tromey.com>
5990 2018-07-03 Tom Tromey <tom@tromey.com>
5992 * linux-low.c: Update.
5994 2018-07-03 Tom Tromey <tom@tromey.com>
5998 2018-07-03 Tom Tromey <tom@tromey.com>
6000 * linux-low.c: Update.
6001 * linux-mips-low.c: Update.
6002 * lynx-low.c: Update.
6003 * nto-low.c: Update.
6004 * remote-utils.c: Update.
6006 * spu-low.c: Update.
6008 * thread-db.c: Update.
6010 2018-07-03 Tom Tromey <tom@tromey.com>
6012 * linux-low.c: Update.
6013 * linux-mips-low.c: Update.
6014 * lynx-low.c: Update.
6015 * mem-break.c: Update.
6016 * nto-low.c: Update.
6017 * remote-utils.c: Update.
6019 * spu-low.c: Update.
6021 * tracepoint.c: Update.
6023 2018-07-03 Tom Tromey <tom@tromey.com>
6025 * linux-low.c: Update.
6026 * linux-ppc-low.c: Update.
6027 * linux-x86-low.c: Update.
6028 * proc-service.c: Update.
6030 * spu-low.c: Update.
6031 * thread-db.c: Update.
6032 * win32-low.c: Update.
6034 2018-07-03 Tom Tromey <tom@tromey.com>
6036 * linux-low.c: Update.
6037 * lynx-low.c: Update.
6038 * nto-low.c: Update.
6039 * remote-utils.c: Update.
6040 * spu-low.c: Update.
6041 * thread-db.c: Update.
6042 * win32-low.c: Update.
6044 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6046 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6047 parameter in call to 'amd64_create_target_description'.
6049 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6051 * x86-tdesc.h: Remove executable permission flag.
6053 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6055 * configure.ac: Remove AC_PREREQ, add missing quoting.
6056 * configure: Re-generate.
6057 * config.in: Re-generate.
6058 * aclocal.m4: Re-generate.
6060 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6062 * tracepoint.h (current_traceframe): Remove declaration.
6064 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6066 * linux-aarch64-low.c (is_sve_tdesc): New function.
6067 (aarch64_sve_regs_copy_to_regcache): Likewise.
6068 (aarch64_sve_regs_copy_from_regcache): Likewise.
6069 (aarch64_regs_info): Add SVE checks.
6070 (initialize_low_arch): Initialize SVE.
6072 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6074 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6076 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6078 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6079 (initialize_low_tracepoint): Likewise
6080 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6081 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6083 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6085 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6087 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6089 * server.h (PBUFSIZ): Increase size
6091 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6093 * regcache.c (regcache::raw_compare): New function.
6094 * regcache.h (regcache::raw_compare): New declaration.
6096 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6098 * regcache.c (new_register_cache): Use new.
6099 (free_register_cache): Use delete.
6100 (register_data): Use const.
6101 (supply_register): Move body inside regcache.
6102 (regcache::raw_supply): New override function.
6103 (collect_register): Move body inside regcache.
6104 (regcache::raw_collect): New override function.
6105 (regcache::get_register_status): New override function.
6106 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6108 2018-06-09 Tom Tromey <tom@tromey.com>
6110 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6112 (event_queue): Use std::queue.
6113 (gdb_event_xfree): Remove.
6114 (initialize_event_loop, process_event, wait_for_event): Update.
6116 2018-06-08 Stan Cox <scox@redhat.com>
6118 * win32-low.c (win32_create_inferior): last_ptid and last_status
6119 moved to client_state.
6121 2018-06-08 Pedro Alves <palves@redhat.com>
6123 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6124 common/common-exceptions.o, common/common-utils.o,
6125 common/errors.o, common/print-utils.o and utils.o.
6126 * gdbreplay.c: Include "common-defs.h" instead of the two
6127 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6128 string.h or alloca.h.
6129 (perror_with_name): Delete.
6130 (remote_open): Use xstrdup instead of strdup.
6131 (main): Rename to ...
6132 (captured_main): ... this.
6135 2018-06-08 Tom Tromey <tom@tromey.com>
6137 * linux-low.c (linux_low_read_btrace): Update.
6139 2018-06-04 Stan Cox <scox@redhat.com>
6141 * server.h (struct client_state): New.
6142 * server.c (cont_thread, general_thread, multi_process)
6143 (report_fork_events, report_vfork_events, report_exec_events)
6144 (report_thread_events, swbreak_feature, hwbreak_feature)
6145 (vCont_supported, disable_randomization, pass_signals)
6146 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6147 Moved to client_state.
6148 * remote-utils.c (remote_debug, noack_mode)
6149 (transport_is_reliable): Moved to client_state.
6150 * tracepoint.c (current_traceframe): Moved to client_state.
6153 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6154 linux-low.c, remote-utils.h, target.c: Use client_state.
6156 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6158 * configure.srv: Add new c/h file.
6160 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6162 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6165 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6167 * gdb.arch/mips-fpregset-core.exp: New test.
6168 * gdb.arch/mips-fpregset-core.c: New test source.
6170 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6173 * hostio.c (require_int): Do not report overflow for integers
6174 between 0xfffffff and 0x7fffffff.
6176 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6178 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6179 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6180 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6182 (the_low_target): Wire them.
6184 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6186 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6187 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6188 mode. Call collect_register_by_name with vscr using
6189 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6190 (ppc_store_vrregset): Add and set vscr_offset variable as in
6191 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6194 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6196 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6197 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6198 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6200 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6202 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6203 (ppc_store_vsxregset): Likewise.
6204 (ppc_fill_vrregset): Likewise.
6205 (ppc_store_vrregset): Likewise.
6206 (ppc_fill_evrregset): Likewise.
6207 (ppc_store_evrregset): Likewise.
6208 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6209 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6212 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6214 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6215 wordsize of the inferior. Call ppc_linux_target_wordsize.
6217 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6219 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6220 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6221 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6222 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6223 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6224 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6225 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6226 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6227 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6228 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6229 (tdesc_powerpc_e500l): Remove.
6230 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6231 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6232 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6233 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6235 (ppc_arch_setup): Remove target description matching code. Fill a
6236 ppc_linux_features struct and call ppc_linux_match_description
6239 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6241 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6242 width of the requested register exceeds the width of the
6244 (mips_cannot_store_register): Likewise.
6246 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6248 * linux-mips-low.c (mips_fetch_register): New function. Update
6250 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6251 (the_low_target): Wire `mips_fetch_register'.
6253 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6255 * lynx-i386-low.c (LYNXOS_178): New macro.
6256 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6257 the layout on LynxOS-178.
6258 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6259 handle floating point registers that are not supported by
6262 2018-05-10 Tom Tromey <tom@tromey.com>
6264 * configure: Rebuild.
6266 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6269 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6270 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6271 Use it to set the expedite_regs field in the given tdesc.
6272 * x86-tdesc.h: New file.
6273 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6274 Adjust following the addition of the new expedite_regs parameter
6275 to init_target_desc.
6276 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6277 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6278 (i386_linux_read_description, amd64_linux_read_description):
6279 Adjust following the addition of the new expedite_regs parameter
6280 to init_target_desc.
6281 * lynx-i386-low.c: #include "x86-tdesc.h".
6282 (lynx_i386_arch_setup): Adjust following the addition of the new
6283 expedite_regs parameter to init_target_desc.
6284 * nto-x86-low.c: #include "x86-tdesc.h".
6285 (nto_x86_arch_setup): Adjust following the addition of the new
6286 expedite_regs parameter to init_target_desc.
6287 * win32-i386-low.c: #include "x86-tdesc.h".
6288 (i386_arch_setup): Adjust following the addition of the new
6289 expedite_regs parameter to init_target_desc.
6291 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6294 * win32-low.c (win32_create_inferior): Add call to my_wait
6295 setting last_status global.
6297 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6300 * win32-low.c (create_process): Only call gdb_tilde_expand if
6301 inferior_cwd is not NULL.
6303 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6305 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6306 registers to the cache if their values have changed.
6307 (i387_xsave_to_cache): Provide default values for x87 control
6308 registers when these features are available, but disabled.
6309 * regcache.c (supply_register_by_name_zeroed): New function.
6310 * regcache.h (supply_register_by_name_zeroed): Declare new
6313 2018-05-07 Tom Tromey <tom@tromey.com>
6315 * configure: Rebuild.
6317 2018-05-04 Tom Tromey <tom@tromey.com>
6319 * configure: Rebuild.
6321 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6322 Pedro Alves <palves@redhat.com>
6324 * linux-aarch64-low.c (aarch64_stopped_data_address):
6327 2018-04-27 Tom Tromey <tom@tromey.com>
6329 * configure: Rebuild.
6331 2018-04-23 Tom Tromey <tom@tromey.com>
6333 * configure: Rebuild.
6335 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6337 * Makefile.in (depcomp): Add "..".
6338 (all_deps_files): New and use it.
6340 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6342 * configure.srv (aarch64*-*-linux*): Don't include xml.
6343 (i[34567]86-*-cygwin*): Likewise.
6344 (i[34567]86-*-linux*): Likewise.
6345 (i[34567]86-*-lynxos*): Likewise.
6346 (i[34567]86-*-mingw32ce*): Likewise.
6347 (i[34567]86-*-mingw*): Likewise.
6348 (i[34567]86-*-nto*): Likewise.
6349 (tic6x-*-uclinux): Likewise.
6350 (x86_64-*-linux*): Likewise.
6351 (x86_64-*-mingw*): Likewise.
6352 (x86_64-*-cygwin*): Likewise.
6354 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6356 * tdesc.c: Remove xml parameter.
6358 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6360 * server.c (get_features_xml): Remove cast.
6361 * tdesc.c (void target_desc::accept): Fill in function.
6362 (tdesc_get_features_xml): Remove old xml creation.
6363 (print_xml_feature::visit_pre): Add xml vistor.
6364 * tdesc.h (struct target_desc): Make xmltarget mutable.
6365 (tdesc_get_features_xml): Remove declaration.
6367 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6369 * tdesc.c (tdesc_architecture_name): Add new function.
6370 (tdesc_osabi_name): Likewise.
6371 (tdesc_get_features_xml): Use new functions.
6373 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6375 * tdesc.c (tdesc_create_flags): Remove.
6376 (tdesc_add_flag): Likewise.
6377 (tdesc_named_type): Likewise.
6378 (tdesc_create_union): Likewise.
6379 (tdesc_create_struct): Likewise.
6380 (tdesc_create_vector): Likewise.
6381 (tdesc_add_bitfield): Likewise.
6382 (tdesc_add_field): Likewise.
6383 (tdesc_set_struct_size): Likewise.
6385 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6387 * tdesc.c (~target_desc): Remove implictly deleted items.
6388 (init_target_desc): Iterate all features.
6389 (tdesc_get_features_xml): Use vector.
6390 (tdesc_create_feature): Create feature.
6391 * tdesc.h (tdesc_feature) Remove
6392 (target_desc): Add features.
6394 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6396 * Makefile.in: Add common/tdesc.c
6397 * tdesc.c (init_target_desc): init all reg_defs from register
6399 (tdesc_create_reg): Create tdesc_reg.
6400 * tdesc.h (tdesc_feature): Add register vector.
6402 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6404 * tdesc.h (struct target_desc) <features>: Change type to
6405 std::vector<std::string>.
6406 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6408 (tdesc_get_features_xml): Likewise.
6409 (tdesc_create_feature): Likewise.
6411 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6413 * regcache.c (find_register_by_number): Return a ref.
6414 (find_regno): Use references.
6415 (register_size): Likewise.
6416 (register_data): Likewise.
6417 * tdesc.c (target_desc::~target_desc): Remove free calls.
6418 (target_desc::operator==): Use std::vector compare.
6419 (init_target_desc): Use reference.
6420 (tdesc_create_reg): Use reg constructors.
6421 * tdesc.h (struct target_desc): Replace pointer with object.
6423 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6425 * regcache.c (find_register_by_number): Make static.
6426 (find_regno): Use find_register_by_number
6427 * regcache.h (struct reg): Remove declaration.
6429 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6431 * tdesc.c (target_desc::~target_desc): Move to here.
6432 (target_desc::operator==): Likewise.
6433 * tdesc.h (target_desc::~target_desc): Move from here.
6434 (target_desc::operator==): Likewise.
6436 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6438 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6440 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6442 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6444 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6445 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6446 and init_registers_s390_gs_linux64.
6448 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6450 * linux-s390-low.c (s390_fill_gs): Remove function.
6451 (s390_fill_gsbc): Remove function.
6452 (s390_regsets): Set fill functions for the guarded storage regsets
6455 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6457 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6458 the word size. Add comment.
6459 (s390_get_wordsize): New function.
6460 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6461 pswm with it. Instead, use s390_get_wordsize to determine the
6462 word size first and derive the correct tdesc from that directly.
6464 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6466 * Makefile.in: Include silent-rules.mk.
6467 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6468 (COMPILE): Add ECHO_CXX.
6469 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6470 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6471 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6472 (version-generated.c): Add ECHO_GEN.
6473 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6474 (IPAGENT_COMPILE): Add ECHO_CXX.
6475 (%-generated.c): Add ECHO_REGDAT.
6477 2018-03-14 Tom Tromey <tom@tromey.com>
6480 * ax.c (ax_printf): Special case for NULL.
6482 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6484 * linux-low.c (linux_qxfer_libraries_svr4): Use
6485 xml_escape_text_append.
6487 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6489 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6491 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6493 * server.c (handle_general_set): Remove unnecessary xstrdup.
6495 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6497 * server.c (parse_debug_format_options): Adjust to
6498 delim_string_to_char_ptr_vec changes.
6499 * thread-db.c (thread_db_load_search): Adjust to
6500 dirnames_to_char_ptr_vec changes.
6502 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6504 * target.h (target_enable_btrace, target_disable_btrace)
6505 (target_read_btrace, target_read_btrace_conf): Turn macro into
6506 inline function. Throw error if target method is not defined.
6507 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6508 check for btrace target method. Be prepared to handle exceptions
6509 from btrace target methods.
6511 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6513 * server.c (captured_main): Change order of error message printed
6514 when the current working directory cannot be found.
6516 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6518 * server.c: Include "filenames.h" and "pathstuff.h".
6519 (program_name): Delete variable.
6520 (program_path): New anonymous class.
6521 (get_exec_wrapper): Use "program_path" instead of
6523 (handle_v_run): Likewise.
6524 (captured_main): Likewise.
6525 (process_serial_event): Likewise.
6527 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6529 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6530 (OBJS): Add "pathstuff.o".
6531 * server.c (current_directory): New global variable.
6532 (captured_main): Initialize "current_directory".
6534 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6536 * tdesc.c: Use common/tdesc.h.
6537 * tdesc.h: Likewise.
6539 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6540 Simon Marchi <simon.marchi@ericsson.com>
6542 * Makefile.in: Switch order of make rules.
6544 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6546 * Makefile.in: Add common directory in build.
6547 * configure.ac: Add common reference.
6548 * configure: Regenerate.
6550 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6552 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6553 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6554 * spu-low.c (spu_target_ops): Likewise.
6555 * win32-low.c (win32_target_ops): Likewise.
6556 * server.c (supported_btrace_packets): Report packets unconditionally.
6557 * target.h (target_ops) <supports_btrace>: Remove.
6558 (target_supports_btrace): Remove.
6560 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6562 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6563 (handle_btrace_disable): Change return type to void. Use exceptions
6565 (handle_btrace_general_set): Catch exception and copy message to
6568 2018-02-08 Tom Tromey <tom@tromey.com>
6570 * linux-low.c (install_software_single_step_breakpoints): Use
6571 make_scoped_restore.
6572 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6573 (do_restore_current_thread_cleanup): Remove.
6574 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6577 2018-02-08 Tom Tromey <tom@tromey.com>
6579 * mem-break.c (set_raw_breakpoint_at): Use
6580 gdb::unique_xmalloc_ptr.
6582 2018-01-30 Pedro Alves <palves@redhat.com>
6585 * target.c (target_terminal::terminal_state): Rename to ...
6586 (target_terminal::m_terminal_state): ... this.
6588 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6590 * linux-low.c (handle_extended_wait): Surround call to
6591 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6593 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6595 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6596 linux_ptrace_attach_fail_reason_string now returning an
6598 (linux_attach): Likewise.
6599 * thread-db.c (attach_thread): Likewise.
6601 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6604 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6605 checking for fs_base/gs_base fields in struct user_regs_struct.
6606 * configure: Regenerate.
6608 2018-01-16 Yao Qi <yao.qi@linaro.org>
6611 * linux-low.c (fetch_register): Call supply_register instead of
6614 2018-01-08 Yao Qi <yao.qi@linaro.org>
6615 Simon Marchi <simon.marchi@ericsson.com>
6617 * Makefile.in (OBS): Remove selftest.o.
6618 * configure.ac: Set srv_selftest_objs if $development is true.
6619 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6620 * configure: Re-generated.
6621 * server.c (captured_main): Wrap variable selftest_filter with
6624 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6626 * server.c (parse_debug_format_options): Return std::string.
6627 (handle_monitor_command, captured_main): Adjust.
6629 2018-01-05 Pedro Alves <palves@redhat.com>
6632 * server.c (captured_main): Pass quiet=false to
6633 save_original_signals_state.
6635 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6637 * gdbreplay.c (gdbreplay_version): Update copyright year in
6639 * server.c (gdbserver_version): Likewise.
6641 2017-12-08 Tom Tromey <tom@tromey.com>
6643 * ax.c (ax_printf): Update.
6645 2017-12-07 Yao Qi <yao.qi@linaro.org>
6647 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6648 aarch64_linux_read_description.
6649 * linux-amd64-ipa.c (idx2mask): New array.
6650 (get_ipa_tdesc): Move idx2mask out.
6651 (initialize_low_tracepoint): Initialize target descriptions.
6652 * linux-i386-ipa.c (idx2mask): New array.
6653 (get_ipa_tdesc): Move idx2mask out.
6654 (initialize_low_tracepoint): Initialize target descriptions.
6656 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6658 * tdesc.c (struct tdesc_type): Change return type.
6659 (tdesc_add_flag): Change parameter type.
6660 (tdesc_add_bitfield): Likewise.
6661 (tdesc_add_field): Likewise.
6662 (tdesc_set_struct_size): Likewise.
6664 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6666 * regcache.c (registers_to_string): Remove unused variable.
6668 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6670 * inferiors.c (for_each_inferior_with_data): Remove.
6671 * inferiors.h (for_each_inferior_with_data): Remove.
6672 * server.c (handle_qxfer_threads_worker): Change parameter type.
6673 (handle_qxfer_threads_proper): Use for_each_thread.
6675 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6677 * inferiors.c (for_each_inferior): Remove.
6678 (clear_inferiors): Use for_each_thread.
6679 * inferiors.h (for_each_inferior): Remove.
6680 * linux-low.c (linux_wait_for_event_filtered): Use
6682 (linux_stabilize_threads): Likewise.
6683 * regcache.c (regcache_release): Likewise.
6684 * server.c (gdb_wants_all_threads_stopped): Likewise.
6685 (clear_pending_status_callback): Remove.
6686 (handle_status): Use for_each_thread.
6687 (captured_main): Likewise.
6688 * win32-low.c (child_init_thread_list): Likewise.
6689 (win32_clear_inferiors): Likewise.
6690 (fake_breakpoint_event): Likewise.
6692 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6694 * inferiors.h (find_inferior): Remove.
6695 * inferiors.c (find_inferior): Remove.
6697 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6699 * linux-low.c (resume_status_pending_p): Update comment.
6700 (need_step_over_p): Update comment.
6702 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6704 * linux-low.c (proceed_one_lwp): Return void, change parameter
6706 (unsuspend_and_proceed_one_lwp): Likewise.
6707 (proceed_all_lwps): Use for_each_thread.
6708 (unstop_all_lwps): Likewise.
6710 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6712 * linux-low.c (linux_resume_one_thread): Return void, take
6714 (linux_resume): Use for_each_thread.
6716 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6718 * linux-low.c (send_sigstop_callback): Return void, change
6719 parameter type. Rename to...
6720 (send_sigstop): ... this.
6721 (suspend_and_send_sigstop_callback): Return void, change parameter
6723 (suspend_and_send_sigstop): ... this.
6724 (stop_all_lwps): Use for_each_thread.
6726 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6728 * linux-low.c (lwp_running): Return bool, remove unused
6730 (linux_stabilize_threads): Use find_thread.
6732 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6734 * linux-low.c (select_singlestep_lwp_callback): Remove.
6735 (count_events_callback): Remove.
6736 (select_event_lwp_callback): Remove.
6737 (select_event_lwp): Use find_thread/for_each_thread.
6739 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6741 * linux-low.c (not_stopped_callback): Return bool, take filter
6743 (linux_wait_for_event_filtered): Use find_thread.
6744 (linux_wait_1): Likewise.
6746 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6748 * linux-low.c (same_lwp): Remove.
6749 (find_lwp_pid): Use find_thread.
6751 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6753 * linux-low.c (delete_lwp_callback): Remove.
6754 (linux_mourn): Use for_each_thread.
6756 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6758 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6759 args parameter, don't check for pid.
6760 (linux_detach): Use for_each_thread.
6762 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6764 * linux-low.c (struct counter): Remove.
6765 (second_thread_of_pid_p): Remove.
6766 (last_thread_of_process_p): Use find_thread.
6768 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6770 * inferiors.c (find_inferior_in_random): Remove.
6771 * inferiors.h (find_inferior_in_random): Remove.
6772 * linux-low.c (status_pending_p_callback): Return bool, accept
6773 parameter ptid directly.
6774 (linux_wait_for_event_filtered): Use find_thread_in_random.
6775 (linux_wait_1): Likewise.
6777 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6779 * inferiors.c (find_inferior_id): Remove.
6780 (find_thread_ptid): Move implemention from find_inferior_id to
6782 * inferiors.h (find_inferior_id): Remove.
6783 * server.c (handle_status): Use find_thread_ptid.
6784 (process_serial_event): Likewise.
6785 * thread-db.c (find_one_thread): Likewise.
6786 (thread_db_thread_handle): Likewise.
6787 * win32-low.c (thread_rec): Likewise.
6788 (child_delete_thread): Likewise.
6789 (win32_thread_alive): Likewise.
6790 (get_child_debug_event): Likewise.
6792 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6794 * linux-mips-low.c (update_watch_registers_callback): Return
6795 void, remove pid_p parameter, don't check for pid.
6796 (mips_insert_point, mips_remove_point): Use for_each_thread.
6798 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6800 * lynx.low (lynx_delete_thread_callback): Remove.
6801 (lynx_mourn): Use for_each_thread.
6803 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6805 * regcache.c (regcache_invalidate_one): Remove.
6806 (regcache_invalidate_pid): use for_each_thread.
6808 2017-11-26 Tom Tromey <tom@tromey.com>
6810 * linux-low.c (linux_create_inferior): Update.
6812 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6814 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6816 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6818 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6819 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6820 * linux-aarch64-tdesc-selftest.c: New file.
6821 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6823 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6825 * configure.srv: Add new file.
6826 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6827 * linux-aarch64-tdesc-selftest.c: New file.
6828 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6830 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6832 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6833 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6834 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6836 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6838 * configure.srv: Add new files.
6839 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6840 aarch64_linux_read_description.
6841 * linux-aarch64-low.c (aarch64_linux_read_description):
6842 Merge with aarch64_arch_setup.
6843 (aarch64_arch_setup): Call aarch64_linux_read_description.
6844 * linux-aarch64-tdesc.c: New file.
6845 * linux-aarch64-tdesc.h: New file.
6847 2017-11-24 Yao Qi <yao.qi@linaro.org>
6849 * configure.srv: Set $srv_regobj for tic6x-linux.
6850 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6851 (tic6x_read_description): Move some code to tic6x_arch_setup.
6852 (tic6x_tdesc_test): New function.
6853 (initialize_low_arch): Call selftests::register_test.
6855 2017-11-22 Yao Qi <yao.qi@linaro.org>
6857 * remote-utils.c (prepare_resume_reply): Use memcpy.
6859 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6861 * linux-low.c (kill_one_lwp_callback): Return void, take
6862 argument directly, don't filter on pid.
6863 (linux_kill): Use for_each_thread.
6865 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6867 * linux-low.c (need_step_over_p): Return bool, remove dummy
6869 (linux_resume, proceed_all_lwps): Use find_thread.
6871 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6873 * linux-low.c (resume_status_pending_p): Return bool, remove
6875 (linux_resume): Use find_thread.
6877 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6879 * linux-low.c (struct thread_resume_array): Remove.
6880 (linux_set_resume_request): Return void, take arguments
6882 (linux_resume): Use for_each_thread.
6884 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6886 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6887 return bool, remove data argument.
6888 (linux_stabilize_threads): Use find_thread.
6890 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6892 * linux-low.c (unsuspend_one_lwp): Remove.
6893 (unsuspend_all_lwps): Use for_each_thread, inline code from
6896 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6898 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6899 * linux-low.c (struct iterate_over_lwps_args): Remove.
6900 (iterate_over_lwps_filter): Remove.
6901 (iterate_over_lwps): Use find_thread.
6903 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6905 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6906 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6907 code from reset_lwp_ptrace_options_callback.
6909 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6911 * linux-arm-low.c (struct update_registers_data): Remove.
6912 (update_registers_callback): Return void, take arguments
6913 directly, don't check thread's pid.
6914 (arm_insert_point, arm_remove_point): Use for_each_thread.
6916 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6918 * win32-low.c (continue_one_thread): Return void, take argument
6920 (child_continue): Use for_each_thread.
6922 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6924 * win32-i386-low.c (update_debug_registers_callback): Rename
6926 (update_debug_registers): ... this, return void, remove pid_p arg.
6927 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6929 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6931 * inferiors.h (struct process_info): Add constructor, initialize
6933 <syscalls_to_catch>: Change type to std::vector<int>.
6934 * inferiors.c (add_process): Allocate process_info with new.
6935 (remove_process): Free process_info with delete.
6936 * linux-low.c (handle_extended_wait): Adjust.
6937 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6938 * server.c (handle_general_set): Adjust.
6940 2017-11-16 Pedro Alves <palves@redhat.com>
6942 * remote-utils.c (remote_close): Block SIGIO signals instead of
6943 uninstalling the SIGIO handler.
6945 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6947 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6949 2017-11-16 Yao Qi <yao.qi@linaro.org>
6951 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6952 (tic6x_store_gregset): Likewise.
6953 (tic6x_usrregs_info): Move it up.
6955 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6957 * Makefile.in: Update arch rules.
6958 * configure.srv: Explicitly mark arch/ files.
6960 2017-11-13 Andreas Schwab <schwab@suse.de>
6962 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6964 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6966 2017-11-06 Pedro Alves <palves@redhat.com>
6968 * config.in, configure: Regenerate.
6970 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6972 * target.c (struct thread_search): Remove.
6973 (thread_search_callback): Remove.
6974 (prepare_to_access_memory): Use for_each_thread instead of
6975 find_inferior. Inline code from thread_search_callback.
6977 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6979 * server.c (struct visit_actioned_threads_data): Remove.
6980 (visit_actioned_threads): Change prototype to take arguments
6982 (resume): Use find_thread instead of find_inferior.
6984 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6986 * server.c (queue_stop_reply_callback): Change prototype, return
6988 (find_status_pending_thread_callback): Remove.
6989 (handle_status): Replace find_inferior with find_thread and
6992 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6994 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6996 (aarch64_store_gregset): Likewise.
6997 (aarch64_fill_fpregset): Likewise.
6998 (aarch64_store_fpregset): Likewise.
7000 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7002 * gdbthread.h (find_thread, for_each_thread): New functions.
7003 * inferiors.c (thread_of_pid): Remove.
7004 (find_any_thread_of_pid): Use find_thread.
7005 * linux-low.c (num_lwps): Use for_each_thread.
7007 2017-10-17 Yao Qi <yao.qi@linaro.org>
7009 * Makefile.in: Remove one rule.
7010 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7012 2017-10-17 Yao Qi <yao.qi@linaro.org>
7014 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7015 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7017 2017-10-17 Yao Qi <yao.qi@linaro.org>
7019 * configure.srv: Rename arm.o with arch/arm.o.
7021 2017-10-17 Yao Qi <yao.qi@linaro.org>
7023 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7024 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7025 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7026 (arch-i386.o, arch-amd64.o): Remove rules.
7027 (arch/%.o): New rule.
7028 Update POSTCOMPILE and COMPILE.pre.
7029 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7030 * configure: Re-generated.
7031 * configure.srv: Replace arch-i386.o with arch/i386.o.
7032 Replace arch-amd64.o with arch/amd64.o.
7034 2017-10-16 Yao Qi <yao.qi@linaro.org>
7036 * configure: Regenerated.
7038 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7040 * inferiors.h: (struct inferior_list): Remove.
7041 (struct inferior_list_entry); Remove.
7042 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7043 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7044 get_first_inferior): Remove.
7045 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7046 find_inferior_id, find_inferior_in_random): Change signature.
7047 * inferiors.c (all_threads): Change type to
7048 std::list<thread_info *>.
7049 (get_thread): Remove macro.
7050 (find_inferior, find_inferior_id): Change signature, implement
7052 (find_inferior_in_random): Change signature, implement using
7053 find_thread_in_random.
7054 (for_each_inferior, for_each_inferior_with_data): Change
7055 signature, implement using for_each_thread.
7056 (add_inferior_to_list, remove_inferior): Remove.
7057 (add_thread, get_first_thread, thread_of_pid,
7058 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7059 (get_first_inferior, one_inferior_p, clear_inferior_list):
7061 (clear_inferiors, get_thread_process): Update.
7062 * gdbthread.h: Include <list>.
7063 (struct thread_info) <entry>: Remove field.
7065 (all_threads): Change type to std::list<thread_info *>.
7066 (get_first_inferior): Add doc.
7067 (find_thread, for_each_thread, find_thread_in_random): New
7069 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7070 * linux-arm-low.c (update_registers_callback): Update.
7071 * linux-low.c (second_thread_of_pid_p): Update.
7072 (kill_one_lwp_callback, linux_detach_lwp_callback,
7073 delete_lwp_callback, status_pending_p_callback, same_lwp,
7074 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7075 iterate_over_lwps, not_stopped_callback,
7076 resume_stopped_resumed_lwps, count_events_callback,
7077 select_singlestep_lwp_callback, select_event_lwp_callback,
7078 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7079 suspend_and_send_sigstop_callback, wait_for_sigstop,
7080 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7081 lwp_running, linux_set_resume_request, resume_status_pending_p,
7082 need_step_over_p, start_step_over, linux_resume_one_thread,
7083 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7084 reset_lwp_ptrace_options_callback): Update.
7085 * linux-mips-low.c (update_watch_registers_callback): Update.
7086 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7088 (free_register_cache_thread_one): Remove.
7089 (regcache_release): Update.
7090 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7091 handle_qxfer_threads_worker): Update.
7092 (handle_query): Update, use list iterator.
7093 (visit_actioned_threads, handle_pending_status,
7094 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7095 clear_pending_status_callback, set_pending_status_callback,
7096 find_status_pending_thread_callback, handle_status,
7097 process_serial_event): Update.
7098 * target.c (thread_search_callback): Update.
7099 * thread-db.c (thread_db_get_tls_address): Update.
7100 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7102 * win32-i386-low.c (update_debug_registers_callback): Update.
7103 * win32-low.c (delete_thread_info, child_delete_thread,
7104 continue_one_thread, suspend_one_thread,
7105 get_child_debug_event): Adjust.
7107 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7109 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7110 * inferiors.h: Include <list>.
7111 (struct process_info) <entry>: Remove field.
7113 (pid_of): Change macro to function.
7114 (ptid_of, lwpid_of): Remove macro.
7115 (all_processes): Change type to std::list<process_info *>.
7116 (ALL_PROCESSES): Remove macro.
7117 (for_each_process, find_process): New function.
7118 * inferiors.c (all_processes): Change type to
7119 std::list<process_info *>.
7120 (find_thread_process): Adjust.
7121 (add_process): Likewise.
7122 (remove_process): Likewise.
7123 (find_process_pid): Likewise.
7124 (get_first_process): Likewise.
7125 (started_inferior_callback): Remove.
7126 (have_started_inferiors_p): Adjust.
7127 (attached_inferior_callback): Remove.
7128 (have_attached_inferiors_p): Adjust.
7129 * linux-low.c (check_zombie_leaders): Likewise.
7130 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7131 (x86_linux_update_xmltarget): Adjust.
7132 * server.c (handle_query): Likewise.
7133 (gdb_reattached_process): Remove.
7134 (handle_status): Adjust.
7135 (kill_inferior_callback): Likewise.
7136 (detach_or_kill_inferior): Remove.
7137 (print_started_pid): Likewise.
7138 (print_attached_pid): Likewise.
7139 (detach_or_kill_for_exit): Update.
7140 (process_serial_event): Likewise.
7141 * linux-arm-low.c (arm_new_fork): Likewise.
7143 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7145 * dll.h: Include <list>.
7146 (struct dll_info): Add constructor.
7147 <entry>: Remove field.
7148 (all_dlls): Change type to std::list<dll_info>.
7149 * dll.c: Include <algorithm>.
7150 (get_dll): Remove macro.
7151 (all_dlls): Change type to std::list<dll_info *>.
7152 (free_one_dll): Remove.
7153 (match_dll): Likewise.
7154 (loaded_dll): Adjust.
7155 (unloaded_dll): Adjust to all_dlls type change, use
7156 std::find_if. Inline code from match_dll.
7157 (clear_dlls): Adjust to all_dlls type change.
7158 * server.c (emit_dll_description): Remove.
7159 (handle_qxfer_libraries): Adjust to all_dlls type change,
7160 integrate emit_dll_description's functionality.
7162 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7164 * linux-low.h (struct linux_target_ops) <delete_process>: New
7166 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7167 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7168 (struct linux_target_ops): Add delete_process callback.
7169 * linux-arm-low.c (arm_delete_process): New.
7170 (struct linux_target_ops): Add delete_process callback.
7171 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7172 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7173 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7174 * linux-mips-low.c (mips_linux_delete_process): New.
7175 (struct linux_target_ops): Add delete_process callback.
7176 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7177 * linux-s390-low.c (struct linux_target_ops): Likewise.
7178 * linux-sh-low.c (struct linux_target_ops): Likewise.
7179 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7180 * linux-tile-low.c (struct linux_target_ops): Likewise.
7181 * linux-x86-low.c (x86_linux_delete_process): New.
7182 (struct linux_target_ops): Add delete_process callback.
7183 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7185 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7187 * linux-aarch64-low.c (the_low_target): Add thread delete
7189 * linux-arm-low.c (arm_delete_thread): New function.
7190 (the_low_target): Add thread delete callback.
7191 * linux-bfin-low.c (the_low_target): Likewise.
7192 * linux-crisv32-low.c (the_low_target): Likewise.
7193 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7195 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7197 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7198 * linux-mips-low.c (mips_linux_delete_thread): New function.
7199 (the_low_target): Add thread delete callback.
7200 * linux-ppc-low.c (the_low_target): Likewise.
7201 * linux-s390-low.c (the_low_target): Likewise.
7202 * linux-sh-low.c (the_low_target): Likewise.
7203 * linux-tic6x-low.c (the_low_target): Likewise.
7204 * linux-tile-low.c (the_low_target): Likewise.
7205 * linux-x86-low.c (the_low_target): Likewise.
7206 * linux-xtensa-low.c (the_low_target): Likewise.
7208 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7210 * win32-low.c: Include "common-inferior.h".
7212 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7214 * inferiors.c (set_inferior_cwd): New function.
7215 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7216 (handle_query): Inform that QSetWorkingDir is supported.
7217 * win32-low.c (create_process): Pass the inferior's cwd to
7220 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7222 * inferiors.c (current_inferior_cwd): New global variable.
7223 (get_inferior_cwd): New function.
7224 * inferiors.h (struct process_info) <cwd>: New field.
7226 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7228 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7229 (OBS): Add gdb_tilde_expand.o.
7231 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7233 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7234 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7236 2017-09-29 Pedro Alves <palves@redhat.com>
7238 * ax.c (gdb_parse_agent_expr): Constify.
7239 * ax.h (gdb_parse_agent_expr): Constify.
7240 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7242 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7243 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7244 * remote-utils.h (read_ptid): Constify.
7245 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7246 (process_point_options, process_serial_event): Constify.
7247 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7248 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7249 (cmd_qtbuffer): Constify.
7251 2017-09-29 Pedro Alves <palves@redhat.com>
7253 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7256 2017-09-29 Pedro Alves <palves@redhat.com>
7258 * linux-low.c (handle_extended_wait): Pass parent thread instead
7259 of process to thread_db_notice_clone.
7260 * linux-low.h (thread_db_notice_clone): Replace parent process
7261 parameter with parent thread parameter.
7262 * thread-db.c (find_one_thread): Add comment.
7263 (thread_db_notice_clone): Replace parent process parameter with
7264 parent thread parameter. Temporarily switch to the parent thread.
7266 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7268 * gdbthread.h: Include "common-gdbthread.h".
7269 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7270 "if" when validating the ptid.
7271 * remote-utils.c: Include "gdbthread.h".
7272 (prepare_resume_reply): Use "switch_to_thread".
7273 * target.c (done_accessing_memory): Likewise.
7275 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7277 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7278 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7279 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7280 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7281 s390x-gs-linux64-ipa.o to ipa_obj.
7282 * linux-s390-low.c (HWCAP_S390_GS): New define.
7283 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7285 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7286 (s390_arch_setup): Check for guarded-storage support and choose
7288 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7289 init_registers_s390x_gs_linux64.
7290 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7292 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7293 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7295 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7297 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7299 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7301 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7302 (thread_db_thread_handle): Declare.
7303 * linux-low.c (linux_target_ops): Initialize thread_handle.
7304 * server.c (handle_qxfer_threads_worker): Add support for
7306 * target.h (struct target_ops): Add new function pointer,
7308 (target_thread_handle): Define.
7309 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7311 (thread_db_thread_handle): New function.
7313 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7315 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7316 * linux-low.h (thread_db_notice_clone): Declare.
7317 * thread-db.c (thread_db_notice_clone): New function.
7319 2017-09-21 Pedro Alves <palves@redhat.com>
7321 * server.c (gdb_read_memory, handle_status, process_serial_event)
7322 (handle_serial_event, handle_target_event): Adjust to
7323 set_desired_thread prototype change.
7324 * target.c (set_desired_thread): Remove 'use_general' parameter
7326 * target.h (set_desired_thread): Remove 'use_general' parameter.
7328 2017-09-20 Tom Tromey <tom@tromey.com>
7330 * target.c (target_terminal::terminal_state): Define.
7331 (target_terminal::init): Rename from target_terminal_init.
7332 (target_terminal::inferior): Rename from
7333 target_terminal_inferior.
7334 (target_terminal::ours): Rename from target_terminal_ours.
7335 (target_terminal::ours_for_output, target_terminal::info): New.
7337 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7339 * server.c (accumulate_file_name_length): Remove.
7340 (emit_dll_description): Adjust to std::string change.
7341 (handle_qxfer_libraries): Use std::string to hold document.
7343 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7345 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7346 return type of xml_escape_text.
7347 * server.c (emit_dll_description): Likewise.
7349 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7351 * server.c (captured_main): Accept argument for --selftest.
7352 Update run_tests call.
7353 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7354 when registering selftests.
7356 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7358 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7359 instead of "VEC" for "target_desc.reg_defs".
7360 (regcache_cpy): Likewise.
7361 (registers_to_string): Likewise.
7362 (registers_from_string): Likewise.
7363 (find_regno): Likewise.
7364 (supply_regblock): Likewise.
7365 (regcache_raw_read_unsigned): Likewise.
7366 * tdesc.c (init_target_desc): Likewise.
7367 (tdesc_create_reg): Likewise.
7368 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7369 (struct target_desc) <reg_defs>: Convert to "std::vector".
7370 (target_desc): Do not initialize "reg_defs".
7371 (~target_desc): Update code to use "std::vector" instead of "VEC"
7372 for "target_desc.reg_defs".
7373 (operator==): Likewise.
7375 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7377 * inferiors.h (thread_to_gdb_id): Remove.
7378 * inferiors.c (thread_to_gdb_id): Remove.
7379 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7380 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7381 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7383 * nto-low.c (nto_fetch_registers, nto_store_registers,
7384 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7386 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7388 * inferiors.h (gdb_id_to_thread_id): Remove.
7389 * inferiors.c (gdb_id_to_thread_id): Remove.
7390 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7391 removal. Move pid declaration closer to where it's used.
7393 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7395 * server.c (handle_detach): New function.
7396 (process_serial_event): Move code out, call handle_detach.
7398 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7400 * server.c (require_running): Rename to ...
7401 (require_running_or_return): ... this ...
7402 (require_running_or_break): ... and this.
7403 (handle_query, process_serial_event): Adjust.
7405 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7407 * linux-low.c (linux_set_resume_request): Remove unused
7410 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7412 * server.c (first_thread_of): Remove.
7413 (process_serial_event): Replace usage of first_thread_of with
7414 find_any_thread_of_pid.
7415 * tracepoint.c (same_process_p): Remove.
7416 (gdb_agent_about_to_close): Replace usage of same_process_p with
7417 find_any_thread_of_pid.
7418 * linux-x86-low.c (same_process_callback): Remove.
7419 (x86_arch_setup_process_callback): Replace usage of
7420 same_process_callback with find_any_thread_of_pid.
7421 * thread-db.c (any_thread_of): Remove.
7422 (switch_to_process): Replace usage of any_thread_of with
7423 find_any_thread_of_pid.
7424 * inferiors.c (thread_pid_matches_callback): Remove.
7425 (find_thread_process): Adjust to use find_any_thread_of_pid.
7427 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7429 * regcache.c (get_thread_regcache): Guard calls to "memset"
7432 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7434 * linux-low.c (handle_extended_wait): Use
7435 "allocate_target_description" instead of "XNEW".
7436 * linux-x86-low.c (initialize_low_arch): Likewise.
7438 2017-09-05 Yao Qi <yao.qi@linaro.org>
7440 * configure.srv (srv_i386_regobj): Remove.
7441 (srv_amd64_regobj): Remove.
7442 (srv_regobj): Set it to "" for x86 non-linux targets.
7443 * linux-x86-tdesc.c (i386_linux_read_description):
7444 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7445 (init_registers_i386): Remove the declaration.
7446 (tdesc_i386): Remove the declaration.
7447 (lynx_i386_arch_setup): Call i386_create_target_description.
7448 * nto-x86-low.c: Likewise.
7449 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7450 [!__x86_64__]: include arch/i386.h.
7451 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7453 2017-09-05 Yao Qi <yao.qi@linaro.org>
7455 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7456 i386/amd64-XXX-linux from it.
7458 2017-09-05 Yao Qi <yao.qi@linaro.org>
7460 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7462 (ipa_amd64_linux_regobj): Remove.
7463 (ipa_x32_linux_regobj): Remove.
7465 2017-09-05 Yao Qi <yao.qi@linaro.org>
7467 * Makefile.in (arch-amd64.o): New rule.
7468 * configure.srv: Append arch-amd64.o.
7469 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7470 (get_ipa_tdesc): Call amd64_linux_read_description.
7471 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7472 and init_registers_amd64_XXX.
7473 * linux-x86-low.c (x86_linux_read_description): Call
7474 amd64_linux_read_description.
7475 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7476 (initialize_low_arch): Don't call init_registers_x32_XXX and
7477 init_registers_amd64_XXX.
7478 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7479 and tdesc_amd64_XXX.
7480 [__x86_64__] (amd64_tdesc_test): New function.
7481 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7482 and init_registers_amd64_XXX.
7483 * linux-x86-tdesc.c: Include arch/amd64.h.
7484 (xcr0_to_tdesc_idx): New function.
7485 (i386_linux_read_description): New function.
7486 (amd64_get_ipa_tdesc_idx): New function.
7487 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7488 (amd64_get_ipa_tdesc): Declare.
7490 2017-09-05 Yao Qi <yao.qi@linaro.org>
7492 * configure.srv (srv_i386_linux_xmlfiles): Remove
7493 i386/i386-XXX-linux.xml from it.
7495 2017-09-05 Yao Qi <yao.qi@linaro.org>
7497 * configure.srv: Set srv_i386_linux_regobj empty if $development
7499 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7500 initialize_low_tdesc.
7501 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7502 with #if initialize_low_tdesc.
7503 * linux-x86-tdesc-selftest.c: New file.
7504 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7506 2017-09-05 Yao Qi <yao.qi@linaro.org>
7508 * Makefile.in (arch-i386.o): New rule.
7509 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7510 (x86_64-*-linux*): Likewise.
7511 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7512 include arch/i386.h.
7513 (i386_linux_read_description): Remove code and call
7514 i386_create_target_description.
7515 * tdesc.c (allocate_target_description): New function.
7516 * tdesc.h (set_tdesc_architecture): Remove declaration.
7517 (set_tdesc_osabi): Likewise.
7519 2017-09-05 Yao Qi <yao.qi@linaro.org>
7521 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7522 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7523 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7525 * server.c (get_features_xml): Call tdesc_get_features_xml.
7526 * tdesc.c (set_tdesc_architecture): New function.
7527 (set_tdesc_osabi): New function.
7528 (tdesc_get_features_xml): New function.
7529 (tdesc_create_feature): Add an argument.
7530 * tdesc.h (struct target_desc) <features>: New field.
7531 <arch, osabi>: New field.
7532 (~target_desc): xfree features, arch, and osabi.
7533 (target_desc::oerator==): Don't compare .xmltarget.
7534 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7535 (set_tdesc_osabi): Likewise.
7536 (tdesc_get_features_xml): Likewise.
7538 2017-09-05 Yao Qi <yao.qi@linaro.org>
7540 * linux-x86-tdesc.c: Include selftest.h.
7541 (i386_tdesc_test): New function.
7542 (initialize_low_tdesc): Call selftests::register_test.
7543 * tdesc.h: Include regdef.h.
7544 (target_desc): Override operator == and !=.
7546 2017-09-05 Yao Qi <yao.qi@linaro.org>
7548 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7549 (ipa_obj): Likewise.
7550 * linux-i386-ipa.c: Include common/x86-xstate.h
7551 (get_ipa_tdesc): Call i386_linux_read_description.
7552 (initialize_low_tracepoint): Don't call init_registers_XXX
7553 functions, call initialize_low_tdesc instead.
7554 * linux-x86-low.c (x86_linux_read_description): Call
7555 i386_linux_read_description.
7556 (initialize_low_arch): Don't call init_registers_i386_XXX
7557 functions, call initialize_low_tdesc.
7558 * linux-x86-tdesc.c: New file.
7559 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7560 (i386_get_ipa_tdesc_idx): Declare.
7561 (i386_get_ipa_tdesc): Declare.
7562 (initialize_low_tdesc): Declare.
7564 2017-09-05 Yao Qi <yao.qi@linaro.org>
7566 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7569 2017-09-05 Yao Qi <yao.qi@linaro.org>
7571 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7572 * regcache.c (get_thread_regcache): Use VEC_length.
7573 (init_register_cache): Likewise.
7574 (regcache_cpy): Likewise.
7575 (registers_to_string): Iterate reg_defs via VEC_iterate.
7576 (find_regno): Likewise.
7577 (find_register_by_number): Use VEC_index.
7578 (register_size): Call find_register_by_number.
7579 (register_data): Call find_register_by_number.
7580 (supply_regblock): Use VEC_length.
7581 (regcache_raw_read_unsigned): Likewise.
7582 * tdesc.c (init_target_desc): Iterate reg_defs via
7584 (default_description): Update initializer.
7585 (copy_target_description): Don't update field num_registers.
7586 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7587 <num_registers>: Remove.
7589 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7591 * Makefile.in (.SECONDARY): Define target.
7593 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7595 * linux-low.c (linux_wait_1): Adjust.
7596 * server.c (queue_stop_reply_callback): Adjust.
7598 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7600 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7601 QEnvironmentUnset and QEnvironmentReset packets.
7602 (handle_query): Inform remote that QEnvironmentHexEncoded,
7603 QEnvironmentUnset and QEnvironmentReset are supported.
7605 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7607 * inferiors.h (inferior_target_data): Rename to ...
7608 (thread_target_data): ... this.
7609 (inferior_regcache_data): Rename to ...
7610 (thread_regcache_data): ... this.
7611 (set_inferior_regcache_data): Rename to ...
7612 (set_thread_regcache_data): ... this.
7613 * inferiors.c (inferior_target_data): Rename to ...
7614 (thread_target_data): ... this.
7615 (inferior_regcache_data): Rename to ...
7616 (thread_regcache_data): ... this.
7617 (set_inferior_regcache_data): Rename to ...
7618 (set_thread_regcache_data): ... this.
7619 (free_one_thread): Update.
7620 * linux-low.h (get_thread_lwp): Update.
7621 * regcache.c (get_thread_regcache): Update.
7622 (regcache_invalidate_thread): Update.
7623 (free_register_cache_thread): Update.
7624 * win32-i386-low.c (update_debug_registers_callback): Update.
7625 (win32_get_current_dr): Update.
7626 * win32-low.c (thread_rec): Update.
7627 (delete_thread_info): Update.
7628 (continue_one_thread): Update.
7629 (suspend_one_thread): Update.
7631 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7633 * inferiors.c (set_inferior_target_data): Remove.
7634 * inferiors.h (set_inferior_target_data): Remove.
7636 2017-08-18 Yao Qi <yao.qi@linaro.org>
7638 * Makefile.in (OBS): Add selftest.o.
7639 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7640 * configure, config.in: Re-generated.
7641 * server.c: Include common/sefltest.h.
7642 (captured_main): Handle option --selftest.
7644 2017-08-09 Yao Qi <yao.qi@linaro.org>
7646 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7647 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7648 i386-avx-mpx.o and i386-mmx.o.
7649 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7650 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7651 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7652 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7653 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7654 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7655 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7656 i386/amd64-avx-mpx.xml.
7658 2017-08-09 Yao Qi <yao.qi@linaro.org>
7660 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7661 and x32-avx-avx512.o.
7662 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7663 i386/x32-avx-avx512.xml.
7665 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7667 * tracepoint.h (enum class fast_tpoint_collect_result): New
7669 (fast_tracepoint_collecting): Change return type to
7670 fast_tpoint_collect_result.
7671 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7672 * linux-low.h: Include tracepoint.h.
7673 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7674 fast_tpoint_collect_result.
7675 * linux-low.c (handle_tracepoints): Adjust.
7676 (linux_fast_tracepoint_collecting): Change return type to
7677 fast_tpoint_collect_result.
7678 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7679 linux_wait_1, stuck_in_jump_pad_callback,
7680 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7681 proceed_one_lwp): Adjust to type change.
7683 2017-07-10 Yao Qi <yao.qi@linaro.org>
7685 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7687 2017-06-29 Yao Qi <yao.qi@linaro.org>
7689 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7691 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7693 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7695 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7697 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7699 * linux-low.c (linux_create_inferior): Adjust code to access the
7700 environment information via 'gdb_environ' class.
7701 * lynx-low.c (lynx_create_inferior): Likewise.
7702 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7703 (get_environ): Return a pointer to 'our_environ'.
7704 (captured_main): Initialize 'our_environ'.
7705 * server.h (get_environ): Adjust prototype.
7706 * spu-low.c (spu_create_inferior): Adjust code to access the
7707 environment information via 'gdb_environ' class.
7709 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7711 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7712 usage of "register" keyword.
7714 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7716 * configure: Re-generate.
7718 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7720 * configure: Re-generate.
7722 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7724 * Makefile.in (COMPILE.pre): Add "-x c++".
7726 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7728 * fork-child.c: Conditionally include <signal.h>.
7730 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7732 * server.c (handle_general_set): Handle new packet
7733 "QStartupWithShell".
7734 (handle_query): Add "QStartupWithShell" to the list of supported
7736 (gdbserver_usage): Add help text explaining the
7737 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7739 (captured_main): Recognize and act upon the presence of the new
7742 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7743 Pedro Alves <palves@redhat.com>
7745 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7746 * configure: Regenerate.
7747 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7749 (i[34567]86-*-lynxos*): Likewise.
7750 (spu*-*-*): Likewise.
7751 * fork-child.c: New file.
7752 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7754 (linux_ptrace_fun): New function.
7755 (linux_create_inferior): Adjust function prototype to reflect
7756 change on "target.h". Adjust function code to use
7758 (linux_request_interrupt): Delete "signal_pid".
7759 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7760 (lynx_ptrace_fun): New function.
7761 (lynx_create_inferior): Adjust function prototype to reflect
7762 change on "target.h". Adjust function code to use
7764 * nto-low.c (nto_create_inferior): Adjust function prototype and
7765 code to reflect change on "target.h". Update comments.
7766 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7767 "common-terminal.h" and "environ.h".
7768 (terminal_fd): Moved to fork-child.c.
7769 (old_foreground_pgrp): Likewise.
7770 (restore_old_foreground_pgrp): Likewise.
7771 (last_status): Make it global.
7772 (last_ptid): Likewise.
7773 (our_environ): New variable.
7774 (startup_with_shell): Likewise.
7775 (program_name): Likewise.
7776 (program_argv): Rename to...
7777 (program_args): ...this.
7778 (wrapper_argv): New variable.
7779 (start_inferior): Delete function.
7780 (get_exec_wrapper): New function.
7781 (get_exec_file): Likewise.
7782 (get_environ): Likewise.
7783 (prefork_hook): Likewise.
7784 (post_fork_inferior): Likewise.
7785 (postfork_hook): Likewise.
7786 (postfork_child_hook): Likewise.
7787 (handle_v_run): Update code to deal with arguments coming from the
7788 remote host. Update calls from "start_inferior" to
7790 (captured_main): Likewise. Initialize environment variable. Call
7792 * server.h (post_fork_inferior): New prototype.
7793 (get_environ): Likewise.
7794 (last_status): Declare.
7795 (last_ptid): Likewise.
7796 (signal_pid): Likewise.
7797 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7798 (spu_ptrace_fun): New function.
7799 (spu_create_inferior): Adjust function prototype to reflect change
7800 on "target.h". Adjust function code to use "fork_inferior".
7801 * target.c (target_terminal_init): New function.
7802 (target_terminal_inferior): Likewise.
7803 (target_terminal_ours): Likewise.
7804 * target.h: Include <vector>.
7805 (struct target_ops) <create_inferior>: Update prototype.
7806 (create_inferior): Update macro.
7807 * utils.c (gdb_flush_out_err): New function.
7808 * win32-low.c (win32_create_inferior): Adjust function prototype
7809 and code to reflect change on "target.h".
7811 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7813 * inferiors.c (switch_to_thread): New function.
7815 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7817 * Makefile.in (SFILE): Add "common/job-control.c".
7818 (OBS): Add "job-control.o".
7820 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7822 * Makefile: Remove "@host_makefile_frag@".
7824 2017-05-05 Pedro Alves <palves@redhat.com>
7826 * configure: Regenerate.
7828 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7830 * configure: Regenerate.
7832 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7834 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7835 software_single_step change of return type to
7836 std::vector<CORE_ADDR>.
7837 * linux-low.c (install_software_single_step_breakpoints):
7839 * linux-low.h (install_software_single_step_breakpoints):
7842 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7844 * remote-utils.c: Include "gdb_termios.h" instead of
7846 * terminal.h: Delete file.
7848 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7850 * server.c: Include <vector>.
7851 <program_argv, wrapper_argv>: Convert to std::vector.
7852 (start_inferior): Rewrite function to use C++.
7853 (handle_v_run): Likewise. Update code that calculates the argv
7854 based on the vRun packet; use C++.
7855 (captured_main): Likewise.
7857 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7859 * server.c (handle_v_cont): Initialize thread_resume::thread
7862 2017-04-05 Pedro Alves <palves@redhat.com>
7864 * configure: Regenerate.
7866 2017-04-05 Pedro Alves <palves@redhat.com>
7868 * gdbreplay.c (sync_error): Constify.
7869 * linux-x86-low.c (push_opcode): Constify.
7871 2017-04-05 Pedro Alves <palves@redhat.com>
7873 * win32-low.c (get_child_debug_event)
7874 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7875 Report TARGET_WAITKIND_SPURIOUS instead.
7877 2017-04-05 Pedro Alves <palves@redhat.com>
7879 * remote-utils.c (remote_prepare, remote_open): Constify.
7880 * remote-utils.h (remote_prepare, remote_open): Constify.
7881 * server.c (captured_main): Constify 'port' handling.
7883 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7885 * Makefile.in (clean): Clear .deps.
7887 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7889 * .gitignore: Remove generated files, replace with wildcard.
7890 * (clean): Replace removal of generated files with wildcard.
7891 (version.c): Replace with...
7892 (version-generated.c): ...this.
7893 (xml-builtin.c): Replace with...
7894 (xml-builtin-generated.c): ...this.
7895 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7896 (%.c: *regformats*): Replace with...
7897 (%-generated.c: *regformats*): ...this.
7899 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7901 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7902 (xtensa_fill_gregset): Call collect_register_by_name for
7904 (xtensa_store_gregset): Call supply_register_by_name for
7907 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7909 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7910 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7911 (xtensa_store_gregset): Call supply_register for all registers in
7912 a0_regnum..a0_regnum + C0_NREGS range.
7914 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7916 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7917 (ax-ipa.o: ax.c): Remove.
7918 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7919 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7920 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7921 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7922 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7924 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7926 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7927 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7928 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7929 (errors-ipa.o: ../common/errors.c): Remove.
7930 (format-ipa.o: ../common/format.c): Remove.
7931 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7933 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7935 * Makefile.in (%-ipa.o: %.c): New rule.
7936 (tracepoint-ipa.o: tracepoint.c): Remove.
7937 (utils-ipa.o: utils.c): Remove.
7938 (remote-utils-ipa.o: remote-utils.c): Remove.
7939 (regcache-ipa.o: regcache.c): Remove.
7940 (i386-linux-ipa.o: i386-linux.c): Remove.
7941 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7942 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7943 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7944 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7945 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7946 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7947 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7948 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7949 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7950 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7951 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7952 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7953 (aarch64-ipa.o: aarch64.c): Remove.
7954 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7955 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7956 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7957 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7958 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7959 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7960 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7961 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7962 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7963 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7964 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7965 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7966 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7967 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7968 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7969 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7970 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7971 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7972 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7973 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7974 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7975 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7976 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7977 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7978 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7979 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7980 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7981 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7982 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7983 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7984 (tdesc-ipa.o: tdesc.c): Remove.
7985 (x32-linux-ipa.o: x32-linux.c): Remove.
7986 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7987 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7989 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7991 * Makefile.in (%.o: ../arch/%.c): New rule.
7992 (arm.o: ../arch/arm.c): Remove.
7993 (arm-linux.o: ../arch/arm-linux.c): Remove.
7994 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7995 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7997 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7999 * Makefile.in (%.o: ../nat/%.c): New rule.
8000 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8001 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8002 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8003 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8004 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8005 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8006 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8007 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8008 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8009 (linux-personality.o: ../nat/linux-personality.c): Remove.
8010 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8011 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8012 (x86-linux.o: ../nat/x86-linux.c): Remove.
8013 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8014 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8016 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8018 * Makefile.in (%.o: ../common/%.c): New rule.
8019 (signals.o: ../common/signals.c): Remove.
8020 (print-utils.o: ../common/print-utils.c): Remove.
8021 (rsp-low.o: ../common/rsp-low.c): Remove.
8022 (common-utils.o: ../common/common-utils.c): Remove.
8023 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8024 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8025 (vec.o: ../common/vec.c): Remove.
8026 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8027 (xml-utils.o: ../common/xml-utils.c): Remove.
8028 (ptid.o: ../common/ptid.c): Remove.
8029 (buffer.o: ../common/buffer.c): Remove.
8030 (format.o: ../common/format.c): Remove.
8031 (filestuff.o: ../common/filestuff.c): Remove.
8032 (agent.o: ../common/agent.c): Remove.
8033 (errors.o: ../common/errors.c): Remove.
8034 (environ.o: ../common/environ.c): Remove.
8035 (common-debug.o: ../common/common-debug.c): Remove.
8036 (cleanups.o: ../common/cleanups.c): Remove.
8037 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8038 (fileio.o: ../common/fileio.c): Remove.
8039 (common-regcache.o: ../common/common-regcache.c): Remove.
8040 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8041 (new-op.o: ../common/new-op.c): Remove.
8042 (btrace-common.o: ../common/btrace-common.c): Remove.
8044 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8046 * Makefile.in (%.o: ../target/%.c): New rule.
8047 (waitstatus.o: ../target/waitstatus.c): Remove.
8049 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8052 (%.c: ../regformats/%.dat,
8053 (%.c: ../regformats/arm/%.dat,
8054 (%.c: ../regformats/i386/%.dat,
8055 (%.c: ../regformats/rs6000/%.dat): New rules.
8056 (aarch64.c): Remove.
8057 (reg-arm.c): Remove.
8058 (arm-with-iwmmxt.c): Remove.
8059 (arm-with-vfpv2.c): Remove.
8060 (arm-with-vfpv3.c): Remove.
8061 (arm-with-neon.c): Remove.
8062 (reg-bfin.c): Remove.
8063 (reg-cris.c): Remove.
8064 (reg-crisv32.c): Remove.
8066 (i386-linux.c): Remove.
8067 (i386-avx.c): Remove.
8068 (i386-avx-linux.c): Remove.
8069 (i386-avx-avx512.c): Remove.
8070 (i386-avx-avx512-linux.c): Remove.
8071 (i386-mpx.c): Remove.
8072 (i386-mpx-linux.c): Remove.
8073 (i386-avx-mpx-avx512-pku.c): Remove.
8074 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8075 (i386-avx-mpx.c): Remove.
8076 (i386-avx-mpx-linux.c): Remove.
8077 (i386-mmx.c): Remove.
8078 (i386-mmx-linux.c): Remove.
8079 (reg-ia64.c): Remove.
8080 (reg-m32r.c): Remove.
8081 (reg-m68k.c): Remove.
8083 (mips-linux.c): Remove.
8084 (mips-dsp-linux.c): Remove.
8085 (mips64-linux.c): Remove.
8086 (mips64-dsp-linux.c): Remove.
8087 (nios2-linux.c): Remove.
8088 (powerpc-32.c): Remove.
8089 (powerpc-32l.c): Remove.
8090 (powerpc-altivec32l.c): Remove.
8091 (powerpc-cell32l.c): Remove.
8092 (powerpc-vsx32l.c): Remove.
8093 (powerpc-isa205-32l.c): Remove.
8094 (powerpc-isa205-altivec32l.c): Remove.
8095 (powerpc-isa205-vsx32l.c): Remove.
8096 (powerpc-e500l.c): Remove.
8097 (powerpc-64l.c): Remove.
8098 (powerpc-altivec64l.c): Remove.
8099 (powerpc-cell64l.c): Remove.
8100 (powerpc-vsx64l.c): Remove.
8101 (powerpc-isa205-64l.c): Remove.
8102 (powerpc-isa205-altivec64l.c): Remove.
8103 (powerpc-isa205-vsx64l.c): Remove.
8104 (s390-linux32.c): Remove.
8105 (s390-linux32v1.c): Remove.
8106 (s390-linux32v2.c): Remove.
8107 (s390-linux64.c): Remove.
8108 (s390-linux64v1.c): Remove.
8109 (s390-linux64v2.c): Remove.
8110 (s390-te-linux64.c): Remove.
8111 (s390-vx-linux64.c): Remove.
8112 (s390-tevx-linux64.c): Remove.
8113 (s390x-linux64.c): Remove.
8114 (s390x-linux64v1.c): Remove.
8115 (s390x-linux64v2.c): Remove.
8116 (s390x-te-linux64.c): Remove.
8117 (s390x-vx-linux64.c): Remove.
8118 (s390x-tevx-linux64.c): Remove.
8119 (tic6x-c64xp-linux.c): Remove.
8120 (tic6x-c64x-linux.c): Remove.
8121 (tic6x-c62x-linux.c): Remove.
8123 (reg-sparc64.c): Remove.
8124 (reg-spu.c): Remove.
8126 (amd64-linux.c): Remove.
8127 (amd64-avx.c): Remove.
8128 (amd64-avx-linux.c): Remove.
8129 (amd64-avx-avx512.c): Remove.
8130 (amd64-avx-avx512-linux.c): Remove.
8131 (amd64-mpx.c): Remove.
8132 (amd64-mpx-linux.c): Remove.
8133 (amd64-avx-mpx-avx512-pku.c): Remove.
8134 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8135 (amd64-avx-mpx.c): Remove.
8136 (amd64-avx-mpx-linux.c): Remove.
8138 (x32-linux.c): Remove.
8139 (x32-avx.c): Remove.
8140 (x32-avx-linux.c): Remove.
8141 (x32-avx-avx512.c): Remove.
8142 (x32-avx-avx512-linux.c): Remove.
8143 (reg-xtensa.c): Remove.
8144 (reg-tilegx.c): Remove.
8145 (reg-tilegx32.c): Remove.
8147 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8149 * Makefile.in (SFILES): Add "common/environ.c".
8150 (OBJS): Add "common/environ.h".
8152 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8154 * configure.ac: Check if the fs_base and gs_base members of
8155 `struct user_regs_struct' exist.
8156 * config.in: Regenerated.
8157 * configure: Likewise.
8159 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8161 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8163 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8164 (get_next_pcs_syscall_next_pc): Likewise.
8166 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8168 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8169 * nto-x86-low.c: Likewise.
8171 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8173 * Makefile.in: Include disable-implicit-rules.mk.
8175 2016-11-23 Pedro Alves <palves@redhat.com>
8177 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8178 (debug_vprintf): Use std::chrono::steady_clock instead of
8179 gettimeofday. Use '.' instead of ':'.
8180 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8181 (get_timestamp): Use std::chrono::steady_clock instead of
8184 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8186 * Makefile.in: Fix whitespace formatting.
8188 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8190 * Makefile.in (SFILES, OBS): Flatten list and order
8193 2016-11-23 Pedro Alves <palves@redhat.com>
8195 * event-loop.c (handle_file_event): Use warning.
8196 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8197 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8200 2016-11-23 Pedro Alves <palves@redhat.com>
8202 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8204 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8205 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8206 debug_printf and debug_flush for debug output.
8207 * server.c (handle_general_set): Likewise.
8208 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8211 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8213 * Makefile.in (.c.o): Replace rule with ...
8214 (%.o: %.c): ... this one.
8216 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8218 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8219 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8221 * configure.ac: Remove checks for the make program.
8222 * configure: Re-generate.
8224 2016-10-28 Pedro Alves <palves@redhat.com>
8226 * Makefile.in (CXX_DIALECT): Get from configure.
8227 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8228 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8229 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8230 * config.in: Regenerate.
8231 * configure: Regenerate.
8233 2016-10-27 Yao Qi <yao.qi@linaro.org>
8235 * linux-low.c (linux_supports_range_stepping): Return true if
8236 can_software_single_step return true.
8238 2016-10-27 Yao Qi <yao.qi@linaro.org>
8240 * inferiors.c (find_inferior_in_random): New function.
8241 * inferiors.h (find_inferior_in_random): Declare.
8242 * linux-low.c (linux_wait_for_event_filtered): Call
8243 find_inferior_in_random instead of find_inferior.
8245 2016-10-27 Yao Qi <yao.qi@linaro.org>
8247 * linux-low.c (linux_wait_1): If single-step breakpoints are
8248 inserted, remove them.
8250 2016-10-26 Pedro Alves <palves@redhat.com>
8252 * linux-low.c (handle_extended_wait): Link parent/child fork
8254 (linux_wait_1): Unlink them.
8255 (linux_set_resume_request): Ignore resume requests for
8256 already-resumed and unhandled fork child threads.
8257 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8258 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8260 (handle_v_requests) <vCont>: Don't call require_running.
8261 * server.h (in_queued_stop_replies): New declaration.
8263 2016-10-24 Yao Qi <yao.qi@linaro.org>
8266 * linux-aarch64-low.c (append_insns): Cast the return value to
8269 2016-10-10 Yao Qi <yao.qi@linaro.org>
8271 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8273 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8275 * target.c (target_supports_multi_process): New function, moved
8277 * target.h (target_supports_multi_process): ... here. Remove
8280 2016-10-05 Tom Tromey <tom@tromey.com>
8283 * tracepoint.c (handle_tracepoint_bkpts): Check
8284 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8286 2016-10-05 Yao Qi <yao.qi@linaro.org>
8288 * configure.srv: Update the path of arm-*.xml files.
8290 2016-10-05 Terry Guo <terry.guo@arm.com>
8291 Yao Qi <yao.qi@linaro.org>
8293 * Makefile.in: Adjust the path of rules.
8294 * configure.srv: Update the path of xml files.
8295 * regformats/arm-with-iwmmxt.dat: Regenerated.
8296 * regformats/arm-with-neon.dat: Likewise.
8297 * regformats/arm-with-vfpv2.dat: Likewise.
8298 * regformats/arm-with-vfpv3.dat Likewise.
8300 2016-09-30 Yao Qi <yao.qi@linaro.org>
8303 * target.c (target_stop_and_wait): Don't call
8304 target_continue_no_signal, use resume_stop instead.
8306 2016-09-26 Yao Qi <yao.qi@linaro.org>
8308 * linux-low.c (linux_wait_1): Call debug_exit.
8310 2016-09-23 Pedro Alves <palves@redhat.com>
8312 * Makefile.in (SFILES): Add common/new-op.c.
8313 (OBS): Add common/new-op.o.
8314 (new-op.o): New rule.
8316 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8318 * .gitinore: Ignore more files.
8320 2016-09-21 Yao Qi <yao.qi@linaro.org>
8322 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8325 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8327 * server.c (start_inferior): Call target_mourn_inferior instead of
8328 mourn_inferior; pass ptid_t argument to it.
8330 (handle_target_event): Likewise.
8331 * target.c (target_mourn_inferior): New function.
8332 * target.h (mourn_inferior): Delete macro.
8334 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8336 * linux-low.c (lwp_is_stepping): New function.
8338 2016-09-06 Carl Love <cel@us.ibm.com>
8340 * server.c (start_inferior): Fixed comment, requested comment change
8341 didn't get updated correctly. Removed reference to ptrace () call as
8342 it is only true on Linux systems.
8344 2016-09-06 Carl Love <cel@us.ibm.com>
8346 * server.c (start_inferior): Do not call
8347 function target_post_create_inferior () if the
8348 inferior process has already exited.
8350 2016-09-05 Pedro Alves <palves@redhat.com>
8352 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8353 (COMPILE.pre, CC_LD): Use CXX directly.
8354 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8355 * acinclude.m4: Don't include build-with-cxx.m4.
8356 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8357 * configure: Regenerate.
8359 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8362 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8363 call writing data to own_buf.
8365 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8367 * target.c (mywait): Call target_wait instead of
8369 (target_wait): New function.
8371 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8373 * server.c (start_inferior): New variable 'ptid'. Replace calls
8374 to the_target->resume by target_continue{,_no_signal}, depending
8376 * target.c (target_stop_and_wait): Call target_continue_no_signal
8377 instead of the_target->resume.
8378 (target_continue): New function.
8380 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8382 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8384 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8387 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8389 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8390 * linux-arm-low.c (ps_get_thread_area): Likewise.
8391 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8392 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8393 * linux-mips-low.c (ps_get_thread_area): Likewise.
8394 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8395 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8396 * linux-x86-low.c (ps_get_thread_area): Likewise.
8397 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8399 2016-08-19 Pedro Alves <palves@redhat.com>
8401 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8403 2016-08-19 Pedro Alves <palves@redhat.com>
8405 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8406 comment. Use memcpy instead of casting through unsigned long.
8408 2016-08-19 Pedro Alves <palves@redhat.com>
8410 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8411 allocating around 0x80000000.
8413 2016-08-19 Pedro Alves <palves@redhat.com>
8416 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8417 (x32-avx512-linux-ipa.o): New rules.
8418 * configure.ac (x86_64-*-linux*): New x32 check.
8419 * configure.srv (ipa_x32_linux_regobj): New.
8420 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8421 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8423 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8425 * configure: Regenerate.
8427 2016-08-09 Pedro Alves <palves@redhat.com>
8430 * Makefile.in (OBS): Add signals-state-save-restore.o.
8431 (signals-state-save-restore.o): New rule.
8432 * config.in: Regenerate.
8433 * configure: Regenerate.
8434 * linux-low.c: Include "signals-state-save-restore.h".
8435 (linux_create_inferior): Call
8436 restore_original_signals_state.
8437 * server.c: Include "dispositions-save-restore.h".
8438 (captured_main): Call save_original_signals_state.
8440 2016-08-05 Pedro Alves <palves@redhat.com>
8442 * configure: Regenerate.
8444 2016-08-04 Yao Qi <yao.qi@linaro.org>
8446 * linux-low.c (regsets_fetch_inferior_registers): Check
8447 errno is ESRCH or not.
8449 2016-08-02 Yao Qi <yao.qi@linaro.org>
8451 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8452 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8453 (thread_db_load_search): Update.
8454 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8455 td_ta_set_event and td_ta_event_getmsg.
8457 2016-07-26 Pedro Alves <palves@redhat.com>
8460 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8461 of unsigned long for 64-bit registers and use uint32_t instead of
8462 unsigned int for 32-bit registers.
8464 2016-07-26 Pedro Alves <palves@redhat.com>
8466 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8469 2016-07-21 Tom Tromey <tom@tromey.com>
8471 * configure: Rebuild.
8473 2016-07-21 Yao Qi <yao.qi@linaro.org>
8475 * mem-break.c (find_gdb_breakpoint): Cast bp to
8476 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8478 2016-07-21 Yao Qi <yao.qi@linaro.org>
8480 * server.c (handle_v_requests): Support s and S actions
8481 if target_supports_software_single_step return true.
8483 2016-07-21 Yao Qi <yao.qi@linaro.org>
8485 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8486 is resume_step, call maybe_hw_step.
8487 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8489 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8491 (proceed_one_lwp): If resume request is resume_step, install
8492 reinsert breakpoints and call maybe_hw_step.
8494 2016-07-21 Yao Qi <yao.qi@linaro.org>
8496 * linux-low.c (proceed_one_lwp): Declare.
8497 (linux_resume_one_thread): Remove local variable 'step'.
8498 Lift code enqueue signal. Call proceed_one_lwp instead of
8499 linux_resume_one_lwp.
8501 2016-07-21 Yao Qi <yao.qi@linaro.org>
8503 * linux-low.c (linux_resume_one_thread): Call
8504 enqueue_pending_signal.
8506 2016-07-21 Yao Qi <yao.qi@linaro.org>
8508 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8509 * inferiors.c (do_restore_current_thread_cleanup): New function.
8510 (make_cleanup_restore_current_thread): Likewise.
8511 * linux-low.c (install_software_single_step_breakpoints): Call
8512 make_cleanup_restore_current_thread. Switch current_thread to
8515 2016-07-21 Yao Qi <yao.qi@linaro.org>
8517 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8518 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8519 (clone_one_breakpoint): Likewise.
8520 (delete_reinsert_breakpoints): Change parameter to thread.
8522 (has_reinsert_breakpoints): Likewise.
8523 (uninsert_reinsert_breakpoints): Likewise.
8524 (reinsert_reinsert_breakpoints): Likewise.
8525 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8526 (delete_reinsert_breakpoints): Likewise.
8527 (reinsert_reinsert_breakpoints): Likewise.
8528 (uninsert_reinsert_breakpoints): Likewise.
8529 (has_reinsert_breakpoints): Likewise.
8531 2016-07-21 Yao Qi <yao.qi@linaro.org>
8533 * inferiors.c (get_thread_process): Make parameter const.
8534 * inferiors.h (get_thread_process): Update declaration.
8535 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8536 Add new parameters child_thread and parent_thread. Callers
8538 * mem-break.h (clone_all_breakpoints): Update declaration.
8540 2016-07-21 Yao Qi <yao.qi@linaro.org>
8542 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8543 <command_list, handler>: Remove.
8544 (struct gdb_breakpoint): New.
8545 (struct other_breakpoint): New.
8546 (struct reinsert_breakpoint): New.
8547 (is_gdb_breakpoint): New function.
8548 (any_persistent_commands): Update command_list if
8549 is_gdb_breakpoint returns true.
8550 (set_breakpoint): Create breakpoints according to their types.
8551 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8552 (set_gdb_breakpoint_1): Likewise.
8553 (set_gdb_breakpoint): Likewise.
8554 (clear_breakpoint_conditions): Change parameter type to
8555 'struct gdb_breakpoint *'.
8556 (clear_breakpoint_commands): Likewise.
8557 (clear_breakpoint_conditions_and_commands): Likewise.
8558 (add_condition_to_breakpoint): Likewise.
8559 (add_breakpoint_condition): Likewise.
8560 (add_commands_to_breakpoint): Likewise.
8561 (check_breakpoints): Check other_breakpoint.
8562 (clone_one_breakpoint): Clone breakpopint according to its type.
8563 * mem-break.h (struct gdb_breakpoint): Declare.
8564 (set_gdb_breakpoint): Update declaration.
8565 (clear_breakpoint_conditions_and_commands): Likewise.
8566 (add_breakpoint_condition): Likewise.
8567 (add_breakpoint_commands): Likewise.
8568 * server.c (process_point_options): Change parameter type to
8569 'struct gdb_breakpoint *'.
8571 2016-07-21 Yao Qi <yao.qi@linaro.org>
8573 * mem-break.c (set_breakpoint_at): Rename it to ...
8574 (set_breakpoint_type_at): ... it.
8575 (set_breakpoint_at): Call set_breakpoint_type_at.
8576 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8577 * mem-break.h (set_breakpoint_at): Update comments.
8579 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8581 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8583 (nios2_store_gregset): Likewise.
8585 2016-07-01 Pedro Alves <palves@redhat.com>
8586 Antoine Tremblay <antoine.tremblay@ericsson.com>
8588 * linux-low.c: Change interface to take the target lwp_info
8589 pointer directly and return void. Handle detaching from a zombie
8591 (linux_detach_lwp_callback): New function.
8592 (linux_detach): Detach from the leader thread after detaching from
8595 2016-06-28 Yao Qi <yao.qi@linaro.org>
8597 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8598 for variable new_offset.
8599 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8600 (aarch64_ftrace_insn_reloc_cb): Likewise.
8601 (aarch64_ftrace_insn_reloc_tb): Likewise.
8602 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8603 PRIx64 instead of PRIx32.
8605 2016-06-28 Yao Qi <yao.qi@linaro.org>
8607 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8608 (the_low_target): Install arm_get_syscall_trapinfo.
8610 2016-06-28 Yao Qi <yao.qi@linaro.org>
8612 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8614 (the_low_target): Install aarch64_get_syscall_trapinfo.
8616 2016-06-28 Yao Qi <yao.qi@linaro.org>
8618 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8620 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8621 Remove parameter sysno.
8622 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8625 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8627 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8628 (s390_emit_ne_goto): Likewise.
8629 (s390_emit_lt_goto): Likewise.
8630 (s390_emit_le_goto): Likewise.
8631 (s390_emit_gt_goto): Likewise.
8632 (s390_emit_ge_goto): Likewise.
8633 (s390x_emit_eq_goto): Likewise.
8634 (s390x_emit_ne_goto): Likewise.
8635 (s390x_emit_lt_goto): Likewise.
8636 (s390x_emit_le_goto): Likewise.
8637 (s390x_emit_gt_goto): Likewise.
8638 (s390x_emit_ge_goto): Likewise.
8639 (s390_emit_ops_impl): Mark variable static.
8640 (s390x_emit_ops): Likewise.
8642 2016-06-17 Yao Qi <yao.qi@linaro.org>
8644 * linux-low.c (handle_extended_wait): Call
8645 uninsert_reinsert_breakpoints for the parent process. Remove
8646 reinsert breakpoints from the child process. Reinsert them to
8647 the parent process when vfork is done.
8648 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8649 (reinsert_reinsert_breakpoints): New function.
8650 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8651 (reinsert_reinsert_breakpoints): Declare.
8653 2016-06-17 Yao Qi <yao.qi@linaro.org>
8655 * linux-low.c (handle_extended_wait): If the parent is doing
8656 step-over, remove the reinsert breakpoints from the forked child.
8658 2016-06-17 Yao Qi <yao.qi@linaro.org>
8660 * linux-low.c (unsuspend_all_lwps): Declare.
8661 (linux_low_filter_event): If thread exited, call finish_step_over.
8662 If step-over is finished, unsuspend other threads.
8664 2016-06-17 Yao Qi <yao.qi@linaro.org>
8666 * linux-low.c (linux_resume_one_lwp_throw): Assert
8667 has_reinsert_breakpoints returns false.
8668 * mem-break.c (delete_disabled_breakpoints): Assert
8669 bp type isn't reinsert_breakpoint.
8671 2016-06-17 Yao Qi <yao.qi@linaro.org>
8673 * linux-low.c (maybe_hw_step): New function.
8674 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8675 (finish_step_over): Switch current_thread to lwp temporarily,
8676 and assert has_reinsert_breakpoints returns true.
8677 (proceed_one_lwp): Call maybe_hw_step.
8678 * mem-break.c (has_reinsert_breakpoints): New function.
8679 * mem-break.h (has_reinsert_breakpoints): Declare.
8681 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8683 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8685 2016-05-17 Yao Qi <yao.qi@linaro.org>
8687 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8688 instead of find_inferior.
8690 2016-05-05 Yao Qi <yao.qi@linaro.org>
8692 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8693 Initialize res to zero.
8695 2016-05-05 Yao Qi <yao.qi@linaro.org>
8697 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8700 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8702 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8703 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8704 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8706 2016-04-28 Par Olsson <par.olsson@windriver.com>
8707 Simon Marchi <simon.marchi@ericsson.com>
8709 * tracepoint.c (write_inferior_int8): New function.
8710 (cmd_qtenable_disable): Write enable flag using
8711 write_inferior_int8.
8713 2016-04-25 Yao Qi <yao.qi@linaro.org>
8715 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8716 (need_step_over_p): Return zero if the LWP has pending signals
8717 can be delivered on software single step target.
8719 2016-04-25 Yao Qi <yao.qi@linaro.org>
8721 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8722 return instead of error.
8724 2016-04-22 Yao Qi <yao.qi@linaro.org>
8726 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8729 2016-04-22 Yao Qi <yao.qi@linaro.org>
8731 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8732 signal when stepping over breakpoint with software single
8735 2016-04-21 Pedro Alves <palves@redhat.com>
8737 * linux-s390-low.c (s390_collect_ptrace_register)
8738 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8740 (s390_check_regset): Use void * instead of gdb_byte *.
8742 2016-04-20 Pedro Alves <palves@redhat.com>
8744 * configure: Renegerate.
8746 2016-04-20 Yao Qi <yao.qi@linaro.org>
8748 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8749 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8751 (arm_store_gregset): Likewise.
8753 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8755 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8756 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8757 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8758 (amd64-avx-mpx-linux.c): New rules.
8759 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8760 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8761 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8762 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8763 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8764 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8765 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8766 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8767 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8768 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8769 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8770 * linux-x86-low.c (x86_linux_read_description): Add case for
8771 X86_XSTATE_AVX_MPX_MASK.
8772 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8773 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8774 init_registers_i386_avx_mpx_linux.
8775 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8776 (initialize_low_tracepoint): Call
8777 init_registers_i386_avx_mpx_linux.
8778 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8779 (initialize_low_tracepoint): Call
8780 init_registers_amd64_avx_mpx_linux.
8781 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8782 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8783 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8786 2016-04-18 Pedro Alves <palves@redhat.com>
8788 * configure: Regenerate.
8790 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8792 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8793 (aarch64_emit_sub): Likewise.
8795 2016-04-12 Pedro Alves <palves@redhat.com>
8797 * utils.c (prepare_to_throw_exception): Delete.
8799 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8801 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8803 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8805 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8807 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8809 * linux-aarch64-ipa.c: Add <elf.h> include.
8810 * linux-ppc-ipa.c: Add <elf.h> include.
8811 * linux-s390-ipa.c: Add <elf.h> include.
8813 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8815 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8816 (get_raw_reg_ptr): Likewise.
8817 (get_trace_state_variable_value_ptr): Likewise.
8818 (set_trace_state_variable_value_ptr): Likewise.
8819 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8822 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8823 Marcin Kościelnicki <koriakin@0x04.net>
8826 * linux-ppc-low.c (emit_insns): New function.
8827 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8828 (ppc_emit_prologue): New function.
8829 (ppc_emit_epilogue): New function.
8830 (ppc_emit_add): New function.
8831 (ppc_emit_sub): New function.
8832 (ppc_emit_mul): New function.
8833 (ppc_emit_lsh): New function.
8834 (ppc_emit_rsh_signed): New function.
8835 (ppc_emit_rsh_unsigned): New function.
8836 (ppc_emit_ext): New function.
8837 (ppc_emit_zero_ext): New function.
8838 (ppc_emit_log_not): New function.
8839 (ppc_emit_bit_and): New function.
8840 (ppc_emit_bit_or): New function.
8841 (ppc_emit_bit_xor): New function.
8842 (ppc_emit_bit_not): New function.
8843 (ppc_emit_equal): New function.
8844 (ppc_emit_less_signed): New function.
8845 (ppc_emit_less_unsigned): New function.
8846 (ppc_emit_ref): New function.
8847 (ppc_emit_const): New function.
8848 (ppc_emit_reg): New function.
8849 (ppc_emit_pop): New function.
8850 (ppc_emit_stack_flush): New function.
8851 (ppc_emit_swap): New function.
8852 (ppc_emit_stack_adjust): New function.
8853 (ppc_emit_call): New function.
8854 (ppc_emit_int_call_1): New function.
8855 (ppc_emit_void_call_2): New function.
8856 (ppc_emit_if_goto): New function.
8857 (ppc_emit_goto): New function.
8858 (ppc_emit_eq_goto): New function.
8859 (ppc_emit_ne_goto): New function.
8860 (ppc_emit_lt_goto): New function.
8861 (ppc_emit_le_goto): New function.
8862 (ppc_emit_gt_goto): New function.
8863 (ppc_emit_ge_goto): New function.
8864 (ppc_write_goto_address): New function.
8865 (ppc_emit_ops_impl): New static variable.
8866 (ppc64v1_emit_prologue): New function.
8867 (ppc64v2_emit_prologue): New function.
8868 (ppc64_emit_epilogue): New function.
8869 (ppc64_emit_add): New function.
8870 (ppc64_emit_sub): New function.
8871 (ppc64_emit_mul): New function.
8872 (ppc64_emit_lsh): New function.
8873 (ppc64_emit_rsh_signed): New function.
8874 (ppc64_emit_rsh_unsigned): New function.
8875 (ppc64_emit_ext): New function.
8876 (ppc64_emit_zero_ext): New function.
8877 (ppc64_emit_log_not): New function.
8878 (ppc64_emit_bit_and): New function.
8879 (ppc64_emit_bit_or): New function.
8880 (ppc64_emit_bit_xor): New function.
8881 (ppc64_emit_bit_not): New function.
8882 (ppc64_emit_equal): New function.
8883 (ppc64_emit_less_signed): New function.
8884 (ppc64_emit_less_unsigned): New function.
8885 (ppc64_emit_ref): New function.
8886 (ppc64_emit_const): New function.
8887 (ppc64v1_emit_reg): New function.
8888 (ppc64v2_emit_reg): New function.
8889 (ppc64_emit_pop): New function.
8890 (ppc64_emit_stack_flush): New function.
8891 (ppc64_emit_swap): New function.
8892 (ppc64v1_emit_call): New function.
8893 (ppc64v2_emit_call): New function.
8894 (ppc64v1_emit_int_call_1): New function.
8895 (ppc64v2_emit_int_call_1): New function.
8896 (ppc64v1_emit_void_call_2): New function.
8897 (ppc64v2_emit_void_call_2): New function.
8898 (ppc64_emit_if_goto): New function.
8899 (ppc64_emit_eq_goto): New function.
8900 (ppc64_emit_ne_goto): New function.
8901 (ppc64_emit_lt_goto): New function.
8902 (ppc64_emit_le_goto): New function.
8903 (ppc64_emit_gt_goto): New function.
8904 (ppc64_emit_ge_goto): New function.
8905 (ppc64v1_emit_ops_impl): New static variable.
8906 (ppc64v2_emit_ops_impl): New static variable.
8907 (ppc_emit_ops): New function.
8908 (linux_low_target): Wire in ppc_emit_ops.
8910 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8911 Marcin Kościelnicki <koriakin@0x04.net>
8914 * Makefile.in: Add powerpc-*-ipa.o
8915 * configure.srv: Add ipa_obj for powerpc*-linux.
8916 * linux-ppc-ipa.c: New file.
8917 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8919 (PPC_FIELD): New macro.
8920 (PPC_SEXT): New macro.
8921 (PPC_OP6): New macro.
8922 (PPC_BO): New macro.
8923 (PPC_LI): New macro.
8924 (PPC_BD): New macro.
8925 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8926 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8927 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8928 (ppc_get_thread_area): New function.
8929 (is_elfv2_inferior): New function.
8930 (gen_ds_form): New function.
8931 (GEN_STD): New macro.
8932 (GEN_STDU): New macro.
8933 (GEN_LD): New macro.
8934 (GEN_LDU): New macro.
8935 (gen_d_form): New function.
8936 (GEN_ADDI): New macro.
8937 (GEN_ADDIS): New macro.
8938 (GEN_LI): New macro.
8939 (GEN_LIS): New macro.
8940 (GEN_ORI): New macro.
8941 (GEN_ORIS): New macro.
8942 (GEN_LWZ): New macro.
8943 (GEN_STW): New macro.
8944 (GEN_STWU): New macro.
8945 (gen_xfx_form): New function.
8946 (GEN_MFSPR): New macro.
8947 (GEN_MTSPR): New macro.
8948 (GEN_MFCR): New macro.
8949 (GEN_MTCR): New macro.
8950 (GEN_SYNC): New macro.
8951 (GEN_LWSYNC): New macro.
8952 (gen_x_form): New function.
8953 (GEN_OR): New macro.
8954 (GEN_MR): New macro.
8955 (GEN_LWARX): New macro.
8956 (GEN_STWCX): New macro.
8957 (GEN_CMPW): New macro.
8958 (gen_md_form): New function.
8959 (GEN_RLDICL): New macro.
8960 (GEN_RLDICR): New macro.
8961 (gen_i_form): New function.
8963 (GEN_BL): New macro.
8964 (gen_b_form): New function.
8965 (GEN_BNE): New macro.
8966 (GEN_LOAD): New macro.
8967 (GEN_STORE): New macro.
8968 (gen_limm): New function.
8969 (gen_atomic_xchg): New function.
8970 (gen_call): New function.
8971 (ppc_relocate_instruction): New function.
8972 (ppc_install_fast_tracepoint_jump_pad): New function.
8973 (ppc_get_min_fast_tracepoint_insn_len): New function.
8974 (ppc_get_ipa_tdesc_idx): New function.
8975 (the_low_target): Wire in the new functions.
8976 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8978 * linux-ppc-tdesc.h: New file.
8980 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8982 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8983 (alloc_jump_pad_buffer): New function.
8984 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8985 (alloc_jump_pad_buffer): New function.
8986 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8987 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8988 (alloc_jump_pad_buffer): New function.
8989 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8990 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8991 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8992 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8994 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8996 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8997 * linux-amd64-ipa.c: Likewise.
8998 * linux-i386-ipa.c: Likewise.
8999 * linux-s390-ipa.c: Likewise.
9000 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9001 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9002 set_trace_state_variable_value_ptr.
9003 (struct ipa_sym_addresses): Likewise.
9004 (symbol_list): Likewise.
9005 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9006 accessing gdb_collect directly.
9007 (gdb_collect_ptr_type): New typedef.
9008 (get_raw_reg_ptr_type): New typedef.
9009 (get_trace_state_variable_value_ptr_type): New typedef.
9010 (set_trace_state_variable_value_ptr_type): New typedef.
9011 (gdb_collect_ptr): New global.
9012 (get_raw_reg_ptr): New global.
9013 (get_trace_state_variable_value_ptr): New global.
9014 (set_trace_state_variable_value_ptr): New global.
9015 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9016 accessing get_raw_reg directly.
9017 (get_get_tsv_func_addr): Likewise for
9018 get_trace_state_variable_value_ptr.
9019 (get_set_tsv_func_addr): Likewise for
9020 set_trace_state_variable_value_ptr.
9021 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9023 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9025 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9027 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9029 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9031 (relocate_instruction): Remove own_buf.
9032 * server.c (own_buf): Make global.
9033 (handle_v_requests): Make global.
9034 * server.h (own_buf): New declaration.
9035 (handle_v_requests): New prototype.
9037 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9040 * linux-s390-low.c (add_insns): New function.
9041 (s390_emit_prologue): New function.
9042 (s390_emit_epilogue): New function.
9043 (s390_emit_add): New function.
9044 (s390_emit_sub): New function.
9045 (s390_emit_mul): New function.
9046 (s390_emit_lsh): New function.
9047 (s390_emit_rsh_signed): New function.
9048 (s390_emit_rsh_unsigned): New function.
9049 (s390_emit_ext): New function.
9050 (s390_emit_log_not): New function.
9051 (s390_emit_bit_and): New function.
9052 (s390_emit_bit_or): New function.
9053 (s390_emit_bit_xor): New function.
9054 (s390_emit_bit_not): New function.
9055 (s390_emit_equal): New function.
9056 (s390_emit_less_signed): New function.
9057 (s390_emit_less_unsigned): New function.
9058 (s390_emit_ref): New function.
9059 (s390_emit_if_goto): New function.
9060 (s390_emit_goto): New function.
9061 (s390_write_goto_address): New function.
9062 (s390_emit_litpool): New function.
9063 (s390_emit_const): New function.
9064 (s390_emit_call): New function.
9065 (s390_emit_reg): New function.
9066 (s390_emit_pop): New function.
9067 (s390_emit_stack_flush): New function.
9068 (s390_emit_zero_ext): New function.
9069 (s390_emit_swap): New function.
9070 (s390_emit_stack_adjust): New function.
9071 (s390_emit_set_r2): New function.
9072 (s390_emit_int_call_1): New function.
9073 (s390_emit_void_call_2): New function.
9074 (s390_emit_eq_goto): New function.
9075 (s390_emit_ne_goto): New function.
9076 (s390_emit_lt_goto): New function.
9077 (s390_emit_le_goto): New function.
9078 (s390_emit_gt_goto): New function.
9079 (s390_emit_ge_goto): New function.
9080 (s390x_emit_prologue): New function.
9081 (s390x_emit_epilogue): New function.
9082 (s390x_emit_add): New function.
9083 (s390x_emit_sub): New function.
9084 (s390x_emit_mul): New function.
9085 (s390x_emit_lsh): New function.
9086 (s390x_emit_rsh_signed): New function.
9087 (s390x_emit_rsh_unsigned): New function.
9088 (s390x_emit_ext): New function.
9089 (s390x_emit_log_not): New function.
9090 (s390x_emit_bit_and): New function.
9091 (s390x_emit_bit_or): New function.
9092 (s390x_emit_bit_xor): New function.
9093 (s390x_emit_bit_not): New function.
9094 (s390x_emit_equal): New function.
9095 (s390x_emit_less_signed): New function.
9096 (s390x_emit_less_unsigned): New function.
9097 (s390x_emit_ref): New function.
9098 (s390x_emit_if_goto): New function.
9099 (s390x_emit_const): New function.
9100 (s390x_emit_call): New function.
9101 (s390x_emit_reg): New function.
9102 (s390x_emit_pop): New function.
9103 (s390x_emit_stack_flush): New function.
9104 (s390x_emit_zero_ext): New function.
9105 (s390x_emit_swap): New function.
9106 (s390x_emit_stack_adjust): New function.
9107 (s390x_emit_int_call_1): New function.
9108 (s390x_emit_void_call_2): New function.
9109 (s390x_emit_eq_goto): New function.
9110 (s390x_emit_ne_goto): New function.
9111 (s390x_emit_lt_goto): New function.
9112 (s390x_emit_le_goto): New function.
9113 (s390x_emit_gt_goto): New function.
9114 (s390x_emit_ge_goto): New function.
9115 (s390_emit_ops): New function.
9116 (struct linux_target_ops): Fill in emit_ops hook.
9118 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9121 * Makefile.in: Add s390 IPA files.
9122 * configure.srv: Build IPA for s390.
9123 * linux-s390-ipa.c: New file.
9124 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9125 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9126 (tdesc_s390_linux32): Likewise.
9127 (init_registers_s390_linux32v1): Likewise.
9128 (tdesc_s390_linux32v1): Likewise.
9129 (init_registers_s390_linux32v2): Likewise.
9130 (tdesc_s390_linux32v2): Likewise.
9131 (init_registers_s390_linux64): Likewise.
9132 (tdesc_s390_linux64): Likewise.
9133 (init_registers_s390_linux64v1): Likewise.
9134 (tdesc_s390_linux64v1): Likewise.
9135 (init_registers_s390_linux64v2): Likewise.
9136 (tdesc_s390_linux64v2): Likewise.
9137 (init_registers_s390_te_linux64): Likewise.
9138 (tdesc_s390_te_linux64): Likewise.
9139 (init_registers_s390_vx_linux64): Likewise.
9140 (tdesc_s390_vx_linux64): Likewise.
9141 (init_registers_s390_tevx_linux64): Likewise.
9142 (tdesc_s390_tevx_linux64): Likewise.
9143 (init_registers_s390x_linux64): Likewise.
9144 (tdesc_s390x_linux64): Likewise.
9145 (init_registers_s390x_linux64v1): Likewise.
9146 (tdesc_s390x_linux64v1): Likewise.
9147 (init_registers_s390x_linux64v2): Likewise.
9148 (tdesc_s390x_linux64v2): Likewise.
9149 (init_registers_s390x_te_linux64): Likewise.
9150 (tdesc_s390x_te_linux64): Likewise.
9151 (init_registers_s390x_vx_linux64): Likewise.
9152 (tdesc_s390x_vx_linux64): Likewise.
9153 (init_registers_s390x_tevx_linux64): Likewise.
9154 (tdesc_s390x_tevx_linux64): Likewise.
9155 (have_hwcap_s390_vx): New static variable.
9156 (s390_arch_setup): Fill have_hwcap_s390_vx.
9157 (s390_get_thread_area): New function.
9158 (s390_ft_entry_gpr_esa): New const.
9159 (s390_ft_entry_gpr_zarch): New const.
9160 (s390_ft_entry_misc): New const.
9161 (s390_ft_entry_fr): New const.
9162 (s390_ft_entry_vr): New const.
9163 (s390_ft_main_31): New const.
9164 (s390_ft_main_64): New const.
9165 (s390_ft_exit_fr): New const.
9166 (s390_ft_exit_vr): New const.
9167 (s390_ft_exit_misc): New const.
9168 (s390_ft_exit_gpr_esa): New const.
9169 (s390_ft_exit_gpr_zarch): New const.
9170 (append_insns): New function.
9171 (s390_relocate_instruction): New function.
9172 (s390_install_fast_tracepoint_jump_pad): New function.
9173 (s390_get_min_fast_tracepoint_insn_len): New function.
9174 (s390_get_ipa_tdesc_idx): New function.
9175 (struct linux_target_ops): Wire in the above functions.
9176 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9177 * linux-s390-tdesc.h: New file.
9179 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9181 * linux-s390-low.c (s390_supports_tracepoints): New function.
9182 (struct linux_target_ops): Fill supports_tracepoints hook.
9184 2016-03-18 Yao Qi <yao.qi@linaro.org>
9186 * linux-low.c (lwp_signal_can_be_delivered): New function.
9187 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9189 2016-03-18 Yao Qi <yao.qi@linaro.org>
9191 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9192 0 if signal is enqueued. Remove 'signal' from one debugging
9193 message. Move one debugging message to some lines below.
9194 Remove code setting 'signal' to 0.
9196 2016-03-18 Yao Qi <yao.qi@linaro.org>
9198 * linux-low.c (linux_low_filter_event): Remove redundant
9199 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9201 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9203 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9204 (struct linux_target_ops): Wire in the above.
9206 2016-03-03 Yao Qi <yao.qi@linaro.org>
9208 * linux-low.c: Update comments to start_step_over.
9210 2016-03-03 Yao Qi <yao.qi@linaro.org>
9213 * linux-low.c (handle_extended_wait): Set child suspended
9214 if event_lwp->bp_reinsert isn't zero.
9216 2016-03-02 Yao Qi <yao.qi@linaro.org>
9218 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9219 enqueue_pending_signal.
9221 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9223 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9226 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9228 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9229 (s390_regmap_3264) [!__s390x__]: New global.
9230 (s390_collect_ptrace_register): Skip map entries containing -1.
9231 (s390_supply_ptrace_register): Ditto.
9232 (s390_fill_gprs_high): New function.
9233 (s390_store_gprs_high): New function.
9234 (s390_regsets): Add NT_S390_HIGH_GPRS.
9235 (s390_get_hwcap): Enable on 31-bit.
9236 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9237 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9238 Detect NT_S390_HIGH_GPRS.
9239 (s390_usrregs_info_3264): Enable on 31-bit.
9240 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9241 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9243 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9246 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9247 * configure.srv: Ditto.
9248 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9249 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9250 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9251 (init_registers_amd64_linux): Remove prototype.
9252 (tdesc_amd64_linux): Remove declaration.
9253 (get_ipa_tdesc): New function.
9254 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9255 initialize remaining tdescs.
9256 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9257 (init_registers_i386_linux): Remove prototype.
9258 (tdesc_i386_linux): Remove declaration.
9259 (get_ipa_tdesc): New function.
9260 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9261 initialize remaining tdescs.
9262 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9263 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9264 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9265 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9266 (x86_get_ipa_tdesc_idx): New function.
9267 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9268 * linux-x86-tdesc.h: New file.
9269 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9270 (target_get_ipa_tdesc_idx): New macro.
9271 * tracepoint.c (ipa_tdesc_idx): New macro.
9272 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9273 (symbol_list): Add ipa_tdesc_idx.
9274 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9275 (ipa_tdesc): Remove.
9276 (ipa_tdesc_idx): New variable.
9277 (get_context_regcache): Use get_ipa_tdesc.
9278 (gdb_collect): Ditto.
9280 * tracepoint.h (get_ipa_tdesc): New prototype.
9281 (ipa_tdesc): Remove.
9283 2016-02-24 Pedro Alves <palves@redhat.com>
9285 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9286 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9287 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9288 Factor out common code between the USE_SIGTRAP_SIGINFO and
9289 !USE_SIGTRAP_SIGINFO blocks.
9290 (linux_low_filter_event): Call save_stop_reason instead of
9291 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9293 (linux_wait_1): Update comments.
9295 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9297 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9298 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9299 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9300 ppc_insert_point, ppc_remove_point.
9302 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9304 * linux-s390-low.c (s390_supports_z_point_type): New function.
9305 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9307 2016-02-16 Yao Qi <yao.qi@linaro.org>
9309 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9310 PC. Get pc from regcache_read_pc.
9312 2016-02-12 Yao Qi <yao.qi@linaro.org>
9314 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9315 or linux_get_pc_32bit.
9316 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9318 2016-02-12 Yao Qi <yao.qi@linaro.org>
9320 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9321 arm_linux_get_next_pcs_fixup.
9323 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9325 * tracepoint.c (x_tracepoint_action_download): Change
9326 write_inferior_data_ptr to write_inferior_data_pointer.
9327 (cmd_qtstart): Likewise.
9328 (write_inferior_data_ptr): Remove.
9329 (download_agent_expr): Change write_inferior_data_ptr to
9330 write_inferior_data_pointer.
9331 (download_tracepoint_1): Likewise.
9332 (download_tracepoint): Likewise.
9333 (download_trace_state_variables): Likewise.
9335 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9336 Marcin Kościelnicki <koriakin@0x04.net>
9338 * tracepoint.c (struct tracepoint_action_ops): Remove.
9339 (struct tracepoint_action): Remove ops.
9340 (m_tracepoint_action_download, r_tracepoint_action_download)
9341 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9342 size and offset accordingly.
9343 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9344 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9345 (tracepoint_action_send, tracepoint_action_download): New functions.
9346 Helpers for trace action handlers.
9347 (add_tracepoint_action): Remove setup actions ops.
9348 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9350 2016-02-10 Yao Qi <yao.qi@linaro.org>
9352 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9354 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9356 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9358 * configure: Regenerate.
9360 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9362 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9363 void * to gdb_byte *.
9364 * linux-low.c (siginfo_fixup): Likewise.
9365 (linux_xfer_siginfo): Likewise.
9366 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9368 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9370 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9372 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9374 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9376 * linux-x86-low.c [__x86_64__]: Include
9377 "nat/amd64-linux-siginfo.h".
9378 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9379 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9380 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9381 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9382 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9383 (cpt_si_fd, si_timerid, si_overrun): Move from
9384 nat/amd64-linux-siginfo.c.
9385 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9387 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9389 * server.c (skip_to_semicolon): Remove.
9390 (process_point_options): Use strchrnul instead of
9393 2016-01-26 Yao Qi <yao.qi@linaro.org>
9395 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9396 * linux-low.c (install_software_single_step_breakpoints): Don't
9397 call regcache_read_pc.
9398 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9401 2016-01-26 Yao Qi <yao.qi@linaro.org>
9403 * linux-low.c (install_software_single_step_breakpoints): Call
9404 regcache_read_pc instead of get_pc.
9406 2016-01-26 Yao Qi <yao.qi@linaro.org>
9408 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9409 (unblock_async_io): Rename to ...
9410 (block_unblock_async_io): ... it. New function.
9411 (enable_async_io): Don't install SIGIO handler. Unblock it
9413 (disable_async_io): Don't ignore SIGIO. Block it instead.
9414 (initialize_async_io): Install SIGIO handler. Don't call
9417 2016-01-26 Yao Qi <yao.qi@linaro.org>
9419 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9420 first character is '\003', call *the_target->request_interrupt.
9422 2016-01-25 Yao Qi <yao.qi@linaro.org>
9424 * remote-utils.c (new_thread_notify): Remove.
9425 (dead_thread_notify): Likewise.
9426 * remote-utils.h (new_thread_notify): Remove declaration.
9427 (dead_thread_notify): Likewise.
9429 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9431 * gdb.trace/pending.exp: Fix expected message on continue.
9433 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9435 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9436 it works properly on big-endian machines where sizeof (CORE_ADDR)
9439 2016-01-21 Pedro Alves <palves@redhat.com>
9441 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9442 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9443 * configure: Regenerate.
9445 2016-01-21 Yao Qi <yao.qi@linaro.org>
9447 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9448 is_thumb and set it according to CPSR saved on the stack.
9449 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9450 arm_sigreturn_next_pc.
9452 2016-01-18 Yao Qi <yao.qi@linaro.org>
9454 * linux-low.c (linux_set_pc_64bit): New function.
9455 (linux_get_pc_64bit): New function.
9456 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9458 * linux-sparc-low.c (debug_threads): Remove declaration.
9459 (sparc_get_pc): Remove.
9460 (the_low_target): Use linux_get_pc_64bit instead of
9462 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9463 (the_low_target): Use linux_get_pc_64bit and
9466 2016-01-18 Yao Qi <yao.qi@linaro.org>
9468 * linux-arm-low.c (debug_threads): Remove declaration.
9469 (arm_get_pc, arm_set_pc): Remove.
9470 (the_low_target): Use linux_get_pc_32bit and
9472 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9473 (the_low_target): Use linux_get_pc_32bit and
9475 * linux-cris-low.c (debug_threads): Remove declaration.
9476 (cris_get_pc, cris_set_pc,): Remove.
9477 (the_low_target): Use linux_get_pc_32bit and
9479 * linux-crisv32-low.c (debug_threads): Remove declaration.
9480 (cris_get_pc, cris_set_pc): Remove.
9481 (the_low_target): Use linux_get_pc_32bit and
9483 * linux-low.c: Include inttypes.h.
9484 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9485 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9486 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9487 (the_low_target): Use linux_get_pc_32bit and
9489 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9490 (the_low_target): Use linux_get_pc_32bit and
9492 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9493 (the_low_target): Use linux_get_pc_32bit and
9495 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9496 (the_low_target): Use linux_get_pc_32bit and
9498 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9499 (the_low_target): Use linux_get_pc_32bit and
9502 2016-01-18 Gary Benson <gbenson@redhat.com>
9504 * configure.ac (AC_FUNC_FORK): New check.
9505 * config.in: Regenerate.
9506 * configure: Likewise.
9508 2016-01-14 Yao Qi <yao.qi@linaro.org>
9510 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9511 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9512 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9513 arm_get_next_pcs_ctor.
9515 2016-01-12 Josh Stone <jistone@redhat.com>
9516 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9518 * inferiors.h: Include "gdb_vecs.h".
9519 (struct process_info): Add syscalls_to_catch.
9520 * inferiors.c (remove_process): Free syscalls_to_catch.
9521 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9522 syscall_return stops.
9523 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9524 * server.c (handle_general_set): Handle QCatchSyscalls.
9525 (handle_query): Report support for QCatchSyscalls.
9526 * target.h (struct target_ops): Add supports_catch_syscall.
9527 (target_supports_catch_syscall): New macro.
9528 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9529 (struct lwp_info): Add syscall_state.
9530 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9531 Maintain syscall_state and syscalls_to_catch across exec.
9532 (get_syscall_trapinfo): New function, proxy to the_low_target.
9533 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9534 (linux_low_filter_event): Toggle syscall_state entry/return for
9535 syscall traps, and set it ignored for all others.
9536 (gdb_catching_syscalls_p): New function.
9537 (gdb_catch_this_syscall_p): New function.
9538 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9539 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9540 (linux_supports_catch_syscall): New function.
9541 (linux_target_ops): Install it.
9542 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9543 (the_low_target): Install it.
9545 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9547 * acinclude.m4: Include new ../warning.m4 file.
9548 * configure: Regenerated.
9549 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9551 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9553 * ax.c (is_goto_target): Mark static.
9554 * linux-low.c (register_addr): Likewise.
9555 (linux_fetch_registers, linux_store_registers): Likewise.
9556 * mem-break.c (any_persistent_commands): Fix old prototype.
9557 (add_commands_to_breakpoint): Mark static.
9558 * regcache.c (find_register_by_name): Delete unused func.
9559 * remote-utils.c (hex_or_minus_one): Mark static.
9560 * server.c (monitor_show_help): Mark static.
9561 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9562 handle_v_requests): Likewise.
9564 2016-01-12 Pedro Alves <palves@redhat.com>
9566 Remove use of the registered trademark symbol throughout.
9568 2016-01-08 Yao Qi <yao.qi@linaro.org>
9570 * remote-utils.c (getpkt): If c is '\003', call target hook
9573 2016-01-06 Yao Qi <yao.qi@linaro.org>
9575 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9576 linux-aarch32-low.c.
9577 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9578 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9579 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9580 (thumb2_breakpoint): Declare.
9581 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9582 linux-aarch32-low.h.
9583 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9584 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9585 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9587 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9589 * gdbreplay.c (gdbreplay_version): Change copyright year in
9591 * server.c (gdbserver_version): Likewise.
9593 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9595 * server.c (crc32_table): Delete.
9596 (crc32): Use libiberty's xcrc32 function.
9598 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9600 * lynx-low.c (lynx_delete_thread_callback): New function.
9601 (lynx_mourn): Properly delete our process and all of its
9602 threads. Remove call to clear_inferiors.
9604 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9606 * target.c (thread_search_callback): Add check that
9607 the thread_stopped target callback is not NULL before
9610 2015-12-21 Yao Qi <yao.qi@linaro.org>
9612 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9615 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9617 * server.c (handle_query): Call target_supports_software_single_step.
9619 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9621 * linux-low.c (single_step): New function.
9622 (linux_resume_one_lwp_throw): Call single_step.
9623 (start_step_over): Likewise.
9625 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9627 * Makefile.in (SFILES): Append arch/arm-linux.c,
9628 arch/arm-get-next-pcs.c.
9629 (arm-linux.o): New rule.
9630 (arm-get-next-pcs.o): New rule.
9631 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9633 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9634 to linux-aarch32-low.c.
9635 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9636 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9637 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9638 (thumb2_breakpoint_len): Likewise.
9639 (arm_is_thumb_mode): Make non-static.
9640 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9641 from linux-aarch32-low.c.
9642 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9643 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9644 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9645 (thumb2_breakpoint_len): Likewise.
9646 (arm_is_thumb_mode): New declaration.
9647 * linux-arm-low.c: Include arch/arm-linux.h
9648 aarch/arm-get-next-pcs.h, sys/syscall.h.
9649 (get_next_pcs_ops): New struct.
9650 (get_next_pcs_addr_bits_remove): New function.
9651 (get_next_pcs_is_thumb): New function.
9652 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9653 (arm_sigreturn_next_pc): Likewise.
9654 (get_next_pcs_syscall_next_pc): Likewise.
9655 (arm_gdbserver_get_next_pcs): Likewise.
9656 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9658 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9659 * server.h: Include gdb_vecs.h.
9661 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9663 * Makefile.in (SFILES): Append common/common-regcache.c.
9664 (OBS): Append common-regcache.o.
9665 (common-regcache.o): New rule.
9666 * regcache.c (init_register_cache): Initialize cache to
9668 (regcache_raw_read_unsigned): New function.
9669 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9670 register_status enum.
9672 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9674 * linux-aarch64-low.c (the_low_targets): Rename
9675 breakpoint_reinsert_addr to get_next_pcs.
9676 * linux-arm-low.c (the_low_targets): Likewise.
9677 * linux-bfin-low.c (the_low_targets): Likewise.
9678 * linux-cris-low.c (the_low_targets): Likewise.
9679 * linux-crisv32-low.c (the_low_targets): Likewise.
9680 * linux-low.c (can_software_single_step): Likewise.
9681 (install_software_single_step_breakpoints): New function.
9682 (start_step_over): Use install_software_single_step_breakpoints.
9683 * linux-low.h: New CORE_ADDR vector.
9684 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9686 * linux-mips-low.c (the_low_targets): Likewise.
9687 * linux-nios2-low.c (the_low_targets): Likewise.
9688 * linux-sparc-low.c (the_low_targets): Likewise.
9690 2015-12-17 Pedro Alves <palves@redhat.com>
9692 * linux-low.c (linux_kill_one_lwp): Remove references to
9694 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9696 (linux_init_signals): Delete.
9697 (initialize_low): Adjust.
9698 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9700 2015-12-16 Pedro Alves <palves@redhat.com>
9702 * configure.ac (compiler warning flags): When testing a
9703 -Wno-foo option, check whether -Wfoo works instead.
9704 * configure: Regenerate.
9706 2015-12-11 Don Breazeal <donb@codesourcery.com>
9708 * server.c (process_serial_event): Don't exit from gdbserver
9709 in remote mode if there are still active inferiors.
9711 2015-12-11 Yao Qi <yao.qi@linaro.org>
9713 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9714 arm_breakpoint_at if the process is 32-bit.
9716 2015-12-11 Yao Qi <yao.qi@linaro.org>
9718 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9721 2015-12-07 Yao Qi <yao.qi@linaro.org>
9723 * configure.srv: Append arm.o to srv_tgtobj for
9724 aarch64*-*-linux* target.
9725 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9726 from linux-arm-low.c.
9727 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9728 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9729 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9730 (thumb2_breakpoint_len): Likewise.
9731 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9732 (arm_breakpoint_kinds): Likewise.
9733 (arm_breakpoint_kind_from_pc): Likewise.
9734 (arm_sw_breakpoint_from_kind): Likewise.
9735 (arm_breakpoint_kind_from_current_state): Likewise.
9736 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9737 (arm_sw_breakpoint_from_kind): Declare.
9738 (arm_breakpoint_kind_from_current_state): Declare.
9739 (arm_breakpoint_at): Declare.
9740 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9741 arm_sw_breakpoint_from_kind if process is 32-bit.
9742 (aarch64_breakpoint_kind_from_pc): New function.
9743 (aarch64_breakpoint_kind_from_current_state): New function.
9744 (the_low_target): Initialize fields breakpoint_kind_from_pc
9745 and breakpoint_kind_from_current_state.
9746 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9747 linux-aarch32-low.c.
9748 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9749 (arm_breakpoint, arm_breakpoint_len): Likewise.
9750 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9751 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9752 (arm_is_thumb_mode): Likewise.
9753 (arm_breakpoint_at): Likewise.
9754 (arm_breakpoint_kind_from_pc): Likewise.
9755 (arm_sw_breakpoint_from_kind): Likewise.
9756 (arm_breakpoint_kind_from_current_state): Likewise.
9759 2015-08-04 Yao Qi <yao.qi@linaro.org>
9761 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9762 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9763 * server.c (extended_protocol): Remove "static".
9764 * server.h (extended_protocol): Declare it.
9766 2015-12-04 Josh Stone <jistone@redhat.com>
9768 * target.h (struct target_ops) <arch_setup>: Rename to ...
9769 (struct target_ops) <post_create_inferior>: ... this.
9770 (target_arch_setup): Rename to ...
9771 (target_post_create_inferior): ... this, calling post_create_inferior.
9772 * server.c (start_inferior): Update target_arch_setup calls to
9773 target_post_create_inferior.
9774 * linux-low.c (linux_low_ptrace_options): Forward declare.
9775 (linux_arch_setup): Update its comment for general use.
9776 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9777 (struct linux_target_ops): Use linux_post_create_inferior.
9778 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9779 to post_create_inferior.
9780 * nto-low.c (struct nto_target_ops): Likewise.
9781 * spu-low.c (struct spu_target_ops): Likewise.
9782 * win32-low.c (struct win32_target_ops): Likewise.
9784 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9786 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9788 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9790 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9791 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9792 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9793 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9794 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9795 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9796 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9797 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9798 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9799 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9800 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9801 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9803 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9805 * linux-low.c (linux_look_up_symbols): Don't call
9806 linux_supports_traceclone.
9807 * linux-low.h (thread_db_init): Remove use_events argument.
9808 * thread-db.c (thread_db_use_event): Remove global variable.
9809 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9810 (struct thread_db) <td_create_bp>: Remove field.
9811 (thread_db_create_event): Remove function.
9812 (thread_db_enable_reporting): Likewise.
9813 (find_one_thread): Don't check for thread_db_use_events.
9814 (attach_thread): Likewise.
9815 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9816 (try_thread_db_load_1): Don't check for thread_db_use_events.
9817 (thread_db_init): Remove use_events argument and thread events
9819 (remove_thread_event_breakpoints): Remove function.
9820 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9822 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9824 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9826 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9827 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9828 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9829 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9830 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9832 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9834 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9835 * linux-low.c (can_hardware_single_step): Use
9836 supports_hardware_single_step.
9837 (can_software_single_step): New function.
9838 (start_step_over): Call can_software_single_step.
9839 (linux_supports_hardware_single_step): New function.
9840 (struct target_ops) <supports_software_single_step>: Initialize.
9841 * linux-low.h (struct linux_target_ops)
9842 <supports_hardware_single_step>: Initialize.
9843 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9844 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9845 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9846 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9847 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9848 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9849 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9850 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9851 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9852 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9854 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9855 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9857 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9858 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9859 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9861 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9862 * target.h (struct target_ops): <supports_software_single_step>:
9864 (target_supports_software_single_step): New macro.
9866 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9868 * linux-low.c (linux_wait_1): Fix pc advance condition.
9869 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9870 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9872 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9874 * linux-arm-low.c (arm_is_thumb_mode): New function.
9875 (arm_breakpoint_at): Use arm_is_thumb_mode.
9876 (arm_breakpoint_kind_from_current_state): New function.
9877 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9879 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9880 (linux_breakpoint_kind_from_current_state): New function.
9881 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9882 * linux-low.h (struct linux_target_ops)
9883 <breakpoint_kind_from_current_state>: New field.
9884 * target.h (struct target_ops): Likewise.
9885 (target_breakpoint_kind_from_current_state): New macro.
9887 2015-11-30 Pedro Alves <palves@redhat.com>
9889 * linux-low.c (linux_resume): Wake up the event loop before
9892 2015-11-30 Pedro Alves <palves@redhat.com>
9894 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9896 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9898 * target.c (struct thread_search): New structure.
9899 (thread_search_callback): New function.
9900 (prev_general_thread): New global.
9901 (prepare_to_access_memory, done_accessing_memory): New functions.
9902 * target.h (prepare_to_access_memory, done_accessing_memory):
9903 Replace macros with function declarations.
9905 2015-11-30 Pedro Alves <palves@redhat.com>
9908 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9909 report TARGET_WAITKIND_NO_RESUMED.
9910 * remote-utils.c (prepare_resume_reply): Handle
9911 TARGET_WAITKIND_NO_RESUMED.
9912 * server.c (report_no_resumed): New global.
9913 (handle_query) <qSupported>: Handle "no-resumed+". Report
9914 "no-resumed+" support.
9915 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9916 return error if the client doesn't support no-resumed events.
9917 (push_stop_notification): New function.
9918 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9919 events if the client supports them.
9921 2015-11-30 Pedro Alves <palves@redhat.com>
9923 * linux-low.c (thread_still_has_status_pending_p): Don't check
9925 (lwp_resumed): New function.
9926 (status_pending_p_callback): Return early if the LWP is not
9927 supposed to be resumed.
9929 2015-11-30 Pedro Alves <palves@redhat.com>
9931 * linux-low.c (handle_extended_wait): Assert that the LWP's
9932 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9933 thread create events, leave the new child's status pending.
9934 (linux_low_filter_event): If GDB wants to hear about thread exit
9935 events, leave the LWP marked dead and don't delete it.
9936 (linux_wait_for_event_filtered): Don't check for thread exit.
9937 (filter_exit_event): New function.
9938 (linux_wait_1): Use it, when returning an exit event.
9939 (linux_resume_one_lwp_throw): Assert that the LWP's
9940 waitstatus is TARGET_WAITKIND_IGNORE.
9941 * remote-utils.c (prepare_resume_reply): Handle
9942 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9943 * server.c (report_thread_events): New global.
9944 (handle_general_set): Handle QThreadEvents.
9945 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9946 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9947 TARGET_WAITKIND_THREAD_EXITED.
9948 * server.h (report_thread_events): Declare.
9950 2015-11-30 Pedro Alves <palves@redhat.com>
9952 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9953 the thread's last_resume_kind was resume_stop.
9955 2015-11-30 Pedro Alves <palves@redhat.com>
9957 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9960 2015-11-30 Pedro Alves <palves@redhat.com>
9962 * server.c (handle_v_requests): Handle vCtrlC.
9964 2015-11-30 Pedro Alves <palves@redhat.com>
9966 * gdbthread.h (find_any_thread_of_pid): Declare.
9967 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9969 * server.c (handle_query): If current_thread is NULL, look for
9970 another thread of the selected process.
9972 2015-11-26 Daniel Colascione <dancol@dancol.org>
9973 Simon Marchi <simon.marchi@ericsson.com>
9975 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9976 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9978 * target.h (struct target_ops) <thread_name>: New field.
9979 (target_thread_name): New macro.
9981 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9983 * regcache.h (regcache_invalidate_pid): Add declaration.
9984 * regcache.c (regcache_invalidate_pid): New function, extracted
9985 from regcache_invalidate.
9986 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9987 Add trivial documentation comment.
9988 * lynx-low.c: Use regcache_invalidate_pid instead of
9989 regcache_invalidate.
9991 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9993 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9994 and Elf64_auxv_t if the target is Android.
9996 2015-11-22 Doug Evans <xdje42@gmail.com>
9998 * target.h: #include <sys/types.h>.
10000 2015-11-19 Pedro Alves <palves@redhat.com>
10002 * linux-low.c (linux_process_qsupported): Change prototype.
10004 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10006 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10007 and adjust to loop over all features.
10008 * server.c (handle_query) <qSupported>: Adjust to call
10009 target_process_qsupported once, passing it a vector of unprocessed
10011 * target.h (struct target_ops) <process_qsupported>: Change
10013 (target_process_qsupported): Adjust.
10015 2015-11-19 Pedro Alves <palves@redhat.com>
10017 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10019 * configure: Regenerate.
10021 2015-11-19 Pedro Alves <palves@redhat.com>
10023 * configure: Regenerate.
10025 2015-11-19 Yao Qi <yao.qi@linaro.org>
10027 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10030 2015-11-19 Yao Qi <yao.qi@linaro.org>
10032 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10033 (struct aarch64_operand): Move enum out.
10035 2015-11-19 Yao Qi <yao.qi@linaro.org>
10037 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10038 struct user_fpsimd_state *.
10039 (aarch64_store_fpregset): Likewise.
10041 2015-11-19 Yao Qi <yao.qi@linaro.org>
10043 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10044 struct user_pt_regs *.
10045 (aarch64_store_gregset): Likewise.
10047 2015-11-18 Pedro Alves <palves@redhat.com>
10049 * Makefile.in (all_object_files): Add $IPA_OBJS.
10051 2015-11-17 Pedro Alves <palves@redhat.com>
10053 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10054 GDB_SIGNAL_0 and gdb_signal_to_string.
10056 2015-11-17 Pedro Alves <palves@redhat.com>
10058 * win32-low.c (handle_output_debug_string): Remove parameter.
10059 (win32_kill): Remove our_status local and adjust call to
10060 handle_output_debug_string.
10061 (get_child_debug_event): Adjust call to
10062 handle_output_debug_string.
10064 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10066 * linux-mips-low.c (mips_fill_gregset): Add cast.
10067 (mips_store_gregset): Likewise.
10068 (mips_fill_fpregset): Likewise.
10069 (mips_store_fpregset): Likewise.
10071 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10073 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10076 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10078 * linux-mips-low.c (mips_linux_new_thread): Change type of
10079 watch_type to enum target_hw_bp_type.
10081 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10083 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10084 Change return type to arm_hwbp_type.
10086 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10088 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10089 (arm_store_gregset): Likewise.
10090 * linux-arm-low.c (arm_get_hwcap): Likewise.
10091 (arm_read_description): Likewise.
10093 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10095 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10097 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10099 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10100 (ppc_fill_vsxregset): Likewise.
10101 (ppc_store_vsxregset): Likewise.
10102 (ppc_fill_vrregset): Likewise.
10103 (ppc_store_vrregset): Likewise.
10104 (ppc_fill_evrregset): Likewise.
10105 (ppc_store_evrregset): Likewise.
10107 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10109 * linux-ppc-low.c (ppc_usrregs_info): Remove
10110 forward-declaration.
10111 (ppc_arch_setup): Move lower in file.
10113 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10115 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10116 (ps_pdwrite): Likewise.
10118 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10120 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10121 to after assert checks.
10123 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10125 * proc-service.c (ps_pdread): Add/adjust casts.
10126 (ps_pdwrite): Add/adjust casts.
10128 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10130 * server.c (handle_search_memory_1): Cast return value of
10133 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10135 * server.c (write_qxfer_response): Change type of data to
10138 2015-10-29 Pedro Alves <palves@redhat.com>
10140 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10142 2015-10-29 Pedro Alves <palves@redhat.com>
10144 * tracepoint.c (clear_installed_tracepoints): Add casts.
10146 2015-10-29 Pedro Alves <palves@redhat.com>
10148 * server.c (handle_v_cont, process_serial_event): Add enum
10149 gdb_signal casts to signal parsing code.
10151 2015-10-29 Pedro Alves <palves@redhat.com>
10153 * linux-low.h (NULL_REGSET): Define.
10154 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10155 * linux-arm-low.c (arm_regsets): Likewise.
10156 * linux-crisv32-low.c (cris_regsets): Likewise.
10157 * linux-m68k-low.c (m68k_regsets): Likewise.
10158 * linux-mips-low.c (mips_regsets): Likewise.
10159 * linux-nios2-low.c (nios2_regsets): Likewise.
10160 * linux-ppc-low.c (ppc_regsets): Likewise.
10161 * linux-s390-low.c (s390_regsets): Likewise.
10162 * linux-sh-low.c (sh_regsets): Likewise.
10163 * linux-sparc-low.c (sparc_regsets): Likewise.
10164 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10165 * linux-tile-low.c (tile_regsets): Likewise.
10166 * linux-x86-low.c (x86_regsets): Likewise.
10167 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10169 2015-10-29 Pedro Alves <palves@redhat.com>
10171 * linux-low.h (NULL_REGSET): Define.
10172 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10173 * linux-arm-low.c (arm_regsets): Likewise.
10174 * linux-crisv32-low.c (cris_regsets): Likewise.
10175 * linux-m68k-low.c (m68k_regsets): Likewise.
10176 * linux-mips-low.c (mips_regsets): Likewise.
10177 * linux-nios2-low.c (nios2_regsets): Likewise.
10178 * linux-ppc-low.c (ppc_regsets): Likewise.
10179 * linux-s390-low.c (s390_regsets): Likewise.
10180 * linux-sh-low.c (sh_regsets): Likewise.
10181 * linux-sparc-low.c (sparc_regsets): Likewise.
10182 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10183 * linux-tile-low.c (tile_regsets): Likewise.
10184 * linux-x86-low.c (x86_regsets): Likewise.
10185 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10187 2015-10-26 Doug Evans <dje@google.com>
10189 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10191 2015-10-26 Doug Evans <dje@google.com>
10193 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10195 2015-10-26 Doug Evans <dje@google.com>
10197 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10199 (attach_thread, find_new_threads_callback): Ditto.
10201 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10203 * mem-break.h (set_breakpoint_data): Remove.
10205 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10207 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10208 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10209 (initialize_low): Remove set_breakpoint_data call.
10210 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10211 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10212 (initialize_low): Remove set_breakpoint_data call.
10213 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10214 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10215 (initialize_low): Remove set_breakpoint_data call.
10217 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10219 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10220 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10221 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10222 * target.h (target_breakpoint_kind_from_pc): New macro.
10224 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10226 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10227 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10228 the default breakpoint kind.
10230 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10232 * linux-arm-low.c (arm_supports_z_point_type): Add software
10233 breakpoint support.
10235 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10237 * linux-arm-low.c: Refactor breakpoint definitions.
10238 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10239 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10241 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10243 * Makefile.in: Add arm.c/o.
10244 * configure.srv: Likewise.
10245 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10246 (arm_breakpoint_kind_from_pc): New function.
10247 (arm_sw_breakpoint_from_kind): Return proper kind.
10248 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10250 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10252 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10254 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10255 (struct raw_breakpoint) <size>: Remove.
10256 (struct raw_breakpoint) <kind>: Add.
10257 (bp_size): New function.
10258 (bp_opcode): Likewise.
10259 (find_raw_breakpoint_at): Adjust for kind.
10260 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10261 (remove_memory_breakpoint): Adjust for kind call bp_size.
10262 (set_raw_breakpoint_at): Adjust for kind.
10263 (set_breakpoint): Likewise.
10264 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10265 (delete_raw_breakpoint): Adjust for kind.
10266 (delete_breakpoint): Likewise.
10267 (find_gdb_breakpoint): Likewise.
10268 (set_gdb_breakpoint_1): Likewise.
10269 (set_gdb_breakpoint): Likewise.
10270 (delete_gdb_breakpoint_1): Likewise.
10271 (delete_gdb_breakpoint): Likewise.
10272 (uninsert_raw_breakpoint): Likewise.
10273 (reinsert_raw_breakpoint): Likewise.
10274 (set_breakpoint_data): Remove.
10275 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10276 (check_mem_read): Adjust for kind call bp_size.
10277 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10278 (clone_one_breakpoint): Adjust for kind.
10279 * mem-break.h (set_gdb_breakpoint): Likewise.
10280 (delete_gdb_breakpoint): Likewise.
10281 * server.c (process_serial_event): Likewise.
10283 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10285 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10286 (struct linux_target_ops) <breakpoint>: Remove.
10287 (struct linux_target_ops) <breakpoint_len>: Remove.
10288 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10289 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10290 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10291 (arm_sw_breakpoint_from_kind): New function.
10292 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10293 (struct linux_target_ops) <breakpoint>: Remove.
10294 (struct linux_target_ops) <breakpoint_len>: Remove.
10295 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10296 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10297 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10298 (struct linux_target_ops) <breakpoint>: Remove.
10299 (struct linux_target_ops) <breakpoint_len>: Remove.
10300 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10301 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10302 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10303 (struct linux_target_ops) <breakpoint>: Remove.
10304 (struct linux_target_ops) <breakpoint_len>: Remove.
10305 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10306 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10307 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10308 and sw_breakpoint_from_kind to increment the pc.
10309 (linux_breakpoint_kind_from_pc): New function.
10310 (linux_sw_breakpoint_from_kind): New function.
10311 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10312 (initialize_low): Call breakpoint_kind_from_pc and
10313 sw_breakpoint_from_kind to replace breakpoint_data/len.
10314 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10316 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10317 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10318 (struct linux_target_ops) <breakpoint>: Remove.
10319 (struct linux_target_ops) <breakpoint_len>: Remove.
10320 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10321 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10322 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10323 (struct linux_target_ops) <breakpoint>: Remove.
10324 (struct linux_target_ops) <breakpoint_len>: Remove.
10325 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10326 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10327 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10328 (struct linux_target_ops) <breakpoint>: Remove.
10329 (struct linux_target_ops) <breakpoint_len>: Remove.
10330 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10331 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10332 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10333 (struct linux_target_ops) <breakpoint>: Remove.
10334 (struct linux_target_ops) <breakpoint_len>: Remove.
10335 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10336 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10337 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10338 (struct linux_target_ops) <breakpoint>: Remove.
10339 (struct linux_target_ops) <breakpoint_len>: Remove.
10340 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10341 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10342 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10343 (struct linux_target_ops) <breakpoint>: Remove.
10344 (struct linux_target_ops) <breakpoint_len>: Remove.
10345 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10346 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10347 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10348 (struct linux_target_ops) <breakpoint>: Remove.
10349 (struct linux_target_ops) <breakpoint_len>: Remove.
10350 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10351 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10352 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10353 (struct linux_target_ops) <breakpoint>: Remove.
10354 (struct linux_target_ops) <breakpoint_len>: Remove.
10355 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10356 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10357 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10358 (struct linux_target_ops) <breakpoint>: Remove.
10359 (struct linux_target_ops) <breakpoint_len>: Remove.
10360 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10361 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10362 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10363 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10364 (struct linux_target_ops) <breakpoint>: Remove.
10365 (struct linux_target_ops) <breakpoint_len>: Remove.
10366 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10367 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10368 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10369 (struct linux_target_ops) <breakpoint>: Remove.
10370 (struct linux_target_ops) <breakpoint_len>: Remove.
10371 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10372 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10374 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10376 * linux-cris-low.c (cris_get_pc): Remove void arg.
10378 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10380 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10383 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10385 * inferiors.c (thread_pid_matches_callback): New function.
10386 (find_thread_process): New function.
10387 (remove_thread): Reset current_thread.
10388 (remove_process): Assert threads have been removed first.
10390 2015-10-15 Yao Qi <yao.qi@linaro.org>
10392 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10394 (aarch64_remove_point): Likewise.
10395 * regcache.c (regcache_register_size): New function.
10397 2015-10-12 Yao Qi <yao.qi@linaro.org>
10399 * linux-aarch64-low.c: Update all callers as emit_load_store
10400 is renamed to aarch64_emit_load_store.
10402 2015-10-12 Yao Qi <yao.qi@linaro.org>
10404 * linux-aarch64-low.c: Update all callers of function renaming
10405 from emit_insn to aarch64_emit_insn.
10407 2015-10-12 Yao Qi <yao.qi@linaro.org>
10409 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10410 arch/aarch64-insn.h.
10411 (struct aarch64_memory_operand): Likewise.
10412 (ENCODE): Likewise.
10413 (emit_insn): Move to arch/aarch64-insn.c.
10414 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10415 (emit_load_store): Move to arch/aarch64-insn.c.
10416 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10417 (can_encode_int32): Remove.
10419 2015-10-12 Yao Qi <yao.qi@linaro.org>
10421 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10422 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10423 (aarch64_relocate_instruction): Likewise.
10424 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10425 (struct aarch64_insn_visitor): Likewise.
10427 2015-10-12 Yao Qi <yao.qi@linaro.org>
10429 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10430 (struct aarch64_insn_visitor): New.
10431 (struct aarch64_insn_relocation_data): New.
10432 (aarch64_ftrace_insn_reloc_b): New function.
10433 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10434 (aarch64_ftrace_insn_reloc_cb): Likewise.
10435 (aarch64_ftrace_insn_reloc_tb): Likewise.
10436 (aarch64_ftrace_insn_reloc_adr): Likewise.
10437 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10438 (aarch64_ftrace_insn_reloc_others): Likewise.
10440 (aarch64_relocate_instruction): Use visitor.
10442 2015-10-12 Yao Qi <yao.qi@linaro.org>
10444 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10445 int. Add argument buf.
10446 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10447 aarch64_relocate_instruction.
10449 2015-10-12 Yao Qi <yao.qi@linaro.org>
10451 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10452 argument insn. Remove local variable insn. Don't call
10453 target_read_uint32.
10454 (aarch64_install_fast_tracepoint_jump_pad): Call
10455 target_read_uint32.
10457 2015-09-30 Yao Qi <yao.qi@linaro.org>
10459 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10460 (emit_load_store_pair): Likewise.
10462 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10464 * dll.c (match_dll): Add cast(s).
10465 (unloaded_dll): Likewise.
10466 * linux-low.c (second_thread_of_pid_p): Likewise.
10467 (delete_lwp_callback): Likewise.
10468 (count_events_callback): Likewise.
10469 (select_event_lwp_callback): Likewise.
10470 (linux_set_resume_request): Likewise.
10471 * server.c (accumulate_file_name_length): Likewise.
10472 (emit_dll_description): Likewise.
10473 (handle_qxfer_threads_worker): Likewise.
10474 (visit_actioned_threads): Likewise.
10475 * thread-db.c (any_thread_of): Likewise.
10476 * tracepoint.c (same_process_p): Likewise.
10477 (match_blocktype): Likewise.
10478 (build_traceframe_info_xml): Likewise.
10480 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10482 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10484 (gdb_unparse_agent_expr): Likewise.
10485 * hostio.c (require_data): Likewise.
10486 (handle_pread): Likewise.
10487 * linux-low.c (disable_regset): Likewise.
10488 (fetch_register): Likewise.
10489 (store_register): Likewise.
10490 (get_dynamic): Likewise.
10491 (linux_qxfer_libraries_svr4): Likewise.
10492 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10493 (set_fast_tracepoint_jump): Likewise.
10494 (uninsert_fast_tracepoint_jumps_at): Likewise.
10495 (reinsert_fast_tracepoint_jumps_at): Likewise.
10496 (validate_inserted_breakpoint): Likewise.
10497 (clone_agent_expr): Likewise.
10498 * regcache.c (init_register_cache): Likewise.
10499 * remote-utils.c (putpkt_binary_1): Likewise.
10500 (decode_M_packet): Likewise.
10501 (decode_X_packet): Likewise.
10502 (look_up_one_symbol): Likewise.
10503 (relocate_instruction): Likewise.
10504 (monitor_output): Likewise.
10505 * server.c (handle_search_memory): Likewise.
10506 (handle_qxfer_exec_file): Likewise.
10507 (handle_qxfer_libraries): Likewise.
10508 (handle_qxfer): Likewise.
10509 (handle_query): Likewise.
10510 (handle_v_cont): Likewise.
10511 (handle_v_run): Likewise.
10512 (captured_main): Likewise.
10513 * target.c (write_inferior_memory): Likewise.
10514 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10515 * tracepoint.c (init_trace_buffer): Likewise.
10516 (add_tracepoint_action): Likewise.
10517 (add_traceframe): Likewise.
10518 (add_traceframe_block): Likewise.
10519 (cmd_qtdpsrc): Likewise.
10520 (cmd_qtdv): Likewise.
10521 (cmd_qtstatus): Likewise.
10522 (response_source): Likewise.
10523 (response_tsv): Likewise.
10524 (cmd_qtnotes): Likewise.
10525 (gdb_collect): Likewise.
10526 (initialize_tracepoint): Likewise.
10528 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10530 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10531 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10532 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10534 (enum aarch64_condition_codes): New enum.
10535 (w0): New static global.
10538 (struct aarch64_memory_operand) <type>: New
10539 MEMORY_OPERAND_POSTINDEX type.
10540 (postindex_memory_operand): New helper function.
10541 (emit_ret): New function.
10542 (emit_load_store_pair): New function, factored out of emit_stp
10543 with support for MEMORY_OPERAND_POSTINDEX.
10544 (emit_stp): Rewrite using emit_load_store_pair.
10545 (emit_ldp): New function.
10546 (emit_load_store): Likewise.
10547 (emit_ldr): Mention post-index instruction in comment.
10548 (emit_ldrh): New function.
10549 (emit_ldrb): New function.
10550 (emit_ldrsw): Mention post-index instruction in comment.
10551 (emit_str): Likewise.
10552 (emit_subs): New function.
10553 (emit_cmp): Likewise.
10554 (emit_and): Likewise.
10555 (emit_orr): Likewise.
10556 (emit_orn): Likewise.
10557 (emit_eor): Likewise.
10558 (emit_mvn): Likewise.
10559 (emit_lslv): Likewise.
10560 (emit_lsrv): Likewise.
10561 (emit_asrv): Likewise.
10562 (emit_mul): Likewise.
10563 (emit_sbfm): Likewise.
10564 (emit_sbfx): Likewise.
10565 (emit_ubfm): Likewise.
10566 (emit_ubfx): Likewise.
10567 (emit_csinc): Likewise.
10568 (emit_cset): Likewise.
10569 (emit_nop): Likewise.
10570 (emit_ops_insns): New helper function.
10571 (emit_pop): Likewise.
10572 (emit_push): Likewise.
10573 (aarch64_emit_prologue): New function.
10574 (aarch64_emit_epilogue): Likewise.
10575 (aarch64_emit_add): Likewise.
10576 (aarch64_emit_sub): Likewise.
10577 (aarch64_emit_mul): Likewise.
10578 (aarch64_emit_lsh): Likewise.
10579 (aarch64_emit_rsh_signed): Likewise.
10580 (aarch64_emit_rsh_unsigned): Likewise.
10581 (aarch64_emit_ext): Likewise.
10582 (aarch64_emit_log_not): Likewise.
10583 (aarch64_emit_bit_and): Likewise.
10584 (aarch64_emit_bit_or): Likewise.
10585 (aarch64_emit_bit_xor): Likewise.
10586 (aarch64_emit_bit_not): Likewise.
10587 (aarch64_emit_equal): Likewise.
10588 (aarch64_emit_less_signed): Likewise.
10589 (aarch64_emit_less_unsigned): Likewise.
10590 (aarch64_emit_ref): Likewise.
10591 (aarch64_emit_if_goto): Likewise.
10592 (aarch64_emit_goto): Likewise.
10593 (aarch64_write_goto_address): Likewise.
10594 (aarch64_emit_const): Likewise.
10595 (aarch64_emit_call): Likewise.
10596 (aarch64_emit_reg): Likewise.
10597 (aarch64_emit_pop): Likewise.
10598 (aarch64_emit_stack_flush): Likewise.
10599 (aarch64_emit_zero_ext): Likewise.
10600 (aarch64_emit_swap): Likewise.
10601 (aarch64_emit_stack_adjust): Likewise.
10602 (aarch64_emit_int_call_1): Likewise.
10603 (aarch64_emit_void_call_2): Likewise.
10604 (aarch64_emit_eq_goto): Likewise.
10605 (aarch64_emit_ne_goto): Likewise.
10606 (aarch64_emit_lt_goto): Likewise.
10607 (aarch64_emit_le_goto): Likewise.
10608 (aarch64_emit_gt_goto): Likewise.
10609 (aarch64_emit_ge_got): Likewise.
10610 (aarch64_emit_ops_impl): New static global variable.
10611 (aarch64_emit_ops): New target function, return
10612 &aarch64_emit_ops_impl.
10613 (struct linux_target_ops): Install it.
10615 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10617 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10618 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10620 * linux-aarch64-ipa.c: New file.
10621 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10623 (aarch64_get_thread_area): New target method.
10624 (extract_signed_bitfield): New helper function.
10625 (aarch64_decode_ldr_literal): New function.
10626 (enum aarch64_opcodes): New enum.
10627 (struct aarch64_register): New struct.
10628 (struct aarch64_operand): New struct.
10629 (x0): New static global.
10638 (aarch64_register): New helper function.
10639 (register_operand): Likewise.
10640 (immediate_operand): Likewise.
10641 (struct aarch64_memory_operand): New struct.
10642 (offset_memory_operand): New helper function.
10643 (preindex_memory_operand): Likewise.
10644 (enum aarch64_system_control_registers): New enum.
10645 (ENCODE): New macro.
10646 (emit_insn): New helper function.
10647 (emit_b): New function.
10648 (emit_bcond): Likewise.
10649 (emit_cb): Likewise.
10650 (emit_tb): Likewise.
10651 (emit_blr): Likewise.
10652 (emit_stp): Likewise.
10653 (emit_ldp_q_offset): Likewise.
10654 (emit_stp_q_offset): Likewise.
10655 (emit_load_store): Likewise.
10656 (emit_ldr): Likewise.
10657 (emit_ldrsw): Likewise.
10658 (emit_str): Likewise.
10659 (emit_ldaxr): Likewise.
10660 (emit_stxr): Likewise.
10661 (emit_stlr): Likewise.
10662 (emit_data_processing_reg): Likewise.
10663 (emit_data_processing): Likewise.
10664 (emit_add): Likewise.
10665 (emit_sub): Likewise.
10666 (emit_mov): Likewise.
10667 (emit_movk): Likewise.
10668 (emit_mov_addr): Likewise.
10669 (emit_mrs): Likewise.
10670 (emit_msr): Likewise.
10671 (emit_sevl): Likewise.
10672 (emit_wfe): Likewise.
10673 (append_insns): Likewise.
10674 (can_encode_int32_in): New helper function.
10675 (aarch64_relocate_instruction): New function.
10676 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10677 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10678 (struct linux_target_ops): Install aarch64_get_thread_area,
10679 aarch64_install_fast_tracepoint_jump_pad and
10680 aarch64_get_min_fast_tracepoint_insn_len.
10682 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10684 * Makefile.in (aarch64-insn.o): New rule.
10685 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10687 2015-09-21 Yao Qi <yao.qi@linaro.org>
10689 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10691 2015-09-21 Yao Qi <yao.qi@linaro.org>
10693 * tracepoint.c (max_jump_pad_size): Remove.
10695 2015-09-18 Yao Qi <yao.qi@linaro.org>
10697 * linux-aarch64-low.c: Don't include sys/uio.h.
10698 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10700 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10702 * tracepoint.c (eval_result_type): Change prototype.
10703 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10705 2015-09-15 Pedro Alves <palves@redhat.com>
10707 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10708 Check whether to report exec events instead of checking whether
10709 multiprocess is enabled.
10711 2015-09-15 Pedro Alves <palves@redhat.com>
10714 * remote-utils.c (prepare_resume_reply): Merge
10715 TARGET_WAITKIND_VFORK_DONE switch case with the
10716 TARGET_WAITKIND_FORKED case.
10718 2015-09-15 Yao Qi <yao.qi@linaro.org>
10720 * server.c (handle_query): Check string comparison using
10721 "else if" instead of "if".
10723 2015-09-15 Yao Qi <yao.qi@linaro.org>
10725 * server.c (vCont_supported): New global variable.
10726 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10727 matches. Append ";vContSupported+" to own_buf.
10728 (handle_v_requests): Append ";s;S" to own_buf if target supports
10729 hardware single step or vCont_supported is false.
10730 (capture_main): Set vCont_supported to zero.
10732 2015-09-15 Yao Qi <yao.qi@linaro.org>
10734 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10736 (linux_supports_hardware_single_step): ... New function.
10737 (linux_target_ops): Update.
10738 * lynx-low.c (lynx_target_ops): Set field
10739 supports_hardware_single_step to target_can_do_hardware_single_step.
10740 * nto-low.c (nto_target_ops): Likewise.
10741 * spu-low.c (spu_target_ops): Likewise.
10742 * win32-low.c (win32_target_ops): Likewise.
10743 * target.c (target_can_do_hardware_single_step): New function.
10744 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10745 Remove. <supports_hardware_single_step>: New field.
10746 (target_supports_conditional_breakpoints): Remove.
10747 (target_supports_hardware_single_step): New macro.
10748 (target_can_do_hardware_single_step): Declare.
10749 * server.c (handle_query): Use target_supports_hardware_single_step
10750 instead of target_supports_conditional_breakpoints.
10752 2015-09-15 Yao Qi <yao.qi@linaro.org>
10754 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10756 (struct linux_target_ops the_low_target): Install
10757 aarch64_linux_siginfo_fixup.
10759 2015-09-11 Don Breazeal <donb@codesourcery.com>
10760 Luis Machado <lgustavo@codesourcery.com>
10762 * linux-low.c (linux_mourn): Static declaration.
10763 (linux_arch_setup): Move in front of
10764 handle_extended_wait.
10765 (linux_arch_setup_thread): New function.
10766 (handle_extended_wait): Handle exec events. Call
10767 linux_arch_setup_thread. Make event_lwp argument a
10768 pointer-to-a-pointer.
10769 (check_zombie_leaders): Do not check stopped threads.
10770 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10771 (linux_low_filter_event): Add lwp and thread for exec'ing
10772 non-leader thread if leader thread has been deleted.
10773 Refactor code into linux_arch_setup_thread and call it.
10774 Pass child lwp pointer by reference to handle_extended_wait.
10775 (linux_wait_for_event_filtered): Update comment.
10776 (linux_wait_1): Prevent clobbering exec event status.
10777 (linux_supports_exec_events): New function.
10778 (linux_target_ops) <supports_exec_events>: Initialize new member.
10779 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10781 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10782 * server.c (report_exec_events): New global variable.
10783 (handle_query): Handle qSupported query for exec-events feature.
10784 (captured_main): Initialize report_exec_events.
10785 * server.h (report_exec_events): Declare new global variable.
10786 * target.h (struct target_ops) <supports_exec_events>: New
10788 (target_supports_exec_events): New macro.
10789 * win32-low.c (win32_target_ops) <supports_exec_events>:
10790 Initialize new member.
10792 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10794 * linux-low.c (linux_low_enable_btrace): Remove.
10795 (linux_target_ops): Replace linux_low_enable_btrace with
10796 linux_enable_btrace.
10798 2015-09-03 Yao Qi <yao.qi@linaro.org>
10800 * linux-aarch64-low.c (aarch64_insert_point): Call
10801 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10804 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10806 * linux-low.c (check_stopped_by_breakpoint): Use
10807 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10809 2015-08-27 Pedro Alves <palves@redhat.com>
10811 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10813 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10815 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10816 the XNEW-family equivalent.
10817 (compile_bytecodes): Likewise.
10818 * dll.c (loaded_dll): Likewise.
10819 * event-loop.c (append_callback_event): Likewise.
10820 (create_file_handler): Likewise.
10821 (create_file_event): Likewise.
10822 * hostio.c (handle_open): Likewise.
10823 * inferiors.c (add_thread): Likewise.
10824 (add_process): Likewise.
10825 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10826 * linux-arm-low.c (arm_new_process): Likewise.
10827 (arm_new_thread): Likewise.
10828 * linux-low.c (add_to_pid_list): Likewise.
10829 (linux_add_process): Likewise.
10830 (handle_extended_wait): Likewise.
10831 (add_lwp): Likewise.
10832 (enqueue_one_deferred_signal): Likewise.
10833 (enqueue_pending_signal): Likewise.
10834 (linux_resume_one_lwp_throw): Likewise.
10835 (linux_resume_one_thread): Likewise.
10836 (linux_read_memory): Likewise.
10837 (linux_write_memory): Likewise.
10838 * linux-mips-low.c (mips_linux_new_process): Likewise.
10839 (mips_linux_new_thread): Likewise.
10840 (mips_add_watchpoint): Likewise.
10841 * linux-x86-low.c (initialize_low_arch): Likewise.
10842 * lynx-low.c (lynx_add_process): Likewise.
10843 * mem-break.c (set_raw_breakpoint_at): Likewise.
10844 (set_breakpoint): Likewise.
10845 (add_condition_to_breakpoint): Likewise.
10846 (add_commands_to_breakpoint): Likewise.
10847 (clone_agent_expr): Likewise.
10848 (clone_one_breakpoint): Likewise.
10849 * regcache.c (new_register_cache): Likewise.
10850 * remote-utils.c (look_up_one_symbol): Likewise.
10851 * server.c (queue_stop_reply): Likewise.
10852 (start_inferior): Likewise.
10853 (queue_stop_reply_callback): Likewise.
10854 (handle_target_event): Likewise.
10855 * spu-low.c (fetch_ppc_memory): Likewise.
10856 (store_ppc_memory): Likewise.
10857 * target.c (set_target_ops): Likewise.
10858 * thread-db.c (thread_db_load_search): Likewise.
10859 (try_thread_db_load_1): Likewise.
10860 * tracepoint.c (add_tracepoint): Likewise.
10861 (add_tracepoint_action): Likewise.
10862 (create_trace_state_variable): Likewise.
10863 (cmd_qtdpsrc): Likewise.
10864 (cmd_qtro): Likewise.
10865 (add_while_stepping_state): Likewise.
10866 * win32-low.c (child_add_thread): Likewise.
10867 (get_image_name): Likewise.
10869 2015-08-25 Yao Qi <yao.qi@linaro.org>
10871 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10873 2015-08-25 Yao Qi <yao.qi@linaro.org>
10875 * Makefile.in (aarch64-linux.o): New rule.
10876 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10878 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10879 (aarch64_init_debug_reg_state): Make it extern.
10880 (aarch64_linux_prepare_to_resume): Remove.
10882 2015-08-25 Yao Qi <yao.qi@linaro.org>
10884 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10885 lwp_arch_private_info and ptid_of_lwp.
10887 2015-08-25 Yao Qi <yao.qi@linaro.org>
10889 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10890 Find proc_info by find_process_pid. All callers updated.
10892 2015-08-25 Yao Qi <yao.qi@linaro.org>
10894 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10896 (debug_reg_change_callback): Remove.
10897 (aarch64_notify_debug_reg_change): Remove.
10899 2015-08-25 Yao Qi <yao.qi@linaro.org>
10901 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10902 Call current_lwp_ptid.
10904 2015-08-25 Yao Qi <yao.qi@linaro.org>
10906 * linux-aarch64-low.c (debug_reg_change_callback): Use
10909 2015-08-25 Yao Qi <yao.qi@linaro.org>
10911 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10913 2015-08-25 Yao Qi <yao.qi@linaro.org>
10915 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10917 2015-08-25 Yao Qi <yao.qi@linaro.org>
10919 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10922 2015-08-25 Yao Qi <yao.qi@linaro.org>
10924 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10926 (debug_reg_change_callback): Remove argument entry and add argument
10927 lwp. Remove local variable thread. Don't print thread id in the
10928 debugging output. Don't check whether pid of thread equals to pid.
10929 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10930 iterate_over_lwps instead find_inferior.
10932 2015-08-24 Pedro Alves <palves@redhat.com>
10934 * inferiors.c (get_first_process): New function.
10935 * inferiors.h (get_first_process): New declaration.
10936 * remote-utils.c (read_ptid): Default to the first process in the
10937 list, instead of to the current thread's process.
10939 2015-08-24 Pedro Alves <palves@redhat.com>
10941 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10942 * event-loop.c: Likewise.
10943 * remote-utils.c: Likewise.
10944 * tracepoint.c: Likewise.
10946 2015-08-24 Pedro Alves <palves@redhat.com>
10948 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10951 2015-08-21 Pedro Alves <palves@redhat.com>
10953 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10954 instead of literal 1.
10956 2015-08-21 Pedro Alves <palves@redhat.com>
10958 * tdesc.c (default_description): Explicitly zero-initialize.
10960 2015-08-21 Pedro Alves <palves@redhat.com>
10963 * inferiors.c (remove_thread): Discard any pending stop reply for
10965 * server.c (remove_all_on_match_pid): Rename to ...
10966 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10968 (discard_queued_stop_replies): Change parameter to a ptid. Now
10970 (handle_v_kill, kill_inferior_callback, captured_main)
10971 (process_serial_event): Adjust.
10972 * server.h (discard_queued_stop_replies): Declare.
10974 2015-08-21 Pedro Alves <palves@redhat.com>
10976 * linux-low.c (wait_for_sigstop): Always switch to no thread
10977 selected if the previously current thread dies.
10978 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10979 process instead of the current thread's.
10980 * remote-utils.c (input_interrupt): Don't check if there's no
10982 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10983 current thread to the general thread fails, error out.
10984 (handle_qxfer_auxv, handle_qxfer_libraries)
10985 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10986 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10987 (handle_query): Check if there's a thread selected instead of
10988 checking whether there's any thread in the thread list.
10989 (handle_qxfer_threads, handle_qxfer_btrace)
10990 (handle_qxfer_btrace_conf): Don't error out early if there's no
10991 thread in the thread list.
10992 (handle_v_cont, myresume): Don't set the current thread to the
10994 (process_serial_event) <Hg handling>: Also set thread_id if the
10995 previous general thread is still alive.
10996 (process_serial_event) <g/G handling>: If setting the current
10997 thread to the general thread fails, error out.
10998 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10999 thread's lwp instead of the current thread's.
11000 * target.c (set_desired_thread): If the desired thread was not
11001 found, leave the current thread pointing to NULL. Return an int
11002 (boolean) indicating success.
11003 * target.h (set_desired_thread): Change return type to int.
11005 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11007 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11008 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11010 (ps_get_thread_area): New function.
11012 2015-08-19 Gary Benson <gbenson@redhat.com>
11014 * hostio.c (handle_pread): Do not attempt to read more data
11015 than hostio_reply_with_data can fit in a packet.
11017 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11019 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11021 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11023 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11025 2015-08-06 Pedro Alves <palves@redhat.com>
11027 * tracepoint.c (expr_eval_result): Now an int.
11029 2015-08-06 Pedro Alves <palves@redhat.com>
11031 * gdbthread.h (struct regcache): Forward declare.
11032 (struct thread_info) <regcache_data>: Now a struct regcache
11034 * inferiors.c (inferior_regcache_data)
11035 (set_inferior_regcache_data): Now work with struct regcache
11037 * inferiors.h (struct regcache): Forward declare.
11038 (inferior_regcache_data, set_inferior_regcache_data): Now work
11039 with struct regcache pointers.
11040 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11041 (free_register_cache_thread): Remove struct regcache pointer
11044 2015-08-06 Pedro Alves <palves@redhat.com>
11046 * server.c (captured_main): On error, print the exception message
11047 to stderr, and if run_once is set, throw a quit.
11049 2015-08-06 Pedro Alves <palves@redhat.com>
11051 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11052 the current thread.
11054 2015-08-06 Pedro Alves <palves@redhat.com>
11056 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11057 reading beyond the passed in buffer length.
11059 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11061 * tracepoint.c (symbol_list) <required>: Remove.
11063 2015-08-06 Pedro Alves <palves@redhat.com>
11065 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11066 count if stopping and suspending threads.
11067 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11068 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11069 (linux_detach): Complete an ongoing step-over.
11070 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11072 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11073 (linux_wait_1): If passing a signal to the inferior after
11074 finishing a step-over, unsuspend and re-resume all lwps. If we
11075 see a single-step event but the thread should be continuing, don't
11076 pass the trap to gdb.
11077 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11078 internal_error instead of gdb_assert.
11079 (enqueue_pending_signal): New function.
11080 (check_ptrace_stopped_lwp_gone): Add debug output.
11081 (start_step_over): Use internal_error instead of gdb_assert.
11082 (complete_ongoing_step_over): New function.
11083 (linux_resume_one_thread): Don't resume a suspended thread.
11084 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11087 2015-08-06 Pedro Alves <palves@redhat.com>
11089 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11090 (linux_thread_alive): Use lwp_is_marked_dead.
11091 (extended_event_reported): Delete.
11092 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11093 instead of extended_event_reported.
11094 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11096 (lwp_is_marked_dead): New function.
11097 (lwp_running): Use lwp_is_marked_dead.
11098 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11101 2015-08-06 Pedro Alves <palves@redhat.com>
11103 * linux-low.c (linux_wait_1): Move fork event output out of the
11104 !report_to_gdb check. Pass event_child->waitstatus to
11105 target_waitstatus_to_string instead of ourstatus.
11107 2015-08-04 Yao Qi <yao.qi@linaro.org>
11109 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11110 if current_thread is 32 bit.
11112 2015-08-04 Yao Qi <yao.qi@linaro.org>
11114 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11115 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11116 * server.c (extended_protocol): Remove "static".
11117 * server.h (extended_protocol): Declare it.
11119 2015-08-04 Yao Qi <yao.qi@linaro.org>
11121 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11122 both aarch64 and aarch32.
11123 (aarch64_set_pc): Likewise.
11125 2015-08-04 Yao Qi <yao.qi@linaro.org>
11127 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11128 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11129 arm-with-neon.xml to srv_xmlfiles.
11130 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11131 (is_64bit_tdesc): New function.
11132 (aarch64_linux_read_description): New function.
11133 (aarch64_arch_setup): Call aarch64_linux_read_description.
11134 (regs_info): Rename to regs_info_aarch64.
11135 (aarch64_regs_info): Return right regs_info.
11136 (initialize_low_arch): Call initialize_low_arch_aarch32.
11138 2015-08-04 Yao Qi <yao.qi@linaro.org>
11140 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11141 * linux-aarch32-low.c: New file.
11142 * linux-aarch32-low.h: New file.
11143 * linux-arm-low.c (arm_fill_gregset): Move it to
11144 linux-aarch32-low.c.
11145 (arm_store_gregset): Likewise.
11146 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11147 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11148 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11149 (regs_info): Rename to regs_info_arm.
11150 (arm_regs_info): Return regs_info_aarch32 if
11151 have_ptrace_getregset is 1 and target description is
11152 arm_with_neon or arm_with_vfpv3.
11153 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11154 Call initialize_low_arch_aarch32 instead.
11156 2015-08-04 Yao Qi <yao.qi@linaro.org>
11158 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11159 * linux-low.c: ... here.
11160 * linux-low.h (have_ptrace_getregset): Declare it.
11162 2015-08-04 Pedro Alves <palves@redhat.com>
11164 * thread-db.c (struct thread_db): Use new typedefs.
11165 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11167 (disable_thread_event_reporting): Cast result of dlsym to
11168 destination function pointer type.
11169 (thread_db_mourn): Use td_ta_delete_ftype.
11171 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11173 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11175 (CDX_BREAKPOINT): Define for R2.
11176 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11177 (the_low_target): Add comments.
11179 2015-07-30 Yao Qi <yao.qi@linaro.org>
11181 * linux-arm-low.c (arm_hwcap): Remove it.
11182 (arm_read_description): New local variable arm_hwcap. Don't
11183 set arm_hwcap to zero.
11185 2015-07-30 Yao Qi <yao.qi@linaro.org>
11187 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11188 Use regcache->tdesc instead.
11189 (arm_store_wmmxregset): Likewise.
11190 (arm_fill_vfpregset): Likewise.
11191 (arm_store_vfpregset): Likewise.
11193 2015-07-30 Yao Qi <yao.qi@linaro.org>
11195 * linux-arm-low.c: Include arch/arm.h.
11196 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11197 (arm_store_gregset): Likewise.
11199 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11201 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11202 ptrace's 4th parameter.
11204 2015-07-27 Yao Qi <yao.qi@linaro.org>
11206 * configure.srv (case aarch64*-*-linux*): Don't set
11209 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11211 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11213 * linux-arm-low.c: Likewise.
11214 * linux-cris-low.c: Likewise.
11215 * linux-crisv32-low.c: Likewise.
11216 * linux-low.c: Likewise.
11217 * linux-m68k-low.c: Likewise.
11218 * linux-mips-low.c: Likewise.
11219 * linux-nios2-low.c: Likewise.
11220 * linux-s390-low.c: Likewise.
11221 * linux-sparc-low.c: Likewise.
11222 * linux-tic6x-low.c: Likewise.
11223 * linux-tile-low.c: Likewise.
11224 * linux-x86-low.c: Likewise.
11226 2015-07-24 Pedro Alves <palves@redhat.com>
11228 * config.in: Regenerate.
11229 * configure: Regenerate.
11231 2015-07-24 Pedro Alves <palves@redhat.com>
11233 * acinclude.m4: Include ../ptrace.m4.
11234 * configure.ac: Call GDB_AC_PTRACE.
11235 * config.in, configure: Regenerate.
11237 2015-07-24 Yao Qi <yao.qi@linaro.org>
11239 * linux-low.c (linux_create_inferior): Remove setting to
11240 proc->priv->new_inferior.
11241 (linux_attach): Likewise.
11242 (linux_low_filter_event): Likewise.
11243 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11245 2015-07-24 Yao Qi <yao.qi@linaro.org>
11247 * linux-low.c (linux_arch_setup): New function.
11248 (linux_low_filter_event): If proc->tdesc is NULL and
11249 proc->attached is true, call the_low_target.arch_setup.
11250 Otherwise, keep status pending, and return.
11251 (linux_resume_one_lwp_throw): Don't call get_pc if
11252 thread->while_stepping isn't NULL. Don't call
11253 get_thread_regcache if proc->tdesc is NULL.
11254 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11255 (linux_target_ops): Install arch_setup.
11256 * server.c (start_inferior): Call the_target->arch_setup.
11257 * target.h (struct target_ops) <arch_setup>: New field.
11258 (target_arch_setup): New marco.
11259 * lynx-low.c (lynx_target_ops): Update.
11260 * nto-low.c (nto_target_ops): Update.
11261 * spu-low.c (spu_target_ops): Update.
11262 * win32-low.c (win32_target_ops): Update.
11264 2015-07-24 Yao Qi <yao.qi@linaro.org>
11266 * linux-low.c (linux_add_process): Don't set
11267 proc->priv->new_inferior.
11268 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11269 (linux_attach): Likewise.
11271 2015-07-24 Yao Qi <yao.qi@linaro.org>
11273 * server.c (start_inferior): Code refactor.
11275 2015-07-24 Yao Qi <yao.qi@linaro.org>
11277 * server.c (process_serial_event): Set general_thread.
11279 2015-07-21 Yao Qi <yao.qi@linaro.org>
11281 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11282 aarch64_linux_get_debug_reg_capacity.
11284 2015-07-17 Yao Qi <yao.qi@linaro.org>
11286 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11287 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11288 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11289 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11290 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11291 (AARCH64_HWP_ALIGNMENT): Likewise.
11292 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11293 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11294 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11295 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11296 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11297 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11298 (struct aarch64_debug_reg_state): Likewise.
11299 (struct arch_lwp_info): Likewise.
11300 (aarch64_align_watchpoint): Likewise.
11301 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11302 (aarch64_watchpoint_length): Likewise.
11303 (aarch64_point_encode_ctrl_reg): Likewise
11304 (aarch64_point_is_aligned): Likewise.
11305 (aarch64_align_watchpoint): Likewise.
11306 (aarch64_linux_set_debug_regs):
11307 (aarch64_dr_state_insert_one_point): Likewise.
11308 (aarch64_dr_state_remove_one_point): Likewise.
11309 (aarch64_handle_breakpoint): Likewise.
11310 (aarch64_handle_aligned_watchpoint): Likewise.
11311 (aarch64_handle_unaligned_watchpoint): Likewise.
11312 (aarch64_handle_watchpoint): Likewise.
11314 2015-07-17 Yao Qi <yao.qi@linaro.org>
11316 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11317 and don't aarch64_get_debug_reg_state. All callers update.
11318 (aarch64_handle_aligned_watchpoint): Likewise.
11319 (aarch64_handle_unaligned_watchpoint): Likewise.
11320 (aarch64_handle_watchpoint): Likewise.
11321 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11322 (aarch64_remove_point): Likewise.
11324 2015-07-17 Yao Qi <yao.qi@linaro.org>
11326 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11328 (aarch64_handle_unaligned_watchpoint): Likewise.
11330 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11332 Revert the previous 3 commits:
11333 Move gdb_regex* to common/
11334 Move linux_find_memory_regions_full & co.
11335 gdbserver build-id attribute generator
11337 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11338 Jan Kratochvil <jan.kratochvil@redhat.com>
11340 gdbserver build-id attribute generator.
11341 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11342 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11343 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11345 (get_dynamic): Use find_pdhr to traverse program headers.
11346 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11347 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11348 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11349 (get_hex_build_id): New.
11350 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11351 to reply XML document.
11353 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11354 Jan Kratochvil <jan.kratochvil@redhat.com>
11356 * target.c: Include target/target-utils.h and fcntl.h.
11357 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11358 (target_fileio_read_stralloc): New functions.
11360 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11362 * Makefile.in (OBS): Add gdb_regex.o.
11363 (gdb_regex.o): New.
11364 * config.in: Rebuilt.
11365 * configure: Rebuilt.
11367 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11368 Jan Kratochvil <jan.kratochvil@redhat.com>
11370 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11371 * Makefile.in (OBS): Add target-utils.o.
11372 (linux-maps.o, target-utils.o): New.
11373 * configure.srv (srv_linux_obj): Add linux-maps.o.
11375 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11377 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11378 function, return 1.
11379 (the_low_target): Install it.
11381 2015-07-14 Pedro Alves <palves@redhat.com>
11383 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11384 Instead, ignore ECHILD, and throw an error for other errnos.
11386 2015-07-10 Pedro Alves <palves@redhat.com>
11388 * event-loop.c (struct callback_event) <data>: Change type to
11389 gdb_client_data instance instead of gdb_client_data pointer.
11390 (append_callback_event): Adjust.
11392 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11394 * linux-aarch64-low.c: Add comments for each linux_target_ops
11395 method. Remove comments already covered in target_ops and
11396 linux_target_ops definitions.
11397 (the_low_target): Add comments for each unimplemented method.
11399 2015-07-09 Yao Qi <yao.qi@linaro.org>
11401 * linux-aarch64-low.c (aarch64_regmap): Remove.
11402 (aarch64_usrregs_info): Remove.
11403 (regs_info): Set field usrregs to NULL.
11405 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11407 * linux-low.c: Include "rsp-low.h"
11408 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11409 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11410 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11411 (handle_btrace_enable_pt): New.
11412 (handle_btrace_general_set): Support "pt".
11413 (handle_btrace_conf_general_set): Support "pt:size".
11415 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11417 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11420 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11422 * linux-aarch64-low.c: Remove comment about endianness.
11423 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11424 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11427 2015-06-24 Gary Benson <gbenson@redhat.com>
11429 * linux-i386-ipa.c (stdint.h): Do not include.
11430 * lynx-i386-low.c (stdint.h): Likewise.
11431 * lynx-ppc-low.c (stdint.h): Likewise.
11432 * mem-break.c (stdint.h): Likewise.
11433 * thread-db.c (stdint.h): Likewise.
11434 * tracepoint.c (stdint.h): Likewise.
11435 * win32-low.c (stdint.h): Likewise.
11437 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11439 * server.c (write_qxfer_response): Update call to
11440 remote_escape_output.
11442 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11443 Jan Kratochvil <jan.kratochvil@redhat.com>
11445 Merge multiple hex conversions.
11446 * gdbreplay.c (tohex): Rename to 'fromhex'.
11447 (logchar): Use fromhex.
11449 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11451 * server.c (handle_qxfer_libraries): Set `version' attribute for
11454 2015-06-10 Gary Benson <gbenson@redhat.com>
11456 * target.h (struct target_ops) <multifs_open>: New field.
11457 <multifs_unlink>: Likewise.
11458 <multifs_readlink>: Likewise.
11459 * linux-low.c (nat/linux-namespaces.h): New include.
11460 (linux_target_ops): Initialize the_target->multifs_open,
11461 the_target->multifs_unlink and the_target->multifs_readlink.
11462 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11463 * hostio.c (hostio_fs_pid): New static variable.
11464 (hostio_handle_new_gdb_connection): New function.
11465 (handle_setfs): Likewise.
11466 (handle_open): Use the_target->multifs_open as appropriate.
11467 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11468 (handle_readlink): Use the_target->multifs_readlink as
11470 (handle_vFile): Handle vFile:setfs packets.
11471 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11472 after target_handle_new_gdb_connection.
11474 2015-06-10 Gary Benson <gbenson@redhat.com>
11476 * configure.ac (AC_CHECK_FUNCS): Add setns.
11477 * config.in: Regenerate.
11478 * configure: Likewise.
11479 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11480 (linux-namespaces.o): New rule.
11481 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11483 2015-06-09 Gary Benson <gbenson@redhat.com>
11485 * hostio.c (handle_open): Process mode argument with
11486 fileio_to_host_mode.
11488 2015-06-01 Yao Qi <yao.qi@linaro.org>
11490 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11491 * linux-x86-low.c: Likewise.
11493 2015-05-28 Don Breazeal <donb@codesourcery.com>
11495 * linux-low.c (handle_extended_wait): Initialize
11496 thread_info.last_resume_kind for new fork children.
11498 2015-05-15 Pedro Alves <palves@redhat.com>
11500 * target.h (target_handle_new_gdb_connection): Rewrite using if
11501 wrapped in do/while.
11503 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11505 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11506 * configure, config.in: Regenerate.
11507 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11510 2015-05-12 Don Breazeal <donb@codesourcery.com>
11512 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11513 PTRACE_EVENT_VFORK_DONE.
11514 (linux_low_ptrace_options, extended_event_reported): Add vfork
11516 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11517 and "vforkdone" for RSP 'T' Stop Reply Packet.
11518 * server.h (report_vfork_events): Declare
11521 2015-05-12 Don Breazeal <donb@codesourcery.com>
11523 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11524 (the_low_target) <new_fork>: Initialize new member.
11525 * linux-arm-low.c (arm_new_fork): New function.
11526 (the_low_target) <new_fork>: Initialize new member.
11527 * linux-low.c (handle_extended_wait): Call new target function
11529 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11530 * linux-mips-low.c (mips_add_watchpoint): New function
11531 extracted from mips_insert_point.
11532 (the_low_target) <new_fork>: Initialize new member.
11533 (mips_linux_new_fork): New function.
11534 (mips_insert_point): Call mips_add_watchpoint.
11535 * linux-x86-low.c (x86_linux_new_fork): New function.
11536 (the_low_target) <new_fork>: Initialize new member.
11538 2015-05-12 Don Breazeal <donb@codesourcery.com>
11540 * linux-low.c (handle_extended_wait): Implement return value,
11541 rename argument 'event_child' to 'event_lwp', handle
11542 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11543 (linux_low_ptrace_options): New function.
11544 (linux_low_filter_event): Call linux_low_ptrace_options,
11545 use different argument fo linux_enable_event_reporting,
11546 use return value from handle_extended_wait.
11547 (extended_event_reported): New function.
11548 (linux_wait_1): Call extended_event_reported and set
11549 status to report fork events.
11550 (linux_write_memory): Add pid to debug message.
11551 (reset_lwp_ptrace_options_callback): New function.
11552 (linux_handle_new_gdb_connection): New function.
11553 (linux_target_ops): Initialize new structure member.
11554 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11555 * lynx-low.c: Initialize new structure member.
11556 * remote-utils.c (prepare_resume_reply): Implement stop reason
11557 "fork" for "T" stop message.
11558 * server.c (handle_query): Call handle_new_gdb_connection.
11559 * server.h (report_fork_events): Declare global flag.
11560 * target.h (struct target_ops) <handle_new_gdb_connection>:
11562 (target_handle_new_gdb_connection): New macro.
11563 * win32-low.c: Initialize new structure member.
11565 2015-05-12 Don Breazeal <donb@codesourcery.com>
11567 * mem-break.c (APPEND_TO_LIST): Define macro.
11568 (clone_agent_expr): New function.
11569 (clone_one_breakpoint): New function.
11570 (clone_all_breakpoints): New function.
11571 * mem-break.h: Declare new functions.
11573 2015-05-12 Don Breazeal <donb@codesourcery.com>
11575 * linux-low.c (linux_supports_fork_events): New function.
11576 (linux_supports_vfork_events): New function.
11577 (linux_target_ops): Initialize new structure members.
11578 (initialize_low): Call linux_check_ptrace_features.
11579 * lynx-low.c (lynx_target_ops): Initialize new structure
11581 * server.c (report_fork_events, report_vfork_events):
11583 (handle_query): Add new features to qSupported packet and
11585 (captured_main): Initialize new global variables.
11586 * target.h (struct target_ops) <supports_fork_events>:
11588 <supports_vfork_events>: New member.
11589 (target_supports_fork_events): New macro.
11590 (target_supports_vfork_events): New macro.
11591 * win32-low.c (win32_target_ops): Initialize new structure
11594 2015-05-12 Gary Benson <gbenson@redhat.com>
11596 * server.c (handle_qxfer_exec_file): Use current process
11599 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11601 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11602 Remove HAVE_PTRACE_GETREGS conditionals.
11603 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11604 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11606 2015-05-08 Yao Qi <yao.qi@linaro.org>
11608 * linux-low.c (linux_supports_conditional_breakpoints): New
11610 (linux_target_ops): Install new target method.
11611 * lynx-low.c (lynx_target_ops): Install NULL hook for
11612 supports_conditional_breakpoints.
11613 * nto-low.c (nto_target_ops): Likewise.
11614 * spu-low.c (spu_target_ops): Likewise.
11615 * win32-low.c (win32_target_ops): Likewise.
11616 * server.c (handle_query): Check
11617 target_supports_conditional_breakpoints.
11618 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11620 (target_supports_conditional_breakpoints): New macro.
11622 2015-05-06 Pedro Alves <palves@redhat.com>
11625 * server.c (start_inferior): If the process exits, mourn it.
11627 2015-04-21 Gary Benson <gbenson@redhat.com>
11629 * hostio.c (fileio_open_flags_to_host): Factored out to
11630 fileio_to_host_openflags in common/fileio.c. Single use
11633 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11635 * linux-xtensa-low.c (xtensa_fill_gregset)
11636 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11639 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11641 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11642 (regs_info): Replace usrregs pointer with NULL.
11644 2015-04-17 Gary Benson <gbenson@redhat.com>
11646 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11647 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11648 * server.c (handle_qxfer_exec_file): New function.
11649 (qxfer_packets): Add exec-file entry.
11650 (handle_query): Report qXfer:exec-file:read as supported packet.
11652 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11654 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11656 2015-04-09 Gary Benson <gbenson@redhat.com>
11658 * hostio-errno.c (errno_to_fileio_error): Remove function.
11659 Update caller to use remote_fileio_to_fio_error.
11661 2015-04-09 Yao Qi <yao.qi@linaro.org>
11663 * linux-low.c (linux_insert_point): Call
11664 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11665 (linux_remove_point): Call remove_memory_breakpoint if type is
11667 * linux-x86-low.c (x86_insert_point): Don't call
11668 insert_memory_breakpoint.
11669 (x86_remove_point): Don't call remove_memory_breakpoint.
11671 2015-04-01 Pedro Alves <palves@redhat.com>
11672 Cleber Rosa <crosa@redhat.com>
11674 * server.c (gdbserver_usage): Reorganize and extend the usage
11677 2015-03-24 Pedro Alves <palves@redhat.com>
11679 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11680 output. Also dump TRAP_TRACE.
11681 (linux_low_filter_event): In debug output, distinguish a
11682 resume_stop SIGSTOP from a delayed SIGSTOP.
11684 2015-03-24 Gary Benson <gbenson@redhat.com>
11686 * linux-x86-low.c (x86_linux_new_thread): Moved to
11688 (x86_linux_prepare_to_resume): Likewise.
11690 2015-03-24 Gary Benson <gbenson@redhat.com>
11692 * Makefile.in (x86-linux-dregs.o): New rule.
11693 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11694 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11695 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11696 (x86_linux_dr_get): Likewise.
11697 (x86_linux_dr_set): Likewise.
11698 (update_debug_registers_callback): Likewise.
11699 (x86_linux_dr_set_addr): Likewise.
11700 (x86_linux_dr_get_addr): Likewise.
11701 (x86_linux_dr_set_control): Likewise.
11702 (x86_linux_dr_get_control): Likewise.
11703 (x86_linux_dr_get_status): Likewise.
11704 (x86_linux_update_debug_registers): Likewise.
11706 2015-03-24 Gary Benson <gbenson@redhat.com>
11708 * linux-x86-low.c (x86_linux_update_debug_registers):
11709 New function, factored out from...
11710 (x86_linux_prepare_to_resume): ...this.
11712 2015-03-24 Gary Benson <gbenson@redhat.com>
11714 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11715 (x86_linux_dr_set): Likewise.
11716 (update_debug_registers_callback): Likewise.
11717 (x86_linux_dr_set_addr): Likewise.
11718 (x86_linux_dr_get_addr): Likewise.
11719 (x86_linux_dr_set_control): Likewise.
11720 (x86_linux_dr_get_control): Likewise.
11721 (x86_linux_dr_get_status): Likewise.
11722 (x86_linux_prepare_to_resume): Likewise.
11724 2015-03-24 Gary Benson <gbenson@redhat.com>
11726 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11727 Use perror_with_name. Pass string through gettext.
11728 (x86_linux_dr_set): Likewise.
11730 2015-03-24 Gary Benson <gbenson@redhat.com>
11732 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11733 (x86_linux_dr_set_addr): ...this.
11734 (x86_dr_low_get_addr): Rename to...
11735 (x86_linux_dr_get_addr): ...this.
11736 (x86_dr_low_set_control): Rename to...
11737 (x86_linux_dr_set_control): ...this.
11738 (x86_dr_low_get_control): Rename to...
11739 (x86_linux_dr_get_control): ...this.
11740 (x86_dr_low_get_status): Rename to...
11741 (x86_linux_dr_get_status): ...this.
11742 (x86_dr_low): Update with new function names.
11744 2015-03-24 Gary Benson <gbenson@redhat.com>
11746 * Makefile.in (x86-linux.o): New rule.
11747 * configure.srv: Add x86-linux.o to relevant targets.
11748 * linux-low.c (lwp_set_arch_private_info): New function.
11749 (lwp_arch_private_info): Likewise.
11750 * linux-x86-low.c: Include nat/x86-linux.h.
11751 (arch_lwp_info): Removed structure.
11752 (update_debug_registers_callback):
11753 Use lwp_set_debug_registers_changed.
11754 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11755 and lwp_set_debug_registers_changed.
11756 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11758 2015-03-24 Gary Benson <gbenson@redhat.com>
11760 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11761 * linux-arm-low.c (arm_new_thread): Likewise.
11762 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11763 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11764 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11765 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11767 2015-03-24 Gary Benson <gbenson@redhat.com>
11769 * linux-low.c (ptid_of_lwp): New function.
11770 (lwp_is_stopped): Likewise.
11771 (lwp_stop_reason): Likewise.
11772 * linux-x86-low.c (update_debug_registers_callback):
11773 Use lwp_is_stopped.
11774 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11777 2015-03-24 Gary Benson <gbenson@redhat.com>
11779 * linux-low.h (linux_stop_lwp): Remove declaration.
11781 2015-03-24 Gary Benson <gbenson@redhat.com>
11783 * linux-low.h: Include nat/linux-nat.h.
11784 * linux-low.c (iterate_over_lwps_args): New structure.
11785 (iterate_over_lwps_filter): New function.
11786 (iterate_over_lwps): Likewise.
11787 * linux-x86-low.c (update_debug_registers_callback):
11788 Update signature to what iterate_over_lwps expects.
11789 Remove PID check that iterate_over_lwps now performs.
11790 (x86_dr_low_set_addr): Use iterate_over_lwps.
11791 (x86_dr_low_set_control): Likewise.
11793 2015-03-24 Gary Benson <gbenson@redhat.com>
11795 * linux-x86-low.c (x86_debug_reg_state): New function.
11796 (x86_linux_prepare_to_resume): Use the above.
11798 2015-03-24 Gary Benson <gbenson@redhat.com>
11800 * linux-low.c (current_lwp_ptid): New function.
11801 * linux-x86-low.c: Include nat/linux-nat.h.
11802 (x86_dr_low_get_addr): Use current_lwp_ptid.
11803 (x86_dr_low_get_control): Likewise.
11804 (x86_dr_low_get_status): Likewise.
11806 2015-03-20 Pedro Alves <palves@redhat.com>
11808 * tracepoint.c (cmd_qtstatus): Make "str" const.
11810 2015-03-20 Pedro Alves <palves@redhat.com>
11812 * server.c (handle_general_set): Make "req_str" const.
11814 2015-03-19 Pedro Alves <palves@redhat.com>
11816 * linux-low.c (linux_resume_one_lwp): Rename to ...
11817 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11818 instead call perror_with_name.
11819 (check_ptrace_stopped_lwp_gone): New function.
11820 (linux_resume_one_lwp): Reimplement as wrapper around
11821 linux_resume_one_lwp_throw that swallows errors if the LWP is
11824 2015-03-19 Pedro Alves <palves@redhat.com>
11826 * linux-low.c (count_events_callback, select_event_lwp_callback):
11827 No longer check whether the thread has resume_stop as last resume
11830 2015-03-19 Pedro Alves <palves@redhat.com>
11832 * linux-low.c (count_events_callback, select_event_lwp_callback):
11833 Use the lwp's status_pending_p field, not the thread's.
11835 2015-03-19 Pedro Alves <palves@redhat.com>
11837 * linux-low.c (select_event_lwp_callback): Update comments to
11838 no longer mention SIGTRAP.
11840 2015-03-18 Gary Benson <gbenson@redhat.com>
11842 * server.c (handle_query): Do not report vFile:fstat as supported.
11844 2015-03-11 Gary Benson <gbenson@redhat.com>
11846 * hostio.c (sys/types.h): New include.
11847 (sys/stat.h): Likewise.
11848 (common-remote-fileio.h): Likewise.
11849 (handle_fstat): New function.
11850 (handle_vFile): Handle vFile:fstat packets.
11852 2015-03-11 Gary Benson <gbenson@redhat.com>
11854 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11855 struct stat.st_blocks and struct stat.st_blksize.
11856 * configure: Regenerate.
11857 * config.in: Likewise.
11858 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11859 (OBS): Add common-remote-fileio.o.
11860 (common-remote-fileio.o): New rule.
11862 2015-03-09 Pedro Alves <palves@redhat.com>
11864 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11865 'struct sockaddr' pointer in 'accept' call.
11867 2015-03-09 Pedro Alves <palves@redhat.com>
11870 2015-03-07 Pedro Alves <palves@redhat.com>
11871 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11872 or <winsock2.h> here. Instead include "gdb_socket.h".
11873 (remote_open): Use union gdb_sockaddr_u.
11874 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11875 or <winsock2.h> here. Instead include "gdb_socket.h".
11876 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11877 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11879 (init_named_socket, gdb_agent_helper_thread): Use union
11882 2015-03-07 Pedro Alves <palves@redhat.com>
11884 * configure.ac (build_warnings): Move
11885 -Wdeclaration-after-statement to the C-specific set.
11886 * configure: Regenerate.
11888 2015-03-07 Pedro Alves <palves@redhat.com>
11890 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11891 or <winsock2.h> here. Instead include "gdb_socket.h".
11892 (remote_open): Use union gdb_sockaddr_u.
11893 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11894 or <winsock2.h> here. Instead include "gdb_socket.h".
11895 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11896 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11898 (init_named_socket, gdb_agent_helper_thread): Use union
11901 2015-03-07 Pedro Alves <palves@redhat.com>
11903 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11906 2015-03-06 Yao Qi <yao.qi@linaro.org>
11908 * linux-aarch64-low.c (aarch64_insert_point): Use
11909 show_debug_regs as a boolean.
11910 (aarch64_remove_point): Likewise.
11912 2015-03-05 Pedro Alves <palves@redhat.com>
11914 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11915 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11916 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11917 * nto-low.c (nto_target_ops): Likewise.
11918 * spu-low.c (spu_target_ops): Likewise.
11919 * win32-low.c (win32_target_ops): Likewise.
11921 2015-03-04 Pedro Alves <palves@redhat.com>
11923 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11924 Decide whether a breakpoint triggered based on the SIGTRAP's
11926 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11927 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11928 (linux_low_filter_event): Check for breakpoints before checking
11930 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11932 (linux_stopped_by_sw_breakpoint)
11933 (linux_supports_stopped_by_sw_breakpoint)
11934 (linux_stopped_by_hw_breakpoint)
11935 (linux_supports_stopped_by_hw_breakpoint): New functions.
11936 (linux_target_ops): Install new target methods.
11938 2015-03-04 Pedro Alves <palves@redhat.com>
11940 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11941 * server.c (swbreak_feature, hwbreak_feature): New globals.
11942 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11943 (captured_main): Clear swbreak_feature and hwbreak_feature.
11944 * server.h (swbreak_feature, hwbreak_feature): Declare.
11945 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11946 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11947 supports_stopped_by_hw_breakpoint>: New fields.
11948 (target_supports_stopped_by_sw_breakpoint)
11949 (target_stopped_by_sw_breakpoint)
11950 (target_supports_stopped_by_hw_breakpoint)
11951 (target_stopped_by_hw_breakpoint): Declare.
11953 2015-03-04 Pedro Alves <palves@redhat.com>
11955 enum lwp_stop_reason -> enum target_stop_reason
11956 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11957 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11958 (linux_wait_1, stuck_in_jump_pad_callback)
11959 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11960 (linux_stopped_by_watchpoint):
11961 * linux-low.h (enum lwp_stop_reason): Delete.
11962 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11963 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11965 2015-03-04 Yao Qi <yao.qi@linaro.org>
11967 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11969 2015-03-03 Gary Benson <gbenson@redhat.com>
11971 * hostio.c (handle_vFile): Fix prefix lengths.
11973 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11975 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11978 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11980 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11981 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11982 (clean): Add "rm -f" for above C files.
11983 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11984 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11985 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11986 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11987 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11988 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11989 (init_registers_s390x_vx_linux64)
11990 (init_registers_s390x_tevx_linux64)
11991 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11992 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11994 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11995 (s390_store_vxrs_high): New functions.
11996 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11998 (s390_arch_setup): Add logic for selecting one of the new target
11999 descriptions. Activate the new vector regsets if applicable.
12000 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12001 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12002 and init_registers_s390x_tevx_linux64.
12004 2015-03-01 Pedro Alves <palves@redhat.com>
12006 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12009 2015-02-27 Pedro Alves <palves@redhat.com>
12011 * linux-x86-low.c (u_debugreg_offset): New function.
12012 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12014 2015-02-27 Pedro Alves <palves@redhat.com>
12016 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12017 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12018 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12019 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12020 (ps_lsetfpregs, ps_getpid)
12021 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12022 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12023 (ps_lsetxregs, ps_plog): Declare.
12025 2015-02-27 Pedro Alves <palves@redhat.com>
12027 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12028 IP_AGENT_EXPORT_FUNC.
12029 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12030 IP_AGENT_EXPORT_FUNC.
12031 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12032 (IP_AGENT_EXPORT): Delete.
12033 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12034 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12035 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12036 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12037 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12038 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12039 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12040 (traceframe_read_count, traceframe_write_count)
12041 (traceframes_created, trace_state_variables, get_raw_reg)
12042 (get_trace_state_variable_value, set_trace_state_variable_value)
12043 (ust_loaded, helper_thread_id, cmd_buf): Use
12044 IPA_SYM_EXPORTED_NAME.
12045 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12046 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12047 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12048 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12049 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12050 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12051 EXTERN_C_PUSH/EXTERN_C_POP.
12052 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12053 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12054 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12055 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12056 (traceframe_write_count, traceframe_read_count)
12057 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12058 (about_to_request_buffer_space, get_trace_state_variable_value)
12059 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12060 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12061 EXTERN_C_PUSH/EXTERN_C_POP.
12062 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12063 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12064 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12065 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12066 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12067 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12068 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12069 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12071 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12072 (IP_AGENT_EXPORT_VAR_DECL): Define.
12073 (tracing): Declare.
12074 (gdb_agent_get_raw_reg): Declare.
12076 2015-02-27 Tom Tromey <tromey@redhat.com>
12077 Pedro Alves <palves@redhat.com>
12079 Rename symbols whose names are reserved C++ keywords throughout.
12081 2015-02-27 Pedro Alves <palves@redhat.com>
12083 * Makefile.in (COMPILER): New, get it from autoconf.
12084 (CXX): Get from autoconf instead.
12085 (COMPILE.pre): Use COMPILER.
12086 (CC-LD): Rename to ...
12087 (CC_LD): ... this. Use COMPILER.
12088 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12089 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12090 * acinclude.m4: Include build-with-cxx.m4.
12091 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12092 Disable -Werror by default if building in C++ mode.
12093 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12094 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12095 the C++ compiler. Save/restore CXXFLAGS too.
12096 * configure: Regenerate.
12098 2015-02-27 Pedro Alves <palves@redhat.com>
12100 * acinclude.m4: Include libiberty.m4.
12101 * configure.ac: Call libiberty_INIT.
12102 * config.in, configure: Regenerate.
12104 2015-02-26 Pedro Alves <palves@redhat.com>
12106 * linux-low.c (linux_wait_1): When incrementing the PC past a
12107 program breakpoint always use the_low_target.breakpoint_len as
12108 increment, rather than the maximum between that and
12109 the_low_target.decr_pc_after_break.
12111 2015-02-23 Pedro Alves <palves@redhat.com>
12113 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12114 thread was doing a step-over; always adjust the PC if
12115 we stepped over a permanent breakpoint.
12116 (linux_wait_1): If we stepped over breakpoint that was on top of a
12117 permanent breakpoint, manually advance the PC past it.
12119 2015-02-23 Pedro Alves <palves@redhat.com>
12121 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12123 (x86_fill_gregset, x86_store_gregset): Use it when handling
12126 2015-02-20 Pedro Alves <palves@redhat.com>
12128 * thread-db.c: Include "nat/linux-procfs.h".
12129 (thread_db_init): Skip listing new threads if the kernel supports
12130 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12132 2015-02-20 Pedro Alves <palves@redhat.com>
12134 * linux-low.c (status_pending_p_callback): Use ptid_match.
12136 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12138 PR breakpoints/16812
12139 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12140 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12141 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12143 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12145 PR breakpoints/15956
12146 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12148 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12150 * linux-low.c (linux_low_btrace_conf): Print size.
12151 * server.c (handle_btrace_conf_general_set): New.
12152 (hanle_general_set): Call handle_btrace_conf_general_set.
12153 (handle_query): Report Qbtrace-conf:bts:size as supported.
12155 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12157 * linux-low.c (linux_low_enable_btrace): Update parameters.
12158 (linux_low_btrace_conf): New.
12159 (linux_target_ops)<to_btrace_conf>: Initialize.
12160 * server.c (current_btrace_conf): New.
12161 (handle_btrace_enable): Rename to ...
12162 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12163 to target_enable_btrace. Update comment. Update users.
12164 (handle_qxfer_btrace_conf): New.
12165 (qxfer_packets): Add btrace-conf entry.
12166 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12167 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12168 (target_ops)<read_btrace_conf>: New.
12169 (target_enable_btrace): Update parameters.
12170 (target_read_btrace_conf): New.
12172 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12174 * server.c (handle_btrace_general_set): Remove call to
12175 target_supports_btrace.
12176 (supported_btrace_packets): New.
12177 (handle_query): Call supported_btrace_packets.
12178 * target.h: include btrace-common.h.
12179 (btrace_target_info): Removed.
12180 (supports_btrace, target_supports_btrace): Update parameters.
12182 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12184 * Makefile.in (SFILES): Add common/btrace-common.c.
12185 (OBS): Add common/btrace-common.o.
12186 (btrace-common.o): Add build rules.
12187 * linux-low: Include btrace-common.h.
12188 (linux_low_read_btrace): Use struct btrace_data. Call
12189 btrace_data_init and btrace_data_fini.
12191 2015-02-06 Pedro Alves <palves@redhat.com>
12193 * thread-db.c (find_new_threads_callback): Add debug output.
12195 2015-02-04 Pedro Alves <palves@redhat.com>
12197 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12198 (resume_stopped_resumed_lwps): New function.
12199 (linux_wait_for_event_filtered): Use it.
12201 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12203 * Makefile.in (SFILES): Add linux-personality.c.
12204 (linux-personality.o): New rule.
12205 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12206 list of objects to be built.
12207 * linux-low.c: Include nat/linux-personality.h.
12208 (linux_create_inferior): Remove code to disable address space
12209 randomization (moved to ../nat/linux-personality.c). Create
12210 cleanup to disable address space randomization.
12212 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12214 * Makefile.in (posix-strerror.o): New rule.
12215 (mingw-strerror.o): Likewise.
12216 * configure: Regenerated.
12217 * configure.ac: Source file ../common/common.host. Initialize new
12218 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12220 2015-01-14 Yao Qi <yao@codesourcery.com>
12222 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12223 (ppc-linux.o): New rule.
12224 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12225 * configure.ac: AC_CHECK_FUNCS(getauxval).
12226 * config.in: Re-generated.
12227 * configure: Re-generated.
12228 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12229 ppc64_64bit_inferior_p
12231 2015-01-14 Yao Qi <yao@codesourcery.com>
12233 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12234 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12235 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12236 (PT_ORIG_R3, PT_TRAP): Likewise.
12237 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12238 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12239 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12241 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12243 * i387-fp.c (i387_cache_to_xsave): In look over
12244 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12245 zmmh_low_space field by use of zmmh_high_space.
12247 2015-01-09 Pedro Alves <palves@redhat.com>
12249 * linux-low.c (step_over_bkpt): Move higher up in the file.
12250 (handle_extended_wait): Don't store the stop_pc here.
12251 (get_stop_pc): Adjust comments and rename to ...
12252 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12253 stopped for a software breakpoint or hardware breakpoint.
12254 (thread_still_has_status_pending_p): New function.
12255 (status_pending_p_callback): Use
12256 thread_still_has_status_pending_p. If the event is no longer
12257 interesting, resume the LWP.
12258 (handle_tracepoints): Add assert.
12259 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12260 (wstatus_maybe_breakpoint): New function.
12261 (cancel_breakpoint): Delete function.
12262 (check_stopped_by_watchpoint): New function, factored out from
12263 linux_low_filter_event.
12264 (lp_status_maybe_breakpoint): Delete function.
12265 (linux_low_filter_event): Remove filter_ptid argument.
12266 Leave thread group exits pending here. Store the LWP's stop PC.
12267 Always leave events pending.
12268 (linux_wait_for_event_filtered): Pull all events out of the
12269 kernel, and leave them all pending.
12270 (count_events_callback, select_event_lwp_callback): Consider all
12272 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12273 (select_event_lwp): Only give preference to the stepping LWP in
12274 all-stop mode. Adjust comments.
12275 (ignore_event): New function.
12276 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12277 references to cancel_breakpoints. Adjust to renames. Also give
12278 equal priority to all LWPs that have had events in non-stop mode.
12279 If reporting a software breakpoint event, unadjust the LWP's PC.
12280 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12281 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12283 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12284 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12285 (linux_stopped_by_watchpoint): Adjust.
12286 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12287 * linux-low.h (enum lwp_stop_reason): New.
12288 (struct lwp_info) <stop_pc>: Adjust comment.
12289 <stopped_by_watchpoint>: Delete field.
12290 <stop_reason>: New field.
12291 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12292 * mem-break.c (software_breakpoint_inserted_here)
12293 (hardware_breakpoint_inserted_here): New function.
12294 * mem-break.h (software_breakpoint_inserted_here)
12295 (hardware_breakpoint_inserted_here): Declare.
12296 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12297 (cancel_breakpoints): Delete.
12298 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12299 (upload_fast_traceframes): Remove references to
12300 cancel_breakpoints.
12302 2015-01-09 Pedro Alves <palves@redhat.com>
12304 * thread-db.c (find_new_threads_callback): Ignore thread if the
12305 kernel thread ID is -1.
12307 2015-01-09 Pedro Alves <palves@redhat.com>
12309 * linux-low.c (linux_attach_fail_reason_string): Move to
12310 nat/linux-ptrace.c, and rename.
12311 (linux_attach_lwp): Update comment.
12312 (attach_proc_task_lwp_callback): New function.
12313 (linux_attach): Adjust to rename and use
12314 linux_proc_attach_tgid_threads.
12315 (linux_attach_fail_reason_string): Delete declaration.
12317 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12319 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12320 * server.c (gdbserver_version): Likewise.
12322 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12324 * remote-utils.c: Include ctype.h.
12325 (input_interrupt): Explicitly handle the case when the char
12326 received is the NUL byte. Improve the printing of non-ASCII
12329 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12331 * linux-low.c (linux_low_filter_event): Update call to
12332 linux_enable_event_reporting following the addition of
12333 a new parameter to that function.
12335 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12338 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12339 (AARCH64_FPCR_REGNO): Likewise.
12340 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12341 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12342 (aarch64_store_fpregset): Likewise.
12344 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12346 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12347 Remove FIXME comment about assumption about N.
12349 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12351 * configure.ac: If large-file support is disabled in GDBserver,
12352 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12353 * configure: Regenerate.
12355 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12357 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12358 warning upon ENODATA from ptrace.
12359 * linux-s390-low.c (s390_store_tdb): New.
12360 (s390_regsets): Add regset for NT_S390_TDB.
12362 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12364 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12365 without a fill_function.
12366 * linux-s390-low.c (s390_fill_last_break): Remove.
12367 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12368 (s390_arch_setup): Use regset's size instead of fill_function for
12369 loop end condition.
12371 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12373 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12374 the regset's store function when ptrace returned an error.
12375 * regcache.c (get_thread_regcache): Invalidate register cache
12376 before fetching inferior's registers.
12378 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12380 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12381 while-loop as for-loop.
12382 (regsets_store_inferior_registers): Likewise.
12384 2014-11-28 Yao Qi <yao@codesourcery.com>
12386 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12387 * config.in, configure: Re-generate.
12388 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12391 2014-11-21 Yao Qi <yao@codesourcery.com>
12393 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12394 (AC_CHECK_HEADERS): Remove malloc.h.
12395 * configure: Re-generated.
12396 * config.in: Re-generated.
12397 * server.h: Don't include alloca.h and malloc.h.
12398 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12399 Don't include malloc.h.
12401 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12403 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12404 corresponding ERRNO check in same block.
12406 2014-11-12 Pedro Alves <palves@redhat.com>
12408 * server.c (cont_thread): Update comment.
12409 (start_inferior, attach_inferior): No longer clear cont_thread.
12410 (handle_v_cont): No longer set cont_thread.
12411 (captured_main): Clear cont_thread each time a GDB connects.
12413 2014-11-12 Pedro Alves <palves@redhat.com>
12415 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12416 thread, and don't resume all threads if the Hc thread has exited.
12418 2014-11-12 Pedro Alves <palves@redhat.com>
12420 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12421 the process group instead of to a specific LWP.
12423 2014-10-15 Pedro Alves <palves@redhat.com>
12426 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12428 (arm_set_thread_context): Delete.
12429 (the_low_target): Adjust.
12430 * win32-i386-low.c (debug_registers_changed)
12431 (debug_registers_used): Delete.
12432 (update_debug_registers_callback): New function.
12433 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12434 needing to update their debug registers.
12435 (win32_get_current_dr): New function.
12436 (x86_dr_low_get_addr, x86_dr_low_get_control)
12437 (x86_dr_low_get_status): Fetch the debug register from the thread
12439 (i386_initial_stuff): Adjust.
12440 (i386_get_thread_context): Remove current_event parameter. Don't
12441 clear debug_registers_changed nor copy DR values to
12443 (i386_set_thread_context): Delete.
12444 (i386_prepare_to_resume): New function.
12445 (i386_thread_added): Mark the thread as needing to update irs
12447 (the_low_target): Remove i386_set_thread_context and install
12448 i386_prepare_to_resume.
12449 * win32-low.c (win32_get_thread_context): Adjust.
12450 (win32_set_thread_context): Use SetThreadContext
12452 (win32_prepare_to_resume): New function.
12453 (win32_require_context): New function, factored out from ...
12454 (thread_rec): ... this.
12455 (continue_one_thread): Call win32_prepare_to_resume on each thread
12456 we're about to continue.
12457 (win32_resume): Call win32_prepare_to_resume on the event thread.
12458 * win32-low.h (struct win32_thread_info)
12459 <debug_registers_changed>: New field.
12460 (struct win32_target_ops): Change prototype of set_thread_context,
12461 delete set_thread_context and add prepare_to_resume.
12462 (win32_require_context): New declaration.
12464 2014-10-08 Gary Benson <gbenson@redhat.com>
12466 * server.h: Do not include common-exceptions.h.
12468 2014-10-08 Gary Benson <gbenson@redhat.com>
12470 * server.h: Do not include cleanups.h.
12472 2014-09-30 James Hogan <james.hogan@imgtec.com>
12474 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12475 mips64-dsp-linux.c.
12477 2014-09-23 Yao Qi <yao@codesourcery.com>
12479 * linux-low.c (lp_status_maybe_breakpoint): New function.
12480 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12481 (count_events_callback): Likewise.
12482 (select_event_lwp_callback): Likewise.
12483 (cancel_breakpoints_callback): Likewise.
12485 2014-09-19 Don Breazeal <donb@codesourcery.com>
12487 * linux-low.c (handle_extended_wait): Call
12488 linux_ptrace_get_extended_event.
12489 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12490 linux_is_extended_waitstatus.
12492 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12494 * Makefile.in (CPPFLAGS): Define.
12495 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12496 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12498 2014-09-16 Gary Benson <gbenson@redhat.com>
12500 * inferiors.h (current_inferior): Renamed as...
12501 (current_thread): New variable. All uses updated.
12502 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12503 (maybe_move_out_of_jump_pad): Likewise.
12504 (cancel_breakpoint): Likewise.
12505 (linux_low_filter_event): Likewise.
12506 (wait_for_sigstop): Likewise.
12507 (linux_resume_one_lwp): Likewise.
12508 (need_step_over_p): Likewise.
12509 (start_step_over): Likewise.
12510 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12511 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12512 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12513 and save_inferior as saved_thread.
12514 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12516 (regcache_invalidate_thread): Likewise.
12517 * remote-utils.c (prepare_resume_reply): Likewise.
12518 * thread-db.c (thread_db_get_tls_address): Likewise.
12519 (disable_thread_event_reporting): Likewise.
12520 (remove_thread_event_breakpoints): Likewise.
12521 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12523 * target.h (set_desired_inferior): Renamed as...
12524 (set_desired_thread): New declaration. All uses updated.
12525 * server.c (myresume): Updated comment to reference thread instead
12527 (handle_serial_event): Likewise.
12528 (handle_target_event): Likewise.
12530 2014-09-12 Tom Tromey <tromey@redhat.com>
12531 Gary Benson <gbenson@redhat.com>
12533 * regcache.h: Include common-regcache.h.
12534 (regcache_read_pc): Don't declare.
12535 * regcache.c (get_thread_regcache_for_ptid): New function.
12537 2014-09-11 Tom Tromey <tromey@redhat.com>
12538 Gary Benson <gbenson@redhat.com>
12540 * symbol.c: New file.
12541 * Makefile.in (SFILES): Add symbol.c.
12542 (OBS): Add symbol.o.
12544 2014-09-11 Gary Benson <gbenson@redhat.com>
12546 * target.c (target_stop_ptid, target_continue_ptid): New
12549 2014-09-11 Tom Tromey <tromey@redhat.com>
12550 Gary Benson <gbenson@redhat.com>
12552 * target.h: Include target/target.h.
12553 * target.c (target_read_memory, target_read_uint32)
12554 (target_write_memory): New functions.
12556 2014-09-11 Gary Benson <gbenson@redhat.com>
12558 * server.h (debug_hw_points): Don't declare.
12559 * server.c (debug_hw_points): Don't define. Replace all uses
12560 with show_debug_regs.
12561 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12562 all uses with show_debug_regs.
12564 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12566 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12567 endianness into account.
12568 (ppc_supply_ptrace_register): Likewise.
12570 2014-09-03 James Hogan <james.hogan@imgtec.com>
12572 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12573 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12575 2014-09-03 Gary Benson <gbenson@redhat.com>
12577 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12578 ALL_DEBUG_ADDRESS_REGISTERS.
12580 2014-09-02 Gary Benson <gbenson@redhat.com>
12582 * i386-low.h: Renamed as...
12583 * x86-low.h: New file. All type, function and variable name
12584 prefixes changed from "i386_" to "x86_". All references updated.
12585 * i386-low.c: Renamed as...
12586 * x86-low.c: New file. All type, function and variable name
12587 prefixes changed from "i386_" to "x86_". All references updated.
12589 2014-09-02 Gary Benson <gbenson@redhat.com>
12591 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12592 (x86_linux_new_thread): Likewise.
12594 2014-08-29 Gary Benson <gbenson@redhat.com>
12596 * server.h (setjmp.h): Do not include.
12597 (toplevel): Do not declare.
12598 (common-exceptions.h): Include.
12599 (cleanups.h): Likewise.
12600 * server.c (toplevel): Do not define.
12601 (exit_code): New static global.
12602 (detach_or_kill_for_exit_cleanup): New function.
12603 (main): New function. Original main renamed to...
12604 (captured_main): New function.
12605 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12607 2014-08-29 Gary Benson <gbenson@redhat.com>
12609 * Makefile.in (SFILES): Add common/common-exceptions.c.
12610 (OBS): Add common-exceptions.o.
12611 (common-exceptions.o): New rule.
12612 * utils.c (prepare_to_throw_exception): New function.
12614 2014-08-29 Gary Benson <gbenson@redhat.com>
12616 * config.in: Regenerate.
12617 * configure: Likewise.
12619 2014-08-29 Gary Benson <gbenson@redhat.com>
12621 * Makefile.in (SFILES): Add common/cleanups.c.
12623 (cleanups.o): New rule.
12625 2014-08-29 Gary Benson <gbenson@redhat.com>
12627 * utils.c (internal_vwarning): New function.
12629 2014-08-28 Gary Benson <gbenson@redhat.com>
12631 * utils.h (fatal): Remove declaration.
12632 * utils.c (fatal): Remove function.
12634 2014-08-28 Gary Benson <gbenson@redhat.com>
12636 * tracepoint.c (gdb_agent_init): Replace fatal with
12638 (initialize_tracepoint): Likewise.
12640 2014-08-28 Gary Benson <gbenson@redhat.com>
12642 * remote-utils.c (remote_prepare): Replace fatal with error.
12644 2014-08-28 Gary Benson <gbenson@redhat.com>
12646 * linux-low.c (linux_async): Replace fatal with warning.
12647 Tidy up and return.
12648 (linux_start_non_stop): Return -1 if linux_async failed.
12650 2014-08-28 Gary Benson <gbenson@redhat.com>
12652 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12654 (i386_dr_low_get_addr): Remove vague comment.
12655 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12658 2014-08-28 Gary Benson <gbenson@redhat.com>
12660 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12661 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12663 (linux_resume_one_lwp): Likewise.
12664 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12666 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12667 with internal_error.
12668 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12669 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12670 (find_register_by_name): Replace fatal with internal_error.
12671 (find_regno): Likewise.
12672 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12673 * thread-db.c (thread_db_create_event): Likewise.
12674 (thread_db_load_search): Likewise.
12675 (try_thread_db_load_1): Likewise.
12676 * tracepoint.c (get_jump_space_head): Replace fatal with
12678 (claim_trampoline_space): Likewise.
12679 (have_fast_tracepoint_trampoline_buffer): Likewise.
12680 (cmd_qtstart): Likewise.
12681 (stop_tracing): Likewise.
12682 (fast_tracepoint_collecting): Likewise.
12683 (target_malloc): Likewise.
12684 (download_tracepoint): Likewise.
12685 (download_trace_state_variables): Replace check with gdb_assert.
12686 (upload_fast_traceframes): Replace fatal with internal_error.
12688 2014-08-19 Tom Tromey <tromey@redhat.com>
12689 Gary Benson <gbenson@redhat.com>
12691 * Makefile.in (SFILES): Add common/common-debug.c.
12692 (OBS): Add common-debug.o.
12693 (common-debug.o): New rule.
12694 * debug.h (debug_printf): Don't declare.
12695 * debug.c (debug_printf): Renamed and rewritten as...
12696 (debug_vprintf): New function.
12698 2014-08-19 Gary Benson <gbenson@redhat.com>
12700 * utils.h: Do not include print-utils.h.
12702 2014-08-19 Tom Tromey <tromey@redhat.com>
12703 Gary Benson <gbenson@redhat.com>
12705 * server.h: Add static assertion.
12706 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12708 2014-08-19 Tom Tromey <tromey@redhat.com>
12709 Gary Benson <gbenson@redhat.com>
12711 * Makefile.in (SFILES): Add common/errors.c.
12712 (OBS): Add errors.o.
12713 (IPA_OBS): Add errors-ipa.o.
12714 (errors.o): New rule.
12715 (errors-ipa.o): Likewise.
12716 * utils.h (perror_with_name, error, warning): Don't declare.
12717 * utils.c (warning): Renamed and rewritten as...
12718 (vwarning): New function.
12719 (error): Renamed and rewritten as...
12720 (verror): New function.
12721 (internal_error): Renamed and rewritten as...
12722 (internal_verror): New function.
12724 2014-08-07 Gary Benson <gbenson@redhat.com>
12726 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12727 * configure: Regenerate.
12728 * config.in: Likewise.
12729 * server.h: Do not include errno.h.
12730 * event-loop.c: Likewise.
12731 * hostio-errno.c: Likewise.
12732 * linux-low.c: Likewise.
12733 * remote-utils.c: Likewise.
12734 * spu-low.c: Likewise.
12735 * utils.c: Likewise.
12736 * gdbreplay.c: Unconditionally include errno.h.
12738 2014-08-07 Gary Benson <gbenson@redhat.com>
12740 * server.h: Do not include string.h.
12741 * event-loop.c: Likewise.
12742 * linux-low.c: Likewise.
12743 * regcache.c: Likewise.
12744 * remote-utils.c: Likewise.
12745 * spu-low.c: Likewise.
12746 * utils.c: Likewise.
12748 2014-08-07 Gary Benson <gbenson@redhat.com>
12750 * server.h: Do not include gdb_assert.h.
12752 2014-08-07 Gary Benson <gbenson@redhat.com>
12754 * server.h: Do not include common-utils.h.
12756 2014-08-07 Gary Benson <gbenson@redhat.com>
12758 * server.h: Do not include ptid.h.
12759 * notif.h: Likewise.
12761 2014-08-07 Gary Benson <gbenson@redhat.com>
12763 * server.h: Do not include gdb_locale.h.
12765 2014-08-07 Gary Benson <gbenson@redhat.com>
12767 * server.h: Do not include gdb/signals.h.
12768 * win32-low.c: Likewise.
12770 2014-08-07 Gary Benson <gbenson@redhat.com>
12772 * server.h: Do not include pathmax.h.
12774 2014-08-07 Gary Benson <gbenson@redhat.com>
12776 * server.h: Do not include libiberty.h.
12777 * linux-bfin-low.c: Likewise.
12779 2014-08-07 Gary Benson <gbenson@redhat.com>
12781 * server.h: Do not include ansidecl.h.
12783 2014-08-07 Gary Benson <gbenson@redhat.com>
12785 * linux-x86-low.c: Do not include stddef.h.
12786 * lynx-ppc-low.c: Likewise.
12787 * tracepoint.c: Likewise.
12789 2014-08-07 Gary Benson <gbenson@redhat.com>
12791 * server.h: Do not include stdarg.h.
12792 * nto-low.c: Likewise.
12794 2014-08-07 Gary Benson <gbenson@redhat.com>
12796 * server.h: Do not include stdlib.h.
12797 * inferiors.c: Likewise.
12798 * linux-low.c: Likewise.
12799 * regcache.c: Likewise.
12800 * spu-low.c: Likewise.
12801 * tracepoint.c: Likewise.
12802 * utils.c: Likewise.
12804 2014-08-07 Gary Benson <gbenson@redhat.com>
12806 * server.h: Do not include stdio.h.
12807 * linux-low.c: Likewise.
12808 * remote-utils.c: Likewise.
12809 * spu-low.c: Likewise.
12810 * utils.c: Likewise.
12811 * wincecompat.c: Likewise.
12813 2014-08-06 Gary Benson <gbenson@redhat.com>
12815 * regcache.c (init_register_cache): Move conditionals inside if.
12817 2014-08-06 Gary Benson <gbenson@redhat.com>
12819 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12821 2014-07-31 Gary Benson <gbenson@redhat.com>
12823 * ax.h: Do not include server.h.
12824 * gdbthread.h: Likewise.
12825 * lynx-low.h: Likewise.
12826 * notif.h: Likewise.
12828 2014-07-30 Gary Benson <gbenson@redhat.com>
12830 * server.h: Include common-defs.h.
12831 Do not include config.h or build-gnulib-gdbserver/config.h.
12833 2014-07-30 Gary Benson <gbenson@redhat.com>
12835 * hostio-errno.c: Move server.h to top of includes list.
12836 * inferiors.c: Likewise.
12837 * linux-x86-low.c: Likewise.
12838 * notif.c: Include server.h.
12840 2014-07-24 Tom Tromey <tromey@redhat.com>
12841 Gary Benson <gbenson@redhat.com>
12843 * server.h (CORE_ADDR): Now unsigned.
12845 2014-07-16 Pedro Alves <palves@redhat.com>
12847 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12849 2014-07-15 Pedro Alves <palves@redhat.com>
12851 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12854 2014-07-11 Pedro Alves <palves@redhat.com>
12856 * linux-low.c (kill_wait_lwp): New function, based on
12857 kill_one_lwp_callback, but use my_waitpid directly.
12858 (kill_one_lwp_callback, linux_kill): Use it.
12860 2014-06-23 Pedro Alves <palves@redhat.com>
12862 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12863 before setting DR0..DR3.
12865 2014-06-20 Gary Benson <gbenson@redhat.com>
12867 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12868 * configure: Regenerated.
12869 * config.in: Likewise.
12871 2014-06-20 Gary Benson <gbenson@redhat.com>
12873 * Makefile.in (SFILES): Update locations for files moved
12874 from common to nat.
12875 (object file files): Reordered.
12877 2014-06-20 Gary Benson <gbenson@redhat.com>
12879 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12880 (i386_dr_low_set_addr): Likewise.
12881 (i386_dr_low_get_addr): Likewise.
12882 (i386_dr_low_can_set_control): Likewise.
12883 (i386_dr_low_set_control): Likewise.
12884 (i386_dr_low_get_control): Likewise.
12885 (i386_dr_low_get_status): Likewise.
12886 (i386_get_debug_register_length): Likewise.
12887 * linux-x86-low.c (i386_dr_low_set_addr):
12888 Changed signature. Made static.
12889 (i386_dr_low_get_addr): Likewise.
12890 (i386_dr_low_set_control): Likewise.
12891 (i386_dr_low_get_control): Likewise.
12892 (i386_dr_low_get_status): Likewise.
12893 (i386_dr_low): New global variable.
12894 * win32-i386-low.c (i386_dr_low_set_addr):
12895 Changed signature. Made static.
12896 (i386_dr_low_get_addr): Likewise.
12897 (i386_dr_low_set_control): Likewise.
12898 (i386_dr_low_get_control): Likewise.
12899 (i386_dr_low_get_status): Likewise.
12900 (i386_dr_low): New global variable.
12902 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12904 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12905 * Makefile.in (AR, AR_FLAGS): Define.
12906 * configure: Regenerate.
12908 2014-06-19 Gary Benson <gbenson@redhat.com>
12910 * Makefile.in (i386-dregs.o): New rule.
12911 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12912 * i386-low.c (target.h): Remove include.
12913 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12914 (DR_CONTROL_SHIFT): Likewise.
12915 (DR_CONTROL_SIZE): Likewise.
12916 (DR_RW_EXECUTE): Likewise.
12917 (DR_RW_WRITE): Likewise.
12918 (DR_RW_READ): Likewise.
12919 (DR_RW_IORW): Likewise.
12920 (DR_LEN_1): Likewise.
12921 (DR_LEN_2): Likewise.
12922 (DR_LEN_4): Likewise.
12923 (DR_LEN_8): Likewise.
12924 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12925 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12926 (DR_ENABLE_SIZE): Likewise.
12927 (DR_LOCAL_SLOWDOWN): Likewise.
12928 (DR_GLOBAL_SLOWDOWN): Likewise.
12929 (DR_CONTROL_RESERVED): Likewise.
12930 (I386_DR_CONTROL_MASK): Likewise.
12931 (I386_DR_VACANT): Likewise.
12932 (I386_DR_LOCAL_ENABLE): Likewise.
12933 (I386_DR_GLOBAL_ENABLE): Likewise.
12934 (I386_DR_DISABLE): Likewise.
12935 (I386_DR_SET_RW_LEN): Likewise.
12936 (I386_DR_GET_RW_LEN): Likewise.
12937 (I386_DR_WATCH_HIT): Likewise.
12938 (i386_wp_op_t): Likewise.
12939 (i386_show_dr): Likewise.
12940 (i386_length_and_rw_bits): Likewise.
12941 (i386_insert_aligned_watchpoint): Likewise.
12942 (i386_remove_aligned_watchpoint): Likewise.
12943 (i386_handle_nonaligned_watchpoint): Likewise.
12944 i386_update_inferior_debug_regs(): Likewise.
12945 (i386_dr_insert_watchpoint): Likewise.
12946 (i386_dr_remove_watchpoint): Likewise.
12947 (i386_dr_region_ok_for_watchpoint): Likewise.
12948 (i386_dr_stopped_data_address): Likewise.
12949 (i386_dr_stopped_by_watchpoint): Likewise.
12951 2014-06-19 Gary Benson <gbenson@redhat.com>
12953 * i386-low.c (i386_dr_show): Renamed to
12954 i386_show_dr and made static. All uses updated.
12955 (i386_dr_length_and_rw_bits): Renamed to
12956 i386_length_and_rw_bits and made static.
12958 (i386_dr_insert_aligned_watchpoint): Renamed to
12959 i386_insert_aligned_watchpoint and made static.
12961 (i386_dr_remove_aligned_watchpoint): Renamed to
12962 i386_remove_aligned_watchpoint and made static.
12964 (i386_dr_update_inferior_debug_regs): Renamed to
12965 i386_update_inferior_debug_regs and made static.
12968 2014-06-18 Gary Benson <gbenson@redhat.com>
12970 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12971 (i386_dr_low_can_set_control): Likewise.
12972 (i386_get_debug_register_length): Likewise.
12973 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12974 (i386_dr_low_can_set_control): Likewise.
12975 (i386_get_debug_register_length): Likewise.
12977 2014-06-17 Gary Benson <gbenson@redhat.com>
12979 * i386-low.h (i386-dregs.h): New include.
12980 (DR_FIRSTADDR): Now in i386-dregs.h.
12981 (DR_LASTADDR): Likewise.
12982 (DR_NADDR): Likewise.
12983 (DR_STATUS): Likewise.
12984 (DR_CONTROL): Likewise.
12985 (i386_debug_reg_state): Likewise.
12986 (i386_dr_insert_watchpoint): Likewise.
12987 (i386_dr_remove_watchpoint): Likewise.
12988 (i386_dr_region_ok_for_watchpoint): Likewise.
12989 (i386_dr_stopped_data_address): Likewise.
12990 (i386_dr_stopped_by_watchpoint): Likewise.
12991 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12993 2014-06-18 Gary Benson <gbenson@redhat.com>
12995 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12996 i386_dr_insert_watchpoint.
12997 (i386_low_remove_watchpoint): Renamed to
12998 i386_dr_remove_watchpoint.
12999 (i386_low_region_ok_for_watchpoint): Renamed to
13000 i386_dr_region_ok_for_watchpoint.
13001 (i386_low_stopped_data_address): Renamed to
13002 i386_dr_stopped_data_address.
13003 (i386_low_stopped_by_watchpoint): Renamed to
13004 i386_dr_stopped_by_watchpoint.
13005 * i386-low.c (i386_show_dr): Renamed to
13006 i386_dr_show and made nonstatic. All uses updated.
13007 (i386_length_and_rw_bits): Renamed to
13008 i386_dr_length_and_rw_bits and made nonstatic.
13010 (i386_insert_aligned_watchpoint): Renamed to
13011 i386_dr_insert_aligned_watchpoint and made nonstatic.
13013 (i386_remove_aligned_watchpoint): Renamed to
13014 i386_dr_remove_aligned_watchpoint and made nonstatic.
13016 (i386_update_inferior_debug_regs): Renamed to
13017 i386_dr_update_inferior_debug_regs and made nonstatic.
13019 (i386_low_insert_watchpoint): Renamed to
13020 i386_dr_insert_watchpoint. All uses updated.
13021 (i386_low_remove_watchpoint): Renamed to
13022 i386_dr_remove_watchpoint. All uses updated.
13023 (i386_low_region_ok_for_watchpoint): Renamed to
13024 i386_dr_region_ok_for_watchpoint. All uses updated.
13025 (i386_low_stopped_data_address): Renamed to
13026 i386_dr_stopped_data_address. All uses updated.
13027 (i386_low_stopped_by_watchpoint): Renamed to
13028 i386_dr_stopped_by_watchpoint. All uses updated.
13030 2014-06-18 Gary Benson <gbenson@redhat.com>
13032 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13033 (i386_dr_low_can_set_control): Likewise.
13034 (i386_insert_aligned_watchpoint): New check.
13036 2014-06-18 Gary Benson <gbenson@redhat.com>
13038 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13041 2014-06-18 Gary Benson <gbenson@redhat.com>
13043 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13044 instead of fatal and error.
13045 (i386_handle_nonaligned_watchpoint): Likewise.
13047 2014-06-18 Gary Benson <gbenson@redhat.com>
13049 * i386-low.c (i386_get_debug_register_length): New macro.
13050 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13051 (i386_show_dr): Use debug_printf instead of fprintf. Use
13052 phex to format values.
13054 2014-06-18 Gary Benson <gbenson@redhat.com>
13056 * i386-low.h: Comment changes.
13057 * i386-low.c: Likewise.
13059 2014-06-18 Gary Benson <gbenson@redhat.com>
13061 * i386-low.c: Whitespace changes.
13063 2014-06-12 Tom Tromey <tromey@redhat.com>
13065 * utils.c (freeargv): Remove.
13067 2014-06-12 Tom Tromey <tromey@redhat.com>
13069 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13070 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13071 (parse_debug_format_options): Likewise.
13072 (gdbserver_usage): Likewise.
13073 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13074 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13075 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13077 ($(LIBGNU)): Depend on libiberty.
13078 (all-lib): Recurse into all subdirs.
13079 (install-only): Invoke "install" target in subdirs.
13080 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13082 * configure: Rebuild.
13083 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13084 for vasprintf, vsnprintf, or gettimeofday.
13085 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13088 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13090 * development.sh: Delete.
13091 * Makefile.in (config.status): Adjust dependency on development.sh.
13092 * configure.ac: Adjust development.sh source call.
13093 * configure: Regenerate.
13095 2014-06-02 Pedro Alves <palves@redhat.com>
13097 * ax.c (gdb_free_agent_expr): New function.
13098 * ax.h (gdb_free_agent_expr): New declaration.
13099 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13101 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13103 (clear_breakpoint_conditions_and_commands): New function.
13104 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13105 (clear_breakpoint_conditions_and_commands): New declaration.
13107 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13109 * linux-aarch64-low.c (asm/ptrace.h): Include.
13111 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13113 Fix TLS access for -static -pthread.
13114 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13115 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13116 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13118 2014-05-20 Pedro Alves <palves@redhat.com>
13120 * linux-aarch64-low.c (aarch64_insert_point)
13121 (aarch64_remove_point): No longer check whether the type is
13122 supported here. Adjust to new interface.
13123 (the_low_target): Install aarch64_supports_z_point_type as
13124 supports_z_point_type method.
13125 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13126 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13127 instead of a Z packet char. Adjust.
13128 (arm_supports_z_point_type): New function.
13129 (arm_insert_point, arm_remove_point): Adjust to new interface.
13130 (the_low_target): Install arm_supports_z_point_type.
13131 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13132 (cris_insert_point, cris_remove_point): Adjust to new interface.
13133 Don't check whether the type is supported here.
13134 (the_low_target): Install cris_supports_z_point_type.
13135 * linux-low.c (linux_supports_z_point_type): New function.
13136 (linux_insert_point, linux_remove_point): Adjust to new interface.
13137 * linux-low.h (struct linux_target_ops) <insert_point,
13138 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13139 raw_breakpoint pointer parameter.
13140 <supports_z_point_type>: New method.
13141 * linux-mips-low.c (mips_supports_z_point_type): New function.
13142 (mips_insert_point, mips_remove_point): Adjust to new interface.
13143 Use mips_supports_z_point_type.
13144 (the_low_target): Install mips_supports_z_point_type.
13145 * linux-ppc-low.c (the_low_target): Install NULL as
13146 supports_z_point_type method.
13147 * linux-s390-low.c (the_low_target): Install NULL as
13148 supports_z_point_type method.
13149 * linux-sparc-low.c (the_low_target): Install NULL as
13150 supports_z_point_type method.
13151 * linux-x86-low.c (x86_supports_z_point_type): New function.
13152 (x86_insert_point): Adjust to new insert_point interface. Use
13153 insert_memory_breakpoint. Adjust to new
13154 i386_low_insert_watchpoint interface.
13155 (x86_remove_point): Adjust to remove_point interface. Use
13156 remove_memory_breakpoint. Adjust to new
13157 i386_low_remove_watchpoint interface.
13158 (the_low_target): Install x86_supports_z_point_type.
13159 * lynx-low.c (lynx_target_ops): Install NULL as
13160 supports_z_point_type callback.
13161 * nto-low.c (nto_supports_z_point_type): New.
13162 (nto_insert_point, nto_remove_point): Adjust to new interface.
13163 (nto_target_ops): Install nto_supports_z_point_type.
13164 * mem-break.c: Adjust intro comment.
13165 (struct raw_breakpoint) <raw_type, size>: New fields.
13166 <inserted>: Update comment.
13167 <shlib_disabled>: Delete field.
13168 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13169 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13170 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13171 (raw_bkpt_type_to_target_hw_bp_type): New function.
13172 (find_enabled_raw_code_breakpoint_at): New function.
13173 (find_raw_breakpoint_at): New type and size parameters. Use them.
13174 (insert_memory_breakpoint): New function, based off
13175 set_raw_breakpoint_at.
13176 (remove_memory_breakpoint): New function.
13177 (set_raw_breakpoint_at): Reimplement.
13178 (set_breakpoint): New, based on set_breakpoint_at.
13179 (set_breakpoint_at): Reimplement.
13180 (delete_raw_breakpoint): Go through the_target->remove_point
13181 instead of assuming memory breakpoints.
13182 (find_gdb_breakpoint_at): Delete.
13183 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13184 (find_gdb_breakpoint): New function.
13185 (set_gdb_breakpoint_at): Delete.
13186 (z_type_supported): New function.
13187 (set_gdb_breakpoint_1): New function, loosely based off
13188 set_gdb_breakpoint_at.
13189 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13190 (delete_gdb_breakpoint_at): Delete.
13191 (delete_gdb_breakpoint_1): New function, loosely based off
13192 delete_gdb_breakpoint_at.
13193 (delete_gdb_breakpoint): New function.
13194 (clear_gdb_breakpoint_conditions): Rename to ...
13195 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13197 (add_condition_to_breakpoint): Make static.
13198 (add_breakpoint_condition): Take a struct breakpoint pointer
13199 instead of an address. Adjust.
13200 (gdb_condition_true_at_breakpoint): Rename to ...
13201 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13203 (gdb_condition_true_at_breakpoint): Reimplement.
13204 (add_breakpoint_commands): Take a struct breakpoint pointer
13205 instead of an address. Adjust.
13206 (gdb_no_commands_at_breakpoint): Rename to ...
13207 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13208 parameter. Return true if no breakpoint was found. Change debug
13210 (gdb_no_commands_at_breakpoint): Reimplement.
13211 (run_breakpoint_commands): Rename to ...
13212 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13213 and change return type to boolean.
13214 (run_breakpoint_commands): New function.
13215 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13216 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13217 breakpoint. Go through the_target->remove_point instead of
13218 assuming memory breakpoint.
13219 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13220 software and hardware breakpoints.
13221 (reinsert_raw_breakpoint): Go through the_target->insert_point
13222 instead of assuming memory breakpoint.
13223 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13224 software and hardware breakpoints.
13225 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13226 Check both software and hardware breakpoints.
13227 (validate_inserted_breakpoint): Assert the breakpoint is a
13228 software breakpoint. Set the inserted flag to -1 instead of
13229 setting shlib_disabled.
13230 (delete_disabled_breakpoints): Adjust.
13231 (validate_breakpoints): Only validate software breakpoints.
13232 Adjust to inserted flag change.
13233 (check_mem_read, check_mem_write): Skip breakpoint types other
13234 than software breakpoints. Adjust to inserted flag change.
13235 * mem-break.h (enum raw_bkpt_type): New enum.
13236 (raw_breakpoint, struct process_info): Forward declare.
13237 (Z_packet_to_target_hw_bp_type): Delete declaration.
13238 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13239 (set_gdb_breakpoint, delete_gdb_breakpoint)
13240 (clear_breakpoint_conditions): New declarations.
13241 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13242 (breakpoint_inserted_here): Update comment.
13243 (add_breakpoint_condition, add_breakpoint_commands): Replace
13244 address parameter with a breakpoint pointer parameter.
13245 (gdb_breakpoint_here): Update comment.
13246 (delete_gdb_breakpoint_at): Delete.
13247 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13248 * server.c (process_point_options): Take a struct breakpoint
13249 pointer instead of an address. Adjust.
13250 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13251 delete_gdb_breakpoint.
13252 * spu-low.c (spu_target_ops): Install NULL as
13253 supports_z_point_type method.
13254 * target.h: Include mem-break.h.
13255 (struct target_ops) <prepare_to_access_memory>: Update comment.
13256 <supports_z_point_type>: New field.
13257 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13258 instead of a char. Also take a raw breakpoint pointer.
13259 * win32-arm-low.c (the_low_target): Install NULL as
13260 supports_z_point_type.
13261 * win32-i386-low.c (i386_supports_z_point_type): New function.
13262 (i386_insert_point, i386_remove_point): Adjust to new interface.
13263 (the_low_target): Install i386_supports_z_point_type.
13264 * win32-low.c (win32_supports_z_point_type): New function.
13265 (win32_insert_point, win32_remove_point): Adjust to new interface.
13266 (win32_target_ops): Install win32_supports_z_point_type.
13267 * win32-low.h (struct win32_target_ops):
13268 <supports_z_point_type>: New method.
13269 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13270 instead of a char. Also take a raw breakpoint pointer.
13272 2014-05-20 Pedro Alves <palves@redhat.com>
13274 * mem-break.h: Include break-common.h.
13275 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13276 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13277 (Z_packet_to_target_hw_bp_type): New declaration.
13278 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13279 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13280 (Z_PACKET_ACCESS_WP): Delete macros.
13281 (Z_packet_to_hw_type): Delete function.
13282 * i386-low.h: Don't include break-common.h here.
13283 (Z_packet_to_hw_type): Delete declaration.
13284 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13285 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13286 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13287 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13288 * linux-aarch64-low.c: Don't include break-common.h here.
13289 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13290 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13291 (Z_packet_to_target_hw_bp_type): Delete function.
13292 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13294 (mips_insert_point, mips_remove_point): Use
13295 Z_packet_to_target_hw_bp_type.
13297 2014-05-20 Pedro Alves <palves@redhat.com>
13299 * linux-aarch64-low.c: Include break-common.h.
13300 (enum target_point_type): Delete.
13301 (Z_packet_to_point_type): Rename to ...
13302 (Z_packet_to_target_hw_bp_type): ... this, and return a
13303 target_hw_bp_type instead.
13304 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13305 instead of an enum target_point_type.
13306 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13308 (aarch64_dr_state_insert_one_point)
13309 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13310 (aarch64_handle_aligned_watchpoint)
13311 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13312 Take an enum target_hw_bp_type instead of an enum
13314 (aarch64_supports_z_point_type): New function.
13315 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13316 use Z_packet_to_target_hw_bp_type.
13318 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13320 * configure.ac: Only use -Werror by default when DEVELOPMENT
13322 * configure: Regenerate.
13324 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13326 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13327 * linux-x86-low.c (X86_64_USER_REGS): New.
13328 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13330 2014-04-28 Yao Qi <yao@codesourcery.com>
13332 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13335 2014-04-25 Pedro Alves <palves@redhat.com>
13338 * linux-low.c (linux_attach_fail_reason_string): New function.
13339 (linux_attach_lwp): Delete.
13340 (linux_attach_lwp_1): Rename to ...
13341 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13342 argument. Remove "initial" parameter. Return int instead of
13343 void. Don't error or warn here.
13344 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13345 failure to attach to the tgid. Call warning when failing to
13347 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13348 argument. Remove "initial" parameter. Return int instead of
13349 void. Don't error or warn here.
13350 (linux_attach_fail_reason_string): New declaration.
13351 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13352 interface change. Use linux_attach_fail_reason_string.
13354 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13355 Walfred Tedeschi <walfred.tedeschi@intel.com>
13357 * Makefile.in: Added rules to handle new files
13358 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13359 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13360 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13361 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13362 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13363 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13364 x32-avx512-linux.o.
13365 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13366 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13367 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13368 i386/x32-avx512.xml.
13369 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13370 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13371 i386/x32-avx512-linux.xml.
13372 * i387-fp.c (num_avx512_k_registers): New constant for number
13374 (num_avx512_zmmh_low_registers): New constant for number of
13375 lower ZMM registers (0-15).
13376 (num_avx512_zmmh_high_registers): New constant for number of
13377 higher ZMM registers (16-31).
13378 (num_avx512_ymmh_registers): New contant for number of higher
13379 YMM registers (ymm16-31 added by avx521 on x86_64).
13380 (num_avx512_xmm_registers): New constant for number of higher
13381 XMM registers (xmm16-31 added by AVX512 on x86_64).
13382 (struct i387_xsave): Add space for AVX512 registers.
13383 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13384 Add code to handle AVX512 registers.
13385 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13386 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13387 prototypei from generated file.
13388 (tdesc_amd64_avx512_linux): Likewise.
13389 (init_registers_x32_avx512_linux): Likewise.
13390 (tdesc_x32_avx512_linux): Likewise.
13391 (init_registers_i386_avx512_linux): Likewise.
13392 (tdesc_i386_avx512_linux): Likewise.
13393 (x86_64_regmap): Add AVX512 registers.
13394 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13396 (initialize_low_arch): Add code to initialize AVX512 registers.
13398 2014-04-23 Pedro Alves <palves@redhat.com>
13400 * mem-break.c (find_gdb_breakpoint_at): Make static.
13401 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13403 2014-04-23 Pedro Alves <palves@redhat.com>
13405 * i386-low.c: Don't include break-common.h here.
13406 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13407 prototype to take target_hw_bp_type as argument instead of a Z
13409 * i386-low.h: Include break-common.h here.
13410 (Z_packet_to_hw_type): Declare.
13411 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13413 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13414 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13415 (x86_remove_point): Convert the packet number to a
13416 target_hw_bp_type before calling i386_low_remove_watchpoint.
13417 * win32-i386-low.c (i386_insert_point): Convert the packet number
13418 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13419 (i386_remove_point): Convert the packet number to a
13420 target_hw_bp_type before calling i386_low_remove_watchpoint.
13422 2014-04-23 Pedro Alves <palves@redhat.com>
13424 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13426 2014-04-10 Pedro Alves <palves@redhat.com>
13428 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13429 Check if the condition or command is NULL before checking if the
13430 breakpoint is known. On success, return true.
13431 * mem-break.h (add_breakpoint_condition): Document return.
13432 (add_breakpoint_commands): Add describing comment.
13433 * server.c (skip_to_semicolon): New function.
13434 (process_point_options): Use it.
13436 2014-04-09 Pedro Alves <palves@redhat.com>
13438 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13441 2014-02-27 Pedro Alves <palves@redhat.com>
13444 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13446 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13448 (last_thread_of_process_p): Take a PID argument instead of a
13450 (linux_wait_for_lwp): Delete.
13451 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13453 (linux_low_filter_event): New function, party factored out from
13454 linux_wait_for_event.
13455 (linux_wait_for_event): Rename to ...
13456 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13457 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13458 sigsuspend. Check for zombie leaders.
13459 (linux_wait_for_event): Reimplement as wrapper around
13460 linux_wait_for_event_filtered.
13461 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13462 a normal or signal exit is seen, it's the whole process exiting.
13463 (wait_for_sigstop): No longer a for_each_inferior callback.
13464 Rewrite on top of linux_wait_for_event_filtered.
13465 (stop_all_lwps): Call wait_for_sigstop directly.
13466 * server.c (resume, handle_target_event): Handle
13467 TARGET_WAITKIND_NO_RESUMED.
13469 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13471 * win32-low.c (psapi_get_dll_name,
13472 * win32_CreateToolhelp32Snapshot): Delete.
13473 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13474 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13476 (handle_load_dll): Add function description.
13477 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13479 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13481 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13483 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13484 base address when calling win32_add_one_solib.
13485 (handle_load_dll): Delete local variable load_addr.
13486 Remove 0x1000 offset applied to DLL base address when calling
13487 win32_add_one_solib.
13488 (handle_unload_dll): Add comment.
13490 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13492 * win32-low.c (win32_add_all_dlls): Renames
13493 win32_ensure_ntdll_loaded. Rewrite function documentation.
13494 Adjust implementation to always load all DLLs.
13495 Add 0x1000 offset to DLL base address when calling
13496 win32_add_one_solib.
13497 (child_initialization_done): New static global.
13498 (do_initial_child_stuff): Set child_initialization_done to
13499 zero during child initialization, and 1 after. Replace call
13500 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13502 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13503 (handle_unload_dll): Add function documentation.
13504 (get_child_debug_event): Ignore load and unload DLL events
13505 during child initialization.
13507 2014-02-20 Doug Evans <dje@google.com>
13509 Remove global all_lwps.
13510 * inferiors.h (ptid_of): Move here from linux-low.h.
13511 (pid_of, lwpid_of): Ditto.
13512 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13513 parameter is a struct thread_info * now.
13514 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13515 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13516 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13518 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13519 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13520 * linux-arm-low.c (update_registers_callback): Update, "entry"
13521 parameter is a struct thread_info * now.
13522 Fetch lwpid from current_inferior directly.
13523 (arm_insert_point): Pass &all_threads to find_inferior instead of
13525 (arm_remove_point): Ditto.
13526 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13527 (arm_prepare_to_resume): Fetch pid from thread.
13528 (arm_read_description): Fetch lwpid from current_inferior directly.
13529 * linux-low.c (all_lwps): Delete.
13530 (delete_lwp): Delete call to remove_inferior.
13531 (handle_extended_wait): Fetch lwpid from thread.
13532 (add_lwp): Don't set lwp->entry.id. Remove call to
13533 add_inferior_to_list.
13534 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13535 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13536 (kill_one_lwp_callback): Ditto.
13537 (linux_kill): Don't dereference NULL pointer.
13538 Fetch ptid,lwpid from thread.
13539 (get_detach_signal): Fetch ptid from thread.
13540 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13541 Simplify call to regcache_invalidate_thread.
13542 (delete_lwp_callback): Update, "entry" parameter is a
13543 struct thread_info * now. Fetch pid from thread.
13544 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13545 (status_pending_p_callback): Update, "entry" parameter is a
13546 struct thread_info * now. Fetch ptid from thread.
13547 (find_lwp_pid): Update, "entry" parameter is a
13548 struct thread_info * now.
13549 (linux_wait_for_lwp): Fetch pid from thread.
13550 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13551 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13552 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13553 (dequeue_one_deferred_signal): Ditto.
13554 (cancel_breakpoint): Fetch ptid from current_inferior.
13555 (linux_wait_for_event): Pass &all_threads to find_inferior,
13556 not &all_lwps. Fetch ptid, lwpid from thread.
13557 (count_events_callback): Update, "entry" parameter is a
13558 struct thread_info * now.
13559 (select_singlestep_lwp_callback): Ditto.
13560 (select_event_lwp_callback): Ditto.
13561 (cancel_breakpoints_callback): Ditto.
13562 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13564 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13565 (unsuspend_one_lwp): Update, "entry" parameter is a
13566 struct thread_info * now.
13567 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13569 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13570 Fetch lwpid from thread, not lwp.
13571 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13572 Pass &all_threads to find_inferior, not &all_lwps.
13573 (send_sigstop): Fetch lwpid from thread, not lwp.
13574 (send_sigstop_callback): Update, "entry" parameter is a
13575 struct thread_info * now.
13576 (suspend_and_send_sigstop_callback): Ditto.
13577 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13578 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13579 struct thread_info * now.
13580 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13582 (lwp_running): Update, "entry" parameter is a
13583 struct thread_info * now.
13584 (stop_all_lwps): Fetch ptid from thread.
13585 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13586 (linux_resume_one_lwp): Fetch lwpid from thread.
13587 (linux_set_resume_request): Update, "entry" parameter is a
13588 struct thread_info * now. Fetch pid, lwpid from thread.
13589 (resume_status_pending_p): Update, "entry" parameter is a
13590 struct thread_info * now.
13591 (need_step_over_p): Ditto. Fetch lwpid from thread.
13592 (start_step_over): Fetch lwpid from thread.
13593 (linux_resume_one_thread): Update, "entry" parameter is a
13594 struct thread_info * now. Fetch lwpid from thread.
13595 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13596 (proceed_one_lwp): Update, "entry" parameter is a
13597 struct thread_info * now. Fetch lwpid from thread.
13598 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13599 struct thread_info * now.
13600 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13601 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13602 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13604 (regsets_store_inferior_registers): Ditto.
13605 (fetch_register, store_register): Ditto.
13606 (linux_read_memory, linux_write_memory): Ditto.
13607 (linux_request_interrupt): Ditto.
13608 (linux_read_auxv): Ditto.
13609 (linux_xfer_siginfo): Ditto.
13610 (linux_qxfer_spu): Ditto.
13611 (linux_qxfer_libraries_svr4): Ditto.
13612 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13613 moved to inferiors.h.
13615 (get_thread_lwp): Update.
13616 (struct lwp_info): Delete member "entry". Simplify comment for
13618 (all_lwps): Delete.
13619 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13620 current_inferior directly.
13621 (update_watch_registers_callback): Update, "entry" parameter is a
13622 struct thread_info * now. Fetch pid from thread.
13623 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13624 (mips_insert_point): Fetch lwpid from current_inferior.
13625 Pass &all_threads to find_inferior, not &all_lwps.
13626 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13627 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13629 (mips_stopped_data_address): Ditto.
13630 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13632 * linux-tile-low.c (tile_arch_setup): Ditto.
13633 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13634 (update_debug_registers_callback): Update, "entry" parameter is a
13635 struct thread_info * now. Fetch pid from thread.
13636 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13637 Pass &all_threads to find_inferior, not &all_lwps.
13638 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13639 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13640 Pass &all_threads to find_inferior, not &all_lwps.
13641 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13642 (i386_dr_low_get_status): Ditto.
13643 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13644 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13645 (x86_linux_read_description): Ditto.
13646 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13648 2014-02-20 Doug Evans <dje@google.com>
13650 * inferiors.c (get_first_inferior): Fix buglet.
13652 2014-02-19 Doug Evans <dje@google.com>
13654 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13655 * inferiors.c (add_thread): Change result type to struct thread_info *.
13656 All callers updated.
13657 (add_lwp): Call add_thread here instead of in callers.
13658 All callers updated.
13659 * linux-low.h (get_lwp_thread): Rewrite.
13660 (struct lwp_info): New member "thread".
13662 2014-02-19 Doug Evans <dje@google.com>
13664 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13665 All callers updated.
13667 2014-02-19 Doug Evans <dje@google.com>
13669 * inferiors.c (add_thread): Fix whitespace.
13671 2014-02-19 Doug Evans <dje@google.com>
13673 * dll.c (clear_dlls): Replace accessing list implemention details
13675 * gdbthread.h (get_first_thread): Declare.
13676 * inferiors.c (for_each_inferior_with_data): New function.
13677 (get_first_thread): New function.
13678 (find_thread_ptid): Simplify.
13679 (get_first_inferior): New function.
13680 (clear_list): Delete.
13681 (one_inferior_p): New function.
13682 (clear_inferior_list): New function.
13683 (clear_inferiors): Update.
13684 * inferiors.h (for_each_inferior_with_data): Declare.
13685 (clear_inferior_list): Declare.
13686 (one_inferior_p): Declare.
13687 (get_first_inferior): Declare.
13688 * linux-low.c (linux_wait_for_event): Replace accessing list
13689 implemention details with API function.
13690 * server.c (target_running): Ditto.
13691 (accumulate_file_name_length): New function.
13692 (emit_dll_description): New function.
13693 (handle_qxfer_libraries): Replace accessing list implemention
13694 details with API function.
13695 (handle_qxfer_threads_worker): New function.
13696 (handle_qxfer_threads_proper): Replace accessing list implemention
13697 details with API function.
13698 (handle_query): Ditto.
13699 (visit_actioned_threads_callback_ftype): New typedef.
13700 (visit_actioned_threads_data): New struct.
13701 (visit_actioned_threads): Rewrite to be find_inferior callback.
13702 (resume): Call find_inferior.
13703 (handle_status): Replace accessing list implemention
13704 details with API function.
13705 (process_serial_event): Replace accessing list implemention details
13707 * target.c (set_desired_inferior): Replace accessing list implemention
13708 details with API function.
13709 * tracepoint.c (same_process_p): New function.
13710 (gdb_agent_about_to_close): Replace accessing list implemention
13711 details with API function.
13712 * win32-low.c (child_delete_thread): Replace accessing list
13713 implemention details with API function.
13714 (match_dll_by_basename): New function.
13715 (dll_is_loaded_by_basename): New function.
13716 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13717 details call to dll_is_loaded_by_basename.
13719 2014-02-19 Doug Evans <dje@google.com>
13721 * dll.h (struct dll_info): Add comment.
13722 * gdbthread.h (struct thread_info): Add comment.
13723 (current_ptid): Simplify.
13724 * inferiors.c (add_process): Update.
13725 (remove_process): Update.
13726 * inferiors.h (struct process_info): Rename member "head" to "entry".
13727 * linux-low.c (delete_lwp): Update.
13729 (last_thread_of_process_p): Update.
13730 (kill_one_lwp_callback, linux_kill): Update.
13731 (status_pending_p_callback): Update.
13732 (wait_for_sigstop): Update. Simplify read of ptid.
13733 (start_step_over): Update.
13734 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13735 (get_lwp_thread): Update.
13736 (struct lwp_info): Rename member "head" to "entry".
13737 * regcache.h (inferior_list_entry): Delete.
13738 * server.c (kill_inferior_callback): Update.
13739 (detach_or_kill_inferior_callback): Update.
13740 (print_started_pid): Update.
13741 (print_attached_pid): Update.
13742 (process_serial_event): Simplify read of ptid.
13743 * thread-db.c (thread_db_create_event): Update.
13744 (thread_db_get_tls_address): Update.
13745 * win32-low.c (current_inferior_ptid): Simplify.
13747 2014-02-19 Tom Tromey <tromey@redhat.com>
13749 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13751 (target_supports_btrace): Update.
13753 2014-02-14 Yao Qi <yao@codesourcery.com>
13755 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13756 (rsp-low-ipa.o): New target.
13758 2014-02-12 Tom Tromey <tromey@redhat.com>
13760 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13761 convert_ascii_to_int.
13762 * regcache.c (registers_to_string): Likewise.
13763 * remote-utils.c (decode_M_packet): Likewise.
13764 * server.c (process_serial_event): Likewise.
13766 2014-02-12 Tom Tromey <tromey@redhat.com>
13768 * server.c (handle_query, handle_v_run): Use hex2bin, not
13770 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13772 2014-02-12 Tom Tromey <tromey@redhat.com>
13774 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13775 convert_int_to_ascii.
13776 * regcache.c (registers_to_string, collect_register_as_string):
13778 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13780 * server.c (process_serial_event): Likewise.
13781 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13782 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13784 2014-02-12 Tom Tromey <tromey@redhat.com>
13786 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13787 bin2hex, not hexify.
13788 * tracepoint.c (cmd_qtstatus): Likewise.
13790 2014-02-12 Tom Tromey <tromey@redhat.com>
13792 * remote-utils.c (monitor_output): Pass explicit length to
13795 2014-02-12 Tom Tromey <tromey@redhat.com>
13797 * tracepoint.c: Include rsp-low.h.
13798 * server.c: Include rsp-low.h.
13799 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13800 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13802 * remote-utils.c: Include rsp-low.h.
13803 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13804 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13805 (convert_int_to_ascii, convert_ascii_to_int): Move to
13807 * regcache.c: Include rsp-low.h.
13808 * ax.c: Include rsp-low.h.
13809 * Makefile.in (SFILES): Add common/rsp-low.c.
13810 (OBS): Add rsp-low.o.
13811 (rsp-low.o): New target.
13813 2014-02-12 Tom Tromey <tromey@redhat.com>
13815 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13816 Include print-utils.h.
13817 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13818 (plongest, thirty_two, phex_nz): Remove.
13819 * Makefile.in (SFILES): Add common/print-utils.c.
13820 (OBS): Add print-utils.o.
13821 (print-utils-ipa.o): New target.
13822 (print-utils.o): New target.
13823 (IPA_OBJS): Add print-utils-ipa.o.
13825 2014-02-06 Tom Tromey <tromey@redhat.com>
13827 * Makefile.in (SFILES): Fix indentation.
13829 2014-02-05 Doug Evans <dje@google.com>
13831 * linux-low.c (linux_wait_for_event): Improve comment.
13832 (linux_wait_1): Keep current_inferior in sync with event_child.
13834 2014-01-22 Doug Evans <dje@google.com>
13836 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13838 2014-01-22 Doug Evans <dje@google.com>
13840 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13841 * configure: Regenerate.
13842 * config.in: Regenerate.
13843 * Makefile.in (SFILES): Add debug.c.
13844 (OBS): Add debug.o.
13845 * debug.c: New file.
13846 * debug.h: New file.
13847 * linux-aarch64-low.c (*): Update all debugging printfs to use
13848 debug_printf instead of fprintf.
13849 * linux-arm-low.c (*): Ditto.
13850 * linux-cris-low.c (*): Ditto.
13851 * linux-crisv32-low.c (*): Ditto.
13852 * linux-m32r-low.c (*): Ditto.
13853 * linux-sparc-low.c (*): Ditto.
13854 * linux-x86.c (*): Ditto.
13855 * linux-low.c (*): Ditto.
13856 (linux_wait_1): Add calls to debug_enter, debug_exit.
13857 (linux_wait): Remove redundant debugging printf.
13858 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13859 (linux_resume, unstop_all_lwps): Ditto.
13860 * mem-break.c (*): Update all debugging printfs to use
13861 debug_printf instead of fprintf.
13862 * remote-utils.c (*): Ditto.
13863 * thread-db.c (*): Ditto.
13864 * server.c #include <ctype.h>, "gdb_vecs.h".
13865 (debug_threads): Moved to debug.c.
13866 (*): Update all debugging printfs to use debug_printf instead of
13868 (start_inferior): Replace call to fflush with call to debug_flush.
13869 (monitor_show_help): Mention set debug-format.
13870 (parse_debug_format_options): New function.
13871 (handle_monitor_command): Handle "monitor set debug-format".
13872 (gdbserver_usage): Mention --debug-format.
13873 (main): Parse --debug-format.
13874 * server.h (debug_threads): Declaration moved to debug.h.
13875 #include "debug.h".
13876 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13877 trace_debug_1 that uses debug_printf.
13878 (tracepoint_look_up_symbols): Update all debugging printfs to use
13879 debug_printf instead of fprintf.
13881 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13883 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13886 2014-01-17 Pedro Alves <palves@redhat.com>
13889 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13890 defined after including gdb_proc_service.h.
13892 2014-01-16 Doug Evans <dje@google.com>
13894 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13895 (match_dll): Use it.
13897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13899 * target.h (target_ops) <read_btrace>: Change parameters and
13900 return type to allow error reporting.
13901 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13902 trace reading errors on.
13903 * linux-low.c (linux_low_read_btrace): Pass trace reading
13905 (linux_low_disable_btrace): New.
13907 2014-01-15 Doug Evans <dje@google.com>
13909 * inferiors.c (thread_id_to_gdb_id): Delete.
13910 * inferiors.h (thread_id_to_gdb_id): Delete.
13912 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13914 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13915 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13918 2014-01-08 Pedro Alves <palves@redhat.com>
13920 * server.c (handle_status): Don't discard previous queued stop
13921 replies or thread's pending status here.
13922 (main) <disconnection>: Do it here instead.
13924 2014-01-08 Pedro Alves <palves@redhat.com>
13926 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13927 * server.c (visit_actioned_threads, handle_pending_status): New
13929 (handle_v_cont): Factor out parts to ...
13930 (resume): ... this new function. If in all-stop, and a thread
13931 being resumed has a pending status, report it without actually
13933 (myresume): Adjust to use the new 'resume' function.
13934 (clear_pending_status_callback, set_pending_status_callback)
13935 (find_status_pending_thread_callback): New functions.
13936 (handle_status): Handle the case of multiple threads having
13937 interesting statuses to report. Report threads' real last signal
13938 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13939 with an interesting thread to report the status for, instead of
13940 always reporting the status of the first thread.
13942 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13944 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13945 * gdbreplay.c (gdbreplay_version): Likewise.
13947 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13949 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13950 iov.iov_len with the real length in use.
13952 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13954 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13955 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13956 for all targets that use win32-low.c.
13957 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13958 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13960 2013-12-13 Pedro Alves <palves@redhat.com>
13962 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13963 if equal to TARGET_WAITKIND_LOADED.
13964 * win32-low.c (cached_status): New static global.
13965 (win32_wait): Add declaration.
13966 (do_initial_child_stuff): Flush all initial pending debug events
13967 up to the initial breakpoint.
13968 (win32_wait): If CACHED_STATUS was set, return that instead
13969 of doing a real wait. Remove the code resuming the execution
13970 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13971 during the initial phase. Also remove the code changing
13972 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13973 TARGET_WAITKIND_STOPPED.
13975 2013-12-11 Yao Qi <yao@codesourcery.com>
13977 * notif.c (handle_notif_ack): Return 0 if no notification
13980 2013-11-20 Doug Evans <dje@google.com>
13982 * linux-low.c (linux_set_resume_request): Fix comment.
13984 2013-11-20 Doug Evans <dje@google.com>
13986 * linux-low.c (resume_status_pending_p): Tweak comment.
13988 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13990 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13991 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13992 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13993 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13994 (srv_amd64_regobj): Add amd64-mpx.o.
13995 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13996 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13997 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13998 * i387-fp.c (num_pl_bnd_register) Added constant.
13999 (num_pl_bnd_cfg_registers) Added constant.
14000 (struct i387_xsave) Added reserved area and MPX fields.
14001 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14002 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14004 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14005 (init_registers_amd64_mpx_linux): Declare new function.
14006 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14007 (x86_64_regmap): Add MPX registers.
14008 (x86_linux_read_description): Add MPX case.
14009 (initialize_low_arch): Initialize MPX targets.
14011 2013-11-18 Tom Tromey <tromey@redhat.com>
14013 * configure: Rebuild.
14014 * configure.ac: Don't check for stdlib.h.
14015 * gdbreplay.c: Unconditionally include stdlib.h.
14017 2013-11-18 Tom Tromey <tromey@redhat.com>
14019 * config.in: Rebuild.
14020 * configure: Rebuild.
14021 * configure.ac: Don't use AC_HEADER_DIRENT.
14023 2013-11-18 Tom Tromey <tromey@redhat.com>
14025 * server.h: Don't check HAVE_STRING_H.
14026 * gdbreplay.c: Don't check HAVE_STRING_H.
14027 * configure: Rebuild.
14029 2013-11-18 Tom Tromey <tromey@redhat.com>
14031 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14034 2013-11-08 Tom Tromey <tromey@redhat.com>
14036 * configure, config.in: Rebuild.
14037 * configure.ac: Remove unused configury.
14039 2013-11-08 Tom Tromey <tromey@redhat.com>
14041 * acinclude.m4: Include common.m4, codeset.m4.
14042 * configure, config.in: Rebuild.
14043 * configure.ac: Use GDB_AC_COMMON.
14045 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14047 * linux-s390-low.c (HWCAP_S390_TE): New define.
14048 (s390_arch_setup): Consider the TE field in the HWCAP for
14049 determining 'have_regset_tdb'.
14051 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14054 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14057 2013-10-02 Pedro Alves <palves@redhat.com>
14059 * server.c (process_serial_event): Don't output "GDBserver
14060 exiting" if GDB is connected through stdio.
14061 * target.c (mywait): Likewise, be silent if GDB is connected
14064 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14066 * lynx-low.c (lynx_add_threads_after_attach): New function.
14067 (lynx_attach): Remove call to add_thread. Add call to
14068 lynx_add_threads_after_attach instead.
14070 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14072 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14073 * config.in, configure: Regenerated.
14075 2013-09-18 Yao Qi <yao@codesourcery.com>
14078 * server.c (start_inferior): Clear 'resume_info'.
14080 2013-09-16 Jiong Wang <jiwang@tilera.com>
14082 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14085 2013-09-16 Jiong Wang <jiwang@tilera.com>
14087 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14088 linux-tile-low.o to srv_tgtobj.
14090 2013-09-16 Will Newton <will.newton@linaro.org>
14092 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14095 2013-09-06 Pedro Alves <palves@redhat.com>
14097 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14098 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14099 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14100 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14101 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14102 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14104 2013-09-06 Pedro Alves <palves@redhat.com>
14106 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14107 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14109 2013-09-06 Pedro Alves <palves@redhat.com>
14111 * linux-amd64-ipa.c: Include tracepoint.h.
14112 * linux-i386-ipa.c: Include tracepoint.h.
14114 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14116 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14117 (ps_get_thread_area): New function.
14119 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14121 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14122 (initialize_low_arch): Call init_registers_crisv32 rather than
14123 init_register_crisv32.
14125 2013-09-05 Pedro Alves <palves@redhat.com>
14127 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14129 * hostio.h: ... this new file.
14130 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14131 win32-low.c: Include hostio.h.
14133 2013-09-05 Pedro Alves <palves@redhat.com>
14135 * server.h (gdb_client_data, handler_func, callback_handler_func)
14136 (delete_file_handler, add_file_handler, append_callback_event)
14137 (delete_callback_event, start_event_loop, initialize_event_loop):
14138 Move to event-loop.h and include it.
14139 * event-loop.h: New file.
14141 2013-09-05 Pedro Alves <palves@redhat.com>
14143 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14144 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14145 (loaded_dll, unloaded_dll): Move to ...
14146 * dll.h: ... this new file.
14147 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14149 2013-09-05 Pedro Alves <palves@redhat.com>
14151 * server.h (current_process, get_thread_process, all_processes)
14152 (add_inferior_to_list, for_each_inferior, current_inferior)
14153 (remove_inferior, add_process, remove_process, find_process_pid)
14154 (have_started_inferiors_p, have_attached_inferiors_p)
14155 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14156 (clear_inferiors, find_inferior, find_inferior_id)
14157 (inferior_target_data, set_inferior_target_data)
14158 (inferior_regcache_data, set_inferior_regcache_data): Move to
14159 inferiors.h, and include it.
14160 * inferiors.h: New file.
14162 2013-09-05 Pedro Alves <palves@redhat.com>
14164 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14168 2013-09-05 Pedro Alves <palves@redhat.com>
14170 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14172 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14173 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14174 (handle_tracepoint_general_set, handle_tracepoint_query)
14175 (tracepoint_finished_step, tracepoint_was_hit)
14176 (release_while_stepping_state_list, current_traceframe)
14177 (in_readonly_region, traceframe_read_mem)
14178 (fetch_traceframe_registers, traceframe_read_sdata)
14179 (traceframe_read_info, struct fast_tpoint_collect_status)
14180 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14181 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14182 (supply_fast_tracepoint_registers)
14183 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14184 (ipa_tdesc, claim_trampoline_space)
14185 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14186 (agent_mem_read, agent_get_trace_state_variable_value)
14187 (agent_set_trace_state_variable_value, agent_tsv_read)
14188 (agent_mem_read_string, get_raw_reg_func_addr)
14189 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14190 * tracepoint.h: ... this new file.
14192 2013-09-05 Pedro Alves <palves@redhat.com>
14194 * server.h (perror_with_name, error, fatal, warning, paddress)
14195 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14197 * utils.h: New file.
14199 2013-09-05 Pedro Alves <palves@redhat.com>
14201 * server.h (remote_debug, noack_mode, transport_is_reliable)
14202 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14203 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14204 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14205 (write_enn, initialize_async_io, enable_async_io)
14206 (disable_async_io, check_remote_input_interrupt_request)
14207 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14208 (dead_thread_notify, prepare_resume_reply)
14209 (decode_address_to_semicolon, decode_address, decode_m_packet)
14210 (decode_M_packet, decode_X_packet, decode_xfer_write)
14211 (decode_search_memory_packet, unhexify, hexify)
14212 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14213 (look_up_one_symbol, relocate_instruction)
14214 (monitor_output): Move to remote-utils.h, and include it.
14215 * remote-utils.h: New file.
14217 2013-09-05 Pedro Alves <palves@redhat.com>
14219 * server.h (_): Delete.
14221 2013-09-02 Pedro Alves <palves@redhat.com>
14223 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14224 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14226 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14228 2013-09-02 Pierre Muller <muller@sourceware.org>
14230 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14231 or WriteProcessMemory complete successfully and handle
14232 ERROR_PARTIAL_COPY error.
14234 2013-09-02 Pedro Alves <palves@redhat.com>
14236 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14237 error instead of EIO.
14239 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14242 * linux-low.c: Include filestuff.h.
14243 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14244 * lynx-low.c: Include filestuff.h.
14245 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14246 * server.c: Include filestuff.h.
14247 (main): Call notice_open_fds.
14248 * spu-low.c: Include filestuff.h.
14249 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14251 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14253 * Makefile.in: Explain why ../target and ../nat are not
14254 listed as include file search paths.
14255 (linux-waitpid.o): New object file rule.
14256 * configure.srv (srv_native_linux_obj): New variable.
14257 Replace all occurrences of linux native object files with
14258 $srv_native_linux_obj.
14259 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14260 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14261 (linux_enable_event_reporting): Remove declaration.
14262 (my_waitpid): Moved to common/linux-waitpid.c.
14263 (linux_wait_for_event): Pass ptid when calling
14264 linux_enable_event_reporting.
14265 (linux_supports_tracefork_flag): Remove.
14266 (linux_enable_event_reporting): Likewise.
14267 (linux_tracefork_grandchild): Remove.
14268 (STACK_SIZE): Moved to common/linux-ptrace.c.
14269 (linux_tracefork_child): Remove.
14270 (linux_test_for_tracefork): Remove.
14271 (linux_look_up_symbols): Call linux_supports_traceclone.
14272 (initialize_low): Remove call to linux_test_for_tracefork.
14273 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14274 common/linux-ptrace.h.
14275 (PTRACE_TYPE_ARG4): Likewise.
14276 Include linux-ptrace.h.
14278 2013-08-21 Pedro Alves <palves@redhat.com>
14280 * config.in: Renegerate.
14282 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14284 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14285 (SFILES): Remove $(srcdir)/common/target-common.c and
14286 add $(srcdir)/target/waitstatus.c.
14287 (OBS): Remove target-common.o and add waitstatus.o.
14288 (server_h): Remove $(srcdir)/../common/target-common.h and
14289 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14290 and $(srcdir)/../target/waitstatus.h.
14291 (target-common.o): Remove.
14292 (waitstatus.o): New target object file.
14293 * target.h: Do not include target-common.h and
14294 include target/resume.h, target/wait.h and
14295 target/waitstatus.h.
14297 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14299 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14300 to PTRACE_TYPE_ARG3.
14301 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14302 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14304 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14305 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14307 2013-07-27 Jie Zhang <jie@codesourcery.com>
14308 Daniel Jacobowitz <dan@codesourcery.com>
14309 Yao Qi <yao@codesourcery.com>
14311 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14312 (mips-linux-watch.o): New rule.
14313 (mips_linux_watch_h): New variable.
14314 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14316 * linux-mips-low.c: Include mips-linux-watch.h.
14317 (struct arch_process_info, struct arch_lwp_info): New.
14318 (update_watch_registers_callback): New function.
14319 (mips_linux_new_process, mips_linux_new_thread) New functions.
14320 (mips_linux_prepare_to_resume, mips_insert_point): New
14322 (mips_remove_point, mips_stopped_by_watchpoint): New
14324 (rsp_bp_type_to_target_hw_bp_type): New function.
14325 (mips_stopped_data_address): New function.
14326 (the_low_target): Add watchpoint support functions.
14328 2013-07-27 Yao Qi <yao@codesourcery.com>
14330 * i386-low.c: Include break-common.h.
14331 (enum target_hw_bp_type): Remove.
14333 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14335 * Makefile.in (SFILES): /common/target-common.c.
14336 (OBS): Add target-common.o.
14337 (server_h): Add $(srcdir)/../common/target-common.h.
14338 (target-common.o): New target.
14339 * server.c (queue_stop_reply_callback): Free
14340 status string after use.
14341 * target.c (target_waitstatus_to_string): Remove.
14342 * target.h: Include target-common.h.
14343 (resume_kind): Likewise.
14344 (target_waitkind): Likewise.
14345 (target_waitstatus): Likewise.
14346 (TARGET_WNOHANG): Likewise.
14348 2013-07-04 Yao Qi <yao@codesourcery.com>
14350 * Makefile.in (host_alias): Use @host_noncanonical@.
14351 (target_alias): Use @target_noncanonical@.
14352 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14353 ACX_NONCANONICAL_HOST.
14354 * configure: Regenerated.
14357 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14359 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14360 * configure: Rebuild.
14361 * Makefile.in (version_host, version_target): Get from configure.
14362 (version.c): Use $(version_host) and $(version_target).
14364 2013-07-03 Pedro Alves <palves@redhat.com>
14366 * Makefile.in (config.status): Depend on development.sh.
14367 * acinclude.m4: Include libmcheck.m4.
14368 * configure: Regenerate.
14370 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14372 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14373 attribute inside the parentheses.
14374 (winapi_DebugSetProcessKillOnExit): Ditto.
14375 (winapi_DebugBreakProcess): Ditto.
14376 (winapi_GenerateConsoleCtrlEvent): Ditto.
14378 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14380 * notif.h (notif_event): Add a dummy member to avoid compiler
14383 2013-07-01 Pedro Alves <palves@redhat.com>
14385 * hostio.c (HOSTIO_PATH_MAX): Define.
14386 (require_filename, handle_open, handle_unlink, handle_readlink):
14389 2013-07-01 Pedro Alves <palves@redhat.com>
14391 * server.h: Include "pathmax.h".
14392 * linux-low.c: Don't include sys/param.h.
14393 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14395 * win32-low.c: Don't include sys/param.h.
14396 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14398 2013-07-01 Pedro Alves <palves@redhat.com>
14400 * event-loop.c: Don't check HAVE_UNISTD_H before including
14402 * gdbreplay.c: Likewise.
14403 * remote-utils.c: Likewise.
14404 * server.c: Likewise.
14405 * configure.ac: Don't check for unistd.h.
14406 * configure: Regenerate.
14408 2013-06-28 Tom Tromey <tromey@redhat.com>
14410 * Makefile.in (version.c): Use version.in, not
14413 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14415 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14416 * configure: Rebuild.
14417 * Makefile.in (version_host, version_target): Get from configure.
14418 (version.c): Use $(version_host) and $(version_target).
14420 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14422 Fix trace-status to output user name without trailing colon.
14423 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14425 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14427 Fix trace-status to output proper start-time and stop-time.
14428 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14429 output start time and stop time in hex as gdb expects.
14431 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14433 * tracepoint.c (build_traceframe_info_xml): Output trace state
14434 variables present in the trace buffer.
14436 2013-06-24 Tom Tromey <tromey@redhat.com>
14438 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14440 (version.o): Remove.
14441 * gdbreplay.c: Include version.h.
14442 (version, host_name): Don't declare.
14443 * server.h: Include version.h.
14444 (version, host_name): Don't declare.
14446 2013-06-12 Pedro Alves <palves@redhat.com>
14448 * linux-x86-low.c (linux_is_elf64): Delete global.
14449 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14450 with local linux_pid_exe_is_elf_64_file use.
14452 2013-06-11 Pedro Alves <palves@redhat.com>
14454 * linux-low.c (regset_disabled, disable_regset): New functions.
14455 (regsets_fetch_inferior_registers)
14456 (regsets_store_inferior_registers): Use them.
14457 (initialize_regsets_info); Don't allocate the disabled_regsets
14459 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14462 2013-06-11 Pedro Alves <palves@redhat.com>
14464 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14467 2013-06-11 Pedro Alves <palves@redhat.com>
14469 * linux-x86-low.c (initialize_low_arch): Call
14470 init_registers_x32_avx_linux.
14472 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14474 Fix compatibility with Android Bionic.
14475 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14478 2013-06-07 Pedro Alves <palves@redhat.com>
14481 * Makefile.in (OBS): Add tdesc.o.
14482 (IPA_OBJS): Add tdesc-ipa.o.
14483 (tdesc-ipa.o): New rule.
14484 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14486 * linux-low.c (new_inferior): Delete.
14487 (disabled_regsets, num_regsets): Delete.
14488 (linux_add_process): Adjust to set the new per-process
14490 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14491 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14492 was a stop. When calling arch_setup, switch the current inferior
14493 to the thread that got an event.
14494 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14495 (regsets_fetch_inferior_registers)
14496 (regsets_store_inferior_registers): New regsets_info parameter.
14498 (linux_register_in_regsets): New regs_info parameter. Adjust to
14500 (register_addr, fetch_register, store_register): New usrregs_info
14501 parameter. Adjust to use it.
14502 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14503 parameter regs_info. Adjust to use it.
14504 (linux_fetch_registers): Get the current inferior's regs_info, and
14506 (linux_store_registers): Ditto.
14507 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14508 (initialize_low): Don't initialize the target_regsets here. Call
14509 initialize_low_arch.
14510 * linux-low.h (target_regsets): Delete declaration.
14511 (struct regsets_info): New.
14512 (struct usrregs_info): New.
14513 (struct regs_info): New.
14514 (struct process_info_private) <new_inferior>: New field.
14515 (struct linux_target_ops): Delete the num_regs, regmap, and
14516 regset_bitmap fields. New field regs_info.
14517 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14518 * i387-fp.c (num_xmm_registers): Delete.
14519 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14520 calls to new interface.
14521 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14522 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14523 Infer the number of xmm registers from the regcache's target
14525 * i387-fp.h (num_xmm_registers): Delete.
14526 * inferiors.c (add_thread): Don't install the thread's regcache
14528 * proc-service.c (gregset_info): Fetch the current inferior's
14529 regs_info. Adjust to use it.
14530 * regcache.c: Include tdesc.h.
14531 (register_bytes, reg_defs, num_registers)
14532 (gdbserver_expedite_regs): Delete.
14533 (get_thread_regcache): If the thread doesn't have a regcache yet,
14534 create one, instead of aborting gdbserver.
14535 (regcache_invalidate_one): Rename to ...
14536 (regcache_invalidate_thread): ... this.
14537 (regcache_invalidate_one): New.
14538 (regcache_invalidate): Only invalidate registers of the current
14540 (init_register_cache): Add target_desc parameter, and use it.
14541 (new_register_cache): Ditto. Assert the target description has a
14542 non zero registers_size.
14543 (regcache_cpy): Add assertions. Adjust.
14544 (realloc_register_cache, set_register_cache): Delete.
14545 (registers_to_string, registers_from_string): Adjust.
14546 (find_register_by_name, find_regno, find_register_by_number)
14547 (register_cache_size): Add target_desc parameter, and use it.
14548 (free_register_cache_thread, free_register_cache_thread_one)
14549 (regcache_release, register_cache_size): New.
14550 (register_size): Add target_desc parameter, and use it.
14551 (register_data, supply_register, supply_register_zeroed)
14552 (supply_regblock, supply_register_by_name, collect_register)
14553 (collect_register_as_string, collect_register_by_name): Adjust.
14554 * regcache.h (struct target_desc): Forward declare.
14555 (struct regcache) <tdesc>: New field.
14556 (init_register_cache, new_register_cache): Add target_desc
14558 (regcache_invalidate_thread): Declare.
14559 (regcache_invalidate_one): Delete declaration.
14560 (regcache_release): Declare.
14561 (find_register_by_number, register_cache_size, register_size)
14562 (find_regno): Add target_desc parameter.
14563 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14565 * remote-utils.c: Include tdesc.h.
14566 (outreg, prepare_resume_reply): Adjust.
14567 * server.c: Include tdesc.h.
14568 (gdbserver_xmltarget): Delete declaration.
14569 (get_features_xml, process_serial_event): Adjust.
14570 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14572 (struct process_info) <tdesc>: New field.
14573 (ipa_tdesc): Declare.
14574 * tdesc.c: New file.
14575 * tdesc.h: New file.
14576 * tracepoint.c: Include tdesc.h.
14577 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14578 (get_context_regcache): Adjust to pass ipa_tdesc down.
14579 (do_action_at_tracepoint): Adjust to get the register cache size
14580 from the context regcache's description.
14581 (traceframe_walk_blocks): Adjust to get the register cache size
14582 from the current trace frame's description.
14583 (traceframe_get_pc): Adjust to get current trace frame's
14584 description and pass it down.
14585 (gdb_collect): Adjust to get the register cache size from the
14587 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14588 (gdbserver_xmltarget): Delete.
14589 (initialize_low_tracepoint): Set the ipa's target description.
14590 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14591 (initialize_low_tracepoint): Set the ipa's target description.
14592 * linux-x86-low.c: Include tdesc.h.
14593 [__x86_64__] (is_64bit_tdesc): New.
14594 (ps_get_thread_area, x86_get_thread_area): Use it.
14595 (i386_cannot_store_register): Rename to ...
14596 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14597 (i386_cannot_fetch_register): Rename to ...
14598 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14599 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14601 (target_regsets): Rename to ...
14602 (x86_regsets): ... this.
14603 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14605 (x86_siginfo_fixup): Use is_64bit_tdesc.
14606 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14607 (tdesc_x32_avx_linux, tdesc_x32_linux)
14608 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14610 (x86_linux_update_xmltarget): Delete.
14611 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14612 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14613 (AMD64_LINUX_USER64_CS): New.
14614 (x86_linux_read_description): New, based on
14615 x86_linux_update_xmltarget.
14616 (same_process_callback): New.
14617 (x86_arch_setup_process_callback): New.
14618 (x86_linux_update_xmltarget): New.
14619 (x86_regsets_info): New.
14620 (amd64_linux_regs_info): New.
14621 (i386_linux_usrregs_info): New.
14622 (i386_linux_regs_info): New.
14623 (x86_linux_regs_info): New.
14624 (x86_arch_setup): Reimplement.
14625 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14626 (x86_emit_ops): Ditto.
14627 (the_low_target): Adjust. Install x86_linux_regs_info,
14628 x86_cannot_fetch_register, and x86_cannot_store_register.
14629 (initialize_low_arch): New.
14630 * linux-ia64-low.c (tdesc_ia64): Declare.
14631 (ia64_fetch_register): Adjust.
14632 (ia64_usrregs_info, regs_info): New globals.
14633 (ia64_regs_info): New function.
14634 (the_low_target): Adjust.
14635 (initialize_low_arch): New function.
14636 * linux-sparc-low.c (tdesc_sparc64): Declare.
14637 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14639 (sparc_arch_setup): New function.
14640 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14641 (the_low_target): Adjust.
14642 (initialize_low_arch): New function.
14643 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14644 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14645 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14646 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14647 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14648 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14649 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14650 (tdesc_powerpc_isa205_vsx64l): Declare.
14651 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14652 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14653 (ppc_set_pc, ppc_get_hwcap): Adjust.
14654 (ppc_usrregs_info): Forward declare.
14655 (!__powerpc64__) ppc_regmap_adjusted: New global.
14656 (ppc_arch_setup): Adjust to the current process'es target
14658 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14659 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14660 (ppc_store_evrregset): Adjust.
14661 (target_regsets): Rename to ...
14662 (ppc_regsets): ... this, and make static.
14663 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14664 (ppc_regs_info): New function.
14665 (the_low_target): Adjust.
14666 (initialize_low_arch): New function.
14667 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14668 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14669 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14670 (tdesc_s390x_linux64v2): Declare.
14671 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14672 (s390_fill_gregset, s390_store_last_break): Adjust.
14673 (target_regsets): Rename to ...
14674 (s390_regsets): ... this, and make static.
14675 (s390_get_pc, s390_set_pc): Adjust.
14676 (s390_get_hwcap): New target_desc parameter, and use it.
14677 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14678 (s390_arch_setup): Adjust to set the current process'es target
14679 description. Don't adjust the regmap.
14680 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14681 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14682 (regs_info_3264): New globals.
14683 (s390_regs_info): New function.
14684 (the_low_target): Adjust.
14685 (initialize_low_arch): New function.
14686 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14687 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14688 [__mips64] (init_registers_mips_linux)
14689 (init_registers_mips_dsp_linux): Delete defines.
14690 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14691 (have_dsp): New global.
14692 (mips_read_description): New, based on mips_arch_setup.
14693 (mips_arch_setup): Reimplement.
14694 (get_usrregs_info): New function.
14695 (mips_cannot_fetch_register, mips_cannot_store_register)
14696 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14697 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14698 (target_regsets): Rename to ...
14699 (mips_regsets): ... this, and make static.
14700 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14701 (dsp_regs_info, regs_info): New globals.
14702 (mips_regs_info): New function.
14703 (the_low_target): Adjust.
14704 (initialize_low_arch): New function.
14705 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14706 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14708 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14709 (arm_read_description): New, with bits factored from
14711 (arm_arch_setup): Reimplement.
14712 (target_regsets): Rename to ...
14713 (arm_regsets): ... this, and make static.
14714 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14715 (arm_regs_info): New function.
14716 (the_low_target): Adjust.
14717 (initialize_low_arch): New function.
14718 * linux-m68k-low.c (tdesc_m68k): Declare.
14719 (target_regsets): Rename to ...
14720 (m68k_regsets): ... this, and make static.
14721 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14722 (m68k_regs_info): New function.
14723 (m68k_arch_setup): New function.
14724 (the_low_target): Adjust.
14725 (initialize_low_arch): New function.
14726 * linux-sh-low.c (tdesc_sharch): Declare.
14727 (target_regsets): Rename to ...
14728 (sh_regsets): ... this, and make static.
14729 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14730 (sh_regs_info, sh_arch_setup): New functions.
14731 (the_low_target): Adjust.
14732 (initialize_low_arch): New function.
14733 * linux-bfin-low.c (tdesc_bfin): Declare.
14734 (bfin_arch_setup): New function.
14735 (bfin_usrregs_info, regs_info): New globals.
14736 (bfin_regs_info): New function.
14737 (the_low_target): Adjust.
14738 (initialize_low_arch): New function.
14739 * linux-cris-low.c (tdesc_cris): Declare.
14740 (cris_arch_setup): New function.
14741 (cris_usrregs_info, regs_info): New globals.
14742 (cris_regs_info): New function.
14743 (the_low_target): Adjust.
14744 (initialize_low_arch): New function.
14745 * linux-cris-low.c (tdesc_crisv32): Declare.
14746 (cris_arch_setup): New function.
14747 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14748 (cris_regs_info): New function.
14749 (the_low_target): Adjust.
14750 (initialize_low_arch): New function.
14751 * linux-m32r-low.c (tdesc_m32r): Declare.
14752 (m32r_arch_setup): New function.
14753 (m32r_usrregs_info, regs_info): New globals.
14754 (m32r_regs_info): Adjust.
14755 (initialize_low_arch): New function.
14756 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14757 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14758 (tic6x_usrregs_info): Forward declare.
14759 (tic6x_read_description): New function, based on ...
14760 (tic6x_arch_setup): ... this. Reimplement.
14761 (target_regsets): Rename to ...
14762 (tic6x_regsets): ... this, and make static.
14763 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14764 (tic6x_regs_info): New function.
14765 (the_low_target): Adjust.
14766 (initialize_low_arch): New function.
14767 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14768 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14769 (target_regsets): Rename to ...
14770 (xtensa_regsets): ... this, and make static.
14771 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14773 (xtensa_arch_setup, xtensa_regs_info): New functions.
14774 (the_low_target): Adjust.
14775 (initialize_low_arch): New function.
14776 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14777 (nios2_arch_setup): Set the current process'es tdesc.
14778 (target_regsets): Rename to ...
14779 (nios2_regsets): ... this.
14780 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14781 (nios2_regs_info): New function.
14782 (the_low_target): Adjust.
14783 (initialize_low_arch): New function.
14784 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14785 (aarch64_arch_setup): Set the current process'es tdesc.
14786 (target_regsets): Rename to ...
14787 (aarch64_regsets): ... this.
14788 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14789 (aarch64_regs_info): New function.
14790 (the_low_target): Adjust.
14791 (initialize_low_arch): New function.
14792 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14794 (target_regsets): Rename to ...
14795 (tile_regsets): ... this.
14796 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14797 (tile_regs_info): New function.
14798 (tile_arch_setup): Set the current process'es tdesc.
14799 (the_low_target): Adjust.
14800 (initialize_low_arch): New function.
14801 * spu-low.c (tdesc_spu): Declare.
14802 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14803 * win32-arm-low.c (tdesc_arm): Declare.
14804 (arm_arch_setup): New function.
14805 (the_low_target): Install arm_arch_setup instead of
14806 init_registers_arm.
14807 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14808 (init_windows_x86): Rename to ...
14809 (i386_arch_setup): ... this. Set `win32_tdesc'.
14810 (the_low_target): Adjust.
14811 * win32-low.c (win32_tdesc): New global.
14812 (child_add_thread): Don't create the thread cache here.
14813 (do_initial_child_stuff): Set the new process'es tdesc.
14814 * win32-low.h (struct target_desc): Forward declare.
14815 (win32_tdesc): Declare.
14816 * lynx-i386-low.c (tdesc_i386): Declare global.
14817 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14818 * lynx-low.c (lynx_tdesc): New global.
14819 (lynx_add_process): Set the new process'es tdesc.
14820 * lynx-low.h (struct target_desc): Forward declare.
14821 (lynx_tdesc): Declare global.
14822 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14823 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14824 * nto-low.c (nto_tdesc): New global.
14825 (do_attach): Set the new process'es tdesc.
14826 * nto-low.h (struct target_desc): Forward declare.
14827 (nto_tdesc): Declare.
14828 * nto-x86-low.c (tdesc_i386): Declare.
14829 (nto_x86_arch_setup): Set `nto_tdesc'.
14831 2013-06-04 Gary Benson <gbenson@redhat.com>
14833 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14834 to qSupported response when appropriate.
14835 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14836 with nonzero-length annex.
14837 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14838 arguments supplied in annex.
14840 2013-05-31 Doug Evans <dje@google.com>
14843 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14844 64 bits in 64-cross-32 environment.
14846 2013-05-28 Pedro Alves <palves@redhat.com>
14848 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14849 (aarch64-without-fpu.c): Delete rule.
14850 * configure.srv (aarch64*-*-linux*): Remove references to
14851 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14852 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14855 2013-05-24 Pedro Alves <palves@redhat.com>
14857 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14858 instead of strchr/decode_address. Error if the range isn't split
14859 with a ','. Don't assume there's be a ':' in the action.
14861 2013-05-23 Yao Qi <yao@codesourcery.com>
14862 Pedro Alves <palves@redhat.com>
14864 * linux-low.c (lwp_in_step_range): New function.
14865 (linux_wait_1): If the thread was range stepping and stopped
14866 outside the stepping range, report the stop to GDB. Otherwise,
14867 continue stepping. Add range stepping debug output.
14868 (linux_set_resume_request): Copy the step range from the resume
14869 request to the lwp.
14870 (linux_supports_range_stepping): New.
14871 (linux_target_ops) <supports_range_stepping>: Set to
14872 linux_supports_range_stepping.
14873 * linux-low.h (struct linux_target_ops)
14874 <supports_range_stepping>: New field.
14875 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14876 * linux-x86-low.c (x86_supports_range_stepping): New.
14877 (the_low_target) <supports_range_stepping>: Set to
14878 x86_supports_range_stepping.
14879 * server.c (handle_v_cont): Handle 'r' action.
14880 (handle_v_requests): Append ";r" if the target supports range
14882 * target.h (struct thread_resume) <step_range_start,
14883 step_range_end>: New fields.
14884 (struct target_ops) <supports_range_stepping>:
14886 (target_supports_range_stepping): New macro.
14888 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14890 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14891 confusion in comment.
14893 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14895 * lynx-low.c (struct process_info_private): New type.
14896 (lynx_add_process): New function.
14897 (lynx_create_inferior, lynx_attach): Replace calls to
14898 add_process by calls to lynx_add_process.
14899 (lynx_resume): If PTID is null, then try using
14900 current_process()->private->last_wait_event_ptid.
14902 (lynx_clear_inferiors): Delete. The contents of that function
14903 has been inlined in lynx_mourn;
14904 (lynx_wait_1): Save the ptid in the process's private data.
14905 (lynx_mourn): Free the process' private data. Replace call
14906 to lynx_clear_inferiors by call to clear_inferiors.
14908 2013-05-17 Yao Qi <yao@codesourcery.com>
14910 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14913 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14915 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14916 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14917 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14918 PT_TEXT_END_ADDR guards. Update comments.
14919 (linux_target_op) <read_offsets>: Conditionally define to
14920 linux_read_offsets if the target is UCLIBC and if it defines
14921 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14923 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14924 Andrew Jenner <andrew@codesourcery.com>
14926 * Makefile.in (SFILES): Add linux-nios2-low.c.
14927 (clean): Add action to delete nios2-linux.c.
14928 (nios2-linux.c): New rule.
14929 * configure.srv: Add nios2*-*-linux*.
14930 * linux-nios2-low.c: New.
14932 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14934 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14936 2013-04-25 Hui Zhu <hui@codesourcery.com>
14939 * ax.c (ax_printf): Add fflush.
14941 2013-04-22 Tom Tromey <tromey@redhat.com>
14943 * Makefile.in (SFILES): Add filestuff.c.
14944 (OBS): Add filestuff.o.
14945 (filestuff.o): New target.
14946 * config.in, configure: Rebuild.
14947 * configure.ac: Check for fdwalk, pipe2.
14949 2013-04-17 Pedro Alves <palves@redhat.com>
14951 * configure.ac (USE_THREAD_DB): Delete variable.
14952 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14953 Don't AC_SUBST USE_THREAD_DB.
14954 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14955 * config.in, configure: Regenerate.
14957 2013-04-16 Pedro Alves <palves@redhat.com>
14959 * linux-low.h (struct lwp_info) <thread_known>: Move under
14960 the USE_THREAD_DB #ifdef.
14962 2013-04-16 Pedro Alves <palves@redhat.com>
14964 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14965 (linux-low.o): Delete rule.
14966 * linux-low.h: Always include "gdb_thread_db.h" instead of
14967 conditionally including thread_db.h.
14968 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14971 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14973 * Makefile.in (install-only): Fix make install regression.
14975 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14977 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14978 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14980 * gdbserver.1: Remove.
14982 2013-03-22 Pedro Alves <palves@redhat.com>
14984 * linux-low.c (handle_extended_wait): Don't call
14985 linux_enable_event_reporting.
14987 2013-03-15 Tony Theodore <tonyt@logyst.com>
14990 * Makefile.in (SHELL): Use @SHELL@.
14992 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14994 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14997 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14999 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15000 Remove extraneous NULL element.
15002 2013-03-13 Yao Qi <yao@codesourcery.com>
15004 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15005 'V' block in trace frame.
15007 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15009 * target.h (struct target_ops): Add btrace ops.
15010 (target_supports_btrace): New macro.
15011 (target_enable_btrace): New macro.
15012 (target_disable_btrace): New macro.
15013 (target_read_btrace): New macro.
15014 * gdbthread.h (struct thread_info): Add btrace field.
15015 * server.c: Include btrace-common.h.
15016 (handle_btrace_general_set): New function.
15017 (handle_btrace_enable): New function.
15018 (handle_btrace_disable): New function.
15019 (handle_general_set): Call handle_btrace_general_set.
15020 (handle_qxfer_btrace): New function.
15021 (struct qxfer qxfer_packets[]): Add btrace entry.
15022 * inferiors.c (remove_thread): Disable btrace.
15023 * linux-low: Include linux-btrace.h.
15024 (linux_low_enable_btrace): New function.
15025 (linux_low_read_btrace): New function.
15026 (linux_target_ops): Add btrace ops.
15027 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15028 Add srv_linux_btrace=yes.
15029 (x86_64-*-linux*): Add linux-btrace.o.
15030 Add srv_linux_btrace=yes.
15031 * configure.ac: Define HAVE_LINUX_BTRACE.
15032 * config.in: Regenerated.
15033 * configure: Regenerated.
15035 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15037 * server.c (handle_qxfer): Preserve error message if -3 is
15039 (qxfer): Document the -3 return value.
15041 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15043 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15044 (linux_btrace_h): New variable.
15045 (linux-btrace.o): New rule.
15047 2013-03-08 Stan Shebs <stan@codesourcery.com>
15048 Hafiz Abid Qadeer <abidh@codesourcery.com>
15050 * tracepoint.c (trace_buffer_size): New global.
15051 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15052 (init_trace_buffer): Change to one-argument function. Allocate
15053 trace buffer memory.
15054 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15055 handle QTBuffer:size packet.
15056 (cmd_bigqtbuffer_size): New function.
15057 (initialize_tracepoint): Call init_trace_buffer with
15058 DEFAULT_TRACE_BUFFER_SIZE.
15059 * server.c (handle_query): Add QTBuffer:size in the
15062 2013-03-07 Yao Qi <yao@codesourcery.com>
15064 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15065 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15067 (cmd_qtsp): Adjust condition. Do post increment.
15068 Set cur_action and cur_step_action back to 0.
15070 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15073 * linux-low.c (linux_write_memory): Return early success if LEN is
15076 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15078 * configure.srv: Add x86_64-*-cygwin* as target.
15080 2013-02-28 Tom Tromey <tromey@redhat.com>
15082 * configure.ac: Invoke AC_SYS_LARGEFILE.
15083 * configure, config.in: Rebuild.
15085 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15087 * win32-low.c: Throughout, fix format strings and casts of
15088 printf-like functions to avoid type related warnings on all
15090 (get_child_debug_event): Print dwDebugEventCode as hex since
15091 that's how it's usually documented.
15093 2013-02-28 Yao Qi <yao@codesourcery.com>
15095 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15098 2013-02-27 Jiong Wang <jiwang@tilera.com>
15100 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15101 (reg-tilegx32.c): New rule.
15102 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15103 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15104 different register info initializer according to elf class.
15105 (init_registers_tilgx32): New function. The tilegx32 register info
15107 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15108 (tile_store_gregset): Likewise.
15110 2013-02-27 Yao Qi <yao@codesourcery.com>
15112 * server.c (process_point_options): Print debug message when
15113 debug_threads is true.
15115 2013-02-26 Yao Qi <yao@codesourcery.com>
15117 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15119 2013-02-19 Pedro Alves <palves@redhat.com>
15120 Kai Tietz <ktietz@redhat.com>
15124 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15125 instead of strtoul to extract address from packet.
15126 (process_serial_event) <'z'>: Likewise.
15128 2013-02-18 Yao Qi <yao@codesourcery.com>
15130 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15132 2013-02-14 Pedro Alves <palves@redhat.com>
15136 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15137 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15139 2013-02-14 Pedro Alves <palves@redhat.com>
15141 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15143 2013-02-14 Pedro Alves <palves@redhat.com>
15145 * tracepoint.c (save_string): Delete.
15146 (add_tracepoint_action): Use savestring instead of save_string.
15148 2013-02-12 Pedro Alves <palves@redhat.com>
15150 * linux-xtensa-low.c: Ditto.
15151 * xtensa-xtregs.c: Ditto.
15153 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15155 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15158 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15160 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15161 aarch64_num_wp_regs and aarch64_num_bp_regs to
15162 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15164 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15166 * linux-aarch64-low.c (ps_get_thread_area): Replace
15167 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15169 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15170 Marcus Shawcroft <marcus.shawcroft@arm.com>
15171 Nigel Stephens <nigel.stephens@arm.com>
15172 Yufeng Zhang <yufeng.zhang@arm.com>
15174 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15175 (aarch64.c, aarch64-without-fpu.c): New targets.
15176 * configure.srv (aarch64*-*-linux*): New.
15177 * linux-aarch64-low.c: New file.
15179 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15181 * linux-low.c (handle_extended_wait, linux_create_inferior)
15182 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15183 (dequeue_one_deferred_signal, linux_resume_one_thread)
15184 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15185 (linux_tracefork_grandchild, linux_test_for_tracefork)
15186 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15187 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15188 where the argument is 0.
15190 2013-01-25 Yao Qi <yao@codesourcery.com>
15192 * event-loop.c: Include "queue.h".
15193 (gdb_event_p): New typedef.
15194 (struct gdb_event) <next_event>: Remove.
15195 (event_queue): Change to QUEUE(gdb_event_p).
15196 (async_queue_event): Remove.
15197 (gdb_event_xfree): New.
15198 (initialize_event_loop): New.
15199 (process_event): Use API from QUEUE.
15200 (wait_for_event): Likewise.
15201 * server.c (main): Call initialize_event_loop.
15202 * server.h (initialize_event_loop): Declare.
15204 2013-01-18 Yao Qi <yao@codesourcery.com>
15206 * ax.h (struct eval_agent_expr_context): New.
15207 (gdb_eval_agent_expr): Update declaration.
15208 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15209 TFRAME. Add new argument CTX.
15210 * server.h (struct eval_agent_expr_context): Declare.
15211 (agent_mem_read, agent_tsv_read): Update declaration.
15212 (agent_mem_read_string): Likewise.
15213 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15214 (add_traceframe_block): Add new argument TPOINT.
15215 Increase TPOINT->traceframe_usage.
15216 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15217 eval_tracepoint_agent_expr.
15218 (condition_true_at_tracepoint): Likewise.
15219 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15220 (agent_mem_read_string, agent_tsv_read): Likewise.
15222 2013-01-16 Yao Qi <yao@codesourcery.com>
15224 * linux-low.c (linux_resume_one_lwp): Don't check
15225 'lwp->bp_reinsert != 0'.
15227 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15228 Pedro Alves <palves@redhat.com>
15230 * lynx-low.c (ptrace_request_to_str): Define a temporary
15231 macro and use it to simplify this function's implementation.
15233 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15235 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15238 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15240 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15242 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15244 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15246 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15248 * lynx-low.c (lynx_resume): Use the resume_info parameter
15249 to determine the ptid for the lynx_ptrace call, unless
15250 it is equal to minus_one_ptid, in which case we use the
15251 ptid of the current_inferior.
15252 (lynx_wait_1): After having received a thread create/exit
15253 event, resume the inferior's execution using the signaling
15254 thread's ptid, rather than the old ptid.
15256 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15258 * lynx-low.c (lynx_resume): Delete variable ret.
15260 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15262 * gdbreplay.c (gdbreplay_version): Update copyright year.
15263 * server.c (gdbserver_version): Likewise.
15265 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15267 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15270 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15272 * lynx-low.c (ptrace_request_to_str): Add handling for
15273 PTRACE_GETTRACESIG.
15275 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15277 * lynx-low.c (lynx_attach): Delete variable new_process.
15279 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15281 * lynx-low.c (lynx_create_inferior): Delete variable
15284 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15286 * lynx-low.c (ptrace_request_to_str): Do not handle
15287 PTRACE_GETTHREADLIST if this macro does not exist.
15289 2012-12-15 Yao Qi <yao@codesourcery.com>
15291 * Makefile.in (OBS): Add notif.o.
15292 * notif.c, notif.h: New.
15293 * server.c: Include "notif.h".
15294 (struct vstop_notif) <next>: Remove.
15296 (queue_stop_reply): Update.
15297 (push_event, send_next_stop_reply): Remove.
15298 (discard_queued_stop_replies): Update.
15299 (notif_stop): New variable.
15300 (handle_v_stopped): Remove.
15301 (handle_v_requests): Don't call handle_v_stopped. Call
15302 handle_ack_notif instead.
15303 (queue_stop_reply_callback): Call notif_event_enque instead
15304 of queue_stop_reply.
15305 (handle_status): Don't call send_next_stop_reply, call
15306 notif_write_event instead.
15307 (kill_inferior_callback): Likewise.
15308 (detach_or_kill_inferior_callback): Likewise.
15309 (main): Call initialize_notif.
15310 (process_serial_event): Call QUEUE_is_empty.
15311 (handle_target_event): Call notif_push instead of push event.
15312 * server.h (push_event): Remove declaration.
15314 2012-12-10 Tom Tromey <tromey@redhat.com>
15316 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15317 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15320 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15321 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15322 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15323 (amd64-linux-ipa.o, ax.o): Rewrite.
15324 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15325 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15326 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15327 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15328 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15329 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15330 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15331 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15332 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15333 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15334 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15335 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15336 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15337 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15338 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15339 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15340 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15341 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15342 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15343 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15344 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15345 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15346 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15347 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15348 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15349 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15350 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15351 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15352 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15353 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15354 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15355 (reg-tilegx.o): Remove.
15356 (all_object_files): New macro.
15357 Include .deps files.
15358 * aclocal.m4, configure: Rebuild.
15359 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15360 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15361 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15363 2012-12-05 Tom Tromey <tromey@redhat.com>
15366 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15368 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15370 * configure.ac: Check for linux/perf_event.h.
15371 * config.in: Regenerated.
15372 * configure: Regenerated.
15374 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15376 * hostio.c (handle_readlink): Decrease buffer size
15377 parameter passed to readlink by one byte.
15379 2012-11-26 Yao Qi <yao@codesourcery.com>
15381 * configure.ac (build_warnings): Append '-Wempty-body'.
15382 * configure: Regenerated.
15383 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15386 2012-11-15 Pierre Muller <muller@sourceware.org>
15388 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15389 * config.in: Regenerate.
15390 * configure: Regenerate.
15391 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15392 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15393 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15394 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15396 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15397 instead of <sys/wait.h> header.
15398 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15400 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15402 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15403 (various make rules): Remove -DGDBSERVER
15405 2012-11-09 Yao Qi <yao@codesourcery.com>
15407 * spu-low.c (current_ptid): Move it to ..
15408 * gdbthread.h: ... here. New.
15409 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15410 * server.c (myresume, process_serial_event): Likewise.
15411 * thread-db.c (thread_db_find_new_threads): Likewise.
15412 * tracepoint.c (run_inferior_command): Likewise.
15414 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15416 * server.c (handle_search_memory_1): Include access length in
15419 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15421 * linux-crisv32-low.c: Fix compile errors.
15423 2012-09-04 Yao Qi <yao@codesourcery.com>
15425 * tracepoint.c (cmd_qtsv): Adjust debug message.
15426 Don't check CUR_TPOINT.
15428 2012-08-28 Yao Qi <yao@codesourcery.com>
15430 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15431 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15432 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15433 Remove declarations of xmalloc, xreallloc, xstrdup and
15435 * Makefile.in (libiberty_h): New.
15436 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15437 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15439 2012-08-23 Yao Qi <yao@codesourcery.com>
15441 * server.h: Remove declaration of 'xsnprintf'.
15443 2012-08-22 Keith Seitz <keiths@redhat.com>
15445 * server.h: Include build-gnulib-gbserver/config.h.
15446 * gdbreplay.c: Likewise.
15448 2012-08-08 Doug Evans <dje@google.com>
15450 * Makefile.in (SFILES): Add gdb_vecs.c.
15451 (OBS): Add gdb_vecs.o.
15452 (gdb_vecs_h, host_defs_h): New variables.
15453 (thread-db.o): Add $(gdb_vecs_h) dependency.
15454 (gdb_vecs.o): New rule.
15455 * thread-db.c: #include "gdb_vecs.h".
15456 (thread_db_load_search): Use a vector to iterate over path elements.
15457 Handle text appearing after "$pdir".
15459 * configure.ac: Add check for strstr.
15460 * config.in: Regenerate.
15461 * configure: Regenerate.
15463 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15465 * hostio.c (handle_pread): If pread fails, fall back to attempting
15467 (handle_pwrite): Likewise for pwrite.
15469 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15471 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15472 between unsupported TYPE and unimplementable ADDR/LEN combination.
15473 (arm_insert_point): Act on new return value.
15475 2012-07-31 Pedro Alves <palves@redhat.com>
15477 * server.c (process_point_options): Only skip tokens if we find
15478 one that is unrecognized. Don't treat 'X' specially while
15479 skipping unrecognized tokens.
15481 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15483 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15484 to 4-byte-align HW breakpoint addresses for Thumb.
15486 2012-07-27 Yao Qi <yao@codesourcery.com>
15490 * server.h: Declare gdb_agent_about_to_close.
15491 * target.c (kill_inferior): Include "agent.h".
15492 New. Send command 'kill'.
15493 * target.h (kill_inferior): Removed macro.
15494 * tracepoint.c (gdb_agent_about_to_close): New.
15495 (gdb_agent_helper_thread): Handle command 'close'.
15496 Wait endlessly until the inferior stops.
15497 Install gdb_agent_remove_socket to atexit hook.
15498 (agent_socket_name): New static variable.
15499 (gdb_agent_socket_init): Replace local variable 'name' with
15500 'agent_socket_name'.
15501 (gdb_agent_remove_socket): New.
15503 2012-07-27 Yao Qi <yao@codesourcery.com>
15505 * server.c (process_point_options): Stop at 'X' when parsing.
15507 2012-07-19 Michael Eager <eager@eagercon.com>
15509 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15511 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15512 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15513 hardware breakpoint.
15515 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15517 * gdbserver/linux-low.c (initialize_low): Call
15518 linux_ptrace_init_warnings.
15520 2012-07-02 Doug Evans <dje@google.com>
15522 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15525 2012-07-02 Stan Shebs <stan@codesourcery.com>
15527 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15528 (ax.o): Add it to build rule.
15530 (OBS): Add format.o.
15531 (IPA_OBS): Add format.o.
15532 * server.c (handle_query): Claim support for breakpoint commands.
15533 (process_point_options): Add command case.
15534 (process_serial_event): Leave running if there are printfs in
15536 * mem-break.h (any_persistent_commands): Declare.
15537 (add_breakpoint_commands): Declare.
15538 (gdb_no_commands_at_breakpoint): Declare.
15539 (run_breakpoint_commands): Declare.
15540 * mem-break.c (struct point_command_list): New struct.
15541 (struct breakpoint): New field command_list.
15542 (any_persistent_commands): New function.
15543 (add_commands_to_breakpoint): New function.
15544 (add_breakpoint_commands): New function.
15545 (gdb_no_commands_at_breakpoint): New function.
15546 (run_breakpoint_commands): New function.
15547 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15549 * ax.c: Include format.h.
15550 (ax_printf): New function.
15551 (gdb_eval_agent_expr): Add printf opcode.
15553 2012-06-13 Yao Qi <yao@codesourcery.com>
15555 * server.c (start_inferior): Remove duplicated writes to fields
15556 'last_resume_kind' and 'last_status' of 'current_inferior'.
15558 2012-06-12 Yao Qi <yao@codesourcery.com>
15559 Pedro Alves <palves@redhat.com>
15561 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15563 * server.c (handle_v_cont): Extend comment.
15565 2012-06-11 Yao Qi <yao@codesourcery.com>
15567 * linux-low.c (linux_attach): Add 'static'.
15569 2012-06-06 Yao Qi <yao@codesourcery.com>
15571 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15573 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15575 Fix gcc -flto compilation warning.
15576 * server.c (main): Make variable multi_mode and attach volatile.
15578 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15580 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15581 if the platform doesn't know about it.
15583 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15585 * Makefile.in (SFILES): Add linux-tile-low.c.
15586 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15587 * configure.srv: Handle tilegx-*-linux*.
15588 * linux-tile-low.c: New file.
15590 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15592 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15594 2012-05-24 Pedro Alves <palves@redhat.com>
15598 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15600 2012-05-24 Pedro Alves <palves@redhat.com>
15604 Replace target_signal with gdb_signal throughout.
15606 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15608 * linux-low.c (linux_store_registers): Avoid the copying sequence
15609 when no data has been retrieved by ptrace.
15611 2012-05-22 Will Deacon <will.deacon@arm.com>
15613 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15614 Include asm/ptrace.h.
15615 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15618 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15620 * linux-low.c (linux_store_registers): Don't re-retrieve data
15621 with ptrace that has already been obtained from /proc. Always
15622 copy any data retrieved with ptrace to the buffer supplied.
15624 2012-05-11 Yao Qi <yao@codesourcery.com>
15625 Pedro Alves <palves@redhat.com>
15627 * linux-low.c (enum stopping_threads_kind): New.
15628 (stopping_threads): Change type to `enum stopping_threads_kind'.
15629 (handle_extended_wait): If stopping and suspending threads, leave
15630 the new_lwp suspended too.
15631 (linux_wait_for_event): Adjust.
15632 (stop_all_lwps): Set `stopping_threads' to
15633 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15634 whether we're suspending threads or just stopping them. Assert no
15637 2012-04-29 Yao Qi <yao@codesourcery.com>
15639 * server.h: Move some code to ...
15640 * gdbthread.h: ... here. New.
15641 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15642 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15643 (nto-low.o, win32-low.o): Likewise.
15644 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15645 * regcache.c, remote-utils.c, server.c: Likewise.
15646 * target.c, tracepoint.c, win32-low.c: Likewise.
15648 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15650 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15651 (PTRACE_ARG4_TYPE): Likewise.
15652 (PTRACE_XFER_TYPE): Likewise.
15653 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15654 ptrace to PTRACE_ARG3_TYPE.
15655 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15656 (PTRACE_ARG4_TYPE): Likewise.
15657 (PTRACE_XFER_TYPE): Likewise.
15658 (linux_detach_one_lwp): Cast fourth argument of
15659 ptrace to long then PTRACE_ARG4_TYPE.
15660 (regsets_fetch_inferior_registers): Cast third argument of
15661 ptrace to long then PTRACE_ARG3_TYPE.
15662 (regsets_store_inferior_registers): Likewise.
15664 2012-04-20 Pedro Alves <palves@redhat.com>
15666 * configure: Regenerate.
15668 2012-04-19 Pedro Alves <palves@redhat.com>
15670 * Makefile.in (GNULIB_BUILDDIR): New.
15671 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15672 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15673 (all, install-only, uninstall, clean-info, all-lib, clean): No
15674 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15675 (maintainer-clean realclean distclean): Use subdir_do.
15677 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15678 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15679 * acinclude.m4: Include acx_configure_dir.m4.
15680 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15681 calls. Call AC_PROG_RANLIB. Configure gnulib using
15684 (GNULIB_STDINT_H): Adjust.
15685 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15686 * gdbreplay.c: Include build-gnulib/config.h.
15687 * server.h: Likewise.
15688 * aclocal.m4: Regenerate.
15689 * config.in: Regenerate.
15690 * configure: Regenerate.
15692 2012-04-19 Pedro Alves <palves@redhat.com>
15694 * Makefile.in (LIBGNU, INCGNU): Adjust.
15695 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15696 (all, install-only, uninstall, clean-info, all-lib, clean)
15697 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15698 * configure.ac: Adjust AC_OUTPUT output.
15699 * aclocal.m4: Regenerate.
15700 * configure: Regenerate.
15702 2012-04-19 Pedro Alves <palves@redhat.com>
15704 * Makefile.in (generated_files): New.
15705 (server_h): Remove the explicit dependency on config.h, and depend
15706 on $generated_files.
15708 2012-04-19 Pedro Alves <palves@redhat.com>
15710 * Makefile.in (INCGNU): Add -Ignulib.
15712 2012-04-19 Pedro Alves <palves@redhat.com>
15714 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15715 (INCGNU): ... this, and spell out -I here.
15716 (GNULIB_LIB): Rename to ...
15717 (LIBGNU): ... this.
15718 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15720 2012-04-19 Pedro Alves <palves@redhat.com>
15722 * config.in: Regenerate.
15724 2012-04-19 Pedro Alves <palves@redhat.com>
15726 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15727 * server.h (memmem): Remove declaration.
15728 * config.in: Regenerate.
15729 * configure: Regenerate.
15731 2012-04-19 Yao Qi <yao@codesourcery.com>
15733 * Makefile.in (SFILES): Add common/vec.c.
15737 2012-04-19 Yao Qi <yao@codesourcery.com>
15739 * remote-utils.c (prepare_resume_reply): Replace with macro
15740 target_core_of_thread.
15741 * server.c (handle_qxfer_threads_proper): Likewise.
15742 * target.h (traget_core_of_thread): New macro.
15744 2012-04-18 Pedro Alves <palves@redhat.com>
15746 * aclocal.m4: Regenerate.
15747 * configure: Regenerate.
15749 2012-04-16 Yao Qi <yao@codesourcery.com>
15751 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15752 duplicated on address.
15754 2012-04-16 Yao Qi <yao@codesourcery.com>
15756 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15757 (struct tracepoint_action_ops) <send>: New field.
15758 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15759 (agent_expr_send, x_tracepoint_action_send): New.
15760 (l_tracepoint_action_send): New.
15761 (cmd_qtdp): Download and install tracepoint
15762 according to `use_agent'.
15763 (run_inferior_command): Add one more parameter `len'.
15765 (tracepoint_send_agent): New.
15766 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15768 2012-04-16 Yao Qi <yao@codesourcery.com>
15770 * tracepoint.c (download_tracepoints): Moved to ...
15771 (cmd_qtstart): ... here.
15773 2012-04-14 Yao Qi <yao@codesourcery.com>
15775 * tracepoint.c: Include inttypes.h.
15776 (struct collect_memory_action): Use sized types.
15777 (struct tracepoint): Likewise.
15778 (cmd_qtdp, stop_tracing): Update print specifiers.
15779 (cmd_qtp, response_tracepoint): Likewise.
15780 (collect_data_at_tracepoint): Likewise.
15781 (collect_data_at_step): Likewise.
15783 2012-04-14 Yao Qi <yao@codesourcery.com>
15785 Import gnulib module inttypes.
15786 * aclocal.m4, config.in, configure: Regenerated.
15788 2012-04-14 Yao Qi <yao@codesourcery.com>
15790 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15791 Makefile and config.status at last.
15793 2012-04-13 Yao Qi <yao@codesourcery.com>
15795 * tracepoint.c: Include stdint.h unconditionally.
15797 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15799 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15800 on BFD_HAVE_SYS_PROCFS_TYPE.
15801 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15802 * configure: Regenerate.
15803 * config.in: Likewise.
15805 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15807 * Makefile.in (clean): Also remove x32.c x32-linux.c
15808 x32-avx.c x32-avx-linux.c.
15809 (x32.o): New target.
15811 (x32-linux.o): Likewise.
15812 (x32-linux.c): Likewise.
15813 (x32-avx.o): Likewise.
15814 (x32-avx.c): Likewise.
15815 (x32-avx-linux.o): Likewise.
15816 (x32-avx-linux.c): Likewise.
15818 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15819 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15820 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15821 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15822 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15823 i386/x32-avx-linux.xml.
15825 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15826 (init_registers_x32_avx_linux): Likwise.
15827 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15828 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15830 2012-04-13 Pedro Alves <palves@redhat.com>
15832 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15833 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15834 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15835 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15838 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15840 * linux-x86-low.c (compat_x32_clock_t): New.
15841 (compat_x32_siginfo_t): Likewise.
15842 (compat_x32_siginfo_from_siginfo): Likewise.
15843 (siginfo_from_compat_x32_siginfo): Likewise.
15844 (linux_is_elf64): Likewise.
15845 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15846 and siginfo_from_compat_x32_siginfo for x32.
15847 (x86_arch_setup): Set linux_is_elf64.
15849 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15852 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15854 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15855 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15856 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15857 compatible with process.
15859 2012-04-12 Yao Qi <yao@codesourcery.com>
15861 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15862 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15863 (install-only, install-info, clean): Handle sub dir gnulib.
15864 (all-lib, am--refresh): New targets.
15865 (memmem.o): Remove target.
15866 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15867 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15868 (AC_REPLACE_FUNCS): Remove memmem.
15869 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15870 (AC_OUTPUT): Generate Makefile in gnulib/.
15871 * aclocal.m4, config.in, configure: Regenerated.
15873 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15875 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15877 2012-04-05 Pedro Alves <palves@redhat.com>
15879 -Werror=strict-aliasing
15881 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15884 2012-04-04 Pedro Alves <palves@redhat.com>
15886 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15887 (sparc_store_gregset_from_stack, sparc_store_gregset)
15888 (sparc_breakpoint_at): Fix formatting.
15890 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15892 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15894 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15895 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15896 * config.in: Regenerate.
15897 * configure: Likewise.
15899 2012-03-29 Pedro Alves <palves@redhat.com>
15901 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15902 Correct ptrace arguments.
15904 2012-03-28 Pedro Alves <palves@redhat.com>
15906 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15907 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15908 (IA64_FR1_REGNUM): New defines.
15909 (ia64_fetch_register): New.
15910 (the_low_target): Install it.
15911 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15913 * linux-low.c (linux_fetch_registers): Try the
15914 the_low_target.fetch_register hook first.
15916 * linux-arm-low.c (the_low_target): Adjust.
15917 * linux-bfin-low.c (the_low_target): Adjust.
15918 * linux-cris-low.c (the_low_target): Adjust.
15919 * linux-crisv32-low.c (the_low_target): Adjust.
15920 * linux-m32r-low.c (the_low_target): Adjust.
15921 * linux-m68k-low.c (the_low_target): Adjust.
15922 * linux-mips-low.c (the_low_target): Adjust.
15923 * linux-ppc-low.c (the_low_target): Adjust.
15924 * linux-s390-low.c (the_low_target): Adjust.
15925 * linux-sh-low.c (the_low_target): Adjust.
15926 * linux-sparc-low.c (the_low_target): Adjust.
15927 * linux-tic6x-low.c (the_low_target): Adjust.
15928 * linux-x86-low.c (the_low_target): Adjust.
15929 * linux-xtensa-low.c (the_low_target): Adjust.
15931 2012-03-26 Pedro Alves <palves@redhat.com>
15933 * server.c (handle_qxfer_libraries): Don't bail early if
15934 the_target->qxfer_libraries_svr4 is not NULL.
15936 2012-03-26 Pedro Alves <palves@redhat.com>
15938 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15940 2012-03-23 Pedro Alves <palves@redhat.com>
15942 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15943 "library-list-svr4" element's start tag when the the DSO list is
15946 2012-03-23 Pedro Alves <palves@redhat.com>
15948 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15949 a variable whose type size is the same as the inferior's pointer
15952 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15954 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15956 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15957 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15958 * linux-low.h: Include <signal.h>.
15959 (struct siginfo): Remove forward declaration.
15960 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15963 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15965 * .gitignore: Ignore more files.
15967 2012-03-19 Pedro Alves <palves@redhat.com>
15968 Jan Kratochvil <jan.kratochvil@redhat.com>
15970 * server.c (cont_thread, general_thread): Add describing comments.
15971 (start_inferior): Clear `cont_thread'.
15972 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15975 2012-03-15 Yao Qi <yao@codesourcery.com>
15977 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15979 (cmd_qtdp): ... here.
15981 2012-03-15 Yao Qi <yao@codesourcery.com>
15983 * tracepoint.c (struct tracepoint_action_ops): New.
15984 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15985 (m_tracepoint_action_download): New.
15986 (r_tracepoint_action_download): New.
15987 (x_tracepoint_action_download): New.
15988 (l_tracepoint_action_download): New.
15989 (add_tracepoint_action): Install `action->ops' according type.
15990 (download_tracepoint_1): Move code `download' function pointer
15991 of various tracepoint_action_ops.
15993 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15995 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15996 linux_ptrace_attach_warnings.
15998 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16000 * Makefile.in (linux-ptrace.o): New.
16001 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16002 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16003 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16004 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16005 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16007 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16009 2012-03-08 Yao Qi <yao@codesourcery.com>
16010 Pedro Alves <palves@redhat.com>
16012 Fix PR server/13392.
16013 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16014 offset of JMP insn.
16015 * tracepoint.c (remove_tracepoint): New.
16016 (cmd_qtdp): Call remove_tracepoint when failed to install.
16018 2012-03-07 Pedro Alves <palves@redhat.com>
16020 * linux-low.c (get_detach_signal): New.
16021 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16022 Pass on pending signals to PTRACE_DETACH. Check the result of the
16024 * server.c (program_signals, program_signals_p): New.
16025 (handle_general_set): Handle QProgramSignals.
16026 * server.h (program_signals, program_signals_p): Declare.
16028 2012-03-05 Pedro Alves <palves@redhat.com>
16029 Jan Kratochvil <jan.kratochvil@redhat.com>
16031 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16034 2012-03-03 Yao Qi <yao@codesourcery.com>
16036 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16037 agent_look_up_symbols.
16039 2012-03-03 Yao Qi <yao@codesourcery.com>
16041 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16042 (linux-x86-low.o): Likewise.
16043 * server.h: Remove in_process_agent_loaded.
16044 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16048 2012-03-03 Yao Qi <yao@codesourcery.com>
16050 * tracepoint.c (gdb_agent_capability): New global.
16051 (in_process_agent_loaded_ust): Renamed to
16052 `in_process_agent_supports_ust'.
16054 (in_process_agent_supports_ust): Call agent_capability_check.
16055 (clear_installed_tracepoints): Assert that agent supports
16058 2012-03-03 Yao Qi <yao@codesourcery.com>
16060 * linux-low.c (linux_supports_agent): New.
16061 (linux_target_ops): Initialize field `supports_agent' with
16062 linux_supports_agent.
16063 * target.h (struct target_ops) <supports_agent>: New.
16064 (target_supports_agent): New macro.
16065 * server.c (handle_general_set): Handle packet 'QAgent'.
16066 (handle_query): Send `QAgent+'.
16067 * Makefile.in (server.o): Depends on agent.h.
16069 2012-03-03 Yao Qi <yao@codesourcery.com>
16071 * Makefile.in (OBS): Add agent.o.
16072 Add new rule for agent.o.
16073 Track dependence of tracepoint.c on agent.h.
16074 * tracepoint.c (run_inferior_command_1):
16075 (run_inferior_command): Call agent_run_command.
16076 (gdb_ust_connect_sync_socket): Deleted. Move it to
16078 (resume_thread, stop_thread): Likewise.
16079 (gdb_ust_socket_init): Renamed to ...
16080 (gdb_agent_socket_init): ... New.
16081 (gdb_ust_thread): Renamed to ...
16082 (gdb_agent_helper_thread): ... New.
16083 (gdb_ust_init): Move some code to ...
16084 (gdb_agent_init): ... here. New.
16085 [HAVE_UST]: Call gdb_ust_init.
16086 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16087 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16088 * config.in, configure: Regenerated.
16090 2012-03-02 Pedro Alves <palves@redhat.com>
16092 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16093 * linux-low.c (struct simple_pid_list): New.
16094 (stopped_pids): New a struct simple_pid_list pointer.
16095 (add_to_pid_list, pull_pid_from_list): New.
16096 (handle_extended_wait): Don't assume the first signal new children
16097 report is SIGSTOP. Adjust call to pull_pid_from_list.
16098 (linux_wait_for_lwp): Adjust.
16100 2012-03-02 Yao Qi <yao@codesourcery.com>
16102 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16105 2012-03-02 Yao Qi <yao@codesourcery.com>
16107 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16108 `stop_pc' and `tpoint'. Update caller.
16110 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16112 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16113 * linux-low.c (use_linux_regsets): New macro.
16114 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16115 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16116 (linux_register_in_regsets): New function.
16117 (usr_fetch_inferior_registers): Skip registers covered by
16119 (usr_store_inferior_registers): Likewise.
16120 (usr_fetch_inferior_registers): New macro.
16121 (usr_store_inferior_registers): Likewise.
16122 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16123 (linux_store_registers): Likewise.
16124 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16126 (init_registers_mips64_dsp_linux): Likewise.
16127 (init_registers_mips_linux): New macro.
16128 (init_registers_mips_dsp_linux): Likewise.
16129 (mips_dsp_num_regs): Likewise.
16130 (DSP_BASE, DSP_CONTROL): New fallback macros.
16131 (mips_base_regs): New macro.
16132 (mips_regmap): Use it. Fix the size.
16133 (mips_dsp_regmap): New variable.
16134 (mips_dsp_regset_bitmap): Likewise.
16135 (mips_arch_setup): New function.
16136 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16138 (mips_cannot_store_register): Likewise.
16139 (the_low_target): Update .arch_setup, .num_regs and .regmap
16140 initializers. Add .regset_bitmap initializer.
16141 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16143 * linux-bfin-low.c (the_low_target): Likewise.
16144 * linux-cris-low.c (the_low_target): Likewise.
16145 * linux-crisv32-low.c (the_low_target): Likewise.
16146 * linux-ia64-low.c (the_low_target): Likewise.
16147 * linux-m32r-low.c (the_low_target): Likewise.
16148 * linux-m68k-low.c (the_low_target): Likewise.
16149 * linux-ppc-low.c (the_low_target): Likewise.
16150 * linux-s390-low.c (the_low_target): Likewise.
16151 * linux-sh-low.c (the_low_target): Likewise.
16152 * linux-sparc-low.c (the_low_target): Likewise.
16153 * linux-tic6x-low.c (the_low_target): Likewise.
16154 * linux-x86-low.c (the_low_target): Likewise.
16155 * linux-xtensa-low.c (the_low_target): Likewise.
16156 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16157 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16158 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16160 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16161 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16163 2012-02-29 Yao Qi <yao@codesourcery.com>
16164 Pedro Alves <palves@redhat.com>
16166 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16167 `step_over_finished' is true.
16169 2012-02-27 Pedro Alves <palves@redhat.com>
16171 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16172 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16174 2012-02-27 Pedro Alves <palves@redhat.com>
16177 * linux-low.c (pid_is_stopped): New.
16178 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16180 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16182 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16185 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16187 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16189 2012-02-24 Luis Machado <lgustavo@codesourcery>
16191 * server.c (handle_query): Advertise support for target-side
16192 breakpoint condition evaluation.
16193 (process_point_options): New function.
16194 (process_serial_event): When inserting a breakpoint, check for
16195 a target-side condition that should be evaluated.
16197 * mem-break.c: Include regcache.h and ax.h.
16198 (point_cond_list_t): New data structure.
16199 (breakpoint) <cond_list>: New field.
16200 (find_gdb_breakpoint_at): Make non-static.
16201 (delete_gdb_breakpoint_at): Clear any target-side
16203 (clear_gdb_breakpoint_conditions): New function.
16204 (add_condition_to_breakpoint): Likewise.
16205 (add_breakpoint_condition): Likewise.
16206 (gdb_condition_true_at_breakpoint): Likewise.
16207 (gdb_breakpoint_here): Return result directly instead
16208 of going through a local variable.
16210 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16211 (clear_gdb_breakpoint_conditions): Likewise.
16212 (add_breakpoint_condition): Likewise.
16213 (gdb_condition_true_at_breakpoint): Likewise.
16215 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16216 (need_step_over_p): Take target-side breakpoint condition into
16219 2012-02-24 Luis Machado <lgustavo@codesourcery>
16221 * server.h: Include tracepoint.h.
16222 (agent_mem_read, agent_get_trace_state_variable_value,
16223 agent_set_trace_state_variable_value,
16224 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16225 get_set_tsv_func_addr): New prototypes.
16227 * ax.h: New include file.
16228 * ax.c: New source file.
16230 * tracepoint.c: Include ax.h.
16231 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16232 agent_expr, eval_result_type): Move to ax.h.
16233 (parse_agent_expr): Rename to ...
16234 (gdb_parse_agent_expr): ... this, make it non-static and move
16236 (unparse_agent_expr) Rename to ...
16237 (gdb_unparse_agent_expr): ... this, make it non-static and move
16239 (eval_agent_expr): Rename to ...
16240 (eval_tracepoint_agent_expr): ... this.
16241 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16242 forward declarations.
16243 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16244 (agent_get_trace_state_variable_value): New function.
16245 (agent_set_trace_state_variable_value): New function.
16246 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16247 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16248 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16249 (condition_true_at_tracepoint): Likewise.
16250 (parse_agent_expr): Rename to ...
16251 (gdb_parse_agent_expr): ... this and move to ax.c.
16252 (unparse_agent_expr): Rename to ...
16253 (gdb_unparse_agent_expr): ... this and move to ax.c.
16254 (gdb_agent_op_name): Move to ax.c.
16255 (eval_agent_expr): Rename to ...
16256 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16258 (eval_tracepoint_agent_expr): New function.
16259 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16261 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16263 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16264 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16265 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16266 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16267 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16268 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16269 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16270 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16271 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16272 (compile_bytecodes): Remove forward declaration.
16273 (is_goto_target): Move to ax.c.
16274 (compile_bytecodes): Move to ax.c and call
16275 agent_get_trace_state_variable_value (...) and
16276 agent_set_trace_state_variable_value (...).
16278 * Makefile.in: Update ax.c and IPA dependencies.
16280 2012-02-24 Pedro Alves <palves@redhat.com>
16282 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16283 (cmd_bigqtbuffer_circular): ... this. Only handle
16284 'QTBuffer:circular:'.
16285 (handle_tracepoint_general_set): Adjust.
16287 2012-02-16 Yao Qi <yao@codesourcery.com>
16289 * inferiors.c: Move code to ...
16290 * dll.c: .... here. New.
16291 * server.h: Declare clear_dlls.
16292 * Makefile.in (SFILES): Add dll.c.
16296 2012-02-11 Yao Qi <yao@codesourcery.com>
16298 * server.c: (handle_monitor_command): Add a new parameter
16300 (handle_query): Update caller.
16302 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16304 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16305 * configure, config.in: Regenerate.
16306 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16309 2012-02-02 Pedro Alves <palves@redhat.com>
16311 Try SIGKILL first, then PTRACE_KILL.
16312 * linux-low.c (linux_kill_one_lwp): New.
16313 (linux_kill_one_lwp): Rename to ...
16314 (kill_one_lwp_callback): ... this. Use the new
16315 linux_kill_one_lwp.
16317 2012-02-02 Pedro Alves <palves@redhat.com>
16319 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16322 2012-01-27 Pedro Alves <palves@redhat.com>
16324 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16325 (elf_64_file_p): Make static.
16326 (linux_pid_exe_is_elf_64_file): New.
16327 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16328 Delete declarations.
16329 (linux_pid_exe_is_elf_64_file): Declare.
16330 * linux-x86-low.c (x86_arch_setup): Use
16331 linux_pid_exe_is_elf_64_file.
16333 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16335 * linux-low.c (linux_wait_for_event_1): Rename to ...
16336 (linux_wait_for_event): ... here and merge it with former
16337 linux_wait_for_event - new variable wait_ptid, use it.
16338 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16340 2012-01-23 Pedro Alves <palves@redhat.com>
16342 * server.c (main): Avoid yet another case of infinite loop while
16343 detaching/killing after a longjmp.
16345 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16348 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16350 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16352 * hostio.c (handle_readlink): New function.
16353 (handle_vFile): Call it to handle "vFile:readlink" packets.
16355 2012-01-20 Pedro Alves <palves@redhat.com>
16356 Ulrich Weigand <ulrich.weigand@linaro.org>
16358 * server.c (handle_v_requests): Only support vAttach and vRun to
16359 start multiple processes when in extended protocol mode.
16361 2012-01-17 Pedro Alves <palves@redhat.com>
16363 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16364 memalign plus mprotect to allocate the scratch buffer.
16366 2012-01-13 Pedro Alves <palves@redhat.com>
16368 * server.c (attach_inferior): Clear `cont_thread'.
16370 2012-01-13 Pedro Alves <palves@redhat.com>
16372 * server.c (main): Avoid infinite loop while detaching/killing
16375 2012-01-09 Doug Evans <dje@google.com>
16377 * server.c (start_inferior): Set last_ptid in --wrapper case.
16379 2012-01-06 Yao Qi <yao@codesourcery.com>
16381 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16383 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16385 2012-01-04 Yao Qi <yao@codesourcery.com>
16387 * tracepoint.c (cmd_qtdp): Print debug message
16388 for static tracepoint.
16390 2012-01-04 Yao Qi <yao@codesourcery.com>
16392 * tracepoint.c (trace_vdebug): Differentiate debug message
16393 between gdbserver and IPA.
16395 2012-01-03 Yao Qi <yao@codesourcery.com>
16397 * tracepoint.c (tracepoint_was_hit): Don't collect for
16400 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16402 * terminal.h: Reformat copyright header.
16404 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16406 * server.c (gdbserver_version): Update copyright year.
16407 * gdbreplay.c (gdbreplay_version): Likewise.
16409 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16411 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16414 2011-12-18 Hui Zhu <teawater@gmail.com>
16415 * linux-low.c (linux_create_inferior): Save return value to ret.
16417 2011-12-18 Hui Zhu <teawater@gmail.com>
16419 * linux-low.c (linux_create_inferior): Save return value to ret.
16421 2011-12-16 Doug Evans <dje@google.com>
16423 * linux-low.c (linux_create_inferior): If stdio connection,
16424 redirect stdin from /dev/null, stdout to stderr.
16425 * remote-utils.c (remote_is_stdio): New static global.
16426 (remote_connection_is_stdio): New function.
16427 (remote_prepare): Handle stdio connection.
16428 (remote_open): Ditto.
16429 (remote_close): Don't close stdin for stdio connections.
16430 (read_prim,write_prim): New functions. Replace all calls to
16431 read/write to these.
16432 * server.c (main): Watch for "-" argument. Move call to
16433 remote_prepare before start_inferior.
16434 * server.h (STDIO_CONNECTION_NAME): New macro.
16435 (remote_connection_is_stdio): Declare.
16437 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16438 in debugging output.
16440 2011-12-15 Yao Qi <yao@codesourcery.com>
16442 * tracepoint.c: Include sys/syscall.h.
16443 (gdb_ust_thread): Remove preprocessor conditional.
16445 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16447 * linux-low.c (linux_detach_one_lwp): Call
16448 the_low_target.prepare_to_resume before detaching.
16450 2011-12-14 Yao Qi <yao@codesourcery.com>
16452 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16455 2011-12-14 Yao Qi <yao@codesourcery.com>
16457 * i386-low.c (i386_low_stopped_data_address): Initialize local
16458 variable `control'.
16460 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16464 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16465 DR_CONTROL unless necessary. Extend comments.
16466 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16467 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16469 2011-12-13 Yao Qi <yao@codesourcery.com>
16471 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16473 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16475 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16477 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16478 Print new debug message for such case.
16480 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16482 Fix overlapping memcpy.
16483 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16484 the read_inferior_memory transfer.
16485 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16486 write_inferior_memory transfer.
16487 (set_fast_tracepoint_jump): New variable buf. Use it for the
16488 read_inferior_memory and write_inferior_memory transfers.
16489 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16490 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16491 Use it for the write_inferior_memory transfer.
16492 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16495 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16497 * linux-low.c (fetch_register, store_register): Make code
16498 consistent, fix formatting.
16500 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16502 * linux-low.c (usr_store_inferior_registers): Factor out code
16503 to handle individual registers into...
16504 (store_register): ... this new function.
16506 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16508 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16509 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16510 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16511 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16512 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16513 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16514 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16515 (srv_xmlfiles): Add new XML files.
16517 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16519 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16520 (init_registers_s390_linux32v1): Add prototype.
16521 (init_registers_s390_linux32v2): Likewise.
16522 (init_registers_s390_linux64v1): Likewise.
16523 (init_registers_s390_linux64v2): Likewise.
16524 (init_registers_s390x_linux64v1): Likewise.
16525 (init_registers_s390x_linux64v2): Likewise.
16526 (s390_num_regs): Increment to 52.
16527 (s390_regmap): Add orig_r2 register.
16528 (s390_num_regs_3264): Increment to 68.
16529 (s390_regmap_3264): Add orig_r2 register.
16530 (s390_collect_ptrace_register): Handle orig_r2 register.
16531 (s390_supply_ptrace_register): Likewise.
16532 (s390_fill_last_break): New function.
16533 (s390_store_last_break): Likewise.
16534 (s390_fill_system_call): New function.
16535 (s390_store_system_call): Likewise.
16536 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16538 (s390_check_regset): New function.
16539 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16540 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16541 Update target_regsets for available register sets.
16543 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16544 Jan Kratochvil <jan.kratochvil@redhat.com>
16546 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16547 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16549 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16550 * linux-low.h (struct process_info_private): New member r_debug.
16551 * server.c (handle_qxfer_libraries): Call
16552 the_target->qxfer_libraries_svr4.
16553 (handle_qxfer_libraries_svr4): New function.
16554 (qxfer_packets): New entry "libraries-svr4".
16555 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16556 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16557 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16558 PACKET_qXfer_libraries_svr4.
16560 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16562 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16563 PSW address/mask between 8-byte and 16-byte formats.
16564 (s390_supply_ptrace_register): Likewise.
16565 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16566 basic addressing mode bit.
16568 2011-11-24 Stan Shebs <stan@codesourcery.com>
16570 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16572 2011-11-17 Stan Shebs <stan@codesourcery.com>
16574 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16575 (tracing_start_time): New global.
16576 (tracing_stop_time): New global.
16577 (tracing_user_name): New global.
16578 (tracing_notes): New global.
16579 (tracing_stop_note): New global.
16580 (cmd_qtstart): Set traceframe_usage, start_time.
16581 (stop_tracing): Set stop_time.
16582 (cmd_qtstatus): Report additional status.
16583 (cmd_qtp): New function.
16584 (handle_tracepoint_query): Call it.
16585 (cmd_qtnotes): New function.
16586 (handle_tracepoint_general_set): Call it.
16587 (get_timestamp): Rename from tsv_get_timestamp.
16589 2011-11-14 Stan Shebs <stan@codesourcery.com>
16590 Kwok Cheung Yeung <kcy@codesourcery.com>
16592 * linux-x86-low.c (small_jump_insn): New.
16593 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16594 trampoline and error message, build a trampoline and issue a small
16595 jump instruction to it.
16596 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16597 trampoline and error message.
16598 (x86_get_min_fast_tracepoint_insn_len): New.
16599 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16600 * linux-low.h (struct linux_target_ops): Add arguments to
16601 install_fast_tracepoint_jump_pad operation, add new operation.
16602 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16604 (linux_get_min_fast_tracepoint_insn_len): New function.
16605 (linux_target_op): Add new operation.
16606 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16607 (gdb_trampoline_buffer_end): Ditto.
16608 (gdb_trampoline_buffer_error): Ditto.
16609 (struct ipa_sym_addresses): Add fields for new IPA variables.
16610 (symbol_list): Add entries for new IPA variables.
16611 (struct tracepoint): Add fields to hold the address range of the
16612 trampoline used by the tracepoint.
16613 (trampoline_buffer_head): New static variable.
16614 (trampoline_buffer_tail): Ditto.
16615 (claim_trampoline_space): New function.
16616 (have_fast_tracepoint_trampoline_buffer): New function.
16617 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16619 (install_fast_tracepoint): Ditto, also add error buffer argument.
16620 (cmd_qtminftpilen): New function.
16621 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16622 (fast_tracepoint_from_trampoline_address): New function.
16623 (fast_tracepoint_collecting): Handle trampoline as part of jump
16625 (set_trampoline_buffer_space): New function.
16626 (initialize_tracepoint): Initialize new IPA variables.
16627 * target.h (struct target_ops): Add arguments to
16628 install_fast_tracepoint_jump_pad operation, add new
16629 get_min_fast_tracepoint_insn_len operation.
16630 (target_get_min_fast_tracepoint_insn_len): New.
16631 (install_fast_tracepoint_jump_pad): Add arguments.
16632 * server.h (IPA_BUFSIZ): Define.
16633 * linux-i386-ipa.c: Include extra header files.
16634 (initialize_fast_tracepoint_trampoline_buffer): New function.
16635 (initialize_low_tracepoint): Call it.
16636 * server.h (set_trampoline_buffer_space): Declare.
16637 (claim_trampoline_space): Ditto.
16638 (have_fast_tracepoint_trampoline_buffer): Ditto.
16640 2011-11-14 Yao Qi <yao@codesourcery.com>
16642 * server.c (handle_query): Handle InstallInTrace for qSupported.
16643 * tracepoint.c (add_tracepoint): Sort list.
16644 (install_tracepoint, download_tracepoint): New.
16645 (cmd_qtdp): Call them to install and download tracepoints.
16646 (sort_tracepoints): Removed.
16647 (cmd_qtstart): Update.
16649 2011-11-14 Yao Qi <yao@codesourcery.com>
16651 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16652 * mem-break.h: Declare.
16653 * tracepoint.c (cmd_qtstart): Move some code to ...
16654 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16656 (download_tracepoints): Move some code to ...
16657 (download_tracepoint_1): ... here. New.
16659 2011-11-08 Yao Qi <yao@codesourcery.com>
16661 * remote-utils.c (relocate_instruction): A comment fix.
16663 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16665 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16666 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16667 dr_status_mirror and dr_control_mirror from debug_reg_state.
16668 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16669 (i386_initial_stuff): Remove use of deleted globals.
16670 (i386_get_thread_context, i386_set_thread_context,
16671 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16672 from debug_reg_state.
16674 2011-11-05 Yao Qi <yao@codesourcery.com>
16676 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16677 address as TPOINT's.
16679 2011-11-02 Stan Shebs <stan@codesourcery.com>
16681 * tracepoint.c (agent_mem_read_string): New function.
16682 (eval_agent_expr): Call it for tracenz.
16683 * server.c (handle_query): Report support for tracenz.
16685 2011-11-02 Yao Qi <yao@codesourcery.com>
16687 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16689 2011-11-02 Yao Qi <yao@codesourcery.com>
16691 * target.h: Fix a typo in comment.
16693 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16695 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16696 clobber the breakpoints' shadows with fast tracepoint jumps.
16697 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16698 * target.c (write_inferior_memory): Also pass MYADDR down to
16701 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16703 * configure.ac: Check support for personality routine.
16704 * configure: Regenerate.
16705 * config.in: Likewise.
16706 * linux-low.c: Include <sys/personality.h>.
16707 Define ADDR_NO_RANDOMIZE if necessary.
16708 (linux_create_inferior): Disable address space randomization when
16709 forking inferior, if requested.
16710 (linux_supports_disable_randomization): New function.
16711 (linux_target_ops): Install it.
16712 * server.h (disable_randomization): Declare.
16713 * server.c (disable_randomization): New global variable.
16714 (handle_general_set): Handle QDisableRandomization.
16715 (handle_query): Likewise for qSupported.
16716 (main): Support --disable-randomization and --no-disable-randomization
16717 command line arguments.
16718 * target.h (struct target_ops): Add supports_disable_randomization.
16719 (target_supports_disable_randomization): New macro.
16721 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16723 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16725 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16726 [!PT_GETDSBT] (target_loadmap): New definition.
16727 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16728 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16729 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16730 and PT_GETDSBT to LINUX_LOADMAP.
16731 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16732 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16734 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16736 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16737 (arm_linux_hwbp_cap): New static variable.
16738 (arm_linux_get_hwbp_cap): Replace by ...
16739 (arm_linux_init_hwbp_cap): ... this new function.
16740 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16741 (arm_linux_get_hw_watchpoint_count): Likewise.
16742 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16743 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16744 (arm_prepare_to_resume): Use perror_with_name instead of error.
16746 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16748 * linux-arm-low.c: Include <signal.h>.
16749 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16750 (struct arm_linux_hwbp_cap): New data type.
16751 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16752 (struct arm_linux_hw_breakpoint): New data type.
16753 (MAX_BPTS, MAX_WPTS): Define.
16754 (struct arch_process_info, struct arch_lwp_info): New data types.
16755 (arm_linux_get_hwbp_cap): New function.
16756 (arm_linux_get_hw_breakpoint_count): Likewise.
16757 (arm_linux_get_hw_watchpoint_count): Likewise.
16758 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16759 (arm_hwbp_control_initialize): Likewise.
16760 (arm_hwbp_control_is_enabled): Likewise.
16761 (arm_hwbp_control_is_initialized): Likewise.
16762 (arm_hwbp_control_disable): Likewise.
16763 (arm_linux_hw_breakpoint_equal): Likewise.
16764 (arm_linux_hw_point_initialize): Likewise.
16765 (struct update_registers_data): New data structure.
16766 (update_registers_callback: New function.
16767 (arm_insert_point): Likewise.
16768 (arm_remove_point): Likewise.
16769 (arm_stopped_by_watchpoint): Likewise.
16770 (arm_stopped_data_address): Likewise.
16771 (arm_new_process): Likewise.
16772 (arm_new_thread): Likewise.
16773 (arm_prepare_to_resume): Likewise.
16774 (the_low_target): Register arm_insert_point, arm_remove_point,
16775 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16776 arm_new_thread, and arm_prepare_to_resume.
16778 2011-09-15 Stan Shebs <stan@codesourcery.com>
16780 * server.h (struct emit_ops): Add compare-goto fields.
16781 * tracepoint.c (gdb_agent_op_sizes): New table.
16782 (emit_eq_goto): New function.
16783 (emit_ne_goto): New function.
16784 (emit_lt_goto): New function.
16785 (emit_le_goto): New function.
16786 (emit_gt_goto): New function.
16787 (emit_ge_goto): New function.
16788 (is_goto_target): New function.
16789 (compile_bytecodes): Recognize special cases of compare-goto
16790 combinations and call specialized emitters for them.
16791 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16792 (amd64_emit_ne_goto): New function.
16793 (amd64_emit_lt_goto): New function.
16794 (amd64_emit_le_goto): New function.
16795 (amd64_emit_gt_goto): New function.
16796 (amd64_emit_ge_goto): New function.
16797 (amd64_emit_ops): Add the new functions.
16798 (i386_emit_eq_goto): New function.
16799 (i386_emit_ne_goto): New function.
16800 (i386_emit_lt_goto): New function.
16801 (i386_emit_le_goto): New function.
16802 (i386_emit_gt_goto): New function.
16803 (i386_emit_ge_goto): New function.
16804 (i386_emit_ops): Add the new functions.
16806 2011-09-08 Stan Shebs <stan@codesourcery.com>
16808 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16809 (i386_emit_epilogue): Restore %ebx.
16811 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16813 * server.c (step_thread): Remove definition.
16814 (process_serial_event): Don't handle Hs.
16815 * server.h (step_thread): Remove declaration.
16816 * target.c (set_desired_inferior): Remove use of step_thread.
16818 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16820 * linux-low.c: Include linux-procfs.h.
16821 (linux_attach_lwp_1): Update comments.
16822 (linux_attach): Scan for existing threads when attaching to a
16823 process that is the tgid.
16824 * Makefile.in: Update dependencies.
16826 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16828 * configure.srv: Add linux-procfs.o dependencies.
16830 2011-08-14 Yao Qi <yao@codesourcery.com>
16832 * target.h (struct target_ops): Fix indent.
16833 * win32-low.c (win32_target_ops): Fix comment.
16835 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16836 Yao Qi <yao@codesourcery.com>
16838 * Makefile.in (clean): Remove tic6x-*.c files.
16839 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16840 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16841 (tic6x-c64xp-linux.c): Likewise.
16842 * configure.srv: Add support for tic6x-*-uclinux.
16843 * linux-tic6x-low.c: New.
16844 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16846 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16847 Yao Qi <yao@codesourcery.com>
16849 * target.h (struct target_ops): Add read_loadmap.
16850 * linux-low.c (struct target_loadseg): New type.
16851 (struct target_loadmap): New type.
16852 (linux_read_loadmap): New function.
16853 (linux_target_ops): Add linux_read_loadmap.
16854 * server.c (handle_query): Support qXfer:fdpic:read packet.
16855 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16858 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16860 * win32-low.c: Include <stdint.h>.
16862 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16864 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16865 to the inferior here.
16866 (i386_remove_aligned_watchpoint): Ditto.
16867 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16868 fit part of the watchpoint in the debug registers.
16869 (i386_update_inferior_debug_regs): New.
16870 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16871 registers, and only update the inferior on success.
16872 (i386_low_remove_watchpoint): Ditto.
16874 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16876 * linux-low.c (compare_ints, unique, list_threads, show_process,
16877 linux_core_of_thread): Delete.
16878 (linux_target_ops): Change linux_core_of_thread to
16879 linux_common_core_of_thread.
16880 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16881 * utils.c (malloc_failure): Change type of argument.
16882 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16883 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16884 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16885 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16886 (IPA_OBJS): Add common-utils-ipa.o.
16887 (ptid_h, linux_osdata_h): New macros.
16888 (server_h): Add common/common-utils.h, common/xml-utils.h,
16889 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16891 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16892 ptid.o, buffer.o): New rules.
16893 (linux-low.o): Add common/linux-osdata.h as a dependency.
16894 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16895 * configure.ac: Add AC_HEADER_DIRENT check.
16896 * config.in: Regenerate.
16897 * configure: Regenerate.
16898 * remote-utils.c (xml_escape_text): Delete.
16899 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16900 buffer_xml_printf): Move to common/buffer.c.
16901 * server.c (main): Remove call to initialize_inferiors.
16902 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16903 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16904 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16905 internal_error, gdb_assert, gdb_assert_fail): Delete.
16906 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16907 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16909 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16910 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16911 initialize_inferiors): Delete.
16913 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16915 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16918 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16920 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16922 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16924 2011-05-26 Yao Qi <yao@codesourcery.com>
16926 * Makefile.in (thread-db.o): Track dependence to
16927 common/gdb_thread_db.h.
16928 * thread-db.c: include gdb_thread_db.h from right place.
16930 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16932 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16933 __FILE__ and __LINE__ to internal_error.
16935 2011-05-13 Doug Evans <dje@google.com>
16937 * thread-db.c (try_thread_db_load_from_sdir): New function.
16938 (try_thread_db_load_from_dir): New function.
16939 (thread_db_load_search): Handle $sdir, ignore $pdir.
16940 Remove trying of system directories if search of
16941 libthread-db-search-path fails, that is now done via $sdir.
16943 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16945 * server.c (handle_query): Add EnableDisableTracepoints to the list
16946 of supported features.
16947 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16949 (cmd_qtenable_disable): New.
16950 (cmd_qtstart): Install tracepoints even if disabled.
16951 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16952 receiving a QTEnable or QTDisable packet.
16953 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16954 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16956 (gdb_probe): Skip data collection if static tracepoint is disabled.
16958 2011-05-10 Doug Evans <dje@google.com>
16960 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16962 2011-05-04 Doug Evans <dje@google.com>
16964 * linux-low.c (linux_join): Skip process lookup.
16965 * spu-low.c (spu_join): Ditto.
16966 * server.c (join_inferiors_callback): Delete.
16967 (process_serial_event): For 'D' packet (detach) call join_inferior
16970 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16972 * README: Don't mention xscale*-*-linux*.
16973 * configure.srv (xscale*-*-linux*): Don't handle target.
16975 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16977 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16979 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16980 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16981 (i386_emit_void_call_2): Likewise.
16983 2011-04-26 Yao Qi <yao@codesourcery.com>
16985 * linux-low.c: Move common macros to linux-ptrace.h.
16986 Include linux-ptrace.h.
16987 * Makefile.in (linux_ptrace_h): New.
16988 (linux-low.o): Depends on linux-ptrace.h.
16990 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16992 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16993 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16994 (remote_prepare): New function with most of the TCP code from ...
16995 (remote_open): ... here. Detect PORT here unconditionally. Move also
16996 setting transport_is_reliable.
16997 * server.c (run_once): New variable.
16998 (gdbserver_usage): Document it.
16999 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17000 the first run if RUN_ONCE.
17001 * server.h (run_once, remote_prepare): New declarations.
17003 2011-04-19 Tom Tromey <tromey@redhat.com>
17005 * win32-low.c (handle_load_dll): Remove duplicate "the".
17007 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17009 Remove support for old Cygwin 1.5 versions.
17010 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17011 function to avoid warning.
17012 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17015 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17017 * gdbserver/server.h (Macro _): Define it if not available.
17019 2011-03-14 Michael Snyder <msnyder@vmware.com>
17021 * hostio.c (handle_close): Remove unnecessary null test.
17023 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17025 * Makefile.in (maintainer-clean realclean distclean): Remove
17026 "make ... subdir_do" command.
17028 2011-03-10 Michael Snyder <msnyder@vmware.com>
17030 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17032 * server.c (handle_v_run): Free alloced buffer on early return.
17034 2011-03-09 Yao Qi <yao@codesourcery.com>
17037 2011-03-04 Yao Qi <yao@codesourcery.com>
17039 * Makefile.in: Remove GNU make feature --directory.
17041 2011-03-05 Yao Qi <yao@codesourcery.com>
17043 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17044 (subdir_do): New make target. Copied from gdb/Makefile.
17045 (maintainer-clean, realclean, distclean, clean): Call corresponding
17046 make targets in common/Makefile.
17048 2011-02-11 Yao Qi <yao@codesourcery.com>
17050 * configure.ac: Call AC_PROG_RANLIB.
17051 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17052 * configure: Regenerate.
17054 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17056 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17058 2011-03-06 Yao Qi <yao@codesourcery.com>
17060 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17062 2011-03-05 Yao Qi <yao@codesourcery.com>
17064 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17065 (subdir_do): New make target. Copied from gdb/Makefile.
17066 (maintainer-clean, realclean, distclean, clean): Call corresponding
17067 make targets in common/Makefile.
17069 2011-03-04 Yao Qi <yao@codesourcery.com>
17071 * Makefile.in: Remove GNU make feature --directory.
17073 2011-03-04 Michael Snyder <msnyder@vmware.com>
17075 * server.c (queue_stop_reply): Call xmalloc not malloc.
17077 2011-03-02 Michael Snyder <msnyder@vmware.com>
17079 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17081 2011-02-28 Michael Snyder <msnyder@vmware.com>
17083 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17084 (cmd_qtframe): Ditto.
17085 (cmd_qtbuffer): Ditto.
17086 (cmd_bigqtbuffer): Ditto.
17088 * utils.c (decimal2str): Initialize 'width' to nine, then
17089 don't mess with it.
17091 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17093 * hostio.c (require_data): Free *data, not data.
17095 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17097 * hostio.c (require_data): Use free, not xfree.
17099 2011-02-27 Michael Snyder <msnyder@vmware.com>
17101 * server.c (handle_query): Discard unused value.
17103 * hostio.c (require_data): Free malloc memory before returning
17106 2011-02-26 Michael Snyder <msnyder@vmware.com>
17108 * linux-low.c (list_threads): Call closedir for dirent.
17110 2011-02-27 Michael Snyder <msnyder@vmware.com>
17112 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17113 a case statement falls through.
17115 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17117 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17120 2011-02-26 Michael Snyder <msnyder@vmware.com>
17122 * utils.c (decimal2str): Eliminate dead code and dead param.
17123 (pulongest): Drop dead param from call to decimal2str.
17126 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17128 Revert the following patch (not approved yet):
17129 2011-02-21 Hui Zhu <teawater@gmail.com>
17130 * tracepoint.c (tp_printf): New function.
17131 (eval_agent_expr): Handle gdb_agent_op_printf.
17133 2011-02-21 Hui Zhu <teawater@gmail.com>
17135 * tracepoint.c (tp_printf): New function.
17136 (eval_agent_expr): Handle gdb_agent_op_printf.
17138 2011-02-18 Tom Tromey <tromey@redhat.com>
17140 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17141 (tracepoint.o): Likewise.
17142 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17143 (gdb_agent_op_names): Likewise.
17145 2011-02-18 Tom Tromey <tromey@redhat.com>
17147 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17148 gdb_agent_op_rot>: New constants.
17149 (gdb_agent_op_names): Add pick and roll.
17150 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17153 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17155 * aclocal.m4: Regenerated with aclocal-1.11.1.
17157 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17159 * server.c (handle_qxfer_traceframe_info): New.
17160 (qxfer_packets): Register "traceframe-info".
17161 (handle_query): Report support for qXfer:traceframe-info:read+.
17162 * tracepoint.c (match_blocktype): New.
17163 (traceframe_find_block_type): Rename to ...
17164 (traceframe_walk_blocks): ... this. Add callback filter argument,
17166 (traceframe_find_block_type): New, reimplemented on top of
17167 traceframe_walk_blocks.
17168 (build_traceframe_info_xml): New.
17169 (traceframe_read_info): New.
17170 * server.h (traceframe_read_info): Declare.
17172 2011-02-11 Yao Qi <yao@codesourcery.com>
17174 * configure.ac: Call AC_PROG_RANLIB.
17175 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17176 * configure: Regenerate.
17178 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17180 * server.c (gdb_read_memory): Change return semantics to allow
17182 (handle_search_memory_1): Adjust.
17183 (process_serial_event) <'m' packet>: Handle partial transfers.
17184 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17186 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17188 * regcache.c (init_register_cache): Initialize
17189 regcache->register_status.
17190 (free_register_cache): Release regcache->register_status.
17191 (regcache_cpy): Copy register_status.
17192 (registers_to_string): Print 'x's for unavailable registers.
17193 (supply_register): Mark the register's status valid or
17194 unavailable, depending on whether a buffer was passed in or not.
17195 (supply_register_zeroed): New.
17196 (supply_regblock): Mark the registers' status valid or
17197 unavailable, depending on whether a buffer was passed in or not.
17198 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17199 (struct regcache): New `register_status' field.
17200 (supply_register_zeroed): Declare.
17201 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17202 supply_register_zeroed, rather than passing a NULL buffer to
17204 * tracepoint.c (fetch_traceframe_registers): Update comment.
17206 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17208 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17211 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17213 * server.h (decode_xfer_write): Change prototype.
17214 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17215 and don't extract the annex here.
17216 * server.c (decode_xfer_read): Remove `annex' parameter,
17217 and don't extract the annex here.
17218 (decode_xfer): New.
17219 (struct qxfer): New.
17220 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17221 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17222 (handle_qxfer_statictrace): New functions, abstracted out from
17223 handle_query, and made to use the struct qxfer interface.
17224 (handle_threads_qxfer_proper): Rename to ...
17225 (handle_qxfer_threads_proper): ... this.
17226 (handle_threads_qxfer): Rename to ...
17227 (handle_qxfer_threads): ... this. Adjust.
17228 (qxfer_packets): New array.
17229 (handle_qxfer): New function.
17230 (handle_query): Use handle_qxfer.
17232 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17234 * gdbreplay.c: Shorten lines of >= 80 columns.
17235 * linux-low.c: Ditto.
17236 * linux-ppc-low.c: Ditto.
17237 * linux-s390-low.c: Ditto.
17238 * linux-sparc-low.c: Ditto.
17239 * linux-x86-low.c: Ditto.
17240 * linux-xtensa-low.c: Ditto.
17241 * mem-break.c: Ditto.
17242 * nto-low.c: Ditto.
17243 * regcache.h: Ditto.
17244 * remote-utils.c: Ditto.
17247 * thread-db.c: Ditto.
17248 * tracepoint.c: Ditto.
17250 * win32-low.h: Ditto.
17252 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17254 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17257 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17259 * server.c (gdbserver_version): Update copyright year in version
17261 * gdbreplay.c (gdbreplay_version): Ditto.
17263 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17265 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17266 * linux-bfin-low.c: New file.
17267 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17268 PT_DATA_ADDR for BFIN targets.
17269 * Makefile.in (SFILES): Add linux-bfin-low.c.
17270 (clean): Remove reg-bfin.c.
17271 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17272 * README: Mention supported Blackfin targets.
17274 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17276 * .gitignore: New file.
17278 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17280 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17282 2010-10-22 Jie Zhang <jie@codesourcery.com>
17284 * Makefile.in: Add FLAGS_TO_PASS variable.
17285 (install): Remove dependency of install-only and recursively
17286 invoke make for install-only.
17288 2010-10-04 Doug Evans <dje@google.com>
17290 * Makefile.in (uninstall): Use $(DESTDIR).
17292 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17296 * linux-x86-low.c (compat_siginfo_from_siginfo)
17297 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17298 si_code is < 0. Check for si_code == SI_TIMER before checking for
17301 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17303 * lynx-i386-low.c: New file.
17304 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17306 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17308 * lynx-low.c (ptrace_request_to_str): Remove handling for
17309 request values that have been removed in LynxOS 5.x.
17311 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17313 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17316 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17318 * configure.ac: Add --enable-inprocess-agent option.
17319 * configure: Rebuilt.
17321 2010-09-06 Yao Qi <yao@codesourcery.com>
17323 * linux-low.c (linux_kill): Remove unused variable.
17324 (linux_stabilize_threads): Likewise.
17325 * server.c (start_inferior): Likewise.
17326 (queue_stop_reply_callback): Likewise.
17327 * tracepoint.c (do_action_at_tracepoint): Likewise.
17329 2010-09-06 Yao Qi <yao@codesourcery.com>
17331 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17334 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17336 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17338 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17340 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17343 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17345 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17346 gdbserver/lynx-ppc-low.c: New files.
17347 * Makefile.in (lynx_low_h): New variable.
17348 (lynx-low.o, lynx-ppc-low.o): New rules.
17349 * configure.ac: On LynxOS, link with -lnetinet.
17350 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17351 * configure: regenerate.
17353 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17355 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17356 * configure.ac: Add check for vasprintf and vsnprintf.
17357 * configure, config.in: Regenerate.
17358 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17360 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17362 * gdbreplay.c: Move include of alloca.h up, next to include of
17364 * server.h: Add include of malloc.h.
17365 * mem-break.c: Remove include of malloc.h.
17366 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17368 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17370 * Makefile.in (memmem.o): Build with -Wno-error.
17372 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17374 * utils.c (xsnprintf): Make non-static.
17375 * server.h: Add xsnprintf declaration.
17376 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17377 replace calls to snprintf by calls to xsnprintf throughout.
17379 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17381 * configure.ac: Add configure check for alloca.
17382 * configure, config.in: Regenerate.
17383 * server.h: Include alloca.h if it exists.
17384 * gdbreplay.c: Include alloca.h if it exists.
17386 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17388 * linux-low.c (__SIGRTMIN): Define if not already defined.
17389 (linux_create_inferior): Check for __ANDROID__ rather than
17391 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17392 are already deferred.
17393 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17394 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17395 stopped and already has a pending signal to report.
17396 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17397 a pending signal to report or is moving out of a jump pad.
17398 (linux_init_signals): Check for __ANDROID__ rather than
17401 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17403 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17404 debug_threads check. Avoid a linear search when not doing debug
17407 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17409 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17410 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17411 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17412 (process_event): Change local fd's type to gdb_fildes_t.
17413 (create_file_handler): Adjust prototype.
17414 (delete_file_handler): Adjust prototype.
17415 (handle_file_event): Adjust prototype. Use pfildes.
17416 (create_file_event): Adjsut prototype.
17417 * remote-utils.c (remote_desc, listen_desc): Change type to
17419 * server.h: New gdb_fildes_t typedef.
17420 [USE_WIN32API]: Include winsock2.h.
17421 (delete_file_handler, add_file_handler): Adjust prototypes.
17422 (pfildes): Declare.
17423 * utils.c (pfildes): New.
17425 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17427 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17428 * configure: Regenerate.
17430 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17432 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17433 (linux_done_accessing_memory): ... this.
17434 (linux_target_ops): Adjust.
17435 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17436 * nto-low.c (nto_target_ops): Adjust comment.
17437 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17438 * spu-low.c (spu_target_ops): Adjust comment.
17439 * target.h (target_ops): Rename unprepare_to_access_memory field
17440 to done_accessing_memory.
17441 (unprepare_to_access_memory): Rename to ...
17442 (done_accessing_memory): ... this.
17444 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17446 * linux-low.c (linux_prepare_to_access_memory): New.
17447 (linux_unprepare_to_access_memory): New.
17448 (linux_target_ops): Install them.
17449 * server.c (read_memory): Rename to ...
17450 (gdb_read_memory): ... this. Use
17451 prepare_to_access_memory/prepare_to_access_memory.
17452 (write_memory): Rename to ...
17453 (gdb_write_memory): ... this. Use
17454 prepare_to_access_memory/prepare_to_access_memory.
17455 (handle_search_memory_1): Adjust.
17456 (process_serial_event): Adjust.
17457 * target.h (struct target_ops): New fields
17458 prepare_to_access_memory and unprepare_to_access_memory.
17459 (prepare_to_access_memory, unprepare_to_access_memory): New.
17460 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17461 prepare_to_access_memory/prepare_to_access_memory.
17462 * nto-low.c (nto_target_ops): Adjust.
17463 * spu-low.c (spu_target_ops): Adjust.
17464 * win32-low.c (win32_target_ops): Adjust.
17466 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17468 * Makefile.in (WARN_CFLAGS): Get it from configure.
17469 (WERROR_CFLAGS): New.
17470 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17471 * configure.ac: Introduce --enable-werror, which adds -Werror to
17472 the compiler command line. Enabled by default. Disable with
17473 --disable-werror. Add -Wdeclaration-after-statement
17474 Wpointer-arith and -Wformat-nonliteral to warning flags.
17475 * configure: Regenerate.
17477 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17479 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17481 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17483 * gdbreplay.c (remote_error): New.
17485 (expect): Use gdbchar. Check for error reading from GDB.
17486 Clarify sync error output.
17487 (play): Check for errors writing to GDB.
17488 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17489 * remote-utils.c (getpkt): Check for errors writing to the remote
17492 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17494 * linux-low.c (linux_wait_1): Move non-debugging code out of
17495 `debug_threads' control.
17497 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17499 * linux-low.c (linux_wait_1): Don't set last_status here.
17500 * server.c (push_event, queue_stop_reply_callback): Assert we're
17501 not pushing a TARGET_WAITKIND_IGNORE event.
17502 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17503 (myresume, handle_target_event): Set the thread's last_resume_kind
17504 and last_status from the target returned status.
17506 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17510 * linux-x86-low.c (update_debug_registers_callback): New.
17511 (i386_dr_low_set_addr): Use it.
17512 (i386_dr_low_get_addr): New.
17513 (i386_dr_low_set_control): Use update_debug_registers_callback.
17514 (i386_dr_low_get_control): New.
17515 (i386_dr_low_get_status): Adjust.
17516 * linux-low.c (linux_stop_lwp): New.
17517 * linux-low.h (linux_stop_lwp): Declare.
17519 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17520 argument instead of a i386_debug_reg_state.
17521 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17522 a i386_debug_reg_state.
17523 (i386_insert_aligned_watchpoint): Adjust.
17524 (i386_remove_aligned_watchpoint): Adjust.
17525 (i386_low_stopped_data_address): Read the debug registers from the
17526 inferior instead of from the mirrors.
17527 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17528 (i386_dr_low_get_addr): Declare.
17529 (i386_dr_low_get_control): Declare.
17530 (i386_dr_low_get_status): Change prototype.
17532 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17533 (i386_dr_low_get_addr): New.
17534 (i386_dr_low_get_control): New.
17535 (i386_dr_low_get_status): Adjust prototype. Return
17537 (i386_initial_stuff): Clear dr_status_mirror and
17539 (i386_get_thread_context): Adjust.
17540 (i386_set_thread_context): Adjust.
17541 (i386_thread_added): Adjust.
17543 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17545 * linux-low.h (linux_thread_area): Delete declaration.
17547 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17549 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17550 after its termination.
17552 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17554 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17555 (gdb_wants_all_stopped): Delete.
17556 (linux_wait_1): Don't call them.
17557 * server.c (handle_v_cont): Tag all threads as want-stopped.
17558 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17559 stopped as "client-wants-stopped".
17561 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17563 * Makefile.in (signals_h): New.
17564 (server_h): Depend on it.
17565 (server.o): Don't depend on $(signals_def).
17566 (signals.o): Depend on $(signals_def).
17568 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17570 * Makefile.in (signals_def): New.
17571 (server_h): Append include/gdb/signals.h and signals_def.
17572 (server.o): Append signals_def.
17574 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17576 * server.c (handle_target_event): Use target_signal_to_host for
17577 resume_info.sig initialization.
17578 * target.h (struct thread_resume) <sig>: New comment.
17580 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17582 * server.c (handle_query): strcpy() the returned string from paddress()
17583 instead of sprintf().
17584 * utils.c (paddress): Return phex_nz().
17586 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17588 * server.c (handle_v_cont): Call mourn_inferior if process
17590 (myresume): Likewise.
17592 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17594 Static tracepoints, and integration with UST.
17596 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17597 * mem-break.c (uninsert_all_breakpoints)
17598 (reinsert_all_breakpoints): New.
17599 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17600 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17601 (gdb_agent_ust_loaded, helper_thread_id)
17602 (gdb_agent_helper_thread_id): New macros.
17603 (struct ipa_sym_addresses): Add addr_ust_loaded,
17604 addr_helper_thread_id, addr_cmd_buf.
17605 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17606 (in_process_agent_loaded_ust): New.
17607 (write_e_ust_not_loaded): New.
17608 (maybe_write_ipa_ust_not_loaded): New.
17609 (struct collect_static_trace_data_action): New.
17610 (enum tracepoint_type) <static_tracepoint>: New.
17611 (struct tracepoint) <handle>: Mention static tracepoints.
17612 (struct static_tracepoint_ctx): New.
17613 (CMD_BUF_SIZE): New.
17614 (add_tracepoint_action): Handle static tracepoint actions.
17615 (unprobe_marker_at): New.
17616 (clear_installed_tracepoints): Handle static tracepoints.
17617 (cmd_qtdp): Handle static tracepoints.
17618 (probe_marker_at): New.
17619 (cmd_qtstart): Handle static tracepoints.
17620 (response_tracepoint): Handle static tracepoints.
17621 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17622 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17623 (get_context_regcache): Handle static tracepoints.
17624 (do_action_at_tracepoint): Handle static tracepoint actions.
17625 (traceframe_find_block_type): Handle static trace data blocks.
17626 (traceframe_read_sdata): New.
17627 (download_tracepoints): Download static tracepoint actions.
17628 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17629 (GDB_PROBE_NAME): New.
17631 (GET_UST_SYM): New.
17634 (ust_marker_to_static_tracepoint): New.
17636 (collect_ust_data_at_tracepoint): New.
17637 (gdb_ust_probe): New.
17638 (UNIX_PATH_MAX, SOCK_DIR): New.
17639 (gdb_ust_connect_sync_socket): New.
17640 (resume_thread, stop_thread): New.
17641 (run_inferior_command): New.
17642 (init_named_socket): New.
17643 (gdb_ust_socket_init): New.
17644 (cstr_to_hexstr): New.
17646 (first_marker, next_marker): New.
17647 (response_ust_marker): New.
17648 (cmd_qtfstm, cmd_qtsstm): New.
17649 (unprobe_marker_at, probe_marker_at): New.
17650 (cmd_qtstmat, gdb_ust_thread): New.
17651 (gdb_ust_init): New.
17652 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17653 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17654 (ST_REGENTRY): New.
17655 (x86_64_st_collect_regmap): New.
17656 (X86_64_NUM_ST_COLLECT_GREGS): New.
17657 (AMD64_RIP_REGNUM): New.
17658 (supply_static_tracepoint_registers): New.
17659 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17660 (ST_REGENTRY): New.
17661 (i386_st_collect_regmap): New.
17662 (i386_NUM_ST_COLLECT_GREGS): New.
17663 (supply_static_tracepoint_registers): New.
17664 * server.c (handle_query): Handle qXfer:statictrace:read.
17665 <qSupported>: Report support for StaticTracepoints, and
17666 qXfer:statictrace:read features.
17667 * server.h (traceframe_read_sdata)
17668 (supply_static_tracepoint_registers): Declare.
17669 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17670 (unpack_varlen_hex): Include in IPA build.
17671 * Makefile.in (ustlibs, ustinc): New.
17672 (IPA_OBJS): Add remote-utils-ipa.o.
17673 ($(IPA_LIB)): Link -ldl and -lpthread.
17675 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17676 * config.in, configure: Regenerate.
17678 2010-06-20 Ian Lance Taylor <iant@google.com>
17679 Pedro Alves <pedro@codesourcery.com>
17681 * linux-x86-low.c (always_true): Delete.
17682 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17683 trying to fool the compiler with always_true.
17685 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17687 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17688 conditions in gdbserver.
17690 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17692 * spu-low.c (spu_read_memory): Wrap around local store limit.
17693 (spu_write_memory): Likewise.
17695 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17697 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17698 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17700 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17702 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17703 uses with LONGEST uses.
17705 2010-06-14 Stan Shebs <stan@codesourcery.com>
17706 Pedro Alves <pedro@codesourcery.com>
17710 * linux-x86-low.c: Include limits.h.
17712 (always_true): New.
17715 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17716 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17717 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17718 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17719 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17720 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17721 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17722 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17723 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17724 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17725 (amd64_emit_void_call_2): New.
17726 (amd64_emit_ops): New.
17727 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17728 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17729 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17730 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17731 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17732 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17733 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17734 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17735 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17736 (i386_emit_stack_adjust, i386_emit_int_call_1)
17737 (i386_emit_void_call_2): New.
17738 (i386_emit_ops): New.
17739 (x86_emit_ops): New.
17740 (the_low_target): Install x86_emit_ops.
17741 * server.h (struct emit_ops): New.
17742 (get_raw_reg_func_addr): Declare.
17743 (current_insn_ptr, emit_error): Declare.
17744 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17745 (set_trace_state_variable_value): New defines.
17746 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17747 addr_get_trace_state_variable_value and
17748 addr_set_trace_state_variable_value.
17749 (symbol_list): New fields for get_raw_reg,
17750 get_trace_state_variable_value and set_trace_state_variable_value.
17751 (condfn): New typedef.
17752 (struct tracepoint): New field `compiled_cond'.
17753 (do_action_at_tracepoint): Clear compiled_cond.
17754 (get_trace_state_variable_value, set_trace_state_variable_value):
17756 (condition_true_at_tracepoint): If there's a compiled condition,
17758 (current_insn_ptr, emit_error): New globals.
17759 (struct bytecode_address): New.
17760 (get_raw_reg_func_addr): New.
17761 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17762 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17763 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17764 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17765 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17766 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17767 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17768 (compile_tracepoint_condition, compile_bytecodes): New.
17769 * target.h (emit_ops): Forward declare.
17770 (struct target_ops): New field emit_ops.
17771 (target_emit_ops): New.
17772 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17773 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17774 * linux-low.c (linux_emit_ops): New.
17775 (linux_target_ops): Install it.
17776 * linux-low.h (struct linux_target_ops): New field emit_ops.
17778 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17780 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17781 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17783 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17784 Stan Shebs <stan@codesourcery.com>
17786 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17787 (all): Depend on $(extra_libraries).
17788 (install-only): Install the IPA.
17789 (IPA_OBJS, IPA_LIB): New.
17790 (clean): Remove the IPA lib.
17791 (IPAGENT_CFLAGS): New.
17792 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17793 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17794 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17795 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17796 * configure.ac: Check for atomic builtins support in the compiler.
17797 (IPA_DEPFILES, extra_libraries): Define.
17798 * configure.srv (ipa_obj): Add description.
17799 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17800 (i[34567]86-*-linux*): Set ipa_obj.
17801 (x86_64-*-linux*): Set ipa_obj.
17802 * linux-low.c (stabilizing_threads): New.
17803 (supports_fast_tracepoints): New.
17804 (linux_detach): Stabilize threads before detaching.
17805 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17806 the lwp is either not stabilizing, or is moving out of a jump pad.
17807 (linux_fast_tracepoint_collecting): New.
17808 (maybe_move_out_of_jump_pad): New.
17809 (enqueue_one_deferred_signal): New.
17810 (dequeue_one_deferred_signal): New.
17811 (linux_wait_for_event_1): If moving out of a jump pad, defer
17812 pending signals to later.
17813 (linux_stabilize_threads): New.
17814 (linux_wait_1): Check if threads need moving out of jump pads, and
17816 (stuck_in_jump_pad_callback): New.
17817 (move_out_of_jump_pad_callback): New.
17818 (lwp_running): New.
17819 (linux_resume_one_lwp): Handle moving out of jump pads.
17820 (linux_set_resume_request): Dequeue deferred signals.
17821 (need_step_over_p): Also step over fast tracepoint jumps.
17822 (start_step_over): Also uninsert fast tracepoint jumps.
17823 (finish_step_over): Also reinsert fast tracepoint jumps.
17824 (linux_install_fast_tracepoint_jump): New.
17825 (linux_target_ops): Install linux_stabilize_threads and
17826 linux_install_fast_tracepoint_jump_pad.
17827 * linux-low.h (linux_target_ops) <get_thread_area,
17828 install_fast_tracepoint_jump_pad>: New fields.
17829 (struct lwp_info) <collecting_fast_tracepoint,
17830 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17831 (linux_get_thread_area): Declare.
17832 * linux-x86-low.c (jump_insn): New.
17833 (x86_get_thread_area): New.
17834 (append_insns): New.
17835 (push_opcode): New.
17836 (amd64_install_fast_tracepoint_jump_pad): New.
17837 (i386_install_fast_tracepoint_jump_pad): New.
17838 (x86_install_fast_tracepoint_jump_pad): New.
17839 (the_low_target): Install x86_get_thread_area and
17840 x86_install_fast_tracepoint_jump_pad.
17841 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17842 (struct fast_tracepoint_jump): New.
17843 (fast_tracepoint_jump_insn): New.
17844 (fast_tracepoint_jump_shadow): New.
17845 (find_fast_tracepoint_jump_at): New.
17846 (fast_tracepoint_jump_here): New.
17847 (delete_fast_tracepoint_jump): New.
17848 (set_fast_tracepoint_jump): New.
17849 (uninsert_fast_tracepoint_jumps_at): New.
17850 (reinsert_fast_tracepoint_jumps_at): New.
17851 (set_breakpoint_at): Use write_inferior_memory.
17852 (uninsert_raw_breakpoint): Use write_inferior_memory.
17853 (check_mem_read): Mask out fast tracepoint jumps.
17854 (check_mem_write): Mask out fast tracepoint jumps.
17855 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17856 (set_fast_tracepoint_jump): Declare.
17857 (delete_fast_tracepoint_jump)
17858 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17859 (reinsert_fast_tracepoint_jumps_at): Declare.
17860 * regcache.c: Don't compile many functions when building the
17861 in-process agent library.
17862 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17863 the register buffer in the heap.
17864 (free_register_cache): If the register buffer isn't owned by the
17865 regcache, don't free it.
17866 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17867 pre-existing register caches.
17868 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17870 (convert_ascii_to_int): : Constify `from' parameter type.
17871 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17872 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17873 the needed buffer in-place.
17874 (relocate_instruction): New.
17875 * server.c (handle_query) <qSymbols>: If the target supports
17876 tracepoints, give it a chance of looking up symbols. Report
17877 support for fast tracepoints.
17878 (handle_status): Stabilize threads.
17879 (process_serial_event): Adjust.
17880 * server.h (struct fast_tracepoint_jump): Forward declare.
17881 (struct process_info) <fast_tracepoint_jumps>: New field.
17882 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17883 (decode_X_packet, decode_M_packet): Adjust.
17884 (relocate_instruction): Declare.
17885 (in_process_agent_loaded): Declare.
17886 (tracepoint_look_up_symbols): Declare.
17887 (struct fast_tpoint_collect_status): Declare.
17888 (fast_tracepoint_collecting): Declare.
17889 (force_unlock_trace_buffer): Declare.
17890 (handle_tracepoint_bkpts): Declare.
17891 (initialize_low_tracepoint)
17892 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17893 * target.h (struct target_ops) <stabilize_threads,
17894 install_fast_tracepoint_jump_pad>: New fields.
17895 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17896 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17897 [HAVE_STDINT_H]: Include stdint.h.
17898 (trace_debug_1): Rename to ...
17899 (trace_vdebug): ... this.
17900 (trace_debug): Rename to ...
17901 (trace_debug_1): ... this. Add `level' parameter.
17902 (trace_debug): New.
17903 (ATTR_USED, ATTR_NOINLINE): New.
17904 (IP_AGENT_EXPORT): New.
17905 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17906 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17907 (about_to_request_buffer_space, trace_buffer_is_full)
17908 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17909 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17910 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17911 (traceframe_write_count, traceframes_created)
17912 (trace_state_variables)
17913 New renaming defines.
17914 (struct ipa_sym_addresses): New.
17915 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17916 (symbol_list): New.
17917 (ipa_sym_addrs): New.
17918 (all_tracepoint_symbols_looked_up): New.
17919 (in_process_agent_loaded): New.
17920 (write_e_ipa_not_loaded): New.
17921 (maybe_write_ipa_not_loaded): New.
17922 (tracepoint_look_up_symbols): New.
17923 (debug_threads) [IN_PROCESS_AGENT]: New.
17924 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17925 (UNKNOWN_SIDE_EFFECTS): New.
17926 (stop_tracing): New.
17927 (flush_trace_buffer): New.
17928 (stop_tracing_bkpt): New.
17929 (flush_trace_buffer_bkpt): New.
17930 (read_inferior_integer): New.
17931 (read_inferior_uinteger): New.
17932 (read_inferior_data_pointer): New.
17933 (write_inferior_data_pointer): New.
17934 (write_inferior_integer): New.
17935 (write_inferior_uinteger): New.
17936 (struct collect_static_trace_data_action): Delete.
17937 (enum tracepoint_type): New.
17938 (struct tracepoint) <type>: New field `type'.
17939 <actions_str, step_actions, step_actions_str>: Only include in
17941 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17942 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17943 (tracepoints): Use IP_AGENT_EXPORT.
17944 (last_tracepoint): Don't include in the IPA.
17945 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17946 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17947 (alloced_trace_state_variables): New.
17948 (trace_state_variables): Use IP_AGENT_EXPORT.
17949 (traceframe_t): Delete unused variable.
17950 (circular_trace_buffer): Don't include in the IPA.
17951 (trace_buffer_start): Delete.
17952 (struct trace_buffer_control): New.
17953 (trace_buffer_free): Delete.
17954 (struct ipa_trace_buffer_control): New.
17955 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17956 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17958 (trace_buffer_ctrl): New.
17959 (TRACE_BUFFER_CTRL_CURR): New.
17960 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17961 Reimplement as macros.
17962 (trace_buffer_wrap): Delete.
17963 (traceframe_write_count, traceframe_read_count)
17964 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17965 (struct tracepoint_hit_ctx) <type>: New field.
17966 (struct fast_tracepoint_ctx): New.
17967 (memory_barrier): New.
17969 (record_tracepoint_error): Update atomically in the IPA.
17970 (clear_inferior_trace_buffer): New.
17971 (about_to_request_buffer_space): New.
17972 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17973 updating the same buffer.
17974 (add_tracepoint): Default the tracepoint's type to trap
17975 tracepoint, and orig_size to -1.
17976 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17977 internal variables.
17978 (create_trace_state_variable): New parameter `gdb'. Handle it.
17979 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17980 (cmd_qtdp): Handle fast tracepoints.
17981 (cmd_qtdv): Adjust.
17982 (max_jump_pad_size): New.
17983 (gdb_jump_pad_head): New.
17984 (get_jump_space_head): New.
17985 (claim_jump_space): New.
17986 (sort_tracepoints): New.
17987 (MAX_JUMP_SIZE): New.
17988 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17990 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17991 support. Upload fast traceframes, and delete internal IPA
17993 (stop_tracing_handler): New.
17994 (flush_trace_buffer_handler): New.
17995 (cmd_qtstop): Upload fast tracepoints.
17996 (response_tracepoint): Handle fast tracepoints.
17997 (tracepoint_finished_step): Upload fast traceframes. Set the
17998 tracepoint hit context's tracepoint type.
17999 (handle_tracepoint_bkpts): New.
18000 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18001 type. Add comment about fast tracepoints.
18002 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18003 non-existing action_str field.
18004 (get_context_regcache): Handle fast tracepoints.
18005 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18007 (fast_tracepoint_from_jump_pad_address): New.
18008 (fast_tracepoint_from_ipa_tpoint_address): New.
18009 (collecting_t): New.
18010 (force_unlock_trace_buffer): New.
18011 (fast_tracepoint_collecting): New.
18013 (gdb_collect): New.
18014 (write_inferior_data_ptr): New.
18015 (target_tp_heap): New.
18016 (target_malloc): New.
18017 (download_agent_expr): New.
18019 (download_tracepoints): New.
18020 (download_trace_state_variables): New.
18021 (upload_fast_traceframes): New.
18022 (IPA_FIRST_TRACEFRAME): New.
18023 (IPA_NEXT_TRACEFRAME_1): New.
18024 (IPA_NEXT_TRACEFRAME): New.
18025 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18026 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18027 (gdb_jump_pad_buffer_end): New.
18028 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18029 (initialize_tracepoint): Adjust.
18030 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18031 buffer. Initialize the low module.
18032 * utils.c (PREFIX, TOOLNAME): New.
18033 (malloc_failure): Use PREFIX.
18034 (error): In the IPA, an error causes an exit.
18035 (fatal, warning): Use PREFIX.
18036 (internal_error): Use TOOLNAME.
18037 (NUMCELLS): Increase to 10.
18038 * configure, config.in: Regenerate.
18040 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18042 * server.c (handle_query) <qSupported>: Do two passes over the
18043 qSupported string to avoid nesting strtok.
18045 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18047 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18049 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18050 -Wl,--dynamic-list.
18051 * configure: Regenerate.
18052 * proc-service.list: New.
18054 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18056 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18059 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18061 * gdbreplay.c (remote_open): Check error return from socket() call by
18062 its equality to -1 not by it being negative.
18063 * remote-utils.c (remote_open): Likewise.
18065 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18067 * config.h: Regenerate.
18069 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18071 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18072 doesn't provide PTRACE_GET_THREAD_AREA.
18074 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18076 * linux-m68k-low.c: Include <asm/ptrace.h>
18077 (ps_get_thread_area): Implement.
18079 2010-05-03 Doug Evans <dje@google.com>
18081 * event-loop.c (struct callback_event): New struct.
18082 (callback_list): New global.
18083 (append_callback_event, delete_callback_event): New functions.
18084 (process_callback): New function.
18085 (start_event_loop): Call it.
18086 * remote-utils.c (NOT_SCHEDULED): Define.
18087 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18088 moved out of readchar.
18089 (readchar): Rewrite. Call reschedule before returning.
18090 (reset_readchar): New function.
18091 (remote_close): Call it.
18092 (process_remaining, reschedule): New functions.
18093 * server.h (callback_handler_func): New typedef.
18094 (append_callback_event, delete_callback_event): Declare.
18096 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18098 * proc-service.c (ps_pglobal_lookup): Use
18099 thread_db_look_up_one_symbol.
18100 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18101 parameter. Use it instead of all_symbols_looked_up.
18102 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18104 (all_symbols_looked_up): Don't declare.
18105 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18106 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18108 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18109 Set all_symbols_looked_up here.
18110 (thread_db_look_up_one_symbol): New.
18111 (thread_db_get_tls_address): Adjust.
18112 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18113 thread_db object on the heap, and tentatively set it in the
18115 (thread_db_init): Don't set all_symbols_looked_up here.
18116 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18118 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18120 * linux-low.c (linux_kill, linux_detach): Adjust.
18121 (status_pending_p_callback): Remove redundant statement. Check
18122 for !TARGET_WAITIKIND_IGNORE, instead of
18123 TARGET_WAITKIND_STOPPED.
18124 (handle_tracepoints): Make sure LWP is locked. Adjust.
18125 (linux_wait_for_event_1): Adjust.
18126 (linux_cancel_breakpoints): New.
18127 (unsuspend_one_lwp): New.
18128 (unsuspend_all_lwps): New.
18129 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18130 (send_sigstop_callback): Change return type to int, add new
18131 `except' parameter and handle it.
18132 (suspend_and_send_sigstop_callback): New.
18133 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18134 pass them down. If SUSPEND, also increment the lwp's suspend
18136 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18137 (need_step_over_p): Don't consider suspended LWPs.
18138 (start_step_over): Adjust.
18139 (proceed_one_lwp): Change return type to int, add new `except'
18140 parameter and handle it.
18141 (unsuspend_and_proceed_one_lwp): New.
18142 (proceed_all_lwps): Use find_inferior instead of
18144 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18145 also decrement the suspend count of LWPs. Pass `except' down,
18146 instead of hacking its suspend count.
18147 (linux_pause_all): Add `freeze' parameter. Adjust.
18148 (linux_unpause_all): New.
18149 (linux_target_ops): Install linux_unpause_all.
18150 * server.c (handle_status): Adjust.
18151 * target.h (struct target_ops): New fields `unpause_all' and
18152 `cancel_breakpoints'. Add new parameter to `pause_all'.
18153 (pause_all): Add new `freeze' parameter.
18154 (unpause_all): New.
18155 (cancel_breakpoints): New.
18156 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18157 cancel breakpoints.
18158 (cmd_qtstart): Pause threads.
18159 (stop_tracing): Pause threads, and cancel breakpoints.
18160 * win32-low.c (win32_target_ops): Adjust.
18162 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18164 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18165 the inferior right away from here...
18166 (linux_wait_1): ... to here, and adjust to check the thread's
18167 last_resume_kind instead of the lwp's step or stop_expected flags.
18169 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18171 * README: Use consistent `GDB' and `GDBserver' spellings.
18173 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18175 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18176 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18177 (linux_detach_one_lwp): Assume the lwp is stopped.
18178 (any_thread_of): Delete.
18179 (linux_detach): Stop all lwps here. Don't blindly delete all
18181 (delete_lwp_callback): New.
18182 (linux_mourn): Delete all lwps of the process that is gone.
18183 (linux_wait_1): Don't delete the last lwp of the process here.
18184 * mem-break.h (mark_breakpoints_out): Declare.
18185 * mem-break.c (mark_breakpoints_out): New.
18186 (free_all_breakpoints): Use it.
18187 * server.c (handle_target_event): If the process is gone, mark
18189 * thread-db.c (struct thread_db) <create_bp>: New field.
18190 (thread_db_enable_reporting): Fix prototype. Store a thread event
18191 breakpoint reference in the thread_db struct.
18192 (thread_db_load_search): Clear the thread_db object.
18193 (try_thread_db_load_1): Ditto.
18194 (switch_to_process): New.
18195 (disable_thread_event_reporting): Use it.
18196 (remove_thread_event_breakpoints): New.
18197 (thread_db_detach, thread_db_mourn): Use it.
18199 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18201 * linux-low.c (linux_enable_event_reporting): New.
18202 (linux_wait_for_event_1, handle_extended_wait): Use it.
18204 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18206 * linux-low.c (linux_kill_one_lwp, linux_kill)
18207 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18208 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18209 SIGSTOP even if the LWP is stopped.
18210 (send_sigstop_callback): New.
18211 (stop_all_lwps): Use send_sigstop_callback instead.
18212 (linux_resume_one_thread): Adjust.
18213 (proceed_one_lwp): Still proceed an LWP that the client has
18214 requested to stop, if we haven't reported it as stopped yet. Make
18215 sure that LWPs the client want stopped, have a pending SIGSTOP.
18217 2010-04-26 Doug Evans <dje@google.com>
18219 * server.c (handle_general_set): Make static.
18221 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18222 Print received char after testing for error/eof instead of before.
18223 (input_interrupt): Tweak comment.
18225 2010-04-23 Doug Evans <dje@google.com>
18227 * server.c (start_inferior): Print inferior argv if --debug.
18229 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18231 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18232 * nto-x86-low.c: Include server.h
18234 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18236 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18237 be consistent with other sources of this directory.
18238 (init_registers_amd64): Correct name of source file of this function
18241 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18243 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18244 64-bit executables.
18246 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18248 * win32-i386-low.c: Add 64-bit support.
18249 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18250 (init_registers_amd64): Declare.
18251 (mappings): Add 64-bit version of array.
18252 (init_windows_x86): New function.
18253 (the_low_target): Change init_arch field to init_windows_x86.
18255 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18257 * win32-low.c: Adapt to support also 64-bit architecture.
18258 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18259 (get_image_name): Use SIZE_T type for local variable `done'.
18260 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18261 (toolhelp_get_dll_name): Idem.
18262 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18263 Use uintptr_t typecast to avoid warning.
18264 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18265 (handle_exception): Use phex_nz to avoid warning.
18266 (win32_wait): Remove unused local variable `process'.
18268 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18270 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18273 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18275 * configure.ac: Use `ws2_32' library for srv_mingw.
18276 * configure: Regenerate.
18277 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18278 * remote-utils.c: Likewise.
18280 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18282 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18283 if __x86_64__ is defined.
18285 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18287 * configure: Regenerate.
18289 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18291 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18292 * target.h (target_ops): New get_tib_address field.
18293 * win32-low.h (win32_thread_info): Add thread_local_base field.
18294 * win32-low.c (child_add_thread): Add tlb argument.
18295 Set thread_local_base field to TLB.
18296 (get_child_debug_event): Adapt to child_add_thread change.
18297 (win32_get_tib_address): New function.
18298 (win32_target_ops): Set get_tib_address field to
18299 win32_get_tib_address.
18300 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18302 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18304 * linux-low.c (linux_mourn): Also remove the process.
18305 * server.c (handle_target_event): Don't remove the process here.
18306 * nto-low.c (nto_mourn): New.
18307 (nto_target_ops): Install it.
18308 * spu-low.c (spu_mourn): New.
18309 (spu_target_ops): Install it.
18310 * win32-low.c (win32_mourn): New.
18311 (win32_target_ops): Install it.
18313 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18315 * server.h (buffer_xml_printf): Remove redundant `;'.
18317 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18319 * regcache.c (set_register_cache): Invalidate regcaches before
18320 changing the register cache layout.
18321 (regcache_invalidate_one): Allow a NULL regcache.
18322 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18323 regcaches before changing the register cache layout or the target
18326 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18328 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18329 variable warning on Linux/x86-64.
18331 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18333 GDBserver disconnected tracing support.
18335 * linux-low.c (linux_remove_process): Delete.
18336 (add_lwp): Don't set last_resume_kind here.
18337 (linux_kill): Use `mourn'.
18338 (linux_detach): Use `thread_db_detach', and `mourn'.
18339 (linux_mourn): New.
18340 (linux_attach_lwp_1): Adjust comment.
18341 (linux_attach): last_resume_kind moved the thread_info; adjust.
18342 (status_pending_p_callback): Adjust.
18343 (linux_wait_for_event_1): Adjust.
18344 (count_events_callback, select_singlestep_lwp_callback)
18345 (select_event_lwp_callback, cancel_breakpoints_callback)
18346 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18347 (proceed_one_lwp): Adjust.
18348 (linux_async): Add debug output.
18349 (linux_thread_stopped): New.
18350 (linux_pause_all): New.
18351 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18353 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18354 (thread_db_free): Delete declaration.
18355 (thread_db_detach, thread_db_mourn): Declare.
18356 * thread-db.c (thread_db_init): Use thread_db_mourn.
18357 (thread_db_free): Delete, split in two.
18358 (disable_thread_event_reporting): New.
18359 (thread_db_detach): New.
18360 (thread_db_mourn): New.
18362 * server.h (struct thread_info) <last_resume_kind>: New field.
18363 <attached>: Add comment.
18364 <gdb_detached>: New field.
18365 (handler_func): Change return type to int.
18366 (handle_serial_event, handle_target_event): Ditto.
18367 (gdb_connected): Declare.
18369 (disconnected_tracing): Declare.
18370 (stop_tracing): Declare.
18372 * server.c (handle_query) <qSupported>: Report support for
18373 disconnected tracing.
18374 (queue_stop_reply_callback): Account for running threads.
18375 (gdb_wants_thread_stopped): New.
18376 (gdb_wants_all_threads_stopped): New.
18377 (gdb_reattached_process): New.
18378 (handle_status): Clear the `gdb_detached' flag of all processes.
18379 In all-stop, stop all threads.
18380 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18381 (process_serial_event): If the remote connection breaks, or if an
18382 exit was forced with "monitor exit", force an event loop exit.
18383 Handle disconnected tracing on detach.
18384 (handle_serial_event): Adjust.
18385 (handle_target_event): If GDB isn't connected, forward events back
18386 to the inferior, unless the last process exited, in which case,
18387 exit gdbserver. Adjust interface.
18389 * remote-utils.c (remote_open): Don't block in accept. Instead
18390 register an event loop source on the listen socket file
18391 descriptor. Refactor bits into ...
18392 (listen_desc): ... this new global.
18393 (gdb_connected): ... this new function.
18394 (enable_async_notification): ... this new function.
18395 (handle_accept_event): ... this new function.
18396 (remote_close): Clear remote_desc.
18398 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18400 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18402 (mourn_inferior): Define.
18403 (target_process_qsupported): Avoid the dangling else problem.
18404 (thread_stopped): Define.
18405 (pause_all): Define.
18406 (target_waitstatus_to_string): Declare.
18407 * target.c (target_waitstatus_to_string): New.
18409 * tracepoint.c (tracing): Make extern.
18410 (disconnected_tracing): New.
18411 (stop_tracing): Make extern. Handle tracing stops due to GDB
18413 (cmd_qtdisconnected): New.
18414 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18415 (handle_tracepoint_general_set): Handle QTDisconnected.
18417 * event-loop.c (event_handler_func): Change return type to int.
18418 (process_event): Bail out if the event handler wants the event
18420 (handle_file_event): Ditto.
18421 (start_event_loop): Bail out if the event handler wants the event
18424 * nto-low.c (nto_target_ops): Adjust.
18425 * spu-low.c (spu_wait): Don't remove the process here.
18426 (spu_target_ops): Adjust.
18427 * win32-low.c (win32_wait): Don't remove the process here.
18428 (win32_target_ops): Adjust.
18430 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18432 * regcache.c (realloc_register_cache): Invalidate inferior's
18433 regcache before recreating it.
18435 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18437 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18439 2010-04-09 Stan Shebs <stan@codesourcery.com>
18440 Pedro Alves <pedro@codesourcery.com>
18442 * server.h (LONGEST): New.
18443 (struct thread_info) <while_stepping>: New field.
18444 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18446 (initialize_tracepoint, handle_tracepoint_general_set)
18447 (handle_tracepoint_query, tracepoint_finished_step)
18448 (tracepoint_was_hit, release_while_stepping_state_list):
18449 (current_traceframe): Declare.
18450 * server.c (handle_general_set): Handle tracepoint packets.
18451 (read_memory): New.
18452 (write_memory): New.
18453 (handle_search_memory_1): Use read_memory.
18454 (handle_query): Report support for conditional tracepoints, trace
18455 state variables, and tracepoint sources. Handle tracepoint
18457 (main): Initialize the tracepoints module.
18458 (process_serial_event): Handle traceframe reads/writes.
18460 * linux-low.c (handle_tracepoints): New.
18461 (linux_wait_1): Call it.
18462 (linux_resume_one_lwp): Handle while-stepping.
18463 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18464 (linux_target_ops): Install them.
18465 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18467 * linux-x86-low.c (x86_supports_tracepoints): New.
18468 (the_low_target). Install it.
18470 * mem-break.h (delete_breakpoint): Declare.
18471 * mem-break.c (delete_breakpoint): Make external.
18473 * target.h (struct target_ops): Add `supports_tracepoints',
18474 `read_pc', and `write_pc' fields.
18475 (target_supports_tracepoints): Define.
18476 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18479 * regcache.h (struct regcache) <registers_owned>: New field.
18480 (init_register_cache, regcache_cpy): Declare.
18481 (regcache_read_pc, regcache_write_pc): Declare.
18482 (register_cache_size): Declare.
18483 (supply_regblock): Declare.
18484 * regcache.c (init_register_cache): New.
18485 (new_register_cache): Use it.
18486 (regcache_cpy): New.
18487 (register_cache_size): New.
18488 (supply_regblock): New.
18489 (regcache_read_pc, regcache_write_pc): New.
18491 * tracepoint.c: New.
18493 * Makefile.in (OBS): Add tracepoint.o.
18494 (tracepoint.o): New rule.
18496 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18498 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18500 (i386-mmx.c): Likewise.
18501 (i386-mmx-linux.o): Likewise.
18502 (i386-mmx-linux.c): Likewise.
18504 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18505 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18506 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18507 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18509 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18510 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18511 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18513 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18515 * Makefile.in (clean): Updated.
18517 (i386-avx.c): Likewise.
18518 (i386-avx-linux.o): Likewise.
18519 (i386-avx-linux.c): Likewise.
18520 (amd64-avx.o): Likewise.
18521 (amd64-avx.c): Likewise.
18522 (amd64-avx-linux.o): Likewise.
18523 (amd64-avx-linux.c): Likewise.
18525 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18526 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18527 (srv_amd64_regobj): Add amd64-avx.o.
18528 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18529 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18530 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18531 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18532 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18533 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18534 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18536 * i387-fp.c: Include "i386-xstate.h".
18538 (i387_cache_to_xsave): Likewise.
18539 (i387_xsave_to_cache): Likewise.
18540 (x86_xcr0): Likewise.
18542 * i387-fp.h (i387_cache_to_xsave): Likewise.
18543 (i387_xsave_to_cache): Likewise.
18544 (x86_xcr0): Likewise.
18546 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18547 * linux-crisv32-low.c (target_regsets): Likewise.
18548 * linux-m68k-low.c (target_regsets): Likewise.
18549 * linux-mips-low.c (target_regsets): Likewise.
18550 * linux-ppc-low.c (target_regsets): Likewise.
18551 * linux-s390-low.c (target_regsets): Likewise.
18552 * linux-sh-low.c (target_regsets): Likewise.
18553 * linux-sparc-low.c (target_regsets): Likewise.
18554 * linux-xtensa-low.c (target_regsets): Likewise.
18556 * linux-low.c: Include <sys/uio.h>.
18557 (regsets_fetch_inferior_registers): Support nt_type.
18558 (regsets_store_inferior_registers): Likewise.
18559 (linux_process_qsupported): New.
18560 (linux_target_ops): Add linux_process_qsupported.
18562 * linux-low.h (regset_info): Add nt_type.
18563 (linux_target_ops): Add process_qsupported.
18565 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18567 (init_registers_i386_avx_linux): New.
18568 (init_registers_amd64_avx_linux): Likewise.
18569 (xmltarget_i386_linux_no_xml): Likewise.
18570 (xmltarget_amd64_linux_no_xml): Likewise.
18571 (PTRACE_GETREGSET): Likewise.
18572 (PTRACE_SETREGSET): Likewise.
18573 (x86_fill_xstateregset): Likewise.
18574 (x86_store_xstateregset): Likewise.
18575 (use_xml): Likewise.
18576 (x86_linux_update_xmltarget): Likewise.
18577 (x86_linux_process_qsupported): Likewise.
18578 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18579 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18580 init_registers_i386_linux here. Call
18581 x86_linux_update_xmltarget.
18582 (the_low_target): Add x86_linux_process_qsupported.
18584 * server.c (handle_query): Call target_process_qsupported.
18586 * target.h (target_ops): Add process_qsupported.
18587 (target_process_qsupported): New.
18589 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18591 * inferiors.c (add_thread): Set last_status kind to
18592 TARGET_WAITKIND_IGNORE.
18593 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18594 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18595 (linux_wait_1): Move `thread' local definition to block that uses
18596 it. Don't NULL initialize `event_child'.
18597 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18598 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18599 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18601 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18603 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18604 an extended waitstatus, or by a watchpoint.
18605 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18606 thread was stepping or has been stopped by a watchpoint.
18608 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18610 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18611 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18612 of another, then delete the previous, and validate all
18614 (validate_inserted_breakpoint): New.
18615 (delete_disabled_breakpoints): New.
18616 (validate_breakpoints): New.
18617 (check_mem_read): Validate breakpoints before trusting their
18618 shadow. Delete disabled breakpoints.
18619 (check_mem_write): Validate breakpoints before trusting they
18620 should be inserted. Delete disabled breakpoints.
18621 * mem-break.h (validate_breakpoints):
18622 * server.c (handle_query): Validate breakpoints when we see a
18625 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18627 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18628 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18629 if we could tell there's a GDB breakpoint at stop_pc.
18630 (need_step_over_p): Don't do a step over if we find a GDB
18631 breakpoint at the resume PC.
18633 * mem-break.c (struct raw_breakpoint): New.
18634 (enum bkpt_type): New type `gdb_breakpoint'.
18635 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18636 fields. New field `raw'.
18637 (find_raw_breakpoint_at): New.
18638 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18639 breakpoint instead.
18640 (set_breakpoint_at): Adjust.
18641 (delete_raw_breakpoint): New.
18642 (release_breakpoint): New.
18643 (delete_breakpoint): Rename to...
18644 (delete_breakpoint_1): ... this. Add proc parameter. Use
18645 release_breakpoint. Return ENOENT.
18646 (delete_breakpoint): Reimplement.
18647 (find_breakpoint_at): Delete.
18648 (find_gdb_breakpoint_at): New.
18649 (delete_breakpoint_at): Delete.
18650 (set_gdb_breakpoint_at): New.
18651 (delete_gdb_breakpoint_at): New.
18652 (gdb_breakpoint_here): New.
18653 (set_reinsert_breakpoint): Use release_breakpoint.
18654 (uninsert_breakpoint): Rename to ...
18655 (uninsert_raw_breakpoint): ... this.
18656 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18657 (reinsert_raw_breakpoint): Change parameter type to
18659 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18661 (check_breakpoints): Adjust. Use release_breakpoint.
18662 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18663 (breakpoint_inserted_here): Ditto.
18664 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18665 Don't trust the breakpoint's shadow if it is not inserted.
18666 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18667 (delete_all_breakpoints): Adjust.
18668 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18669 use delete_breakpoint_1.
18671 * mem-break.h (breakpoints_supported): Delete declaration.
18672 (set_gdb_breakpoint_at): Declare.
18673 (gdb_breakpoint_here): Declare.
18674 (delete_breakpoint_at): Delete.
18675 (delete_gdb_breakpoint_at): Declare.
18677 * server.h (struct raw_breakpoint): Forward declare.
18678 (struct process_info): New field `raw_breakpoints'.
18680 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18683 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18685 * linux-low.c (status_pending_p_callback): Fix comment.
18686 (linux_wait_for_event_1): Move most of the internal breakpoint
18687 handling from here...
18688 (linux_wait_1): ... to here.
18689 (count_events_callback): New.
18690 (select_singlestep_lwp_callback): New.
18691 (select_event_lwp_callback): New.
18692 (cancel_breakpoints_callback): New.
18693 (select_event_lwp): New.
18694 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18695 priority to all LWPs that have had events that should be reported
18696 to the client. Cancel breakpoints when about to reporting the
18697 event to the client, not while stopping lwps. No longer cancel
18698 finished single-steps here.
18699 (cancel_finished_single_step): Delete.
18700 (cancel_finished_single_steps): Delete.
18702 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18704 * mem-break.c (enum bkpt_type): New.
18705 (struct breakpoint): New field `type'.
18706 (set_breakpoint_at): Change return type to struct breakpoint
18707 pointer. Set type to `other_breakpoint' by default.
18708 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18709 in the breakpoint list.
18710 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18711 (reinsert_breakpoint): Rename to ...
18712 (reinsert_raw_breakpoint): ... this.
18713 (reinsert_breakpoints_at): Adjust.
18714 * mem-break.h (struct breakpoint): Declare.
18715 (set_breakpoint_at): Change return type to struct breakpoint
18718 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18720 * server.c (handle_query): Assign, not compare.
18722 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18724 Teach linux gdbserver to step-over-breakpoints.
18726 * linux-low.c (can_hardware_single_step): New.
18727 (supports_breakpoints): New.
18728 (handle_extended_wait): If stopping threads, read the stop pc of
18729 the new cloned LWP.
18731 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18732 low target doesn't support retrieving the PC.
18733 (add_lwp): Set last_resume_kind to resume_continue.
18734 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18735 (linux_attach): Don't clear stop_expected. Set the lwp's
18736 last_resume_kind to resume_stop.
18737 (linux_detach_one_lwp): Don't check for removed breakpoints.
18738 (check_removed_breakpoint): Delete.
18739 (status_pending_p): Rename to ...
18740 (status_pending_p_callback): ... this. Don't check for removed
18741 breakpoints. Don't consider threads that are stopped from GDB's
18743 (linux_wait_for_lwp): Always read the stop_pc here.
18744 (cancel_breakpoint): New.
18745 (step_over_bkpt): New global.
18746 (linux_wait_for_event_1): Implement stepping over breakpoints.
18747 (gdb_wants_lwp_stopped): New.
18748 (gdb_wants_all_stopped): New.
18749 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18750 single-step traps here. Store the thread's last reported target
18752 (send_sigstop): Don't clear stop_expected. Always set it,
18754 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18755 (cancel_finished_single_step): New.
18756 (cancel_finished_single_steps): New.
18757 (wait_for_sigstop): Don't cancel finished single-step traps here.
18758 (linux_resume_one_lwp): Don't check for removed breakpoints.
18759 Don't set `step' on non-hardware step archs.
18760 (linux_set_resume_request): Ignore resume_stop requests if already
18761 stopping or stopped. Set the lwp's last_resume_kind.
18762 (resume_status_pending_p): Don't check for removed breakpoints.
18763 (need_step_over_p): New.
18764 (start_step_over): New.
18765 (finish_step_over): New.
18766 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18767 requests. Clear the thread's last reported target waitstatus.
18768 Don't use the `suspended' flag. Don't consider pending breakpoints.
18769 (linux_resume): Start a step-over if necessary.
18770 (proceed_one_lwp): New.
18771 (proceed_all_lwps): New.
18772 (unstop_all_lwps): New.
18773 * linux-low.h (struct lwp_info): Rewrite comment for the
18774 `suspended' flag. Add the `stop_pc' field. Delete the
18775 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18776 Add `'last_resume_kind' and `need_step_over' fields.
18777 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18778 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18779 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18780 (set_raw_breakpoint_at): New.
18781 (set_breakpoint_at): Rewrite to use it.
18782 (reinsert_breakpoint_handler): Delete.
18783 (set_reinsert_breakpoint): New.
18784 (reinsert_breakpoint_by_bp): Delete.
18785 (delete_reinsert_breakpoints): New.
18786 (uninsert_breakpoint): Rewrite.
18787 (uninsert_breakpoints_at): New.
18788 (reinsert_breakpoint): Rewrite.
18789 (reinsert_breakpoints_at): New.
18790 (check_breakpoints): Rewrite.
18791 (breakpoint_here): New.
18792 (breakpoint_inserted_here): New.
18793 (check_mem_read): Adjust.
18794 * mem-break.h (breakpoints_supported, breakpoint_here)
18795 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18796 (reinsert_breakpoint_by_bp): Delete declaration.
18797 (delete_reinsert_breakpoints): Declare.
18798 (reinsert_breakpoint): Delete declaration.
18799 (reinsert_breakpoints_at): Declare.
18800 (uninsert_breakpoint): Delete declaration.
18801 (uninsert_breakpoints_at): Declare.
18802 (check_breakpoints): Adjust prototype.
18803 * server.h: Adjust include order.
18804 (struct thread_info): Declare here. Add a `last_status' field.
18806 2010-03-23 Michael Snyder <msnyder@vmware.com>
18808 * server.c (crc32): New function.
18809 (handle_query): Add handling for 'qCRC:' request.
18811 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18813 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18814 lwp had been stopped by a watchpoint.
18816 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18818 * server.h (internal_error): Declare.
18819 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18820 * utils.c (internal_error): New function.
18822 2010-03-15 Andreas Schwab <schwab@redhat.com>
18824 * configure.srv: Fix typo setting srv_regobj.
18826 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18828 * linux-low.c (fetch_register): Avoid passing a non string literal
18830 (usr_store_inferior_registers): Ditto.
18832 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18834 * linux-low.c (linux_write_memory): Bail out early if peeking
18837 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18839 * linux-low.h (struct lwp_info): New fields
18840 `stopped_by_watchpoint' and `stopped_data_address'.
18841 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18842 here, and cache them in the lwp object.
18843 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18845 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18847 (linux_stopped_by_watchpoint): Rewrite.
18848 (linux_stopped_data_address): Rewrite.
18850 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18852 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18853 switching the current inferior, not before.
18855 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18857 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18858 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18859 i386-linux.c and amd64-linux.c.
18860 (reg-i386.o): Removed.
18861 (reg-i386.c): Likewise.
18862 (reg-i386-linux.o): Likewise.
18863 (reg-i386-linux.c): Likewise.
18864 (reg-x86-64.o): Likewise.
18865 (reg-x86-64.c): Likewise.
18866 (reg-x86-64-linux.o): Likewise.
18867 (reg-x86-64-linux.c): Likewise.
18869 (i386.c): Likewise.
18870 (i386-linux.o): Likewise.
18871 (i386-linux.c): Likewise.
18872 (amd64.o): Likewise.
18873 (amd64.c): Likewise.
18874 (amd64-linux.o): Likewise.
18875 (amd64-linux.c): Likewise.
18877 * configure.srv (srv_i386_regobj): New.
18878 (srv_i386_linux_regobj): Likewise.
18879 (srv_amd64_regobj): Likewise.
18880 (srv_amd64_linux_regobj): Likewise.
18881 (srv_i386_32bit_xmlfiles): Likewise.
18882 (srv_i386_64bit_xmlfiles): Likewise.
18883 (srv_i386_xmlfiles): Likewise.
18884 (srv_amd64_xmlfiles): Likewise.
18885 (srv_i386_linux_xmlfiles): Likewise.
18886 (srv_amd64_linux_xmlfiles): Likewise.
18887 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18888 srv_xmlfiles to $srv_i386_xmlfiles.
18889 (i[34567]86-*-mingw32ce*): Likewise.
18890 (i[34567]86-*-mingw*): Likewise.
18891 (i[34567]86-*-nto*): Likewise.
18892 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18893 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18894 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18895 (x86_64-*-linux*): Likewise.
18897 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18898 (init_registers_amd64_linux): New.
18899 (x86_arch_setup): Replace init_registers_x86_64_linux with
18900 init_registers_amd64_linux.
18902 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18904 * configure.ac: Check for libdl. If it is not available link against
18905 static libthread_db.
18906 * configure: Regenerate.
18908 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18912 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18913 handing a read watchpoint.
18914 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18916 2010-02-12 Doug Evans <dje@google.com>
18918 * linux-low.c (linux_supports_tracefork_flag): Document.
18919 (linux_look_up_symbols): Add comment.
18921 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18923 * regcache.c (supply_register): Clear regcache if buf is NULL.
18925 2010-02-02 Nicolas Roche <roche@sourceware.org>
18926 Joel Brobecker <brobecker@adacore.com>
18928 * inferiors.c (find_inferior): Add function documentation.
18929 (unloaded_dll): Handle the case where the unloaded dll has not
18930 been previously registered in the dll list.
18932 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18934 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18935 (thumb2_breakpoint): New.
18936 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18938 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18940 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18941 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18944 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18946 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18948 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18950 * linux-s390-low.c (s390_collect_ptrace_register)
18951 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18953 2010-01-21 Doug Evans <dje@google.com>
18955 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18956 (PTRACE_ARG4_TYPE): New macro.
18957 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18958 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18959 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18960 (usr_store_inferior_registers): Ditto.
18961 (linux_read_memory, linux_write_memory): Ditto.
18962 (linux_test_for_tracefork): Ditto.
18964 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18965 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18967 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18969 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18972 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18974 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18975 prototype to take a regcache. Adjust.
18977 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18979 * regcache.h (struct thread_info): Forward declare.
18980 (struct regcache): New.
18981 (new_register_cache): Adjust prototype.
18982 (get_thread_regcache): Declare.
18983 (free_register_cache): Adjust prototype.
18984 (registers_to_string, registers_from_string): Ditto.
18985 (supply_register, supply_register_by_name, collect_register)
18986 (collect_register_as_string, collect_register_by_name): Ditto.
18987 * regcache.c (struct inferior_regcache_data): Delete.
18988 (get_regcache): Rename to ...
18989 (get_thread_regcache): ... this. Adjust. Switch inferior before
18990 fetching registers.
18991 (regcache_invalidate_one): Adjust.
18992 (regcache_invalidate): Fix prototype.
18993 (new_register_cache): Return the new register cache.
18994 (free_register_cache): Change prototype.
18995 (realloc_register_cache): Adjust.
18996 (registers_to_string): Change prototype to take a regcache. Adjust.
18997 (registers_from_string): Ditto.
18998 (register_data): Ditto.
18999 (supply_register): Ditto.
19000 (supply_register_by_name): Ditto.
19001 (collect_register): Ditto.
19002 (collect_register_as_string): Ditto.
19003 (collect_register_by_name): Ditto.
19004 * server.c (process_serial_event): Adjust.
19005 * linux-low.h (regset_fill_func, regset_store_func): Change
19007 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19009 * linux-low.c (get_stop_pc): Adjust.
19010 (check_removed_breakpoint): Adjust.
19011 (linux_wait_for_event): Adjust.
19012 (linux_resume_one_lwp): Adjust.
19013 (fetch_register): Add regcache parameter. Adjust.
19014 (usr_store_inferior_registers): Ditto.
19015 (regsets_fetch_inferior_registers): Ditto.
19016 (regsets_store_inferior_registers): Ditto.
19017 (linux_fetch_registers, linux_store_registers): Ditto.
19018 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19020 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19022 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19023 prototype to take a regcache.
19024 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19025 * remote-utils.c (convert_ascii_to_int, outreg)
19026 (prepare_resume_reply): Change prototype to take a regcache.
19028 * target.h (struct target_ops) <fetch_registers, store_registers>:
19029 Change prototype to take a regcache.
19030 (fetch_inferior_registers, store_inferior_registers): Change
19031 prototype to take a regcache. Adjust.
19032 * proc-service.c (ps_lgetregs): Adjust.
19033 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19034 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19035 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19036 take a regcache. Adjust.
19037 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19038 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19039 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19040 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19041 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19042 (cris_cannot_fetch_register):
19043 (cris_breakpoint_at): Change prototype to take a regcache.
19045 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19046 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19047 to take a regcache. Adjust.
19048 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19050 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19051 take a regcache. Adjust.
19052 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19053 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19054 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19055 * linux-mips-low.c (mips_get_pc):
19056 (mips_set_pc): Change prototype to take a regcache. Adjust.
19057 (mips_reinsert_addr): Adjust.
19058 (mips_collect_register): Change prototype to take a regcache.
19060 (mips_supply_register):
19061 (mips_collect_register_32bit, mips_supply_register_32bit)
19062 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19063 (mips_store_fpregset): Ditto.
19064 * linux-ppc-low.c (ppc_supply_ptrace_register)
19065 (ppc_supply_ptrace_register): Ditto.
19066 (parse_spufs_run): Adjust.
19067 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19068 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19069 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19070 take a regcache. Adjust.
19071 * linux-s390-low.c (s390_collect_ptrace_register)
19072 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19073 (s390_set_pc): Change prototype to take a regcache. Adjust.
19074 (s390_arch_setup): Adjust.
19075 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19076 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19077 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19078 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19079 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19081 (sparc_breakpoint_at): Adjust.
19082 * linux-xtensa-low.c (xtensa_fill_gregset):
19083 (xtensa_store_gregset):
19084 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19085 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19086 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19087 prototype to take a regcache. Adjust.
19088 * win32-arm-low.c (arm_fetch_inferior_register)
19089 (arm_store_inferior_register): Change prototype to take a
19091 * win32-i386-low.c (i386_fetch_inferior_register)
19092 (i386_store_inferior_register): Change prototype to take a
19094 * win32-low.c (child_fetch_inferior_registers)
19095 (child_store_inferior_registers): Change prototype to take a
19097 (win32_wait): Adjust.
19098 (win32_fetch_inferior_registers): Change prototype to take a
19100 (win32_store_inferior_registers): Adjust.
19101 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19102 store_inferior_register>: Change prototype to take a regcache.
19104 2010-01-20 Doug Evans <dje@google.com>
19106 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19108 (linux_wait_for_event1, linux_init_signals): Ditto.
19109 (W_STOPCODE): Provide definition if missing.
19111 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19113 * linux-low.c (linux_core_of_thread): New.
19114 (compare_ints, show_process, list_threads): New.
19115 (linux_qxfer_osdata): Report threads and cores.
19116 (linux_target_op): Register linux_core_of_thread.
19117 * remote-utils.c (prepare_resume_reply): Report the core.
19118 (buffer_xml_printf): Support %d specifier.
19119 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19121 (handle_query): Handle qXfer:threads. Announce availability
19123 * target.h (struct target_ops): New field core_of_thread.
19125 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19127 * Makefile.in (clean): Remove new generated files.
19128 (reg-s390.o, reg-s390.c): Remove rules.
19129 (reg-s390x.o, reg-s390x.c): Likewise.
19130 (s390-linux32.o, s390-linux32.c): Add rules.
19131 (s390-linux64.o, s390-linux64.c): Likewise.
19132 (s390x-linux64.o, s390x-linux64.c): Likewise.
19133 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19134 * linux-s390-low.c: Include <elf.h>.
19135 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19136 (init_registers_s390): Remove prototype.
19137 (init_registers_s390x): Likewise.
19138 (init_registers_s390_linux32): Add prototype.
19139 (init_registers_s390_linux64): Likewise.
19140 (init_registers_s390x_linux64): Likewise.
19141 (s390_num_regs_3264): New define.
19142 (s390_regmap_3264): New global variable.
19143 (s390_cannot_fetch_register): Remove obsolete check.
19144 (s390_cannot_store_register): Likewise.
19145 (s390_collect_ptrace_register): Handle upper/lower register halves.
19146 (s390_supply_ptrace_register): Likewise.
19147 (s390_fill_gregset): Update to register number changes.
19148 (s390_get_hwcap): New routine.
19149 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19150 Install appropriate regmap and register set.
19152 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19154 * server.c (gdbserver_version): Update copyright year to 2010.
19155 * gdbreplay.c (gdbreplay_version): Likewise.
19157 2009-12-28 Doug Evans <dje@google.com>
19159 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19160 elf/external.h. Include <elf.h> instead but only if necessary.
19162 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19164 * linux-low.c (linux_remove_process): Remove `detaching'
19165 parameter. Don't release/detach from thread_db here.
19166 (linux_kill): Release/detach from thread_db here, ...
19167 (linux_detach): ... and here, before actually detaching.
19168 (linux_wait_1): ... and here, when a process exits.
19169 * thread-db.c (any_thread_of): New.
19170 (thread_db_free): Switch the current inferior to a thread of the
19173 2009-12-21 Doug Evans <dje@google.com>
19175 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19177 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19178 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19179 warning ifndef __NR_tkill. Move setting of errno there too.
19180 Delete unnecessary resetting of errno after syscall.
19181 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19183 * configure.ac: Check for dladdr.
19184 * config.in: Regenerate.
19185 * configure: Regenerate.
19186 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19187 (try_thread_db_load): Update.
19189 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19191 2009-12-18 Doug Evans <dje@google.com>
19193 * event-loop.c: Include unistd.h if it exists.
19195 * linux-low.c (my_waitpid): Move definition away from being in
19196 between linux_tracefork_child/linux_test_for_tracefork.
19198 * gdb_proc_service.h (psaddr_t): Fix type.
19199 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19200 signature to match glibc.
19202 2009-12-16 Doug Evans <dje@google.com>
19204 * linux-low.c (linux_read_memory): Fix argument to read.
19206 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19208 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19209 events, don't leave current_inferior pointing at null.
19211 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19213 * win32-low.c (LOG): Delete.
19214 (OUTMSG): Output to stderr.
19215 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19216 on compile time LOG macro.
19217 (win32_wait): Fix debug output.
19219 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19221 * win32-low.c (win32_add_one_solib): If the dll name is
19222 "ntdll.dll", prepend the system directory to the dll path.
19224 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19226 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19228 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19229 Vladimir Prus <vladimir@codesourcery.com>
19231 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19232 * configure.ac: Check for __mcoldfire__ and set
19233 gdb_cv_m68k_is_coldfire.
19234 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19235 reg-cf.o and reg-m68k.o.
19236 * configure: Regenerated.
19238 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19240 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19241 Pass it to thread_db_free.
19242 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19243 proper `detaching' argument to linux_remove_process.
19244 * linux-low.h (thread_db_free): Add `detaching' parameter.
19245 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19247 (thread_db_free): Add `detaching' parameter. Only
19248 call td_ta_clear_event if detaching from process.
19250 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19252 * thread-db.c (thread_db_free): Fix typo.
19254 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19257 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19259 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19261 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19262 with an i686 compiler.
19263 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19265 * configure: Rebuilt.
19267 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19271 * server.c (handle_search_memory_1): Correct read_addr initialization
19272 in loop for searching subsequent chunks.
19274 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19276 * configure.ac: New --with-libthread-db option.
19277 * thread-db.c: Allow direct dependence on libthread_db.
19278 (thread_db_free): Adjust.
19279 * config.in: Regenerate.
19280 * configure: Likewise.
19282 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19285 * thread-db.c (attach_thread): New function.
19286 (maybe_attach_thread): Return success/failure.
19287 (find_new_threads_callback): Adjust.
19288 (thread_db_find_new_threads): Loop until no new threads.
19290 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19292 * proc-service.c (ps_lgetregs): Formatting.
19294 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19296 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19297 * configure.ac: Adjust.
19298 * linux-low.h (struct process_info_private): Move members to struct
19300 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19301 * linux-low.c (linux_remove_process): Adjust.
19302 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19303 * server.c (handle_query): Move code ...
19304 (handle_monitor_command): ... here. New function.
19305 * target.h (struct target_ops): New member.
19306 * thread-db.c (struct thread_db): New.
19307 (libthread_db_search_path): New variable.
19308 (thread_db_create_event, thread_db_enable_reporting)
19309 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19310 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19311 (try_thread_db_load_1, dladdr_to_soname): New functions.
19312 (try_thread_db_load, thread_db_load_search): New functions.
19313 (thread_db_init): Search for libthread_db.
19314 (thread_db_free): New function.
19315 (thread_db_handle_monitor_command): Likewise.
19316 * config.in: Regenerate.
19317 * configure: Regenerate.
19319 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19321 * spu-low.c (spu_kill): Wait for inferior to terminate.
19322 Call clear_inferiors.
19323 (spu_detach): Call clear_inferiors.
19325 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19327 * aclocal.m4: Regenerate.
19328 * config.in: Likewise.
19329 * configure: Likewise.
19331 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19333 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19334 (parse_spufs_run): New function.
19335 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19336 (ppc_breakpoint_at): Handle SPU breakpoints.
19338 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19340 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19341 (SPUFS_MAGIC): Define.
19342 (spu_enumerate_spu_ids): New function.
19343 (linux_qxfer_spu): New function.
19344 (linux_target_ops): Install linux_qxfer_spu.
19346 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19348 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19349 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19350 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19351 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19352 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19353 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19354 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19355 (init_registers_powerpc_cell32l): Add prototype.
19356 (init_registers_powerpc_cell64l): Likewise.
19357 (ppc_arch_setup): Detect Cell/B.E. architecture.
19359 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19361 * Makefile.in (datarootdir): New variable.
19363 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19365 * linux-low.c (linux_write_memory): Update debugging output.
19366 * Makefile.in (clean): Add new descriptions.
19367 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19368 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19369 * configure.srv: Add new files for arm*-*-linux*.
19370 * linux-arm-low.c: Add new declarations.
19371 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19372 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19373 (HWCAP_VFPv3D16): New.
19374 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19375 instead of __IWMMXT__.
19376 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19377 (arm_arch_setup): New.
19378 (target_regsets): Remove #ifdef. Add VFP regset.
19379 (the_low_target): Use arm_arch_setup.
19381 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19383 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19384 the main thread again.
19386 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19388 Adding Neutrino gdbserver.
19389 * configure: Regenerated.
19390 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19391 * configure.srv (i[34567]86-*-nto*): New target.
19392 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19393 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19394 (nto_comctrl) [__QNX__]: New function.
19395 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19397 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19399 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19402 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19403 Pedro Alves <pedro@codesourcery.com>
19405 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19406 don't support CONTEXT_EXTENDED_REGISTERS.
19407 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19408 (the_low_target): Install them.
19409 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19410 failing with ERROR_PIPE_NOT_CONNECTED.
19412 2009-06-30 Doug Evans <dje@google.com>
19413 Pierre Muller <muller@ics.u-strasbg.fr>
19415 Add h/w watchpoint support to x86-linux, win32-i386.
19416 * Makefile.in (SFILES): Add i386-low.c
19417 (i386_low_h): Define.
19418 (i386-low.o): Add dependencies.
19419 (linux-x86-low.o): Add i386-low.h dependency.
19420 (win32-i386-low.o): Ditto.
19421 * i386-low.c: New file.
19422 * i386-low.h: New file.
19423 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19424 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19425 * linux-low.c (linux_add_process): Initialize arch_private.
19426 (linux_remove_process): Free arch_private.
19427 (add_lwp): Initialize arch_private.
19428 (delete_lwp): Free arch_private.
19429 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19431 * linux-low.h (process_info_private): New member arch_private.
19432 (lwp_info): New member arch_private.
19433 (linux_target_ops): New members new_process, new_thread,
19435 (ptid_of): New macro.
19436 * linux-x86-low.c: Include stddef.h, i386-low.h.
19437 (arch_process_info): New struct.
19438 (arch_lwp_info): New struct.
19439 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19440 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19441 (i386_dr_low_get_status): New function.
19442 (x86_insert_point, x86_remove_point): New functions.
19443 (x86_stopped_by_watchpoint): New function.
19444 (x86_stopped_data_address): New function.
19445 (x86_linux_new_process, x86_linux_new_thread): New functions.
19446 (x86_linux_prepare_to_resume): New function.
19447 (the_low_target): Add entries for insert_point, remove_point,
19448 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19450 * server.c (debug_hw_points): New global.
19451 (monitor_show_help): Document set debug-hw-points.
19452 (handle_query): Process "set debug-hw-points".
19453 * server.h (debug_hw_points): Declare.
19454 (paddress): Declare.
19455 * utils.c (NUMCELLS, CELLSIZE): New macros.
19456 (get_sell, xsnprintf, paddress): New functions.
19457 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19458 remove_point, stopped_by_watchpoint, stopped_data_address.
19459 * win32-i386-low.c: Include i386-low.h.
19460 (debug_reg_state): Replaces dr.
19461 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19462 (i386_dr_low_get_status): New function.
19463 (i386_insert_point, i386_remove_point): New functions.
19464 (i386_stopped_by_watchpoint): New function.
19465 (i386_stopped_data_address): New function.
19466 (i386_initial_stuff): Update.
19467 (get_thread_context,set_thread_context,i386_thread_added): Update.
19468 (the_low_target): Add entries for insert_point,
19469 remove_point, stopped_by_watchpoint, stopped_data_address.
19470 * win32-low.c (win32_insert_watchpoint): New function.
19471 (win32_remove_watchpoint): New function.
19472 (win32_stopped_by_watchpoint): New function.
19473 (win32_stopped_data_address): New function.
19474 (win32_target_ops): Add entries for insert_watchpoint,
19475 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19476 * win32-low.h (win32_target_ops): New members insert_point,
19477 remove_point, stopped_by_watchpoint, stopped_data_address.
19479 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19481 * server.c (process_serial_event): Re-return unsupported, not
19482 error, if the type isn't recognized. Re-allow supporting only
19483 insert or remove packets. Also call require_running for
19484 breakpoints. Add missing break statement to default case. Tidy.
19485 * target.h (struct target_ops): Rename insert_watchpoint to
19486 insert_point, and remove_watchpoint to remove_point.
19488 * linux-low.h (struct linux_target_ops): Likewise.
19489 * linux-low.c (linux_insert_watchpoint): Rename to ...
19490 (linux_insert_point): ... this. Adjust.
19491 (linux_remove_watchpoint): Rename to ...
19492 (linux_remove_point): ... this. Adjust.
19493 (linux_target_ops): Adjust.
19494 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19495 (cris_insert_point): ... this.
19496 (cris_remove_watchpoint): Rename to ...
19497 (cris_remove_point): ... this.
19498 (the_low_target): Adjust.
19500 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19502 * server.c (handle_v_kill): Pass signal_pid to
19503 kill_inferior if multi_process is zero.
19505 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19507 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19508 * target.h (target_ops): Comment for *_watchpoint to make it clear
19509 the functions can get types '0' and '1'.
19511 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19513 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19514 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19515 * regcache.c (get_regcache): Likewise.
19516 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19517 * win32-low.c (child_fetch_inferior_registers): Remove check for
19520 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19521 Pedro Alves <pedro@codesourcery.com>
19523 * target.h (struct target_ops) <supports_multi_process>: New
19525 (target_supports_multi_process): New.
19526 * server.c (handle_query): Even if GDB reports support, only
19527 enable multi-process if the target also supports it. Report
19528 multi-process support only if the target backend supports it.
19529 * linux-low.c (linux_supports_multi_process): New function.
19530 (linux_target_ops): Install it as target_supports_multi_process
19533 2009-05-24 Doug Evans <dje@google.com>
19535 Global renaming of find_thread_pid to find_thread_ptid.
19536 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19537 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19538 All callers updated.
19540 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19541 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19544 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19545 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19546 (linux_resume_one_lwp): Ditto.
19548 2009-05-23 Doug Evans <dje@google.com>
19550 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19551 from struct inferior_list_entry * to struct lwp_info *.
19552 All callers updated.
19554 2009-05-13 Doug Evans <dje@google.com>
19556 * linux-x86-low.c: Don't include assert.h.
19557 (x86_siginfo_fixup): Use fatal, not assert.
19558 (x86_arch_setup): Fix comment.
19560 2009-05-12 Doug Evans <dje@google.com>
19562 Biarch support for i386/amd64 gdbserver.
19563 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19564 Add linux-x86-low.c.
19565 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19566 (linux-x86-low.o): Add.
19567 * linux-x86-64-low.c: Delete.
19568 * linux-i386-low.c: Delete.
19569 * linux-x86-low.c: New file.
19570 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19572 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19574 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19575 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19576 (linux_child_pid_to_exec_file): New function.
19577 (elf_64_header_p, elf_64_file_p): New functions.
19578 (siginfo_fixup): New function.
19579 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19580 give target a chance to convert layout.
19581 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19582 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19584 2009-05-07 Doug Evans <dje@google.com>
19586 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19587 (regsets_store_inferior_registers): Ditto.
19589 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19593 * linux-low.c (must_set_ptrace_flags): Delete.
19594 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19596 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19597 `lwp->must_set_ptrace_flags' instead.
19598 (linux_wait_for_event_1): Set ptrace options here.
19599 (linux_wait_1): ... not here.
19601 2009-04-30 Doug Evans <dje@google.com>
19603 * inferiors.c (started_inferior_callback): New function.
19604 (attached_inferior_callback): New function.
19605 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19606 * server.c (print_started_pid, print_attached_pid): New functions.
19607 (detach_or_kill_for_exit): New function.
19608 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19609 * server.h (have_started_inferiors_p): Declare.
19610 (have_attached_inferiors_p): Declare.
19612 * inferiors.c (remove_process): Fix memory leak, free process.
19613 * linux-low.c (linux_remove_process): New function.
19614 (linux_kill): Call it instead of remove_process.
19615 (linux_detach, linux_wait_1): Ditto.
19617 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19619 * configure.srv: Add x86 Windows CE target.
19621 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19623 * inferiors.c (get_thread_process): Make global.
19624 * server.h (get_thread_process): Add prototype.
19625 * thread-db.c (find_one_thread): Use get_thread_process
19626 instead of current_process.
19627 (thread_db_get_tls_address): Do not crash if called when
19628 thread layer is not yet initialized.
19630 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19632 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19633 * spu-low.c (current_tid): Rename to ...
19634 (current_ptid): ... this.
19635 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19636 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19637 ptid_get_lwp (current_ptid) instead of current_tid.
19638 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19639 instead of current_tid. Use find_process_pid to verify pid
19640 argument is valid. Pass proper argument to remove_process.
19641 (spu_thread_alive): Compare current_ptid instead of current_tid.
19642 (spu_resume): Likewise.
19644 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19646 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19649 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19651 Implement the multiprocess extensions, and add linux multiprocess
19654 * server.h (ULONGEST): Declare.
19655 (struct ptid, ptid_t): New.
19656 (minus_one_ptid, null_ptid): Declare.
19657 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19658 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19659 (struct inferior_list_entry): Change `id' type from unsigned from
19661 (struct sym_cache, struct breakpoint, struct
19662 process_info_private): Forward declare.
19663 (struct process_info): Declare.
19664 (current_process): Declare.
19665 (all_processes): Declare.
19666 (initialize_inferiors): Declare.
19667 (add_thread): Adjust to use ptid_t.
19668 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19669 (add_process, remove_process, find_thread_pid): Declare.
19670 (find_inferior_id): Adjust to use ptid_t.
19671 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19672 (multi_process): Declare.
19673 (push_event): Adjust to use ptid_t.
19674 (read_ptid, write_ptid): Declare.
19675 (prepare_resume_reply): Adjust to use ptid_t.
19676 (clear_symbol_cache): Declare.
19677 * inferiors.c (all_processes): New.
19678 (null_ptid, minus_one_ptid): New.
19679 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19680 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19681 (add_thread): Change unsigned long to ptid. Remove gdb_id
19683 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19684 (gdb_id_to_thread): Rename to ...
19685 (find_thread_pid): ... this. Change unsigned long to ptid.
19686 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19687 (loaded_dll, pull_pid_from_list): Adjust.
19688 (add_process, remove_process, find_process_pid)
19689 (get_thread_process, current_process, initialize_inferiors): New.
19690 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19691 (struct target_waitstatus) <related_pid>: Ditto.
19692 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19693 return type to int.
19694 (struct target_ops) <join>: Add `pid' argument.
19695 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19696 (struct target_ops) <wait>: Add `ptid' field. Change return type
19698 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19699 (mywait): Add `ptid' argument. Change return type to ptid_t.
19700 (target_pid_to_str): Declare.
19701 * target.c (set_desired_inferior): Adjust to use ptids.
19702 (mywait): Add new `ptid' argument. Adjust.
19703 (target_pid_to_str): New.
19704 * mem-break.h (free_all_breakpoints): Declare.
19705 * mem-break.c (breakpoints): Delelete.
19706 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19707 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19708 to use per-process breakpoint list.
19709 (free_all_breakpoints): New.
19710 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19711 (symbol_cache, all_symbols_looked_up): Delete.
19713 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19715 (prepare_resume_reply): Change ptid argument's type from unsigned
19716 long to ptid_t. Adjust. Implement W;process and X;process.
19717 (free_sym_cache, clear_symbol_cache): New.
19718 (look_up_one_symbol): Adjust to per-process symbol cache. *
19719 * server.c (cont_thread, general_thread, step_thread): Change type
19721 (attached): Delete.
19722 (multi_process): New.
19723 (last_ptid): Change type to ptid_t.
19724 (struct vstop_notif) <ptid>: Change type to ptid_t.
19725 (queue_stop_reply, push_event): Change `ptid' argument's type to
19727 (discard_queued_stop_replies): Add `pid' argument.
19728 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19729 changes. Don't reference the `attached' global.
19730 (attach_inferior): Adjust to mywait interface changes.
19731 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19732 features. Handle and report "multiprocess+". Handle
19734 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19736 (handle_v_kill): New.
19737 (handle_v_stopped): Adjust to use target_pid_to_str.
19738 (handle_v_requests): Allow multiple attaches and runs when
19739 multiprocess extensions are in effect. Handle "vKill".
19740 (myresume): Adjust to use ptids.
19741 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19742 (handle_status): Adjust to discard_queued_stop_replies interface
19744 (first_thread_of, kill_inferior_callback)
19745 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19746 (main): Call initialize_inferiors. Adjust to use ptids, killing
19747 and detaching from all inferiors. Handle multiprocess packet
19749 * linux-low.h: Include gdb_proc_service.h.
19750 (struct process_info_private): New.
19751 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19752 <lwpid_of>: Use ptid_get_lwp.
19753 (get_lwp_thread): Adjust.
19754 (struct lwp_info): Add `dead' member.
19755 (find_lwp_pid): Declare.
19756 * linux-low.c (thread_db_active): Delete.
19757 (new_inferior): Adjust comment.
19758 (inferior_pid): Delete.
19759 (linux_add_process): New.
19760 (handle_extended_wait): Adjust.
19761 (add_lwp): Change unsigned long to ptid.
19762 (linux_create_inferior): Add process to processes table. Adjust
19763 to use ptids. Don't set new_inferior here.
19764 (linux_attach_lwp): Rename to ...
19765 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19766 it. Adjust to use ptids.
19767 (linux_attach_lwp): New.
19768 (linux_attach): Add process to processes table. Don't set
19770 (struct counter): New.
19771 (second_thread_of_pid_p, last_thread_of_process_p): New.
19772 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19773 multiple processes.
19774 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19775 processes. Remove process from process table.
19776 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19777 to multiple processes.
19778 (any_thread_of): New.
19779 (linux_detach): Add `pid' argument, and handle it. Remove process
19780 from processes table.
19781 (linux_join): Add `pid' argument. Handle it.
19782 (linux_thread_alive): Change unsighed long argument to ptid_t.
19783 Consider dead lwps as not being alive.
19784 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19785 threads we're not interested in.
19786 (same_lwp, find_lwp_pid): New.
19787 (linux_wait_for_lwp): Change `pid' argument's type from int to
19789 (linux_wait_for_event): Rename to ...
19790 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19791 from int to ptid_t. Adjust.
19792 (linux_wait_for_event): New.
19793 (linux_wait_1): Add `ptid' argument. Change return type to
19794 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19795 that exit from the process table.
19796 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19798 (mark_lwp_dead): New.
19799 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19800 stopping all threads, mark its main lwp as dead.
19801 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19803 (fetch_register, usr_store_inferior_registers)
19804 (regsets_fetch_inferior_registers)
19805 (regsets_store_inferior_registers, linux_read_memory)
19806 (linux_write_memory): Inline `inferior_pid'.
19807 (linux_look_up_symbols): Adjust to use per-process
19808 `thread_db_active'.
19809 (linux_request_interrupt): Adjust to use ptids.
19810 (linux_read_auxv): Inline `inferior_pid'.
19811 (initialize_low): Don't reference thread_db_active.
19812 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19813 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19814 (ps_getpid): Return the pid of the current inferior.
19815 * thread-db.c (proc_handle, thread_agent): Delete.
19816 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19818 (find_one_thread): Change argument type to ptid_t. Adjust to
19820 (maybe_attach_thread): Adjust to per-process data and ptids.
19821 (thread_db_find_new_threads): Ditto.
19822 (thread_db_init): Ditto.
19823 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19824 processes table. Adjust to use ptids.
19825 (spu_kill, spu_detach): Adjust interface. Remove process from
19827 (spu_join, spu_thread_alive): Adjust interface.
19828 (spu_wait): Adjust interface. Remove process from processes
19829 table. Adjust to use ptids.
19830 * win32-low.c (current_inferior_tid): Delete.
19831 (current_inferior_ptid): New.
19832 (debug_event_ptid): New.
19833 (thread_rec): Take a ptid. Adjust.
19834 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19835 (child_delete_thread): Ditto.
19836 (do_initial_child_stuff): Add `attached' argument. Add process to
19838 (child_fetch_inferior_registers, child_store_inferior_registers):
19840 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19841 (win32_attach): Pass 1 to do_initial_child_stuff.
19842 (win32_kill): Adjust interface. Remove process from processes
19844 (win32_detach): Ditto.
19845 (win32_join): Adjust interface.
19846 (win32_thread_alive): Take a ptid.
19847 (win32_resume): Adjust to use ptids.
19848 (get_child_debug_event): Ditto.
19849 (win32_wait): Adjust interface. Remove exiting process from
19852 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19854 Non-stop mode support.
19856 * server.h (non_stop): Declare.
19857 (gdb_client_data, handler_func): Declare.
19858 (delete_file_handler, add_file_handler, start_event_loop):
19860 (handle_serial_event, handle_target_event, push_event)
19861 (putpkt_notif): Declare.
19862 * target.h (enum resume_kind): New.
19863 (struct thread_resume): Replace `step' field by `kind' field.
19864 (TARGET_WNOHANG): Define.
19865 (struct target_ops) <wait>: Add `options' argument.
19866 <supports_non_stop, async, start_non_stop>: New fields.
19867 (target_supports_non_stop, target_async): New.
19868 (start_non_stop): Declare.
19869 (mywait): Add `options' argument.
19870 * target.c (mywait): Add `options' argument. Print child exit
19871 notifications here.
19872 (start_non_stop): New.
19873 * server.c (non_stop, own_buf, mem_buf): New globals.
19874 (struct vstop_notif): New.
19875 (notif_queue): New global.
19876 (queue_stop_reply, push_event, discard_queued_stop_replies)
19877 (send_next_stop_reply): New.
19878 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19880 (attach_inferior): In non-stop mode, don't wait for the target
19882 (handle_general_set): Handle QNonStop.
19883 (handle_query): When handling qC, return the current general
19884 thread, instead of the first thread of the list.
19885 (handle_query): If the backend supports non-stop mode, include
19886 QNonStop+ in the qSupported query response.
19887 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19889 (handle_v_attach, handle_v_run): Handle non-stop mode.
19890 (handle_v_stopped): New.
19891 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19892 (myresume): Adjust to use resume_kind. Handle non-stop.
19893 (queue_stop_reply_callback): New.
19894 (handle_status): Handle non-stop mode.
19895 (main): Clear non_stop flag on reconnection. Use the event-loop.
19896 Refactor serial protocol handling from here ...
19897 (process_serial_event): ... to this new function. When GDB
19898 selects any thread, select one here. In non-stop mode, wait until
19899 GDB acks all pending events before exiting.
19900 (handle_serial_event, handle_target_event): New.
19901 * remote-utils.c (remote_open): Install remote_desc in the event
19903 (remote_close): Remove remote_desc from the event loop.
19904 (putpkt_binary): Rename to...
19905 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19906 (putpkt_binary): New as wrapper around putpkt_binary_1.
19907 (putpkt_notif): New.
19908 (prepare_resume_reply): In non-stop mode, don't change the
19910 * event-loop.c: New.
19911 * Makefile.in (OBJ): Add event-loop.o.
19912 (event-loop.o): New rule.
19914 * linux-low.h (pid_of): Moved here.
19916 (get_lwp_thread): Use lwpid_of.
19917 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19918 * linux-low.c (pid_of): Delete.
19919 (inferior_pid): Use lwpid_of.
19920 (linux_event_pipe): New.
19921 (target_is_async_p): New.
19923 (handle_extended_wait): Use lwpid_of.
19924 (add_lwp): Don't set lwpid field.
19925 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19926 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19927 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19928 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19929 first. Adjust to linux_wait_for_event interface changes. Use
19931 (linux_detach): Don't delete the main lwp here.
19932 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19933 (status_pending_p): Don't consider explicitly suspended lwps.
19934 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19935 pointer. Add OPTIONS argument. Change return type to int. Use
19936 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19937 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19938 pointer. Add status pointer argument. Return a pid instead of a
19939 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19940 changes. In non-stop mode, don't switch to a random thread.
19941 (linux_wait): Rename to...
19942 (linux_wait_1): ... this. Add target_options argument, and handle
19943 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19944 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19945 clean exit and signal exit code. Don't stop all threads in
19946 non-stop mode. In all-stop mode, only stop all threads when
19947 reporting a stop to GDB. Handle explicit thread stop requests.
19948 (async_file_flush, async_file_mark): New.
19950 (send_sigstop): Use lwpid_of.
19951 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19952 interface changes. In non-stop mode, don't switch to a random
19954 (linux_resume_one_lwp): Use lwpid_of.
19955 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19956 (linux_resume_one_thread): ... this. Handle resume_stop. In
19957 non-stop mode, don't look for pending flag in all threads.
19958 (resume_status_pending_p): Don't consider explicitly suspended
19960 (my_waitpid): Reimplement. Emulate __WALL.
19961 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19963 (sigchld_handler, linux_supports_non_stop, linux_async)
19964 (linux_start_non_stop): New.
19965 (linux_target_ops): Register linux_supports_non_stop, linux_async
19966 and linux_start_non_stop.
19967 (initialize_low): Install SIGCHLD handler.
19968 * thread-db.c (thread_db_create_event, find_one_thread)
19969 (thread_db_get_tls_address): Use lwpid_of.
19970 * win32-low.c (win32_detach): Adjust to use resume_kind.
19971 (win32_wait): Add `options' argument.
19972 * spu-low.c (spu_resume): Adjust to use resume_kind.
19973 (spu_wait): Add `options' argument.
19975 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19977 Decouple target code from remote protocol.
19979 * target.h (enum target_waitkind): New.
19980 (struct target_waitstatus): New.
19981 (struct target_ops) <wait>: Return an unsigned long. Take a
19982 target_waitstatus pointer instead of a char pointer.
19983 (mywait): Likewise.
19984 * target.c (mywait): Change prototype to return an unsigned long.
19985 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19986 * server.h (thread_from_wait, old_thread_from_wait): Delete
19988 (prepare_resume_reply): Change prototype to take a
19990 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19991 (last_status, last_ptid): New.
19992 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19993 pid instead of a signal.
19994 (attach_inferior): Remove "status" and "signal" parameters.
19996 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19998 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19999 (handle_v_requests, myresume): Remove "status" and "signal"
20000 parameters. Adjust.
20001 (handle_status): New.
20002 (main): Delete local `status'. Adjust.
20003 * remote-utils.c: Include target.h.
20004 (prepare_resume_reply): Change prototype to take a
20005 target_waitstatus. Adjust.
20007 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20009 * spu-low.c (spu_wait): Adjust.
20010 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20012 (win32_wait): Adjust.
20014 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20016 * target.h (struct thread_resume): Delete leave_stopped member.
20017 (struct target_ops): Add a `n' argument to the `resume' callback.
20018 * server.c (start_inferior): Adjust.
20019 (handle_v_cont, myresume): Adjust.
20020 * linux-low.c (check_removed_breakpoint): Adjust to resume
20021 interface change, and to removed leave_stopped field.
20022 (resume_ptr): Delete.
20023 (struct thread_resume_array): New.
20024 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20025 resume interface change.
20026 (linux_continue_one_thread, linux_queue_one_thread)
20027 (resume_status_pending_p): Check if the resume field is NULL
20028 instead of checking the leave_stopped member.
20029 (linux_resume): Adjust to the target resume interface change.
20030 * spu-low.c (spu_resume): Adjust to the target resume interface
20032 * win32-low.c (win32_detach, win32_resume): Ditto.
20034 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20036 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20038 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20040 (linux_continue_one_thread): Only preserve the stepping flag if
20041 there's a pending breakpoint.
20043 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20045 * server.c (main): After the inferior having exited, call
20046 remote_close before exiting gdbserver.
20048 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20050 Fix size of FPSCR in Power 7 processors.
20051 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20052 (PPC_FEATURE_HAS_DFP): New #define.
20053 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20056 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20058 * server.c (handle_query) Whitespace and formatting.
20060 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20062 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20063 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20064 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20065 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20066 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20067 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20068 Makefile.in, configure.ac: Fix whitespace throughout.
20069 * configure: Regenerate.
20071 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20073 * inferiors.c (find_inferior): Make it safe for the callback
20074 function to delete the currently iterated inferior.
20076 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20078 * Makefile.in (linuw_low_h): Move higher.
20079 (thread-db.o): Depend on $(linux_low_h).
20081 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20083 Rename "process" to "lwp" throughout.
20085 * linux-low.c (all_processes): Rename to...
20086 (all_lwps): ... this.
20087 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20088 (add_process): Rename to ...
20089 (add_lwp): ... this. Adjust.
20090 (linux_create_inferior): Adjust.
20091 (linux_attach_lwp): Adjust.
20092 (linux_attach): Adjust.
20093 (linux_kill_one_process): Rename to ...
20094 (linux_kill_one_lwp): ... this. Adjust.
20095 (linux_kill): Adjust.
20096 (linux_detach_one_process): Rename to ...
20097 (linux_detach_one_lwp): ... this. Adjust.
20098 (linux_detach): Adjust.
20099 (check_removed_breakpoint): Adjust.
20100 (status_pending_p): Adjust.
20101 (linux_wait_for_process): Rename to ...
20102 (linux_wait_for_lwp): ... this. Adjust.
20103 (linux_wait_for_event): Adjust.
20104 (send_sigstop): Adjust.
20105 (wait_for_sigstop): Adjust.
20106 (stop_all_processes): Rename to ...
20107 (stop_all_lwps): ... this.
20108 (linux_resume_one_process): Rename to ...
20109 (linux_resume_one_lwp): ... this. Adjust.
20110 (linux_set_resume_request, linux_continue_one_thread)
20111 (linux_queue_one_thread, resume_status_pending_p)
20112 (usr_store_inferior_registers, regsets_store_inferior_registers)
20113 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20115 * linux-low.h (get_process): Rename to ...
20116 (get_lwp): ... this. Adjust.
20117 (get_thread_process): Rename to ...
20118 (get_thread_lwp): ... this. Adjust.
20119 (get_process_thread): Rename to ...
20120 (get_lwp_thread): ... this. Adjust.
20121 (struct process_info): Rename to ...
20122 (struct lwp_info): ... this.
20123 (all_processes): Rename to ...
20124 (all_lwps): ... this.
20125 * proc-service.c (ps_lgetregs): Adjust.
20126 * thread-db.c (thread_db_create_event, find_one_thread)
20127 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20129 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20131 * server.c (handle_query): Handle "qAttached".
20133 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20135 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20136 GPLv3, update license URL.
20138 2009-03-01 Doug Evans <dje@google.com>
20140 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20141 (server_h): Add gdb_signals.h.
20142 (signals.o): Update.
20143 * server.h (target_signal_from_host,target_signal_to_host_p)
20144 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20146 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20148 * remote-utils.c (getpkt): Also generate remote-debug
20149 information if noack_mode is set.
20151 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20153 * server.c (handle_query): Report qXfer:siginfo:read and
20154 qXfer:siginfo:write as supported and handle them.
20155 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20156 * linux-low.c (linux_xfer_siginfo): New.
20157 (linux_target_ops): Set it.
20159 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20161 * server.c (gdbserver_usage): Mention --remote-debug.
20162 (main): Accept '--remote-debug' switch.
20164 2009-01-18 Doug Evans <dje@google.com>
20166 * regcache.c (new_register_cache): No need to check result of xcalloc.
20167 * server.c (handle_search_memory): Back out calls to xmalloc,
20168 result is checked and error is returned to user upon failure.
20169 (handle_query): Ditto. Add more checks for result of malloc.
20170 (handle_v_cont): Check result of malloc, report error back to
20172 (handle_v_run): Ditto. Call freeargv.
20173 * server.h (freeargv): Declare.
20174 * utils.c (freeargv): New fn.
20176 2009-01-15 Doug Evans <dje@google.com>
20178 * gdbreplay.c (perror_with_name): Make arg const char *.
20179 * server.h (target_signal_to_name): Make return type const char *.
20180 * thread-db.c (thread_db_err_str): Make return type const char *.
20181 * utils.c (perror_with_name): Make arg const char *.
20183 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20185 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20186 when handling a EXIT_PROCESS_DEBUG_EVENT.
20188 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20190 * gdbreplay.c (gdbreplay_version): Update copyright year.
20191 * server.c (gdbserver_version): Likewise.
20193 2009-01-05 Doug Evans <dje@google.com>
20195 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20196 (handle_extended_wait): Improve comment.
20198 2008-12-13 Doug Evans <dje@google.com>
20200 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20201 * server.h (ATTR_MALLOC): New macro.
20202 (xmalloc,xcalloc,xstrdup): Declare.
20203 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20204 * inferiors.c: Ditto.
20205 * linux-low.c: Ditto.
20206 * mem-break.c: Ditto.
20207 * regcache.c: Ditto.
20208 * remote-utils.c: Ditto.
20211 * win32-low.c: Ditto.
20213 2008-12-12 Doug Evans <dje@google.com>
20215 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20216 in debugging printf.
20218 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20220 2008-12-09 Doug Evans <dje@google.com>
20222 * linux-low.h (struct process_info): Delete member tid, unused.
20223 * thread-db.c (find_one_thread): Update.
20224 (maybe_attach_thread): Update.
20226 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20228 * target.h (struct target_ops): Add qxfer_osdata member.
20229 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20231 (linux_qxfer_osdata): New functions.
20232 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20234 * server.c (handle_query): Handle "qXfer:osdata:read:".
20235 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20236 (buffer_xml_printf): New functions.
20237 * server.h (struct buffer): New.
20238 (buffer_grow_str, buffer_grow_str0): New macros.
20239 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20240 (buffer_xml_printf): Declare.
20242 2008-11-24 Doug Evans <dje@google.com>
20244 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20246 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20248 * server.c (handle_v_run): Always use the supplied argument list.
20250 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20252 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20253 (xtensa_regmap_table): Add entry for scompare1.
20255 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20257 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20258 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20259 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20260 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20261 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20262 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20263 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20264 XML target descriptions.
20265 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20266 when inferior is running on an ISA 2.05 or later processor. Add
20267 special case to return offset for full 64-bit slot of FPSCR when
20270 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20272 * Makefile.in (SFILES, clean): Added sparc64 files.
20273 (reg-sparc64.o, reg-sparc64.c): New.
20274 * configure.srv (sparc*-*-linux*): New configuration.
20275 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20276 syscall arguments for SPARC.
20277 (regsets_store_inferior_registers): Likewise.
20278 * linux-sparc-low.c: New file.
20280 2008-10-21 Doug Evans <dje@google.com>
20282 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20283 (READLINE_DIR,READLINE_DEP): Delete.
20284 (INTERNAL_CFLAGS): Update.
20285 (LINTFLAGS): Update.
20287 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20289 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20290 whole argv from the last run, not just argv[0].
20292 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20294 * regcache.c (new_register_cache): Return NULL if the register
20295 cache size isn't known yet.
20296 (free_register_cache): Avoid dereferencing a NULL regcache.
20298 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20300 * configure.srv: Merge MIPS and MIPS64.
20302 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20304 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20306 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20308 * Makefile.in: Add required vsx dependencies.
20310 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20311 Declare init_registers_powerpc_vsx32l.
20312 Declare init_registers_powerpc_vsx64l.
20313 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20314 (ppc_arch_setup): Check for VSX in hwcap.
20315 (ppc_fill_vsxregset): New function.
20316 (ppc_store_vsxregset): New function.
20317 Add new VSX entry in regset_info target_regsets.
20319 * configure.srv: Add new VSX dependencies.
20321 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20323 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20324 (remote_open): Set or clear transport_is_reliable.
20325 (putpkt_binary): Don't expect acks in noack mode.
20326 (getpkt): Don't send ack/nac in noack mode.
20327 * server.c (handle_general_set): Handle QStartNoAckMode.
20328 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20330 (main): Reset noack_mode on every connection.
20331 * server.h (noack_mode): Declare.
20333 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20335 * Makefile.in (GDBREPLAY_OBS): New variable.
20336 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20338 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20339 Daniel Jacobowitz <dan@codesourcery.com>
20341 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20342 (usr_store_inferior_registers): Likewise.
20343 (regsets_store_inferior_registers): Likewise.
20345 2008-07-31 Rolf Jansen <rj@surtec.com>
20346 Pedro Alves <pedro@codesourcery.com>
20348 * configure.ac: Check for memmem declaration.
20349 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20350 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20351 (disable_packet_qfThreadInfo): Unconditionally compile.
20352 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20353 * configure, config.in: Regenerate.
20355 2008-07-28 Doug Kwan <dougkwan@google.com>
20357 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20358 (linux_write_memory): Remove declaration of errno.
20360 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20362 * linux-low.c (handle_extended_wait): Do not use "status"
20363 variable uninitialized.
20365 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20367 * server.c (handle_v_attach): Inhibit reporting dll changes.
20369 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20371 * remote-utils.c (prepare_resume_reply): If requested, don't
20372 output "thread:TID" in the T stop reply.
20374 * server.c (disable_packet_vCont, disable_packet_Tthread)
20375 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20376 (handle_query): If requested, disable support for qC, qfThreadInfo
20378 (handle_v_requests): If requested, disable support for vCont.
20379 (gdbserver_show_disableable): New.
20380 (main): Handle --disable-packet and --disable-packet=LIST.
20382 * server.h (disable_packet_vCont, disable_packet_Tthread)
20383 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20385 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20387 * server.c (gdbserver_usage): Mention --version.
20389 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20391 * Makefile.in (gdbreplay.o): New rule.
20393 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20395 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20396 message, not gdbserver.
20398 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20399 Nathan Sidwell <nathan@codesourcery.com>
20400 Joseph Myers <joseph@codesourcery.com>
20402 * acinclude.m4: Include ../../config/acx.m4.
20403 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20404 * configure, config.in: Regenerate.
20405 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20406 * server.c (gdbserver_version): Print PKGVERSION.
20407 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20408 (main): Adjust gdbserver_usage calls.
20409 * gdbreplay.c (version, host_name): Add declarations.
20410 (gdbreplay_version, gdbreplay_usage): New.
20411 (main): Accept --version and --help options.
20413 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20415 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20416 (arm_breakpoint_at): Handle Thumb.
20417 (the_low_target): Add comment.
20419 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20421 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20423 2008-05-09 Doug Evans <dje@google.com>
20425 * server.h (decode_search_memory_packet): Declare.
20426 * remote-utils.c (decode_search_memory_packet): New fn.
20427 * server.c (handle_search_memory_1): New fn.
20428 (handle_search_memory): New fn.
20429 (handle_query): Process qSearch:memory packets.
20431 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20433 * regcache.c (registers_length): Remove.
20434 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20435 full register packet.
20436 * regcache.h (registers_length): Remove prototype.
20437 * server.h (PBUFSIZ): Define to 16384.
20439 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20441 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20442 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20443 powerpc-64l.o, and powerpc-altivec64l.o.
20444 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20445 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20446 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20447 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20448 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20451 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20452 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20453 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20454 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20455 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20456 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20457 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20458 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20459 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20460 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20463 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20464 (init_registers_powerpc_32l): ... this new prototype.
20465 (init_registers_powerpc_32): Remove, replace by ...
20466 (init_registers_powerpc_altivec32l): ... this new prototype.
20467 (init_registers_powerpc_e500): Remove, replace by ...
20468 (init_registers_powerpc_e500l): ... this new prototype.
20469 (init_registers_ppc64): Remove, replace by ...
20470 (init_registers_powerpc_64l): ... this new prototype.
20471 (init_registers_powerpc_64): Remove, replace by ...
20472 (init_registers_powerpc_altivec64l): ... this new prototype.
20473 (ppc_num_regs): Set to 73.
20474 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20475 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20476 (ppc_cannot_store_register): Handle orig_r3 and trap.
20477 (ppc_arch_setup): Update init_registers_... calls.
20478 (ppc_fill_gregset): Handle orig_r3 and trap.
20480 * inferiors.c (clear_inferiors): Reset current_inferior.
20482 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20484 * acinclude.m4: Add override.m4.
20485 * configure: Regenerate.
20487 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20489 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20490 initial call to init_register_ppc64.
20492 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20494 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20495 single powerpc*-*-linux* case.
20496 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20498 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20500 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20501 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20503 * linux-ppc-low.c: Include <elf.h>.
20504 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20505 (ppc_hwcap): New global variable.
20506 (ppc_regmap): Remove __SPE__ #ifdef sections.
20507 (ppc_regmap_e500): New global variable.
20508 (ppc_cannot_store_register): Update __SPE__ special case.
20509 (ppc_get_hwcap): New function.
20510 (ppc_arch_setup): Use it to determine whether inferior supports
20511 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20512 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20513 Do not access registers if target does not support AltiVec.
20514 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20515 Do not access registers if target does not support SPE.
20516 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20518 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20520 * linux-low.c (disabled_regsets, num_regsets): New.
20521 (use_regsets_p): Delete.
20522 (linux_wait_for_process): Clear disabled_regsets.
20523 (regsets_fetch_inferior_registers): Check and set it.
20524 (regsets_store_inferior_registers): Likewise.
20525 (linux_fetch_registers, linux_store_registers): Do not use
20527 (initialize_low): Allocate disabled_regsets.
20529 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20531 * Makefile.in (LIBOBJS): New.
20532 (OBS): Use LIBOBJS.
20533 (memmem.o): New rule.
20534 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20535 * configure: Regenerated.
20537 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20539 * server.c (handle_query): Never return "unsupported" for
20540 qXfer:features:read queries.
20542 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20544 * server.c (get_features_xml): Fix inverted condition.
20545 (handle_query): Always support qXfer:feature:read.
20547 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20549 * server.c (wrapper_argv): New.
20550 (start_inferior): Handle wrapper_argv. If set, expect an extra
20552 (gdbserver_usage): Document --wrapper.
20553 (main): Parse --wrapper.
20555 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20557 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20558 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20559 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20560 (ppc_set_pc): Likewise.
20561 (ppc_arch_setup): New function.
20562 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20563 of collect_register.
20564 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20566 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20568 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20569 instead of linux-ppc64-low.o.
20570 * linux-ppc64-low.c: Remove file.
20571 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20572 (linux-ppc64-low.o): Remove rule.
20574 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20575 (init_registers_powerpc_64): Likewise.
20576 (ppc_regmap): Conditionally define depending on __powerpc64__.
20577 (ppc_cannot_store_register): Do not special-case "fpscr" when
20578 compiled on __powerpc64__.
20579 (ppc_collect_ptrace_register): New function.
20580 (ppc_supply_ptrace_register): New function.
20581 (ppc_breakpoint): Change type to "unsigned int".
20582 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20583 (the_low_target): Conditionally provide initializers for the
20584 arch_setup member depending on __powerpc64__. Install
20585 collect_ptrace_register and supply_ptrace_register members.
20587 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20589 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20590 * server.c (gdbserver_xmltarget): Define.
20591 (get_features_xml): Use it to replace "target.xml" and arch_string.
20593 * configure.srv: Remove srv_xmltarget. Add XML files that were
20594 mentioned there to srv_xmlfiles instead. Remove conditional tests
20595 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20596 srv_xmlfiles and srv_regobj to include all possible choices.
20597 * configure.ac (srv_xmltarget): Remove.
20598 (srv_xmlfiles): Do not add "target.xml".
20599 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20600 checks for supplementary target information.
20601 * configure: Regenerate.
20602 * Makefile.in (XML_TARGET): Remove.
20603 (target.xml): Remove rule.
20604 (clean): Do not clean up target.xml.
20605 (.PRECIOUS): Do not mention target.xml.
20607 * target.h (struct target_ops): Remove arch_string member.
20608 * linux-low.c (linux_arch_string): Remove.
20609 (linux_target_ops): Remove arch_string initializer.
20610 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20611 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20612 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20613 * spu-low.c (spu_arch_string): Remove.
20614 (spu_target_ops): Remove arch_string initializer.
20615 * win32-low.c (win32_arch_string): Remove.
20616 (win32_target_ops): Remove arch_string initializer.
20617 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20618 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20619 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20621 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20623 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20624 by collect_ptrace_register and supply_ptrace_register hooks.
20625 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20626 instead of checking for the_low_target.left_pad_xfer.
20627 (usr_store_inferior_registers): Use collect_ptrace_register callback
20628 instead of checking for the_low_target.left_pad_xfer.
20630 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20631 (s390_supply_ptrace_register): Likewise.
20632 (s390_fill_gregset): Call s390_collect_ptrace_register.
20633 (the_low_target): Update.
20635 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20636 (ppc_supply_ptrace_register): Likewise.
20637 (the_low_target): Update.
20639 * linux-i386-low.c (the_low_target): Update.
20640 * linux-x86-64-low.c (the_low_target): Update.
20642 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20644 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20645 reg-s390.o and reg-s390x.o.
20647 * linux-low.c (new_inferior): New global variable.
20648 (linux_create_inferior, linux_attach): Set it.
20649 (linux_wait_for_process): Call the_low_target.arch_setup after the
20650 target has stopped for the first time.
20651 (initialize_low): Do not call the_low_target.arch_setup.
20653 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20654 (s390_set_pc): Likewise.
20655 (s390_arch_setup): New function.
20656 (the_low_target): Use s390_arch_setup as arch_setup routine.
20658 * regcache.c (realloc_register_cache): New function.
20659 (set_register_cache): Call it for each existing regcache.
20661 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20663 * server.h (init_registers): Remove prototype.
20665 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20666 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20667 instead of init_registers ().
20668 * linux-arm-low.c (init_registers_arm): Add prototype.
20669 (init_registers_arm_with_iwmmxt): Likewise.
20670 (the_low_target): Add initializer for arch_setup field.
20671 * linux-cris-low.c (init_registers_cris): Add prototype.
20672 (the_low_target): Add initializer for arch_setup field.
20673 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20674 (the_low_target): Add initializer for arch_setup field.
20675 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20676 (the_low_target): Add initializer for arch_setup field.
20677 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20678 (the_low_target): Add initializer for arch_setup field.
20679 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20680 (the_low_target): Add initializer for arch_setup field.
20681 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20682 (the_low_target): Add initializer for arch_setup field.
20683 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20684 (init_registers_mips64_linux): Likewise.
20685 (the_low_target): Add initializer for arch_setup field.
20686 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20687 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20688 (the_low_target): Add initializer for arch_setup field.
20689 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20690 (init_registers_powerpc_64): Likewise.
20691 (the_low_target): Add initializer for arch_setup field.
20692 * linux-s390-low.c (init_registers_s390): Add prototype.
20693 (init_registers_s390x): Likewise.
20694 (the_low_target): Add initializer for arch_setup field.
20695 * linux-sh-low.c (init_registers_sh): Add prototype.
20696 (the_low_target): Add initializer for arch_setup field.
20697 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20698 (the_low_target): Add initializer for arch_setup field.
20699 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20700 (the_low_target): Add initializer for arch_setup field.
20702 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20703 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20704 instead of init_registers ().
20705 * win32-arm-low.c (init_registers_arm): Add prototype.
20706 (the_low_target): Add initializer for arch_setup field.
20707 * win32-i386-low.c (init_registers_i386): Add prototype.
20708 (the_low_target): Add initializer for arch_setup field.
20710 * spu-low.c (init_registers_spu): Add prototype.
20711 (initialize_low): Call initialie_registers_spu () instead of
20712 initialize_registers ().
20714 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20716 * server.c (handle_v_requests): When handling the vRun and vAttach
20717 packets, if already debugging a process, don't kill it. Return an
20720 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20722 * server.c (handle_query): Correct length check.
20724 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20726 * win32-low.c (do_initial_child_stuff): Add process handle
20727 parameter. Set current_process_handle and current_process_id from the
20728 parameters. Clear globals.
20729 (win32_create_inferior): Don't set current_process_handle and
20730 current_process_id here. Instead pass them on the call to
20731 do_initial_child_stuff.
20732 (win32_attach): Likewise.
20733 (win32_clear_inferiors): New.
20734 (win32_kill): Don't close the current process handle or the
20735 current thread handle here. Instead call win32_clear_inferiors.
20736 (win32_detach): Don't open a new handle to the process. Call
20737 win32_clear_inferiors.
20738 (win32_join): Don't rely on current_process_handle; open a new
20739 handle using the process id.
20740 (win32_wait): Call win32_clear_inferiors when the inferior process
20743 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20745 * server.c (monitor_show_help): Add "exit".
20747 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20749 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20750 (clean): Add reg-xtensa.c.
20751 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20752 * configure.srv (xtensa*-*-linux*) New target.
20753 * linux-xtensa-low.c: New.
20754 * xtensa-xtregs.c: New.
20756 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20758 * hostio.c: Don't include errno.h.
20759 (errno_to_fileio_errno): Move to hostio-errno.
20760 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20761 error number outputting to the target->hostio_last_error callback.
20762 (hostio_packet_error): Use FILEIO_EINVAL directly.
20763 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20764 calls to hostio_error.
20765 * hostio-errno.c: New.
20766 * server.h (hostio_last_error_from_errno): Declare.
20767 * target.h (target_ops): Add hostio_last_error member.
20768 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20769 as hostio_last_error handler.
20770 * spu-low.c (spu_target_ops): Likewise.
20771 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20772 (wince_hostio_last_error): New functions.
20773 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20774 as hostio_last_error handler.
20775 (win32_target_ops) [!_WIN32_WCE]: Register
20776 hostio_last_error_from_errno as hostio_last_error handler.
20777 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20778 (hostio-errno.o): New rule.
20779 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20780 * configure.srv (srv_hostio_err_objs): New variable. Default to
20782 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20783 * configure: Regenerate.
20785 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20787 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20788 (linux_kill, linux_detach): Clean up the process list.
20789 * remote-utils.c (remote_open): Improve port number parsing.
20790 (putpkt_binary, input_interrupt): Only send interrupts if the target
20792 * server.c (extended_protocol): Make static.
20793 (attached): Define earlier.
20794 (exit_requested, response_needed, program_argv): New variables.
20795 (target_running): New.
20796 (start_inferior): Clear attached here.
20797 (attach_inferior): Set attached here.
20798 (require_running): Define.
20799 (handle_query): Use require_running and target_running. Implement
20801 (handle_v_attach, handle_v_run): New.
20802 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20803 (gdbserver_usage): Update.
20804 (main): Redo argument parsing. Handle --debug and --multi. Handle
20805 --attach along with other options or after the port. Save
20806 program_argv. Support no initial program. Resynchronize
20807 communication with GDB after an error. Handle "monitor exit".
20808 Use require_running and target_running. Always allow the extended
20809 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20810 restart in extended mode.
20811 * README: Refer to the GDB manual. Update --attach usage.
20813 2007-12-20 Andreas Schwab <schwab@suse.de>
20815 * linux-low.c (STACK_SIZE): Define.
20816 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20817 (linux_test_for_tracefork): Likewise.
20819 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20821 * linux-low.c (linux_wait_for_event): Update messages. Do not
20822 reinsert auto-delete breakpoints.
20823 * mem-break.c (struct breakpoint): Change return type of handler to
20825 (set_breakpoint_at): Update handler type.
20826 (reinsert_breakpoint_handler): Return 1 instead of calling
20828 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20830 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20831 * mem-break.h (set_breakpoint_at): Update handler type.
20832 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20833 * win32-low.c (auto_delete_breakpoint): New.
20834 (get_child_debug_event): Use it.
20836 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20838 * configure.ac: Check for pread and pwrite.
20839 * hostio.c (handle_pread): Fall back to lseek and read.
20840 (handle_pwrite): Fall back to lseek and write.
20841 * config.in, configure: Regenerated.
20843 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20845 * server.c (myresume): Add own_buf argument.
20846 (main): Update calls.
20848 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20850 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20851 * remote-utils.c (remote_open): Do not call disable_async_io.
20852 (block_async_io): Delete.
20853 (unblock_async_io): Make static.
20854 (initialize_async_io): New.
20855 * server.c (handle_v_cont): Handle async I/O here.
20856 (myresume): Likewise. Move other common resume tasks here...
20857 (main): ... from here. Call initialize_async_io. Disable async
20858 I/O before the main loop.
20859 * server.h (initialize_async_io): Declare.
20860 (block_async_io, unblock_async_io): Delete prototypes.
20861 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20863 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20865 * remote-utils.c (readchar): Allow binary data in received messages.
20867 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20869 * win32-low.c (attaching): New global.
20870 (win32_create_inferior): Clear the `attaching' global.
20871 (win32_attach): Set the `attaching' global.
20872 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20873 attaching. Only set a breakpoint at the entry point if not
20876 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20878 * server.c (main): Don't report dll events on the initial
20879 connection on attaches.
20881 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20883 * server.c (main): Relax numerical bases supported for the pid of
20884 the --attach command line argument.
20886 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20888 * win32-low.c (win32_attach): Call OpenProcess before
20889 DebugActiveProcess, not after. Add last error output to error
20892 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20894 * win32-low.c (win32_get_thread_context)
20895 (win32_set_thread_context): New functions.
20896 (thread_rec): Use win32_get_thread_context.
20897 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20898 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20901 2007-12-03 Leo Zayas
20902 Pedro Alves <pedro_alves@portugalmail.pt>
20904 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20906 (child_add_thread): Minor cleanup.
20907 (child_continue): Resume artificially suspended threads before
20908 calling ContinueDebugEvent.
20909 (suspend_one_thread): New.
20910 (fake_breakpoint_event): New.
20911 (get_child_debug_event): Change return type to int. Check here if
20912 gdb sent an interrupt request. If a soft interrupt was requested,
20913 fake a breakpoint event. Return 0 if there is no event to handle,
20915 (win32_wait): Don't check here if gdb sent an interrupt request.
20916 Ensure there is a valid event to handle.
20917 (win32_request_interrupt): Add soft interruption method as last
20920 2007-12-03 Leo Zayas
20921 Pedro Alves <pedro_alves@portugalmail.pt>
20923 * win32-low.h (win32_thread_info): Add descriptions to the
20924 structure members. Replace `suspend_count' counter by a
20926 * win32-low.c (thread_rec): Update condition of when to get the
20927 context from the inferior. Rely on ContextFlags being set if it
20928 has already been retrieved. Only suspend the inferior thread if
20929 we haven't already. Warn if that fails.
20930 (continue_one_thread): s/suspend_count/suspended/. Only call
20931 ResumeThread once. Warn if that fails.
20933 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20935 * win32-low.c (win32_wait): Don't read from the inferior when it
20936 has already exited.
20938 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20940 * Makefile.in (win32_low_h): New variable.
20941 (win32-low.o): Add dependency on $(win32_low_h).
20942 (win32-arm-low.o, win32-i386-low.o): New rules.
20944 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20946 * hostio.c: Correct copyright year.
20948 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20950 * Makefile.in (OBS): Add hostio.o.
20951 (hostio.o): New rule.
20952 * server.h (handle_vFile): Declare.
20953 * hostio.c: New file.
20954 * server.c (handle_v_requests): Take packet_len and new_packet_len
20955 for binary packets. Call handle_vFile.
20956 (main): Update call to handle_v_requests.
20958 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20960 * linux-low.c: Include <sched.h>.
20962 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20964 * linux-low.c (linux_tracefork_grandchild): New.
20965 (linux_tracefork_child): Use clone.
20966 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20968 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20970 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20972 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20974 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20976 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20978 * inferiors.c (change_inferior_id): Delete.
20979 (add_pid_to_list, pull_pid_from_list): New.
20980 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20981 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20982 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20983 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20984 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20985 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20986 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20987 (using_threads): Always set to 1.
20988 (handle_extended_wait): New.
20989 (add_process): Do not set TID.
20990 (linux_create_inferior): Set must_set_ptrace_flags.
20991 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20992 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20993 (linux_thread_alive): Rename TID argument to LWPID.
20994 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20995 (linux_wait_for_event): Do not use TID or check using_threads. Update
20996 call to dead_thread_notify. Call handle_extended_wait.
20997 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20998 (send_sigstop): Delete sigstop_sent.
20999 (wait_for_sigstop): Avoid TID.
21000 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21001 (linux_test_for_tracefork): New.
21002 (linux_lookup_signals): Use thread_db_active and
21003 linux_supports_tracefork_flag.
21004 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21005 * linux-low.h (get_process_thread): Avoid TID.
21006 (struct process_ifo): Move thread_known and tid to the end. Remove
21008 (linux_attach_lwp, thread_db_init): Update prototypes.
21009 * server.h (change_inferior_id): Delete prototype.
21010 (add_pid_to_list, pull_pid_from_list): New prototypes.
21011 * thread-db.c (thread_db_use_events): New.
21012 (find_first_thread): Rename to...
21013 (find_one_thread): ...this. Update callers and messages. Do not
21014 call fatal. Check thread_db_use_events. Do not call
21015 change_inferior_id or new_thread_notify.
21016 (maybe_attach_thread): Update. Do not call new_thread_notify.
21017 (thread_db_init): Set thread_db_use_events. Check use_events.
21018 * utils.c (fatal, warning): Correct message prefix.
21020 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21022 * Makefile.in (clean): Remove new files.
21023 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21024 (powerpc-64.o, powerpc-64.c): New rules.
21025 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21026 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21028 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21030 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21031 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21032 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21033 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21034 (target_regsets): Add AltiVec and SPE register sets.
21035 * configure.ac: Check for AltiVec and SPE.
21036 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21037 (ppc_fill_vrregset, ppc_store_vrregset): New.
21038 (target_regsets): Add AltiVec register set.
21039 * configure: Regenerated.
21041 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21043 * linux-low.c (O_LARGEFILE): Define.
21044 (linux_read_memory): Use /proc/PID/mem.
21045 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21046 * configure, config.in: Regenerated.
21048 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21050 * linux-low.c (linux_wait_for_event): Do not pass signals while
21053 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21055 * win32-low.c (create_process): New.
21056 (win32_create_inferior): Use create_process instead of
21057 CreateProcess. If create_process failed retry appending an ".exe"
21058 suffix. Store the GetLastError result immediatelly after
21059 create_process calls and use it on the call to error.
21061 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21063 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21065 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21067 * configure.ac: Switch license to GPLv3.
21069 2007-08-01 Michael Snyder <msnyder@access-company.com>
21071 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21073 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21075 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21077 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21078 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21079 CloseToolhelp32Snapshot.
21080 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21081 CloseToolhelp32Snapshot.
21083 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21085 * server.c (main): Check for inferior exit before main loop.
21087 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21089 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21090 instead of on tmp_desc.
21092 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21093 Daniel Jacobowitz <dan@codesourcery.com>
21095 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21096 (add_thread): Minor cleanups.
21097 (clear_inferiors): Move lower in the file. Clear the DLL
21099 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21100 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21101 (xml_escape_text): New.
21102 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21104 (handle_v_cont): Report errors.
21105 (gdbserver_version): Update.
21106 (main): Correct size of own_buf. Do not report initial DLL events.
21107 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21108 (unloaded_dll, xml_escape_text): New.
21109 * win32-low.c (enum target_waitkind): Update comments.
21110 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21111 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21112 (win32_EnumProcessModules, win32_GetModuleInformation)
21113 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21114 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21115 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21116 (win32_Module32First, win32_Module32Next, load_toolhelp)
21117 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21118 (get_child_debug_event): Handle DLL events.
21119 (win32_wait): Likewise.
21121 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21123 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21124 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21126 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21128 * win32-low.c (handle_output_debug_string): Ignore event if not
21131 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21133 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21135 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21137 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21139 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21141 * inferiors.c (change_inferior_id): Add comment.
21142 * linux-low.c (check_removed_breakpoint): Add an early
21143 prototype. Improve debug output.
21144 (linux_attach): Doc update.
21145 (linux_detach_one_process, linux_detach): Clean up before releasing
21147 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21148 * linux-low.h (struct process_info): Doc improvement.
21149 * mem-break.c (delete_all_breakpoints): New.
21150 * mem-break.h (delete_all_breakpoints): New prototype.
21151 * thread-db.c (find_first_thread): New.
21152 (thread_db_create_event): Call it instead of
21153 thread_db_find_new_threads. Clean up unused variables.
21154 (maybe_attach_thread): Remove first thread handling.
21155 (thread_db_find_new_threads): Use find_first_thread.
21156 (thread_db_get_tls_address): Likewise.
21158 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21160 * thread-db.c (thread_db_find_new_threads): Add prototype.
21161 (thread_db_create_event): Check for the main thread before adding
21163 (maybe_attach_thread): Only enable event reporting if TID == 0.
21164 (thread_db_get_tls_address): Check for new threads.
21166 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21168 * linux-low.c (linux_create_inferior): Try execv before execvp.
21169 * spu-low.c (spu_create_inferior): Likewise.
21171 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21173 * linux-low.c (linux_create_inferior): Change execv to execvp.
21174 * spu-low.c (spu_create_inferior): Likewies.
21176 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21178 * Makefile.in (clean): Clean new files instead of deleted ones.
21179 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21180 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21182 * configure.srv: Specify XML files and new regformats for MIPS and
21184 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21185 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21186 an entry for the restart register.
21187 (mips_cannot_fetch_register, mips_cannot_store_register)
21188 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21189 register names to match the XML descriptions.
21190 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21191 restart register instead of $0.
21193 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21194 Markus Deuling <deuling@de.ibm.com>
21196 * remote-utils.c (decode_xfer_write): New function.
21197 * server.h (decode_xfer_write): Add prototype.
21198 * server.c (handle_query): Add PACKET_LEN argument. Support
21199 qXfer:spu:read and qXfer:spu:write packets.
21200 (main): Pass packet_len to handle_query.
21201 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21202 * target.h (target_ops): Add qxfer_spu.
21204 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21206 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21207 accessing non-seekable spufs files.
21209 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21211 * server.c (handle_query): Add reply for qC packet.
21213 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21214 Leo Zayas <lerele@champenstudios@com>
21216 * server.h (check_remote_input_interrupt_request): New function.
21217 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21218 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21219 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21220 (check_remote_input_interrupt_request): New function.
21221 * server.h (check_remote_input_interrupt_request): Declare.
21222 * win32-low.c (winapi_DebugBreakProcess,
21223 winapi_GenerateConsoleCtrlEvent): New typedefs.
21224 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21226 (win32_wait): Check for remote interrupt request
21227 with check_remote_input_interrupt_request.
21228 (win32_request_interrupt): New function.
21229 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21231 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21233 * win32-low.c (debug_registers_changed,
21234 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21235 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21236 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21237 (thread_rec): Get context using the low target.
21238 (child_add_thread): Call thread_added on the low target,
21239 which does the same thing.
21241 (do_initial_child_stuff): Remove debug registers references.
21242 Set context using the low target. Resume threads after
21243 setting the contexts.
21244 (child_continue): Remove dead variable. Remove debug
21245 registers references.
21246 (child_fetch_inferior_registers): Go through the low target.
21247 (do_child_store_inferior_registers): Remove.
21248 (child_store_inferior_registers): Go through the low target.
21249 (win32_resume): Remove debug registers references.
21250 Set context using the low target.
21251 (handle_exception): Change return type to void. Don't record
21252 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21253 first chance exception.
21254 (get_child_debug_event): Change return type to void. Remove
21255 goto loop. Always return after waiting for debug event.
21256 (win32_wait): Convert to switch statement. Handle spurious
21259 * win32-i386-low.c (debug_registers_changed,
21260 debug_registers_used): New.
21261 (initial_stuff): Rename to ...
21262 (i386_initial_stuff): ... this. Clear debug registers
21264 (store_debug_registers): Delete.
21265 (i386_get_thread_context): New.
21266 (load_debug_registers): Delete.
21267 (i386_set_thread_context): New.
21268 (i386_thread_added): New.
21269 (single_step): Rename to ...
21270 (i386_single_step): ... this.
21271 (do_fetch_inferior_registers): Rename to ...
21272 (i386_fetch_inferior_register): ... this.
21273 (i386_store_inferior_register): New.
21274 (the_low_target): Adapt to new interface.
21276 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21277 (arm_get_thread_context): New.
21278 (arm_set_thread_context): New.
21280 (do_fetch_inferior_registers): Rename to ...
21281 (arm_fetch_inferior_register): ... this.
21282 (arm_store_inferior_register): New.
21283 (arm_wince_breakpoint): Reimplement as unsigned long.
21284 (arm_wince_breakpoint_len): Define.
21285 (the_low_target): Adapt to new interface.
21287 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21288 load_debug_registers. Add get_thread_context, set_thread_context,
21289 thread_added and store_inferior_register. Rename
21290 fetch_inferior_registers to fetch_inferior_register.
21291 (regptr): Remove declaration.
21293 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21295 * linux-low.c (linux_detach): Change return type to int. Return 0.
21296 * spu-low.c (spu_detach): Likewise.
21298 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21300 * target.h (target_ops): Change return type of detach to int.
21302 (join_inferior): New.
21303 * server.c (main): Don't skip detach support on mingw32.
21304 If the inferior doesn't support detaching return error.
21305 Call join_inferior instead of using waitpid.
21306 * linux-low.c (linux_join): New.
21307 (linux_target_op): Add linux_join.
21308 * spu-low.c (spu_join): New.
21309 (spu_target_ops): Add spu_join.
21310 * win32-low.c (win32_detach): Adapt to new interface.
21311 Reopen current_process_handle before detaching. Issue a child
21312 resume before detaching.
21314 (win32_target_op): Add win32_join.
21316 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21318 * win32-low.c (win32-attach): Fix return value.
21319 * target.h (target_ops): Describe ATTACH return values.
21321 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21323 * win32-low.c (GETPROCADDRESS): Define.
21324 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21325 (winapi_DebugSetProcessKillOnExit): Likewise.
21326 (win32_create_inferior): Force usage of ansi CreateProcessA.
21327 (win32_attach): Use GETPROCADDRESS.
21328 (win32_detach): Likewise.
21330 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21332 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21334 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21336 * win32-low.c: Commit leftover changes from 2007-03-29.
21338 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21340 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21341 fields short instead of int. Add explicit padding.
21342 (i387_cache_to_fsave): Remove unnecessary casts.
21343 (i387_fsave_to_cache): Doc fix.
21344 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21346 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21348 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21349 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21351 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21353 * configure.srv (arm*-*-mingw32ce*): Move near the other
21356 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21358 * configure.ac: Add errno checking.
21359 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21360 sys/file.h and malloc.h.
21361 (AC_CHECK_DECLS): Add perror.
21362 (srv_mingwce): Handle.
21363 * configure.srv (i[34567]86-*-cygwin*): Add
21364 win32-i386-low.o to srv_tgtobj.
21365 (i[34567]86-*-mingw*): Likewise.
21366 (arm*-*-mingw32ce*): Add case.
21367 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21368 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21369 [__MINGW32CE__] (strerror): New function.
21370 [__MINGW32CE__] (errno): Define to GetLastError.
21371 [__MINGW32CE__] (COUNTOF): New macro.
21372 (remote_open): Remove extra close call.
21373 * mem-break.c (delete_breakpoint_at): New function.
21374 * mem-break.h (delete_breakpoint_at): Declare.
21375 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21376 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21377 [USE_WIN32API] (read, write): Add char* casts.
21378 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21379 * server.h: Include wincecompat.h on Windows CE.
21380 [HAVE_ERRNO_H]: Check.
21381 (perror): Declare if not declared.
21382 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21383 (perror_with_name): Remove errno declaration.
21384 * wincecompat.h: New.
21385 * wincecompat.c: New.
21386 * win32-low.h: New.
21387 * win32-arm-low.c: New.
21388 * win32-i386-low.c: New.
21389 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21390 (OUTMSG2): Make it safe.
21392 (COUNTOF): New macro.
21393 (NUM_REGS): Get it from the low target.
21394 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21395 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21396 (thread_rec): Let low target handle debug registers.
21397 (child_add_thread): Likewise.
21398 (child_init_thread_list): Likewise.
21399 (continue_one_thread): Likewise.
21401 (do_child_fetch_inferior_registers): Move to ...
21402 * win32-i386-low.c: ... here, and rename to ...
21403 (do_fetch_inferior_registers): ... this.
21404 * win32-low.c (child_fetch_inferior_registers):
21405 Go through the low target.
21406 (do_child_store_inferior_registers): Use regptr.
21407 (strwinerror): New function.
21408 (win32_create_inferior): Handle Windows CE.
21409 Use strwinerror instead of strerror on Windows error
21410 codes. Add program to the error output.
21411 Don't close the main thread handle on Windows CE.
21412 (win32_attach): Use coredll.dll on Windows CE.
21413 (win32_kill): Close current process and current
21415 (win32_detach): Use coredll.dll on Windows CE.
21416 (win32_resume): Let low target handle debug registers, and
21418 (handle_exception): Add/Remove initial breakpoint. Avoid
21419 non-existant WSTOPSIG on Windows CE.
21420 (win32_read_inferior_memory): Cast to remove warning.
21421 (win32_arch_string): Go through the low target.
21422 (initialize_low): Call set_breakpoint_data with the low
21423 target's breakpoint.
21424 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21425 FOP_REGNUM, mappings): Move to ...
21426 * win32-i386-low.c: ... here.
21427 * win32-low.c (win32_thread_info): Move to ...
21428 * win32-low.h: ... here.
21429 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21430 win32-arm-low.c and wincecompat.c.
21431 (all:): Add $EXEEXT.
21432 (install-only:): Likewise.
21433 (gdbserver:): Likewise.
21434 (gdbreplay:): Likewise.
21435 * config.in: Regenerate.
21436 * configure: Regenerate.
21438 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21440 * win32-low.c: Rename typedef thread_info to
21441 win32_thread_info throughout.
21443 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21445 * win32-i386-low.c: Rename to ...
21446 * win32-low.c: ... this.
21447 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21448 * Makefile.in: Likewise.
21450 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21452 * remote-utils.c (monitor_output): Constify msg parameter.
21453 * server.h (monitor_output): Likewise.
21454 * win32-i386-low.c (handle_output_debug_string): New.
21455 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21456 handle_output_debug_string.
21457 (get_child_debug_event): Likewise.
21459 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21461 * server.c (main): Correct strtoul check.
21463 2007-03-27 Jon Ringle <jon@ringle.org>
21465 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21467 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21469 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21471 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21473 * terminal.h: Check HAVE_SGTTY_H.
21475 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21477 * remote-utils.c (remote_open): Print out the assigned port number.
21479 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21481 * remote-utils.c (monitor_output): New function.
21482 * server.c (debug_threads): Define here.
21483 (monitor_show_help): New function.
21484 (handle_query): Handle qRcmd.
21485 (main): Do not handle 'd' packet.
21486 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21487 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21490 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21492 * Makefile.in (EXEEXT): New.
21493 (clean): Use $(EXEEXT).
21495 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21497 * target.h (target_ops): Rename send_signal to request_interrupt,
21498 and remove enum target_signal parameter.
21499 * linux-low.c (linux_request_interrupt): Rename from
21500 linux_send_signal, and always send SIGINT.
21501 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21502 and always send SIGINT.
21503 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21505 (input_interrupt): Likewise.
21507 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21509 * server.c (get_features_xml): Check if target implemented
21511 * win32-i386-low.c (win32_arch_string): New.
21512 (win32_target_ops): Add win32_arch_string as arch_string member.
21514 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21516 * spu-low.c (spu_arch_string): New.
21517 (spu_target_ops): Add spu_arch_string.
21519 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21521 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21522 * configure.ac: Do not check for terminal.h.
21523 * configure, config.in: Regenerated.
21525 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21527 * Makefile.in (OBS): Add $(XML_BUILTIN).
21528 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21530 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21531 (arm-with-iwmmxt.c): New.
21532 * config.in, configure: Regenerate.
21533 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21534 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21535 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21536 (arm*-*-linux*): Add iWMMXt and regset support.
21537 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21538 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21539 (arm_store_wmmxregset, target_regsets): New.
21540 * server.c (get_features_xml): Take annex argument. Check builtin
21542 (handle_query): Handle multiple annexes.
21544 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21546 * remote-utils.c [USE_WIN32API] (read, write): Define.
21547 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21550 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21552 * linux-i386-low.c (the_low_target): Set arch_string.
21553 * linux-x86-64-low.c (the_low_target): Likewise.
21554 * linux-low.c (linux_arch_string): New.
21555 (linux_target_ops): Add it.
21556 * linux-low.h (struct linux_target_ops): Add arch_string.
21557 * server.c (write_qxfer_response): Use const void * for DATA.
21558 (get_features_xml): New.
21559 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21560 * target.h (struct target_ops): Add arch_string method.
21562 2007-01-03 Denis Pilat <denis.pilat@st.com>
21563 Daniel Jacobowitz <dan@codesourcery.com>
21565 * linux-low.c (linux_kill): Handle being called with no threads.
21566 * win32-i386-low.c (win32_kill): Likewise.
21567 (get_child_debug_event): Clear current_process_handle.
21569 2006-12-30 Denis PILAT <denis.pilat@st.com>
21570 Daniel Jacobowitz <dan@codesourcery.com>
21572 * remote-utils.c (remote_open): Check the type of specified
21573 serial port devices before opening them.
21574 * server.c (main): Kill the inferior if an error occurs during
21575 the first remote_open.
21577 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21579 * README: Update supported targets.
21581 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21583 * Makefile.in (clean): Remove reg-mips64.c.
21584 (reg-mips64.c, reg-mips64.o): New rules.
21585 * configure.srv: Handle mips64. Include regset support for mips.
21586 * linux-mips-low.c (union mips_register): New.
21587 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21588 (mips_breakpoint, mips_breakpoint_at): Use int.
21589 (mips_collect_register, mips_supply_register)
21590 (mips_collect_register_32bit, mips_supply_register_32bit)
21591 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21592 (mips_store_fpregset, target_regsets): New.
21593 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21595 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21597 * configure.srv: Add target "spu*-*-*".
21598 * Makefile.in (clean): Remove reg-spu.c.
21599 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21600 * spu-low.c: New file.
21602 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21604 * configure.ac: Correct td_thr_tls_get_addr test.
21605 * configure: Regenerated.
21607 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21609 * linux-low.c (linux_wait_for_event): Reformat. Use the
21610 pass_signals array.
21611 * remote-utils.c (decode_address_to_semicolon): New.
21612 * server.c (pass_signals, handle_general_set): New.
21613 (handle_query): Mention QPassSignals for qSupported.
21614 (main): Call handle_general_set.
21615 * server.h (pass_signals, decode_address_to_semicolon): New.
21617 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21619 * server.c (handle_query): Correct error handling for read_auxv.
21621 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21623 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21624 and srv_linux_thread_db to yes.
21625 * linux-s390-low.c (s390_fill_gregset): New function.
21626 (target_regsets): Define data structure.
21628 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21630 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21631 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21632 * config.in, configure: Regenerated.
21633 * inferiors.c (gdb_id_to_thread): New function.
21634 (gdb_id_to_thread_id): Use it.
21635 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21636 * linux-low.h (struct process_info): Add th member.
21637 (thread_db_get_tls_address): New prototype.
21638 * remote-utils.c (decode_address): Make non-static.
21639 * server.c (handle_query): Handle qGetTLSAddr.
21640 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21641 * target.h (struct target_ops): Add get_tls_address.
21642 * thread-db.c (maybe_attach_thread): Save the thread handle.
21643 (thread_db_get_tls_address): New.
21645 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21647 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21648 (linux_resume_one_process): Take a siginfo_t *. Update all
21649 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21650 (struct pending_signals): Add a siginfo_t.
21651 (linux_wait_for_process): Always set last_status.
21652 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21653 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21654 * linux-low.h (struct process_info): Add last_status.
21656 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21658 * remote-utils.c (try_rle): New function.
21659 (putpkt_binary): Use it.
21661 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21663 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21664 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21665 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21666 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21667 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21670 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21672 * server.c (terminal_fd): New variable.
21673 (old_foreground_pgrp): Likewise.
21674 (restore_old_foreground_pgrp): New function.
21675 (start_inferior): Record the terminal file descriptor in terminal_fd
21676 and its original foreground group in old_foreground_pgrp. Register
21677 restore_old_foreground_pgrp with atexit().
21679 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21681 * server.c (handle_query): Correct qPart to qXfer.
21683 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21685 * configure.ac: Check for more headers which are missing on
21686 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21687 * configure.srv: Add Cygwin and mingw32.
21688 * remote-utils.c: Don't include headers unconditionally which
21689 are missing on mingw32. Include <winsock.h> for mingw32.
21690 (remote_open): Adjust for mingw32 support. Flush
21691 standard error after writing to it.
21692 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21693 (unblock_async_io, enable_async_io, disable_async_io)
21694 (readchar, getpkt): Update for Winsock support.
21695 (prepare_resume_reply): Expect a protocol signal number.
21696 * server.c: Disable <sys/wait.h> on mingw32.
21697 (start_inferior): Adjust for mingw32 support. Flush
21698 standard error after writing to it.
21699 (attach_inferior): Likewise. Use protocol signal
21701 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21703 * win32-i386-low.c: New file.
21704 * Makefile.in (XM_CLIBS): Set.
21705 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21706 (win32-i386-low.o): New dependency rule.
21707 * linux-low.c (linux_wait): Use target signal numbers.
21708 * target.h (struct target_ops): Doc fix.
21709 * server.h (target_signal_to_name): New prototype.
21710 * gdbreplay.c: Don't include headers unconditionally which
21711 are missing on mingw32. Include <winsock.h> for mingw32.
21712 (remote_close, remote_open): Adjust for Winsock support.
21713 * configure, config.in: Regenerated.
21715 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21717 * server.c (decode_xfer_read, write_qxfer_response): New.
21718 (handle_query): Take a packet length argument. Handle
21719 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21720 the qSupported response.
21721 (main): Update call to handle_query.
21723 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21725 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21726 (putpkt_binary): Renamed from putpkt and adjusted for binary
21728 (putpkt): New wrapper for putpkt_binary.
21729 (readchar): Don't mask off the high bit.
21730 (decode_X_packet): New function.
21731 * server.c (main): Call putpkt_binary if a handler sets the packet
21732 length. Save the length of the incoming packet. Handle 'X'.
21733 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21735 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21737 * server.c (handle_query): Handle qSupported.
21739 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21741 * remote-utils.c (all_symbols_looked_up): New variable.
21742 (look_up_one_symbol): Check it.
21743 * server.h (look_up_one_symbol): New declaration.
21744 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21746 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21748 * Makefile.in (linux-arm-low.o): Update dependencies.
21749 * linux-arm-low.c: Include "gdb_proc_service.h".
21750 (PTRACE_GET_THREAD_AREA): Define.
21751 (ps_get_thread_area): New function.
21753 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21755 * configure.srv (m68k*-*-uclinux*): New target.
21756 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21757 (linux_resume_one_process): Remove extraneous cast.
21758 (linux_read_offsets): New.
21759 (linux_target_op): Add linux_read_offsets on mmuless systems.
21760 * server.c (handle_query): Add qOffsets logic.
21761 * target.h (struct target_ops): Add read_offsets.
21763 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21765 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21766 (PTRACE_GET_THREAD_AREA): Define.
21767 (ps_get_thread_area): New function.
21768 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21769 (linux-x86-64-low.o): Update.
21771 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21773 * configure.ac: Remove checks for prfpregset_t.
21774 * gdb_proc_service.h: New file.
21775 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21776 new "gdb_proc_service.h".
21777 * proc-service.c: Likewise.
21778 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21779 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21780 * Makefile.in (gdb_proc_service_h): Updated.
21781 * configure, config.in: Regenerated.
21783 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21785 * remote-utils.c (prepare_resume_reply): Move declaration
21786 of gdb_id_from_wait to the top of the block.
21788 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21790 * linux-low.c (regsets_store_inferior_registers): Read the regset
21791 from the target before filling it.
21793 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21795 * server.c (attach_inferior): Return SIGTRAP for a successful
21798 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21800 * Makefile.in (OBS): Add version.o.
21801 (STAGESTUFF): Delete.
21802 (version.o): Add dependencies.
21803 (version.c): Replace rule.
21804 (clean): Remove version.c.
21805 * server.c (gdbserver_version): New.
21806 (gdbserver_usage): Use printf.
21807 (main): Handle --version and --help.
21808 * server.h (version, host_name): Add declarations.
21810 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21822 * linux-x86-64-low.c:
21824 * linux-s390-low.c:
21825 * linux-ppc64-low.c:
21827 * linux-mips-low.c:
21828 * linux-m68k-low.c:
21829 * linux-m32r-low.c:
21832 * linux-ia64-low.c:
21833 * linux-i386-low.c:
21834 * linux-crisv32-low.c:
21846 * gdbserver.1: Add (C) after Copyright. Update the FSF
21849 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21851 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21852 (arm_breakpoint_at): Recognize both breakpoints.
21853 (the_low_target): Use the correct breakpoint instruction.
21855 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21857 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21858 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21859 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21860 (the_low_target): Update.
21862 2005-10-25 Andreas Schwab <schwab@suse.de>
21864 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21866 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21867 (ia64_num_regs): Reduce to 462.
21869 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21871 * acinclude.m4: Correct quoting.
21872 * aclocal.m4: Regenerated.
21874 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21875 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21876 (thread_db_init): Call thread_db_err_str.
21877 * configure.ac: Check for TD_VERSION.
21878 * config.in, configure: Regenerated.
21880 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21882 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21884 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21886 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21887 is not available. Define HAVE_PTRACE_GETREGS if it is.
21888 * config.in, configure: Regenerated.
21889 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21890 * linux-i386-low.c, linux-m68k-low.c: Update to use
21891 HAVE_PTRACE_GETREGS.
21892 * linux-low.c (regsets_fetch_inferior_registers)
21893 (regsets_store_inferior_registers): Only return 0 if we processed
21895 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21896 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21898 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21900 * inferiors.c (struct thread_info): Add gdb_id.
21901 (add_thread): Add gdb_id argument.
21902 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21903 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21904 calls to add_thread.
21905 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21906 * server.c (handle_query): Use thread_to_gdb_id.
21907 (handle_v_cont, main): Use gdb_id_to_thread_id.
21908 * server.h (add_thread): Update prototype.
21909 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21912 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21914 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21915 left-padded registers.
21916 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21917 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21919 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21921 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21922 * configure: Regenerate.
21923 * config.in: Regenerate.
21924 * server.h (NEED_DECLARATION_STRERROR):
21925 Replace with !HAVE_DECL_STRERROR.
21927 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21929 * linux-low.c (linux_wait, linux_send_signal): Don't test
21930 an unsigned long variable for > 0 if it could be MAX_ULONG.
21931 * server.c (myresume): Likewise.
21932 * target.c (set_desired_inferior): Likewise.
21934 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21936 * configure.ac: Simplify and improve check for socklen_t.
21937 * configure, config.in: Regenerate.
21939 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21941 * acconfig.h: Remove.
21942 * configure.ac: Add a test for socklen_t. Use three-argument
21943 AC_DEFINE throughout.
21944 * config.in: Regenerated using autoheader 2.59.
21945 * configure: Regenerated.
21947 * gdbreplay.c (socklen_t): Provide a default.
21948 (remote_open): Use socklen_t.
21949 * remote-utils.c (socklen_t): Provide a default.
21950 (remote_open): Use socklen_t.
21951 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21954 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21956 * linux-low.c (linux_read_memory, linux_write_memory)
21957 (linux_read_auxv): Likewise.
21958 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21959 (check_mem_write): Likewise.
21960 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21962 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21963 (registers_from_string, register_data): Likewise.
21964 * server.c (handle_query, main): Likewise.
21965 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21966 (decode_M_packet): Likewise.
21967 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21968 * target.h (struct target_ops): Update read_memory, write_memory,
21970 (read_inferior_memory, write_inferior_memory): Update.
21971 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21972 to unsigned char *.
21973 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21974 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21975 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21976 linux-s390-low.c, linux-sh-low.c: Update for changes in
21977 read_inferior_memory and the_low_target->breakpoint.
21979 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21981 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21982 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21983 * configure.srv: Add powerpc64-*-linux*.
21984 * linux-ppc64-low.c: New file.
21986 2005-05-23 Orjan Friberg <orjanf@axis.com>
21988 * linux-cris-low.c: New file with support for CRIS.
21989 * linux-crisv32-low.c: Ditto for CRISv32.
21990 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21991 (clean): Add reg-cris.c and reg-crisv32.c.
21992 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21993 reg-crisv32.o, and reg-crisv32.c to make rules.
21994 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21995 recognized targets.
21997 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21999 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22000 of sizeof (PTRACE_XFER_TYPE).
22001 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22003 2005-05-12 Orjan Friberg <orjanf@axis.com>
22005 * target.h (struct target_ops): Add insert_watchpoint,
22006 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22007 pointers for hardware watchpoint support.
22008 * linux-low.h (struct linux_target_ops): Ditto.
22009 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22010 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22011 to linux_target_ops.
22012 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22014 * server.c (main): Recognize 'Z' and 'z' packets.
22016 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22018 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22019 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22020 (the_low_target): Add new members.
22022 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22024 * proc-service.c (ps_lgetregs): Search all_processes instead of
22027 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22029 * server.c (start_inferior): Change return type to int.
22030 (attach_inferior): Change sigptr to int *.
22031 (handle_v_cont, handle_v_requests): Change signal to int *.
22032 (main): Change signal to int.
22034 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22036 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22037 * configure.srv: Add m32r*-*-linux*.
22038 * linux-m32r-low.c: New file.
22040 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22042 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22044 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22046 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22047 Take unsigned long arguments for PIDs.
22048 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22049 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22050 (wait_for_sigstop, linux_resume_one_process)
22051 (regsets_fetch_inferior_registers, linux_send_signal)
22052 (linux_read_auxv): Likewise. Update the types of variables holding
22053 PIDs. Update format string specifiers.
22054 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22055 * remote-utils.c (prepare_resume_reply): Likewise.
22056 * server.c (cont_thread, general_thread, step_thread)
22057 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22059 (handle_query): Update format specifiers.
22060 (handle_v_cont, main): Use strtoul for thread IDs.
22061 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22062 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22063 (general_thread, step_thread, thread_from_wait)
22064 (old_thread_from_wait): Update.
22065 * target.h (struct thread_resume): Use unsigned long for THREAD.
22066 (struct target_ops): Use unsigned long for arguments to attach and
22069 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22071 * acinclude.m4: Include bfd/bfd.m4 directly.
22072 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22073 <agriffis@toolchain.org>.
22074 * aclocal.m4, configure: Regenerated.
22076 2005-01-07 Andrew Cagney <cagney@gnu.org>
22078 * configure.ac: Rename configure.in, require autoconf 2.59.
22079 * configure: Re-generate.
22081 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22083 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22084 LIBS when finished.
22085 * aclocal.m4: Regenerated.
22086 * configure: Regenerated.
22088 2004-11-21 Andreas Schwab <schwab@suse.de>
22090 * linux-m68k-low.c (m68k_num_gregs): Define.
22091 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22092 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22093 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22094 (m68k_breakpoint_at): New. Add to the_low_target.
22096 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22097 srv_linux_thread_db to yes.
22099 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22101 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22102 (ARCH_SET_FS): Likewise.
22103 (ARCH_GET_FS): Likewise.
22104 (ARCH_GET_GS): Likewise.
22106 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22108 * linux-i386-low.c (ps_get_thread_area): New.
22109 * linux-x86-64-low.c (ps_get_thread_area): New.
22110 * linux-low.c: Include <sys/syscall.h>.
22111 (linux_kill_one_process): Don't kill the first thread here.
22112 (linux_kill): Kill the first thread here.
22113 (kill_lwp): New function.
22114 (send_sigstop, linux_send_signal): Use it.
22115 * proc-service.c: Clean up #ifdefs.
22116 (fpregset_info): Delete.
22117 (ps_lgetregs): Update and enable implementation.
22118 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22120 * remote-utils.c (struct sym_cache, symbol_cache): New.
22121 (input_interrupt): Print a clearer message.
22122 (async_io_enabled): New variable.
22123 (enable_async_io, disable_async_io): Use it. Update comments.
22124 (look_up_one_symbol): Use the symbol cache.
22125 * thread-db.c (thread_db_look_up_symbols): New function.
22126 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22128 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22130 * configure.in: Test for -rdynamic.
22131 * configure: Regenerated.
22132 * Makefile (INTERNAL_LDFLAGS): New.
22133 (gdbserver, gdbreplay): Use it.
22135 2004-09-02 Andrew Cagney <cagney@gnu.org>
22137 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22139 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22141 * linux-low.c (linux_wait): Clear all_processes list also.
22143 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22145 * linux-low.c: Include <errno.h>. Remove extern declaration of
22148 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22150 * gdbreplay.c, server.h, utils.c: Update copyright years.
22152 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22154 * server.c (main): Print child status or termination signal from
22155 variable 'signal', not 'sig'.
22157 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22159 * linux-low.c (linux_read_memory): Change return type to
22160 int. Check for and return error from ptrace().
22161 * target.c (read_inferior_memory): Change return type to int. Pass
22162 back return status from the_target->read_memory().
22163 * target.h (struct target_ops): Adapt *read_memory() prototype.
22165 (read_inferior_memory): Adapt prototype.
22166 * server.c (main): Return an error packet if
22167 read_inferior_memory() returns an error.
22169 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22171 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22172 Unify with other clean targets.
22174 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22176 * server.c (handle_v_cont): Call set_desired_inferior.
22178 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22180 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22182 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22184 * linux-low.c (linux_wait): Unblock async I/O.
22185 (linux_resume): Block and enable async I/O.
22186 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22187 * server.h (block_async_io, unblock_async_io): Add prototypes.
22189 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22191 * remote-utils.c (remote_open): Print a status notice after
22192 opening a TCP port.
22193 * server.c (attach_inferior): Print a status notice after
22196 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22198 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22200 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22202 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22204 * server.c, target.h: Update copyright years.
22206 2004-02-25 Roland McGrath <roland@redhat.com>
22208 * target.h (struct target_ops): New member `read_auxv'.
22209 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22210 * linux-low.c (linux_read_auxv): New function.
22211 (linux_target_ops): Initialize `read_auxv' member to that.
22213 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22215 Committed by Jim Blandy <jimb@redhat.com>.
22217 * linux-s390-low.c (s390_num_regs): Update.
22218 (s390_regmap): Remove control registers. Use __s390x__ predefine
22219 instead of GPR_SIZE to distiguish s390 and s390x targets.
22221 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22223 * linux-low.c: Update copyright year.
22224 (check_removed_breakpoint): Clear pending_is_breakpoint.
22225 (linux_set_resume_request, linux_queue_one_thread)
22226 (resume_status_pending_p): New functions.
22227 (linux_continue_one_thread): Use process->resume.
22228 (linux_resume): Only resume threads if there are no pending events.
22229 * linux-low.h (struct process_info): Add resume request
22232 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22234 * regcache.c (new_register_cache): Clear the allocated register
22235 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22237 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22239 * linux-low.c (linux_resume): Take a struct thread_resume *
22241 (linux_wait): Update call.
22242 (resume_ptr): New static variable.
22243 (linux_continue_one_thread): Renamed from
22244 linux_continue_one_process. Use resume_ptr.
22245 (linux_resume): Use linux_continue_one_thread.
22246 * server.c (handle_v_cont, handle_v_requests): New functions.
22247 (myresume): New function.
22248 (main): Handle 'v' case.
22249 * target.h (struct thread_resume): New type.
22250 (struct target_ops): Change argument of "resume" to struct
22252 (myresume): Delete macro.
22254 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22256 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22257 (uninstall): Support DESTDIR.
22259 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22261 * configure.srv: Add xscale*linux copy of arm*linux entry.
22263 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22265 * linux-arm-low.c (arm_reinsert_addr): New function.
22266 (the_low_target): Add arm_reinsert_addr.
22268 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22270 * mem-break.c: Remove whitespace at end of file.
22272 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22274 * configure.in: Check whether we need to prototype strerror.
22275 * server.h: Optionally prototype strerror.
22276 * gdbreplay.c (perror_with_name): Use strerror.
22277 * linux-low.c (linux_attach_lwp): Use strerror.
22278 * utils.c (perror_with_name): Use strerror.
22279 * config.in, configure: Regenerated.
22281 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22283 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22284 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22286 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22288 * Makefile.in (SFILES): Update.
22289 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22290 low-sun3.c: Remove files.
22292 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22294 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22295 (linux_detach_one_process, linux_detach): New functions.
22296 (linux_target_ops): Add linux_detach.
22297 * server.c (main): Handle 'D' packet.
22298 * target.h (struct target_ops): Add "detach" member.
22299 (detach_inferior): Define.
22301 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22303 From Kelley Cook <kelleycook@wideopenwest.com>:
22304 * configure.srv: Accept i[34567]86 variants.
22306 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22308 * linux-low.c (linux_wait_for_event): Correct comment typos.
22309 (linux_resume_one_process): Call check_removed_breakpoint.
22310 (linux_send_signal): New function.
22311 (linux_target_ops): Add linux_send_signal.
22312 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22314 * target.h (struct target_ops): Add send_signal.
22316 2003-05-29 Jim Blandy <jimb@redhat.com>
22318 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22319 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22320 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22321 away part of the register's value.
22323 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22325 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22326 (linux_wait_for_event, linux_init_signals): Likewise.
22328 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22330 * configure.in: Check for stdlib.h.
22331 * configure: Regenerated.
22332 * config.in: Regenerated.
22334 2003-01-04 Andreas Schwab <schwab@suse.de>
22336 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22338 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22340 * Makefile.in: Remove obsolete code.
22342 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22344 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22345 defined(PT_FPR0_HI).
22347 2002-11-17 Stuart Hughes <seh@zee2.com>
22349 * linux-arm-low.c (arm_num_regs): Increase.
22350 (arm_regmap): Include status register.
22352 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22354 * linux-low.c (register_addr): Remove incorrect -1 check.
22356 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22358 * linux-low.c (linux_create_inferior): Call setpgid. Return
22360 (unstopped_p, linux_signal_pid): Remove.
22361 (linux_target_ops): Remove linux_signal_pid.
22362 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22363 global instead of target method.
22364 * target.h (struct target_ops): Remove signal_pid. Update comment
22365 for create_inferior.
22366 * server.c (signal_pid): New variable.
22367 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22368 gdbserver. Set the child to be the foreground process group.
22369 (attach_inferior): Set signal_pid.
22371 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22373 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22375 2002-08-20 Jim Blandy <jimb@redhat.com>
22377 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22380 2002-08-01 Andrew Cagney <cagney@redhat.com>
22382 * Makefile.in: Make chill references obsolete.
22384 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22386 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22387 * configure: Regenerate.
22388 * config.in: Regenerate.
22390 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22392 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22393 (perror_with_name, remote_close, remote_open, expect, play): Static.
22395 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22397 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22398 byte offsets instead of an array of indexes.
22399 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22401 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22403 * regcache.c: Add comment.
22405 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22407 * thread-db.c: New file.
22408 * proc-service.c: New file.
22409 * acinclude.m4: New file.
22410 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22411 proc-service.o, and thread-db.o.
22412 (linux-low.o): Add USE_THREAD_DB.
22413 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22414 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22415 * aclocal.m4: Regenerated.
22416 * config.in: Regenerated.
22417 * configure: Regenerated.
22418 * configure.in: Check for proc_service.h, sys/procfs.h,
22419 thread_db.h, and linux/elf.h headrs.
22420 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22421 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22422 Check for -lthread_db and thread support.
22423 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22424 PowerPC, and SuperH.
22425 * i387-fp.c: Constify arguments.
22426 * i387-fp.h: Likewise.
22427 * inferiors.c: (struct thread_info): Renamed from
22428 `struct inferior_info'. Remove PID member. Use generic inferior
22429 list header. All uses updated.
22430 (inferiors, signal_pid): Removed.
22431 (all_threads): New variable.
22432 (get_thread): Define.
22433 (add_inferior_to_list): New function.
22434 (for_each_inferior): New function.
22435 (change_inferior_id): New function.
22436 (add_inferior): Removed.
22437 (remove_inferior): New function.
22438 (add_thread): New function.
22439 (free_one_thread): New function.
22440 (remove_thread): New function.
22441 (clear_inferiors): Use for_each_inferior and free_one_thread.
22442 (find_inferior): New function.
22443 (find_inferior_id): New function.
22444 (inferior_target_data): Update argument type.
22445 (set_inferior_target_data): Likewise.
22446 (inferior_regcache_data): Likewise.
22447 (set_inferior_regcache_data): Likewise.
22448 * linux-low.c (linux_bp_reinsert): Remove.
22449 (all_processes, stopping_threads, using_thrads)
22450 (struct pending_signals, debug_threads, pid_of): New.
22451 (inferior_pid): Replace with macro.
22452 (struct inferior_linux_data): Remove.
22453 (get_stop_pc, add_process): New functions.
22454 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22455 Use add_process and add_thread.
22456 (linux_attach_lwp): New function, based on old linux_attach. Use
22457 add_process and add_thread. Set stop_expected for new threads.
22458 (linux_attach): New function.
22459 (linux_kill_one_process): New function.
22460 (linux_kill): Kill all LWPs.
22461 (linux_thread_alive): Use find_inferior_id.
22462 (check_removed_breakpoints, status_pending_p): New functions.
22463 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22464 Update. Use WNOHANG. Wait for cloned processes also. Update process
22465 struct for the found process.
22466 (linux_wait_for_event): New function.
22467 (linux_wait): Use it. Support LWPs.
22468 (send_sigstop, wait_for_sigstop, stop_all_processes)
22469 (linux_resume_one_process, linux_continue_one_process): New functions.
22470 (linux_resume): Support LWPs.
22471 (REGISTER_RAW_SIZE): Remove.
22472 (fetch_register): Use register_size instead. Call supply_register.
22473 (usr_store_inferior_registers): Likewise. Call collect_register.
22474 Fix recursive case.
22475 (regsets_fetch_inferior_registers): Improve error message.
22476 (regsets_store_inferior_registers): Add debugging.
22477 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22478 (unstopped_p, linux_signal_pid): New functions.
22479 (linux_target_ops): Add linux_signal_pid.
22480 (linux_init_signals): New function.
22481 (initialize_low): Call it. Initialize using_threads.
22482 * regcache.c (inferior_regcache_data): Add valid
22484 (get_regcache): Fetch registers lazily. Add fetch argument
22485 and update all callers.
22486 (regcache_invalidate_one, regcache_invalidate): New
22488 (new_register_cache): Renamed from create_register_cache.
22489 Return the new regcache.
22490 (free_register_cache): Change argument to a void *.
22491 (registers_to_string, registers_from_string): Call get_regcache
22492 with fetch flag set.
22493 (register_data): Make static. Pass fetch flag to get_regcache.
22494 (supply_register): Call get_regcache with fetch flag clear.
22495 (collect_register): Call get_regcache with fetch flag set.
22496 (collect_register_as_string): New function.
22497 * regcache.h: Update.
22498 * remote-utils.c (putpkt): Flush after debug output and use
22500 Handle input interrupts while waiting for an ACK.
22501 (input_interrupt): Use signal_pid method.
22502 (getpkt): Flush after debug output and use stderr.
22503 (outreg): Use collect_register_as_string.
22504 (new_thread_notify, dead_thread_notify): New functions.
22505 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22506 and general_thread.
22507 (look_up_one_symbol): Flush after debug output.
22508 * server.c (step_thread, server_waiting): New variables.
22509 (start_inferior): Don't use signal_pid. Update call to mywait.
22510 (attach_inferior): Update call to mywait.
22511 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22512 (main): Don't fetch/store registers explicitly. Use
22513 set_desired_inferior. Support proposed ``Hs'' packet. Update
22515 * server.h: Update.
22516 (struct inferior_list, struct_inferior_list_entry): New.
22517 * target.c (set_desired_inferior): New.
22518 (write_inferior_memory): Constify.
22519 (mywait): New function.
22520 * target.h: Update.
22521 (struct target_ops): New signal_pid method.
22522 (mywait): Removed macro, added prototype.
22524 * linux-low.h (regset_func): Removed.
22525 (regset_fill_func, regset_store_func): New.
22526 (enum regset_type): New.
22527 (struct regset_info): Add type field. Use new operation types.
22528 (struct linux_target_ops): stop_pc renamed to get_pc.
22529 Add decr_pc_after_break and breakpoint_at.
22530 (get_process, get_thread_proess, get_process_thread)
22531 (strut process_info, all_processes, linux_attach_lwp)
22532 (thread_db_init): New.
22534 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22535 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22536 (the_low_target): Add new members.
22537 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22538 (i386_store_fpxregset): Constify.
22539 (target_regsets): Add new kind identifier.
22540 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22541 (i386_set_pc): Add debugging.
22542 (i386_breakpoint_at): New function.
22543 (the_low_target): Add new members.
22544 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22545 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22546 (mips_breakpoint_at): New.
22547 (the_low_target): Add new members.
22548 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22549 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22550 (the_low_target): Add new members.
22551 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22552 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22553 (the_low_target): Add new members.
22554 * linux-x86-64-low.c (target_regsets): Add new kind
22557 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22559 From Martin Pool <mbp@samba.org>:
22560 * server.c (gdbserver_usage): New function.
22563 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22565 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22566 stop_at -> stop_pc.
22568 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22570 * Makefile.in: Remove obsolete code.
22572 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22574 * linux-low.c (regsets_fetch_inferior_registers),
22575 (regsets_store_inferior_registers): Removed cast to int from
22577 * regcache.h: Added declaration of struct inferior_info.
22579 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22581 * inferiors.c (struct inferior_info): Add regcache_data.
22582 (add_inferior): Call create_register_cache.
22583 (clear_inferiors): Call free_register_cache.
22584 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22585 * regcache.c (struct inferior_regcache_data): New.
22586 (registers): Remove.
22587 (get_regcache): New function.
22588 (create_register_cache, free_register_cache): New functions.
22589 (set_register_cache): Don't initialize the register cache here.
22590 (registers_to_string, registers_from_string, register_data): Call
22592 * regcache.h: Add prototypes.
22593 * server.h: Likewise.
22595 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22597 * mem-break.c: New file.
22598 * mem-break.h: New file.
22599 * Makefile.in: Add mem-break.o rule; update server.h
22601 * inferiors.c (struct inferior_info): Add target_data
22603 (clear_inferiors): Free target_data member if set.
22604 (inferior_target_data, set_inferior_target_data): New functions.
22605 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22606 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22607 * linux-low.c (linux_bp_reinsert): New variable.
22608 (struct inferior_linux_data): New.
22609 (linux_create_inferior): Use set_inferior_target_data.
22610 (linux_attach): Likewise. Call add_inferior.
22611 (linux_wait_for_one_inferior): New function.
22612 (linux_wait): Call it.
22613 (linux_write_memory): Add const.
22614 (initialize_low): Call set_breakpoint_data.
22615 * linux-low.h (struct linux_target_ops): Add breakpoint
22617 * server.c (attach_inferior): Remove extra add_inferior
22619 * server.h: Include mem-break.h. Update inferior.c
22621 * target.c (read_inferior_memory)
22622 (write_inferior_memory): New functions.
22623 * target.h (read_inferior_memory)
22624 (write_inferior_memory): Change macros to prototypes.
22625 (struct target_ops): Update comments. Add const to write_memory
22628 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22630 * linux-low.c (usr_store_inferior_registers): Support
22631 registers which are allowed to fail to store.
22632 * linux-low.h (linux_target_ops): Likewise.
22633 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22634 (ppc_cannot_store_register): FPSCR may not be storable.
22636 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22638 * server.h: Include <string.h> if HAVE_STRING_H.
22639 * ChangeLog: Correct paths in last ChangeLog entry.
22641 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22643 * linux-low.h: Remove obsolete prototypes.
22644 (struct linux_target_ops): New.
22645 (extern the_low_target): New.
22646 * linux-low.c (num_regs, regmap): Remove declarations.
22647 (register_addr): Use the_low_target explicitly.
22648 (fetch_register): Likewise.
22649 (usr_fetch_inferior_registers): Likewise.
22650 (usr_store_inferior_registers): Likewise.
22651 * linux-arm-low.c (num_regs): Remove.
22652 (arm_num_regs): Define.
22653 (arm_regmap): Renamed from regmap, made static.
22654 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22656 (arm_cannot_store_register): Renamed from cannot_store_register,
22658 (the_low_target): New.
22659 * linux-i386-low.c (num_regs): Remove.
22660 (i386_num_regs): Define.
22661 (i386_regmap): Renamed from regmap, made static.
22662 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22664 (i386_cannot_store_register): Renamed from cannot_store_register,
22666 (the_low_target): New.
22667 * linux-ia64-low.c (num_regs): Remove.
22668 (ia64_num_regs): Define.
22669 (ia64_regmap): Renamed from regmap, made static.
22670 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22672 (ia64_cannot_store_register): Renamed from cannot_store_register,
22674 (the_low_target): New.
22675 * linux-m68k-low.c (num_regs): Remove.
22676 (m68k_num_regs): Define.
22677 (m68k_regmap): Renamed from regmap, made static.
22678 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22680 (m68k_cannot_store_register): Renamed from cannot_store_register,
22682 (the_low_target): New.
22683 * linux-mips-low.c (num_regs): Remove.
22684 (mips_num_regs): Define.
22685 (mips_regmap): Renamed from regmap, made static.
22686 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22688 (mips_cannot_store_register): Renamed from cannot_store_register,
22690 (the_low_target): New.
22691 * linux-ppc-low.c (num_regs): Remove.
22692 (ppc_num_regs): Define.
22693 (ppc_regmap): Renamed from regmap, made static.
22694 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22696 (ppc_cannot_store_register): Renamed from cannot_store_register,
22698 (the_low_target): New.
22699 * linux-s390-low.c (num_regs): Remove.
22700 (s390_num_regs): Define.
22701 (s390_regmap): Renamed from regmap, made static.
22702 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22704 (s390_cannot_store_register): Renamed from cannot_store_register,
22706 (the_low_target): New.
22707 * linux-sh-low.c (num_regs): Remove.
22708 (sh_num_regs): Define.
22709 (sh_regmap): Renamed from regmap, made static.
22710 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22712 (sh_cannot_store_register): Renamed from cannot_store_register,
22714 (the_low_target): New.
22715 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22716 (the_low_target): New.
22718 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22720 * Makefile.in: Add stamp-h target.
22721 * configure.in: Create stamp-h.
22722 * configure: Regenerated.
22724 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22726 * inferiors.c: New file.
22727 * target.c: New file.
22728 * target.h: New file.
22729 * Makefile.in: Add target.o and inferiors.o. Update
22731 * linux-low.c (inferior_pid): New static variable,
22732 moved from server.c.
22733 (linux_create_inferior): Renamed from create_inferior.
22734 Call add_inferior. Return 0 on success instead of a PID.
22735 (linux_attach): Renamed from myattach.
22736 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22737 (linux_thread_alive): Renamed from mythread_alive.
22738 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22740 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22741 (regsets_store_inferior_registers): Correct error message.
22742 Add missing ``return 0''.
22743 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22744 (linux_store_registers): Renamed from store_inferior_registers.
22745 (linux_read_memory): Renamed from read_inferior_memory.
22746 (linux_write_memory): Renamed from write_inferior_memory.
22747 (linux_target_ops): New structure.
22748 (initialize_low): Call set_target_ops ().
22749 * remote-utils.c (unhexify): New function.
22750 (hexify): New function.
22751 (input_interrupt): Send signals to ``signal_pid''.
22752 * server.c (inferior_pid): Remove.
22753 (start_inferior): Update create_inferior call.
22754 (attach_inferior): Call add_inferior.
22755 (handle_query): New function.
22756 (main): Call handle_query for `q' packets.
22757 * server.h: Include "target.h". Remove obsolete prototypes.
22758 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22760 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22762 * Makefile.in: Add WARN_CFLAGS. Update configury
22764 * configure.in: Check for <string.h>
22765 * configure: Regenerate.
22766 * config.in: Regenerate.
22767 * gdbreplay.c: Include needed system headers.
22768 (remote_open): Remove strchr prototype.
22769 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22770 * regcache.c (supply_register): Change buf argument to const void *.
22771 (supply_register_by_name): Likewise.
22772 (collect_register): Change buf argument to void *.
22773 (collect_register_by_name): Likewise.
22774 * regcache.h: Add missing prototypes.
22775 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22776 * server.c (handle_query): New function.
22777 (attached): New static variable, moved out of main.
22778 (main): Quiet longjmp clobber warnings.
22779 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22780 * utils.c (error): Remove NORETURN.