1 2021-10-04 Tom de Vries <tdevries@suse.de>
4 * configure: Regenerate.
6 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
8 * config.in, configure: Re-generate.
10 2021-06-19 Mike Frysinger <vapier@gentoo.org>
12 * acinclude.m4: Delete most m4_include's of ../config files.
13 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
14 * aclocal.m4: Regenerate.
15 * configure: Regenerate.
17 2021-06-14 Mike Frysinger <vapier@gentoo.org>
19 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
20 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
22 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
24 * Fix some indentation mistakes throughout.
26 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
28 * .dir-locals.el: Set sentence-end-double-space for all modes, and
29 set brace-list-open to 0 for C and C++ modes.
31 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
33 * linux-low.cc (linux_process_target::wait_for_event_filtered):
34 Adjust to status_to_str returning std::string.
36 2021-05-08 Pedro Alves <pedro@palves.net>
39 (linux_process_target::supports_disable_randomization): Remove
40 reference to HAVE_PERSONALITY.
41 * config.in, configure: Regenerate.
43 2021-05-08 Pedro Alves <pedro@palves.net>
45 * linux-low.cc: Don't include sys/personality.h or define
48 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
50 * server.cc (handle_v_attach)
52 (handle_v_kill): Make void.
54 2021-05-03 Tom Tromey <tromey@adacore.com>
57 * win32-i386-low.cc (i386_get_thread_context): Call
58 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
60 2021-04-30 Tom Tromey <tromey@adacore.com>
62 * win32-low.cc (do_initial_child_stuff): Update.
63 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
64 Change parameter type.
65 (win32_add_dll, win32_add_all_dlls)
66 (windows_nat::handle_load_dll): Remove.
67 (get_child_debug_event): Call dll_loaded_event.
69 2021-04-30 Tom Tromey <tromey@adacore.com>
71 * win32-low.cc (GETPROCADDRESS): Remove.
72 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
73 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
74 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
75 (win32_Wow64SetThreadContext): Remove.
76 (win32_set_thread_context, do_initial_child_stuff)
77 (win32_process_target::attach, win32_process_target::detach):
79 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
80 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
82 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
83 (win32_GetModuleInformation, win32_GetModuleInformationA):
86 (win32_add_dll, win32_process_target::request_interrupt): Update.
87 (initialize_low): Call initialize_loadable.
89 2021-04-14 Tom Tromey <tromey@adacore.com>
91 * win32-low.cc (windows_nat::handle_load_dll): Don't check
94 2021-04-13 Pedro Alves <pedro@palves.net>
96 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
98 2021-04-13 Tom Tromey <tromey@adacore.com>
100 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
101 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
103 2021-04-13 Pedro Alves <pedro@palves.net>
105 * Makefile.in (SFILES): Remove hostio-errno.cc.
106 * configure: Regenerate.
107 * configure.ac (GDBSERVER_DEPFILES): No longer add
108 $srv_hostio_err_objs.
109 * configure.srv (srv_hostio_err_objs): Delete.
110 * hostio-errno.cc: Delete.
111 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
113 * hostio.h (hostio_last_error_from_errno): Delete.
114 * target.cc (process_stratum_target::hostio_last_error): Delete.
115 * target.h (class process_stratum_target) <hostio_last_error>:
118 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
120 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
121 * win32-low.h: Likewise.
123 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
125 * target.h (class process_stratum_target) <pid_to_exec_file>:
126 Constify the return type. Update the definition/references below.
127 * target.cc (process_stratum_target::pid_to_exec_file)
128 * linux-low.h (class linux_process_target) <pid_to_exec_file>
129 * linux-low.cc (linux_process_target::pid_to_exec_file)
130 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
131 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
132 * server.cc (handle_qxfer_exec_file)
134 2021-04-11 Eli Zaretskii <eliz@gnu.org>
136 * win32-low.cc (win32_add_dll): New function, with body almost
137 identical to what win32_add_all_dlls did. Accepts one argument;
138 if that is non-NULL, returns the file name of the DLL that is
139 loaded at the base address equal to that argument, or NULL if not
140 found. If the argument is NULL, add all the DLLs loaded by the
141 inferior to the list of solibs and return NULL.
142 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
143 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
144 failed to glean the file name of the DLL, call win32_add_dll to
145 try harder using the lpBaseOfDll member of the load-DLL event.
147 2021-03-30 Luis Machado <luis.machado@linaro.org>
149 * server.cc (handle_general_set, handle_query): Update variable
150 to bool and fix verification logic.
152 2021-03-24 Luis Machado <luis.machado@linaro.org>
154 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
155 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
156 nat/aarch64-mte-linux-ptrace.o.
157 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
158 (class aarch64_target) <supports_memory_tagging>
159 <fetch_memtags, store_memtags>: New method overrides.
160 (aarch64_target::supports_memory_tagging)
161 (aarch64_target::fetch_memtags)
162 (aarch64_target::store_memtags): New methods.
164 2021-03-24 Luis Machado <luis.machado@linaro.org>
166 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
167 (aarch64_store_mteregset): New function.
168 (aarch64_regsets): Add MTE register set entry.
169 (aarch64_sve_regsets): Add MTE register set entry.
171 2021-03-24 Luis Machado <luis.machado@linaro.org>
173 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
174 aarch64_linux_read_description.
175 (initialize_low_tracepoint): Likewise.
176 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
178 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
180 (aarch64_linux_read_description): Add mte_p parameter and update to
182 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
185 2021-03-24 Luis Machado <luis.machado@linaro.org>
187 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
189 2021-03-24 Luis Machado <luis.machado@linaro.org>
191 * server.cc (test_memory_tagging_functions): New function.
192 (captured_main): Register test_memory_tagging_functions.
194 2021-03-24 Luis Machado <luis.machado@linaro.org>
196 * remote-utils.cc (decode_m_packet_params): Renamed from ...
197 (decode_m_packet): ... this, which now calls decode_m_packet_params.
198 Make char * param/return const char *.
199 (decode_M_packet): Use decode_m_packet_params and make char * param
201 * remote-utils.h (decode_m_packet_params): New prototype.
202 (decode_m_packet): Constify char pointers.
203 (decode_M_packet): Likewise.
204 * server.cc (create_fetch_memtags_reply)
205 (parse_store_memtags_request): New
207 (handle_general_set): Handle the QMemTags packet.
208 (parse_fetch_memtags_request): New function.
209 (handle_query): Handle the qMemTags packet and advertise memory
211 (captured_main): Initialize memory tagging flag.
212 * server.h (struct client_state): Initialize memory tagging flag.
213 * target.cc (process_stratum_target::supports_memory_tagging)
214 (process_stratum_target::fetch_memtags)
215 (process_stratum_target::store_memtags): New methods.
216 * target.h: Include gdbsupport/byte-vector.h.
217 (class process_stratum_target) <supports_memory_tagging>
218 <fetch_memtags, store_memtags>: New class virtual methods.
219 (target_supports_memory_tagging): Define.
221 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
223 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
226 (unloaded_dll): Declare an overloaded version that takes a proc
228 * dll.cc (loaded_dll)
229 (unloaded_dll): Implement the overloaded versions.
230 (clear_dlls): Clear all process' dll lists.
231 (all_dlls, dlls_changed): Remove the global variables.
232 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
234 * server.cc (handle_qxfer_libraries): Ditto.
235 (handle_v_attach): Ditto.
236 (captured_main): Ditto.
238 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
240 * linux-low.cc (linux_process_target::filter_event): Return
242 * linux-low.h (class linux_process_target) <filter_event>:
245 2021-02-12 Tom Tromey <tromey@adacore.com>
247 * gdbreplay.cc (remote_desc): Remove.
248 (remote_desc_in, remote_desc_out): New globals.
249 (remote_close): Update.
250 (remote_open): Handle "-".
251 (remote_open): Update.
252 (logchar): Log to stderr.
253 (expect, play): Update.
255 2021-02-12 Tom Tromey <tromey@adacore.com>
257 * gdbreplay.cc (remote_open): Constify.
259 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
261 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
262 gnulib free replacement too.
263 * common-defs.h [USE_WIN32API](read, write): Undefine
264 gnulib versions before defining these macros.
266 2021-02-03 Pedro Alves <pedro@palves.net>
268 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
269 Discard step SIGTRAP, unless GDB wanted the thread to step.
271 2021-02-03 Pedro Alves <pedro@palves.net>
273 * server.cc (discard_queued_stop_replies): Don't ever discard the
274 notification at the head of the list.
276 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
278 * ax.cc (bytecode_address_table): Make static.
279 * debug.cc (debug_file): Make static.
280 * linux-low.cc (stopping_threads): Make static.
281 (step_over_bkpt): Make static.
282 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
283 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
284 alloced_trace_state_variables, trace_buffer_ctrl,
285 tracing_start_time, tracing_stop_time, tracing_user_name,
286 tracing_notes, tracing_stop_note): Make static.
288 2021-01-20 Tom de Vries <tdevries@suse.de>
290 * linux-x86-low.cc (collect_register_i386): New function.
291 (x86_fill_gregset): Remove memset. Use collect_register_i386.
293 2021-01-07 Tom de Vries <tdevries@suse.de>
295 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
296 (LIBIBERTY_FOR_SHLIB): New var.
297 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
298 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
300 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
302 * debug.cc (debug_print_depth): New.
304 2021-01-01 Joel Brobecker <brobecker@adacore.com>
306 * server.cc (gdbserver_version): Update copyright year.
307 * gdbreplay.cc (gdbreplay_version): Likewise.
309 2020-12-16 Luis Machado <luis.machado@linaro.org>
311 * linux-aarch64-low.cc (address_significant): New function.
312 (aarch64_target::low_stopped_data_address): Handle the TBI.
314 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
316 * Makefile.in (IPA_LIB): Include libiberty library.
318 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
320 * server.cc (gdbserver_usage): Add missing option to usage text.
321 (gdbserver_show_disableable): Likewise.
323 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
325 * ax.cc: Fix indentation.
326 * dll.cc: Fix indentation.
327 * inferiors.h: Fix indentation.
328 * linux-low.cc: Fix indentation.
329 * linux-nios2-low.cc: Fix indentation.
330 * linux-ppc-ipa.cc: Fix indentation.
331 * linux-ppc-low.cc: Fix indentation.
332 * linux-x86-low.cc: Fix indentation.
333 * linux-xtensa-low.cc: Fix indentation.
334 * regcache.cc: Fix indentation.
335 * server.cc: Fix indentation.
336 * tracepoint.cc: Fix indentation.
338 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
340 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
342 * configure: Re-generate.
344 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
346 * configure: Re-generate.
348 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
350 * configure: Re-generate.
352 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
354 * configure: Re-generate.
356 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
358 * configure: Re-generate.
360 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
362 * configure.ac: Modernize.
363 * configure: Re-generate.
365 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
367 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
369 * configure: Re-generate.
371 2020-10-26 Pedro Alves <pedro@palves.net>
373 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
374 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
377 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
379 * acinclude.m4: Update ptrace.m4 path.
381 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
383 * config.in: Re-generate.
384 * configure: Re-generate.
386 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
388 * server.cc (handle_general_set): Don't use sprintf with
389 argument overlapping buffer.
391 2020-10-20 Tom Tromey <tromey@adacore.com>
394 * inferiors.cc (remove_thread): Clear current_thread before
397 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
399 * netbsd-low.cc (netbsd_tdesc): Remove.
400 (netbsd_add_process): Likewise.
401 (netbsd_process_target::create_inferior): Update.
403 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
405 * linux-arc-low.cc (arc_linux_read_description): Release the
406 unique_ptr returned from arc_create_target_description.
408 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
410 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
411 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
413 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
415 * linux-low.cc (linux_process_target::handle_extended_wait):
416 Release the unique_ptr returned from allocate_target_description.
417 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
418 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
419 (tdesc_i386_linux_no_xml): Change type.
420 (x86_linux_read_description): Borrow pointer from unique_ptr
422 (x86_target::get_ipa_tdesc_idx): Likewise.
423 (initialize_low_arch): Likewise.
424 * tdesc.cc (allocate_target_description): Update return type.
426 2020-10-07 Tom Tromey <tromey@adacore.com>
428 * server.cc (handle_search_memory): Remove dead code.
430 2020-10-07 Tom Tromey <tromey@adacore.com>
432 * server.cc (handle_search_memory_1): Remove.
433 (handle_search_memory): Use simple_search_memory.
435 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
437 * Makefile.in (COMPILE): Add CXXFLAGS.
438 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
439 (gdbserver$(EXEEXT)): Add CXXFLAGS.
440 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
441 ($(IPA_LIB)): Add CXXFLAGS.
442 (IPAGENT_COMPILE): Add CXXFLAGS.
444 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
446 * configure.srv: Support ARC architecture.
447 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
448 * linux-arc-low.cc: New file.
450 2020-10-07 Kamil Rytarowski <n54@gmx.com>
452 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
453 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
454 (netbsd_process_target::qxfer_libraries_svr4): Update.
456 2020-10-07 Kamil Rytarowski <n54@gmx.com>
458 * netbsd-low.cc: Fix whitespace formatting.
459 * netbsd-amd64-low.cc: Likewise.
461 2020-10-07 Kamil Rytarowski <n54@gmx.com>
463 * netbsd-low.cc (netbsd_process_target::read_memory)
464 (netbsd_process_target::write_memory): Update.
466 2020-10-07 Kamil Rytarowski <n54@gmx.com>
468 * netbsd-aarch64-low.cc: Add.
469 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
470 * configure.srv: Add aarch64*-*-netbsd*.
472 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
474 * regcache.cc (register_data): Remove unused "fetch" argument.
476 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
478 * server.cc (handle_monitor_command): Handle "set
480 (captured_main): Handle "--debug-event-loop".
481 (monitor_show_help): Mention new setting.
482 (gdbserver_usage): Mention new flag.
484 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
486 * linux-low.cc (linux_process_target::async): Pass name to
488 * remote-utils.cc (handle_accept_event): Likewise.
489 (remote_open): Likewise.
491 2020-10-01 Kamil Rytarowski <n54@gmx.com>
493 * netbsd-i386-low.cc: Add.
494 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
495 * configure.srv: Add i[34567]86-*-netbsd*.
497 2020-10-01 Kamil Rytarowski <n54@gmx.com>
499 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
500 (netbsd_target_regsets): Now const.
501 (the_low_target): Remove.
502 (class netbsd_amd64_target, the_netbsd_amd64_target)
503 (the_netbsd_target): Add.
504 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
506 (netbsd_process_target::fetch_registers)
507 (netbsd_process_target::store_registers, initialize_low): Update.
508 (the_netbsd_target): Remove.
509 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
510 (the_low_target, netbsd_tdesc): Remove.
511 (netbsd_process_target::get_regs_info)
512 (netbsd_process_target::low_arch_setup): Add.
514 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
516 * win32-low.cc: Remove local wow64_process variable.
517 * win32-low.h: Remove local wow64_process variable.
519 2020-09-18 Tom Tromey <tromey@adacore.com>
521 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
522 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
523 (netbsd_process_target::wait): Change type of target_options.
524 * win32-low.h (class win32_process_target) <wait>: Update.
525 * win32-low.cc (win32_process_target::wait): Update.
526 * target.h (class process_stratum_target) <wait>: Update.
528 * target.cc (mywait, target_wait): Change type of "options".
529 * linux-low.h (class linux_process_target) <wait, wait_1>:
531 * linux-low.cc (linux_process_target::wait)
532 (linux_process_target::wait_1): Update.
534 2020-09-15 Tom Tromey <tromey@adacore.com>
536 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
537 (xmltarget_amd64_linux_no_xml): Now arrays.
539 2020-09-14 Tom Tromey <tromey@adacore.com>
541 * tracepoint.cc (eval_result_names): Now const.
542 * ax.cc (gdb_agent_op_names): Now const.
544 2020-09-10 Kamil Rytarowski <n54@gmx.com>
546 * netbsd-low.cc: Add.
547 * netbsd-low.h: Likewise.
548 * netbsd-amd64-low.cc: Likewise.
549 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
550 "netbsd-amd64-low.cc".
551 * configure.srv: Add x86_64-*-netbsd*.
553 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
555 * server.cc (captured_main): Accept multiple `--selftest=`
556 options. Pass all `--selftest=` arguments to run_tests.
558 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560 * configure, config.in: Regenerate.
562 2020-07-26 Eli Zaretskii <eliz@gnu.org>
564 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
565 When checking whether socklen_t type is defined, use ws2tcpip.h if
566 it is available and sys/socket.h isn't.
567 * configure: Regenerate.
568 * config.in: Regenerate.
570 2020-07-22 Pedro Alves <pedro@palves.net>
572 * inferiors.cc (switch_to_process): New, moved here from
573 thread-db.cc, and made extern.
574 * inferiors.h (switch_to_process): Declare.
575 * server.cc: Include "gdbsupport/scoped_restore.h".
576 (handle_qxfer_threads_proper): Now returns bool. Prepare to
577 access memory around target calls.
578 (handle_qxfer_threads): Handle errors.
579 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
581 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
583 * linux-low.cc (stopped_pids): Make static.
585 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
587 * tdesc.cc (allocate_target_description): Add header comment.
588 (target_desc_deleter::operator()): New function.
589 * tdesc.h (struct target_desc): Declare as final.
591 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
593 * server.cc (handle_query): Use std::vector of
594 std::string for `qsupported` vector. Use separate
596 * target.h (class process_stratum_target) <process_qsupported>:
597 Change parameters to array_view of const char *.
598 (target_process_qsupported): Remove `count` parameter.
599 * target.cc (process_stratum_target::process_qsupported): Change
600 parameters to array_view of const char *.
601 * linux-x86-low.cc (class x86_target) <process_qsupported>:
604 2020-06-29 Tom de Vries <tdevries@suse.de>
606 * ax.h: Include gdbsupport/debug_agent.h.
608 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
610 * tdesc.cc (struct tdesc_compatible_info): New struct.
611 (tdesc_compatible_info_list): New function.
612 (tdesc_compatible_info_arch_name): New function.
614 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
616 Use std::list to stop pending signal instead of manually-created
618 * linux-low.h: Include <list>.
619 (struct pending_signal): Move here from linux-low.cc.
620 (struct lwp_info) <pending_signals>
621 <pending_signals_to_report>: Update the type.
622 * linux-low.cc (struct pending_signals): Remove.
623 (linux_process_target::delete_lwp)
624 (linux_process_target::add_lwp)
625 (enqueue_one_deferred_signal)
626 (dequeue_one_deferred_signal)
627 (enqueue_pending_signal)
628 (linux_process_target::resume_one_lwp_throw)
629 (linux_process_target::thread_needs_step_over)
630 (linux_process_target::resume_one_thread)
631 (linux_process_target::proceed_one_lwp): Update the use of pending
634 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
636 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
639 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
641 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
642 * configure.srv: Remove mingw32ce cases.
643 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
644 * win32-low.h (to_back_slashes): Remove.
645 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
647 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
649 * Makefile.in (SFILES): linux-tile-low.cc.
650 * configure.srv: Remove tilegx case.
651 * linux-tile-low.cc: Remove.
653 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
655 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
656 * configure.srv: Remove m32r case.
657 * linux-m32r-low.cc: Remove.
659 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
661 * Makefile.in (SFILES): Remove linux-cris-low.c.
662 * configure.srv: Remove cris cases.
663 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
665 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
667 * Makefile.in (SFILES): Remove linux-bfin-low.c.
668 * configure.srv: Remove bfin case.
669 * linux-bfin-low.cc: Remove.
670 * linux-low.cc: Remove BFIN-conditional code.
672 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
674 * configure: Re-generate.
675 * configure.ac: Remove srv_qnx test.
676 * configure.srv: Remove nto case.
677 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
678 * remote-utils.c: Remove __QNX__-guarded code.
680 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
682 * configure: Re-generate.
683 * configure.ac: Remove srv_lynxos test.
684 * configure.srv: Remove lynxos cases.
685 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
688 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
690 * README: Fix a few outdated or incoherent things.
692 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
694 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
695 (win32_clear_inferiors): Use open_process_used.
696 (get_child_debug_event): Likewise.
698 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
701 * linux-low.cc (linux_process_target::create_inferior),
702 lynx-low.cc (lynx_process_target::create_inferior),
703 win32-low.cc (win32_process_target::create_inferior): Use
704 construct_inferior_arguments instead of stringify_argv
705 to get string representation which properly escapes
707 * server.cc (handle_v_run): Just pass empty program arg
708 as such, since any further processing is now handled via
709 construct_inferior_arguments.
711 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
713 * nto-low.cc (nto_process_target::create_inferior): Pass
714 argv to spawnp function as char **.
716 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
718 * server.cc (captured_main), (handle_v_run): No longer
719 insert extra NULL element to args vector.
721 2020-05-23 Pedro Alves <palves@redhat.com>
723 * gdb-safe-ctype.h: New.
725 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
727 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
728 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
729 (ia64_target::low_breakpoint_at): Ditto.
731 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
733 * win32-i386-low.cc (i386_supports_z_point_type): Handle
734 Z_PACKET_HW_BP z_type.
735 (i386_insert_point): Handle raw_bkpt_type type.
736 (i386_remove_point): Likewise.
738 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
740 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
742 * win32-arm-low.cc (arm_num_regs): New function.
743 (struct win32_target_ops): Use arm_num_regs.
744 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
746 (i386_get_thread_context): Likewise.
747 (i386_prepare_to_resume): Likewise.
748 (i386_thread_added): Likewise.
749 (i386_single_step): Likewise.
750 (i386_fetch_inferior_register): Likewise.
751 (i386_store_inferior_register): Likewise.
752 (i386_arch_setup): Likewise.
753 (i386_win32_num_regs): New function.
754 (struct win32_target_ops): Use i386_win32_num_regs.
755 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
757 (win32_require_context): Likewise.
758 (child_add_thread): Likewise.
759 (do_initial_child_stuff): Likewise.
760 (continue_one_thread): Likewise.
761 (win32_process_target::resume): Likewise.
762 (load_psapi): Likewise.
763 (win32_add_all_dlls): Likewise.
764 (maybe_adjust_pc): Likewise.
765 (win32_process_target::qxfer_siginfo): Likewise.
766 (initialize_low): Likewise.
767 * win32-low.h (struct win32_target_ops): Change num_regs to
770 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
772 * configure.ac: Remove check for fs_base/gs_base in
774 * configure: Re-generate.
775 * config.in: Re-generate.
776 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
777 x86_store_gregset): Adjust.
779 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
781 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
784 2020-04-16 Tom Tromey <tromey@adacore.com>
786 * win32-low.cc (windows_nat::handle_access_violation): New
789 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
791 * win32-low.cc (get_child_debug_event): Fix format string warning.
793 2020-04-13 Tom Tromey <tom@tromey.com>
795 * server.h (gdb_fildes_t): Remove typedef.
796 * remote-utils.c (remote_desc, list_desc): Now int.
797 (INVALID_DESCRIPTOR): Remove.
798 (gdb_connected, remote_close)
799 (check_remote_input_interrupt_request): Update.
800 * utils.h (pfildes): Don't declare.
801 * utils.c (pfildes): Remove.
803 2020-04-13 Tom Tromey <tom@tromey.com>
805 * server.h (handle_serial_event, handle_target_event): Update.
806 * server.c: Don't call initialize_event_loop.
807 (keep_processing_events): New global.
808 (handle_serial_event): Return void. Set keep_processing_events.
809 (handle_target_event): Return void.
810 (start_event_loop): Move from event-loop.c. Rewrite.
811 * remote-utils.c (handle_accept_event): Return void.
812 (reset_readchar): Use delete_timer.
813 (process_remaining): Return void.
814 (reschedule): Use create_timer.
815 * event-loop.h: Remove.
816 * event-loop.cc: Remove.
817 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
819 2020-04-13 Tom Tromey <tom@tromey.com>
821 * server.c (invoke_async_signal_handlers)
822 (check_async_event_handlers, flush_streams, gdb_select): New
825 2020-04-13 Tom Tromey <tom@tromey.com>
827 * configure: Rebuild.
828 * config.in: Rebuild.
830 2020-04-08 Tom Tromey <tromey@adacore.com>
833 * win32-low.c (child_continue): Call matching_pending_stop.
834 (get_child_debug_event): Call fetch_pending_stop. Push pending
837 2020-04-08 Tom Tromey <tromey@adacore.com>
839 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
840 (win32_process_target::supports_stopped_by_sw_breakpoint):
842 * win32-low.c (win32_supports_z_point_type): Always handle
844 (win32_insert_point): Call insert_memory_breakpoint when needed.
845 (win32_remove_point): Call remove_memory_breakpoint when needed.
846 (win32_process_target::stopped_by_sw_breakpoint)
847 (win32_process_target::supports_stopped_by_sw_breakpoint): New
849 (win32_target_ops): Update.
850 (maybe_adjust_pc): New function.
851 (win32_wait): Call maybe_adjust_pc.
853 2020-04-08 Tom Tromey <tromey@adacore.com>
855 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
857 * win32-i386-low.c (the_low_target): Update.
858 * win32-arm-low.c (the_low_target): Update.
860 2020-04-08 Tom Tromey <tromey@adacore.com>
862 * win32-low.h (win32_process_target::read_pc)
863 (win32_process_target::write_pc): Declare.
864 * win32-low.c (win32_process_target::read_pc)
865 (win32_process_target::write_pc): New methods.
866 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
868 (the_low_target): Update.
869 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
871 (the_low_target): Update.
873 2020-04-08 Tom Tromey <tromey@adacore.com>
875 * win32-low.c (win32_kill, get_child_debug_event): Use
876 wait_for_debug_event.
878 2020-04-08 Tom Tromey <tromey@adacore.com>
880 * win32-low.c (child_continue): Call continue_last_debug_event.
882 2020-04-08 Tom Tromey <tromey@adacore.com>
884 * win32-low.c (handle_exception): Remove.
885 (windows_nat::handle_ms_vc_exception): New function.
886 (get_child_debug_event): Add "continue_status" parameter.
888 (win32_wait): Update.
890 2020-04-08 Tom Tromey <tromey@adacore.com>
892 * win32-low.c (windows_nat::handle_load_dll): Rename from
893 handle_load_dll. No longer static.
894 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
897 2020-04-08 Tom Tromey <tromey@adacore.com>
899 * win32-low.c (handle_output_debug_string): Add parameter. Change
901 (win32_kill, get_child_debug_event): Update.
903 2020-04-08 Tom Tromey <tromey@adacore.com>
905 * win32-low.c (current_process_handle, current_process_id)
906 (main_thread_id, last_sig, current_event, siginfo_er): Move to
909 2020-04-08 Tom Tromey <tromey@adacore.com>
911 * win32-low.c (get_image_name): Remove.
912 (handle_load_dll): Update.
914 2020-04-08 Tom Tromey <tromey@adacore.com>
916 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
917 No longer static. Change parameters.
918 (child_add_thread, child_fetch_inferior_registers)
919 (child_store_inferior_registers, win32_resume)
920 (win32_get_tib_address): Update.
922 2020-04-08 Tom Tromey <tromey@adacore.com>
924 * win32-low.h (struct win32_target_ops): Use qualified names where
926 * win32-i386-low.c: Add "using namespace".
927 * win32-low.c: Add "using namespace".
928 * win32-arm-low.c: Add "using namespace".
930 2020-04-08 Tom Tromey <tromey@adacore.com>
932 * win32-low.c (delete_thread_info): Don't call CloseHandle.
934 2020-04-08 Tom Tromey <tromey@adacore.com>
936 * win32-low.c (win32_require_context, suspend_one_thread): Use
937 windows_thread_info::suspend.
938 (continue_one_thread): Use windows_thread_info::resume.
939 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
941 2020-04-08 Tom Tromey <tromey@adacore.com>
943 * win32-i386-low.c (update_debug_registers)
944 (i386_prepare_to_resume, i386_thread_added): Update.
946 2020-04-08 Tom Tromey <tromey@adacore.com>
948 * win32-low.c (child_add_thread): Use new.
949 (delete_thread_info): Use delete.
951 2020-04-08 Tom Tromey <tromey@adacore.com>
953 * win32-low.h (struct windows_thread_info): Remove.
955 2020-04-08 Tom Tromey <tromey@adacore.com>
957 * win32-low.h (struct windows_thread_info): Rename from
958 win32_thread_info. Remove typedef.
959 (struct win32_target_ops, win32_require_context): Update.
960 * win32-low.c (win32_get_thread_context)
961 (win32_set_thread_context, win32_prepare_to_resume)
962 (win32_require_context, thread_rec, child_add_thread)
963 (delete_thread_info, continue_one_thread)
964 (child_fetch_inferior_registers, child_store_inferior_registers)
965 (win32_resume, suspend_one_thread, win32_get_tib_address):
967 * win32-i386-low.c (update_debug_registers)
968 (win32_get_current_dr, i386_get_thread_context)
969 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
970 (i386_fetch_inferior_register, i386_store_inferior_register):
972 * win32-arm-low.c (arm_get_thread_context)
973 (arm_fetch_inferior_register, arm_store_inferior_register):
976 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
978 * linux-low.h (struct linux_target_ops): Remove.
979 (the_low_target): Remove.
980 * linux-x86-low.cc (the_low_target): Remove.
981 * linux-aarch64-low.cc (the_low_target): Ditto.
982 * linux-arm-low.cc (the_low_target): Ditto.
983 * linux-bfin-low.cc (the_low_target): Ditto.
984 * linux-cris-low.cc (the_low_target): Ditto.
985 * linux-crisv32-low.cc (the_low_target): Ditto.
986 * linux-ia64-low.cc (the_low_target): Ditto.
987 * linux-m32r-low.cc (the_low_target): Ditto.
988 * linux-m68k-low.cc (the_low_target): Ditto.
989 * linux-mips-low.cc (the_low_target): Ditto.
990 * linux-nios2-low.cc (the_low_target): Ditto.
991 * linux-ppc-low.cc (the_low_target): Ditto.
992 * linux-riscv-low.cc (the_low_target): Ditto.
993 * linux-s390-low.cc (the_low_target): Ditto.
994 * linux-sh-low.cc (the_low_target): Ditto.
995 * linux-sparc-low.cc (the_low_target): Ditto.
996 * linux-tic6x-low.cc (the_low_target): Ditto.
997 * linux-tile-low.cc (the_low_target): Ditto.
998 * linux-xtensa-low.cc (the_low_target): Ditto.
1000 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1002 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
1003 linux target define the op by overriding the declaration in
1004 process_stratum_target.
1006 * linux-low.h (struct linux_target_ops): Remove the op.
1007 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
1008 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
1009 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
1010 (x86_get_ipa_tdesc_idx): Turn into...
1011 (x86_target::get_ipa_tdesc_idx): ...this.
1012 (the_low_target): Remove the op field.
1013 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
1014 (ppc_get_ipa_tdesc_idx): Turn into...
1015 (ppc_target::get_ipa_tdesc_idx): ...this.
1016 (the_low_target): Remove the op field.
1017 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
1018 (s390_get_ipa_tdesc_idx): Turn into...
1019 (s390_target::get_ipa_tdesc_idx): ...this.
1020 (the_low_target): Remove the op field.
1022 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1024 Turn the 'get_syscall_trapinfo' linux target op into a method
1025 of process_stratum_target.
1027 * linux-low.h (struct linux_target_ops): Remove the op.
1028 (class linux_process_target) <get_syscall_trapinfo>
1029 <gdb_catch_this_syscall>
1030 <low_supports_catch_syscall>
1031 <low_get_syscall_trapinfo>: Declare.
1032 * linux-low.cc (get_syscall_trapinfo): Turn into...
1033 (linux_process_target::get_syscall_trapinfo): ...this.
1034 (linux_process_target::low_get_syscall_trapinfo): Define.
1035 (gdb_catch_this_syscall_p): Turn into...
1036 (linux_process_target::gdb_catch_this_syscall): ...this.
1037 (linux_process_target::low_supports_catch_syscall): Define.
1039 Update the callers below.
1041 (linux_process_target::wait_1)
1042 (linux_process_target::supports_catch_syscall)
1044 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1045 <low_get_syscall_trapinfo>: Declare.
1046 (x86_target::low_supports_catch_syscall): Define.
1047 (x86_get_syscall_trapinfo): Turn into...
1048 (x86_target::low_get_syscall_trapinfo): ...this.
1049 (the_low_target): Remove the op field.
1050 * linux-aarch64-low.cc (class aarch64_target)
1051 <low_supports_catch_syscall>
1052 <low_get_syscall_trapinfo>: Declare.
1053 (aarch64_target::low_supports_catch_syscall): Define.
1054 (aarch64_get_syscall_trapinfo): Turn into...
1055 (aarch64_target::low_get_syscall_trapinfo): ...this.
1056 (the_low_target): Remove the op field.
1057 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1058 <low_get_syscall_trapinfo>: Declare.
1059 (arm_target::low_supports_catch_syscall): Define.
1060 (arm_get_syscall_trapinfo): Turn into...
1061 (arm_target::low_get_syscall_trapinfo): ...this.
1062 (the_low_target): Remove the op field.
1063 * linux-ppc-low.cc (the_low_target): Remove the op field.
1064 * linux-s390-low.cc (the_low_target): Remove the op field.
1066 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1068 Remove the 'supports_hardware_single_step' linux target op and
1069 override the process_stratum_target's op definition in
1070 linux_process_target to return true.
1072 * linux-low.h (struct linux_target_ops): Remove the op.
1073 (class linux_process_target) <finish_step_over>
1074 <maybe_hw_step>: Declare.
1075 * linux-low.cc (can_hardware_single_step): Remove.
1076 (maybe_hw_step): Turn into...
1077 (linux_process_target::maybe_hw_step): ...this.
1078 (finish_step_over): Turn into...
1079 (linux_process_target::finish_step_over): ...this.
1080 (linux_process_target::supports_hardware_single_step): Update
1083 Update the callers below.
1085 (linux_process_target::single_step)
1086 (linux_process_target::resume_one_lwp_throw)
1088 * linux-arm-low.cc (class arm_target)
1089 <supports_hardware_single_step>: Declare.
1090 (arm_supports_hardware_single_step): Turn into...
1091 (arm_target::supports_hardware_single_step): ...this.
1092 (the_low_target): Remove the op field.
1093 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1094 (the_low_target): Remove the op field.
1095 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1097 (the_low_target): Remove the op field.
1098 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1099 (the_low_target): Remove the op field.
1100 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1101 (the_low_target): Remove the op field.
1102 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1103 (the_low_target): Remove the op field.
1104 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1105 (the_low_target): Remove the op field.
1106 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1107 (the_low_target): Remove the op field.
1108 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1109 (the_low_target): Remove the op field.
1110 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1111 (the_low_target): Remove the op field.
1112 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1113 (the_low_target): Remove the op field.
1114 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1115 (the_low_target): Remove the op field.
1116 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1118 (the_low_target): Remove the op field.
1120 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122 Turn the 'supports_range_stepping' linux target op into a method
1123 of linux_process_target.
1125 * linux-low.h (struct linux_target_ops): Remove the op.
1126 (class linux_process_target) <low_supports_range_stepping>: Declare.
1127 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1129 (linux_process_target::supports_range_stepping): Update the call
1131 * linux-x86-low.cc (class x86_target)
1132 <low_supports_range_stepping>: Declare.
1133 (x86_supports_range_stepping): Turn into...
1134 (x86_target::low_supports_range_stepping): ...this.
1135 (the_low_target): Remove the op field.
1136 * linux-aarch64-low.cc (class aarch64_target)
1137 <low_supports_range_stepping>: Declare.
1138 (aarch64_supports_range_stepping): Turn into...
1139 (aarch64_target::low_supports_range_stepping): ...this.
1140 (the_low_target): Remove the op field.
1141 * linux-arm-low.cc (the_low_target): Remove the op field.
1142 * linux-bfin-low.cc (the_low_target): Ditto.
1143 * linux-crisv32-low.cc (the_low_target): Ditto.
1144 * linux-m32r-low.cc (the_low_target): Ditto.
1145 * linux-m68k-low.cc (the_low_target): Ditto.
1146 * linux-ppc-low.cc (the_low_target): Ditto.
1147 * linux-s390-low.cc (the_low_target): Ditto.
1148 * linux-sh-low.cc (the_low_target): Ditto.
1149 * linux-tic6x-low.cc (the_low_target): Ditto.
1150 * linux-tile-low.cc (the_low_target): Ditto.
1151 * linux-xtensa-low.cc (the_low_target): Ditto.
1153 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1155 Remove the 'emit_ops' linux target ops and let the concrete
1156 linux target define the op by overriding the declaration of
1157 process_stratum_target.
1159 * linux-low.h (struct linux_target_ops): Remove the op.
1160 (class linux_process_target) <emit_ops>: Remove.
1161 * linux-low.cc (linux_process_target::emit_ops): Remove.
1162 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1163 (x86_emit_ops): Turn into...
1164 (x86_target::emit_ops): ...this.
1165 (the_low_target): Remove the op field.
1166 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1167 (aarch64_emit_ops): Turn into...
1168 (aarch64_target::emit_ops): ...this.
1169 (the_low_target): Remove the op field.
1170 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1171 (ppc_emit_ops): Turn into...
1172 (ppc_target::emit_ops): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1175 (s390_emit_ops): Turn into...
1176 (s390_target::emit_ops): ...this.
1177 (the_low_target): Remove the op field.
1178 * linux-arm-low.cc (the_low_target): Remove the op field.
1179 * linux-bfin-low.cc (the_low_target): Ditto.
1180 * linux-crisv32-low.cc (the_low_target): Ditto.
1181 * linux-m32r-low.cc (the_low_target): Ditto.
1182 * linux-m68k-low.cc (the_low_target): Ditto.
1183 * linux-sh-low.cc (the_low_target): Ditto.
1184 * linux-tic6x-low.cc (the_low_target): Ditto.
1185 * linux-tile-low.cc (the_low_target): Ditto.
1186 * linux-xtensa-low.cc (the_low_target): Ditto.
1188 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1190 Remove the 'install_fast_tracepoint_jump_pad' and
1191 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1192 concrete linux target define the ops by overriding the declarations
1193 of process_stratum_target.
1195 * linux-low.h (struct linux_target_ops): Remove the ops.
1196 (class linux_process_target) <supports_fast_tracepoints>
1197 <install_fast_tracepoint_jump_pad>
1198 <get_min_fast_tracepoint_insn_len>: Remove.
1199 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1200 (linux_process_target::install_fast_tracepoint_jump_pad)
1201 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1202 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1203 <install_fast_tracepoint_jump_pad>
1204 <get_min_fast_tracepoint_insn_len>: Declare.
1205 (x86_target::supports_fast_tracepoints): Define.
1206 (x86_install_fast_tracepoint_jump_pad): Turn into...
1207 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1208 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1209 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1210 (the_low_target): Remove the op fields.
1211 * linux-aarch64-low.cc (class aarch64_target)
1212 <supports_fast_tracepoints>
1213 <install_fast_tracepoint_jump_pad>
1214 <get_min_fast_tracepoint_insn_len>: Declare.
1215 (aarch64_target::supports_fast_tracepoints): Define.
1216 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1217 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1218 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1219 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1220 (the_low_target): Remove the op fields.
1221 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1222 <install_fast_tracepoint_jump_pad>
1223 <get_min_fast_tracepoint_insn_len>: Declare.
1224 (ppc_target::supports_fast_tracepoints): Define.
1225 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1226 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1227 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1228 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1229 (the_low_target): Remove the op fields.
1230 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1231 <install_fast_tracepoint_jump_pad>
1232 <get_min_fast_tracepoint_insn_len>: Declare.
1233 (s390_target::supports_fast_tracepoints): Define.
1234 (s390_install_fast_tracepoint_jump_pad): Turn into...
1235 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1236 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1237 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1238 (the_low_target): Remove the op fields.
1239 * linux-arm-low.cc (the_low_target): Remove the op fields.
1240 * linux-bfin-low.cc (the_low_target): Ditto.
1241 * linux-crisv32-low.cc (the_low_target): Ditto.
1242 * linux-m32r-low.cc (the_low_target): Ditto.
1243 * linux-m68k-low.cc (the_low_target): Ditto.
1244 * linux-sh-low.cc (the_low_target): Ditto.
1245 * linux-tic6x-low.cc (the_low_target): Ditto.
1246 * linux-tile-low.cc (the_low_target): Ditto.
1247 * linux-xtensa-low.cc (the_low_target): Ditto.
1249 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251 Turn the 'get_thread_area' linux target op into a method of
1252 process_stratum_target.
1254 * linux-low.h (struct linux_target_ops): Remove the op.
1255 (class linux_process_target) <stuck_in_jump_pad>
1256 <linux_fast_tracepoint_collecting>
1257 <low_get_thread_area>: Declare.
1258 * linux-low.cc (supports_fast_tracepoints): Remove.
1259 (linux_fast_tracepoint_collecting): Turn into...
1260 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1261 (linux_process_target::low_get_thread_area): Define.
1262 (stuck_in_jump_pad_callback): Turn into...
1263 (linux_process_target::stuck_in_jump_pad): ...this.
1265 Update the caller below.
1267 (linux_process_target::stabilize_threads)
1269 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1271 (x86_get_thread_area): Turn into...
1272 (x86_target::low_get_thread_area): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1276 (aarch64_get_thread_area): Turn into...
1277 (aarch64_target::low_get_thread_area): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1281 (ppc_get_thread_area): Turn into...
1282 (ppc_target::low_get_thread_area): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1286 (s390_get_thread_area): Turn into...
1287 (s390_target::low_get_thread_area): ...this.
1288 (the_low_target): Remove the op field.
1289 * linux-arm-low.cc (the_low_target): Remove the op field.
1290 * linux-bfin-low.cc (the_low_target): Ditto.
1291 * linux-crisv32-low.cc (the_low_target): Ditto.
1292 * linux-m32r-low.cc (the_low_target): Ditto.
1293 * linux-m68k-low.cc (the_low_target): Ditto.
1294 * linux-sh-low.cc (the_low_target): Ditto.
1295 * linux-tic6x-low.cc (the_low_target): Ditto.
1296 * linux-tile-low.cc (the_low_target): Ditto.
1297 * linux-xtensa-low.cc (the_low_target): Ditto.
1299 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1301 Remote the 'supports_tracepoints' linux target op and let the
1302 concrete linux target define it by overriding the op declared in
1303 process_stratum_target.
1305 * linux-low.h (struct linux_target_ops): Remove the op.
1306 (class linux_process_target) <supports_tracepoints>: Remove.
1307 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1308 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1310 (x86_supports_tracepoints): Turn into...
1311 (x86_target::supports_tracepoints): ...this.
1312 (the_low_target): Remove the op field.
1313 * linux-aarch64-low.cc (class aarch64_target)
1314 <supports_tracepoints>: Declare.
1315 (aarch64_supports_tracepoints): Turn into...
1316 (aarch64_target::supports_tracepoints): ...this.
1317 (the_low_target): Remove the op field.
1318 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1320 (ppc_supports_tracepoints): Turn into...
1321 (ppc_target::supports_tracepoints): ...this.
1322 (the_low_target): Remove the op field.
1323 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1325 (s390_supports_tracepoints): Turn into...
1326 (s390_target::supports_tracepoints): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-arm-low.cc (the_low_target): Remove the op field.
1329 * linux-bfin-low.cc (the_low_target): Ditto.
1330 * linux-crisv32-low.cc (the_low_target): Ditto.
1331 * linux-m32r-low.cc (the_low_target): Ditto.
1332 * linux-m68k-low.cc (the_low_target): Ditto.
1333 * linux-sh-low.cc (the_low_target): Ditto.
1334 * linux-tic6x-low.cc (the_low_target): Ditto.
1335 * linux-tile-low.cc (the_low_target): Ditto.
1336 * linux-xtensa-low.cc (the_low_target): Ditto.
1338 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1340 Remove the 'process_qsupported' linux target op and let a concrete
1341 linux target define the op by overriding the op declaration in
1342 process_stratum_target.
1344 * linux-low.h (struct linux_target_ops): Remove the op.
1345 (class linux_process_target) <process_qsupported>: Remove.
1346 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1347 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1348 (x86_linux_process_qsupported): Turn into...
1349 (x86_target::process_qsupported): ...this.
1350 (the_low_target): Remove the op field.
1351 * linux-aarch64-low.cc (the_low_target): Remove the op
1353 * linux-arm-low.cc (the_low_target): Ditto.
1354 * linux-bfin-low.cc (the_low_target): Ditto.
1355 * linux-crisv32-low.cc (the_low_target): Ditto.
1356 * linux-m32r-low.cc (the_low_target): Ditto.
1357 * linux-m68k-low.cc (the_low_target): Ditto.
1358 * linux-ppc-low.cc (the_low_target): Ditto.
1359 * linux-s390-low.cc (the_low_target): Ditto.
1360 * linux-sh-low.cc (the_low_target): Ditto.
1361 * linux-tic6x-low.cc (the_low_target): Ditto.
1362 * linux-tile-low.cc (the_low_target): Ditto.
1363 * linux-xtensa-low.cc (the_low_target): Ditto.
1365 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1367 Turn the 'prepare_to_resume' linux target op into a method of
1368 linux_process_target.
1370 * linux-low.h (struct linux_target_ops): Remove the op.
1371 (class linux_process_target) <low_prepare_to_resume>: Declare.
1372 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1375 Update the callers below:
1377 (linux_process_target::resume_one_lwp_throw)
1378 (linux_process_target::low_prepare_to_resume)
1380 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1382 (x86_target::low_prepare_to_resume): Define.
1383 (the_low_target): Remove the op field.
1384 * linux-aarch64-low.cc (class aarch64_target)
1385 <low_prepare_to_resume>: Declare.
1386 (aarch64_target::low_prepare_to_resume): Define.
1387 (the_low_target): Remove the op field.
1388 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1390 (arm_prepare_to_resume): Turn into...
1391 (arm_target::low_prepare_to_resume): ...this.
1392 (the_low_target): Remove the op field.
1393 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1395 (mips_linux_prepare_to_resume): Turn into...
1396 (mips_target::low_prepare_to_resume): ...this.
1397 (the_low_target): Remove the op field.
1398 * linux-bfin-low.cc (the_low_target): Remove the op field.
1399 * linux-crisv32-low.cc (the_low_target): Ditto.
1400 * linux-m32r-low.cc (the_low_target): Ditto.
1401 * linux-m68k-low.cc (the_low_target): Ditto.
1402 * linux-ppc-low.cc (the_low_target): Ditto.
1403 * linux-s390-low.cc (the_low_target): Ditto.
1404 * linux-sh-low.cc (the_low_target): Ditto.
1405 * linux-tic6x-low.cc (the_low_target): Ditto.
1406 * linux-tile-low.cc (the_low_target): Ditto.
1407 * linux-xtensa-low.cc (the_low_target): Ditto.
1409 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1411 Turn the 'new_process', 'delete_process', 'new_thread',
1412 'delete_thread', and 'new_fork' linux target ops into methods
1413 of linux_process_target.
1415 * linux-low.h (struct linux_target_ops): Remove the ops.
1416 (class linux_process_target) <add_linux_process>
1421 <check_zombie_leaders>
1424 <low_delete_process>
1427 <low_new_fork>: Declare.
1428 * linux-low.cc (delete_lwp): Turn into...
1429 (linux_process_target::delete_lwp): ...this.
1430 (linux_process_target::low_delete_thread): Define.
1431 (linux_add_process): Turn into...
1432 (linux_process_target::add_linux_process): ...this.
1433 (linux_process_target::low_new_process): Define.
1434 (linux_process_target::low_delete_process): Define.
1435 (linux_process_target::low_new_fork): Define.
1436 (add_lwp): Turn into...
1437 (linux_process_target::add_lwp): ...this.
1438 (linux_process_target::low_new_thread): Define.
1439 (linux_attach_lwp): Turn into...
1440 (linux_process_target::attach_lwp): ...this.
1441 (linux_detach_one_lwp): Turn into...
1442 (linux_process_target::detach_one_lwp): ...this.
1443 (linux_detach_lwp_callback): Remove and inline...
1444 (linux_process_target::detach): ...here.
1445 (check_zombie_leaders): Turn into...
1446 (linux_process_target::check_zombie_leaders): ...this.
1447 (filter_exit_event): Turn into...
1448 (linux_process_target::filter_exit_event): ...this.
1450 Update the callers below.
1452 (linux_process_target::handle_extended_wait)
1453 (linux_process_target::create_inferior)
1454 (attach_proc_task_lwp_callback)
1455 (linux_process_target::attach)
1456 (linux_process_target::detach)
1457 (linux_process_target::mourn)
1458 * thread-db.cc (attach_thread)
1460 * linux-x86-low.cc (class x86_target) <low_new_process>
1461 <low_delete_process>
1464 <low_new_fork>: Declare.
1465 (x86_linux_new_process): Turn into...
1466 (x86_target::low_new_process): ...this.
1467 (x86_linux_delete_process): Turn into...
1468 (x86_target::low_delete_process): ...this.
1469 (x86_target::low_new_thread): Define.
1470 (x86_target::low_delete_thread): Define.
1471 (x86_linux_new_fork): Turn into...
1472 (x86_target::low_new_fork): ...this.
1473 (the_low_target): Remove the op fields.
1474 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1475 <low_delete_process>
1478 <low_new_fork>: Declare.
1479 (aarch64_linux_new_process): Turn into...
1480 (aarch64_target::low_new_process): ...this.
1481 (aarch64_linux_delete_process): Turn into...
1482 (aarch64_target::low_delete_process): ...this.
1483 (aarch64_target::low_new_thread): Define.
1484 (aarch64_target::low_delete_thread): Define.
1485 (aarch64_linux_new_fork): Turn into...
1486 (aarch64_target::low_new_fork): ...this.
1487 (the_low_target): Remove the op fields.
1488 * linux-arm-low.cc (class arm_target) <low_new_process>
1489 <low_delete_process>
1492 <low_new_fork>: Declare.
1493 (arm_new_process): Turn into...
1494 (arm_target::low_new_process): ...this.
1495 (arm_delete_process): Turn into...
1496 (arm_target::low_delete_process): ...this.
1497 (arm_new_thread): Turn into...
1498 (arm_target::low_new_thread): ...this.
1499 (arm_delete_thread): Turn into...
1500 (arm_target::low_delete_thread): ...this.
1501 (arm_new_fork): Turn into...
1502 (arm_target::low_new_fork): ...this.
1503 (the_low_target): Remove the op fields.
1504 * linux-mips-low.cc (class mips_target) <low_new_process>
1505 <low_delete_process>
1508 <low_new_fork>: Declare.
1509 (mips_linux_new_process): Turn into...
1510 (mips_target::low_new_process): ...this.
1511 (mips_linux_delete_process): Turn into...
1512 (mips_target::low_delete_process): ...this.
1513 (mips_linux_new_thread): Turn into...
1514 (mips_target::low_new_thread): ...this.
1515 (mips_linux_delete_thread): Turn into...
1516 (mips_target::low_delete_thread): ...this.
1517 (mips_linux_new_fork): Turn into...
1518 (mips_target::low_new_fork): ...this.
1519 (the_low_target): Remove the op fields.
1520 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1521 * linux-crisv32-low.cc (the_low_target): Ditto.
1522 * linux-m32r-low.cc (the_low_target): Ditto.
1523 * linux-m68k-low.cc (the_low_target): Ditto.
1524 * linux-ppc-low.cc (the_low_target): Ditto.
1525 * linux-s390-low.cc (the_low_target): Ditto.
1526 * linux-sh-low.cc (the_low_target): Ditto.
1527 * linux-tic6x-low.cc (the_low_target): Ditto.
1528 * linux-tile-low.cc (the_low_target): Ditto.
1529 * linux-xtensa-low.cc (the_low_target): Ditto.
1531 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533 Turn the 'siginfo_fixup' linux target op into a method of
1534 linux_process_target.
1536 * linux-low.h (struct linux_target_ops): Remove the op.
1537 (class linux_process_target) <siginfo_fixup>
1538 <low_siginfo_fixup>: Declare.
1539 * linux-low.cc (siginfo_fixup): Turn into...
1540 (linux_process_target::siginfo_fixup): ...this.
1541 (linux_process_target::low_siginfo_fixup): Define.
1542 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1543 (x86_siginfo_fixup): Turn into...
1544 (x86_target::low_siginfo_fixup): ...this.
1545 (the_low_target): Remove the op field.
1546 * linux-aarch64-low.cc (class aarch64_target):
1547 <low_siginfo_fixup>: Declare.
1548 (aarch64_linux_siginfo_fixup): Turn into...
1549 (aarch64_target::low_siginfo_fixup): ...this.
1550 (the_low_target): Remove the op field.
1551 * linux-arm-low.cc (the_low_target): Remove the op field.
1552 * linux-bfin-low.cc (the_low_target): Ditto.
1553 * linux-crisv32-low.cc (the_low_target): Ditto.
1554 * linux-m32r-low.cc (the_low_target): Ditto.
1555 * linux-m68k-low.cc (the_low_target): Ditto.
1556 * linux-mips-low.cc (the_low_target): Ditto.
1557 * linux-ppc-low.cc (the_low_target): Ditto.
1558 * linux-s390-low.cc (the_low_target): Ditto.
1559 * linux-sh-low.cc (the_low_target): Ditto.
1560 * linux-tic6x-low.cc (the_low_target): Ditto.
1561 * linux-tile-low.cc (the_low_target): Ditto.
1562 * linux-xtensa-low.cc (the_low_target): Ditto.
1564 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1566 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1567 linux target ops into methods of linux_process_target.
1569 * linux-low.h (struct linux_target_ops): Remove the ops.
1570 (class linux_process_target) <low_collect_ptrace_register>
1571 <low_store_ptrace_register>: Declare.
1572 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1573 (linux_process_target::low_supply_ptrace_register): Define.
1575 Update the callers below.
1577 (linux_process_target::fetch_register)
1578 (linux_process_target::store_register)
1580 * linux-x86-low.cc (the_low_target): Remove the op fields.
1581 * linux-aarch64-low.cc (the_low_target): Ditto.
1582 * linux-arm-low.cc (the_low_target): Ditto.
1583 * linux-bfin-low.cc (the_low_target): Ditto.
1584 * linux-crisv32-low.cc (the_low_target): Ditto.
1585 * linux-m32r-low.cc (the_low_target): Ditto.
1586 * linux-m68k-low.cc (the_low_target): Ditto.
1587 * linux-sh-low.cc (the_low_target): Ditto.
1588 * linux-sparc-low.cc (the_low_target): Ditto.
1589 * linux-tic6x-low.cc (the_low_target): Ditto.
1590 * linux-tile-low.cc (the_low_target): Ditto.
1591 * linux-xtensa-low.cc (the_low_target): Ditto.
1592 * linux-mips-low.cc (class mips_target)
1593 <low_collect_ptrace_register>
1594 <low_supply_ptrace_register>: Declare.
1595 (mips_collect_ptrace_register): Turn into ...
1596 (mips_target::low_collect_ptrace_register): ...this.
1597 (mips_supply_ptrace_register): Turn into...
1598 (mips_target::low_supply_ptrace_register): ...this.
1599 (the_low_target): Remove the op fields.
1600 * linux-ppc-low.cc (class ppc_target)
1601 <low_collect_ptrace_register>
1602 <low_supply_ptrace_register>: Declare.
1603 (ppc_collect_ptrace_register): Turn into ...
1604 (ppc_target::low_collect_ptrace_register): ...this.
1605 (ppc_supply_ptrace_register): Turn into ...
1606 (ppc_target::low_supply_ptrace_register): ...this.
1607 (ppc_fill_gregset): Update for the calls to
1608 low_collect_ptrace_register.
1609 (the_low_target): Remove the op fields.
1610 * linux-s390-low.cc (class s390_target)
1611 <low_collect_ptrace_register>
1612 <low_supply_ptrace_register>: Declare.
1613 (s390_collect_ptrace_register): Turn into ...
1614 (s390_target::low_collect_ptrace_register): ...this.
1615 (s390_supply_ptrace_register): Turn into ...
1616 (s390_target::low_supply_ptrace_register): ...this.
1617 (s390_fill_gregset): Update for the calls to
1618 low_collect_ptrace_register.
1619 (the_low_target): Remove the op fields.
1621 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1623 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1624 target ops into methods of linux_process_target.
1626 * linux-low.h (struct linux_target_ops): Remove the ops.
1627 (class linux_process_target) <check_stopped_by_watchpoint>
1628 <low_stopped_by_watchpoint>
1629 <low_stopped_data_address>: Declare.
1630 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1631 (linux_process_target::check_stopped_by_watchpoint): ...this.
1632 (linux_process_target::low_stopped_by_watchpoint): Define.
1633 (linux_process_target::low_stopped_data_address): Define.
1634 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1635 <low_stopped_data_address>: Declare.
1636 (x86_stopped_by_watchpoint): Turn into...
1637 (x86_target::low_stopped_by_watchpoint): ...this.
1638 (x86_stopped_data_address): Turn into...
1639 (x86_target::low_stopped_data_address): ...this.
1640 (the_low_target): Remove the op fields.
1641 * linux-aarch64-low.cc (class aarch64_target)
1642 <low_stopped_by_watchpoint>
1643 <low_stopped_data_address>: Declare.
1644 (aarch64_stopped_by_watchpoint): Turn into...
1645 (aarch64_target::low_stopped_by_watchpoint): ...this.
1646 (aarch64_stopped_data_address): Turn into...
1647 (aarch64_target::low_stopped_data_address): ...this.
1648 (the_low_target): Remove the op fields.
1649 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1650 <low_stopped_data_address>: Declare.
1651 (arm_stopped_by_watchpoint): Turn into...
1652 (arm_target::low_stopped_by_watchpoint): ...this.
1653 (arm_stopped_data_address): Turn into...
1654 (arm_target::low_stopped_data_address): ...this.
1655 (the_low_target): Remove the op fields.
1656 * linux-crisv32-low.cc (class crisv32_target)
1657 <low_stopped_by_watchpoint>
1658 <low_stopped_data_address>: Declare.
1659 (cris_stopped_by_watchpoint): Turn into...
1660 (crisv32_target::low_stopped_by_watchpoint): ...this.
1661 (cris_stopped_data_address): Turn into...
1662 (crisv32_target::low_stopped_data_address): ...this.
1663 (the_low_target): Remove the op fields.
1664 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1665 <low_stopped_data_address>: Declare.
1666 (mips_stopped_by_watchpoint): Turn into...
1667 (mips_target::low_stopped_by_watchpoint): ...this.
1668 (mips_stopped_data_address): Turn into...
1669 (mips_target::low_stopped_data_address): ...this.
1670 (the_low_target): Remove the op fields.
1671 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1672 * linux-m32r-low.cc (the_low_target): Ditto.
1673 * linux-m68k-low.cc (the_low_target): Ditto.
1674 * linux-ppc-low.cc (the_low_target): Ditto.
1675 * linux-s390-low.cc (the_low_target): Ditto.
1676 * linux-sh-low.cc (the_low_target): Ditto.
1677 * linux-sparc-low.cc (the_low_target): Ditto.
1678 * linux-tic6x-low.cc (the_low_target): Ditto.
1679 * linux-tile-low.cc (the_low_target): Ditto.
1680 * linux-xtensa-low.cc (the_low_target): Ditto.
1682 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1684 Turn the 'insert_point' and 'remove_point' linux target ops into
1685 methods of linux_process_target.
1687 * linux-low.h (struct linux_target_ops): Remove the ops.
1688 (class linux_process_target) <low_insert_point>
1689 <low_remove_point>: Declare.
1690 * linux-low.cc (linux_process_target::low_insert_point)
1691 (linux_process_target::low_remove_point): Define.
1692 (linux_process_target::insert_point)
1693 (linux_process_target::remove_point): Update for calls to
1694 low_insert_point and low_remove_point.
1695 * linux-x86-low.cc (class x86_target) <low_insert_point>
1696 <low_remove_point>: Declare.
1697 (x86_insert_point): Turn into...
1698 (x86_target::low_insert_point): ...this.
1699 (x86_remove_point): Turn into...
1700 (x86_target::low_remove_point): ...this.
1701 (the_low_target): Remove the op fields.
1702 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1703 <low_remove_point>: Declare.
1704 (aarch64_insert_point): Turn into...
1705 (aarch64_target::low_insert_point): ...this.
1706 (aarch64_remove_point): Turn into...
1707 (aarch64_target::low_remove_point): ...this.
1708 (the_low_target): Remove the op fields.
1709 * linux-arm-low.cc (class arm_target) <low_insert_point>
1710 <low_remove_point>: Declare.
1711 (arm_insert_point): Turn into...
1712 (arm_target::low_insert_point): ...this.
1713 (arm_remove_point): Turn into...
1714 (arm_target::low_remove_point): ...this.
1715 (the_low_target): Remove the op fields.
1716 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1717 <low_remove_point>: Declare.
1718 (crisv32_insert_point): Turn into...
1719 (crisv32_target::low_insert_point): ...this.
1720 (crisv32_remove_point): Turn into...
1721 (crisv32_target::low_remove_point): ...this.
1722 (the_low_target): Remove the op fields.
1723 * linux-mips-low.cc (class mips_target) <low_insert_point>
1724 <low_remove_point>: Declare.
1725 (mips_insert_point): Turn into...
1726 (mips_target::low_insert_point): ...this.
1727 (mips_remove_point): Turn into...
1728 (mips_target::low_remove_point): ...this.
1729 (the_low_target): Remove the op fields.
1730 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1731 <low_remove_point>: Declare.
1732 (ppc_insert_point): Turn into...
1733 (ppc_target::low_insert_point): ...this.
1734 (ppc_remove_point): Turn into...
1735 (ppc_target::low_remove_point): ...this.
1736 (the_low_target): Remove the op fields.
1737 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1738 * linux-m32r-low.cc (the_low_target): Ditto.
1739 * linux-m68k-low.cc (the_low_target): Ditto.
1740 * linux-s390-low.cc (the_low_target): Ditto.
1741 * linux-sh-low.cc (the_low_target): Ditto.
1742 * linux-sparc-low.cc (the_low_target): Ditto.
1743 * linux-tic6x-low.cc (the_low_target): Ditto.
1744 * linux-tile-low.cc (the_low_target): Ditto.
1745 * linux-xtensa-low.cc (the_low_target): Ditto.
1747 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1749 Remove the 'supports_z_point_type' linux target op and let the
1750 concrete linux target define it by overriding the op declared in
1751 process_stratum_target.
1753 * linux-low.cc (linux_process_target::supports_z_point_type):
1755 * linux-low.h (struct linux_target_ops): Remove the op.
1756 (class linux_process_target) <supports_z_point_type>: Remove.
1757 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1759 (x86_supports_z_point_type): Turn into...
1760 (x86_target::supports_z_point_type): ...this.
1761 (the_low_target): Remove the op field.
1762 * linux-aarch64-low.cc (class aarch64_target)
1763 <supports_z_point_type>: Declare.
1764 (aarch64_supports_z_point_type): Turn into...
1765 (aarch64_target::supports_z_point_type): ...this.
1766 (the_low_target): Remove the op field.
1767 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1769 (arm_supports_z_point_type): Turn into...
1770 (arm_target::supports_z_point_type): ...this.
1771 (the_low_target): Remove the op field.
1772 * linux-crisv32-low.cc (class crisv32_target)
1773 <supports_z_point_type>: Declare.
1774 (cris_supports_z_point_type): Turn into...
1775 (crisv32_target::supports_z_point_type): ...this.
1776 (the_low_target): Remove the op field.
1777 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1779 (mips_supports_z_point_type): Turn into...
1780 (mips_target::supports_z_point_type): ...this.
1781 (the_low_target): Remove the op field.
1782 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1784 (ppc_supports_z_point_type): Turn into...
1785 (ppc_target::supports_z_point_type): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1789 (s390_supports_z_point_type): Turn into...
1790 (s390_target::supports_z_point_type): ...this.
1791 (the_low_target): Remove the op field.
1792 * linux-bfin-low.cc (the_low_target): Remove the op field.
1793 * linux-m32r-low.cc (the_low_target): Ditto.
1794 * linux-m68k-low.cc (the_low_target): Ditto.
1795 * linux-sh-low.cc (the_low_target): Ditto.
1796 * linux-sparc-low.cc (the_low_target): Ditto.
1797 * linux-tic6x-low.cc (the_low_target): Ditto.
1798 * linux-tile-low.cc (the_low_target): Ditto.
1799 * linux-xtensa-low.cc (the_low_target): Ditto.
1801 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1803 Turn the 'breakpoint_at' linux target op into a method of
1804 linux_process_target.
1806 * linux-low.h (struct linux_target_ops): Remove the op.
1807 (class linux_process_target) <low_breakpoint_at>: Declare.
1809 Update the callers below:
1811 * linux-low.cc (linux_process_target::save_stop_reason)
1812 (linux_process_target::thread_still_has_status_pending)
1813 (linux_process_target::wait_1)
1815 * linux-x86-low.cc (class x86_target)
1816 <low_breakpoint_at>: Declare.
1817 (x86_breakpoint_at): Turn into...
1818 (x86_target::low_breakpoint_at): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-aarch64-low.cc (class aarch64_target)
1821 <low_breakpoint_at>: Declare.
1822 (aarch64_breakpoint_at): Turn into...
1823 (aarch64_target::low_breakpoint_at): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-arm-low.cc (class arm_target)
1826 <low_breakpoint_at>: Declare.
1827 (arm_target::low_breakpoint_at): Define.
1828 (the_low_target): Remove the op field.
1829 * linux-bfin-low.cc (class bfin_target)
1830 <low_breakpoint_at>: Declare.
1831 (bfin_breakpoint_at): Turn into...
1832 (bfin_target::low_breakpoint_at): ...this.
1833 (the_low_target): Remove the op field.
1834 * linux-cris-low.cc (class cris_target)
1835 <low_breakpoint_at>: Declare.
1836 (cris_breakpoint_at): Turn into...
1837 (cris_target::low_breakpoint_at): ...this.
1838 (the_low_target): Remove the op field.
1839 * linux-crisv32-low.cc (class crisv32_target)
1840 <low_breakpoint_at>: Declare.
1841 (crisv32_breakpoint_at): Turn into...
1842 (crisv32_target::low_breakpoint_at): ...this.
1843 (the_low_target): Remove the op field.
1844 * linux-ia64-low.cc (class ia64_target)
1845 <low_breakpoint_at>: Declare.
1846 (ia64_target::low_breakpoint_at): Define.
1847 * linux-m32r-low.cc (class m32r_target)
1848 <low_breakpoint_at>: Declare.
1849 (m32r_breakpoint_at): Turn into...
1850 (m32r_target::low_breakpoint_at): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-m68k-low.cc (class m68k_target)
1853 <low_breakpoint_at>: Declare.
1854 (m68k_breakpoint_at): Turn into...
1855 (m68k_target::low_breakpoint_at): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-mips-low.cc (class mips_target)
1858 <low_breakpoint_at>: Declare.
1859 (mips_breakpoint_at): Turn into...
1860 (mips_target::low_breakpoint_at): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-nios2-low.cc (class nios2_target)
1863 <low_breakpoint_at>: Declare.
1864 (nios2_breakpoint_at): Turn into...
1865 (nios2_target::low_breakpoint_at): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-ppc-low.cc (class ppc_target)
1868 <low_breakpoint_at>: Declare.
1869 (ppc_breakpoint_at): Turn into...
1870 (ppc_target::low_breakpoint_at): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-riscv-low.cc (class riscv_target)
1873 <low_breakpoint_at>: Declare.
1874 (riscv_breakpoint_at): Turn into...
1875 (riscv_target::low_breakpoint_at): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-s390-low.cc (class s390_target)
1878 <low_breakpoint_at>: Declare.
1879 (s390_breakpoint_at): Turn into...
1880 (s390_target::low_breakpoint_at): ...this.
1881 (the_low_target): Remove the op field.
1882 * linux-sh-low.cc (class sh_target)
1883 <low_breakpoint_at>: Declare.
1884 (sh_breakpoint_at): Turn into...
1885 (sh_target::low_breakpoint_at): ...this.
1886 (the_low_target): Remove the op field.
1887 * linux-sparc-low.cc (class sparc_target)
1888 <low_breakpoint_at>: Declare.
1889 (sparc_breakpoint_at): Turn into...
1890 (sparc_target::low_breakpoint_at): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-tic6x-low.cc (class tic6x_target)
1893 <low_breakpoint_at>: Declare.
1894 (tic6x_breakpoint_at): Turn into...
1895 (tic6x_target::low_breakpoint_at): ...this.
1896 (the_low_target): Remove the op field.
1897 * linux-tile-low.cc (class tile_target)
1898 <low_breakpoint_at>: Declare.
1899 (tile_breakpoint_at): Turn into...
1900 (tile_target::low_breakpoint_at): ...this.
1901 (the_low_target): Remove the op field.
1902 * linux-xtensa-low.cc (class xtensa_target)
1903 <low_breakpoint_at>: Declare.
1904 (xtensa_breakpoint_at): Turn into...
1905 (xtensa_target::low_breakpoint_at): ...this.
1906 (the_low_target): Remove the op field.
1908 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1910 Turn the 'decr_pc_after_break' linux_target_ops field into
1911 a method of linux_process_target.
1913 * linux-low.h (struct linux_target_ops)
1914 <decr_pc_after_break>: Remove.
1915 (class linux_process_target) <low_decr_pc_after_break>: New method
1917 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1918 New method implementation.
1920 Update the users below.
1922 (linux_process_target::save_stop_reason)
1923 (linux_process_target::wait_1)
1924 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1926 (x86_target::low_decr_pc_after_break): New method implementation.
1927 (the_low_target): Remove the field.
1928 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1930 (bfin_target::low_decr_pc_after_break): New method implementation.
1931 (the_low_target): Remove the field.
1932 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1934 (m68k_target::low_decr_pc_after_break): New method implementation.
1935 (the_low_target): Remove the field.
1936 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1938 (s390_target::low_decr_pc_after_break): New method implementation.
1939 (the_low_target): Remove the field.
1940 * linux-aarch64-low.cc (the_low_target): Remove the field.
1941 * linux-arm-low.cc (the_low_target): Remove the field.
1942 * linux-cris-low.cc (the_low_target): Remove the field.
1943 * linux-crisv32-low.cc (the_low_target): Remove the field.
1944 * linux-m32r-low.cc (the_low_target): Remove the field.
1945 * linux-mips-low.cc (the_low_target): Remove the field.
1946 * linux-nios2-low.cc (the_low_target): Remove the field.
1947 * linux-ppc-low.cc (the_low_target): Remove the field.
1948 * linux-riscv-low.cc (the_low_target): Remove the field.
1949 * linux-sh-low.cc (the_low_target): Remove the field.
1950 * linux-sparc-low.cc (the_low_target): Remove the field.
1951 * linux-tic6x-low.cc (the_low_target): Remove the field.
1952 * linux-tile-low.cc (the_low_target): Remove the field.
1953 * linux-xtensa-low.cc (the_low_target): Remove the field.
1955 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1957 Remove the 'supports_software_single_step' linux target op and let
1958 the concrete linux target define it by overriding the op in
1959 process_stratum_target.
1960 Turn the 'get_next_pcs' linux target op into a method of
1961 linux_process_target.
1963 * linux-low.h (struct linux_target_ops): Remove the ops.
1964 (class linux_process_target) <supports_software_single_step>:
1966 <low_get_next_pcs>: Declare.
1967 * linux-low.cc (can_software_single_step): Remove.
1968 (linux_process_target::low_get_next_pcs): Define.
1969 (linux_process_target::supports_software_single_step): Remove.
1971 Update the callers below.
1973 (linux_process_target::handle_extended_wait)
1974 (linux_process_target::wait_1)
1975 (linux_process_target::install_software_single_step_breakpoints)
1976 (linux_process_target::single_step)
1977 (linux_process_target::thread_needs_step_over)
1978 (linux_process_target::proceed_one_lwp)
1979 (linux_process_target::supports_range_stepping)
1981 * linux-x86-low.cc (the_low_target): Remove the op field.
1982 * linux-aarch64-low.cc (the_low_target): Ditto.
1983 * linux-bfin-low.cc (the_low_target): Ditto.
1984 * linux-cris-low.cc (the_low_target): Ditto.
1985 * linux-crisv32-low.cc (the_low_target): Ditto.
1986 * linux-m32r-low.cc (the_low_target): Ditto.
1987 * linux-m68k-low.cc (the_low_target): Ditto.
1988 * linux-mips-low.cc (the_low_target): Ditto.
1989 * linux-nios2-low.cc (the_low_target): Ditto.
1990 * linux-ppc-low.cc (the_low_target): Ditto.
1991 * linux-riscv-low.cc (the_low_target): Ditto.
1992 * linux-s390-low.cc (the_low_target): Ditto.
1993 * linux-sh-low.cc (the_low_target): Ditto.
1994 * linux-sparc-low.cc (the_low_target): Ditto.
1995 * linux-tic6x-low.cc (the_low_target): Ditto.
1996 * linux-tile-low.cc (the_low_target): Ditto.
1997 * linux-xtensa-low.cc (the_low_target): Ditto.
1998 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1999 <supports_software_single_step>: Declare.
2000 (arm_target::supports_software_single_step): Define.
2001 (arm_gdbserver_get_next_pcs): Turn into...
2002 (arm_target::low_get_next_pcs): ...this.
2003 (the_low_target): Remove the op field.
2005 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2007 Remove the 'sw_breakpoint_from_kind' linux target op, and let
2008 the concrete linux target define it by overriding the op
2009 in process_stratum_target.
2011 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
2013 * linux-low.h (struct linux_target_ops): Remove the op.
2014 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
2015 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
2017 (x86_sw_breakpoint_from_kind): Turn into...
2018 (x86_target::sw_breakpoint_from_kind): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-aarch64-low.cc (class aarch64_target)
2021 <sw_breakpoint_from_kind>: Declare.
2022 (aarch64_sw_breakpoint_from_kind): Turn into...
2023 (aarch64_target::sw_breakpoint_from_kind): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2027 (arm_target::sw_breakpoint_from_kind): Define.
2028 (the_low_target): Remove the op field.
2029 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2031 (bfin_sw_breakpoint_from_kind): Turn into...
2032 (bfin_target::sw_breakpoint_from_kind): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2036 (cris_sw_breakpoint_from_kind): Turn into...
2037 (cris_target::sw_breakpoint_from_kind): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-crisv32-low.cc (class crisv32_target)
2040 <sw_breakpoint_from_kind>: Declare.
2041 (cris_sw_breakpoint_from_kind): Turn into...
2042 (crisv32_target::sw_breakpoint_from_kind): ...this.
2043 (the_low_target): Remove the op field.
2044 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2046 (ia64_target::sw_breakpoint_from_kind): Define.
2047 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2049 (m32r_sw_breakpoint_from_kind): Turn into...
2050 (m32r_target::sw_breakpoint_from_kind): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2054 (m68k_sw_breakpoint_from_kind): Turn into...
2055 (m68k_target::sw_breakpoint_from_kind): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2059 (mips_sw_breakpoint_from_kind): Turn into...
2060 (mips_target::sw_breakpoint_from_kind): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2064 (nios2_sw_breakpoint_from_kind): Turn into...
2065 (nios2_target::sw_breakpoint_from_kind): ...this.
2066 (the_low_target): Remove the op field.
2067 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2069 (ppc_sw_breakpoint_from_kind): Turn into...
2070 (ppc_target::sw_breakpoint_from_kind): ...this.
2071 (the_low_target): Remove the op field.
2072 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2074 (riscv_sw_breakpoint_from_kind): Turn into...
2075 (riscv_target::sw_breakpoint_from_kind): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2079 (s390_sw_breakpoint_from_kind): Turn into...
2080 (s390_target::sw_breakpoint_from_kind): ...this.
2081 (the_low_target): Remove the op field.
2082 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2084 (sh_sw_breakpoint_from_kind): Turn into...
2085 (sh_target::sw_breakpoint_from_kind): ...this.
2086 (the_low_target): Remove the op field.
2087 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2089 (sparc_sw_breakpoint_from_kind): Turn into...
2090 (sparc_target::sw_breakpoint_from_kind): ...this.
2091 (the_low_target): Remove the op field.
2092 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2094 (tic6x_sw_breakpoint_from_kind): Turn into...
2095 (tic6x_target::sw_breakpoint_from_kind): ...this.
2096 (the_low_target): Remove the op field.
2097 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2099 (tile_sw_breakpoint_from_kind): Turn into...
2100 (tile_target::sw_breakpoint_from_kind): ...this.
2101 (the_low_target): Remove the op field.
2102 * linux-xtensa-low.cc (class xtensa_target)
2103 <sw_breakpoint_from_kind>: Declare.
2104 (xtensa_sw_breakpoint_from_kind): Turn into...
2105 (xtensa_target::sw_breakpoint_from_kind): ...this.
2106 (the_low_target): Remove the op field.
2108 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2110 Remove the 'breakpoint_kind_from_pc' and
2111 'breakpoint_kind_from_current_state' linux target ops, and let the
2112 concrete linux target define them by overriding the ops of
2113 process_stratum_target.
2115 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2117 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2118 * linux-low.h (struct linux_target_ops): Remove ops.
2119 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2120 <breakpoint_kind_from_current_state>: Remove.
2121 * linux-x86-low.cc (the_low_target): Remove the op fields.
2122 * linux-bfin-low.cc (the_low_target): Ditto.
2123 * linux-cris-low.cc (the_low_target): Ditto.
2124 * linux-crisv32-low.cc (the_low_target): Ditto.
2125 * linux-m32r-low.cc (the_low_target): Ditto.
2126 * linux-m68k-low.cc (the_low_target): Ditto.
2127 * linux-mips-low.cc (the_low_target): Ditto.
2128 * linux-nios2-low.cc (the_low_target): Ditto.
2129 * linux-ppc-low.cc (the_low_target): Ditto.
2130 * linux-s390-low.cc (the_low_target): Ditto.
2131 * linux-sh-low.cc (the_low_target): Ditto.
2132 * linux-sparc-low.cc (the_low_target): Ditto.
2133 * linux-tic6x-low.cc (the_low_target): Ditto.
2134 * linux-tile-low.cc (the_low_target): Ditto.
2135 * linux-xtensa-low.cc (the_low_target): Ditto.
2136 * linux-aarch64-low.cc (class aarch64_target)
2137 <breakpoint_kind_from_pc>
2138 <breakpoint_kind_from_current_state>: Declare.
2139 (aarch64_breakpoint_kind_from_pc): Turn into...
2140 (aarch64_target::breakpoint_kind_from_pc): ...this.
2141 (aarch64_breakpoint_kind_from_current_state): Turn into...
2142 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2143 (the_low_target): Remove the op fields.
2144 * linux-arm-low.cc (class arm_target):
2145 <breakpoint_kind_from_pc>
2146 <breakpoint_kind_from_current_state>: Declare.
2147 (arm_target::breakpoint_kind_from_pc): Define.
2148 (arm_target::breakpoint_kind_from_current_state): Define.
2149 (the_low_target): Remove the op fields.
2150 * linux-riscv-low.cc (class riscv_target):
2151 <breakpoint_kind_from_pc>: Declare.
2152 (riscv_breakpoint_kind_from_pc): Turn into...
2153 (riscv_target::breakpoint_kind_from_pc): ...this.
2154 (the_low_target): Remove the op fields.
2156 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2158 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2159 of linux_process_target.
2161 * linux-low.h (struct linux_target_ops): Remove the ops.
2162 (class linux_process_target) <low_supports_breakpoints>
2164 <low_set_pc>: Declare.
2165 * linux-low.cc (supports_breakpoints): Turn into...
2166 (linux_process_target::low_supports_breakpoints): ...this.
2167 (linux_process_target::low_get_pc): Define.
2168 (linux_process_target::low_set_pc): Define.
2170 Update the callers below.
2172 (linux_process_target::get_pc)
2173 (linux_process_target::save_stop_reason)
2174 (linux_process_target::maybe_move_out_of_jump_pad)
2175 (linux_process_target::wait_1)
2176 (linux_process_target::resume_one_lwp_throw)
2177 (linux_process_target::resume)
2178 (linux_process_target::proceed_all_lwps)
2179 (linux_process_target::read_pc)
2180 (linux_process_target::write_pc)
2182 * linux-x86-low.cc (class linux_process_target)
2183 <low_supports_breakpoints>
2185 <low_set_pc>: Declare.
2186 (x86_target::low_supports_breakpoints): Define.
2187 (x86_get_pc): Turn into...
2188 (x86_target::low_get_pc): ...this.
2189 (x86_set_pc): Turn into...
2190 (x86_target::low_set_pc): ...this.
2191 (the_low_target): Remove the op fields.
2192 * linux-arm-low.cc (class arm_target)
2193 <low_supports_breakpoints>
2195 <low_set_pc>: Declare.
2196 (arm_target::low_supports_breakpoints)
2197 (arm_target::low_get_pc)
2198 (arm_target::low_set_pc): Define.
2199 (the_low_target): Remove the op fields.
2200 * linux-bfin-low.cc (class bfin_target)
2201 <low_supports_breakpoints>
2203 <low_set_pc>: Declare.
2204 (bfin_target::low_supports_breakpoints)
2205 (bfin_target::low_get_pc)
2206 (bfin_target::low_set_pc): Define.
2207 (the_low_target): Remove the op fields.
2208 * linux-cris-low.cc (class cris_target)
2209 <low_supports_breakpoints>
2211 <low_set_pc>: Declare.
2212 (cris_target::low_supports_breakpoints)
2213 (cris_target::low_get_pc)
2214 (cris_target::low_set_pc): Define.
2215 (the_low_target): Remove the op fields.
2216 * linux-crisv32-low.cc (class crisv32_target)
2217 <low_supports_breakpoints>
2219 <low_set_pc>: Declare.
2220 (crisv32_target::low_supports_breakpoints)
2221 (crisv32_target::low_get_pc)
2222 (crisv32_target::low_set_pc): Define.
2223 (the_low_target): Remove the op fields.
2224 * linux-m32r-low.cc (class m32r_target)
2225 <low_supports_breakpoints>
2227 <low_set_pc>: Declare.
2228 (m32r_target::low_supports_breakpoints)
2229 (m32r_target::low_get_pc)
2230 (m32r_target::low_set_pc): Define.
2231 (the_low_target): Remove the op fields.
2232 * linux-m68k-low.cc (class m68k_target)
2233 <low_supports_breakpoints>
2235 <low_set_pc>: Declare.
2236 (m68k_target::low_supports_breakpoints)
2237 (m68k_target::low_get_pc)
2238 (m68k_target::low_set_pc): Define.
2239 (the_low_target): Remove the op fields.
2240 * linux-nios2-low.cc (class nios2_target)
2241 <low_supports_breakpoints>
2243 <low_set_pc>: Declare.
2244 (nios2_target::low_supports_breakpoints)
2245 (nios2_target::low_get_pc)
2246 (nios2_target::low_set_pc): Define.
2247 (the_low_target): Remove the op fields.
2248 * linux-sh-low.cc (class sh_target)
2249 <low_supports_breakpoints>
2251 <low_set_pc>: Declare.
2252 (sh_target::low_supports_breakpoints)
2253 (sh_target::low_get_pc)
2254 (sh_target::low_set_pc): Define.
2255 (the_low_target): Remove the op fields.
2256 * linux-xtensa-low.cc (class xtensa_target)
2257 <low_supports_breakpoints>
2259 <low_set_pc>: Declare.
2260 (xtensa_target::low_supports_breakpoints)
2261 (xtensa_target::low_get_pc)
2262 (xtensa_target::low_set_pc): Define.
2263 (the_low_target): Remove the op fields.
2264 * linux-sparc-low.cc (class sparc_target)
2265 <low_supports_breakpoints>
2266 <low_get_pc>: Declare.
2267 (sparc_target::low_supports_breakpoints)
2268 (sparc_target::low_get_pc): Define.
2269 (the_low_target): Remove the op fields.
2270 * linux-tile-low.cc (class tile_target)
2271 <low_supports_breakpoints>
2273 <low_set_pc>: Declare.
2274 (tile_target::low_supports_breakpoints)
2275 (tile_target::low_get_pc)
2276 (tile_target::low_set_pc): Define.
2277 (the_low_target): Remove the op fields.
2278 * linux-aarch64-low.cc (class aarch64_target)
2279 <low_supports_breakpoints>
2281 <low_set_pc>: Declare.
2282 (aarch64_target::low_supports_breakpoints): Define.
2283 (aarch64_get_pc): Turn into...
2284 (aarch64_target::low_get_pc): ...this.
2285 (aarch64_set_pc): Turn into...
2286 (aarch64_target::low_set_pc): ...this.
2287 (the_low_target): Remove the op fields.
2288 * linux-mips-low.cc (class mips_target)
2289 <low_supports_breakpoints>
2291 <low_set_pc>: Declare.
2292 (mips_target::low_supports_breakpoints): Define.
2293 (mips_get_pc): Turn into...
2294 (mips_target::low_get_pc): ...this.
2295 (mips_set_pc): Turn into...
2296 (mips_target::low_set_pc): ...this.
2297 (the_low_target): Remove the op fields.
2298 * linux-ppc-low.cc (class ppc_target)
2299 <low_supports_breakpoints>
2301 <low_set_pc>: Declare.
2302 (ppc_target::low_supports_breakpoints): Define.
2303 (ppc_get_pc): Turn into...
2304 (ppc_target::low_get_pc): ...this.
2305 (ppc_set_pc): Turn into...
2306 (ppc_target::low_set_pc): ...this.
2307 (the_low_target): Remove the op fields.
2308 * linux-riscv-low.cc (class riscv_target)
2309 <low_supports_breakpoints>
2311 <low_set_pc>: Declare.
2312 (riscv_target::low_supports_breakpoints): Define.
2313 (riscv_get_pc): Turn into...
2314 (riscv_target::low_get_pc): ...this.
2315 (riscv_set_pc): Turn into...
2316 (riscv_target::low_set_pc): ...this.
2317 (the_low_target): Remove the op fields.
2318 * linux-s390-low.cc (class s390_target)
2319 <low_supports_breakpoints>
2321 <low_set_pc>: Declare.
2322 (s390_target::low_supports_breakpoints): Define.
2323 (s390_get_pc): Turn into...
2324 (s390_target::low_get_pc): ...this.
2325 (s390_set_pc): Turn into...
2326 (s390_target::low_set_pc): ...this.
2327 (the_low_target): Remove the op fields.
2328 * linux-tic6x-low.cc (class tic6x_target)
2329 <low_supports_breakpoints>
2331 <low_set_pc>: Declare.
2332 (tic6x_target::low_supports_breakpoints): Define.
2333 (tic6x_get_pc): Turn into...
2334 (tic6x_target::low_get_pc): ...this.
2335 (tic6x_set_pc): Turn into...
2336 (tic6x_target::low_set_pc): ...this.
2337 (the_low_target): Remove the op fields.
2339 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2341 Turn some more static methods in linux-low into private methods
2342 of linux_process_target.
2344 * linux-low.cc (get_pc): Turn into...
2345 (linux_process_target::get_pc): ...this.
2346 (save_stop_reason): Turn into...
2347 (linux_process_target::save_stop_reason): ...this.
2348 (thread_still_has_status_pending_p): Turn into...
2349 (linux_process_target::thread_still_has_status_pending): ...this.
2350 (status_pending_p_callback): Turn into...
2351 (linux_process_target::status_pending_p_callback): ...this.
2352 (resume_stopped_resumed_lwps): Turn into...
2353 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2354 (install_software_single_step_breakpoints): Turn into...
2355 (linux_process_target::install_software_single_step_breakpoints):
2357 (single_step): Turn into...
2358 (linux_process_target::single_step): ...this.
2359 (linux_resume_one_lwp_throw): Turn into...
2360 (linux_process_target::resume_one_lwp_throw): ...this.
2361 (linux_resume_one_lwp): Turn into...
2362 (linux_process_target::resume_one_lwp): ...this.
2363 (resume_status_pending_p): Turn into...
2364 (linux_process_target::resume_status_pending): ...this.
2365 (need_step_over_p): Turn into...
2366 (linux_process_target::thread_needs_step_over): ...this.
2367 (linux_resume_one_thread): Turn into...
2368 (linux_process_target::resume_one_thread): ...this.
2369 (proceed_one_lwp): Turn into...
2370 (linux_process_target::proceed_one_lwp): ...this.
2371 (unsuspend_and_proceed_one_lwp): Turn into...
2372 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2374 Update the calls/references to the above functions below.
2376 (linux_process_target::handle_extended_wait)
2377 (linux_process_target::filter_event)
2378 (linux_process_target::wait_for_event_filtered)
2379 (linux_process_target::wait_1)
2380 (linux_process_target::move_out_of_jump_pad)
2381 (linux_process_target::start_step_over)
2382 (linux_process_target::resume)
2383 (linux_process_target::proceed_all_lwps)
2384 (regsets_store_inferior_registers)
2385 (linux_process_target::store_register)
2387 * linux-low.h (class linux_process_target)
2390 <thread_still_has_status_pending>
2391 <status_pending_p_callback>
2392 <resume_stopped_resumed_lwps>
2393 <install_software_single_step_breakpoints>
2395 <resume_one_lwp_throw>
2397 <resume_status_pending>
2398 <thread_needs_step_over>
2401 <unsuspend_and_proceed_one_lwp>: Declare.
2403 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2405 Turn the 'fetch_register' linux target op into a method of
2406 linux_process_target.
2408 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2409 (class linux_process_target) <low_fetch_register>: Declare.
2410 * linux-x86-low.cc (the_low_target)
2411 * linux-aarch64-low.cc (the_low_target)
2412 * linux-arm-low.cc (the_low_target)
2413 * linux-bfin-low.cc (the_low_target)
2414 * linux-cris-low.cc (the_low_target)
2415 * linux-crisv32-low.cc (the_low_target)
2416 * linux-m32r-low.cc (the_low_target)
2417 * linux-m68k-low.cc (the_low_target)
2418 * linux-nios2-low.cc (the_low_target)
2419 * linux-ppc-low.cc (the_low_target)
2420 * linux-s390-low.cc (the_low_target)
2421 * linux-sh-low.cc (the_low_target)
2422 * linux-sparc-low.cc (the_low_target)
2423 * linux-tic6x-low.cc (the_low_target)
2424 * linux-tile-low.cc (the_low_target)
2425 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2426 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2428 (ia64_fetch_register): Turn into...
2429 (ia64_target::low_fetch_register): ...this.
2430 (the_low_target): Remove the op field.
2431 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2433 (mips_fetch_register): Turn into...
2434 (mips_target::low_fetch_register): ...this.
2435 (the_low_target): Remove the op field.
2436 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2438 (riscv_fetch_register): Turn into...
2439 (riscv_target::low_fetch_register): ...this.
2440 (the_low_target): Remove the op field.
2442 Update the callers below.
2444 * linux-low.cc (linux_process_target::fetch_registers)
2445 (linux_process_target::low_fetch_register)
2447 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2449 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2450 linux target ops into methods of linux_process_target.
2452 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2453 (class linux_process_target) <fetch_register>
2455 <usr_fetch_inferior_registers>
2456 <usr_store_inferior_registers>
2457 <low_cannot_fetch_register>
2458 <low_cannot_fetch_register> Declare.
2459 * linux-low.cc (fetch_register): Turn into...
2460 (linux_process_target::fetch_register): ...this.
2461 (store_register): Turn into ...
2462 (linux_process_target::store_register): ...this.
2463 (usr_fetch_inferior_registers): Turn into...
2464 (linux_process_target::usr_fetch_inferior_registers): ...this.
2465 (usr_store_inferior_registers): Turn into...
2466 (linux_process_target::usr_store_inferior_registers): ...this.
2467 * linux-x86-low.cc (class x86_target)
2468 <low_cannot_fetch_register>
2469 <low_cannot_store_register>: Declare.
2470 (x86_cannot_store_register): Turn into...
2471 (x86_target::low_cannot_store_register): ...this.
2472 (x86_cannot_fetch_register): Turn into...
2473 (x86_target::low_cannot_fetch_register): ...this.
2474 (the_low_target): Remove the target op fields.
2475 * linux-aarch64-low.cc (class aarch64_target)
2476 <low_cannot_fetch_register>
2477 <low_cannot_store_register>: Declare.
2478 (aarch64_target::low_cannot_fetch_register)
2479 (aarch64_target::low_cannot_store_register): Define.
2480 (the_low_target): Remove the op fields.
2481 * linux-arm-low.cc (class arm_target)
2482 <low_cannot_fetch_register>
2483 <low_cannot_store_register>: Declare.
2484 (arm_cannot_fetch_register): Turn into...
2485 (arm_target::low_cannot_fetch_register): ...this.
2486 (arm_cannot_store_register): Turn into...
2487 (arm_target::low_cannot_store_register): ...this.
2488 (the_low_target): Remove the op fields.
2489 * linux-bfin-low.cc (class bfin_target)
2490 <low_cannot_fetch_register>
2491 <low_cannot_store_register>: Declare.
2492 (bfin_cannot_fetch_register): Turn into...
2493 (bfin_target::low_cannot_fetch_register): ...this.
2494 (bfin_cannot_store_register): Turn into...
2495 (bfin_target::low_cannot_store_register): ...this.
2496 (the_low_target): Remove the op fields.
2497 * linux-cris-low.cc (class cris_target)
2498 <low_cannot_fetch_register>
2499 <low_cannot_store_register>: Declare.
2500 (cris_cannot_fetch_register): Turn into...
2501 (cris_target::low_cannot_fetch_register): ...this.
2502 (cris_cannot_store_register): Turn into...
2503 (cris_target::low_cannot_store_register): ...this.
2504 (the_low_target): Remove the op fields.
2505 * linux-crisv32-low.cc (class crisv32_target)
2506 <low_cannot_fetch_register>
2507 <low_cannot_store_register>: Declare.
2508 (crisv32_target::low_cannot_fetch_register)
2509 (crisv32_target::low_cannot_store_register): Define.
2510 (the_low_target): Remove the op fields.
2511 * linux-ia64-low.cc (class ia64_target)
2512 <low_cannot_fetch_register>
2513 <low_cannot_store_register>: Declare.
2514 (ia64_cannot_fetch_register): Turn into...
2515 (ia64_target::low_cannot_fetch_register): ...this.
2516 (ia64_cannot_store_register): Turn into...
2517 (ia64_target::low_cannot_store_register): ...this.
2518 (the_low_target): Remove the op fields.
2519 * linux-m32r-low.cc (class m32r_target)
2520 <low_cannot_fetch_register>
2521 <low_cannot_store_register>: Declare.
2522 (m32r_cannot_fetch_register): Turn into...
2523 (m32r_target::low_cannot_fetch_register): ...this.
2524 (m32r_cannot_store_register): Turn into...
2525 (m32r_target::low_cannot_store_register): ...this.
2526 (the_low_target): Remove the op fields.
2527 * linux-m68k-low.cc (class m68k_target)
2528 <low_cannot_fetch_register>
2529 <low_cannot_store_register>: Declare.
2530 (m68k_cannot_fetch_register): Turn into...
2531 (m68k_target::low_cannot_fetch_register): ...this.
2532 (m68k_cannot_store_register): Turn into...
2533 (m68k_target::low_cannot_store_register): ...this.
2534 (the_low_target): Remove the op fields.
2535 * linux-mips-low.cc (class mips_target)
2536 <low_cannot_fetch_register>
2537 <low_cannot_store_register>: Declare.
2538 (mips_cannot_fetch_register): Turn into...
2539 (mips_target::low_cannot_fetch_register): ...this.
2540 (mips_cannot_store_register): Turn into...
2541 (mips_target::low_cannot_store_register): ...this.
2542 (get_usrregs_info): Inline at the call sites in
2543 low_cannot_fetch_register and low_cannot_store_register,
2545 (the_low_target): Remove the op fields.
2546 * linux-nios2-low.cc (class nios2_target)
2547 <low_cannot_fetch_register>
2548 <low_cannot_store_register>: Declare.
2549 (nios2_cannot_fetch_register): Turn into...
2550 (nios2_target::low_cannot_fetch_register): ...this.
2551 (nios2_cannot_store_register): Turn into...
2552 (nios2_target::low_cannot_store_register): ...this.
2553 (the_low_target): Remove the op fields.
2554 * linux-ppc-low.cc (class ppc_target)
2555 <low_cannot_fetch_register>
2556 <low_cannot_store_register>: Declare.
2557 (ppc_cannot_fetch_register): Turn into...
2558 (ppc_target::low_cannot_fetch_register): ...this.
2559 (ppc_cannot_store_register): Turn into...
2560 (ppc_target::low_cannot_store_register): ...this.
2561 (the_low_target): Remove the op fields.
2562 * linux-riscv-low.cc (class riscv_target)
2563 <low_cannot_fetch_register>
2564 <low_cannot_store_register>: Declare.
2565 (riscv_target::low_cannot_fetch_register)
2566 (riscv_target::low_cannot_store_register): Define.
2567 (the_low_target): Remove the op fields.
2568 * linux-s390-low.cc (class s390_target)
2569 <low_cannot_fetch_register>
2570 <low_cannot_store_register>: Declare.
2571 (s390_cannot_fetch_register): Turn into...
2572 (s390_target::low_cannot_fetch_register): ...this.
2573 (s390_cannot_store_register): Turn into...
2574 (s390_target::low_cannot_store_register): ...this.
2575 (the_low_target): Remove the op fields.
2576 * linux-sh-low.cc (class sh_target)
2577 <low_cannot_fetch_register>
2578 <low_cannot_store_register>: Declare.
2579 (sh_cannot_fetch_register): Turn into...
2580 (sh_target::low_cannot_fetch_register): ...this.
2581 (sh_cannot_store_register): Turn into...
2582 (sh_target::low_cannot_store_register): ...this.
2583 (the_low_target): Remove the op fields.
2584 * linux-sparc-low.cc (class sparc_target)
2585 <low_cannot_fetch_register>
2586 <low_cannot_store_register>: Declare.
2587 (sparc_cannot_fetch_register): Turn into...
2588 (sparc_target::low_cannot_fetch_register): ...this.
2589 (sparc_cannot_store_register): Turn into...
2590 (sparc_target::low_cannot_store_register): ...this.
2591 (the_low_target): Remove the op fields.
2592 * linux-tic6x-low.cc (class tic6x_target)
2593 <low_cannot_fetch_register>
2594 <low_cannot_store_register>: Declare.
2595 (tic6x_cannot_fetch_register): Turn into...
2596 (tic6x_target::low_cannot_fetch_register): ...this.
2597 (tic6x_cannot_store_register): Turn into...
2598 (tic6x_target::low_cannot_store_register): ...this.
2599 (the_low_target): Remove the op fields.
2600 * linux-tile-low.cc (class tile_target)
2601 <low_cannot_fetch_register>
2602 <low_cannot_store_register>: Declare.
2603 (tile_cannot_fetch_register): Turn into...
2604 (tile_target::low_cannot_fetch_register): ...this.
2605 (tile_cannot_store_register): Turn into...
2606 (tile_target::low_cannot_store_register): ...this.
2607 (the_low_target): Remove the op fields.
2608 * linux-xtensa-low.cc (class xtensa_target)
2609 <low_cannot_fetch_register>
2610 <low_cannot_store_register>: Declare.
2611 (xtensa_target::low_cannot_fetch_register)
2612 (xtensa_target::low_cannot_store_register): Define.
2613 (the_low_target): Remove the op fields.
2615 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2617 Turn the 'regs_info' linux target op into a method of
2618 linux_process_target.
2620 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2621 (class linux_process_target) <get_regs_info>: Define.
2623 Update the callers below.
2625 * linux-low.cc (linux_process_target::fetch_registers)
2626 (linux_process_target::store_registers)
2627 * proc-service.cc (gregset_info)
2629 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2630 (x86_linux_regs_info): Turn into ...
2631 (x86_target::get_regs_info): ...this.
2632 (the_low_target): Remove the op field.
2633 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2635 (aarch64_regs_info): Turn into ...
2636 (aarch64_target::get_regs_info): ...this.
2637 (the_low_target): Remove the op field.
2638 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2639 (arm_regs_info): Turn into ...
2640 (arm_target::get_regs_info): ...this.
2641 (the_low_target): Remove the op field.
2642 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2643 (bfin_regs_info): Turn into ...
2644 (bfin_target::get_regs_info): ...this.
2645 (the_low_target): Remove the op field.
2646 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2647 (cris_regs_info): Turn into ...
2648 (cris_target::get_regs_info): ...this.
2649 (the_low_target): Remove the op field.
2650 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2652 (crisv32_regs_info): Turn into ...
2653 (crisv32_target::get_regs_info): ...this.
2654 (the_low_target): Remove the op field.
2655 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2656 (ia64_regs_info): Turn into ...
2657 (ia64_target::get_regs_info): ...this.
2658 (the_low_target): Remove the op field.
2659 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2660 (m32r_regs_info): Turn into ...
2661 (m32r_target::get_regs_info): ...this.
2662 (the_low_target): Remove the op field.
2663 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2664 (m68k_regs_info): Turn into ...
2665 (m68k_target::get_regs_info): ...this.
2666 (the_low_target): Remove the op field.
2667 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2668 (mips_regs_info): Turn into ...
2669 (mips_target::get_regs_info): ...this.
2670 (the_low_target): Remove the op field.
2671 (get_usrregs_info): Update the call to the op.
2672 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2673 (nios2_regs_info): Turn into ...
2674 (nios2_target::get_regs_info): ...this.
2675 (the_low_target): Remove the op field.
2676 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2677 (ppc_regs_info): Turn into ...
2678 (ppc_target::get_regs_info): ...this.
2679 (the_low_target): Remove the op field.
2680 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2681 (riscv_regs_info): Turn into ...
2682 (riscv_target::get_regs_info): ...this.
2683 (the_low_target): Remove the op field.
2684 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2685 (s390_regs_info): Turn into ...
2686 (s390_target::get_regs_info): ...this.
2687 (the_low_target): Remove the op field.
2688 (s390_collect_ptrace_register)
2689 (s390_supply_ptrace_register)
2690 (s390_fill_gregset): Update the call to the op.
2691 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2692 (sh_regs_info): Turn into ...
2693 (sh_target::get_regs_info): ...this.
2694 (the_low_target): Remove the op field.
2695 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2696 (sparc_regs_info): Turn into ...
2697 (sparc_target::get_regs_info): ...this.
2698 (the_low_target): Remove the op field.
2699 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2700 (tic6x_regs_info): Turn into ...
2701 (tic6x_target::get_regs_info): ...this.
2702 (the_low_target): Remove the op field.
2703 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2704 (tile_regs_info): Turn into ...
2705 (tile_target::get_regs_info): ...this.
2706 (the_low_target): Remove the op field.
2707 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2709 (xtensa_regs_info): Turn into ...
2710 (xtensa_target::get_regs_info): ...this.
2711 (the_low_target): Remove the op field.
2713 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2715 Turn the 'arch_setup' linux target op into a method of
2716 linux_process_target.
2718 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2719 (class linux_process_target) <arch_setup_thread>
2720 <low_arch_setup>: New declarations.
2721 * linux-low.cc (linux_arch_setup): Delete.
2722 (linux_arch_setup_thread): Turn into...
2723 (linux_process_target::arch_setup_thread): ... this.
2725 Update the callers below.
2727 (linux_process_target::handle_extended_wait)
2728 (linux_process_target::post_create_inferior)
2729 (linux_process_target::filter_event)
2731 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2733 (x86_linux_update_xmltarget): Turn into...
2734 (x86_target::update_xmltarget): ...this.
2735 (x86_linux_process_qsupported): Update the call to
2736 x86_linux_update_xmltarget.
2737 (x86_arch_setup): Turn into ...
2738 (x86_target::low_arch_setup): ...this.
2739 (the_low_target): Remove the op field.
2740 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2742 (aarch64_arch_setup): Turn into ...
2743 (aarch64_target::low_arch_setup): ...this.
2744 (the_low_target): Remove the op field.
2745 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2747 (arm_arch_setup): Turn into ...
2748 (arm_target::low_arch_setup): ...this.
2749 (the_low_target): Remove the op field.
2750 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2752 (bfin_arch_setup): Turn into ...
2753 (bfin_target::low_arch_setup): ...this.
2754 (the_low_target): Remove the op field.
2755 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2757 (cris_arch_setup): Turn into ...
2758 (cris_target::low_arch_setup): ...this.
2759 (the_low_target): Remove the op field.
2760 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2762 (crisv32_arch_setup): Turn into ...
2763 (crisv32_target::low_arch_setup): ...this.
2764 (the_low_target): Remove the op field.
2765 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2767 (ia64_arch_setup): Turn into ...
2768 (ia64_target::low_arch_setup): ...this.
2769 (the_low_target): Remove the op field.
2770 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2772 (m32r_arch_setup): Turn into ...
2773 (m32r_target::low_arch_setup): ...this.
2774 (the_low_target): Remove the op field.
2775 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2777 (m68k_arch_setup): Turn into ...
2778 (m68k_target::low_arch_setup): ...this.
2779 (the_low_target): Remove the op field.
2780 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2782 (mips_arch_setup): Turn into ...
2783 (mips_target::low_arch_setup): ...this.
2784 (the_low_target): Remove the op field.
2785 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2787 (nios2_arch_setup): Turn into ...
2788 (nios2_target::low_arch_setup): ...this.
2789 (the_low_target): Remove the op field.
2790 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2792 (ppc_arch_setup): Turn into ...
2793 (ppc_target::low_arch_setup): ...this.
2794 (the_low_target): Remove the op field.
2795 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2797 (riscv_arch_setup): Turn into ...
2798 (riscv_target::low_arch_setup): ...this.
2799 (the_low_target): Remove the op field.
2800 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2802 (s390_arch_setup): Turn into ...
2803 (s390_target::low_arch_setup): ...this.
2804 (the_low_target): Remove the op field.
2805 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2807 (sh_arch_setup): Turn into ...
2808 (sh_target::low_arch_setup): ...this.
2809 (the_low_target): Remove the op field.
2810 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2812 (sparc_arch_setup): Turn into ...
2813 (sparc_target::low_arch_setup): ...this.
2814 (the_low_target): Remove the op field.
2815 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2817 (tic6x_arch_setup): Turn into ...
2818 (tic6x_target::low_arch_setup): ...this.
2819 (the_low_target): Remove the op field.
2820 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2822 (tile_arch_setup): Turn into ...
2823 (tile_target::low_arch_setup): ...this.
2824 (the_low_target): Remove the op field.
2825 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2827 (xtensa_arch_setup): Turn into ...
2828 (xtensa_target::low_arch_setup): ...this.
2829 (the_low_target): Remove the op field.
2831 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2833 * linux-low.h (the_linux_target): New extern declaration.
2834 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2836 (the_linux_target): Remove.
2837 * linux-x86-low.cc (class x86_target): New class.
2838 (the_x86_target): New static object.
2839 (the_linux_target): Define as pointer to the_x86_target.
2840 * linux-aarch64-low.cc (class aarch64_target): New class.
2841 (the_aarch64_target): New static object.
2842 (the_linux_target): Define as pointer to the_aarch64_target.
2843 * linux-arm-low.cc (class arm_target): New class.
2844 (the_arm_target): New static object.
2845 (the_linux_target): Define as pointer to the_arm_target.
2846 * linux-bfin-low.cc (class bfin_target): New class.
2847 (the_bfin_target): New static object.
2848 (the_linux_target): Define as pointer to the_bfin_target.
2849 * linux-cris-low.cc (class cris_target): New class.
2850 (the_cris_target): New static object.
2851 (the_linux_target): Define as pointer to the_cris_target.
2852 * linux-crisv32-low.cc (class crisv32_target): New class.
2853 (the_crisv32_target): New static object.
2854 (the_linux_target): Define as pointer to the_crisv32_target.
2855 * linux-ia64-low.cc (class ia64_target): New class.
2856 (the_ia64_target): New static object.
2857 (the_linux_target): Define as pointer to the_ia64_target.
2858 * linux-m32r-low.cc (class m32r_target): New class.
2859 (the_m32r_target): New static object.
2860 (the_linux_target): Define as pointer to the_m32r_target.
2861 * linux-m68k-low.cc (class m68k_target): New class.
2862 (the_m68k_target): New static object.
2863 (the_linux_target): Define as pointer to the_m68k_target.
2864 * linux-mips-low.cc (class mips_target): New class.
2865 (the_mips_target): New static object.
2866 (the_linux_target): Define as pointer to the_mips_target.
2867 * linux-nios2-low.cc (class nios2_target): New class.
2868 (the_nios2_target): New static object.
2869 (the_linux_target): Define as pointer to the_nios2_target.
2870 * linux-ppc-low.cc (class ppc_target): New class.
2871 (the_ppc_target): New static object.
2872 (the_linux_target): Define as pointer to the_ppc_target.
2873 * linux-riscv-low.cc (class riscv_target): New class.
2874 (the_riscv_target): New static object.
2875 (the_linux_target): Define as pointer to the_riscv_target.
2876 * linux-s390-low.cc (class s390_target): New class.
2877 (the_s390_target): New static object.
2878 (the_linux_target): Define as pointer to the_s390_target.
2879 * linux-sh-low.cc (class sh_target): New class.
2880 (the_sh_target): New static object.
2881 (the_linux_target): Define as pointer to the_sh_target.
2882 * linux-sparc-low.cc (class sparc_target): New class.
2883 (the_sparc_target): New static object.
2884 (the_linux_target): Define as pointer to the_sparc_target.
2885 * linux-tic6x-low.cc (class tic6x_target): New class.
2886 (the_tic6x_target): New static object.
2887 (the_linux_target): Define as pointer to the_tic6x_target.
2888 * linux-tile-low.cc (class tile_target): New class.
2889 (the_tile_target): New static object.
2890 (the_linux_target): Define as pointer to the_tile_target.
2891 * linux-xtensa-low.cc (class xtensa_target): New class.
2892 (the_xtensa_target): New static object.
2893 (the_linux_target): Define as pointer to the_xtensa_target.
2895 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897 Turn some static functions in linux-low.cc into private methods of
2898 linux_process_target.
2900 * linux-low.cc (handle_extended_wait): Turn into ...
2901 (linux_process_target::handle_extended_wait): ...this. Call
2902 'mourn' on 'this' object instead of 'the_target'.
2903 (maybe_move_out_of_jump_pad): Turn into...
2904 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2905 (linux_low_filter_event): Turn into...
2906 (linux_process_target::filter_event): ...this.
2907 (linux_wait_for_event_filtered): Turn into...
2908 (linux_process_target::wait_for_event_filtered): ...this.
2909 (linux_wait_for_event): Turn into...
2910 (linux_process_target::wait_for_event): ...this.
2911 (linux_wait_1): Turn into...
2912 (linux_process_target::wait_1): ...this.
2913 (wait_for_sigstop): Turn into...
2914 (linux_process_target::wait_for_sigstop): ...this.
2915 (move_out_of_jump_pad_callback): Turn into...
2916 (linux_process_target::move_out_of_jump_pad): ...this.
2917 (stop_all_lwps): Turn into...
2918 (linux_process_target::stop_all_lwps): ...this.
2919 (start_step_over): Turn into...
2920 (linux_process_target::start_step_over): ...this.
2921 (complete_ongoing_step_over): Turn into...
2922 (linux_process_target::complete_ongoing_step_over): ...this.
2923 (proceed_all_lwps): Turn into...
2924 (linux_process_target::proceed_all_lwps): ...this.
2925 (unstop_all_lwps): Turn into...
2926 (linux_process_target::unstop_all_lwps): ...this.
2928 * linux-low.h (class linux_process_target)
2929 <handle_extended_wait>
2930 <maybe_move_out_of_jump_pad>
2932 <wait_for_event_filtered>
2936 <move_out_of_jump_pad>
2939 <complete_ongoing_step_over>
2941 <unstop_all_lwps>: Declare.
2943 Update the callers below.
2945 * linux-low.cc (linux_process_target::attach): Update.
2946 (linux_process_target::stabilize_threads): Ditto.
2947 (linux_process_target::wait): Ditto.
2949 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2951 * linux-low.h (struct linux_target_ops): Update the comment for
2952 'cannot_store_register' to return 0 or 1.
2953 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2956 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2958 * config.in: Re-generate.
2959 * configure: Re-generate.
2961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2963 * regcache.cc (find_register_by_number): Update.
2964 * tdesc.cc (init_target_desc): Likewise.
2965 * tdesc.h (target_desc::reg_defs): Likewise.
2967 2020-03-12 Tom Tromey <tom@tromey.com>
2969 * configure: Rebuild.
2970 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2971 (WIN32APILIBS): New subst.
2972 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2974 (gdbsupport/%.o): Remove target.
2975 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2976 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2977 (WIN32APILIBS): New variable.
2978 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2979 (gdbreplay$(EXEEXT)): Likewise.
2981 2020-03-12 Tom Tromey <tom@tromey.com>
2983 * config.in, configure: Rebuild.
2984 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2985 * acinclude.m4: Include gettext-sister.m4.
2986 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2988 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2989 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2991 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2993 * acinclude.m4: Update path to selftest.m4.
2995 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2997 * configure.ac: Don't source bfd/development.sh, move
2998 GDB_AC_COMMON higher.
2999 * configure: Re-generate.
3001 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3003 * configure: Re-generate.
3005 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
3007 * configure: Re-generate.
3009 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3011 * .dir-locals.el: New file.
3013 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3015 * .gitattributes: New file.
3017 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3019 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
3020 reply into an S reply.
3021 * server.cc (disable_packet_T): New global.
3022 (captured_main): Set new global when appropriate.
3023 * server.h (disable_packet_T): Declare.
3025 2020-02-21 Tom Tromey <tom@tromey.com>
3027 * Makefile.in (mostlyclean): New target.
3029 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3031 * target.h (struct process_stratum_target): Remove.
3032 (class process_target): Rename to ...
3033 (class process_stratum_target): ... this.
3034 * linux-low.h (class linux_process_target): Derive from
3035 'process_stratum_target'.
3036 * linux-low.cc (linux_target_ops): Remove.
3037 (initialize_low): Set the_target to the singleton instance of
3038 linux_process_target.
3039 * lynx-low.h (class lynx_process_target): Derive from
3040 'process_stratum_target'.
3041 * lynx-low.cc (lynx_target_ops): Remove.
3042 (initialize_low): Set the_target to the singleton instance of
3043 lynx_process_target.
3044 * nto-low.h (class nto_process_target): Derive from
3045 'process_stratum_target'.
3046 * nto-low.cc (nto_target_ops): Remove.
3047 (initialize_low): Set the_target to the singleton instance of
3049 * win32-low.h (class win32_process_target): Derive from
3050 'process_stratum_target'.
3051 * win32-low.cc (win32_target_ops): Remove.
3052 (initialize_low): Set the_target to the singleton instance of
3053 win32_process_target.
3055 Replace 'the_target->pt' with 'the_target' in the uses below.
3057 * hostio.cc (hostio_error)
3062 * linux-aarch32-low.cc (arm_breakpoint_at)
3063 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3064 * linux-arm-low.cc (arm_sigreturn_next_pc)
3066 (arm_get_syscall_trapinfo)
3067 * linux-cris-low.cc (cris_breakpoint_at)
3068 * linux-crisv32-low.cc (cris_breakpoint_at)
3069 * linux-low.cc (handle_extended_wait)
3072 (linux_process_target::breakpoint_kind_from_pc)
3074 * linux-m32r-low.cc (m32r_breakpoint_at)
3075 * linux-mips-low.cc (mips_breakpoint_at)
3076 * linux-nios2-low.cc (nios2_breakpoint_at)
3077 * linux-ppc-low.cc (ppc_breakpoint_at)
3078 * linux-s390-low.cc (s390_get_hwcap)
3079 * linux-sh-low.cc (sh_breakpoint_at)
3080 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3081 (sparc_store_gregset_from_stack)
3082 (sparc_breakpoint_at)
3083 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3084 * linux-tile-low.cc (tile_breakpoint_at)
3085 * linux-x86-low.cc (x86_breakpoint_at)
3086 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3087 * mem-break.cc (bp_size)
3089 (insert_memory_breakpoint)
3090 (set_raw_breakpoint_at)
3091 (delete_raw_breakpoint)
3093 (uninsert_raw_breakpoint)
3094 (reinsert_raw_breakpoint)
3095 (validate_inserted_breakpoint)
3096 * regcache.cc (regcache_read_pc)
3098 * remote-utils.cc (putpkt_binary_1)
3101 (prepare_resume_reply)
3102 * server.cc (handle_general_set)
3105 (handle_qxfer_exec_file)
3106 (handle_qxfer_libraries_svr4)
3107 (handle_qxfer_osdata)
3108 (handle_qxfer_siginfo)
3109 (handle_qxfer_fdpic)
3113 (queue_stop_reply_callback)
3115 * target.cc (prepare_to_access_memory)
3116 (done_accessing_memory)
3117 (read_inferior_memory)
3118 (target_write_memory)
3119 (target_stop_and_wait)
3121 (target_mourn_inferior)
3122 (target_continue_no_signal)
3124 (target_supports_multi_process)
3127 (target_create_inferior)
3128 (target_post_create_inferior)
3130 (target_supports_fork_events)
3131 (target_supports_vfork_events)
3132 (target_supports_exec_events)
3133 (target_handle_new_gdb_connection)
3136 (fetch_inferior_registers)
3137 (store_inferior_registers)
3139 (target_supports_non_stop)
3141 (target_process_qsupported)
3142 (target_supports_catch_syscall)
3143 (target_get_ipa_tdesc_idx)
3144 (target_supports_tracepoints)
3145 (target_supports_fast_tracepoints)
3146 (target_get_min_fast_tracepoint_insn_len)
3147 (target_thread_stopped)
3149 (target_unpause_all)
3150 (target_stabilize_threads)
3151 (target_install_fast_tracepoint_jump_pad)
3153 (target_supports_disable_randomization)
3154 (target_supports_agent)
3155 (target_enable_btrace)
3156 (target_disable_btrace)
3157 (target_read_btrace)
3158 (target_read_btrace_conf)
3159 (target_supports_range_stepping)
3160 (target_supports_stopped_by_sw_breakpoint)
3161 (target_stopped_by_sw_breakpoint)
3162 (target_supports_stopped_by_hw_breakpoint)
3163 (target_supports_hardware_single_step)
3164 (target_stopped_by_hw_breakpoint)
3165 (target_breakpoint_kind_from_pc)
3166 (target_breakpoint_kind_from_current_state)
3167 (target_supports_software_single_step)
3168 (target_core_of_thread)
3169 (target_thread_name)
3170 (target_thread_handle)
3171 * win32-low.cc (do_initial_child_stuff)
3173 Rename target op default definitions listed below.
3175 * target.cc (process_target::post_create_inferior): Rename as ...
3176 (process_stratum_target::post_create_inferior): ... this.
3177 (process_target::prepare_to_access_memory): Rename as ...
3178 (process_stratum_target::prepare_to_access_memory): ... this.
3179 (process_target::done_accessing_memory): Rename as ...
3180 (process_stratum_target::done_accessing_memory): ... this.
3181 (process_target::look_up_symbols): Rename as ...
3182 (process_stratum_target::look_up_symbols): ... this.
3183 (process_target::supports_read_auxv): Rename as ...
3184 (process_stratum_target::supports_read_auxv): ... this.
3185 (process_target::read_auxv): Rename as ...
3186 (process_stratum_target::read_auxv): ... this.
3187 (process_target::supports_z_point_type): Rename as ...
3188 (process_stratum_target::supports_z_point_type): ... this.
3189 (process_target::insert_point): Rename as ...
3190 (process_stratum_target::insert_point): ... this.
3191 (process_target::remove_point): Rename as ...
3192 (process_stratum_target::remove_point): ... this.
3193 (process_target::stopped_by_sw_breakpoint): Rename as ...
3194 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3195 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3196 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3197 (process_target::stopped_by_hw_breakpoint): Rename as ...
3198 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3199 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3200 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3201 (process_target::supports_hardware_single_step): Rename as ...
3202 (process_stratum_target::supports_hardware_single_step): ... this.
3203 (process_target::stopped_by_watchpoint): Rename as ...
3204 (process_stratum_target::stopped_by_watchpoint): ... this.
3205 (process_target::stopped_data_address): Rename as ...
3206 (process_stratum_target::stopped_data_address): ... this.
3207 (process_target::supports_read_offsets): Rename as ...
3208 (process_stratum_target::supports_read_offsets): ... this.
3209 (process_target::read_offsets): Rename as ...
3210 (process_stratum_target::read_offsets): ... this.
3211 (process_target::supports_get_tls_address): Rename as ...
3212 (process_stratum_target::supports_get_tls_address): ... this.
3213 (process_target::get_tls_address): Rename as ...
3214 (process_stratum_target::get_tls_address): ... this.
3215 (process_target::hostio_last_error): Rename as ...
3216 (process_stratum_target::hostio_last_error): ... this.
3217 (process_target::supports_qxfer_osdata): Rename as ...
3218 (process_stratum_target::supports_qxfer_osdata): ... this.
3219 (process_target::qxfer_osdata): Rename as ...
3220 (process_stratum_target::qxfer_osdata): ... this.
3221 (process_target::supports_qxfer_siginfo): Rename as ...
3222 (process_stratum_target::supports_qxfer_siginfo): ... this.
3223 (process_target::qxfer_siginfo): Rename as ...
3224 (process_stratum_target::qxfer_siginfo): ... this.
3225 (process_target::supports_non_stop): Rename as ...
3226 (process_stratum_target::supports_non_stop): ... this.
3227 (process_target::async): Rename as ...
3228 (process_stratum_target::async): ... this.
3229 (process_target::start_non_stop): Rename as ...
3230 (process_stratum_target::start_non_stop): ... this.
3231 (process_target::supports_multi_process): Rename as ...
3232 (process_stratum_target::supports_multi_process): ... this.
3233 (process_target::supports_fork_events): Rename as ...
3234 (process_stratum_target::supports_fork_events): ... this.
3235 (process_target::supports_vfork_events): Rename as ...
3236 (process_stratum_target::supports_vfork_events): ... this.
3237 (process_target::supports_exec_events): Rename as ...
3238 (process_stratum_target::supports_exec_events): ... this.
3239 (process_target::handle_new_gdb_connection): Rename as ...
3240 (process_stratum_target::handle_new_gdb_connection): ... this.
3241 (process_target::handle_monitor_command): Rename as ...
3242 (process_stratum_target::handle_monitor_command): ... this.
3243 (process_target::core_of_thread): Rename as ...
3244 (process_stratum_target::core_of_thread): ... this.
3245 (process_target::supports_read_loadmap): Rename as ...
3246 (process_stratum_target::supports_read_loadmap): ... this.
3247 (process_target::read_loadmap): Rename as ...
3248 (process_stratum_target::read_loadmap): ... this.
3249 (process_target::process_qsupported): Rename as ...
3250 (process_stratum_target::process_qsupported): ... this.
3251 (process_target::supports_tracepoints): Rename as ...
3252 (process_stratum_target::supports_tracepoints): ... this.
3253 (process_target::read_pc): Rename as ...
3254 (process_stratum_target::read_pc): ... this.
3255 (process_target::write_pc): Rename as ...
3256 (process_stratum_target::write_pc): ... this.
3257 (process_target::supports_thread_stopped): Rename as ...
3258 (process_stratum_target::supports_thread_stopped): ... this.
3259 (process_target::thread_stopped): Rename as ...
3260 (process_stratum_target::thread_stopped): ... this.
3261 (process_target::supports_get_tib_address): Rename as ...
3262 (process_stratum_target::supports_get_tib_address): ... this.
3263 (process_target::get_tib_address): Rename as ...
3264 (process_stratum_target::get_tib_address): ... this.
3265 (process_target::pause_all): Rename as ...
3266 (process_stratum_target::pause_all): ... this.
3267 (process_target::unpause_all): Rename as ...
3268 (process_stratum_target::unpause_all): ... this.
3269 (process_target::stabilize_threads): Rename as ...
3270 (process_stratum_target::stabilize_threads): ... this.
3271 (process_target::supports_fast_tracepoints): Rename as ...
3272 (process_stratum_target::supports_fast_tracepoints): ... this.
3273 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3274 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3275 (process_target::emit_ops): Rename as ...
3276 (process_stratum_target::emit_ops): ... this.
3277 (process_target::supports_disable_randomization): Rename as ...
3278 (process_stratum_target::supports_disable_randomization): ... this.
3279 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3280 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3281 (process_target::qxfer_libraries_svr4): Rename as ...
3282 (process_stratum_target::qxfer_libraries_svr4): ... this.
3283 (process_target::supports_agent): Rename as ...
3284 (process_stratum_target::supports_agent): ... this.
3285 (process_target::enable_btrace): Rename as ...
3286 (process_stratum_target::enable_btrace): ... this.
3287 (process_target::disable_btrace): Rename as ...
3288 (process_stratum_target::disable_btrace): ... this.
3289 (process_target::read_btrace): Rename as ...
3290 (process_stratum_target::read_btrace): ... this.
3291 (process_target::read_btrace_conf): Rename as ...
3292 (process_stratum_target::read_btrace_conf): ... this.
3293 (process_target::supports_range_stepping): Rename as ...
3294 (process_stratum_target::supports_range_stepping): ... this.
3295 (process_target::supports_pid_to_exec_file): Rename as ...
3296 (process_stratum_target::supports_pid_to_exec_file): ... this.
3297 (process_target::pid_to_exec_file): Rename as ...
3298 (process_stratum_target::pid_to_exec_file): ... this.
3299 (process_target::supports_multifs): Rename as ...
3300 (process_stratum_target::supports_multifs): ... this.
3301 (process_target::multifs_open): Rename as ...
3302 (process_stratum_target::multifs_open): ... this.
3303 (process_target::multifs_unlink): Rename as ...
3304 (process_stratum_target::multifs_unlink): ... this.
3305 (process_target::multifs_readlink): Rename as ...
3306 (process_stratum_target::multifs_readlink): ... this.
3307 (process_target::breakpoint_kind_from_pc): Rename as ...
3308 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3309 (process_target::breakpoint_kind_from_current_state): Rename as ...
3310 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3311 (process_target::thread_name): Rename as ...
3312 (process_stratum_target::thread_name): ... this.
3313 (process_target::thread_handle): Rename as ...
3314 (process_stratum_target::thread_handle): ... this.
3315 (process_target::supports_software_single_step): Rename as ...
3316 (process_stratum_target::supports_software_single_step): ... this.
3317 (process_target::supports_catch_syscall): Rename as ...
3318 (process_stratum_target::supports_catch_syscall): ... this.
3319 (process_target::get_ipa_tdesc_idx): Rename as ...
3320 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3322 2020-02-20 Pedro Alves <palves@redhat.com>
3324 * target.cc (set_target_ops): Simply copy the given target pointer
3325 instead of creating a copy of the pointed object.
3327 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3329 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3332 * target.h (struct process_stratum_target): Remove the target op.
3333 (class process_target): Add the target op.
3334 (target_get_ipa_tdesc_idx): Update the macro.
3335 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3337 Update the derived classes and callers below.
3339 * linux-low.cc (linux_target_ops): Update.
3340 (linux_get_ipa_tdesc_idx): Turn into ...
3341 (linux_process_target::get_ipa_tdesc_idx): ... this.
3342 * linux-low.h (class linux_process_target): Update.
3343 * lynx-low.cc (lynx_target_ops): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 * win32-low.cc (win32_target_ops): Update.
3347 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3349 Turn process_stratum_target's supports_catch_syscall op into a
3350 method of process_target.
3352 * target.h (struct process_stratum_target): Remove the target op.
3353 (class process_target): Add the target op.
3354 (target_supports_catch_syscall): Update the macro.
3355 * target.cc (process_target::supports_catch_syscall): Define.
3357 Update the derived classes and callers below.
3359 * linux-low.cc (linux_target_ops): Update.
3360 (linux_supports_catch_syscall): Turn into ...
3361 (linux_process_target::supports_catch_syscall): ... this.
3362 * linux-low.h (class linux_process_target): Update.
3363 * lynx-low.cc (lynx_target_ops): Update.
3364 * nto-low.cc (nto_target_ops): Update.
3365 * win32-low.cc (win32_target_ops): Update.
3367 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3369 Turn process_stratum_target's supports_software_single_step op
3370 into a method of process_target.
3372 * target.h (struct process_stratum_target): Remove the target op.
3373 (class process_target): Add the target op.
3374 (target_supports_software_single_step): Update the macro.
3375 * target.cc (process_target::supports_software_single_step): Define.
3377 Update the derived classes and callers below.
3379 * linux-low.cc (linux_target_ops): Update.
3380 (linux_supports_software_single_step): Turn into ...
3381 (linux_process_target::supports_software_single_step): ... this.
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 thread_name and thread_handle ops
3390 into methods of process_target.
3392 * target.h (struct process_stratum_target): Remove the target ops.
3393 (class process_target): Add the target ops.
3394 (target_thread_name): Update the macro.
3395 (target_thread_handle): Update the macro.
3396 * target.cc (process_target::thread_name): Define.
3397 (process_target::thread_handle): Define.
3399 Update the derived classes and callers below.
3401 * linux-low.cc (linux_target_ops): Update.
3402 (linux_process_target::thread_name): Define.
3403 (linux_process_target::thread_handle): Define.
3404 * linux-low.h (class linux_process_target): Update.
3405 * lynx-low.cc (lynx_target_ops): Update.
3406 * nto-low.cc (nto_target_ops): Update.
3407 * win32-low.cc (win32_target_ops): Update.
3409 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3411 Turn process_stratum_target's breakpoint_kind_from_pc,
3412 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3413 ops into methods of process_target.
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op.
3417 (target_breakpoint_kind_from_pc): Update the macro.
3418 (target_breakpoint_kind_from_current_state): Update the macro.
3419 (default_breakpoint_kind_from_pc): Remove declaration.
3420 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3421 (process_target::breakpoint_kind_from_pc): ... this.
3422 (process_target::breakpoint_kind_from_current_state): Define.
3424 Update the derived classes and callers below.
3426 * mem-break.cc (bp_size): Update.
3427 (bp_opcode): Update.
3428 * linux-low.cc (linux_target_ops): Update.
3429 (linux_wait_1): Update.
3430 (linux_breakpoint_kind_from_pc): Turn into ...
3431 (linux_process_target::breakpoint_kind_from_pc): ... this.
3432 (linux_sw_breakpoint_from_kind): Turn into ...
3433 (linux_process_target::sw_breakpoint_from_kind): ... this.
3434 (linux_breakpoint_kind_from_current_state): Turn into ...
3435 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3436 * linux-low.h (class linux_process_target): Update.
3437 * lynx-low.cc (lynx_target_ops): Update.
3438 (lynx_process_target::sw_breakpoint_from_kind): Define.
3439 * lynx-low.h (class lynx_process_target): Update.
3440 * nto-low.cc (nto_target_ops): Update.
3441 (nto_sw_breakpoint_from_kind): Turn into ...
3442 (nto_process_target::sw_breakpoint_from_kind): ... this.
3443 * nto-low.h (class nto_process_target): Update.
3444 * win32-low.cc (win32_target_ops): Update.
3445 (win32_sw_breakpoint_from_kind): Turn into ...
3446 (win32_process_target::sw_breakpoint_from_kind): ... this.
3447 * win32-low.h (class win32_process_target): Update.
3449 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3451 Turn process_stratum_target's multifs_open, multifs_readlink,
3452 multifs_unlink ops into methods of process_target.
3454 * target.h (struct process_stratum_target): Remove the target ops.
3455 (class process_target): Add the target ops. Also add
3457 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3459 (process_target::supports_multifs): Define.
3460 (process_target::multifs_open): Define.
3461 (process_target::multifs_readlink): Define.
3462 (process_target::multifs_unlink): Define.
3464 Update the derived classes and callers below.
3466 * hostio.cc (handle_setfs): Update.
3467 (handle_open): Update.
3468 (handle_unlink): Update.
3469 (handle_readlink): Update.
3470 * linux-low.cc (linux_target_ops): Update.
3471 (linux_process_target::supports_multifs): Define.
3472 (linux_process_target::multifs_open): Define.
3473 (linux_process_target::multifs_readlink): Define.
3474 (linux_process_target::multifs_unlink): Define.
3475 * linux-low.h (class linux_process_target): Update.
3476 * lynx-low.cc (lynx_target_ops): Update.
3477 * nto-low.cc (nto_target_ops): Update.
3478 * win32-low.cc (win32_target_ops): Update.
3480 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3482 Turn process_stratum_target's pid_to_exec_file op into a method
3485 * target.h (struct process_stratum_target): Remove the target op.
3486 (class process_target): Add the target op. Also add
3487 'supports_pid_to_exec_file'.
3488 * target.cc (process_target::pid_to_exec_file): Define.
3489 (process_target::supports_pid_to_exec_file): Define.
3491 Update the derived classes and callers below.
3493 * server.cc (handle_qxfer_exec_file): Update.
3494 (handle_query): Update.
3495 * linux-low.cc (linux_target_ops): Update.
3496 (linux_process_target::supports_pid_to_exec_file): Define.
3497 (linux_process_target::pid_to_exec_file): Define.
3498 * linux-low.h (class linux_process_target): Update.
3499 * lynx-low.cc (lynx_target_ops): Update.
3500 * nto-low.cc (nto_target_ops): Update.
3501 * win32-low.cc (win32_target_ops): Update.
3503 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3505 Turn process_stratum_target's supports_range_stepping op into a
3506 method of process_target.
3508 * target.h (struct process_stratum_target): Remove the target op.
3509 (class process_target): Add the target op.
3510 (target_supports_range_stepping): Update the macro.
3511 * target.cc (process_target::supports_range_stepping): Define.
3513 Update the derived classes and callers below.
3515 * linux-low.cc (linux_target_ops): Update.
3516 (linux_supports_range_stepping): Turn into ...
3517 (linux_process_target::supports_range_stepping): ... this.
3518 * linux-low.h (class linux_process_target): Update.
3519 * lynx-low.cc (lynx_target_ops): Update.
3520 * nto-low.cc (nto_target_ops): Update.
3521 * win32-low.cc (win32_target_ops): Update.
3523 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3525 Turn process_stratum_target's btrace-related ops (enable_btrace,
3526 disable_btrace, read_btrace, read_btrace_conf) into methods of
3529 * target.h (struct process_stratum_target): Remove the target ops.
3530 (class process_target): Add the target ops.
3531 (target_enable_btrace): Update.
3532 (target_disable_btrace): Update.
3533 (target_read_btrace): Update.
3534 (target_read_btrace_conf): Update.
3535 * target.cc (process_target::enable_btrace): Define.
3536 (process_target::disable_btrace): Define.
3537 (process_target::read_btrace): Define.
3538 (process_target::read_btrace_conf): Define.
3540 Update the derived classes and callers below.
3542 * linux-low.cc (linux_target_ops): Update.
3543 (linux_process_target:enable_btrace): Define as a wrapper around
3544 linux_enable_btrace.
3545 (linux_low_disable_btrace): Turn into ...
3546 (linux_process_target::disable_btrace): ... this.
3547 (linux_low_read_btrace): Turn into ...
3548 (linux_process_target::read_btrace): ... this.
3549 (linux_low_btrace_conf): Turn into ...
3550 (linux_process_target::read_btrace_conf): ... this.
3551 * linux-low.h (class linux_process_target): Update.
3552 * lynx-low.cc (lynx_target_ops): Update.
3553 * nto-low.cc (nto_target_ops): Update.
3554 * win32-low.cc (win32_target_ops): Update.
3556 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3558 Turn process_stratum_target's supports_agent op into a method of
3561 * target.h (struct process_stratum_target): Remove the target op.
3562 (class process_target): Add the target op.
3563 (target_supports_agent): Update the macro.
3564 * target.cc (process_target::supports_agent): Define.
3566 Update the derived classes and callers below.
3568 * linux-low.cc (linux_target_ops): Update.
3569 (linux_supports_agent): Turn into ...
3570 (linux_process_target::supports_agent): ... this.
3571 * linux-low.h (class linux_process_target): Update.
3572 * lynx-low.cc (lynx_target_ops): Update.
3573 * nto-low.cc (nto_target_ops): Update.
3574 * win32-low.cc (win32_target_ops): Update.
3576 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3578 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3579 method of process_target.
3581 * target.h (struct process_stratum_target): Remove the target op.
3582 (class process_target): Add the target op. Also add
3583 'supports_qxfer_libraries_svr4'.
3584 * target.cc (process_target::qxfer_libraries_svr4): Define.
3585 (process_target::supports_qxfer_libraries_svr4): Define.
3587 Update the derived classes and callers below.
3589 * server.cc (handle_qxfer_libraries_svr4): Update.
3590 (handle_query): Update.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3593 (linux_qxfer_libraries_svr4): Turn into ...
3594 (linux_process_target::qxfer_libraries_svr4): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 * nto-low.cc (nto_target_ops): Update.
3598 * win32-low.cc (win32_target_ops): Update.
3600 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3602 Turn process_stratum_target's supports_disable_randomization op
3603 into a method of process_target.
3605 * target.h (struct process_stratum_target): Remove the target op.
3606 (class process_target): Add the target op.
3607 (target_supports_disable_randomization): Update the macro.
3608 * target.cc (process_target::supports_disable_randomization): Define.
3610 Update the derived classes and callers below.
3612 * linux-low.cc (linux_target_ops): Update.
3613 (linux_supports_disable_randomization): Turn into ...
3614 (linux_process_target::supports_disable_randomization): ... this.
3615 * linux-low.h (class linux_process_target): Update.
3616 * lynx-low.cc (lynx_target_ops): Update.
3617 * nto-low.cc (nto_target_ops): Update.
3618 * win32-low.cc (win32_target_ops): Update.
3620 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3622 Turn process_stratum_target's emit_ops op into a method of
3625 * target.h (struct process_stratum_target): Remove the target op.
3626 (class process_target): Add the target op.
3627 (target_emit_ops): Update the macro.
3628 * target.cc (process_target::emit_ops): Define.
3630 Update the derived classes and callers below.
3632 * linux-low.cc (linux_target_ops): Update.
3633 (linux_emit_ops): Turn into ...
3634 (linux_process_target::emit_ops): ... this.
3635 * linux-low.h (class linux_process_target): Update.
3636 * lynx-low.cc (lynx_target_ops): Update.
3637 * nto-low.cc (nto_target_ops): Update.
3638 * win32-low.cc (win32_target_ops): Update.
3640 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3642 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3643 and get_min_fast_tracepoint_insn_len ops into methods of
3646 * target.h (struct process_stratum_target): Remove the target ops.
3647 (class process_target): Add the target ops. Also add
3648 'supports_fast_tracepoints'.
3649 (target_supports_fast_tracepoints): Update the macro.
3650 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3651 (install_fast_tracepoint_jump_pad): Update and rename the macro
3653 (target_install_fast_tracepoint_jump_pad): ... this.
3654 * target.cc (process_target::supports_fast_tracepoints): Define.
3655 (process_target::install_fast_tracepoint_jump_pad): Define.
3656 (process_target::get_min_fast_tracepoint_insn_len): Define.
3658 Update the derived classes and callers below.
3660 * tracepoint.cc (install_fast_tracepoint): Update.
3661 * linux-low.cc (linux_target_ops): Update.
3662 (linux_process_target::supports_fast_tracepoints): Define.
3663 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3664 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3665 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3666 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3667 * linux-low.h (class linux_process_target): Update.
3668 * lynx-low.cc (lynx_target_ops): Update.
3669 * nto-low.cc (nto_target_ops): Update.
3670 * win32-low.cc (win32_target_ops): Update.
3672 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3674 Turn process_stratum_target's stabilize_threads op into a
3675 method of process_target.
3677 * target.h (struct process_stratum_target): Remove the target op.
3678 (class process_target): Add the target op.
3679 (target_stabilize_threads): Update the macro.
3680 * target.cc (process_target::stabilize_threads): Define.
3682 Update the derived classes and callers below.
3684 * server.cc (handle_status): Update.
3685 * tracepoint.cc (cmd_qtdp): Update.
3686 (cmd_qtstart): Update.
3687 * linux-low.cc (linux_target_ops): Update.
3688 (linux_stabilize_threads): Turn into ...
3689 (linux_process_target::stabilize_threads): ... this.
3690 (linux_wait_1): Update.
3691 * linux-low.h (class linux_process_target): Update.
3692 * lynx-low.cc (lynx_target_ops): Update.
3693 * nto-low.cc (nto_target_ops): Update.
3694 * win32-low.cc (win32_target_ops): Update.
3696 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3698 Turn process_stratum_target's pause_all and unpause_all ops
3699 into methods of process_target.
3701 * target.h (struct process_stratum_target): Remove the target ops.
3702 (class process_target): Add the target ops.
3703 (pause_all): Update the macro and rename to...
3704 (target_pause_all): ... this.
3705 (unpause_all): Update the macro and rename to...
3706 (target_unpause_all): ... this.
3707 * target.cc (process_target::pause_all): Define.
3708 (process_target::unpause_all): Define.
3710 Update the derived classes and callers below.
3712 * server.cc (handle_status): Update.
3713 * tracepoint.cc (clear_installed_tracepoints): Update.
3715 (cmd_qtstart): Update.
3716 (stop_tracing): Update.
3717 (cmd_qtstatus): Update.
3718 (upload_fast_traceframes): Update.
3719 (run_inferior_command): Update.
3720 * linux-low.cc (linux_target_ops): Update.
3721 (linux_pause_all): Turn into ...
3722 (linux_process_target::pause_all): ... this.
3723 (linux_unpause_all): Turn into ...
3724 (linux_process_target::unpause_all): ... this.
3725 (linux_process_target::prepare_to_access_memory): Update.
3726 (linux_process_target::done_accessing_memory): Update.
3727 * linux-low.h (class linux_process_target): Update.
3728 * lynx-low.cc (lynx_target_ops): Update.
3729 * nto-low.cc (nto_target_ops): Update.
3730 * win32-low.cc (win32_target_ops): Update.
3732 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3734 Turn process_stratum_target's get_tib_address op into a method of
3737 * target.h (struct process_stratum_target): Remove the target op.
3738 (class process_target): Add the target op. Also add
3739 'supports_get_tib_address'.
3740 * target.cc (process_target::get_tib_address): Define.
3741 (process_target::supports_get_tib_address): Define.
3743 Update the derived classes and callers below.
3745 * server.cc (handle_query): Update.
3746 * linux-low.cc (win32_target_ops): 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.
3750 (win32_process_target::supports_get_tib_address): Define.
3751 (win32_get_tib_address): Turn into ...
3752 (win32_process_target::get_tib_address): ... this.
3753 * win32-low.h (class win32_process_target): Update.
3755 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3757 Turn process_stratum_target's thread_stopped op into a method of
3760 * target.h (struct process_stratum_target): Remove the target op.
3761 (class process_target): Add the target op. Also add
3762 'supports_thread_stopped'.
3763 (target_thread_stopped): Update the macro.
3764 * target.cc (process_target::thread_stopped): Define.
3765 (process_target::supports_thread_stopped): Define.
3766 (prepare_to_access_memory): Update.
3768 Update the derived classes and callers below.
3770 * server.cc (queue_stop_reply_callback): Update.
3771 * linux-low.cc (linux_target_ops): Update.
3772 (linux_process_target::supports_thread_stopped): Define.
3773 (linux_thread_stopped): Turn into ...
3774 (linux_process_target::thread_stopped): ... this.
3775 * linux-low.h (class linux_process_target): Update.
3776 * lynx-low.cc (lynx_target_ops): Update.
3777 * nto-low.cc (nto_target_ops): Update.
3778 * win32-low.cc (win32_target_ops): Update.
3780 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3782 Turn process_stratum_target's read_pc and write_pc ops into
3783 methods of process_target.
3785 * target.h (struct process_stratum_target): Remove the target ops.
3786 (class process_target): Add the target ops.
3787 * target.cc (process_target::read_pc): Define.
3788 (process_target::write_pc): Define.
3790 Update the derived classes and callers below.
3792 * regcache.cc (regcache_read_pc): Update.
3793 (regcache_write_pc): Update.
3794 * linux-low.cc (linux_target_ops): Update.
3795 (linux_read_pc): Turn into ...
3796 (linux_process_target::read_pc): ... this.
3797 (linux_write_pc): Turn into ...
3798 (linux_process_target::write_pc): ... this.
3799 * linux-low.h (class linux_process_target): Update.
3800 * lynx-low.cc (lynx_target_ops): Update.
3801 * nto-low.cc (nto_target_ops): Update.
3802 * win32-low.cc (win32_target_ops): Update.
3804 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3806 Turn process_stratum_target's supports_tracepoints op into a
3807 method of process_target.
3809 * target.h (struct process_stratum_target): Remove the target op.
3810 (class process_target): Add the target op.
3811 (target_supports_tracepoints): Update the macro.
3812 * target.cc (process_target::supports_tracepoints): Define.
3814 Update the derived classes and callers below.
3816 * linux-low.cc (linux_target_ops): Update.
3817 (linux_supports_tracepoints): Turn into ...
3818 (linux_process_target::supports_tracepoints): ... this.
3819 * linux-low.h (class linux_process_target): Update.
3820 * lynx-low.cc (lynx_target_ops): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 * win32-low.cc (win32_target_ops): Update.
3824 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3826 Turn process_stratum_target's process_qsupported op into a method
3829 * target.h (struct process_stratum_target): Remove the target op.
3830 (class process_target): Add the target op.
3831 (target_process_qsupported): Update the macro.
3832 * target.cc (process_target::process_qsupported): Define.
3834 Update the derived classes and callers below.
3836 * linux-low.cc (linux_target_ops): Update.
3837 (linux_process_qsupported): Turn into ...
3838 (linux_process_target::process_qsupported): ... this.
3839 * linux-low.h (class linux_process_target): Update.
3840 * lynx-low.cc (lynx_target_ops): Update.
3841 * nto-low.cc (nto_target_ops): Update.
3842 * win32-low.cc (win32_target_ops): Update.
3844 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3846 Turn process_stratum_target's read_loadmap op into a method of
3849 * target.h (struct process_stratum_target): Remove the target op.
3850 (class process_target): Add the target op. Also add
3851 'supports_read_loadmap'.
3852 * target.cc (process_target::read_loadmap): Define.
3853 (process_target::supports_read_loadmap): Define.
3855 Update the derived classes and callers below.
3857 * server.cc (handle_qxfer_fdpic): Update.
3858 (handle_query): Update.
3859 * linux-low.cc (linux_target_ops): Update.
3860 (linux_process_target::supports_read_loadmap): Define.
3861 (linux_read_loadmap): Turn into ...
3862 (linux_process_target::read_loadmap): ... this.
3863 * linux-low.h (class linux_process_target): Update.
3864 * lynx-low.cc (lynx_target_ops): Update.
3865 * nto-low.cc (nto_target_ops): Update.
3866 * win32-low.cc (win32_target_ops): Update.
3868 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3870 Turn process_stratum_target's core_of_thread op into a method of
3873 * target.h (struct process_stratum_target): Remove the target op.
3874 (class process_target): Add the target op.
3875 (target_core_of_thread): Update the macro.
3876 * target.cc (process_target::core_of_thread): Define.
3878 Update the derived classes and callers below.
3880 * linux-low.cc (linux_target_ops): Update.
3881 (linux_process_target::core_of_thread): Define.
3882 * linux-low.h (class linux_process_target): Update.
3883 * lynx-low.cc (lynx_target_ops): Update.
3884 * nto-low.cc (nto_target_ops): Update.
3885 * win32-low.cc (win32_target_ops): Update.
3887 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889 Turn process_stratum_target's handle_monitor_command op into a
3890 method of process_target.
3892 * target.h (struct process_stratum_target): Remove the target op.
3893 (class process_target): Add the target op.
3894 (target_handle_monitor_command): Update the macro.
3895 * target.cc (process_target::handle_monitor_command): Define.
3897 Update the derived classes and callers below.
3899 * server.cc (handle_query): Update.
3900 * linux-low.cc (linux_target_ops): Update.
3901 (linux_process_target::handle_monitor_command): Define.
3902 * linux-low.h (class linux_process_target): Update.
3903 * lynx-low.cc (lynx_target_ops): Update.
3904 * nto-low.cc (nto_target_ops): Update.
3905 * win32-low.cc (win32_target_ops): Update.
3907 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3909 Turn process_stratum_target's handle_new_gdb_connection op into a
3910 method of process_target.
3912 * target.h (struct process_stratum_target): Remove the target op.
3913 (class process_target): Add the target op.
3914 (target_handle_new_gdb_connection): Update the macro.
3915 * target.cc (process_target::handle_new_gdb_connection): Define.
3917 Update the derived classes and callers below.
3919 * linux-low.cc (linux_target_ops): Update.
3920 (linux_handle_new_gdb_connection): Turn into ...
3921 (linux_process_target::handle_new_gdb_connection): ... this.
3922 * linux-low.h (class linux_process_target): Update.
3923 * lynx-low.cc (lynx_target_ops): Update.
3924 * nto-low.cc (nto_target_ops): Update.
3925 * win32-low.cc (win32_target_ops): Update.
3927 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3929 Turn process_stratum_target's supports_fork_events,
3930 supports_vfork_events, and supports_exec_events ops into methods
3933 * target.h (struct process_stratum_target): Remove the target ops.
3934 (class process_target): Add the target ops.
3935 (target_supports_fork_events): Update the macro.
3936 (target_supports_vfork_events): Update the macro.
3937 (target_supports_exec_events): Update the macro.
3938 * target.cc (process_target::supports_fork_events): Define.
3939 (process_target::supports_vfork_events): Define.
3940 (process_target::supports_exec_events): Define.
3942 Update the derived classes and callers below.
3944 * linux-low.cc (linux_target_ops): Update.
3945 (linux_supports_fork_events): Turn into ...
3946 (linux_process_target::supports_fork_events): ... this.
3947 (linux_supports_vfork_events): Turn into ...
3948 (linux_process_target::supports_vfork_events): ... this.
3949 (linux_supports_exec_events): Turn into ...
3950 (linux_process_target::supports_exec_events): ... this.
3951 * linux-low.h (class linux_process_target): Update.
3952 * lynx-low.cc (lynx_target_ops): Update.
3953 * nto-low.cc (nto_target_ops): Update.
3954 * win32-low.cc (win32_target_ops): Update.
3956 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3958 Turn process_stratum_target's supports_multi_process op into a
3959 method of process_target.
3961 * target.h (struct process_stratum_target): Remove the target op.
3962 (class process_target): Add the target op.
3963 * target.cc (process_target::supports_multi_process): Define.
3964 (target_supports_multi_process): Update.
3966 Update the derived classes and callers below.
3968 * linux-low.cc (linux_target_ops): Update.
3969 (linux_supports_multi_process): Turn into ...
3970 (linux_process_target::supports_multi_process): ... this.
3971 * linux-low.h (class linux_process_target): Update.
3972 * lynx-low.cc (lynx_target_ops): Update.
3973 * nto-low.cc (nto_target_ops): Update.
3974 * win32-low.cc (win32_target_ops): Update.
3976 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3978 Turn process_stratum_target's supports_non_stop, async, and
3979 start_non_stop ops into methods of process_target.
3981 * target.h (struct process_stratum_target): Remove the target ops.
3982 (class process_target): Add the target ops.
3983 (target_supports_non_stop): Update the macro.
3984 (target_async): Update the macro.
3985 (start_non_stop): Remove declaration.
3986 * target.cc (process_target::supports_non_stop): Define.
3987 (process_target::async): Define.
3988 (process_target::start_non_stop): Define.
3989 (start_non_stop): Remove.
3991 Update the derived classes and callers below.
3993 * server.cc (handle_qxfer_siginfo): Update.
3994 (handle_query): Update.
3995 * linux-low.cc (linux_target_ops): Update.
3996 (linux_supports_non_stop): Turn into ...
3997 (linux_process_target::supports_non_stop): ... this.
3998 (linux_async): Turn into ...
3999 (linux_process_target::async): ... this.
4000 (linux_start_non_stop): Turn into ...
4001 (linux_process_target::start_non_stop): ... this.
4002 * linux-low.h (class linux_process_target): Update.
4003 * lynx-low.cc (lynx_target_ops): Update.
4004 * nto-low.cc (nto_target_ops): Update.
4005 (nto_supports_non_stop): Remove; rely on the default behavior
4007 * win32-low.cc (win32_target_ops): Update.
4009 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4011 Turn process_stratum_target's qxfer_siginfo op into a method of
4014 * target.h (struct process_stratum_target): Remove the target op.
4015 (class process_target): Add the target op. Also add
4016 'supports_qxfer_siginfo'.
4017 * target.cc (process_target::qxfer_siginfo): Define.
4018 (process_target::supports_qxfer_siginfo): Define.
4020 Update the derived classes and callers below.
4022 * server.cc (handle_qxfer_siginfo): Update.
4023 (handle_query): Update.
4024 * linux-low.cc (linux_target_ops): Update.
4025 (linux_process_target::supports_qxfer_siginfo): Define.
4026 (linux_xfer_siginfo): Turn into ...
4027 (linux_process_target::qxfer_siginfo): ... this.
4028 * linux-low.h (class linux_process_target): Update.
4029 * lynx-low.cc (lynx_target_ops): Update.
4030 * nto-low.cc (nto_target_ops): Update.
4031 * win32-low.cc (win32_target_ops): Update.
4033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4035 Turn process_stratum_target's qxfer_osdata op into a method of
4038 * target.h (struct process_stratum_target): Remove the target op.
4039 (class process_target): Add the target op. Also add
4040 'supports_qxfer_osdata'.
4041 * target.cc (process_target::qxfer_osdata): Define.
4042 (process_target::supports_qxfer_osdata): Define.
4044 Update the derived classes and callers below.
4046 * server.cc (handle_qxfer_osdata): Update.
4047 (handle_query): Update.
4048 * linux-low.cc (linux_target_ops): Update.
4049 (linux_process_target::supports_qxfer_osdata): Define.
4050 (linux_qxfer_osdata): Turn into ...
4051 (linux_process_target::qxfer_osdata): ... this.
4052 * linux-low.h (class linux_process_target): Update.
4053 * lynx-low.cc (lynx_target_ops): Update.
4054 * nto-low.cc (nto_target_ops): Update.
4055 * win32-low.cc (win32_target_ops): Update.
4057 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4059 Turn process_stratum_target's hostio_last_error op into a
4060 method of process_target.
4062 * target.h (struct process_stratum_target): Remove the target op.
4063 (class process_target): Add the target op.
4064 * target.cc: Add "hostio.h" to includes.
4065 (process_target::hostio_last_error): Define.
4067 Update the derived classes and callers below.
4069 * hostio.cc (hostio_error): Update.
4070 * linux-low.cc: Remove "hostio.h" from includes.
4071 (linux_target_ops): Update.
4072 * lynx-low.cc (lynx_target_ops): Update.
4073 * nto-low.cc (nto_target_ops): Update.
4074 * win32-low.h (class win32_process_target): Update.
4075 * win32-low.cc (win32_target_ops): Update.
4076 (wince_hostio_last_error): Turn into ...
4077 (win32_process_target::hostio_last_error): ... this.
4079 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4081 Turn process_stratum_target's get_tls_address op into a method of
4084 * target.h (struct process_stratum_target): Remove the target op.
4085 (class process_target): Add the target op. Also add
4086 'supports_get_tls_address'.
4087 * target.cc (process_target::get_tls_address): Define.
4088 (process_target::supports_get_tls_address): Define.
4090 Update the derived classes and callers below.
4092 * server.cc (handle_query): Update.
4093 * linux-low.cc (linux_target_ops): Update.
4094 (linux_process_target::supports_get_tls_address): Define.
4095 (linux_process_target::get_tls_address): Define.
4096 * linux-low.h (class linux_process_target): Update.
4097 * lynx-low.cc (lynx_target_ops): Update.
4098 * nto-low.cc (nto_target_ops): Update.
4099 * win32-low.cc (win32_target_ops): Update.
4101 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4103 Turn process_stratum_target's read_offsets op into a method of
4106 * target.h (struct process_stratum_target): Remove the target op.
4107 (class process_target): Add the target op. Also add
4108 'supports_read_offsets'.
4109 * target.cc (process_target::read_offsets): Define.
4110 (process_target::supports_read_offsets): Define.
4112 Update the derived classes and callers below.
4114 * server.cc (handle_query): Update.
4115 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4116 (linux_target_ops): Update.
4117 (linux_process_target::supports_read_offsets): Define.
4118 (linux_read_offsets): Turn into ...
4119 (linux_process_target::read_offsets): ... this.
4120 * linux-low.h (class linux_process_target): Update.
4121 * lynx-low.cc (lynx_target_ops): Update.
4122 * nto-low.cc (nto_target_ops): Update.
4123 * win32-low.cc (win32_target_ops): Update.
4125 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4127 Turn process_stratum_target's stopped_by_watchpoint and
4128 stopped_data_address ops into methods of process_target.
4130 * target.h (struct process_stratum_target): Remove the target ops.
4131 (class process_target): Add the target ops.
4132 * target.cc (process_target::stopped_by_watchpoint): Define.
4133 (process_target::stopped_data_address): Define.
4135 Update the derived classes and callers below.
4137 * remote-utils.cc (prepare_resume_reply): Update.
4138 * linux-low.cc (linux_target_ops): Update.
4139 (linux_stopped_by_watchpoint): Turn into ...
4140 (linux_process_target::stopped_by_watchpoint): ... this.
4141 (linux_stopped_data_address): Turn into ...
4142 (linux_process_target::stopped_data_address): ... this.
4143 * linux-low.h (class linux_process_target): Update.
4144 * lynx-low.cc (lynx_target_ops): Update.
4145 * nto-low.cc (nto_target_ops): Update.
4146 (nto_stopped_by_watchpoint): Turn into ...
4147 (nto_process_target::stopped_by_watchpoint): ... this.
4148 (nto_stopped_data_address): Turn into ...
4149 (nto_process_target::stopped_data_address): ... this.
4150 * nto-low.h (class nto_process_target): Update.
4151 * win32-low.cc (win32_target_ops): Update.
4152 (win32_stopped_by_watchpoint): Turn into ...
4153 (win32_process_target::stopped_by_watchpoint): ... this.
4154 (win32_stopped_data_address): Turn into ...
4155 (win32_process_target::stopped_data_address): ... this.
4156 * win32-low.h (class win32_process_target): Update.
4158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4160 Turn process_stratum_target's supports_hardware_single_step op into
4161 a method of process_target.
4163 * target.h (struct process_stratum_target): Remove the target op.
4164 (class process_target): Add the target op.
4165 (target_supports_hardware_single_step): Update the macro.
4166 (target_can_do_hardware_single_step): Remove declaration.
4167 * target.cc (process_target::supports_hardware_single_step): Define.
4168 (target_can_do_hardware_single_step): Remove.
4170 Update the derived classes and callers below.
4172 * linux-low.h (class linux_process_target): Update.
4173 * linux-low.cc (linux_target_ops): Update.
4174 (linux_supports_hardware_single_step): Turn into ...
4175 (linux_process_target::supports_hardware_single_step): ... this.
4176 * lynx-low.h (class lynx_process_target): Update.
4177 * lynx-low.cc (lynx_target_ops): Update.
4178 (lynx_process_target::supports_hardware_single_step): Define.
4179 * nto-low.h (class nto_process_target): Update.
4180 * nto-low.cc (nto_target_ops): Update.
4181 (nto_process_target::supports_hardware_single_step): Define.
4182 * win32-low.h (class win32_process_target): Update.
4183 * win32-low.cc (win32_target_ops): Update.
4184 (win32_process_target::supports_hardware_single_step): Define.
4186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4188 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4189 ops into methods of process_target.
4191 * target.h (struct process_stratum_target): Remove the target ops.
4192 (class process_target): Add the target ops.
4193 (target_stopped_by_hw_breakpoint): Update the macro.
4194 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4195 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4196 (process_target::supports_stopped_by_hw_breakpoint): Define.
4198 Update the derived classes and callers below.
4200 * linux-low.cc (linux_target_ops): Update.
4201 (linux_stopped_by_hw_breakpoint): Turn into ...
4202 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4203 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4204 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4205 * linux-low.h (class linux_process_target): Update.
4206 * lynx-low.cc (lynx_target_ops): Update.
4207 * nto-low.cc (nto_target_ops): Update.
4208 * win32-low.cc (win32_target_ops): Update.
4210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4212 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4213 ops into methods of process_target.
4215 * target.h (struct process_stratum_target): Remove the target ops.
4216 (class process_target): Add the target ops.
4217 (target_stopped_by_sw_breakpoint): Update the macro.
4218 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4219 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4220 (process_target::supports_stopped_by_sw_breakpoint): Define.
4222 Update the derived classes and callers below.
4224 * linux-low.cc (linux_target_ops): Update.
4225 (linux_stopped_by_sw_breakpoint): Turn into ...
4226 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4227 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4228 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4229 * linux-low.h (class linux_process_target): Update.
4230 * lynx-low.cc (lynx_target_ops): Update.
4231 * nto-low.cc (nto_target_ops): Update.
4232 * win32-low.cc (win32_target_ops): Update.
4234 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4236 Turn process_stratum_target's insert_point and remove_point ops
4237 into methods of process_target.
4239 * target.h (struct process_stratum_target): Remove the target ops.
4240 (class process_target): Add the target ops.
4241 * target.cc (process_target::insert_point): Define.
4242 (process_target::remove_point): Define.
4244 Update the derived classes and callers below.
4246 * mem-break.cc (set_raw_breakpoint_at): Update.
4247 (delete_raw_breakpoint): Update.
4248 (uninsert_raw_breakpoint): Update.
4249 (reinsert_raw_breakpoint): Update.
4250 * linux-low.cc (linux_target_ops): Update.
4251 (linux_insert_point): Turn into ...
4252 (linux_process_target::insert_point): ... this.
4253 (linux_remove_point): Turn into ...
4254 (linux_process_target::remove_point): ... this.
4255 * linux-low.h (class linux_process_target): Update.
4256 * lynx-low.cc (lynx_target_ops): Update.
4257 * nto-low.cc (nto_target_ops): Update.
4258 (nto_insert_point): Turn into ...
4259 (nto_process_target::insert_point): ... this.
4260 (nto_remove_point): Turn into ...
4261 (nto_process_target::remove_point): ... this.
4262 * nto-low.h (class nto_process_target): Update.
4263 * win32-low.cc (win32_target_ops): Update.
4264 (win32_insert_point): Turn into ...
4265 (win32_process_target::insert_point): ... this.
4266 (win32_remove_point): Turn into ...
4267 (win32_process_target::remove_point): ... this.
4268 * win32-low.h (class win32_process_target): Update.
4270 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4272 Turn process_stratum_target's supports_z_point_type op into a
4273 method of process_target.
4275 * target.h (struct process_stratum_target): Remove the target op.
4276 (class process_target): Add the target op.
4277 * target.cc (process_target::supports_z_point_type): Define.
4279 Update the derived classes and callers below.
4281 * mem-break.cc (z_type_supported): Update.
4282 * linux-low.cc (linux_target_ops): Update.
4283 (linux_supports_z_point_type): Turn into ...
4284 (linux_process_target::supports_z_point_type): ... this.
4285 * linux-low.h (class linux_process_target): Update.
4286 * lynx-low.cc (lynx_target_ops): Update.
4287 * nto-low.cc (nto_target_ops): Update.
4288 (nto_supports_z_point_type): Turn into ...
4289 (nto_process_target::supports_z_point_type): ... this.
4290 * nto-low.h (class nto_process_target): Update.
4291 * win32-low.cc (win32_target_ops): Update.
4292 (win32_supports_z_point_type): Turn into ...
4293 (win32_process_target::supports_z_point_type): ... this.
4294 * win32-low.h (class win32_process_target): Update.
4296 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4298 Turn process_stratum_target's read_auxv op into a method of
4301 * target.h (class process_stratum_target): Remove the target op.
4302 (struct process_target): Add the target op. Also add
4303 'supports_read_auxv'.
4304 * target.cc (process_target::read_auxv): Define.
4305 (process_target::supports_read_auxv): Define.
4307 Update the derived classes and callers below.
4309 * server.cc (handle_qxfer_auxv): Update.
4310 (handle_query): Update.
4311 * linux-low.cc (linux_target_ops): Update.
4312 (linux_process_target::supports_read_auxv): Define.
4313 (linux_read_auxv): Turn into ...
4314 (linux_process_target::read_auxv): ... this.
4315 * linux-low.h (class linux_process_target): Update.
4316 * lynx-low.cc (lynx_target_ops): Update.
4317 * nto-low.cc (nto_target_ops): Update.
4318 (nto_process_target::supports_read_auxv): Define.
4319 (nto_read_auxv): Turn into ...
4320 (nto_process_target::read_auxv): ... this.
4321 * nto-low.h (class nto_process_target): Update.
4322 * win32-low.cc (win32_target_ops): Update.
4324 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4326 Turn process_stratum_target's request_interrupt op into a method of
4329 * target.h (struct process_stratum_target): Remove the target op.
4330 (class process_target): Add the target op.
4332 Update the derived classes and callers below.
4334 * remote-utils.cc (putpkt_binary_1): Update.
4335 (input_interrupt): Update.
4337 * server.cc (handle_v_requests): Update.
4338 * linux-low.cc (linux_target_ops): Update.
4339 (linux_request_interrupt): Turn into ...
4340 (linux_process_target::request_interrupt): ... this.
4341 * linux-low.h (class linux_process_target): Update.
4342 * lynx-low.cc (lynx_target_ops): Update.
4343 (lynx_request_interrupt): Turn into ...
4344 (lynx_process_target::request_interrupt): ... this.
4345 * lynx-low.h (class lynx_process_target): Update.
4346 * nto-low.cc (nto_target_ops): Update.
4347 (nto_request_interrupt): Turn into ...
4348 (nto_process_target::request_interrupt): ... this.
4349 * nto-low.h (class nto_process_target): Update.
4350 * win32-low.cc (win32_target_ops): Update.
4351 (win32_request_interrupt): Turn into ...
4352 (win32_process_target::request_interrupt): ... this.
4353 * win32-low.h (class win32_process_target): Update.
4355 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4357 Turn process_stratum_target's look_up_symbols op into a method of
4360 * target.h (struct process_stratum_target): Remove the target op.
4361 (class process_target): Add the target op.
4362 * target.cc (process_target::look_up_symbols): Define.
4364 Update the derived classes and callers below.
4366 * server.cc (handle_query): Update.
4367 * linux-low.cc (linux_target_ops): Update.
4368 (linux_look_up_symbols): Turn into ...
4369 (linux_process_target::look_up_symbols): ... this.
4370 * linux-low.h (class linux_process_target): Update.
4371 * lynx-low.cc (lynx_target_ops): Update.
4372 * nto-low.cc (nto_target_ops): Update.
4373 * win32-low.cc (win32_target_ops): Update.
4375 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4377 Turn process_stratum_target's read_memory and write_memory
4378 ops into methods of process_target.
4380 * target.h (struct process_stratum_target): Remove the target ops.
4381 (class process_target): Add the target ops.
4383 Update the derived classes and callers below.
4385 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4386 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4387 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4388 (arm_get_syscall_trapinfo): Update.
4389 * linux-cris-low.cc (cris_breakpoint_at): Update.
4390 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4391 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4392 * linux-mips-low.cc (mips_breakpoint_at): Update.
4393 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4394 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4395 * linux-sh-low.cc (sh_breakpoint_at): Update.
4396 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4397 (sparc_store_gregset_from_stack): Update.
4398 (sparc_breakpoint_at): Update.
4399 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4400 * linux-tile-low.cc (tile_breakpoint_at): Update.
4401 * linux-x86-low.cc (x86_breakpoint_at): Update.
4402 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4403 * mem-brea.cc (insert_memory_breakpoint): Update.
4404 (validate_inserted_breakpoint): Update.
4405 * target.cc (read_inferior_memory): Update.
4406 (target_write_memory): Update.
4407 * linux-low.cc (linux_target_ops): Update.
4408 (linux_read_memory): Make a wrapper around the read_memory target
4410 (linux_process_target::read_memory): Rename from linux_read_memory.
4411 (linux_write_memory): Turn into ...
4412 (linux_process_target::write_memory): ... this.
4413 * linux-low.h (class linux_process_target): Update.
4414 * lynx-low.cc (lynx_target_ops): Update.
4415 (lynx_read_memory): Turn into ...
4416 (lynx_process_target::read_memory): ... this.
4417 (lynx_write_memory): Turn into ...
4418 (lynx_process_target::write_memory): ... this.
4419 * lynx-low.h (class lynx_process_target): Update.
4420 * nto-low.cc (nto_target_ops): Update.
4421 (nto_read_memory): Turn into ...
4422 (nto_process_target::read_memory): ... this.
4423 (nto_write_memory): Turn into ...
4424 (nto_process_target::write_memory): ... this.
4425 * nto-low.h (class nto_process_target): Update.
4426 * win32-low.cc (win32_target_ops): Update.
4427 (win32_read_inferior_memory): Turn into ...
4428 (win32_process_target::read_memory): ... this.
4429 (win32_write_inferior_memory): Turn into ...
4430 (win32_process_target::write_memory): ... this.
4431 * win32-low.h (class win32_process_target): Update.
4433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4435 Turn process_stratum_target's prepare_to_access_memory and
4436 done_accessing_memory ops into methods of process_target.
4438 * target.h (struct process_stratum_target): Remove the target ops.
4439 (class process_target): Add the target ops.
4440 * target.cc (process_target::prepare_to_access_memory): Define.
4441 (process_target::done_accessing_memory): Define.
4442 (prepare_to_access_memory): Update.
4443 (done_accessing_memory): Update.
4445 Update the derived classes and callers below.
4447 * linux-low.cc (linux_target_ops): Update.
4448 (linux_prepare_to_access_memory): Turn into ...
4449 (linux_process_target::prepare_to_access_memory): ... this.
4450 (linux_done_accessing_memory): Turn into ...
4451 (linux_process_target::done_accessing_memory): ... this.
4452 * linux-low.h (class linux_process_target): Update.
4453 * lynx-low.cc (lynx_target_ops): Update.
4454 * nto-low.cc (nto_target_ops): Update.
4455 * win32-low.cc (win32_target_ops): Update.
4457 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4459 Turn process_stratum_target's fetch_registers and store_registers
4460 ops into methods of process_target.
4462 * target.h (struct process_stratum_target): Remove the target ops.
4463 (class process_target): Add the target ops.
4464 (fetch_inferior_registers): Update the macro.
4465 (store_inferior_registers): Update the macro.
4467 Update the derived classes and callers below.
4469 * linux-low.cc (linux_target_ops): Update.
4470 (linux_fetch_registers): Turn into ...
4471 (linux_process_target::fetch_registers): ... this.
4472 (linux_store_registers): Turn into ...
4473 (linux_process_target::store_registers): ... this.
4474 * linux-low.h (class linux_process_target): Update.
4475 * lynx-low.cc (lynx_target_ops): Update.
4476 (lynx_fetch_registers): Turn into ...
4477 (lynx_process_target::fetch_registers): ... this.
4478 (lynx_store_registers): Turn into ...
4479 (lynx_process_target::store_registers): ... this.
4480 * lynx-low.h (class lynx_process_target): Update.
4481 * nto-low.cc (nto_target_ops): Update.
4482 (nto_fetch_registers): Turn into ...
4483 (nto_process_target::fetch_registers): ... this.
4484 (nto_store_registers): Turn into ...
4485 (nto_process_target::store_registers): ... this.
4486 * nto-low.h (class nto_process_target): Update.
4487 * win32-low.cc (win32_target_ops): Update.
4488 (win32_fetch_inferior_registers): Turn into ...
4489 (win32_process_target::fetch_registers): ... this.
4490 (win32_store_inferior_registers): Turn into ...
4491 (win32_process_target::store_registers): ... this.
4492 * win32-low.h (class win32_process_target): Update.
4494 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4496 Turn process_stratum_target's wait op into a method of
4499 * target.h (struct process_stratum_target): Remove the target op.
4500 (class process_target): Add the target op.
4502 Update the derived classes and callers below.
4504 * target.cc (target_wait): Update.
4505 * linux-low.cc (linux_target_ops): Update.
4506 (linux_wait): Turn into ...
4507 (linux_process_target::wait): ... this.
4508 * linux-low.h (class linux_process_target): Update.
4509 * lynx-low.cc (lynx_target_ops): Update.
4510 (lynx_wait): Turn into ...
4511 (lynx_process_target::wait): ... this.
4512 * lynx-low.h (class lynx_process_target): Update.
4513 * nto-low.cc (nto_target_ops): Update.
4514 (nto_wait): Turn into ...
4515 (nto_process_target::wait): ... this.
4516 * nto-low.h (class nto_process_target): Update.
4517 * win32-low.cc (win32_target_ops): Update.
4518 (win32_wait): Turn into ...
4519 (win32_process_target::wait): ... this.
4520 (do_initial_child_stuff): Update.
4521 * win32-low.h (class win32_process_target): Update.
4523 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4525 Turn process_stratum_target's resume op into a method of
4528 * target.h (struct process_stratum_target): Remove the target op.
4529 (class process_target): Add the target op.
4531 Update the derived classes and callers below.
4533 * server.cc (resume): Update.
4534 * target.cc (target_stop_and_wait): Update.
4535 (target_continue_no_signal): Update.
4536 (target_continue): Update.
4537 * linux-low.cc (linux_target_ops): Update.
4538 (linux_resume): Turn into ...
4539 (linux_process_target::resume): ... this.
4540 * linux-low.h (class linux_process_target): Update.
4541 * lynx-low.cc (lynx_target_ops): Update.
4542 (lynx_resume): Turn into ...
4543 (lynx_process_target::resume): ... this.
4544 * lynx-low.h (class lynx_process_target): Update.
4545 * nto-low.cc (nto_target_ops): Update.
4546 (nto_resume): Turn into ...
4547 (nto_process_target::resume): ... this.
4548 * nto-low.h (class nto_process_target): Update.
4549 * win32-low.cc (win32_target_ops): Update.
4550 (win32_resume): Turn into ...
4551 (win32_process_target::resume): ... this.
4552 (win32_process_target::detach): Update.
4553 (do_initial_child_stuff): Update.
4554 * win32-low.h (class win32_process_target): Update.
4556 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4558 Turn process_stratum_target's thread_alive op into a method of
4561 * target.h (struct process_stratum_target): Remove the target op.
4562 (class process_target): Add the target op.
4563 (mythread_alive): Update the macro.
4565 Update the derived classes and callers below.
4567 * linux-low.cc (linux_target_ops): Update.
4568 (linux_thread_alive): Turn into ...
4569 (linux_process_target::thread_alive): ... this.
4570 (wait_for_sigstop): Update.
4571 * linux-low.h (class linux_process_target): Update.
4572 * lynx-low.cc (lynx_target_ops): Update.
4573 (lynx_thread_alive): Turn into ...
4574 (lynx_process_target::thread_alive): ... this.
4575 * lynx-low.h (class lynx_process_target): Update.
4576 * nto-low.cc (nto_target_ops): Update.
4577 (nto_thread_alive): Turn into ...
4578 (nto_process_target::thread_alive): ... this.
4579 * nto-low.h (class nto_process_target): Update.
4580 * win32-low.cc (win32_target_ops): Update.
4581 (win32_thread_alive): Turn into ...
4582 (win32_process_target::thread_alive): ... this.
4583 * win32-low.h (class win32_process_target): Update.
4585 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4587 Turn process_stratum_target's join op into a method of
4590 * target.h (struct process_stratum_target): Remove the target op.
4591 (class process_target): Add the target op.
4592 (join_inferior): Update the macro.
4594 Update the derived classes and callers below.
4596 * linux-low.cc (linux_target_ops): Update.
4597 (linux_join): Turn into ...
4598 (linux_process_target::join): ... this.
4599 * linux-low.h (class linux_process_target): Update.
4600 * lynx-low.cc (lynx_target_ops): Update.
4601 (lynx_join): Turn into ...
4602 (lynx_process_target::join): ... this.
4603 * lynx-low.h (class lynx_process_target): Update.
4604 * nto-low.cc (nto_target_ops): Update.
4605 (nto_process_target::join): Define.
4606 * nto-low.h (class nto_process_target): Update.
4607 * win32-low.cc (win32_target_ops): Update.
4608 (win32_join): Turn into ...
4609 (win32_process_target::join): ... this.
4610 * win32-low.h (class win32_process_target): Update.
4612 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4614 Turn process_stratum_target's mourn op into a method of
4617 * target.h (struct process_stratum_target): Remove the target op.
4618 (class process_target): Add the target op.
4620 Update the derived classes and callers below.
4622 * target.cc (target_mourn_inferior): Update.
4623 * linux-low.cc (linux_target_ops): Update.
4624 (linux_mourn): Turn into ...
4625 (linux_process_target::mourn): ... this.
4626 (handle_extended_wait): Update.
4627 (linux_process_target::kill): Update.
4628 (linux_process_target::detach): Update.
4629 * linux-low.h (class linux_process_target): Update.
4630 * lynx-low.cc (lynx_target_ops): Update.
4631 (lynx_mourn): Turn into ...
4632 (lynx_process_target::mourn): ... this.
4633 * lynx-low.h (class lynx_process_target): Update.
4634 * nto-low.cc (nto_target_ops): Update.
4635 (nto_mourn): Turn into ...
4636 (nto_process_target::mourn): ... this.
4637 * nto-low.h (class nto_process_target): Update.
4638 * win32-low.cc (win32_target_ops): Update.
4639 (win32_mourn): Turn into ...
4640 (win32_process_target::mourn): ... this.
4641 * win32-low.h (class win32_process_target): Update.
4643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4645 Turn process_stratum_target's detach op into a method of
4648 * target.h (struct process_stratum_target): Remove the target op.
4649 (class process_target): Add the target op.
4650 (detach_inferior): Update the macro.
4652 Update the derived classes and callers below.
4654 * linux-low.cc (linux_target_ops): Update.
4655 (linux_detach): Turn into ...
4656 (linux_process_target::detach): ... this.
4657 * linux-low.h (class linux_process_target): Update.
4658 * lynx-low.cc (lynx_target_ops): Update.
4659 (lynx_detach): Turn into ...
4660 (lynx_process_target::detach): ... this.
4661 * lynx-low.h (class lynx_process_target): Update.
4662 * nto-low.cc (nto_target_ops): Update.
4663 (nto_detach): Turn into ...
4664 (nto_process_target::detach): ... this.
4665 * nto-low.h (class nto_process_target): Update.
4666 * win32-low.cc (win32_target_ops): Update.
4667 (win32_detach): Turn into ...
4668 (win32_process_target::detach): ... this.
4669 * win32-low.h (class win32_process_target): Update.
4671 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4673 Turn process_stratum_target's kill op into a method of
4676 * target.h (struct process_stratum_target): Remove the target op.
4677 (class process_target): Add the target op.
4679 Update the derived classes and callers below.
4681 * target.cc (kill_inferior): Update.
4682 * linux-low.cc (linux_target_ops): Update.
4683 (linux_kill): Turn into ...
4684 (linux_process_target::kill): ... this.
4685 * linux-low.h (class linux_process_target): Update.
4686 * lynx-low.cc (lynx_target_ops): Update.
4687 (lynx_kill): Turn into ...
4688 (lynx_process_target::kill): ... this.
4689 * lynx-low.h (class lynx_process_target): Update.
4690 * nto-low.cc (nto_target_ops): Update.
4691 (nto_kill): Turn into ...
4692 (nto_process_target::kill): ... this.
4693 * nto-low.h (class nto_process_target): Update.
4694 * win32-low.cc (win32_target_ops): Update.
4695 (win32_kill): Turn into ...
4696 (win32_process_target::kill): ... this.
4697 * win32-low.h (class win32_process_target): Update.
4699 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4701 Turn process_stratum_target's attach op into a method of
4704 * target.h (struct process_stratum_target): Remove the target op.
4705 (class process_target): Add the target op.
4706 (myattach): Update the macro.
4708 Update the derived classes and callers below.
4710 * linux-low.cc (linux_target_ops): Update.
4711 (linux_attach): Turn into ...
4712 (linux_process_target::attach): ... this.
4713 * linux-low.h (class linux_process_target): Update.
4714 * lynx-low.cc (lynx_target_ops): Update.
4715 (lynx_attach): Turn into ...
4716 (lynx_process_target::attach): ... this.
4717 * lynx-low.h (class lynx_process_target): Update.
4718 * nto-low.cc (nto_target_ops): Update.
4719 (nto_attach): Turn into ...
4720 (nto_process_target::attach): ... this.
4721 * nto-low.h (class nto_process_target): Update.
4722 * win32-low.cc (win32_target_ops): Update.
4723 (win32_attach): Turn into ...
4724 (win32_process_target::attach): ... this.
4725 * win32-low.h (class win32_process_target): Update.
4727 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4729 Turn process_stratum_target's post_create_inferior op into a method
4732 * target.h (struct process_stratum_target): Remove the target op.
4733 (class process_target): Add the target op.
4734 (target_post_create_inferior): Update the macro.
4735 * target.cc (process_target::post_create_inferior): Define.
4737 Update the derived classes and callers below.
4739 * linux-low.cc (linux_target_ops): Update.
4740 (linux_post_create_inferior): Turn into ...
4741 (linux_process_target::post_create_inferior): ... this.
4742 * linux-low.h (class linux_process_target): Update.
4743 * lynx-low.cc (lynx_target_ops): Update.
4744 * nto-low.cc (nto_target_ops): Update.
4745 * win32-low.cc (win32_target_ops): Update.
4747 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4749 Turn process_stratum_target's create_inferior op into a method of
4752 * target.h (struct process_stratum_target): Remove the target op.
4753 (class process_target): Add the target op.
4754 (create_inferior): Rename the macro to ...
4755 (target_create_inferior): ... this.
4757 Update the derived classes and callers below.
4759 * server.cc (handle_v_run): Update.
4760 (captured_main): Update.
4761 (process_serial_event): Update.
4762 * linux-low.cc (linux_target_ops): Update.
4763 (linux_create_inferior): Turn into ...
4764 (linux_process_target::create_inferior): ... this.
4765 * linux-low.h (class linux_process_target): Update.
4766 * lynx-low.cc (lynx_target_ops): Update.
4767 (lynx_create_inferior): Turn into ...
4768 (lynx_process_target::create_inferior): ... this.
4769 * lynx-low.h (class lynx_process_target): Update.
4770 * nto-low.cc (nto_target_ops): Update.
4771 (nto_create_inferior): Turn into ...
4772 (nto_process_target::create_inferior): ... this.
4773 * nto-low.h (class nto_process_target): Update.
4774 * win32-low.cc (win32_target_ops): Update.
4775 (win32_create_inferior): Turn into ...
4776 (win32_process_target::create_inferior): ... this.
4777 * win32-low.h (class win32_process_target): Update.
4779 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4781 * target.h (class process_target): New class definition.
4782 (struct process_stratum_target) <pt>: New field with type
4784 * linux-low.h (class linux_process_target): Define as a derived
4785 class of 'process_target'.
4786 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4788 * lynx-low.h (class lynx_process_target): Define as a derived
4789 class of 'process_target'.
4790 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4792 * nto-low.h (class nto_process_target): Define as a derived
4793 class of 'process_target'.
4794 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4796 * win32-low.h (class win32_process_target): Define as a derived
4797 class of 'process_target'.
4798 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4801 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4803 * configure: Regenerate.
4805 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4806 Andrew Burgess <andrew.burgess@embecosm.com>
4808 * linux-riscv-low.cc: New file.
4809 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4810 and nat/riscv-linux-tdesc.c.
4811 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4812 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4815 2020-02-14 Tom Tromey <tom@tromey.com>
4817 * acinclude.m4: Don't include acx_configure_dir.m4.
4818 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4819 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4820 (all, install-only, uninstall, clean-info, clean)
4821 (maintainer-clean): Don't recurse.
4822 (subdir_do, all-lib): Remove.
4823 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4825 (generated_files): Update.
4826 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4827 * configure: Rebuild.
4828 * configure.ac: Don't configure gnulib or libiberty.
4831 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4833 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4834 preparing the command line for CreateProcess.
4835 (win32_create_inferior): Reflect the program name in debugging
4836 output that shows the process and its command line.
4838 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4840 * Makefile.in: Rename source files from .c to .cc.
4841 * %.c: Rename to %.cc.
4842 * configure.ac: Rename server.c to server.cc.
4843 * configure: Re-generate.
4845 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4847 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4849 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4851 * win32-low.c (win32_create_inferior): Set signal_pid.
4853 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4854 Pedro Alves <palves@redhat.com>
4856 Skip building gdbserver in a cross-configuration.
4857 * configure.srv: Set $gdbserver_host depending on whether $target
4858 is $host. Use $gdbserver_host instead of $host.
4860 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4862 * configure: Re-generate.
4864 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4866 * configure: Re-generate.
4868 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4870 * acinclude.m4: Update warning.m4 path.
4872 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4874 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4875 (handle_exception): Set siginfo_er.
4876 (win32_xfer_siginfo): New function.
4878 2020-02-07 Tom Tromey <tom@tromey.com>
4879 Pedro Alves <palves@redhat.com>
4881 * README: Update build documentation.
4882 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4884 * configure.ac: Update paths.
4885 * configure: Rebuild.
4886 * acinclude.m4: Update paths.
4887 * Makefile.in: Update include paths.
4888 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4889 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4890 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4891 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4892 (%-generated.c): Update paths.
4893 * Move entire directory from ../gdb/gdbserver.
4895 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4897 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4899 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4901 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4902 assignment instead of srv_linux_obj.
4904 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4906 * server.c (handle_qxfer_libraries): Write segment-address with
4909 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4911 * Makefile.in (install-strip): New target.
4912 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4913 * aclocal.m4: Regenerate.
4914 * configure: Regenerate.
4915 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4917 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4919 * Makefile.in (SFILES): Adjust paths to point to real files.
4920 (OBS): Move waitstatus.o to target/waitstatus.o.
4921 (TAGS): Transform paths appropriately.
4923 (nat/%.o): ... this pattern rule.
4925 (target/%.o): ... this pattern rule.
4926 * configure.srv: Adjust paths throughout to include nat/ prefix
4927 with the revant files.
4928 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4929 * configure: Regenerate.
4931 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4933 * Makefile.in (TAGS): Remove config files from the recipe.
4935 2020-01-14 Tom Tromey <tom@tromey.com>
4937 * configure: Rebuild.
4938 * configure.ac: Remove any checks that were added to common.m4.
4939 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4942 2020-01-14 Tom Tromey <tom@tromey.com>
4944 * server.h: Include config.h.
4945 * gdbreplay.c: Include config.h.
4946 * configure: Rebuild.
4947 * configure.ac: Don't source common.host.
4948 * acinclude.m4: Update path.
4949 * Makefile.in (INCSUPPORT): New variable.
4950 (INCLUDE_CFLAGS): Add INCSUPPORT.
4951 (SFILES): Update paths.
4952 (version-generated.c): Update path to create-version.sh.
4953 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4955 2020-01-14 Tom Tromey <tom@tromey.com>
4957 * configure.ac (LIBS): Use WIN32APILIBS.
4958 (USE_WIN32API): Don't define.
4959 * configure: Rebuild.
4961 2020-01-14 Tom Tromey <tom@tromey.com>
4963 * configure: Rebuild.
4965 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4967 * Makefile.in (%-generated.c): Remove rule for files from
4970 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4972 * configure: Re-generate.
4974 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4976 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4978 * tracepoint.c (stop_tracing, flush_trace_buffer,
4979 about_to_request_buffer_space, get_trace_state_variable_value,
4980 set_trace_state_variable_value, gdb_collect): Add declaration.
4982 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4984 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4985 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4986 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4987 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4988 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4991 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4993 * inferiors.c: Include gdbsupport/common-inferior.h.
4995 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4997 * hostio-errno.c: Include hostio.h.
4999 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5001 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
5004 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5006 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
5007 * linux-arm-tdesc.h: Include arch/arm.h.
5009 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5011 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
5013 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5015 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
5016 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
5018 2020-01-10 Pedro Alves <palves@redhat.com>
5020 * fork-child.c (post_fork_inferior): Pass target down to
5022 * inferiors.c (switch_to_thread): Add process_stratum_target
5024 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5025 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5026 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5027 * remote-utils.c (prepare_resume_reply): Pass the target to
5029 * target.c (the_target): Now a process_stratum_target.
5030 (done_accessing_memory): Pass the target to switch_to_thread.
5031 (set_target_ops): Ajust to use process_stratum_target.
5032 * target.h (struct target_ops): Rename to ...
5033 (struct process_stratum_target): ... this.
5034 (the_target, set_target_ops): Adjust.
5035 (prepare_to_access_memory): Adjust comment.
5036 * win32-low.c (child_xfer_memory): Adjust to use
5037 process_stratum_target.
5038 (win32_target_ops): Now a process_stratum_target.
5040 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5041 Pedro Alves <palves@redhat.com>
5043 * win32-low.c (get_child_debug_event): Extract the fatal exception
5044 from the exit status and convert to the equivalent Posix signal
5046 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5047 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5049 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5051 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5053 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5055 * server.c (gdbserver_version): Change copyright year to 2020.
5056 * gdbreplay.c (gdbreplay_version): Likewise.
5058 2019-12-19 Christian Biesinger <cbiesinger@google.com>
5060 * configure: Regenerate.
5061 * configure.ac: Quote variable arguments of test.
5063 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5065 * Makefile.in: Fix build with GNU Make 3.81
5067 2019-12-16 Tom Tromey <tromey@adacore.com>
5069 * server.c (get_exec_file): Constify result.
5071 2019-12-10 Christian Biesinger <cbiesinger@google.com>
5073 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5074 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5075 * config.in: Regenerate.
5076 * configure: Regenerate.
5077 * configure.ac: Don't check for strerror.
5078 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5079 Call safe_strerror instead of strerror.
5080 * server.h (strerror): Remove this now-unnecessary declaration.
5081 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5083 (gdb_agent_helper_thread): Likewise.
5084 * utils.c (perror_with_name): Likewise.
5086 2019-11-26 Tom Tromey <tom@tromey.com>
5088 * configure, config.in: Rebuild.
5090 2019-11-26 Tom Tromey <tom@tromey.com>
5092 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5093 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5095 * configure, config.in: Rebuild.
5097 2019-11-26 Tom Tromey <tom@tromey.com>
5099 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5100 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5101 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5102 * acinclude.m4: Include ax_pthread.m4.
5103 * config.in, configure: Rebuild.
5105 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5107 * debug.c (debug_set_output): Call safe_strerror instead of
5109 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5110 (linux_kill_one_lwp): Likewise.
5111 (linux_detach_one_lwp): Likewise.
5112 (linux_wait_for_event_filtered): Likewise.
5113 (store_register): Likewise.
5114 * lynx-low.c (lynx_attach): Likewise.
5115 * mem-break.c (insert_memory_breakpoint): Likewise.
5116 (remove_memory_breakpoint): Likewise.
5117 (delete_fast_tracepoint_jump): Likewise.
5118 (set_fast_tracepoint_jump): Likewise.
5119 (uninsert_fast_tracepoint_jumps_at): Likewise.
5120 (reinsert_fast_tracepoint_jumps_at): Likewise.
5121 * nto-low.c (nto_xfer_memory): Likewise.
5122 (nto_resume): Likewise.
5124 2019-11-20 Luis Machado <luis.machado@linaro.org>
5126 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5127 instead of register count.
5128 * tdesc.c (tdesc_contains_feature): New function.
5129 * tdesc.h (tdesc_contains_feature): New prototype.
5131 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5133 * Makefile.in: Add safe-strerror.c.
5134 * configure: Regenerate.
5135 * configure.ac: Don't source common.host.
5137 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5139 * config.in: Regenerate.
5140 * configure: Regenerate.
5142 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5144 * ax.c (ax_printf): Handle size_t_arg.
5146 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5148 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5149 * mi/mi-main.c (output_cores): Likewise.
5150 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5151 (linux_xfer_osdata_modules): Likewise.
5152 * remote.c (register_remote_support_xml): Likewise.
5153 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5154 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5156 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5158 * configure: Regenerate.
5159 * configure.ac: Remove check for strerror_r.
5161 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5163 * config.in: Regenerate.
5164 * configure: Regenerate.
5165 * configure.ac: Also check for strerror_r.
5167 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5169 * ax.h (debug_agent): Remove duplicate declaration.
5171 2019-10-26 Tom de Vries <tdevries@suse.de>
5173 * linux-aarch64-low.c: Fix typos in comments.
5174 * linux-arm-low.c: Same.
5175 * linux-low.c: Same.
5176 * linux-ppc-low.c: Same.
5177 * proc-service.c: Same.
5180 * tracepoint.c: Same.
5181 * win32-low.c: Same.
5183 2019-10-25 Tom Tromey <tromey@adacore.com>
5185 * utils.c (xstrdup): Remove.
5187 2019-10-23 Tom Tromey <tom@tromey.com>
5189 * configure, config.in: Rebuild.
5191 2019-10-23 Tom Tromey <tom@tromey.com>
5193 * configure: Rebuild.
5194 * acinclude.m4: Use m4_include, not sinclude.
5196 2019-10-17 Tom Tromey <tromey@adacore.com>
5198 * configure: Rebuild.
5199 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5200 in AC_CONFIG_FILES invocation.
5201 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5204 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5206 * server.c: Include xml-builtin.h.
5207 (get_xml_features): Don't declare xml_builtins here.
5209 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5211 * Makefile.in: Remove references to vec-ipa.o.
5213 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5215 * Makefile.in: Remove references to vec.c.
5217 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5219 * server.c (server_waiting): Change to bool.
5220 (extended_protocol): Likewise.
5221 (response_needed): Likewise.
5222 (exit_requested): Likewise.
5223 (run_once): Likewise.
5224 (report_no_resumed): Likewise.
5225 (non_stop): Likewise.
5226 (disable_packet_vCont): Likewise.
5227 (disable_packet_Tthread): Likewise.
5228 (disable_packet_qC): Likewise.
5229 (disable_packet_qfThreadInfo): Likewise.
5230 (handle_general_set): Update.
5231 (handle_detach): Update.
5232 (handle_monitor_command): Update.
5233 (handle_query): Update.
5234 (captured_main): Update.
5235 (process_serial_event): Update.
5236 * server.h (server_waiting): Change to bool.
5237 (disable_packet_vCont): Likewise.
5238 (disable_packet_Tthread): Likewise.
5239 (disable_packet_qC): Likewise.
5240 (disable_packet_qfThreadInfo): Likewise.
5241 (run_once): Likewise.
5242 (non_stop): Likewise.
5243 * target.c (target_stop_and_wait): Update.
5245 2019-10-02 Tom Tromey <tromey@adacore.com>
5247 * Makefile.in (SFILES): Add common-inferior.c.
5248 (OBS): Add common-inferior.o.
5249 * server.c (startup_with_shell): Don't define.
5251 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5253 * linux-low.c (linux_low_read_btrace): Update for change to
5256 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5258 * debug.c (debug_threads): Remove comment in favor of the header.
5259 * debug.h (using_threads): Add declaration.
5260 (debug_threads): Add comment.
5261 * linux-aarch64-low.c: Include debug.h and remove declaration of
5263 * nto-low.c: Likewise.
5264 * remote-utils.c: Likewise.
5265 * thread-db.c: Likewise.
5267 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5269 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5270 and powerpc-cell64l-ipa.o.
5271 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5272 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5273 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5276 * spu-low.c: Remove file.
5278 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5279 (parse_spufs_run): Remove.
5280 (ppc_get_pc): Remove Cell/B.E. support.
5281 (ppc_set_pc): Likewise.
5282 (ppc_breakpoint_at): Likewise.
5283 (ppc_arch_setup): Likewise.
5284 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5285 tdesc_powerpc_cell32l.
5286 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5287 or init_registers_powerpc_cell32l.
5288 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5289 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5290 or init_registers_powerpc_cell32l.
5291 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5292 (init_registers_powerpc_cell32l): Remove prototype.
5293 (init_registers_powerpc_cell64l): Likewise.
5295 * target.h (struct target_ops): Remove qxfer_spu member.
5296 * server.c (handle_qxfer_spu): Remove.
5297 (qxfer_packets): Remove entry for "spu".
5298 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5299 * linux-low.c (SPUFS_MAGIC): Remove.
5300 (spu_enumerate_spu_ids): Remove.
5301 (linux_qxfer_spu): Remove.
5302 (linux_target_ops): Remove qxfer_spu member.
5303 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5304 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5305 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5307 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5309 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5310 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5311 * config.in: Regenerate.
5312 * configure: Regenerate.
5314 2019-08-15 Tom Tromey <tromey@adacore.com>
5316 * target.c (target_write_memory): Use gdb::byte_vector.
5318 2019-08-15 Tom Tromey <tromey@adacore.com>
5320 * tracepoint.c (write_inferior_data_pointer)
5321 (write_inferior_integer, write_inferior_int8)
5322 (write_inferior_uinteger, m_tracepoint_action_download)
5323 (r_tracepoint_action_download, x_tracepoint_action_download)
5324 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5325 (download_agent_expr, download_tracepoint_1)
5326 (download_trace_state_variables, upload_fast_traceframes): Update.
5327 * server.c (gdb_write_memory): Update.
5328 * remote-utils.c (relocate_instruction): Update.
5329 * proc-service.c (ps_pdwrite): Update.
5330 * mem-break.c (remove_memory_breakpoint)
5331 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5332 (uninsert_fast_tracepoint_jumps_at)
5333 (reinsert_fast_tracepoint_jumps_at): Update.
5334 * linux-x86-low.c (append_insns)
5335 (i386_install_fast_tracepoint_jump_pad)
5336 (amd64_write_goto_address, i386_write_goto_address): Update.
5337 * linux-s390-low.c (append_insns, s390_write_goto_address):
5339 * linux-ppc-low.c (ppc_relocate_instruction)
5340 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5341 (ppc_write_goto_address): Update.
5342 * linux-aarch64-low.c (append_insns): Update.
5343 * target.h (struct target_ops): Update.
5344 (write_inferior_memory): Don't declare.
5345 * target.c (target_write_memory): Rename from
5346 write_inferior_memory. Remove old target_write_memory.
5348 2019-08-15 Tom Tromey <tromey@adacore.com>
5350 * target.c (write_inferior_memory): Use std::vector.
5352 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5355 * configure.ac: Drop enable-libmcheck support.
5356 * configure, config.in: Rebuild.
5357 * acinclude.m4: Don't include it.
5359 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5361 * configure.srv: Remove Arm xml files.
5363 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5365 * configure.srv: Add new files. Remove xml generated files.
5366 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5368 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5369 * linux-aarch32-tdesc.c: New file.
5370 * linux-aarch32-tdesc.h: New file.
5371 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5372 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5373 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5374 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5375 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5376 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5377 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5378 (arm_read_description): Call arm_linux_read_description.
5379 (initialize_low_arch): Don't init registers.
5380 * linux-arm-tdesc.c: New file.
5381 * linux-arm-tdesc.h: New file.
5383 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5385 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5386 Move counter inside for.
5387 (arm_read_description): Check ptrace earlier.
5388 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5390 2019-07-09 Tom Tromey <tom@tromey.com>
5392 * configure: Rebuild.
5393 * configure.ac: Change common to gdbsupport.
5394 * acinclude.m4: Change common to gdbsupport.
5395 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5396 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5397 common to gdbsupport.
5398 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5399 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5400 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5401 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5402 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5403 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5404 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5405 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5406 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5407 common to gdbsupport.
5409 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5411 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5413 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5415 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5417 * configure.srv: Remove legacy xml.
5418 * linux-aarch64-low.c (initialize_low_arch): Remove
5419 initialize_low_tdesc call.
5420 * linux-aarch64-tdesc-selftest.c: Remove file.
5421 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5422 * linux-x86-low.c (initialize_low_arch): Remove
5423 initialize_low_tdesc call.
5424 * linux-x86-tdesc-selftest.c: Remove file.
5425 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5427 2019-06-20 Tom de Vries <tdevries@suse.de>
5429 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5430 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5432 2019-06-19 Tom de Vries <tdevries@suse.de>
5434 * debug.h (debug_write): Change return type to ssize_t.
5435 * debug.c (debug_write): Same.
5437 2019-06-14 Tom Tromey <tom@tromey.com>
5439 * configure.ac: Use new path to gnulib.
5440 * configure: Rebuild.
5441 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5444 2019-06-11 Tom Tromey <tom@tromey.com>
5446 * Makefile.in (SFILES): Add alloc.c.
5448 (IPA_OBJS): Add alloc-ipa.o.
5449 (alloc-ipa.o): New target.
5450 (%.o: ../%.c): New pattern rule.
5452 2019-06-10 Tom Tromey <tromey@adacore.com>
5454 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5455 end warning with a newline.
5456 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5458 * thread-db.c (attach_thread): Don't end warning with a newline.
5459 (thread_db_notice_clone): Likewise.
5460 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5462 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5463 end warning with a newline.
5465 2019-06-04 Pedro Alves <palves@redhat.com>
5467 * server.c (captured_main): Use make_unique_xstrdup.
5469 2019-06-02 Tom Tromey <tom@tromey.com>
5471 * gdbreplay.c (fromhex): Remove.
5472 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5474 2019-05-29 Tom Tromey <tromey@adacore.com>
5476 * configure: Rebuild.
5478 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5480 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5481 sign extension code on 32-bit builds.
5483 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5486 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5488 2019-04-19 Tom Tromey <tom@tromey.com>
5490 * server.c (struct vstop_notif): Derive from notif_event.
5492 (queue_stop_reply): Update.
5493 (remove_all_on_match_ptid): Change type. Rewrite.
5494 (discard_queued_stop_replies): Rewrite.
5495 (in_queued_stop_replies_ptid): Change type.
5496 (in_queued_stop_replies): Rewrite.
5497 (notif_stop): Update.
5498 (queue_stop_reply_callback): Update.
5499 (captured_main): Don't call initialize_notif.
5500 (push_stop_notification): Update.
5501 * notif.c (notif_write_event, handle_notif_ack)
5502 (notif_event_enque, notif_push): Update.
5503 (notif_event_xfree, initialize_notif): Remove.
5504 * notif.h (struct notif_event): Include <list>, not
5506 (struct notif_server) <queue>: Now a std::list.
5507 (notif_event_p): Remove typedef.
5508 (initialize_notif): Don't declare.
5509 (struct notif_event): Add virtual destructor.
5511 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5513 * ax.c (ax_vdebug): Call debug_printf.
5514 * debug.c (debug_write): New function.
5515 * debug.h (debug_write): New declaration.
5516 * linux-low.c (sigchld_handler): Call debug_write.
5518 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5520 * debug.c (debug_set_output): New function.
5521 (debug_vprintf): Send output to debug_file.
5522 (debug_flush): Likewise.
5523 * debug.h (debug_set_output): New declaration.
5524 * server.c (handle_monitor_command): Add debug-file option.
5525 (captured_main): Likewise.
5527 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5529 * debug.c (remote_debug): Add definition.
5530 * debug.h (remote_debug): Add declaration.
5531 * hostio.c (remote_debug): Remove declaration.
5532 * remote-utils.c (struct ui_file): Likewise.
5533 (remote_debug): Likewise.
5534 * remote-utils.h (remote_debug): Likewise,
5535 * server.c (remote_debug): Remove definition.
5537 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5539 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5540 when using a 64-bit gdbserver.
5542 2019-04-09 Tom Tromey <tromey@adacore.com>
5544 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5546 2019-04-08 Tom Tromey <tom@tromey.com>
5548 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5550 (linux_resume_one_lwp): Likewise.
5552 2019-04-08 Tom Tromey <tom@tromey.com>
5554 * gdbreplay.c: Update.
5555 * linux-low.c: Update.
5558 2019-04-08 Tom Tromey <tom@tromey.com>
5560 * server.c: Use C++ exception handling.
5561 * linux-low.c: Use C++ exception handling.
5562 * gdbreplay.c: Use C++ exception handling.
5564 2019-04-08 Tom Tromey <tom@tromey.com>
5566 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5567 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5568 (captured_main, main): Update.
5569 * gdbreplay.c (main): Update.
5571 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5573 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5574 value in argument pointer, return 1 if the entry is found and 0
5575 otherwise. Move comment.
5576 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5577 * linux-low.h (linux_get_auxv): Declare.
5578 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5580 2019-04-05 Tom Tromey <tromey@adacore.com>
5582 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5585 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5587 * linux-low.c (AT_HWCAP2): Add define if not already included.
5589 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5591 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5592 (aarch64_arch_setup): Call linux_get_hwcap.
5593 * linux-arm-low.c (arm_get_hwcap): Remove function.
5594 (arm_read_description): Call linux_get_hwcap.
5595 * linux-low.c (linux_get_auxv): New function.
5596 (linux_get_hwcap): Likewise.
5597 (linux_get_hwcap2): Likewise.
5598 * linux-low.h (linux_get_hwcap): New declaration.
5599 (linux_get_hwcap2): Likewise.
5600 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5601 (ppc_arch_setup): Call linux_get_hwcap.
5602 * linux-s390-low.c (s390_get_hwcap): Remove function.
5603 (s390_arch_setup): Call linux_get_hwcap.
5605 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5606 Jiong Wang <jiong.wang@arm.com>
5608 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5609 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5611 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5613 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5614 Jiong Wang <jiong.wang@arm.com>
5616 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5617 (aarch64_get_hwcap): New function.
5618 (aarch64_arch_setup): Read APIA hwcap.
5620 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5621 Jiong Wang <jiong.wang@arm.com>
5623 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5624 (initialize_low_tracepoint): Likewise.
5625 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5626 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5627 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5628 (aarch64_linux_read_description): Likewise.
5629 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5633 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5634 i386_create_target_description for 'segments' parameter.
5635 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5636 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5637 * win32-i386-low.c (i386_arch_setup): Likewise.
5639 2019-03-12 Tom Tromey <tromey@adacore.com>
5641 * linux-low.c (iterate_over_lwps): Update.
5643 2019-03-06 Tom Tromey <tom@tromey.com>
5645 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5646 (captured_main): Use SCOPE_EXIT.
5648 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5650 * configure.srv: Use '$enable_unittest' instead of '$development'
5651 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5654 2019-02-27 Tom Tromey <tromey@adacore.com>
5656 * gdbreplay.c (logchar): Handle \r\n.
5658 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5660 * linux-low.c (linux_attach): Add process before lwp.
5661 * server.c (attach_inferior): Check if already attached.
5663 2019-02-07 Tom Tromey <tom@tromey.com>
5665 * x86-tdesc.h: Rename include guard.
5666 * x86-low.h: Add include guard.
5667 * wincecompat.h: Rename include guard.
5668 * win32-low.h: Add include guard.
5669 * utils.h: Rename include guard.
5670 * tracepoint.h: Rename include guard.
5671 * tdesc.h: Rename include guard.
5672 * target.h: Rename include guard.
5673 * server.h: Rename include guard.
5674 * remote-utils.h: Rename include guard.
5675 * regcache.h: Rename include guard.
5676 * nto-low.h: Rename include guard.
5677 * notif.h: Add include guard.
5678 * mem-break.h: Rename include guard.
5679 * lynx-low.h: Add include guard.
5680 * linux-x86-tdesc.h: Add include guard.
5681 * linux-s390-tdesc.h: Add include guard.
5682 * linux-ppc-tdesc-init.h: Add include guard.
5683 * linux-low.h: Add include guard.
5684 * linux-aarch64-tdesc.h: Add include guard.
5685 * linux-aarch32-low.h: Add include guard.
5686 * inferiors.h: Rename include guard.
5687 * i387-fp.h: Rename include guard.
5688 * hostio.h: Rename include guard.
5689 * gdbthread.h: Rename include guard.
5690 * gdb_proc_service.h: Rename include guard.
5691 * event-loop.h: Rename include guard.
5692 * dll.h: Rename include guard.
5693 * debug.h: Rename include guard.
5694 * ax.h: Rename include guard.
5696 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5699 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5700 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5702 2019-01-25 Tom Tromey <tom@tromey.com>
5704 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5706 2019-01-25 Tom Tromey <tom@tromey.com>
5708 * win32-low.c: Fix common/ includes.
5709 * win32-i386-low.c: Fix common/ includes.
5710 * tracepoint.c: Fix common/ includes.
5711 * thread-db.c: Fix common/ includes.
5712 * target.h: Fix common/ includes.
5713 * symbol.c: Fix common/ includes.
5714 * spu-low.c: Fix common/ includes.
5715 * server.h: Fix common/ includes.
5716 * server.c: Fix common/ includes.
5717 * remote-utils.c: Fix common/ includes.
5718 * regcache.h: Fix common/ includes.
5719 * regcache.c: Fix common/ includes.
5720 * nto-x86-low.c: Fix common/ includes.
5721 * notif.h: Fix common/ includes.
5722 * mem-break.h: Fix common/ includes.
5723 * lynx-low.c: Fix common/ includes.
5724 * lynx-i386-low.c: Fix common/ includes.
5725 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5726 * linux-x86-low.c: Fix common/ includes.
5727 * linux-low.c: Fix common/ includes.
5728 * inferiors.h: Fix common/ includes.
5729 * i387-fp.c: Fix common/ includes.
5730 * hostio.c: Fix common/ includes.
5731 * hostio-errno.c: Fix common/ includes.
5732 * gdbthread.h: Fix common/ includes.
5733 * gdbreplay.c: Fix common/ includes.
5734 * fork-child.c: Fix common/ includes.
5735 * event-loop.c: Fix common/ includes.
5736 * ax.c (enum gdb_agent_op): Fix common/ includes.
5738 2019-01-21 Tom Tromey <tom@tromey.com>
5740 * tracepoint.c: Fix includes.
5741 * remote-utils.c: Fix includes.
5742 * linux-x86-low.c: Fix includes.
5744 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5746 * gdbreplay.c (gdbreplay_version): Update copyright year in
5748 * server.c (gdbserver_version): Likewise.
5750 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5752 * linux-low.c (add_lwp): Switch ordering.
5754 2018-11-29 Tom Tromey <tom@tromey.com>
5756 * win32-low.c (win32_join): Take pid, not process.
5757 * target.h (struct target_ops) <join>: Change argument type.
5758 (join_inferior): Change argument name.
5759 * spu-low.c (spu_join): Take pid, not process.
5760 * server.c (handle_detach): Preserve pid before destroying
5762 * lynx-low.c (lynx_join): Take pid, not process.
5763 * linux-low.c (linux_join): Take pid, not process.
5765 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5767 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5768 (aarch64_cannot_fetch_register): Likewise.
5769 (struct linux_target_ops): Update references.
5771 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5773 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5775 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5777 * configure.srv (ipa_ppc_linux_regobj): Add
5778 powerpc-isa207-htm-vsx32l-ipa.o and
5779 powerpc-isa207-htm-vsx64l-ipa.o.
5780 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5781 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5782 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5783 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5784 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5785 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5786 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5787 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5788 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5789 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5790 (init_registers_powerpc_isa207_htm_vsx32l)
5791 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5792 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5793 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5794 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5795 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5796 (ppc_store_tm_ctarregset): New functions.
5797 (ppc_regsets): Add entries for HTM regsets.
5798 (ppc_arch_setup): Set htm in features struct when needed. Set
5799 sizes for the HTM regsets.
5800 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5801 (initialize_low_arch): Call
5802 init_registers_powerpc_isa207_htm_vsx32l and
5803 init_registers_powerpc_isa207_htm_vsx64l.
5804 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5805 PPC_TDESC_ISA207_HTM_VSX.
5806 (initialize_low_tracepoint): Call
5807 init_registers_powerpc_isa207_htm_vsx32l and
5808 init_registers_powerpc_isa207_htm_vsx64l.
5810 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5812 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5813 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5814 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5815 (ppc_store_pmuregset): New functions.
5816 (ppc_regsets): Add entries for ebb and pmu regsets.
5817 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5818 pmu regsets are available. Set sizes for these regsets.
5820 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5822 * configure.srv (ipa_ppc_linux_regobj): Add
5823 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5824 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5825 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5826 rs6000/powerpc-isa207-vsx32l.xml, and
5827 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5828 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5829 <PPC_TDESC_ISA207_VSX>: New enum value.
5830 (init_registers_powerpc_isa207_vsx32l): Declare.
5831 (init_registers_powerpc_isa207_vsx64l): Declare.
5832 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5833 (ppc_store_tarregset): New function.
5834 (ppc_regsets): Add entry for the TAR regset.
5835 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5836 size for the TAR regsets.
5837 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5838 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5839 and init_registers_powerpc_isa207_vsx64l.
5840 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5841 (initialize_low_tracepoint): Call
5842 init_registers_powerpc_isa207_vsx32l and
5843 init_registers_powerpc_isa207_vsx64l.
5845 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5846 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5848 * configure.srv (ipa_ppc_linux_regobj): Add
5849 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5850 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5851 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5852 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5853 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5854 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5855 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5856 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5857 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5858 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5859 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5860 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5861 (ppc_hwcap): Add comment.
5862 (ppc_hwcap2): New global.
5863 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5864 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5865 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5866 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5867 when needed. Set sizes for the the DSCR and PPR regsets.
5868 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5869 (initialize_low_arch): Call
5870 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5871 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5872 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5873 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5874 (initialize_low_tracepoint): Call
5875 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5876 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5878 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5880 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5882 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5883 Simon Marchi <simark@simark.ca>
5885 * acinclude.m4: Include "../selftest.m4".
5886 * configure: Regenerate.
5887 * configure.ac: Use "GDB_AC_SELFTEST".
5888 * configure.srv: Use "$enable_unittests" instead of
5889 "$development" when checking whether unit tests have been
5891 * server.c (captured_main): Update message informing that
5892 selftests have been disabled.
5894 2018-10-04 Tom Tromey <tom@tromey.com>
5896 * configure: Rebuild.
5898 2018-10-04 Tom Tromey <tom@tromey.com>
5900 * server.c (handle_status): Rename inner "thread".
5901 (process_serial_event): Declare "res" in 'm' case.
5902 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5903 (iterate_over_lwps): Rename inner "thread".
5904 (linux_qxfer_libraries_svr4): Rename inner "len".
5905 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5907 2018-10-01 Gary Benson <gbenson@redhat.com>
5909 * gdb_proc_service.h: Moved common code to
5910 common/gdb_proc_service.h.
5912 2018-10-01 Gary Benson <gbenson@redhat.com>
5914 * gdb_proc_service.h: Synchronize comments and whitespace with
5915 GDB's version of this file.
5917 2018-09-25 Tom Tromey <tom@tromey.com>
5919 * configure: Rebuild.
5920 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5922 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5924 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5925 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5926 ($(IPA_LIB)): Sort IPA_OBJS.
5928 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5930 * Makefile.in: Remove references to $(ADD_DEPS).
5932 2018-09-16 Tom Tromey <tom@tromey.com>
5934 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5936 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5939 2018-09-05 Tom Tromey <tom@tromey.com>
5941 * configure: Rebuild.
5943 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5946 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5948 2018-08-27 Tom Tromey <tom@tromey.com>
5951 * configure: Rebuild.
5953 2018-08-27 Tom Tromey <tom@tromey.com>
5955 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5956 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5957 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5958 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5959 (s390x_emit_stack_adjust): Add casts to unsigned char.
5961 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5965 * server.h (struct client_state) <disable_randomization>:
5968 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5970 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5972 (mips_supply_ptrace_register): Likewise.
5974 2018-07-22 Tom Tromey <tom@tromey.com>
5976 * configure: Rebuild.
5978 2018-07-22 Tom Tromey <tom@tromey.com>
5980 * win32-low.c (win32_create_inferior): Remove unused variables.
5981 * gdbreplay.c (remote_open): Remove unused variable.
5982 * remote-utils.c (remote_prepare): Remove unused variable.
5983 * x86-tdesc.h (X86_TDESC_H): Define.
5984 (amd64_expedite_regs): Define conditionally.
5985 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5986 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5987 * remote-utils.c (readchar): Remove unused variable.
5989 2018-07-13 Pedro Alves <palves@redhat.com>
5991 * linux-low.c (linux_kill): Change parameter to process_info
5992 pointer instead of pid. Adjust.
5993 * lynx-low.c (lynx_kill): Likewise.
5994 * nto-low.c (nto_kill): Likewise.
5995 * spu-low.c (spu_kill): Likewise.
5996 * win32-low.c (win32_kill): Likewise.
5997 * server.c (handle_v_kill, kill_inferior_callback)
5998 (detach_or_kill_for_exit): Adjust.
5999 * target.c (kill_inferior): Change parameter to process_info
6000 pointer instead of pid. Adjust.
6001 * target.h (struct target_ops) <kill>: Change parameter to
6002 process_info pointer instead of pid. Adjust all implementations
6004 (kill_inferior): Likewise.
6006 2018-07-13 Pedro Alves <palves@redhat.com>
6008 * linux-low.c (linux_detach, linux_join): Change parameter to
6009 process_info pointer instead of pid. Adjust.
6010 * lynx-low.c (lynx_detach, lynx_join): Likewise.
6011 * nto-low.c (nto_detach): Likewise.
6012 * spu-low.c (spu_detach, spu_join): Likewise.
6013 * win32-low.c (win32_detach, win32_join): Likewise.
6014 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
6015 * target.h (struct target_ops) <detach, join>: Change parameter to
6016 process_info pointer instead of pid. Adjust all implementations
6018 (detach_inferior, join_inferior): Rename 'pid' parameter to
6021 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6022 Jan Kratochvil <jan.kratochvil@redhat.com>
6023 Paul Fertser <fercerpav@gmail.com>
6024 Tsutomu Seki <sekiriki@gmail.com>
6026 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6027 (OBS): Add 'common/netstuff.o'.
6028 (GDBREPLAY_OBS): Likewise.
6029 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6030 (remote_open): Implement support for IPv6
6032 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6034 (handle_accept_event): Accept connections from IPv6 sources.
6035 (remote_prepare): Handle IPv6-style hostnames; implement
6036 support for IPv6 connections.
6037 (remote_open): Implement support for printing connections from
6040 2018-07-11 Pedro Alves <palves@redhat.com>
6043 * mem-break.c (any_persistent_commands): Add process_info
6044 parameter and use it instead of relying on the current process.
6045 Change return type to bool.
6046 * mem-break.h (any_persistent_commands): Add process_info
6047 parameter and change return type to bool.
6048 * server.c (handle_detach): Remove require_running_or_return call.
6049 Look up the process_info for the process we're about to detach.
6050 If not found, return back error to GDB. Adjust
6051 any_persistent_commands call to pass down a process pointer.
6053 2018-07-11 Pedro Alves <palves@redhat.com>
6055 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6056 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6057 instead of collect_register_by_name.
6058 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6059 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6061 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6062 Pedro Alves <palves@redhat.com>
6064 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6066 2018-07-03 Tom Tromey <tom@tromey.com>
6068 * linux-low.c: Update.
6069 * lynx-low.c: Update.
6070 * mem-break.c: Update.
6071 * nto-low.c: Update.
6072 * remote-utils.c: Update.
6074 * spu-low.c: Update.
6076 * win32-low.c: Update.
6078 2018-07-03 Tom Tromey <tom@tromey.com>
6082 2018-07-03 Tom Tromey <tom@tromey.com>
6084 * linux-low.c: Update.
6086 2018-07-03 Tom Tromey <tom@tromey.com>
6090 2018-07-03 Tom Tromey <tom@tromey.com>
6092 * linux-low.c: Update.
6093 * linux-mips-low.c: Update.
6094 * lynx-low.c: Update.
6095 * nto-low.c: Update.
6096 * remote-utils.c: Update.
6098 * spu-low.c: Update.
6100 * thread-db.c: Update.
6102 2018-07-03 Tom Tromey <tom@tromey.com>
6104 * linux-low.c: Update.
6105 * linux-mips-low.c: Update.
6106 * lynx-low.c: Update.
6107 * mem-break.c: Update.
6108 * nto-low.c: Update.
6109 * remote-utils.c: Update.
6111 * spu-low.c: Update.
6113 * tracepoint.c: Update.
6115 2018-07-03 Tom Tromey <tom@tromey.com>
6117 * linux-low.c: Update.
6118 * linux-ppc-low.c: Update.
6119 * linux-x86-low.c: Update.
6120 * proc-service.c: Update.
6122 * spu-low.c: Update.
6123 * thread-db.c: Update.
6124 * win32-low.c: Update.
6126 2018-07-03 Tom Tromey <tom@tromey.com>
6128 * linux-low.c: Update.
6129 * lynx-low.c: Update.
6130 * nto-low.c: Update.
6131 * remote-utils.c: Update.
6132 * spu-low.c: Update.
6133 * thread-db.c: Update.
6134 * win32-low.c: Update.
6136 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6138 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6139 parameter in call to 'amd64_create_target_description'.
6141 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6143 * x86-tdesc.h: Remove executable permission flag.
6145 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6147 * configure.ac: Remove AC_PREREQ, add missing quoting.
6148 * configure: Re-generate.
6149 * config.in: Re-generate.
6150 * aclocal.m4: Re-generate.
6152 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6154 * tracepoint.h (current_traceframe): Remove declaration.
6156 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6158 * linux-aarch64-low.c (is_sve_tdesc): New function.
6159 (aarch64_sve_regs_copy_to_regcache): Likewise.
6160 (aarch64_sve_regs_copy_from_regcache): Likewise.
6161 (aarch64_regs_info): Add SVE checks.
6162 (initialize_low_arch): Initialize SVE.
6164 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6166 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6168 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6170 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6171 (initialize_low_tracepoint): Likewise
6172 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6173 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6175 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6177 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6179 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6181 * server.h (PBUFSIZ): Increase size
6183 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6185 * regcache.c (regcache::raw_compare): New function.
6186 * regcache.h (regcache::raw_compare): New declaration.
6188 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6190 * regcache.c (new_register_cache): Use new.
6191 (free_register_cache): Use delete.
6192 (register_data): Use const.
6193 (supply_register): Move body inside regcache.
6194 (regcache::raw_supply): New override function.
6195 (collect_register): Move body inside regcache.
6196 (regcache::raw_collect): New override function.
6197 (regcache::get_register_status): New override function.
6198 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6200 2018-06-09 Tom Tromey <tom@tromey.com>
6202 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6204 (event_queue): Use std::queue.
6205 (gdb_event_xfree): Remove.
6206 (initialize_event_loop, process_event, wait_for_event): Update.
6208 2018-06-08 Stan Cox <scox@redhat.com>
6210 * win32-low.c (win32_create_inferior): last_ptid and last_status
6211 moved to client_state.
6213 2018-06-08 Pedro Alves <palves@redhat.com>
6215 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6216 common/common-exceptions.o, common/common-utils.o,
6217 common/errors.o, common/print-utils.o and utils.o.
6218 * gdbreplay.c: Include "common-defs.h" instead of the two
6219 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6220 string.h or alloca.h.
6221 (perror_with_name): Delete.
6222 (remote_open): Use xstrdup instead of strdup.
6223 (main): Rename to ...
6224 (captured_main): ... this.
6227 2018-06-08 Tom Tromey <tom@tromey.com>
6229 * linux-low.c (linux_low_read_btrace): Update.
6231 2018-06-04 Stan Cox <scox@redhat.com>
6233 * server.h (struct client_state): New.
6234 * server.c (cont_thread, general_thread, multi_process)
6235 (report_fork_events, report_vfork_events, report_exec_events)
6236 (report_thread_events, swbreak_feature, hwbreak_feature)
6237 (vCont_supported, disable_randomization, pass_signals)
6238 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6239 Moved to client_state.
6240 * remote-utils.c (remote_debug, noack_mode)
6241 (transport_is_reliable): Moved to client_state.
6242 * tracepoint.c (current_traceframe): Moved to client_state.
6245 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6246 linux-low.c, remote-utils.h, target.c: Use client_state.
6248 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6250 * configure.srv: Add new c/h file.
6252 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6254 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6257 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6259 * gdb.arch/mips-fpregset-core.exp: New test.
6260 * gdb.arch/mips-fpregset-core.c: New test source.
6262 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6265 * hostio.c (require_int): Do not report overflow for integers
6266 between 0xfffffff and 0x7fffffff.
6268 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6270 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6271 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6272 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6274 (the_low_target): Wire them.
6276 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6278 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6279 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6280 mode. Call collect_register_by_name with vscr using
6281 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6282 (ppc_store_vrregset): Add and set vscr_offset variable as in
6283 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6286 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6288 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6289 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6290 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6292 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6294 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6295 (ppc_store_vsxregset): Likewise.
6296 (ppc_fill_vrregset): Likewise.
6297 (ppc_store_vrregset): Likewise.
6298 (ppc_fill_evrregset): Likewise.
6299 (ppc_store_evrregset): Likewise.
6300 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6301 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6304 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6306 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6307 wordsize of the inferior. Call ppc_linux_target_wordsize.
6309 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6311 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6312 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6313 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6314 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6315 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6316 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6317 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6318 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6319 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6320 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6321 (tdesc_powerpc_e500l): Remove.
6322 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6323 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6324 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6325 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6327 (ppc_arch_setup): Remove target description matching code. Fill a
6328 ppc_linux_features struct and call ppc_linux_match_description
6331 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6333 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6334 width of the requested register exceeds the width of the
6336 (mips_cannot_store_register): Likewise.
6338 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6340 * linux-mips-low.c (mips_fetch_register): New function. Update
6342 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6343 (the_low_target): Wire `mips_fetch_register'.
6345 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6347 * lynx-i386-low.c (LYNXOS_178): New macro.
6348 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6349 the layout on LynxOS-178.
6350 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6351 handle floating point registers that are not supported by
6354 2018-05-10 Tom Tromey <tom@tromey.com>
6356 * configure: Rebuild.
6358 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6361 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6362 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6363 Use it to set the expedite_regs field in the given tdesc.
6364 * x86-tdesc.h: New file.
6365 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6366 Adjust following the addition of the new expedite_regs parameter
6367 to init_target_desc.
6368 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6369 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6370 (i386_linux_read_description, amd64_linux_read_description):
6371 Adjust following the addition of the new expedite_regs parameter
6372 to init_target_desc.
6373 * lynx-i386-low.c: #include "x86-tdesc.h".
6374 (lynx_i386_arch_setup): Adjust following the addition of the new
6375 expedite_regs parameter to init_target_desc.
6376 * nto-x86-low.c: #include "x86-tdesc.h".
6377 (nto_x86_arch_setup): Adjust following the addition of the new
6378 expedite_regs parameter to init_target_desc.
6379 * win32-i386-low.c: #include "x86-tdesc.h".
6380 (i386_arch_setup): Adjust following the addition of the new
6381 expedite_regs parameter to init_target_desc.
6383 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6386 * win32-low.c (win32_create_inferior): Add call to my_wait
6387 setting last_status global.
6389 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6392 * win32-low.c (create_process): Only call gdb_tilde_expand if
6393 inferior_cwd is not NULL.
6395 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6397 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6398 registers to the cache if their values have changed.
6399 (i387_xsave_to_cache): Provide default values for x87 control
6400 registers when these features are available, but disabled.
6401 * regcache.c (supply_register_by_name_zeroed): New function.
6402 * regcache.h (supply_register_by_name_zeroed): Declare new
6405 2018-05-07 Tom Tromey <tom@tromey.com>
6407 * configure: Rebuild.
6409 2018-05-04 Tom Tromey <tom@tromey.com>
6411 * configure: Rebuild.
6413 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6414 Pedro Alves <palves@redhat.com>
6416 * linux-aarch64-low.c (aarch64_stopped_data_address):
6419 2018-04-27 Tom Tromey <tom@tromey.com>
6421 * configure: Rebuild.
6423 2018-04-23 Tom Tromey <tom@tromey.com>
6425 * configure: Rebuild.
6427 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6429 * Makefile.in (depcomp): Add "..".
6430 (all_deps_files): New and use it.
6432 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6434 * configure.srv (aarch64*-*-linux*): Don't include xml.
6435 (i[34567]86-*-cygwin*): Likewise.
6436 (i[34567]86-*-linux*): Likewise.
6437 (i[34567]86-*-lynxos*): Likewise.
6438 (i[34567]86-*-mingw32ce*): Likewise.
6439 (i[34567]86-*-mingw*): Likewise.
6440 (i[34567]86-*-nto*): Likewise.
6441 (tic6x-*-uclinux): Likewise.
6442 (x86_64-*-linux*): Likewise.
6443 (x86_64-*-mingw*): Likewise.
6444 (x86_64-*-cygwin*): Likewise.
6446 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6448 * tdesc.c: Remove xml parameter.
6450 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6452 * server.c (get_features_xml): Remove cast.
6453 * tdesc.c (void target_desc::accept): Fill in function.
6454 (tdesc_get_features_xml): Remove old xml creation.
6455 (print_xml_feature::visit_pre): Add xml vistor.
6456 * tdesc.h (struct target_desc): Make xmltarget mutable.
6457 (tdesc_get_features_xml): Remove declaration.
6459 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6461 * tdesc.c (tdesc_architecture_name): Add new function.
6462 (tdesc_osabi_name): Likewise.
6463 (tdesc_get_features_xml): Use new functions.
6465 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6467 * tdesc.c (tdesc_create_flags): Remove.
6468 (tdesc_add_flag): Likewise.
6469 (tdesc_named_type): Likewise.
6470 (tdesc_create_union): Likewise.
6471 (tdesc_create_struct): Likewise.
6472 (tdesc_create_vector): Likewise.
6473 (tdesc_add_bitfield): Likewise.
6474 (tdesc_add_field): Likewise.
6475 (tdesc_set_struct_size): Likewise.
6477 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6479 * tdesc.c (~target_desc): Remove implictly deleted items.
6480 (init_target_desc): Iterate all features.
6481 (tdesc_get_features_xml): Use vector.
6482 (tdesc_create_feature): Create feature.
6483 * tdesc.h (tdesc_feature) Remove
6484 (target_desc): Add features.
6486 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6488 * Makefile.in: Add common/tdesc.c
6489 * tdesc.c (init_target_desc): init all reg_defs from register
6491 (tdesc_create_reg): Create tdesc_reg.
6492 * tdesc.h (tdesc_feature): Add register vector.
6494 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6496 * tdesc.h (struct target_desc) <features>: Change type to
6497 std::vector<std::string>.
6498 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6500 (tdesc_get_features_xml): Likewise.
6501 (tdesc_create_feature): Likewise.
6503 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6505 * regcache.c (find_register_by_number): Return a ref.
6506 (find_regno): Use references.
6507 (register_size): Likewise.
6508 (register_data): Likewise.
6509 * tdesc.c (target_desc::~target_desc): Remove free calls.
6510 (target_desc::operator==): Use std::vector compare.
6511 (init_target_desc): Use reference.
6512 (tdesc_create_reg): Use reg constructors.
6513 * tdesc.h (struct target_desc): Replace pointer with object.
6515 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6517 * regcache.c (find_register_by_number): Make static.
6518 (find_regno): Use find_register_by_number
6519 * regcache.h (struct reg): Remove declaration.
6521 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6523 * tdesc.c (target_desc::~target_desc): Move to here.
6524 (target_desc::operator==): Likewise.
6525 * tdesc.h (target_desc::~target_desc): Move from here.
6526 (target_desc::operator==): Likewise.
6528 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6530 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6532 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6534 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6536 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6537 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6538 and init_registers_s390_gs_linux64.
6540 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6542 * linux-s390-low.c (s390_fill_gs): Remove function.
6543 (s390_fill_gsbc): Remove function.
6544 (s390_regsets): Set fill functions for the guarded storage regsets
6547 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6549 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6550 the word size. Add comment.
6551 (s390_get_wordsize): New function.
6552 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6553 pswm with it. Instead, use s390_get_wordsize to determine the
6554 word size first and derive the correct tdesc from that directly.
6556 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6558 * Makefile.in: Include silent-rules.mk.
6559 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6560 (COMPILE): Add ECHO_CXX.
6561 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6562 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6563 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6564 (version-generated.c): Add ECHO_GEN.
6565 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6566 (IPAGENT_COMPILE): Add ECHO_CXX.
6567 (%-generated.c): Add ECHO_REGDAT.
6569 2018-03-14 Tom Tromey <tom@tromey.com>
6572 * ax.c (ax_printf): Special case for NULL.
6574 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6576 * linux-low.c (linux_qxfer_libraries_svr4): Use
6577 xml_escape_text_append.
6579 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6581 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6583 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6585 * server.c (handle_general_set): Remove unnecessary xstrdup.
6587 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6589 * server.c (parse_debug_format_options): Adjust to
6590 delim_string_to_char_ptr_vec changes.
6591 * thread-db.c (thread_db_load_search): Adjust to
6592 dirnames_to_char_ptr_vec changes.
6594 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6596 * target.h (target_enable_btrace, target_disable_btrace)
6597 (target_read_btrace, target_read_btrace_conf): Turn macro into
6598 inline function. Throw error if target method is not defined.
6599 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6600 check for btrace target method. Be prepared to handle exceptions
6601 from btrace target methods.
6603 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6605 * server.c (captured_main): Change order of error message printed
6606 when the current working directory cannot be found.
6608 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6610 * server.c: Include "filenames.h" and "pathstuff.h".
6611 (program_name): Delete variable.
6612 (program_path): New anonymous class.
6613 (get_exec_wrapper): Use "program_path" instead of
6615 (handle_v_run): Likewise.
6616 (captured_main): Likewise.
6617 (process_serial_event): Likewise.
6619 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6621 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6622 (OBJS): Add "pathstuff.o".
6623 * server.c (current_directory): New global variable.
6624 (captured_main): Initialize "current_directory".
6626 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6628 * tdesc.c: Use common/tdesc.h.
6629 * tdesc.h: Likewise.
6631 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6632 Simon Marchi <simon.marchi@ericsson.com>
6634 * Makefile.in: Switch order of make rules.
6636 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6638 * Makefile.in: Add common directory in build.
6639 * configure.ac: Add common reference.
6640 * configure: Regenerate.
6642 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6644 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6645 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6646 * spu-low.c (spu_target_ops): Likewise.
6647 * win32-low.c (win32_target_ops): Likewise.
6648 * server.c (supported_btrace_packets): Report packets unconditionally.
6649 * target.h (target_ops) <supports_btrace>: Remove.
6650 (target_supports_btrace): Remove.
6652 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6654 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6655 (handle_btrace_disable): Change return type to void. Use exceptions
6657 (handle_btrace_general_set): Catch exception and copy message to
6660 2018-02-08 Tom Tromey <tom@tromey.com>
6662 * linux-low.c (install_software_single_step_breakpoints): Use
6663 make_scoped_restore.
6664 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6665 (do_restore_current_thread_cleanup): Remove.
6666 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6669 2018-02-08 Tom Tromey <tom@tromey.com>
6671 * mem-break.c (set_raw_breakpoint_at): Use
6672 gdb::unique_xmalloc_ptr.
6674 2018-01-30 Pedro Alves <palves@redhat.com>
6677 * target.c (target_terminal::terminal_state): Rename to ...
6678 (target_terminal::m_terminal_state): ... this.
6680 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6682 * linux-low.c (handle_extended_wait): Surround call to
6683 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6685 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6687 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6688 linux_ptrace_attach_fail_reason_string now returning an
6690 (linux_attach): Likewise.
6691 * thread-db.c (attach_thread): Likewise.
6693 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6696 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6697 checking for fs_base/gs_base fields in struct user_regs_struct.
6698 * configure: Regenerate.
6700 2018-01-16 Yao Qi <yao.qi@linaro.org>
6703 * linux-low.c (fetch_register): Call supply_register instead of
6706 2018-01-08 Yao Qi <yao.qi@linaro.org>
6707 Simon Marchi <simon.marchi@ericsson.com>
6709 * Makefile.in (OBS): Remove selftest.o.
6710 * configure.ac: Set srv_selftest_objs if $development is true.
6711 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6712 * configure: Re-generated.
6713 * server.c (captured_main): Wrap variable selftest_filter with
6716 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6718 * server.c (parse_debug_format_options): Return std::string.
6719 (handle_monitor_command, captured_main): Adjust.
6721 2018-01-05 Pedro Alves <palves@redhat.com>
6724 * server.c (captured_main): Pass quiet=false to
6725 save_original_signals_state.
6727 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6729 * gdbreplay.c (gdbreplay_version): Update copyright year in
6731 * server.c (gdbserver_version): Likewise.
6733 2017-12-08 Tom Tromey <tom@tromey.com>
6735 * ax.c (ax_printf): Update.
6737 2017-12-07 Yao Qi <yao.qi@linaro.org>
6739 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6740 aarch64_linux_read_description.
6741 * linux-amd64-ipa.c (idx2mask): New array.
6742 (get_ipa_tdesc): Move idx2mask out.
6743 (initialize_low_tracepoint): Initialize target descriptions.
6744 * linux-i386-ipa.c (idx2mask): New array.
6745 (get_ipa_tdesc): Move idx2mask out.
6746 (initialize_low_tracepoint): Initialize target descriptions.
6748 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6750 * tdesc.c (struct tdesc_type): Change return type.
6751 (tdesc_add_flag): Change parameter type.
6752 (tdesc_add_bitfield): Likewise.
6753 (tdesc_add_field): Likewise.
6754 (tdesc_set_struct_size): Likewise.
6756 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6758 * regcache.c (registers_to_string): Remove unused variable.
6760 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6762 * inferiors.c (for_each_inferior_with_data): Remove.
6763 * inferiors.h (for_each_inferior_with_data): Remove.
6764 * server.c (handle_qxfer_threads_worker): Change parameter type.
6765 (handle_qxfer_threads_proper): Use for_each_thread.
6767 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6769 * inferiors.c (for_each_inferior): Remove.
6770 (clear_inferiors): Use for_each_thread.
6771 * inferiors.h (for_each_inferior): Remove.
6772 * linux-low.c (linux_wait_for_event_filtered): Use
6774 (linux_stabilize_threads): Likewise.
6775 * regcache.c (regcache_release): Likewise.
6776 * server.c (gdb_wants_all_threads_stopped): Likewise.
6777 (clear_pending_status_callback): Remove.
6778 (handle_status): Use for_each_thread.
6779 (captured_main): Likewise.
6780 * win32-low.c (child_init_thread_list): Likewise.
6781 (win32_clear_inferiors): Likewise.
6782 (fake_breakpoint_event): Likewise.
6784 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6786 * inferiors.h (find_inferior): Remove.
6787 * inferiors.c (find_inferior): Remove.
6789 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6791 * linux-low.c (resume_status_pending_p): Update comment.
6792 (need_step_over_p): Update comment.
6794 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6796 * linux-low.c (proceed_one_lwp): Return void, change parameter
6798 (unsuspend_and_proceed_one_lwp): Likewise.
6799 (proceed_all_lwps): Use for_each_thread.
6800 (unstop_all_lwps): Likewise.
6802 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6804 * linux-low.c (linux_resume_one_thread): Return void, take
6806 (linux_resume): Use for_each_thread.
6808 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6810 * linux-low.c (send_sigstop_callback): Return void, change
6811 parameter type. Rename to...
6812 (send_sigstop): ... this.
6813 (suspend_and_send_sigstop_callback): Return void, change parameter
6815 (suspend_and_send_sigstop): ... this.
6816 (stop_all_lwps): Use for_each_thread.
6818 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6820 * linux-low.c (lwp_running): Return bool, remove unused
6822 (linux_stabilize_threads): Use find_thread.
6824 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6826 * linux-low.c (select_singlestep_lwp_callback): Remove.
6827 (count_events_callback): Remove.
6828 (select_event_lwp_callback): Remove.
6829 (select_event_lwp): Use find_thread/for_each_thread.
6831 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6833 * linux-low.c (not_stopped_callback): Return bool, take filter
6835 (linux_wait_for_event_filtered): Use find_thread.
6836 (linux_wait_1): Likewise.
6838 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6840 * linux-low.c (same_lwp): Remove.
6841 (find_lwp_pid): Use find_thread.
6843 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6845 * linux-low.c (delete_lwp_callback): Remove.
6846 (linux_mourn): Use for_each_thread.
6848 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6850 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6851 args parameter, don't check for pid.
6852 (linux_detach): Use for_each_thread.
6854 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6856 * linux-low.c (struct counter): Remove.
6857 (second_thread_of_pid_p): Remove.
6858 (last_thread_of_process_p): Use find_thread.
6860 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6862 * inferiors.c (find_inferior_in_random): Remove.
6863 * inferiors.h (find_inferior_in_random): Remove.
6864 * linux-low.c (status_pending_p_callback): Return bool, accept
6865 parameter ptid directly.
6866 (linux_wait_for_event_filtered): Use find_thread_in_random.
6867 (linux_wait_1): Likewise.
6869 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6871 * inferiors.c (find_inferior_id): Remove.
6872 (find_thread_ptid): Move implemention from find_inferior_id to
6874 * inferiors.h (find_inferior_id): Remove.
6875 * server.c (handle_status): Use find_thread_ptid.
6876 (process_serial_event): Likewise.
6877 * thread-db.c (find_one_thread): Likewise.
6878 (thread_db_thread_handle): Likewise.
6879 * win32-low.c (thread_rec): Likewise.
6880 (child_delete_thread): Likewise.
6881 (win32_thread_alive): Likewise.
6882 (get_child_debug_event): Likewise.
6884 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6886 * linux-mips-low.c (update_watch_registers_callback): Return
6887 void, remove pid_p parameter, don't check for pid.
6888 (mips_insert_point, mips_remove_point): Use for_each_thread.
6890 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6892 * lynx.low (lynx_delete_thread_callback): Remove.
6893 (lynx_mourn): Use for_each_thread.
6895 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6897 * regcache.c (regcache_invalidate_one): Remove.
6898 (regcache_invalidate_pid): use for_each_thread.
6900 2017-11-26 Tom Tromey <tom@tromey.com>
6902 * linux-low.c (linux_create_inferior): Update.
6904 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6906 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6908 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6910 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6911 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6912 * linux-aarch64-tdesc-selftest.c: New file.
6913 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6915 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6917 * configure.srv: Add new file.
6918 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6919 * linux-aarch64-tdesc-selftest.c: New file.
6920 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6922 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6924 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6925 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6926 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6928 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6930 * configure.srv: Add new files.
6931 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6932 aarch64_linux_read_description.
6933 * linux-aarch64-low.c (aarch64_linux_read_description):
6934 Merge with aarch64_arch_setup.
6935 (aarch64_arch_setup): Call aarch64_linux_read_description.
6936 * linux-aarch64-tdesc.c: New file.
6937 * linux-aarch64-tdesc.h: New file.
6939 2017-11-24 Yao Qi <yao.qi@linaro.org>
6941 * configure.srv: Set $srv_regobj for tic6x-linux.
6942 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6943 (tic6x_read_description): Move some code to tic6x_arch_setup.
6944 (tic6x_tdesc_test): New function.
6945 (initialize_low_arch): Call selftests::register_test.
6947 2017-11-22 Yao Qi <yao.qi@linaro.org>
6949 * remote-utils.c (prepare_resume_reply): Use memcpy.
6951 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6953 * linux-low.c (kill_one_lwp_callback): Return void, take
6954 argument directly, don't filter on pid.
6955 (linux_kill): Use for_each_thread.
6957 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6959 * linux-low.c (need_step_over_p): Return bool, remove dummy
6961 (linux_resume, proceed_all_lwps): Use find_thread.
6963 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6965 * linux-low.c (resume_status_pending_p): Return bool, remove
6967 (linux_resume): Use find_thread.
6969 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6971 * linux-low.c (struct thread_resume_array): Remove.
6972 (linux_set_resume_request): Return void, take arguments
6974 (linux_resume): Use for_each_thread.
6976 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6978 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6979 return bool, remove data argument.
6980 (linux_stabilize_threads): Use find_thread.
6982 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6984 * linux-low.c (unsuspend_one_lwp): Remove.
6985 (unsuspend_all_lwps): Use for_each_thread, inline code from
6988 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6990 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6991 * linux-low.c (struct iterate_over_lwps_args): Remove.
6992 (iterate_over_lwps_filter): Remove.
6993 (iterate_over_lwps): Use find_thread.
6995 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6997 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6998 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6999 code from reset_lwp_ptrace_options_callback.
7001 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7003 * linux-arm-low.c (struct update_registers_data): Remove.
7004 (update_registers_callback): Return void, take arguments
7005 directly, don't check thread's pid.
7006 (arm_insert_point, arm_remove_point): Use for_each_thread.
7008 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7010 * win32-low.c (continue_one_thread): Return void, take argument
7012 (child_continue): Use for_each_thread.
7014 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7016 * win32-i386-low.c (update_debug_registers_callback): Rename
7018 (update_debug_registers): ... this, return void, remove pid_p arg.
7019 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
7021 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7023 * inferiors.h (struct process_info): Add constructor, initialize
7025 <syscalls_to_catch>: Change type to std::vector<int>.
7026 * inferiors.c (add_process): Allocate process_info with new.
7027 (remove_process): Free process_info with delete.
7028 * linux-low.c (handle_extended_wait): Adjust.
7029 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7030 * server.c (handle_general_set): Adjust.
7032 2017-11-16 Pedro Alves <palves@redhat.com>
7034 * remote-utils.c (remote_close): Block SIGIO signals instead of
7035 uninstalling the SIGIO handler.
7037 2017-11-16 Alan Hayward <alan.hayward@arm.com>
7039 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7041 2017-11-16 Yao Qi <yao.qi@linaro.org>
7043 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7044 (tic6x_store_gregset): Likewise.
7045 (tic6x_usrregs_info): Move it up.
7047 2017-11-15 Alan Hayward <alan.hayward@arm.com>
7049 * Makefile.in: Update arch rules.
7050 * configure.srv: Explicitly mark arch/ files.
7052 2017-11-13 Andreas Schwab <schwab@suse.de>
7054 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7056 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7058 2017-11-06 Pedro Alves <palves@redhat.com>
7060 * config.in, configure: Regenerate.
7062 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7064 * target.c (struct thread_search): Remove.
7065 (thread_search_callback): Remove.
7066 (prepare_to_access_memory): Use for_each_thread instead of
7067 find_inferior. Inline code from thread_search_callback.
7069 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7071 * server.c (struct visit_actioned_threads_data): Remove.
7072 (visit_actioned_threads): Change prototype to take arguments
7074 (resume): Use find_thread instead of find_inferior.
7076 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7078 * server.c (queue_stop_reply_callback): Change prototype, return
7080 (find_status_pending_thread_callback): Remove.
7081 (handle_status): Replace find_inferior with find_thread and
7084 2017-10-25 Alan Hayward <alan.hayward@arm.com>
7086 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7088 (aarch64_store_gregset): Likewise.
7089 (aarch64_fill_fpregset): Likewise.
7090 (aarch64_store_fpregset): Likewise.
7092 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7094 * gdbthread.h (find_thread, for_each_thread): New functions.
7095 * inferiors.c (thread_of_pid): Remove.
7096 (find_any_thread_of_pid): Use find_thread.
7097 * linux-low.c (num_lwps): Use for_each_thread.
7099 2017-10-17 Yao Qi <yao.qi@linaro.org>
7101 * Makefile.in: Remove one rule.
7102 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7104 2017-10-17 Yao Qi <yao.qi@linaro.org>
7106 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7107 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7109 2017-10-17 Yao Qi <yao.qi@linaro.org>
7111 * configure.srv: Rename arm.o with arch/arm.o.
7113 2017-10-17 Yao Qi <yao.qi@linaro.org>
7115 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7116 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7117 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7118 (arch-i386.o, arch-amd64.o): Remove rules.
7119 (arch/%.o): New rule.
7120 Update POSTCOMPILE and COMPILE.pre.
7121 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7122 * configure: Re-generated.
7123 * configure.srv: Replace arch-i386.o with arch/i386.o.
7124 Replace arch-amd64.o with arch/amd64.o.
7126 2017-10-16 Yao Qi <yao.qi@linaro.org>
7128 * configure: Regenerated.
7130 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7132 * inferiors.h: (struct inferior_list): Remove.
7133 (struct inferior_list_entry); Remove.
7134 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7135 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7136 get_first_inferior): Remove.
7137 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7138 find_inferior_id, find_inferior_in_random): Change signature.
7139 * inferiors.c (all_threads): Change type to
7140 std::list<thread_info *>.
7141 (get_thread): Remove macro.
7142 (find_inferior, find_inferior_id): Change signature, implement
7144 (find_inferior_in_random): Change signature, implement using
7145 find_thread_in_random.
7146 (for_each_inferior, for_each_inferior_with_data): Change
7147 signature, implement using for_each_thread.
7148 (add_inferior_to_list, remove_inferior): Remove.
7149 (add_thread, get_first_thread, thread_of_pid,
7150 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7151 (get_first_inferior, one_inferior_p, clear_inferior_list):
7153 (clear_inferiors, get_thread_process): Update.
7154 * gdbthread.h: Include <list>.
7155 (struct thread_info) <entry>: Remove field.
7157 (all_threads): Change type to std::list<thread_info *>.
7158 (get_first_inferior): Add doc.
7159 (find_thread, for_each_thread, find_thread_in_random): New
7161 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7162 * linux-arm-low.c (update_registers_callback): Update.
7163 * linux-low.c (second_thread_of_pid_p): Update.
7164 (kill_one_lwp_callback, linux_detach_lwp_callback,
7165 delete_lwp_callback, status_pending_p_callback, same_lwp,
7166 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7167 iterate_over_lwps, not_stopped_callback,
7168 resume_stopped_resumed_lwps, count_events_callback,
7169 select_singlestep_lwp_callback, select_event_lwp_callback,
7170 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7171 suspend_and_send_sigstop_callback, wait_for_sigstop,
7172 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7173 lwp_running, linux_set_resume_request, resume_status_pending_p,
7174 need_step_over_p, start_step_over, linux_resume_one_thread,
7175 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7176 reset_lwp_ptrace_options_callback): Update.
7177 * linux-mips-low.c (update_watch_registers_callback): Update.
7178 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7180 (free_register_cache_thread_one): Remove.
7181 (regcache_release): Update.
7182 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7183 handle_qxfer_threads_worker): Update.
7184 (handle_query): Update, use list iterator.
7185 (visit_actioned_threads, handle_pending_status,
7186 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7187 clear_pending_status_callback, set_pending_status_callback,
7188 find_status_pending_thread_callback, handle_status,
7189 process_serial_event): Update.
7190 * target.c (thread_search_callback): Update.
7191 * thread-db.c (thread_db_get_tls_address): Update.
7192 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7194 * win32-i386-low.c (update_debug_registers_callback): Update.
7195 * win32-low.c (delete_thread_info, child_delete_thread,
7196 continue_one_thread, suspend_one_thread,
7197 get_child_debug_event): Adjust.
7199 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7201 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7202 * inferiors.h: Include <list>.
7203 (struct process_info) <entry>: Remove field.
7205 (pid_of): Change macro to function.
7206 (ptid_of, lwpid_of): Remove macro.
7207 (all_processes): Change type to std::list<process_info *>.
7208 (ALL_PROCESSES): Remove macro.
7209 (for_each_process, find_process): New function.
7210 * inferiors.c (all_processes): Change type to
7211 std::list<process_info *>.
7212 (find_thread_process): Adjust.
7213 (add_process): Likewise.
7214 (remove_process): Likewise.
7215 (find_process_pid): Likewise.
7216 (get_first_process): Likewise.
7217 (started_inferior_callback): Remove.
7218 (have_started_inferiors_p): Adjust.
7219 (attached_inferior_callback): Remove.
7220 (have_attached_inferiors_p): Adjust.
7221 * linux-low.c (check_zombie_leaders): Likewise.
7222 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7223 (x86_linux_update_xmltarget): Adjust.
7224 * server.c (handle_query): Likewise.
7225 (gdb_reattached_process): Remove.
7226 (handle_status): Adjust.
7227 (kill_inferior_callback): Likewise.
7228 (detach_or_kill_inferior): Remove.
7229 (print_started_pid): Likewise.
7230 (print_attached_pid): Likewise.
7231 (detach_or_kill_for_exit): Update.
7232 (process_serial_event): Likewise.
7233 * linux-arm-low.c (arm_new_fork): Likewise.
7235 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7237 * dll.h: Include <list>.
7238 (struct dll_info): Add constructor.
7239 <entry>: Remove field.
7240 (all_dlls): Change type to std::list<dll_info>.
7241 * dll.c: Include <algorithm>.
7242 (get_dll): Remove macro.
7243 (all_dlls): Change type to std::list<dll_info *>.
7244 (free_one_dll): Remove.
7245 (match_dll): Likewise.
7246 (loaded_dll): Adjust.
7247 (unloaded_dll): Adjust to all_dlls type change, use
7248 std::find_if. Inline code from match_dll.
7249 (clear_dlls): Adjust to all_dlls type change.
7250 * server.c (emit_dll_description): Remove.
7251 (handle_qxfer_libraries): Adjust to all_dlls type change,
7252 integrate emit_dll_description's functionality.
7254 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7256 * linux-low.h (struct linux_target_ops) <delete_process>: New
7258 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7259 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7260 (struct linux_target_ops): Add delete_process callback.
7261 * linux-arm-low.c (arm_delete_process): New.
7262 (struct linux_target_ops): Add delete_process callback.
7263 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7264 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7265 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7266 * linux-mips-low.c (mips_linux_delete_process): New.
7267 (struct linux_target_ops): Add delete_process callback.
7268 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7269 * linux-s390-low.c (struct linux_target_ops): Likewise.
7270 * linux-sh-low.c (struct linux_target_ops): Likewise.
7271 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7272 * linux-tile-low.c (struct linux_target_ops): Likewise.
7273 * linux-x86-low.c (x86_linux_delete_process): New.
7274 (struct linux_target_ops): Add delete_process callback.
7275 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7277 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7279 * linux-aarch64-low.c (the_low_target): Add thread delete
7281 * linux-arm-low.c (arm_delete_thread): New function.
7282 (the_low_target): Add thread delete callback.
7283 * linux-bfin-low.c (the_low_target): Likewise.
7284 * linux-crisv32-low.c (the_low_target): Likewise.
7285 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7287 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7289 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7290 * linux-mips-low.c (mips_linux_delete_thread): New function.
7291 (the_low_target): Add thread delete callback.
7292 * linux-ppc-low.c (the_low_target): Likewise.
7293 * linux-s390-low.c (the_low_target): Likewise.
7294 * linux-sh-low.c (the_low_target): Likewise.
7295 * linux-tic6x-low.c (the_low_target): Likewise.
7296 * linux-tile-low.c (the_low_target): Likewise.
7297 * linux-x86-low.c (the_low_target): Likewise.
7298 * linux-xtensa-low.c (the_low_target): Likewise.
7300 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7302 * win32-low.c: Include "common-inferior.h".
7304 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7306 * inferiors.c (set_inferior_cwd): New function.
7307 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7308 (handle_query): Inform that QSetWorkingDir is supported.
7309 * win32-low.c (create_process): Pass the inferior's cwd to
7312 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7314 * inferiors.c (current_inferior_cwd): New global variable.
7315 (get_inferior_cwd): New function.
7316 * inferiors.h (struct process_info) <cwd>: New field.
7318 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7320 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7321 (OBS): Add gdb_tilde_expand.o.
7323 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7325 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7326 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7328 2017-09-29 Pedro Alves <palves@redhat.com>
7330 * ax.c (gdb_parse_agent_expr): Constify.
7331 * ax.h (gdb_parse_agent_expr): Constify.
7332 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7334 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7335 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7336 * remote-utils.h (read_ptid): Constify.
7337 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7338 (process_point_options, process_serial_event): Constify.
7339 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7340 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7341 (cmd_qtbuffer): Constify.
7343 2017-09-29 Pedro Alves <palves@redhat.com>
7345 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7348 2017-09-29 Pedro Alves <palves@redhat.com>
7350 * linux-low.c (handle_extended_wait): Pass parent thread instead
7351 of process to thread_db_notice_clone.
7352 * linux-low.h (thread_db_notice_clone): Replace parent process
7353 parameter with parent thread parameter.
7354 * thread-db.c (find_one_thread): Add comment.
7355 (thread_db_notice_clone): Replace parent process parameter with
7356 parent thread parameter. Temporarily switch to the parent thread.
7358 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7360 * gdbthread.h: Include "common-gdbthread.h".
7361 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7362 "if" when validating the ptid.
7363 * remote-utils.c: Include "gdbthread.h".
7364 (prepare_resume_reply): Use "switch_to_thread".
7365 * target.c (done_accessing_memory): Likewise.
7367 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7369 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7370 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7371 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7372 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7373 s390x-gs-linux64-ipa.o to ipa_obj.
7374 * linux-s390-low.c (HWCAP_S390_GS): New define.
7375 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7377 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7378 (s390_arch_setup): Check for guarded-storage support and choose
7380 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7381 init_registers_s390x_gs_linux64.
7382 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7384 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7385 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7387 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7389 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7391 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7393 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7394 (thread_db_thread_handle): Declare.
7395 * linux-low.c (linux_target_ops): Initialize thread_handle.
7396 * server.c (handle_qxfer_threads_worker): Add support for
7398 * target.h (struct target_ops): Add new function pointer,
7400 (target_thread_handle): Define.
7401 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7403 (thread_db_thread_handle): New function.
7405 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7407 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7408 * linux-low.h (thread_db_notice_clone): Declare.
7409 * thread-db.c (thread_db_notice_clone): New function.
7411 2017-09-21 Pedro Alves <palves@redhat.com>
7413 * server.c (gdb_read_memory, handle_status, process_serial_event)
7414 (handle_serial_event, handle_target_event): Adjust to
7415 set_desired_thread prototype change.
7416 * target.c (set_desired_thread): Remove 'use_general' parameter
7418 * target.h (set_desired_thread): Remove 'use_general' parameter.
7420 2017-09-20 Tom Tromey <tom@tromey.com>
7422 * target.c (target_terminal::terminal_state): Define.
7423 (target_terminal::init): Rename from target_terminal_init.
7424 (target_terminal::inferior): Rename from
7425 target_terminal_inferior.
7426 (target_terminal::ours): Rename from target_terminal_ours.
7427 (target_terminal::ours_for_output, target_terminal::info): New.
7429 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7431 * server.c (accumulate_file_name_length): Remove.
7432 (emit_dll_description): Adjust to std::string change.
7433 (handle_qxfer_libraries): Use std::string to hold document.
7435 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7437 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7438 return type of xml_escape_text.
7439 * server.c (emit_dll_description): Likewise.
7441 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7443 * server.c (captured_main): Accept argument for --selftest.
7444 Update run_tests call.
7445 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7446 when registering selftests.
7448 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7450 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7451 instead of "VEC" for "target_desc.reg_defs".
7452 (regcache_cpy): Likewise.
7453 (registers_to_string): Likewise.
7454 (registers_from_string): Likewise.
7455 (find_regno): Likewise.
7456 (supply_regblock): Likewise.
7457 (regcache_raw_read_unsigned): Likewise.
7458 * tdesc.c (init_target_desc): Likewise.
7459 (tdesc_create_reg): Likewise.
7460 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7461 (struct target_desc) <reg_defs>: Convert to "std::vector".
7462 (target_desc): Do not initialize "reg_defs".
7463 (~target_desc): Update code to use "std::vector" instead of "VEC"
7464 for "target_desc.reg_defs".
7465 (operator==): Likewise.
7467 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7469 * inferiors.h (thread_to_gdb_id): Remove.
7470 * inferiors.c (thread_to_gdb_id): Remove.
7471 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7472 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7473 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7475 * nto-low.c (nto_fetch_registers, nto_store_registers,
7476 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7478 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7480 * inferiors.h (gdb_id_to_thread_id): Remove.
7481 * inferiors.c (gdb_id_to_thread_id): Remove.
7482 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7483 removal. Move pid declaration closer to where it's used.
7485 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7487 * server.c (handle_detach): New function.
7488 (process_serial_event): Move code out, call handle_detach.
7490 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7492 * server.c (require_running): Rename to ...
7493 (require_running_or_return): ... this ...
7494 (require_running_or_break): ... and this.
7495 (handle_query, process_serial_event): Adjust.
7497 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7499 * linux-low.c (linux_set_resume_request): Remove unused
7502 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7504 * server.c (first_thread_of): Remove.
7505 (process_serial_event): Replace usage of first_thread_of with
7506 find_any_thread_of_pid.
7507 * tracepoint.c (same_process_p): Remove.
7508 (gdb_agent_about_to_close): Replace usage of same_process_p with
7509 find_any_thread_of_pid.
7510 * linux-x86-low.c (same_process_callback): Remove.
7511 (x86_arch_setup_process_callback): Replace usage of
7512 same_process_callback with find_any_thread_of_pid.
7513 * thread-db.c (any_thread_of): Remove.
7514 (switch_to_process): Replace usage of any_thread_of with
7515 find_any_thread_of_pid.
7516 * inferiors.c (thread_pid_matches_callback): Remove.
7517 (find_thread_process): Adjust to use find_any_thread_of_pid.
7519 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7521 * regcache.c (get_thread_regcache): Guard calls to "memset"
7524 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7526 * linux-low.c (handle_extended_wait): Use
7527 "allocate_target_description" instead of "XNEW".
7528 * linux-x86-low.c (initialize_low_arch): Likewise.
7530 2017-09-05 Yao Qi <yao.qi@linaro.org>
7532 * configure.srv (srv_i386_regobj): Remove.
7533 (srv_amd64_regobj): Remove.
7534 (srv_regobj): Set it to "" for x86 non-linux targets.
7535 * linux-x86-tdesc.c (i386_linux_read_description):
7536 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7537 (init_registers_i386): Remove the declaration.
7538 (tdesc_i386): Remove the declaration.
7539 (lynx_i386_arch_setup): Call i386_create_target_description.
7540 * nto-x86-low.c: Likewise.
7541 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7542 [!__x86_64__]: include arch/i386.h.
7543 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7545 2017-09-05 Yao Qi <yao.qi@linaro.org>
7547 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7548 i386/amd64-XXX-linux from it.
7550 2017-09-05 Yao Qi <yao.qi@linaro.org>
7552 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7554 (ipa_amd64_linux_regobj): Remove.
7555 (ipa_x32_linux_regobj): Remove.
7557 2017-09-05 Yao Qi <yao.qi@linaro.org>
7559 * Makefile.in (arch-amd64.o): New rule.
7560 * configure.srv: Append arch-amd64.o.
7561 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7562 (get_ipa_tdesc): Call amd64_linux_read_description.
7563 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7564 and init_registers_amd64_XXX.
7565 * linux-x86-low.c (x86_linux_read_description): Call
7566 amd64_linux_read_description.
7567 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7568 (initialize_low_arch): Don't call init_registers_x32_XXX and
7569 init_registers_amd64_XXX.
7570 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7571 and tdesc_amd64_XXX.
7572 [__x86_64__] (amd64_tdesc_test): New function.
7573 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7574 and init_registers_amd64_XXX.
7575 * linux-x86-tdesc.c: Include arch/amd64.h.
7576 (xcr0_to_tdesc_idx): New function.
7577 (i386_linux_read_description): New function.
7578 (amd64_get_ipa_tdesc_idx): New function.
7579 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7580 (amd64_get_ipa_tdesc): Declare.
7582 2017-09-05 Yao Qi <yao.qi@linaro.org>
7584 * configure.srv (srv_i386_linux_xmlfiles): Remove
7585 i386/i386-XXX-linux.xml from it.
7587 2017-09-05 Yao Qi <yao.qi@linaro.org>
7589 * configure.srv: Set srv_i386_linux_regobj empty if $development
7591 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7592 initialize_low_tdesc.
7593 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7594 with #if initialize_low_tdesc.
7595 * linux-x86-tdesc-selftest.c: New file.
7596 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7598 2017-09-05 Yao Qi <yao.qi@linaro.org>
7600 * Makefile.in (arch-i386.o): New rule.
7601 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7602 (x86_64-*-linux*): Likewise.
7603 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7604 include arch/i386.h.
7605 (i386_linux_read_description): Remove code and call
7606 i386_create_target_description.
7607 * tdesc.c (allocate_target_description): New function.
7608 * tdesc.h (set_tdesc_architecture): Remove declaration.
7609 (set_tdesc_osabi): Likewise.
7611 2017-09-05 Yao Qi <yao.qi@linaro.org>
7613 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7614 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7615 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7617 * server.c (get_features_xml): Call tdesc_get_features_xml.
7618 * tdesc.c (set_tdesc_architecture): New function.
7619 (set_tdesc_osabi): New function.
7620 (tdesc_get_features_xml): New function.
7621 (tdesc_create_feature): Add an argument.
7622 * tdesc.h (struct target_desc) <features>: New field.
7623 <arch, osabi>: New field.
7624 (~target_desc): xfree features, arch, and osabi.
7625 (target_desc::oerator==): Don't compare .xmltarget.
7626 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7627 (set_tdesc_osabi): Likewise.
7628 (tdesc_get_features_xml): Likewise.
7630 2017-09-05 Yao Qi <yao.qi@linaro.org>
7632 * linux-x86-tdesc.c: Include selftest.h.
7633 (i386_tdesc_test): New function.
7634 (initialize_low_tdesc): Call selftests::register_test.
7635 * tdesc.h: Include regdef.h.
7636 (target_desc): Override operator == and !=.
7638 2017-09-05 Yao Qi <yao.qi@linaro.org>
7640 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7641 (ipa_obj): Likewise.
7642 * linux-i386-ipa.c: Include common/x86-xstate.h
7643 (get_ipa_tdesc): Call i386_linux_read_description.
7644 (initialize_low_tracepoint): Don't call init_registers_XXX
7645 functions, call initialize_low_tdesc instead.
7646 * linux-x86-low.c (x86_linux_read_description): Call
7647 i386_linux_read_description.
7648 (initialize_low_arch): Don't call init_registers_i386_XXX
7649 functions, call initialize_low_tdesc.
7650 * linux-x86-tdesc.c: New file.
7651 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7652 (i386_get_ipa_tdesc_idx): Declare.
7653 (i386_get_ipa_tdesc): Declare.
7654 (initialize_low_tdesc): Declare.
7656 2017-09-05 Yao Qi <yao.qi@linaro.org>
7658 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7661 2017-09-05 Yao Qi <yao.qi@linaro.org>
7663 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7664 * regcache.c (get_thread_regcache): Use VEC_length.
7665 (init_register_cache): Likewise.
7666 (regcache_cpy): Likewise.
7667 (registers_to_string): Iterate reg_defs via VEC_iterate.
7668 (find_regno): Likewise.
7669 (find_register_by_number): Use VEC_index.
7670 (register_size): Call find_register_by_number.
7671 (register_data): Call find_register_by_number.
7672 (supply_regblock): Use VEC_length.
7673 (regcache_raw_read_unsigned): Likewise.
7674 * tdesc.c (init_target_desc): Iterate reg_defs via
7676 (default_description): Update initializer.
7677 (copy_target_description): Don't update field num_registers.
7678 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7679 <num_registers>: Remove.
7681 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7683 * Makefile.in (.SECONDARY): Define target.
7685 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7687 * linux-low.c (linux_wait_1): Adjust.
7688 * server.c (queue_stop_reply_callback): Adjust.
7690 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7692 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7693 QEnvironmentUnset and QEnvironmentReset packets.
7694 (handle_query): Inform remote that QEnvironmentHexEncoded,
7695 QEnvironmentUnset and QEnvironmentReset are supported.
7697 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7699 * inferiors.h (inferior_target_data): Rename to ...
7700 (thread_target_data): ... this.
7701 (inferior_regcache_data): Rename to ...
7702 (thread_regcache_data): ... this.
7703 (set_inferior_regcache_data): Rename to ...
7704 (set_thread_regcache_data): ... this.
7705 * inferiors.c (inferior_target_data): Rename to ...
7706 (thread_target_data): ... this.
7707 (inferior_regcache_data): Rename to ...
7708 (thread_regcache_data): ... this.
7709 (set_inferior_regcache_data): Rename to ...
7710 (set_thread_regcache_data): ... this.
7711 (free_one_thread): Update.
7712 * linux-low.h (get_thread_lwp): Update.
7713 * regcache.c (get_thread_regcache): Update.
7714 (regcache_invalidate_thread): Update.
7715 (free_register_cache_thread): Update.
7716 * win32-i386-low.c (update_debug_registers_callback): Update.
7717 (win32_get_current_dr): Update.
7718 * win32-low.c (thread_rec): Update.
7719 (delete_thread_info): Update.
7720 (continue_one_thread): Update.
7721 (suspend_one_thread): Update.
7723 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7725 * inferiors.c (set_inferior_target_data): Remove.
7726 * inferiors.h (set_inferior_target_data): Remove.
7728 2017-08-18 Yao Qi <yao.qi@linaro.org>
7730 * Makefile.in (OBS): Add selftest.o.
7731 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7732 * configure, config.in: Re-generated.
7733 * server.c: Include common/sefltest.h.
7734 (captured_main): Handle option --selftest.
7736 2017-08-09 Yao Qi <yao.qi@linaro.org>
7738 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7739 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7740 i386-avx-mpx.o and i386-mmx.o.
7741 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7742 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7743 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7744 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7745 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7746 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7747 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7748 i386/amd64-avx-mpx.xml.
7750 2017-08-09 Yao Qi <yao.qi@linaro.org>
7752 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7753 and x32-avx-avx512.o.
7754 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7755 i386/x32-avx-avx512.xml.
7757 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7759 * tracepoint.h (enum class fast_tpoint_collect_result): New
7761 (fast_tracepoint_collecting): Change return type to
7762 fast_tpoint_collect_result.
7763 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7764 * linux-low.h: Include tracepoint.h.
7765 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7766 fast_tpoint_collect_result.
7767 * linux-low.c (handle_tracepoints): Adjust.
7768 (linux_fast_tracepoint_collecting): Change return type to
7769 fast_tpoint_collect_result.
7770 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7771 linux_wait_1, stuck_in_jump_pad_callback,
7772 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7773 proceed_one_lwp): Adjust to type change.
7775 2017-07-10 Yao Qi <yao.qi@linaro.org>
7777 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7779 2017-06-29 Yao Qi <yao.qi@linaro.org>
7781 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7783 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7785 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7787 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7789 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7791 * linux-low.c (linux_create_inferior): Adjust code to access the
7792 environment information via 'gdb_environ' class.
7793 * lynx-low.c (lynx_create_inferior): Likewise.
7794 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7795 (get_environ): Return a pointer to 'our_environ'.
7796 (captured_main): Initialize 'our_environ'.
7797 * server.h (get_environ): Adjust prototype.
7798 * spu-low.c (spu_create_inferior): Adjust code to access the
7799 environment information via 'gdb_environ' class.
7801 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7803 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7804 usage of "register" keyword.
7806 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7808 * configure: Re-generate.
7810 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7812 * configure: Re-generate.
7814 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7816 * Makefile.in (COMPILE.pre): Add "-x c++".
7818 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7820 * fork-child.c: Conditionally include <signal.h>.
7822 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7824 * server.c (handle_general_set): Handle new packet
7825 "QStartupWithShell".
7826 (handle_query): Add "QStartupWithShell" to the list of supported
7828 (gdbserver_usage): Add help text explaining the
7829 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7831 (captured_main): Recognize and act upon the presence of the new
7834 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7835 Pedro Alves <palves@redhat.com>
7837 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7838 * configure: Regenerate.
7839 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7841 (i[34567]86-*-lynxos*): Likewise.
7842 (spu*-*-*): Likewise.
7843 * fork-child.c: New file.
7844 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7846 (linux_ptrace_fun): New function.
7847 (linux_create_inferior): Adjust function prototype to reflect
7848 change on "target.h". Adjust function code to use
7850 (linux_request_interrupt): Delete "signal_pid".
7851 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7852 (lynx_ptrace_fun): New function.
7853 (lynx_create_inferior): Adjust function prototype to reflect
7854 change on "target.h". Adjust function code to use
7856 * nto-low.c (nto_create_inferior): Adjust function prototype and
7857 code to reflect change on "target.h". Update comments.
7858 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7859 "common-terminal.h" and "environ.h".
7860 (terminal_fd): Moved to fork-child.c.
7861 (old_foreground_pgrp): Likewise.
7862 (restore_old_foreground_pgrp): Likewise.
7863 (last_status): Make it global.
7864 (last_ptid): Likewise.
7865 (our_environ): New variable.
7866 (startup_with_shell): Likewise.
7867 (program_name): Likewise.
7868 (program_argv): Rename to...
7869 (program_args): ...this.
7870 (wrapper_argv): New variable.
7871 (start_inferior): Delete function.
7872 (get_exec_wrapper): New function.
7873 (get_exec_file): Likewise.
7874 (get_environ): Likewise.
7875 (prefork_hook): Likewise.
7876 (post_fork_inferior): Likewise.
7877 (postfork_hook): Likewise.
7878 (postfork_child_hook): Likewise.
7879 (handle_v_run): Update code to deal with arguments coming from the
7880 remote host. Update calls from "start_inferior" to
7882 (captured_main): Likewise. Initialize environment variable. Call
7884 * server.h (post_fork_inferior): New prototype.
7885 (get_environ): Likewise.
7886 (last_status): Declare.
7887 (last_ptid): Likewise.
7888 (signal_pid): Likewise.
7889 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7890 (spu_ptrace_fun): New function.
7891 (spu_create_inferior): Adjust function prototype to reflect change
7892 on "target.h". Adjust function code to use "fork_inferior".
7893 * target.c (target_terminal_init): New function.
7894 (target_terminal_inferior): Likewise.
7895 (target_terminal_ours): Likewise.
7896 * target.h: Include <vector>.
7897 (struct target_ops) <create_inferior>: Update prototype.
7898 (create_inferior): Update macro.
7899 * utils.c (gdb_flush_out_err): New function.
7900 * win32-low.c (win32_create_inferior): Adjust function prototype
7901 and code to reflect change on "target.h".
7903 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7905 * inferiors.c (switch_to_thread): New function.
7907 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7909 * Makefile.in (SFILE): Add "common/job-control.c".
7910 (OBS): Add "job-control.o".
7912 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7914 * Makefile: Remove "@host_makefile_frag@".
7916 2017-05-05 Pedro Alves <palves@redhat.com>
7918 * configure: Regenerate.
7920 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7922 * configure: Regenerate.
7924 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7926 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7927 software_single_step change of return type to
7928 std::vector<CORE_ADDR>.
7929 * linux-low.c (install_software_single_step_breakpoints):
7931 * linux-low.h (install_software_single_step_breakpoints):
7934 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7936 * remote-utils.c: Include "gdb_termios.h" instead of
7938 * terminal.h: Delete file.
7940 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7942 * server.c: Include <vector>.
7943 <program_argv, wrapper_argv>: Convert to std::vector.
7944 (start_inferior): Rewrite function to use C++.
7945 (handle_v_run): Likewise. Update code that calculates the argv
7946 based on the vRun packet; use C++.
7947 (captured_main): Likewise.
7949 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7951 * server.c (handle_v_cont): Initialize thread_resume::thread
7954 2017-04-05 Pedro Alves <palves@redhat.com>
7956 * configure: Regenerate.
7958 2017-04-05 Pedro Alves <palves@redhat.com>
7960 * gdbreplay.c (sync_error): Constify.
7961 * linux-x86-low.c (push_opcode): Constify.
7963 2017-04-05 Pedro Alves <palves@redhat.com>
7965 * win32-low.c (get_child_debug_event)
7966 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7967 Report TARGET_WAITKIND_SPURIOUS instead.
7969 2017-04-05 Pedro Alves <palves@redhat.com>
7971 * remote-utils.c (remote_prepare, remote_open): Constify.
7972 * remote-utils.h (remote_prepare, remote_open): Constify.
7973 * server.c (captured_main): Constify 'port' handling.
7975 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7977 * Makefile.in (clean): Clear .deps.
7979 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7981 * .gitignore: Remove generated files, replace with wildcard.
7982 * (clean): Replace removal of generated files with wildcard.
7983 (version.c): Replace with...
7984 (version-generated.c): ...this.
7985 (xml-builtin.c): Replace with...
7986 (xml-builtin-generated.c): ...this.
7987 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7988 (%.c: *regformats*): Replace with...
7989 (%-generated.c: *regformats*): ...this.
7991 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7993 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7994 (xtensa_fill_gregset): Call collect_register_by_name for
7996 (xtensa_store_gregset): Call supply_register_by_name for
7999 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8001 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
8002 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
8003 (xtensa_store_gregset): Call supply_register for all registers in
8004 a0_regnum..a0_regnum + C0_NREGS range.
8006 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8008 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
8009 (ax-ipa.o: ax.c): Remove.
8010 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
8011 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
8012 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
8013 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
8014 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
8016 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8018 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
8019 (print-utils-ipa.o: ../common/print-utils.c): Remove.
8020 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
8021 (errors-ipa.o: ../common/errors.c): Remove.
8022 (format-ipa.o: ../common/format.c): Remove.
8023 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8025 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8027 * Makefile.in (%-ipa.o: %.c): New rule.
8028 (tracepoint-ipa.o: tracepoint.c): Remove.
8029 (utils-ipa.o: utils.c): Remove.
8030 (remote-utils-ipa.o: remote-utils.c): Remove.
8031 (regcache-ipa.o: regcache.c): Remove.
8032 (i386-linux-ipa.o: i386-linux.c): Remove.
8033 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8034 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8035 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8036 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8037 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8038 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8039 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8040 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8041 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8042 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8043 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8044 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8045 (aarch64-ipa.o: aarch64.c): Remove.
8046 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8047 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8048 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8049 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8050 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8051 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8052 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8053 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8054 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8055 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8056 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8057 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8058 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8059 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8060 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8061 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8062 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8063 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8064 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8065 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8066 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8067 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8068 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8069 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8070 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8071 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8072 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8073 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8074 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8075 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8076 (tdesc-ipa.o: tdesc.c): Remove.
8077 (x32-linux-ipa.o: x32-linux.c): Remove.
8078 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8079 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8081 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8083 * Makefile.in (%.o: ../arch/%.c): New rule.
8084 (arm.o: ../arch/arm.c): Remove.
8085 (arm-linux.o: ../arch/arm-linux.c): Remove.
8086 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8087 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8089 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8091 * Makefile.in (%.o: ../nat/%.c): New rule.
8092 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8093 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8094 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8095 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8096 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8097 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8098 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8099 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8100 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8101 (linux-personality.o: ../nat/linux-personality.c): Remove.
8102 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8103 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8104 (x86-linux.o: ../nat/x86-linux.c): Remove.
8105 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8106 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8108 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8110 * Makefile.in (%.o: ../common/%.c): New rule.
8111 (signals.o: ../common/signals.c): Remove.
8112 (print-utils.o: ../common/print-utils.c): Remove.
8113 (rsp-low.o: ../common/rsp-low.c): Remove.
8114 (common-utils.o: ../common/common-utils.c): Remove.
8115 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8116 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8117 (vec.o: ../common/vec.c): Remove.
8118 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8119 (xml-utils.o: ../common/xml-utils.c): Remove.
8120 (ptid.o: ../common/ptid.c): Remove.
8121 (buffer.o: ../common/buffer.c): Remove.
8122 (format.o: ../common/format.c): Remove.
8123 (filestuff.o: ../common/filestuff.c): Remove.
8124 (agent.o: ../common/agent.c): Remove.
8125 (errors.o: ../common/errors.c): Remove.
8126 (environ.o: ../common/environ.c): Remove.
8127 (common-debug.o: ../common/common-debug.c): Remove.
8128 (cleanups.o: ../common/cleanups.c): Remove.
8129 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8130 (fileio.o: ../common/fileio.c): Remove.
8131 (common-regcache.o: ../common/common-regcache.c): Remove.
8132 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8133 (new-op.o: ../common/new-op.c): Remove.
8134 (btrace-common.o: ../common/btrace-common.c): Remove.
8136 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8138 * Makefile.in (%.o: ../target/%.c): New rule.
8139 (waitstatus.o: ../target/waitstatus.c): Remove.
8141 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8144 (%.c: ../regformats/%.dat,
8145 (%.c: ../regformats/arm/%.dat,
8146 (%.c: ../regformats/i386/%.dat,
8147 (%.c: ../regformats/rs6000/%.dat): New rules.
8148 (aarch64.c): Remove.
8149 (reg-arm.c): Remove.
8150 (arm-with-iwmmxt.c): Remove.
8151 (arm-with-vfpv2.c): Remove.
8152 (arm-with-vfpv3.c): Remove.
8153 (arm-with-neon.c): Remove.
8154 (reg-bfin.c): Remove.
8155 (reg-cris.c): Remove.
8156 (reg-crisv32.c): Remove.
8158 (i386-linux.c): Remove.
8159 (i386-avx.c): Remove.
8160 (i386-avx-linux.c): Remove.
8161 (i386-avx-avx512.c): Remove.
8162 (i386-avx-avx512-linux.c): Remove.
8163 (i386-mpx.c): Remove.
8164 (i386-mpx-linux.c): Remove.
8165 (i386-avx-mpx-avx512-pku.c): Remove.
8166 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8167 (i386-avx-mpx.c): Remove.
8168 (i386-avx-mpx-linux.c): Remove.
8169 (i386-mmx.c): Remove.
8170 (i386-mmx-linux.c): Remove.
8171 (reg-ia64.c): Remove.
8172 (reg-m32r.c): Remove.
8173 (reg-m68k.c): Remove.
8175 (mips-linux.c): Remove.
8176 (mips-dsp-linux.c): Remove.
8177 (mips64-linux.c): Remove.
8178 (mips64-dsp-linux.c): Remove.
8179 (nios2-linux.c): Remove.
8180 (powerpc-32.c): Remove.
8181 (powerpc-32l.c): Remove.
8182 (powerpc-altivec32l.c): Remove.
8183 (powerpc-cell32l.c): Remove.
8184 (powerpc-vsx32l.c): Remove.
8185 (powerpc-isa205-32l.c): Remove.
8186 (powerpc-isa205-altivec32l.c): Remove.
8187 (powerpc-isa205-vsx32l.c): Remove.
8188 (powerpc-e500l.c): Remove.
8189 (powerpc-64l.c): Remove.
8190 (powerpc-altivec64l.c): Remove.
8191 (powerpc-cell64l.c): Remove.
8192 (powerpc-vsx64l.c): Remove.
8193 (powerpc-isa205-64l.c): Remove.
8194 (powerpc-isa205-altivec64l.c): Remove.
8195 (powerpc-isa205-vsx64l.c): Remove.
8196 (s390-linux32.c): Remove.
8197 (s390-linux32v1.c): Remove.
8198 (s390-linux32v2.c): Remove.
8199 (s390-linux64.c): Remove.
8200 (s390-linux64v1.c): Remove.
8201 (s390-linux64v2.c): Remove.
8202 (s390-te-linux64.c): Remove.
8203 (s390-vx-linux64.c): Remove.
8204 (s390-tevx-linux64.c): Remove.
8205 (s390x-linux64.c): Remove.
8206 (s390x-linux64v1.c): Remove.
8207 (s390x-linux64v2.c): Remove.
8208 (s390x-te-linux64.c): Remove.
8209 (s390x-vx-linux64.c): Remove.
8210 (s390x-tevx-linux64.c): Remove.
8211 (tic6x-c64xp-linux.c): Remove.
8212 (tic6x-c64x-linux.c): Remove.
8213 (tic6x-c62x-linux.c): Remove.
8215 (reg-sparc64.c): Remove.
8216 (reg-spu.c): Remove.
8218 (amd64-linux.c): Remove.
8219 (amd64-avx.c): Remove.
8220 (amd64-avx-linux.c): Remove.
8221 (amd64-avx-avx512.c): Remove.
8222 (amd64-avx-avx512-linux.c): Remove.
8223 (amd64-mpx.c): Remove.
8224 (amd64-mpx-linux.c): Remove.
8225 (amd64-avx-mpx-avx512-pku.c): Remove.
8226 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8227 (amd64-avx-mpx.c): Remove.
8228 (amd64-avx-mpx-linux.c): Remove.
8230 (x32-linux.c): Remove.
8231 (x32-avx.c): Remove.
8232 (x32-avx-linux.c): Remove.
8233 (x32-avx-avx512.c): Remove.
8234 (x32-avx-avx512-linux.c): Remove.
8235 (reg-xtensa.c): Remove.
8236 (reg-tilegx.c): Remove.
8237 (reg-tilegx32.c): Remove.
8239 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8241 * Makefile.in (SFILES): Add "common/environ.c".
8242 (OBJS): Add "common/environ.h".
8244 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8246 * configure.ac: Check if the fs_base and gs_base members of
8247 `struct user_regs_struct' exist.
8248 * config.in: Regenerated.
8249 * configure: Likewise.
8251 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8253 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8255 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8256 (get_next_pcs_syscall_next_pc): Likewise.
8258 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8260 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8261 * nto-x86-low.c: Likewise.
8263 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8265 * Makefile.in: Include disable-implicit-rules.mk.
8267 2016-11-23 Pedro Alves <palves@redhat.com>
8269 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8270 (debug_vprintf): Use std::chrono::steady_clock instead of
8271 gettimeofday. Use '.' instead of ':'.
8272 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8273 (get_timestamp): Use std::chrono::steady_clock instead of
8276 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8278 * Makefile.in: Fix whitespace formatting.
8280 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8282 * Makefile.in (SFILES, OBS): Flatten list and order
8285 2016-11-23 Pedro Alves <palves@redhat.com>
8287 * event-loop.c (handle_file_event): Use warning.
8288 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8289 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8292 2016-11-23 Pedro Alves <palves@redhat.com>
8294 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8296 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8297 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8298 debug_printf and debug_flush for debug output.
8299 * server.c (handle_general_set): Likewise.
8300 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8303 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8305 * Makefile.in (.c.o): Replace rule with ...
8306 (%.o: %.c): ... this one.
8308 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8310 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8311 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8313 * configure.ac: Remove checks for the make program.
8314 * configure: Re-generate.
8316 2016-10-28 Pedro Alves <palves@redhat.com>
8318 * Makefile.in (CXX_DIALECT): Get from configure.
8319 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8320 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8321 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8322 * config.in: Regenerate.
8323 * configure: Regenerate.
8325 2016-10-27 Yao Qi <yao.qi@linaro.org>
8327 * linux-low.c (linux_supports_range_stepping): Return true if
8328 can_software_single_step return true.
8330 2016-10-27 Yao Qi <yao.qi@linaro.org>
8332 * inferiors.c (find_inferior_in_random): New function.
8333 * inferiors.h (find_inferior_in_random): Declare.
8334 * linux-low.c (linux_wait_for_event_filtered): Call
8335 find_inferior_in_random instead of find_inferior.
8337 2016-10-27 Yao Qi <yao.qi@linaro.org>
8339 * linux-low.c (linux_wait_1): If single-step breakpoints are
8340 inserted, remove them.
8342 2016-10-26 Pedro Alves <palves@redhat.com>
8344 * linux-low.c (handle_extended_wait): Link parent/child fork
8346 (linux_wait_1): Unlink them.
8347 (linux_set_resume_request): Ignore resume requests for
8348 already-resumed and unhandled fork child threads.
8349 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8350 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8352 (handle_v_requests) <vCont>: Don't call require_running.
8353 * server.h (in_queued_stop_replies): New declaration.
8355 2016-10-24 Yao Qi <yao.qi@linaro.org>
8358 * linux-aarch64-low.c (append_insns): Cast the return value to
8361 2016-10-10 Yao Qi <yao.qi@linaro.org>
8363 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8365 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8367 * target.c (target_supports_multi_process): New function, moved
8369 * target.h (target_supports_multi_process): ... here. Remove
8372 2016-10-05 Tom Tromey <tom@tromey.com>
8375 * tracepoint.c (handle_tracepoint_bkpts): Check
8376 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8378 2016-10-05 Yao Qi <yao.qi@linaro.org>
8380 * configure.srv: Update the path of arm-*.xml files.
8382 2016-10-05 Terry Guo <terry.guo@arm.com>
8383 Yao Qi <yao.qi@linaro.org>
8385 * Makefile.in: Adjust the path of rules.
8386 * configure.srv: Update the path of xml files.
8387 * regformats/arm-with-iwmmxt.dat: Regenerated.
8388 * regformats/arm-with-neon.dat: Likewise.
8389 * regformats/arm-with-vfpv2.dat: Likewise.
8390 * regformats/arm-with-vfpv3.dat Likewise.
8392 2016-09-30 Yao Qi <yao.qi@linaro.org>
8395 * target.c (target_stop_and_wait): Don't call
8396 target_continue_no_signal, use resume_stop instead.
8398 2016-09-26 Yao Qi <yao.qi@linaro.org>
8400 * linux-low.c (linux_wait_1): Call debug_exit.
8402 2016-09-23 Pedro Alves <palves@redhat.com>
8404 * Makefile.in (SFILES): Add common/new-op.c.
8405 (OBS): Add common/new-op.o.
8406 (new-op.o): New rule.
8408 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8410 * .gitinore: Ignore more files.
8412 2016-09-21 Yao Qi <yao.qi@linaro.org>
8414 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8417 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8419 * server.c (start_inferior): Call target_mourn_inferior instead of
8420 mourn_inferior; pass ptid_t argument to it.
8422 (handle_target_event): Likewise.
8423 * target.c (target_mourn_inferior): New function.
8424 * target.h (mourn_inferior): Delete macro.
8426 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8428 * linux-low.c (lwp_is_stepping): New function.
8430 2016-09-06 Carl Love <cel@us.ibm.com>
8432 * server.c (start_inferior): Fixed comment, requested comment change
8433 didn't get updated correctly. Removed reference to ptrace () call as
8434 it is only true on Linux systems.
8436 2016-09-06 Carl Love <cel@us.ibm.com>
8438 * server.c (start_inferior): Do not call
8439 function target_post_create_inferior () if the
8440 inferior process has already exited.
8442 2016-09-05 Pedro Alves <palves@redhat.com>
8444 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8445 (COMPILE.pre, CC_LD): Use CXX directly.
8446 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8447 * acinclude.m4: Don't include build-with-cxx.m4.
8448 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8449 * configure: Regenerate.
8451 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8454 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8455 call writing data to own_buf.
8457 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8459 * target.c (mywait): Call target_wait instead of
8461 (target_wait): New function.
8463 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8465 * server.c (start_inferior): New variable 'ptid'. Replace calls
8466 to the_target->resume by target_continue{,_no_signal}, depending
8468 * target.c (target_stop_and_wait): Call target_continue_no_signal
8469 instead of the_target->resume.
8470 (target_continue): New function.
8472 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8474 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8476 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8479 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8481 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8482 * linux-arm-low.c (ps_get_thread_area): Likewise.
8483 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8484 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8485 * linux-mips-low.c (ps_get_thread_area): Likewise.
8486 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8487 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8488 * linux-x86-low.c (ps_get_thread_area): Likewise.
8489 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8491 2016-08-19 Pedro Alves <palves@redhat.com>
8493 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8495 2016-08-19 Pedro Alves <palves@redhat.com>
8497 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8498 comment. Use memcpy instead of casting through unsigned long.
8500 2016-08-19 Pedro Alves <palves@redhat.com>
8502 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8503 allocating around 0x80000000.
8505 2016-08-19 Pedro Alves <palves@redhat.com>
8508 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8509 (x32-avx512-linux-ipa.o): New rules.
8510 * configure.ac (x86_64-*-linux*): New x32 check.
8511 * configure.srv (ipa_x32_linux_regobj): New.
8512 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8513 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8515 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8517 * configure: Regenerate.
8519 2016-08-09 Pedro Alves <palves@redhat.com>
8522 * Makefile.in (OBS): Add signals-state-save-restore.o.
8523 (signals-state-save-restore.o): New rule.
8524 * config.in: Regenerate.
8525 * configure: Regenerate.
8526 * linux-low.c: Include "signals-state-save-restore.h".
8527 (linux_create_inferior): Call
8528 restore_original_signals_state.
8529 * server.c: Include "dispositions-save-restore.h".
8530 (captured_main): Call save_original_signals_state.
8532 2016-08-05 Pedro Alves <palves@redhat.com>
8534 * configure: Regenerate.
8536 2016-08-04 Yao Qi <yao.qi@linaro.org>
8538 * linux-low.c (regsets_fetch_inferior_registers): Check
8539 errno is ESRCH or not.
8541 2016-08-02 Yao Qi <yao.qi@linaro.org>
8543 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8544 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8545 (thread_db_load_search): Update.
8546 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8547 td_ta_set_event and td_ta_event_getmsg.
8549 2016-07-26 Pedro Alves <palves@redhat.com>
8552 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8553 of unsigned long for 64-bit registers and use uint32_t instead of
8554 unsigned int for 32-bit registers.
8556 2016-07-26 Pedro Alves <palves@redhat.com>
8558 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8561 2016-07-21 Tom Tromey <tom@tromey.com>
8563 * configure: Rebuild.
8565 2016-07-21 Yao Qi <yao.qi@linaro.org>
8567 * mem-break.c (find_gdb_breakpoint): Cast bp to
8568 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8570 2016-07-21 Yao Qi <yao.qi@linaro.org>
8572 * server.c (handle_v_requests): Support s and S actions
8573 if target_supports_software_single_step return true.
8575 2016-07-21 Yao Qi <yao.qi@linaro.org>
8577 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8578 is resume_step, call maybe_hw_step.
8579 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8581 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8583 (proceed_one_lwp): If resume request is resume_step, install
8584 reinsert breakpoints and call maybe_hw_step.
8586 2016-07-21 Yao Qi <yao.qi@linaro.org>
8588 * linux-low.c (proceed_one_lwp): Declare.
8589 (linux_resume_one_thread): Remove local variable 'step'.
8590 Lift code enqueue signal. Call proceed_one_lwp instead of
8591 linux_resume_one_lwp.
8593 2016-07-21 Yao Qi <yao.qi@linaro.org>
8595 * linux-low.c (linux_resume_one_thread): Call
8596 enqueue_pending_signal.
8598 2016-07-21 Yao Qi <yao.qi@linaro.org>
8600 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8601 * inferiors.c (do_restore_current_thread_cleanup): New function.
8602 (make_cleanup_restore_current_thread): Likewise.
8603 * linux-low.c (install_software_single_step_breakpoints): Call
8604 make_cleanup_restore_current_thread. Switch current_thread to
8607 2016-07-21 Yao Qi <yao.qi@linaro.org>
8609 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8610 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8611 (clone_one_breakpoint): Likewise.
8612 (delete_reinsert_breakpoints): Change parameter to thread.
8614 (has_reinsert_breakpoints): Likewise.
8615 (uninsert_reinsert_breakpoints): Likewise.
8616 (reinsert_reinsert_breakpoints): Likewise.
8617 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8618 (delete_reinsert_breakpoints): Likewise.
8619 (reinsert_reinsert_breakpoints): Likewise.
8620 (uninsert_reinsert_breakpoints): Likewise.
8621 (has_reinsert_breakpoints): Likewise.
8623 2016-07-21 Yao Qi <yao.qi@linaro.org>
8625 * inferiors.c (get_thread_process): Make parameter const.
8626 * inferiors.h (get_thread_process): Update declaration.
8627 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8628 Add new parameters child_thread and parent_thread. Callers
8630 * mem-break.h (clone_all_breakpoints): Update declaration.
8632 2016-07-21 Yao Qi <yao.qi@linaro.org>
8634 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8635 <command_list, handler>: Remove.
8636 (struct gdb_breakpoint): New.
8637 (struct other_breakpoint): New.
8638 (struct reinsert_breakpoint): New.
8639 (is_gdb_breakpoint): New function.
8640 (any_persistent_commands): Update command_list if
8641 is_gdb_breakpoint returns true.
8642 (set_breakpoint): Create breakpoints according to their types.
8643 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8644 (set_gdb_breakpoint_1): Likewise.
8645 (set_gdb_breakpoint): Likewise.
8646 (clear_breakpoint_conditions): Change parameter type to
8647 'struct gdb_breakpoint *'.
8648 (clear_breakpoint_commands): Likewise.
8649 (clear_breakpoint_conditions_and_commands): Likewise.
8650 (add_condition_to_breakpoint): Likewise.
8651 (add_breakpoint_condition): Likewise.
8652 (add_commands_to_breakpoint): Likewise.
8653 (check_breakpoints): Check other_breakpoint.
8654 (clone_one_breakpoint): Clone breakpopint according to its type.
8655 * mem-break.h (struct gdb_breakpoint): Declare.
8656 (set_gdb_breakpoint): Update declaration.
8657 (clear_breakpoint_conditions_and_commands): Likewise.
8658 (add_breakpoint_condition): Likewise.
8659 (add_breakpoint_commands): Likewise.
8660 * server.c (process_point_options): Change parameter type to
8661 'struct gdb_breakpoint *'.
8663 2016-07-21 Yao Qi <yao.qi@linaro.org>
8665 * mem-break.c (set_breakpoint_at): Rename it to ...
8666 (set_breakpoint_type_at): ... it.
8667 (set_breakpoint_at): Call set_breakpoint_type_at.
8668 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8669 * mem-break.h (set_breakpoint_at): Update comments.
8671 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8673 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8675 (nios2_store_gregset): Likewise.
8677 2016-07-01 Pedro Alves <palves@redhat.com>
8678 Antoine Tremblay <antoine.tremblay@ericsson.com>
8680 * linux-low.c: Change interface to take the target lwp_info
8681 pointer directly and return void. Handle detaching from a zombie
8683 (linux_detach_lwp_callback): New function.
8684 (linux_detach): Detach from the leader thread after detaching from
8687 2016-06-28 Yao Qi <yao.qi@linaro.org>
8689 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8690 for variable new_offset.
8691 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8692 (aarch64_ftrace_insn_reloc_cb): Likewise.
8693 (aarch64_ftrace_insn_reloc_tb): Likewise.
8694 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8695 PRIx64 instead of PRIx32.
8697 2016-06-28 Yao Qi <yao.qi@linaro.org>
8699 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8700 (the_low_target): Install arm_get_syscall_trapinfo.
8702 2016-06-28 Yao Qi <yao.qi@linaro.org>
8704 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8706 (the_low_target): Install aarch64_get_syscall_trapinfo.
8708 2016-06-28 Yao Qi <yao.qi@linaro.org>
8710 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8712 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8713 Remove parameter sysno.
8714 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8717 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8719 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8720 (s390_emit_ne_goto): Likewise.
8721 (s390_emit_lt_goto): Likewise.
8722 (s390_emit_le_goto): Likewise.
8723 (s390_emit_gt_goto): Likewise.
8724 (s390_emit_ge_goto): Likewise.
8725 (s390x_emit_eq_goto): Likewise.
8726 (s390x_emit_ne_goto): Likewise.
8727 (s390x_emit_lt_goto): Likewise.
8728 (s390x_emit_le_goto): Likewise.
8729 (s390x_emit_gt_goto): Likewise.
8730 (s390x_emit_ge_goto): Likewise.
8731 (s390_emit_ops_impl): Mark variable static.
8732 (s390x_emit_ops): Likewise.
8734 2016-06-17 Yao Qi <yao.qi@linaro.org>
8736 * linux-low.c (handle_extended_wait): Call
8737 uninsert_reinsert_breakpoints for the parent process. Remove
8738 reinsert breakpoints from the child process. Reinsert them to
8739 the parent process when vfork is done.
8740 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8741 (reinsert_reinsert_breakpoints): New function.
8742 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8743 (reinsert_reinsert_breakpoints): Declare.
8745 2016-06-17 Yao Qi <yao.qi@linaro.org>
8747 * linux-low.c (handle_extended_wait): If the parent is doing
8748 step-over, remove the reinsert breakpoints from the forked child.
8750 2016-06-17 Yao Qi <yao.qi@linaro.org>
8752 * linux-low.c (unsuspend_all_lwps): Declare.
8753 (linux_low_filter_event): If thread exited, call finish_step_over.
8754 If step-over is finished, unsuspend other threads.
8756 2016-06-17 Yao Qi <yao.qi@linaro.org>
8758 * linux-low.c (linux_resume_one_lwp_throw): Assert
8759 has_reinsert_breakpoints returns false.
8760 * mem-break.c (delete_disabled_breakpoints): Assert
8761 bp type isn't reinsert_breakpoint.
8763 2016-06-17 Yao Qi <yao.qi@linaro.org>
8765 * linux-low.c (maybe_hw_step): New function.
8766 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8767 (finish_step_over): Switch current_thread to lwp temporarily,
8768 and assert has_reinsert_breakpoints returns true.
8769 (proceed_one_lwp): Call maybe_hw_step.
8770 * mem-break.c (has_reinsert_breakpoints): New function.
8771 * mem-break.h (has_reinsert_breakpoints): Declare.
8773 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8775 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8777 2016-05-17 Yao Qi <yao.qi@linaro.org>
8779 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8780 instead of find_inferior.
8782 2016-05-05 Yao Qi <yao.qi@linaro.org>
8784 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8785 Initialize res to zero.
8787 2016-05-05 Yao Qi <yao.qi@linaro.org>
8789 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8792 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8794 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8795 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8796 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8798 2016-04-28 Par Olsson <par.olsson@windriver.com>
8799 Simon Marchi <simon.marchi@ericsson.com>
8801 * tracepoint.c (write_inferior_int8): New function.
8802 (cmd_qtenable_disable): Write enable flag using
8803 write_inferior_int8.
8805 2016-04-25 Yao Qi <yao.qi@linaro.org>
8807 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8808 (need_step_over_p): Return zero if the LWP has pending signals
8809 can be delivered on software single step target.
8811 2016-04-25 Yao Qi <yao.qi@linaro.org>
8813 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8814 return instead of error.
8816 2016-04-22 Yao Qi <yao.qi@linaro.org>
8818 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8821 2016-04-22 Yao Qi <yao.qi@linaro.org>
8823 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8824 signal when stepping over breakpoint with software single
8827 2016-04-21 Pedro Alves <palves@redhat.com>
8829 * linux-s390-low.c (s390_collect_ptrace_register)
8830 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8832 (s390_check_regset): Use void * instead of gdb_byte *.
8834 2016-04-20 Pedro Alves <palves@redhat.com>
8836 * configure: Renegerate.
8838 2016-04-20 Yao Qi <yao.qi@linaro.org>
8840 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8841 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8843 (arm_store_gregset): Likewise.
8845 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8847 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8848 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8849 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8850 (amd64-avx-mpx-linux.c): New rules.
8851 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8852 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8853 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8854 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8855 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8856 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8857 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8858 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8859 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8860 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8861 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8862 * linux-x86-low.c (x86_linux_read_description): Add case for
8863 X86_XSTATE_AVX_MPX_MASK.
8864 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8865 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8866 init_registers_i386_avx_mpx_linux.
8867 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8868 (initialize_low_tracepoint): Call
8869 init_registers_i386_avx_mpx_linux.
8870 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8871 (initialize_low_tracepoint): Call
8872 init_registers_amd64_avx_mpx_linux.
8873 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8874 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8875 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8878 2016-04-18 Pedro Alves <palves@redhat.com>
8880 * configure: Regenerate.
8882 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8884 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8885 (aarch64_emit_sub): Likewise.
8887 2016-04-12 Pedro Alves <palves@redhat.com>
8889 * utils.c (prepare_to_throw_exception): Delete.
8891 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8893 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8895 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8897 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8899 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8901 * linux-aarch64-ipa.c: Add <elf.h> include.
8902 * linux-ppc-ipa.c: Add <elf.h> include.
8903 * linux-s390-ipa.c: Add <elf.h> include.
8905 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8907 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8908 (get_raw_reg_ptr): Likewise.
8909 (get_trace_state_variable_value_ptr): Likewise.
8910 (set_trace_state_variable_value_ptr): Likewise.
8911 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8914 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8915 Marcin Kościelnicki <koriakin@0x04.net>
8918 * linux-ppc-low.c (emit_insns): New function.
8919 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8920 (ppc_emit_prologue): New function.
8921 (ppc_emit_epilogue): New function.
8922 (ppc_emit_add): New function.
8923 (ppc_emit_sub): New function.
8924 (ppc_emit_mul): New function.
8925 (ppc_emit_lsh): New function.
8926 (ppc_emit_rsh_signed): New function.
8927 (ppc_emit_rsh_unsigned): New function.
8928 (ppc_emit_ext): New function.
8929 (ppc_emit_zero_ext): New function.
8930 (ppc_emit_log_not): New function.
8931 (ppc_emit_bit_and): New function.
8932 (ppc_emit_bit_or): New function.
8933 (ppc_emit_bit_xor): New function.
8934 (ppc_emit_bit_not): New function.
8935 (ppc_emit_equal): New function.
8936 (ppc_emit_less_signed): New function.
8937 (ppc_emit_less_unsigned): New function.
8938 (ppc_emit_ref): New function.
8939 (ppc_emit_const): New function.
8940 (ppc_emit_reg): New function.
8941 (ppc_emit_pop): New function.
8942 (ppc_emit_stack_flush): New function.
8943 (ppc_emit_swap): New function.
8944 (ppc_emit_stack_adjust): New function.
8945 (ppc_emit_call): New function.
8946 (ppc_emit_int_call_1): New function.
8947 (ppc_emit_void_call_2): New function.
8948 (ppc_emit_if_goto): New function.
8949 (ppc_emit_goto): New function.
8950 (ppc_emit_eq_goto): New function.
8951 (ppc_emit_ne_goto): New function.
8952 (ppc_emit_lt_goto): New function.
8953 (ppc_emit_le_goto): New function.
8954 (ppc_emit_gt_goto): New function.
8955 (ppc_emit_ge_goto): New function.
8956 (ppc_write_goto_address): New function.
8957 (ppc_emit_ops_impl): New static variable.
8958 (ppc64v1_emit_prologue): New function.
8959 (ppc64v2_emit_prologue): New function.
8960 (ppc64_emit_epilogue): New function.
8961 (ppc64_emit_add): New function.
8962 (ppc64_emit_sub): New function.
8963 (ppc64_emit_mul): New function.
8964 (ppc64_emit_lsh): New function.
8965 (ppc64_emit_rsh_signed): New function.
8966 (ppc64_emit_rsh_unsigned): New function.
8967 (ppc64_emit_ext): New function.
8968 (ppc64_emit_zero_ext): New function.
8969 (ppc64_emit_log_not): New function.
8970 (ppc64_emit_bit_and): New function.
8971 (ppc64_emit_bit_or): New function.
8972 (ppc64_emit_bit_xor): New function.
8973 (ppc64_emit_bit_not): New function.
8974 (ppc64_emit_equal): New function.
8975 (ppc64_emit_less_signed): New function.
8976 (ppc64_emit_less_unsigned): New function.
8977 (ppc64_emit_ref): New function.
8978 (ppc64_emit_const): New function.
8979 (ppc64v1_emit_reg): New function.
8980 (ppc64v2_emit_reg): New function.
8981 (ppc64_emit_pop): New function.
8982 (ppc64_emit_stack_flush): New function.
8983 (ppc64_emit_swap): New function.
8984 (ppc64v1_emit_call): New function.
8985 (ppc64v2_emit_call): New function.
8986 (ppc64v1_emit_int_call_1): New function.
8987 (ppc64v2_emit_int_call_1): New function.
8988 (ppc64v1_emit_void_call_2): New function.
8989 (ppc64v2_emit_void_call_2): New function.
8990 (ppc64_emit_if_goto): New function.
8991 (ppc64_emit_eq_goto): New function.
8992 (ppc64_emit_ne_goto): New function.
8993 (ppc64_emit_lt_goto): New function.
8994 (ppc64_emit_le_goto): New function.
8995 (ppc64_emit_gt_goto): New function.
8996 (ppc64_emit_ge_goto): New function.
8997 (ppc64v1_emit_ops_impl): New static variable.
8998 (ppc64v2_emit_ops_impl): New static variable.
8999 (ppc_emit_ops): New function.
9000 (linux_low_target): Wire in ppc_emit_ops.
9002 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
9003 Marcin Kościelnicki <koriakin@0x04.net>
9006 * Makefile.in: Add powerpc-*-ipa.o
9007 * configure.srv: Add ipa_obj for powerpc*-linux.
9008 * linux-ppc-ipa.c: New file.
9009 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
9011 (PPC_FIELD): New macro.
9012 (PPC_SEXT): New macro.
9013 (PPC_OP6): New macro.
9014 (PPC_BO): New macro.
9015 (PPC_LI): New macro.
9016 (PPC_BD): New macro.
9017 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
9018 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
9019 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
9020 (ppc_get_thread_area): New function.
9021 (is_elfv2_inferior): New function.
9022 (gen_ds_form): New function.
9023 (GEN_STD): New macro.
9024 (GEN_STDU): New macro.
9025 (GEN_LD): New macro.
9026 (GEN_LDU): New macro.
9027 (gen_d_form): New function.
9028 (GEN_ADDI): New macro.
9029 (GEN_ADDIS): New macro.
9030 (GEN_LI): New macro.
9031 (GEN_LIS): New macro.
9032 (GEN_ORI): New macro.
9033 (GEN_ORIS): New macro.
9034 (GEN_LWZ): New macro.
9035 (GEN_STW): New macro.
9036 (GEN_STWU): New macro.
9037 (gen_xfx_form): New function.
9038 (GEN_MFSPR): New macro.
9039 (GEN_MTSPR): New macro.
9040 (GEN_MFCR): New macro.
9041 (GEN_MTCR): New macro.
9042 (GEN_SYNC): New macro.
9043 (GEN_LWSYNC): New macro.
9044 (gen_x_form): New function.
9045 (GEN_OR): New macro.
9046 (GEN_MR): New macro.
9047 (GEN_LWARX): New macro.
9048 (GEN_STWCX): New macro.
9049 (GEN_CMPW): New macro.
9050 (gen_md_form): New function.
9051 (GEN_RLDICL): New macro.
9052 (GEN_RLDICR): New macro.
9053 (gen_i_form): New function.
9055 (GEN_BL): New macro.
9056 (gen_b_form): New function.
9057 (GEN_BNE): New macro.
9058 (GEN_LOAD): New macro.
9059 (GEN_STORE): New macro.
9060 (gen_limm): New function.
9061 (gen_atomic_xchg): New function.
9062 (gen_call): New function.
9063 (ppc_relocate_instruction): New function.
9064 (ppc_install_fast_tracepoint_jump_pad): New function.
9065 (ppc_get_min_fast_tracepoint_insn_len): New function.
9066 (ppc_get_ipa_tdesc_idx): New function.
9067 (the_low_target): Wire in the new functions.
9068 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9070 * linux-ppc-tdesc.h: New file.
9072 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9074 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9075 (alloc_jump_pad_buffer): New function.
9076 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9077 (alloc_jump_pad_buffer): New function.
9078 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9079 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9080 (alloc_jump_pad_buffer): New function.
9081 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9082 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9083 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9084 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9086 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9088 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9089 * linux-amd64-ipa.c: Likewise.
9090 * linux-i386-ipa.c: Likewise.
9091 * linux-s390-ipa.c: Likewise.
9092 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9093 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9094 set_trace_state_variable_value_ptr.
9095 (struct ipa_sym_addresses): Likewise.
9096 (symbol_list): Likewise.
9097 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9098 accessing gdb_collect directly.
9099 (gdb_collect_ptr_type): New typedef.
9100 (get_raw_reg_ptr_type): New typedef.
9101 (get_trace_state_variable_value_ptr_type): New typedef.
9102 (set_trace_state_variable_value_ptr_type): New typedef.
9103 (gdb_collect_ptr): New global.
9104 (get_raw_reg_ptr): New global.
9105 (get_trace_state_variable_value_ptr): New global.
9106 (set_trace_state_variable_value_ptr): New global.
9107 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9108 accessing get_raw_reg directly.
9109 (get_get_tsv_func_addr): Likewise for
9110 get_trace_state_variable_value_ptr.
9111 (get_set_tsv_func_addr): Likewise for
9112 set_trace_state_variable_value_ptr.
9113 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9115 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9117 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9119 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9121 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9123 (relocate_instruction): Remove own_buf.
9124 * server.c (own_buf): Make global.
9125 (handle_v_requests): Make global.
9126 * server.h (own_buf): New declaration.
9127 (handle_v_requests): New prototype.
9129 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9132 * linux-s390-low.c (add_insns): New function.
9133 (s390_emit_prologue): New function.
9134 (s390_emit_epilogue): New function.
9135 (s390_emit_add): New function.
9136 (s390_emit_sub): New function.
9137 (s390_emit_mul): New function.
9138 (s390_emit_lsh): New function.
9139 (s390_emit_rsh_signed): New function.
9140 (s390_emit_rsh_unsigned): New function.
9141 (s390_emit_ext): New function.
9142 (s390_emit_log_not): New function.
9143 (s390_emit_bit_and): New function.
9144 (s390_emit_bit_or): New function.
9145 (s390_emit_bit_xor): New function.
9146 (s390_emit_bit_not): New function.
9147 (s390_emit_equal): New function.
9148 (s390_emit_less_signed): New function.
9149 (s390_emit_less_unsigned): New function.
9150 (s390_emit_ref): New function.
9151 (s390_emit_if_goto): New function.
9152 (s390_emit_goto): New function.
9153 (s390_write_goto_address): New function.
9154 (s390_emit_litpool): New function.
9155 (s390_emit_const): New function.
9156 (s390_emit_call): New function.
9157 (s390_emit_reg): New function.
9158 (s390_emit_pop): New function.
9159 (s390_emit_stack_flush): New function.
9160 (s390_emit_zero_ext): New function.
9161 (s390_emit_swap): New function.
9162 (s390_emit_stack_adjust): New function.
9163 (s390_emit_set_r2): New function.
9164 (s390_emit_int_call_1): New function.
9165 (s390_emit_void_call_2): New function.
9166 (s390_emit_eq_goto): New function.
9167 (s390_emit_ne_goto): New function.
9168 (s390_emit_lt_goto): New function.
9169 (s390_emit_le_goto): New function.
9170 (s390_emit_gt_goto): New function.
9171 (s390_emit_ge_goto): New function.
9172 (s390x_emit_prologue): New function.
9173 (s390x_emit_epilogue): New function.
9174 (s390x_emit_add): New function.
9175 (s390x_emit_sub): New function.
9176 (s390x_emit_mul): New function.
9177 (s390x_emit_lsh): New function.
9178 (s390x_emit_rsh_signed): New function.
9179 (s390x_emit_rsh_unsigned): New function.
9180 (s390x_emit_ext): New function.
9181 (s390x_emit_log_not): New function.
9182 (s390x_emit_bit_and): New function.
9183 (s390x_emit_bit_or): New function.
9184 (s390x_emit_bit_xor): New function.
9185 (s390x_emit_bit_not): New function.
9186 (s390x_emit_equal): New function.
9187 (s390x_emit_less_signed): New function.
9188 (s390x_emit_less_unsigned): New function.
9189 (s390x_emit_ref): New function.
9190 (s390x_emit_if_goto): New function.
9191 (s390x_emit_const): New function.
9192 (s390x_emit_call): New function.
9193 (s390x_emit_reg): New function.
9194 (s390x_emit_pop): New function.
9195 (s390x_emit_stack_flush): New function.
9196 (s390x_emit_zero_ext): New function.
9197 (s390x_emit_swap): New function.
9198 (s390x_emit_stack_adjust): New function.
9199 (s390x_emit_int_call_1): New function.
9200 (s390x_emit_void_call_2): New function.
9201 (s390x_emit_eq_goto): New function.
9202 (s390x_emit_ne_goto): New function.
9203 (s390x_emit_lt_goto): New function.
9204 (s390x_emit_le_goto): New function.
9205 (s390x_emit_gt_goto): New function.
9206 (s390x_emit_ge_goto): New function.
9207 (s390_emit_ops): New function.
9208 (struct linux_target_ops): Fill in emit_ops hook.
9210 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9213 * Makefile.in: Add s390 IPA files.
9214 * configure.srv: Build IPA for s390.
9215 * linux-s390-ipa.c: New file.
9216 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9217 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9218 (tdesc_s390_linux32): Likewise.
9219 (init_registers_s390_linux32v1): Likewise.
9220 (tdesc_s390_linux32v1): Likewise.
9221 (init_registers_s390_linux32v2): Likewise.
9222 (tdesc_s390_linux32v2): Likewise.
9223 (init_registers_s390_linux64): Likewise.
9224 (tdesc_s390_linux64): Likewise.
9225 (init_registers_s390_linux64v1): Likewise.
9226 (tdesc_s390_linux64v1): Likewise.
9227 (init_registers_s390_linux64v2): Likewise.
9228 (tdesc_s390_linux64v2): Likewise.
9229 (init_registers_s390_te_linux64): Likewise.
9230 (tdesc_s390_te_linux64): Likewise.
9231 (init_registers_s390_vx_linux64): Likewise.
9232 (tdesc_s390_vx_linux64): Likewise.
9233 (init_registers_s390_tevx_linux64): Likewise.
9234 (tdesc_s390_tevx_linux64): Likewise.
9235 (init_registers_s390x_linux64): Likewise.
9236 (tdesc_s390x_linux64): Likewise.
9237 (init_registers_s390x_linux64v1): Likewise.
9238 (tdesc_s390x_linux64v1): Likewise.
9239 (init_registers_s390x_linux64v2): Likewise.
9240 (tdesc_s390x_linux64v2): Likewise.
9241 (init_registers_s390x_te_linux64): Likewise.
9242 (tdesc_s390x_te_linux64): Likewise.
9243 (init_registers_s390x_vx_linux64): Likewise.
9244 (tdesc_s390x_vx_linux64): Likewise.
9245 (init_registers_s390x_tevx_linux64): Likewise.
9246 (tdesc_s390x_tevx_linux64): Likewise.
9247 (have_hwcap_s390_vx): New static variable.
9248 (s390_arch_setup): Fill have_hwcap_s390_vx.
9249 (s390_get_thread_area): New function.
9250 (s390_ft_entry_gpr_esa): New const.
9251 (s390_ft_entry_gpr_zarch): New const.
9252 (s390_ft_entry_misc): New const.
9253 (s390_ft_entry_fr): New const.
9254 (s390_ft_entry_vr): New const.
9255 (s390_ft_main_31): New const.
9256 (s390_ft_main_64): New const.
9257 (s390_ft_exit_fr): New const.
9258 (s390_ft_exit_vr): New const.
9259 (s390_ft_exit_misc): New const.
9260 (s390_ft_exit_gpr_esa): New const.
9261 (s390_ft_exit_gpr_zarch): New const.
9262 (append_insns): New function.
9263 (s390_relocate_instruction): New function.
9264 (s390_install_fast_tracepoint_jump_pad): New function.
9265 (s390_get_min_fast_tracepoint_insn_len): New function.
9266 (s390_get_ipa_tdesc_idx): New function.
9267 (struct linux_target_ops): Wire in the above functions.
9268 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9269 * linux-s390-tdesc.h: New file.
9271 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9273 * linux-s390-low.c (s390_supports_tracepoints): New function.
9274 (struct linux_target_ops): Fill supports_tracepoints hook.
9276 2016-03-18 Yao Qi <yao.qi@linaro.org>
9278 * linux-low.c (lwp_signal_can_be_delivered): New function.
9279 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9281 2016-03-18 Yao Qi <yao.qi@linaro.org>
9283 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9284 0 if signal is enqueued. Remove 'signal' from one debugging
9285 message. Move one debugging message to some lines below.
9286 Remove code setting 'signal' to 0.
9288 2016-03-18 Yao Qi <yao.qi@linaro.org>
9290 * linux-low.c (linux_low_filter_event): Remove redundant
9291 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9293 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9295 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9296 (struct linux_target_ops): Wire in the above.
9298 2016-03-03 Yao Qi <yao.qi@linaro.org>
9300 * linux-low.c: Update comments to start_step_over.
9302 2016-03-03 Yao Qi <yao.qi@linaro.org>
9305 * linux-low.c (handle_extended_wait): Set child suspended
9306 if event_lwp->bp_reinsert isn't zero.
9308 2016-03-02 Yao Qi <yao.qi@linaro.org>
9310 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9311 enqueue_pending_signal.
9313 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9315 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9318 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9320 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9321 (s390_regmap_3264) [!__s390x__]: New global.
9322 (s390_collect_ptrace_register): Skip map entries containing -1.
9323 (s390_supply_ptrace_register): Ditto.
9324 (s390_fill_gprs_high): New function.
9325 (s390_store_gprs_high): New function.
9326 (s390_regsets): Add NT_S390_HIGH_GPRS.
9327 (s390_get_hwcap): Enable on 31-bit.
9328 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9329 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9330 Detect NT_S390_HIGH_GPRS.
9331 (s390_usrregs_info_3264): Enable on 31-bit.
9332 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9333 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9335 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9338 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9339 * configure.srv: Ditto.
9340 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9341 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9342 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9343 (init_registers_amd64_linux): Remove prototype.
9344 (tdesc_amd64_linux): Remove declaration.
9345 (get_ipa_tdesc): New function.
9346 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9347 initialize remaining tdescs.
9348 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9349 (init_registers_i386_linux): Remove prototype.
9350 (tdesc_i386_linux): Remove declaration.
9351 (get_ipa_tdesc): New function.
9352 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9353 initialize remaining tdescs.
9354 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9355 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9356 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9357 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9358 (x86_get_ipa_tdesc_idx): New function.
9359 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9360 * linux-x86-tdesc.h: New file.
9361 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9362 (target_get_ipa_tdesc_idx): New macro.
9363 * tracepoint.c (ipa_tdesc_idx): New macro.
9364 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9365 (symbol_list): Add ipa_tdesc_idx.
9366 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9367 (ipa_tdesc): Remove.
9368 (ipa_tdesc_idx): New variable.
9369 (get_context_regcache): Use get_ipa_tdesc.
9370 (gdb_collect): Ditto.
9372 * tracepoint.h (get_ipa_tdesc): New prototype.
9373 (ipa_tdesc): Remove.
9375 2016-02-24 Pedro Alves <palves@redhat.com>
9377 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9378 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9379 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9380 Factor out common code between the USE_SIGTRAP_SIGINFO and
9381 !USE_SIGTRAP_SIGINFO blocks.
9382 (linux_low_filter_event): Call save_stop_reason instead of
9383 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9385 (linux_wait_1): Update comments.
9387 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9389 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9390 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9391 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9392 ppc_insert_point, ppc_remove_point.
9394 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9396 * linux-s390-low.c (s390_supports_z_point_type): New function.
9397 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9399 2016-02-16 Yao Qi <yao.qi@linaro.org>
9401 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9402 PC. Get pc from regcache_read_pc.
9404 2016-02-12 Yao Qi <yao.qi@linaro.org>
9406 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9407 or linux_get_pc_32bit.
9408 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9410 2016-02-12 Yao Qi <yao.qi@linaro.org>
9412 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9413 arm_linux_get_next_pcs_fixup.
9415 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9417 * tracepoint.c (x_tracepoint_action_download): Change
9418 write_inferior_data_ptr to write_inferior_data_pointer.
9419 (cmd_qtstart): Likewise.
9420 (write_inferior_data_ptr): Remove.
9421 (download_agent_expr): Change write_inferior_data_ptr to
9422 write_inferior_data_pointer.
9423 (download_tracepoint_1): Likewise.
9424 (download_tracepoint): Likewise.
9425 (download_trace_state_variables): Likewise.
9427 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9428 Marcin Kościelnicki <koriakin@0x04.net>
9430 * tracepoint.c (struct tracepoint_action_ops): Remove.
9431 (struct tracepoint_action): Remove ops.
9432 (m_tracepoint_action_download, r_tracepoint_action_download)
9433 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9434 size and offset accordingly.
9435 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9436 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9437 (tracepoint_action_send, tracepoint_action_download): New functions.
9438 Helpers for trace action handlers.
9439 (add_tracepoint_action): Remove setup actions ops.
9440 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9442 2016-02-10 Yao Qi <yao.qi@linaro.org>
9444 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9446 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9448 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9450 * configure: Regenerate.
9452 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9454 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9455 void * to gdb_byte *.
9456 * linux-low.c (siginfo_fixup): Likewise.
9457 (linux_xfer_siginfo): Likewise.
9458 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9460 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9462 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9464 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9466 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9468 * linux-x86-low.c [__x86_64__]: Include
9469 "nat/amd64-linux-siginfo.h".
9470 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9471 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9472 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9473 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9474 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9475 (cpt_si_fd, si_timerid, si_overrun): Move from
9476 nat/amd64-linux-siginfo.c.
9477 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9479 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9481 * server.c (skip_to_semicolon): Remove.
9482 (process_point_options): Use strchrnul instead of
9485 2016-01-26 Yao Qi <yao.qi@linaro.org>
9487 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9488 * linux-low.c (install_software_single_step_breakpoints): Don't
9489 call regcache_read_pc.
9490 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9493 2016-01-26 Yao Qi <yao.qi@linaro.org>
9495 * linux-low.c (install_software_single_step_breakpoints): Call
9496 regcache_read_pc instead of get_pc.
9498 2016-01-26 Yao Qi <yao.qi@linaro.org>
9500 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9501 (unblock_async_io): Rename to ...
9502 (block_unblock_async_io): ... it. New function.
9503 (enable_async_io): Don't install SIGIO handler. Unblock it
9505 (disable_async_io): Don't ignore SIGIO. Block it instead.
9506 (initialize_async_io): Install SIGIO handler. Don't call
9509 2016-01-26 Yao Qi <yao.qi@linaro.org>
9511 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9512 first character is '\003', call *the_target->request_interrupt.
9514 2016-01-25 Yao Qi <yao.qi@linaro.org>
9516 * remote-utils.c (new_thread_notify): Remove.
9517 (dead_thread_notify): Likewise.
9518 * remote-utils.h (new_thread_notify): Remove declaration.
9519 (dead_thread_notify): Likewise.
9521 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9523 * gdb.trace/pending.exp: Fix expected message on continue.
9525 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9527 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9528 it works properly on big-endian machines where sizeof (CORE_ADDR)
9531 2016-01-21 Pedro Alves <palves@redhat.com>
9533 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9534 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9535 * configure: Regenerate.
9537 2016-01-21 Yao Qi <yao.qi@linaro.org>
9539 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9540 is_thumb and set it according to CPSR saved on the stack.
9541 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9542 arm_sigreturn_next_pc.
9544 2016-01-18 Yao Qi <yao.qi@linaro.org>
9546 * linux-low.c (linux_set_pc_64bit): New function.
9547 (linux_get_pc_64bit): New function.
9548 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9550 * linux-sparc-low.c (debug_threads): Remove declaration.
9551 (sparc_get_pc): Remove.
9552 (the_low_target): Use linux_get_pc_64bit instead of
9554 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9555 (the_low_target): Use linux_get_pc_64bit and
9558 2016-01-18 Yao Qi <yao.qi@linaro.org>
9560 * linux-arm-low.c (debug_threads): Remove declaration.
9561 (arm_get_pc, arm_set_pc): Remove.
9562 (the_low_target): Use linux_get_pc_32bit and
9564 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9565 (the_low_target): Use linux_get_pc_32bit and
9567 * linux-cris-low.c (debug_threads): Remove declaration.
9568 (cris_get_pc, cris_set_pc,): Remove.
9569 (the_low_target): Use linux_get_pc_32bit and
9571 * linux-crisv32-low.c (debug_threads): Remove declaration.
9572 (cris_get_pc, cris_set_pc): Remove.
9573 (the_low_target): Use linux_get_pc_32bit and
9575 * linux-low.c: Include inttypes.h.
9576 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9577 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9578 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9579 (the_low_target): Use linux_get_pc_32bit and
9581 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9582 (the_low_target): Use linux_get_pc_32bit and
9584 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9585 (the_low_target): Use linux_get_pc_32bit and
9587 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9588 (the_low_target): Use linux_get_pc_32bit and
9590 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9591 (the_low_target): Use linux_get_pc_32bit and
9594 2016-01-18 Gary Benson <gbenson@redhat.com>
9596 * configure.ac (AC_FUNC_FORK): New check.
9597 * config.in: Regenerate.
9598 * configure: Likewise.
9600 2016-01-14 Yao Qi <yao.qi@linaro.org>
9602 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9603 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9604 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9605 arm_get_next_pcs_ctor.
9607 2016-01-12 Josh Stone <jistone@redhat.com>
9608 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9610 * inferiors.h: Include "gdb_vecs.h".
9611 (struct process_info): Add syscalls_to_catch.
9612 * inferiors.c (remove_process): Free syscalls_to_catch.
9613 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9614 syscall_return stops.
9615 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9616 * server.c (handle_general_set): Handle QCatchSyscalls.
9617 (handle_query): Report support for QCatchSyscalls.
9618 * target.h (struct target_ops): Add supports_catch_syscall.
9619 (target_supports_catch_syscall): New macro.
9620 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9621 (struct lwp_info): Add syscall_state.
9622 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9623 Maintain syscall_state and syscalls_to_catch across exec.
9624 (get_syscall_trapinfo): New function, proxy to the_low_target.
9625 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9626 (linux_low_filter_event): Toggle syscall_state entry/return for
9627 syscall traps, and set it ignored for all others.
9628 (gdb_catching_syscalls_p): New function.
9629 (gdb_catch_this_syscall_p): New function.
9630 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9631 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9632 (linux_supports_catch_syscall): New function.
9633 (linux_target_ops): Install it.
9634 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9635 (the_low_target): Install it.
9637 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9639 * acinclude.m4: Include new ../warning.m4 file.
9640 * configure: Regenerated.
9641 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9643 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9645 * ax.c (is_goto_target): Mark static.
9646 * linux-low.c (register_addr): Likewise.
9647 (linux_fetch_registers, linux_store_registers): Likewise.
9648 * mem-break.c (any_persistent_commands): Fix old prototype.
9649 (add_commands_to_breakpoint): Mark static.
9650 * regcache.c (find_register_by_name): Delete unused func.
9651 * remote-utils.c (hex_or_minus_one): Mark static.
9652 * server.c (monitor_show_help): Mark static.
9653 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9654 handle_v_requests): Likewise.
9656 2016-01-12 Pedro Alves <palves@redhat.com>
9658 Remove use of the registered trademark symbol throughout.
9660 2016-01-08 Yao Qi <yao.qi@linaro.org>
9662 * remote-utils.c (getpkt): If c is '\003', call target hook
9665 2016-01-06 Yao Qi <yao.qi@linaro.org>
9667 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9668 linux-aarch32-low.c.
9669 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9670 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9671 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9672 (thumb2_breakpoint): Declare.
9673 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9674 linux-aarch32-low.h.
9675 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9676 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9677 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9679 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9681 * gdbreplay.c (gdbreplay_version): Change copyright year in
9683 * server.c (gdbserver_version): Likewise.
9685 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9687 * server.c (crc32_table): Delete.
9688 (crc32): Use libiberty's xcrc32 function.
9690 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9692 * lynx-low.c (lynx_delete_thread_callback): New function.
9693 (lynx_mourn): Properly delete our process and all of its
9694 threads. Remove call to clear_inferiors.
9696 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9698 * target.c (thread_search_callback): Add check that
9699 the thread_stopped target callback is not NULL before
9702 2015-12-21 Yao Qi <yao.qi@linaro.org>
9704 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9707 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9709 * server.c (handle_query): Call target_supports_software_single_step.
9711 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9713 * linux-low.c (single_step): New function.
9714 (linux_resume_one_lwp_throw): Call single_step.
9715 (start_step_over): Likewise.
9717 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9719 * Makefile.in (SFILES): Append arch/arm-linux.c,
9720 arch/arm-get-next-pcs.c.
9721 (arm-linux.o): New rule.
9722 (arm-get-next-pcs.o): New rule.
9723 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9725 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9726 to linux-aarch32-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): Make non-static.
9732 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9733 from linux-aarch32-low.c.
9734 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9735 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9736 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9737 (thumb2_breakpoint_len): Likewise.
9738 (arm_is_thumb_mode): New declaration.
9739 * linux-arm-low.c: Include arch/arm-linux.h
9740 aarch/arm-get-next-pcs.h, sys/syscall.h.
9741 (get_next_pcs_ops): New struct.
9742 (get_next_pcs_addr_bits_remove): New function.
9743 (get_next_pcs_is_thumb): New function.
9744 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9745 (arm_sigreturn_next_pc): Likewise.
9746 (get_next_pcs_syscall_next_pc): Likewise.
9747 (arm_gdbserver_get_next_pcs): Likewise.
9748 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9750 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9751 * server.h: Include gdb_vecs.h.
9753 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9755 * Makefile.in (SFILES): Append common/common-regcache.c.
9756 (OBS): Append common-regcache.o.
9757 (common-regcache.o): New rule.
9758 * regcache.c (init_register_cache): Initialize cache to
9760 (regcache_raw_read_unsigned): New function.
9761 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9762 register_status enum.
9764 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9766 * linux-aarch64-low.c (the_low_targets): Rename
9767 breakpoint_reinsert_addr to get_next_pcs.
9768 * linux-arm-low.c (the_low_targets): Likewise.
9769 * linux-bfin-low.c (the_low_targets): Likewise.
9770 * linux-cris-low.c (the_low_targets): Likewise.
9771 * linux-crisv32-low.c (the_low_targets): Likewise.
9772 * linux-low.c (can_software_single_step): Likewise.
9773 (install_software_single_step_breakpoints): New function.
9774 (start_step_over): Use install_software_single_step_breakpoints.
9775 * linux-low.h: New CORE_ADDR vector.
9776 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9778 * linux-mips-low.c (the_low_targets): Likewise.
9779 * linux-nios2-low.c (the_low_targets): Likewise.
9780 * linux-sparc-low.c (the_low_targets): Likewise.
9782 2015-12-17 Pedro Alves <palves@redhat.com>
9784 * linux-low.c (linux_kill_one_lwp): Remove references to
9786 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9788 (linux_init_signals): Delete.
9789 (initialize_low): Adjust.
9790 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9792 2015-12-16 Pedro Alves <palves@redhat.com>
9794 * configure.ac (compiler warning flags): When testing a
9795 -Wno-foo option, check whether -Wfoo works instead.
9796 * configure: Regenerate.
9798 2015-12-11 Don Breazeal <donb@codesourcery.com>
9800 * server.c (process_serial_event): Don't exit from gdbserver
9801 in remote mode if there are still active inferiors.
9803 2015-12-11 Yao Qi <yao.qi@linaro.org>
9805 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9806 arm_breakpoint_at if the process is 32-bit.
9808 2015-12-11 Yao Qi <yao.qi@linaro.org>
9810 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9813 2015-12-07 Yao Qi <yao.qi@linaro.org>
9815 * configure.srv: Append arm.o to srv_tgtobj for
9816 aarch64*-*-linux* target.
9817 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9818 from linux-arm-low.c.
9819 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9820 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9821 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9822 (thumb2_breakpoint_len): Likewise.
9823 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9824 (arm_breakpoint_kinds): Likewise.
9825 (arm_breakpoint_kind_from_pc): Likewise.
9826 (arm_sw_breakpoint_from_kind): Likewise.
9827 (arm_breakpoint_kind_from_current_state): Likewise.
9828 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9829 (arm_sw_breakpoint_from_kind): Declare.
9830 (arm_breakpoint_kind_from_current_state): Declare.
9831 (arm_breakpoint_at): Declare.
9832 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9833 arm_sw_breakpoint_from_kind if process is 32-bit.
9834 (aarch64_breakpoint_kind_from_pc): New function.
9835 (aarch64_breakpoint_kind_from_current_state): New function.
9836 (the_low_target): Initialize fields breakpoint_kind_from_pc
9837 and breakpoint_kind_from_current_state.
9838 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9839 linux-aarch32-low.c.
9840 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9841 (arm_breakpoint, arm_breakpoint_len): Likewise.
9842 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9843 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9844 (arm_is_thumb_mode): Likewise.
9845 (arm_breakpoint_at): Likewise.
9846 (arm_breakpoint_kind_from_pc): Likewise.
9847 (arm_sw_breakpoint_from_kind): Likewise.
9848 (arm_breakpoint_kind_from_current_state): Likewise.
9851 2015-08-04 Yao Qi <yao.qi@linaro.org>
9853 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9854 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9855 * server.c (extended_protocol): Remove "static".
9856 * server.h (extended_protocol): Declare it.
9858 2015-12-04 Josh Stone <jistone@redhat.com>
9860 * target.h (struct target_ops) <arch_setup>: Rename to ...
9861 (struct target_ops) <post_create_inferior>: ... this.
9862 (target_arch_setup): Rename to ...
9863 (target_post_create_inferior): ... this, calling post_create_inferior.
9864 * server.c (start_inferior): Update target_arch_setup calls to
9865 target_post_create_inferior.
9866 * linux-low.c (linux_low_ptrace_options): Forward declare.
9867 (linux_arch_setup): Update its comment for general use.
9868 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9869 (struct linux_target_ops): Use linux_post_create_inferior.
9870 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9871 to post_create_inferior.
9872 * nto-low.c (struct nto_target_ops): Likewise.
9873 * spu-low.c (struct spu_target_ops): Likewise.
9874 * win32-low.c (struct win32_target_ops): Likewise.
9876 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9878 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9880 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9882 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9883 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9884 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9885 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9886 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9887 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9888 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9889 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9890 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9891 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9892 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9893 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9895 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9897 * linux-low.c (linux_look_up_symbols): Don't call
9898 linux_supports_traceclone.
9899 * linux-low.h (thread_db_init): Remove use_events argument.
9900 * thread-db.c (thread_db_use_event): Remove global variable.
9901 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9902 (struct thread_db) <td_create_bp>: Remove field.
9903 (thread_db_create_event): Remove function.
9904 (thread_db_enable_reporting): Likewise.
9905 (find_one_thread): Don't check for thread_db_use_events.
9906 (attach_thread): Likewise.
9907 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9908 (try_thread_db_load_1): Don't check for thread_db_use_events.
9909 (thread_db_init): Remove use_events argument and thread events
9911 (remove_thread_event_breakpoints): Remove function.
9912 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9914 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9916 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9918 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9919 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9920 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9921 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9922 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9924 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9926 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9927 * linux-low.c (can_hardware_single_step): Use
9928 supports_hardware_single_step.
9929 (can_software_single_step): New function.
9930 (start_step_over): Call can_software_single_step.
9931 (linux_supports_hardware_single_step): New function.
9932 (struct target_ops) <supports_software_single_step>: Initialize.
9933 * linux-low.h (struct linux_target_ops)
9934 <supports_hardware_single_step>: Initialize.
9935 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9936 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9937 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9938 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9939 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9940 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9941 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9942 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9943 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9944 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9946 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9947 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9949 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9950 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9951 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9953 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9954 * target.h (struct target_ops): <supports_software_single_step>:
9956 (target_supports_software_single_step): New macro.
9958 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9960 * linux-low.c (linux_wait_1): Fix pc advance condition.
9961 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9962 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9964 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9966 * linux-arm-low.c (arm_is_thumb_mode): New function.
9967 (arm_breakpoint_at): Use arm_is_thumb_mode.
9968 (arm_breakpoint_kind_from_current_state): New function.
9969 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9971 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9972 (linux_breakpoint_kind_from_current_state): New function.
9973 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9974 * linux-low.h (struct linux_target_ops)
9975 <breakpoint_kind_from_current_state>: New field.
9976 * target.h (struct target_ops): Likewise.
9977 (target_breakpoint_kind_from_current_state): New macro.
9979 2015-11-30 Pedro Alves <palves@redhat.com>
9981 * linux-low.c (linux_resume): Wake up the event loop before
9984 2015-11-30 Pedro Alves <palves@redhat.com>
9986 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9988 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9990 * target.c (struct thread_search): New structure.
9991 (thread_search_callback): New function.
9992 (prev_general_thread): New global.
9993 (prepare_to_access_memory, done_accessing_memory): New functions.
9994 * target.h (prepare_to_access_memory, done_accessing_memory):
9995 Replace macros with function declarations.
9997 2015-11-30 Pedro Alves <palves@redhat.com>
10000 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
10001 report TARGET_WAITKIND_NO_RESUMED.
10002 * remote-utils.c (prepare_resume_reply): Handle
10003 TARGET_WAITKIND_NO_RESUMED.
10004 * server.c (report_no_resumed): New global.
10005 (handle_query) <qSupported>: Handle "no-resumed+". Report
10006 "no-resumed+" support.
10007 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
10008 return error if the client doesn't support no-resumed events.
10009 (push_stop_notification): New function.
10010 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
10011 events if the client supports them.
10013 2015-11-30 Pedro Alves <palves@redhat.com>
10015 * linux-low.c (thread_still_has_status_pending_p): Don't check
10017 (lwp_resumed): New function.
10018 (status_pending_p_callback): Return early if the LWP is not
10019 supposed to be resumed.
10021 2015-11-30 Pedro Alves <palves@redhat.com>
10023 * linux-low.c (handle_extended_wait): Assert that the LWP's
10024 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10025 thread create events, leave the new child's status pending.
10026 (linux_low_filter_event): If GDB wants to hear about thread exit
10027 events, leave the LWP marked dead and don't delete it.
10028 (linux_wait_for_event_filtered): Don't check for thread exit.
10029 (filter_exit_event): New function.
10030 (linux_wait_1): Use it, when returning an exit event.
10031 (linux_resume_one_lwp_throw): Assert that the LWP's
10032 waitstatus is TARGET_WAITKIND_IGNORE.
10033 * remote-utils.c (prepare_resume_reply): Handle
10034 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10035 * server.c (report_thread_events): New global.
10036 (handle_general_set): Handle QThreadEvents.
10037 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10038 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10039 TARGET_WAITKIND_THREAD_EXITED.
10040 * server.h (report_thread_events): Declare.
10042 2015-11-30 Pedro Alves <palves@redhat.com>
10044 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10045 the thread's last_resume_kind was resume_stop.
10047 2015-11-30 Pedro Alves <palves@redhat.com>
10049 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10052 2015-11-30 Pedro Alves <palves@redhat.com>
10054 * server.c (handle_v_requests): Handle vCtrlC.
10056 2015-11-30 Pedro Alves <palves@redhat.com>
10058 * gdbthread.h (find_any_thread_of_pid): Declare.
10059 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10061 * server.c (handle_query): If current_thread is NULL, look for
10062 another thread of the selected process.
10064 2015-11-26 Daniel Colascione <dancol@dancol.org>
10065 Simon Marchi <simon.marchi@ericsson.com>
10067 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10068 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10070 * target.h (struct target_ops) <thread_name>: New field.
10071 (target_thread_name): New macro.
10073 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10075 * regcache.h (regcache_invalidate_pid): Add declaration.
10076 * regcache.c (regcache_invalidate_pid): New function, extracted
10077 from regcache_invalidate.
10078 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10079 Add trivial documentation comment.
10080 * lynx-low.c: Use regcache_invalidate_pid instead of
10081 regcache_invalidate.
10083 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10085 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10086 and Elf64_auxv_t if the target is Android.
10088 2015-11-22 Doug Evans <xdje42@gmail.com>
10090 * target.h: #include <sys/types.h>.
10092 2015-11-19 Pedro Alves <palves@redhat.com>
10094 * linux-low.c (linux_process_qsupported): Change prototype.
10096 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10098 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10099 and adjust to loop over all features.
10100 * server.c (handle_query) <qSupported>: Adjust to call
10101 target_process_qsupported once, passing it a vector of unprocessed
10103 * target.h (struct target_ops) <process_qsupported>: Change
10105 (target_process_qsupported): Adjust.
10107 2015-11-19 Pedro Alves <palves@redhat.com>
10109 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10111 * configure: Regenerate.
10113 2015-11-19 Pedro Alves <palves@redhat.com>
10115 * configure: Regenerate.
10117 2015-11-19 Yao Qi <yao.qi@linaro.org>
10119 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10122 2015-11-19 Yao Qi <yao.qi@linaro.org>
10124 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10125 (struct aarch64_operand): Move enum out.
10127 2015-11-19 Yao Qi <yao.qi@linaro.org>
10129 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10130 struct user_fpsimd_state *.
10131 (aarch64_store_fpregset): Likewise.
10133 2015-11-19 Yao Qi <yao.qi@linaro.org>
10135 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10136 struct user_pt_regs *.
10137 (aarch64_store_gregset): Likewise.
10139 2015-11-18 Pedro Alves <palves@redhat.com>
10141 * Makefile.in (all_object_files): Add $IPA_OBJS.
10143 2015-11-17 Pedro Alves <palves@redhat.com>
10145 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10146 GDB_SIGNAL_0 and gdb_signal_to_string.
10148 2015-11-17 Pedro Alves <palves@redhat.com>
10150 * win32-low.c (handle_output_debug_string): Remove parameter.
10151 (win32_kill): Remove our_status local and adjust call to
10152 handle_output_debug_string.
10153 (get_child_debug_event): Adjust call to
10154 handle_output_debug_string.
10156 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10158 * linux-mips-low.c (mips_fill_gregset): Add cast.
10159 (mips_store_gregset): Likewise.
10160 (mips_fill_fpregset): Likewise.
10161 (mips_store_fpregset): Likewise.
10163 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10165 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10168 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10170 * linux-mips-low.c (mips_linux_new_thread): Change type of
10171 watch_type to enum target_hw_bp_type.
10173 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10175 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10176 Change return type to arm_hwbp_type.
10178 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10180 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10181 (arm_store_gregset): Likewise.
10182 * linux-arm-low.c (arm_get_hwcap): Likewise.
10183 (arm_read_description): Likewise.
10185 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10187 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10189 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10191 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10192 (ppc_fill_vsxregset): Likewise.
10193 (ppc_store_vsxregset): Likewise.
10194 (ppc_fill_vrregset): Likewise.
10195 (ppc_store_vrregset): Likewise.
10196 (ppc_fill_evrregset): Likewise.
10197 (ppc_store_evrregset): Likewise.
10199 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10201 * linux-ppc-low.c (ppc_usrregs_info): Remove
10202 forward-declaration.
10203 (ppc_arch_setup): Move lower in file.
10205 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10207 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10208 (ps_pdwrite): Likewise.
10210 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10212 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10213 to after assert checks.
10215 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10217 * proc-service.c (ps_pdread): Add/adjust casts.
10218 (ps_pdwrite): Add/adjust casts.
10220 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10222 * server.c (handle_search_memory_1): Cast return value of
10225 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10227 * server.c (write_qxfer_response): Change type of data to
10230 2015-10-29 Pedro Alves <palves@redhat.com>
10232 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10234 2015-10-29 Pedro Alves <palves@redhat.com>
10236 * tracepoint.c (clear_installed_tracepoints): Add casts.
10238 2015-10-29 Pedro Alves <palves@redhat.com>
10240 * server.c (handle_v_cont, process_serial_event): Add enum
10241 gdb_signal casts to signal parsing code.
10243 2015-10-29 Pedro Alves <palves@redhat.com>
10245 * linux-low.h (NULL_REGSET): Define.
10246 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10247 * linux-arm-low.c (arm_regsets): Likewise.
10248 * linux-crisv32-low.c (cris_regsets): Likewise.
10249 * linux-m68k-low.c (m68k_regsets): Likewise.
10250 * linux-mips-low.c (mips_regsets): Likewise.
10251 * linux-nios2-low.c (nios2_regsets): Likewise.
10252 * linux-ppc-low.c (ppc_regsets): Likewise.
10253 * linux-s390-low.c (s390_regsets): Likewise.
10254 * linux-sh-low.c (sh_regsets): Likewise.
10255 * linux-sparc-low.c (sparc_regsets): Likewise.
10256 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10257 * linux-tile-low.c (tile_regsets): Likewise.
10258 * linux-x86-low.c (x86_regsets): Likewise.
10259 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10261 2015-10-29 Pedro Alves <palves@redhat.com>
10263 * linux-low.h (NULL_REGSET): Define.
10264 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10265 * linux-arm-low.c (arm_regsets): Likewise.
10266 * linux-crisv32-low.c (cris_regsets): Likewise.
10267 * linux-m68k-low.c (m68k_regsets): Likewise.
10268 * linux-mips-low.c (mips_regsets): Likewise.
10269 * linux-nios2-low.c (nios2_regsets): Likewise.
10270 * linux-ppc-low.c (ppc_regsets): Likewise.
10271 * linux-s390-low.c (s390_regsets): Likewise.
10272 * linux-sh-low.c (sh_regsets): Likewise.
10273 * linux-sparc-low.c (sparc_regsets): Likewise.
10274 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10275 * linux-tile-low.c (tile_regsets): Likewise.
10276 * linux-x86-low.c (x86_regsets): Likewise.
10277 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10279 2015-10-26 Doug Evans <dje@google.com>
10281 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10283 2015-10-26 Doug Evans <dje@google.com>
10285 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10287 2015-10-26 Doug Evans <dje@google.com>
10289 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10291 (attach_thread, find_new_threads_callback): Ditto.
10293 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10295 * mem-break.h (set_breakpoint_data): Remove.
10297 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10299 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10300 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10301 (initialize_low): Remove set_breakpoint_data call.
10302 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10303 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10304 (initialize_low): Remove set_breakpoint_data call.
10305 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10306 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10307 (initialize_low): Remove set_breakpoint_data call.
10309 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10311 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10312 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10313 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10314 * target.h (target_breakpoint_kind_from_pc): New macro.
10316 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10318 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10319 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10320 the default breakpoint kind.
10322 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10324 * linux-arm-low.c (arm_supports_z_point_type): Add software
10325 breakpoint support.
10327 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10329 * linux-arm-low.c: Refactor breakpoint definitions.
10330 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10331 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10333 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10335 * Makefile.in: Add arm.c/o.
10336 * configure.srv: Likewise.
10337 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10338 (arm_breakpoint_kind_from_pc): New function.
10339 (arm_sw_breakpoint_from_kind): Return proper kind.
10340 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10342 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10344 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10346 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10347 (struct raw_breakpoint) <size>: Remove.
10348 (struct raw_breakpoint) <kind>: Add.
10349 (bp_size): New function.
10350 (bp_opcode): Likewise.
10351 (find_raw_breakpoint_at): Adjust for kind.
10352 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10353 (remove_memory_breakpoint): Adjust for kind call bp_size.
10354 (set_raw_breakpoint_at): Adjust for kind.
10355 (set_breakpoint): Likewise.
10356 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10357 (delete_raw_breakpoint): Adjust for kind.
10358 (delete_breakpoint): Likewise.
10359 (find_gdb_breakpoint): Likewise.
10360 (set_gdb_breakpoint_1): Likewise.
10361 (set_gdb_breakpoint): Likewise.
10362 (delete_gdb_breakpoint_1): Likewise.
10363 (delete_gdb_breakpoint): Likewise.
10364 (uninsert_raw_breakpoint): Likewise.
10365 (reinsert_raw_breakpoint): Likewise.
10366 (set_breakpoint_data): Remove.
10367 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10368 (check_mem_read): Adjust for kind call bp_size.
10369 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10370 (clone_one_breakpoint): Adjust for kind.
10371 * mem-break.h (set_gdb_breakpoint): Likewise.
10372 (delete_gdb_breakpoint): Likewise.
10373 * server.c (process_serial_event): Likewise.
10375 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10377 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10378 (struct linux_target_ops) <breakpoint>: Remove.
10379 (struct linux_target_ops) <breakpoint_len>: Remove.
10380 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10381 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10382 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10383 (arm_sw_breakpoint_from_kind): New function.
10384 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10385 (struct linux_target_ops) <breakpoint>: Remove.
10386 (struct linux_target_ops) <breakpoint_len>: Remove.
10387 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10388 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10389 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10390 (struct linux_target_ops) <breakpoint>: Remove.
10391 (struct linux_target_ops) <breakpoint_len>: Remove.
10392 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10393 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10394 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10395 (struct linux_target_ops) <breakpoint>: Remove.
10396 (struct linux_target_ops) <breakpoint_len>: Remove.
10397 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10398 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10399 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10400 and sw_breakpoint_from_kind to increment the pc.
10401 (linux_breakpoint_kind_from_pc): New function.
10402 (linux_sw_breakpoint_from_kind): New function.
10403 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10404 (initialize_low): Call breakpoint_kind_from_pc and
10405 sw_breakpoint_from_kind to replace breakpoint_data/len.
10406 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10408 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10409 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10410 (struct linux_target_ops) <breakpoint>: Remove.
10411 (struct linux_target_ops) <breakpoint_len>: Remove.
10412 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10413 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10414 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10415 (struct linux_target_ops) <breakpoint>: Remove.
10416 (struct linux_target_ops) <breakpoint_len>: Remove.
10417 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10418 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10419 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10420 (struct linux_target_ops) <breakpoint>: Remove.
10421 (struct linux_target_ops) <breakpoint_len>: Remove.
10422 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10423 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10424 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10425 (struct linux_target_ops) <breakpoint>: Remove.
10426 (struct linux_target_ops) <breakpoint_len>: Remove.
10427 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10428 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10429 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10430 (struct linux_target_ops) <breakpoint>: Remove.
10431 (struct linux_target_ops) <breakpoint_len>: Remove.
10432 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10433 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10434 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10435 (struct linux_target_ops) <breakpoint>: Remove.
10436 (struct linux_target_ops) <breakpoint_len>: Remove.
10437 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10438 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10439 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10440 (struct linux_target_ops) <breakpoint>: Remove.
10441 (struct linux_target_ops) <breakpoint_len>: Remove.
10442 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10443 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10444 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10445 (struct linux_target_ops) <breakpoint>: Remove.
10446 (struct linux_target_ops) <breakpoint_len>: Remove.
10447 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10448 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10449 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10450 (struct linux_target_ops) <breakpoint>: Remove.
10451 (struct linux_target_ops) <breakpoint_len>: Remove.
10452 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10453 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10454 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10455 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10456 (struct linux_target_ops) <breakpoint>: Remove.
10457 (struct linux_target_ops) <breakpoint_len>: Remove.
10458 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10460 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10461 (struct linux_target_ops) <breakpoint>: Remove.
10462 (struct linux_target_ops) <breakpoint_len>: Remove.
10463 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10464 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10466 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10468 * linux-cris-low.c (cris_get_pc): Remove void arg.
10470 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10472 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10475 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10477 * inferiors.c (thread_pid_matches_callback): New function.
10478 (find_thread_process): New function.
10479 (remove_thread): Reset current_thread.
10480 (remove_process): Assert threads have been removed first.
10482 2015-10-15 Yao Qi <yao.qi@linaro.org>
10484 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10486 (aarch64_remove_point): Likewise.
10487 * regcache.c (regcache_register_size): New function.
10489 2015-10-12 Yao Qi <yao.qi@linaro.org>
10491 * linux-aarch64-low.c: Update all callers as emit_load_store
10492 is renamed to aarch64_emit_load_store.
10494 2015-10-12 Yao Qi <yao.qi@linaro.org>
10496 * linux-aarch64-low.c: Update all callers of function renaming
10497 from emit_insn to aarch64_emit_insn.
10499 2015-10-12 Yao Qi <yao.qi@linaro.org>
10501 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10502 arch/aarch64-insn.h.
10503 (struct aarch64_memory_operand): Likewise.
10504 (ENCODE): Likewise.
10505 (emit_insn): Move to arch/aarch64-insn.c.
10506 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10507 (emit_load_store): Move to arch/aarch64-insn.c.
10508 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10509 (can_encode_int32): Remove.
10511 2015-10-12 Yao Qi <yao.qi@linaro.org>
10513 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10514 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10515 (aarch64_relocate_instruction): Likewise.
10516 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10517 (struct aarch64_insn_visitor): Likewise.
10519 2015-10-12 Yao Qi <yao.qi@linaro.org>
10521 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10522 (struct aarch64_insn_visitor): New.
10523 (struct aarch64_insn_relocation_data): New.
10524 (aarch64_ftrace_insn_reloc_b): New function.
10525 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10526 (aarch64_ftrace_insn_reloc_cb): Likewise.
10527 (aarch64_ftrace_insn_reloc_tb): Likewise.
10528 (aarch64_ftrace_insn_reloc_adr): Likewise.
10529 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10530 (aarch64_ftrace_insn_reloc_others): Likewise.
10532 (aarch64_relocate_instruction): Use visitor.
10534 2015-10-12 Yao Qi <yao.qi@linaro.org>
10536 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10537 int. Add argument buf.
10538 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10539 aarch64_relocate_instruction.
10541 2015-10-12 Yao Qi <yao.qi@linaro.org>
10543 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10544 argument insn. Remove local variable insn. Don't call
10545 target_read_uint32.
10546 (aarch64_install_fast_tracepoint_jump_pad): Call
10547 target_read_uint32.
10549 2015-09-30 Yao Qi <yao.qi@linaro.org>
10551 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10552 (emit_load_store_pair): Likewise.
10554 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10556 * dll.c (match_dll): Add cast(s).
10557 (unloaded_dll): Likewise.
10558 * linux-low.c (second_thread_of_pid_p): Likewise.
10559 (delete_lwp_callback): Likewise.
10560 (count_events_callback): Likewise.
10561 (select_event_lwp_callback): Likewise.
10562 (linux_set_resume_request): Likewise.
10563 * server.c (accumulate_file_name_length): Likewise.
10564 (emit_dll_description): Likewise.
10565 (handle_qxfer_threads_worker): Likewise.
10566 (visit_actioned_threads): Likewise.
10567 * thread-db.c (any_thread_of): Likewise.
10568 * tracepoint.c (same_process_p): Likewise.
10569 (match_blocktype): Likewise.
10570 (build_traceframe_info_xml): Likewise.
10572 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10574 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10576 (gdb_unparse_agent_expr): Likewise.
10577 * hostio.c (require_data): Likewise.
10578 (handle_pread): Likewise.
10579 * linux-low.c (disable_regset): Likewise.
10580 (fetch_register): Likewise.
10581 (store_register): Likewise.
10582 (get_dynamic): Likewise.
10583 (linux_qxfer_libraries_svr4): Likewise.
10584 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10585 (set_fast_tracepoint_jump): Likewise.
10586 (uninsert_fast_tracepoint_jumps_at): Likewise.
10587 (reinsert_fast_tracepoint_jumps_at): Likewise.
10588 (validate_inserted_breakpoint): Likewise.
10589 (clone_agent_expr): Likewise.
10590 * regcache.c (init_register_cache): Likewise.
10591 * remote-utils.c (putpkt_binary_1): Likewise.
10592 (decode_M_packet): Likewise.
10593 (decode_X_packet): Likewise.
10594 (look_up_one_symbol): Likewise.
10595 (relocate_instruction): Likewise.
10596 (monitor_output): Likewise.
10597 * server.c (handle_search_memory): Likewise.
10598 (handle_qxfer_exec_file): Likewise.
10599 (handle_qxfer_libraries): Likewise.
10600 (handle_qxfer): Likewise.
10601 (handle_query): Likewise.
10602 (handle_v_cont): Likewise.
10603 (handle_v_run): Likewise.
10604 (captured_main): Likewise.
10605 * target.c (write_inferior_memory): Likewise.
10606 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10607 * tracepoint.c (init_trace_buffer): Likewise.
10608 (add_tracepoint_action): Likewise.
10609 (add_traceframe): Likewise.
10610 (add_traceframe_block): Likewise.
10611 (cmd_qtdpsrc): Likewise.
10612 (cmd_qtdv): Likewise.
10613 (cmd_qtstatus): Likewise.
10614 (response_source): Likewise.
10615 (response_tsv): Likewise.
10616 (cmd_qtnotes): Likewise.
10617 (gdb_collect): Likewise.
10618 (initialize_tracepoint): Likewise.
10620 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10622 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10623 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10624 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10626 (enum aarch64_condition_codes): New enum.
10627 (w0): New static global.
10630 (struct aarch64_memory_operand) <type>: New
10631 MEMORY_OPERAND_POSTINDEX type.
10632 (postindex_memory_operand): New helper function.
10633 (emit_ret): New function.
10634 (emit_load_store_pair): New function, factored out of emit_stp
10635 with support for MEMORY_OPERAND_POSTINDEX.
10636 (emit_stp): Rewrite using emit_load_store_pair.
10637 (emit_ldp): New function.
10638 (emit_load_store): Likewise.
10639 (emit_ldr): Mention post-index instruction in comment.
10640 (emit_ldrh): New function.
10641 (emit_ldrb): New function.
10642 (emit_ldrsw): Mention post-index instruction in comment.
10643 (emit_str): Likewise.
10644 (emit_subs): New function.
10645 (emit_cmp): Likewise.
10646 (emit_and): Likewise.
10647 (emit_orr): Likewise.
10648 (emit_orn): Likewise.
10649 (emit_eor): Likewise.
10650 (emit_mvn): Likewise.
10651 (emit_lslv): Likewise.
10652 (emit_lsrv): Likewise.
10653 (emit_asrv): Likewise.
10654 (emit_mul): Likewise.
10655 (emit_sbfm): Likewise.
10656 (emit_sbfx): Likewise.
10657 (emit_ubfm): Likewise.
10658 (emit_ubfx): Likewise.
10659 (emit_csinc): Likewise.
10660 (emit_cset): Likewise.
10661 (emit_nop): Likewise.
10662 (emit_ops_insns): New helper function.
10663 (emit_pop): Likewise.
10664 (emit_push): Likewise.
10665 (aarch64_emit_prologue): New function.
10666 (aarch64_emit_epilogue): Likewise.
10667 (aarch64_emit_add): Likewise.
10668 (aarch64_emit_sub): Likewise.
10669 (aarch64_emit_mul): Likewise.
10670 (aarch64_emit_lsh): Likewise.
10671 (aarch64_emit_rsh_signed): Likewise.
10672 (aarch64_emit_rsh_unsigned): Likewise.
10673 (aarch64_emit_ext): Likewise.
10674 (aarch64_emit_log_not): Likewise.
10675 (aarch64_emit_bit_and): Likewise.
10676 (aarch64_emit_bit_or): Likewise.
10677 (aarch64_emit_bit_xor): Likewise.
10678 (aarch64_emit_bit_not): Likewise.
10679 (aarch64_emit_equal): Likewise.
10680 (aarch64_emit_less_signed): Likewise.
10681 (aarch64_emit_less_unsigned): Likewise.
10682 (aarch64_emit_ref): Likewise.
10683 (aarch64_emit_if_goto): Likewise.
10684 (aarch64_emit_goto): Likewise.
10685 (aarch64_write_goto_address): Likewise.
10686 (aarch64_emit_const): Likewise.
10687 (aarch64_emit_call): Likewise.
10688 (aarch64_emit_reg): Likewise.
10689 (aarch64_emit_pop): Likewise.
10690 (aarch64_emit_stack_flush): Likewise.
10691 (aarch64_emit_zero_ext): Likewise.
10692 (aarch64_emit_swap): Likewise.
10693 (aarch64_emit_stack_adjust): Likewise.
10694 (aarch64_emit_int_call_1): Likewise.
10695 (aarch64_emit_void_call_2): Likewise.
10696 (aarch64_emit_eq_goto): Likewise.
10697 (aarch64_emit_ne_goto): Likewise.
10698 (aarch64_emit_lt_goto): Likewise.
10699 (aarch64_emit_le_goto): Likewise.
10700 (aarch64_emit_gt_goto): Likewise.
10701 (aarch64_emit_ge_got): Likewise.
10702 (aarch64_emit_ops_impl): New static global variable.
10703 (aarch64_emit_ops): New target function, return
10704 &aarch64_emit_ops_impl.
10705 (struct linux_target_ops): Install it.
10707 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10709 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10710 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10712 * linux-aarch64-ipa.c: New file.
10713 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10715 (aarch64_get_thread_area): New target method.
10716 (extract_signed_bitfield): New helper function.
10717 (aarch64_decode_ldr_literal): New function.
10718 (enum aarch64_opcodes): New enum.
10719 (struct aarch64_register): New struct.
10720 (struct aarch64_operand): New struct.
10721 (x0): New static global.
10730 (aarch64_register): New helper function.
10731 (register_operand): Likewise.
10732 (immediate_operand): Likewise.
10733 (struct aarch64_memory_operand): New struct.
10734 (offset_memory_operand): New helper function.
10735 (preindex_memory_operand): Likewise.
10736 (enum aarch64_system_control_registers): New enum.
10737 (ENCODE): New macro.
10738 (emit_insn): New helper function.
10739 (emit_b): New function.
10740 (emit_bcond): Likewise.
10741 (emit_cb): Likewise.
10742 (emit_tb): Likewise.
10743 (emit_blr): Likewise.
10744 (emit_stp): Likewise.
10745 (emit_ldp_q_offset): Likewise.
10746 (emit_stp_q_offset): Likewise.
10747 (emit_load_store): Likewise.
10748 (emit_ldr): Likewise.
10749 (emit_ldrsw): Likewise.
10750 (emit_str): Likewise.
10751 (emit_ldaxr): Likewise.
10752 (emit_stxr): Likewise.
10753 (emit_stlr): Likewise.
10754 (emit_data_processing_reg): Likewise.
10755 (emit_data_processing): Likewise.
10756 (emit_add): Likewise.
10757 (emit_sub): Likewise.
10758 (emit_mov): Likewise.
10759 (emit_movk): Likewise.
10760 (emit_mov_addr): Likewise.
10761 (emit_mrs): Likewise.
10762 (emit_msr): Likewise.
10763 (emit_sevl): Likewise.
10764 (emit_wfe): Likewise.
10765 (append_insns): Likewise.
10766 (can_encode_int32_in): New helper function.
10767 (aarch64_relocate_instruction): New function.
10768 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10769 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10770 (struct linux_target_ops): Install aarch64_get_thread_area,
10771 aarch64_install_fast_tracepoint_jump_pad and
10772 aarch64_get_min_fast_tracepoint_insn_len.
10774 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10776 * Makefile.in (aarch64-insn.o): New rule.
10777 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10779 2015-09-21 Yao Qi <yao.qi@linaro.org>
10781 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10783 2015-09-21 Yao Qi <yao.qi@linaro.org>
10785 * tracepoint.c (max_jump_pad_size): Remove.
10787 2015-09-18 Yao Qi <yao.qi@linaro.org>
10789 * linux-aarch64-low.c: Don't include sys/uio.h.
10790 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10792 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10794 * tracepoint.c (eval_result_type): Change prototype.
10795 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10797 2015-09-15 Pedro Alves <palves@redhat.com>
10799 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10800 Check whether to report exec events instead of checking whether
10801 multiprocess is enabled.
10803 2015-09-15 Pedro Alves <palves@redhat.com>
10806 * remote-utils.c (prepare_resume_reply): Merge
10807 TARGET_WAITKIND_VFORK_DONE switch case with the
10808 TARGET_WAITKIND_FORKED case.
10810 2015-09-15 Yao Qi <yao.qi@linaro.org>
10812 * server.c (handle_query): Check string comparison using
10813 "else if" instead of "if".
10815 2015-09-15 Yao Qi <yao.qi@linaro.org>
10817 * server.c (vCont_supported): New global variable.
10818 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10819 matches. Append ";vContSupported+" to own_buf.
10820 (handle_v_requests): Append ";s;S" to own_buf if target supports
10821 hardware single step or vCont_supported is false.
10822 (capture_main): Set vCont_supported to zero.
10824 2015-09-15 Yao Qi <yao.qi@linaro.org>
10826 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10828 (linux_supports_hardware_single_step): ... New function.
10829 (linux_target_ops): Update.
10830 * lynx-low.c (lynx_target_ops): Set field
10831 supports_hardware_single_step to target_can_do_hardware_single_step.
10832 * nto-low.c (nto_target_ops): Likewise.
10833 * spu-low.c (spu_target_ops): Likewise.
10834 * win32-low.c (win32_target_ops): Likewise.
10835 * target.c (target_can_do_hardware_single_step): New function.
10836 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10837 Remove. <supports_hardware_single_step>: New field.
10838 (target_supports_conditional_breakpoints): Remove.
10839 (target_supports_hardware_single_step): New macro.
10840 (target_can_do_hardware_single_step): Declare.
10841 * server.c (handle_query): Use target_supports_hardware_single_step
10842 instead of target_supports_conditional_breakpoints.
10844 2015-09-15 Yao Qi <yao.qi@linaro.org>
10846 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10848 (struct linux_target_ops the_low_target): Install
10849 aarch64_linux_siginfo_fixup.
10851 2015-09-11 Don Breazeal <donb@codesourcery.com>
10852 Luis Machado <lgustavo@codesourcery.com>
10854 * linux-low.c (linux_mourn): Static declaration.
10855 (linux_arch_setup): Move in front of
10856 handle_extended_wait.
10857 (linux_arch_setup_thread): New function.
10858 (handle_extended_wait): Handle exec events. Call
10859 linux_arch_setup_thread. Make event_lwp argument a
10860 pointer-to-a-pointer.
10861 (check_zombie_leaders): Do not check stopped threads.
10862 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10863 (linux_low_filter_event): Add lwp and thread for exec'ing
10864 non-leader thread if leader thread has been deleted.
10865 Refactor code into linux_arch_setup_thread and call it.
10866 Pass child lwp pointer by reference to handle_extended_wait.
10867 (linux_wait_for_event_filtered): Update comment.
10868 (linux_wait_1): Prevent clobbering exec event status.
10869 (linux_supports_exec_events): New function.
10870 (linux_target_ops) <supports_exec_events>: Initialize new member.
10871 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10873 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10874 * server.c (report_exec_events): New global variable.
10875 (handle_query): Handle qSupported query for exec-events feature.
10876 (captured_main): Initialize report_exec_events.
10877 * server.h (report_exec_events): Declare new global variable.
10878 * target.h (struct target_ops) <supports_exec_events>: New
10880 (target_supports_exec_events): New macro.
10881 * win32-low.c (win32_target_ops) <supports_exec_events>:
10882 Initialize new member.
10884 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10886 * linux-low.c (linux_low_enable_btrace): Remove.
10887 (linux_target_ops): Replace linux_low_enable_btrace with
10888 linux_enable_btrace.
10890 2015-09-03 Yao Qi <yao.qi@linaro.org>
10892 * linux-aarch64-low.c (aarch64_insert_point): Call
10893 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10896 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10898 * linux-low.c (check_stopped_by_breakpoint): Use
10899 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10901 2015-08-27 Pedro Alves <palves@redhat.com>
10903 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10905 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10907 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10908 the XNEW-family equivalent.
10909 (compile_bytecodes): Likewise.
10910 * dll.c (loaded_dll): Likewise.
10911 * event-loop.c (append_callback_event): Likewise.
10912 (create_file_handler): Likewise.
10913 (create_file_event): Likewise.
10914 * hostio.c (handle_open): Likewise.
10915 * inferiors.c (add_thread): Likewise.
10916 (add_process): Likewise.
10917 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10918 * linux-arm-low.c (arm_new_process): Likewise.
10919 (arm_new_thread): Likewise.
10920 * linux-low.c (add_to_pid_list): Likewise.
10921 (linux_add_process): Likewise.
10922 (handle_extended_wait): Likewise.
10923 (add_lwp): Likewise.
10924 (enqueue_one_deferred_signal): Likewise.
10925 (enqueue_pending_signal): Likewise.
10926 (linux_resume_one_lwp_throw): Likewise.
10927 (linux_resume_one_thread): Likewise.
10928 (linux_read_memory): Likewise.
10929 (linux_write_memory): Likewise.
10930 * linux-mips-low.c (mips_linux_new_process): Likewise.
10931 (mips_linux_new_thread): Likewise.
10932 (mips_add_watchpoint): Likewise.
10933 * linux-x86-low.c (initialize_low_arch): Likewise.
10934 * lynx-low.c (lynx_add_process): Likewise.
10935 * mem-break.c (set_raw_breakpoint_at): Likewise.
10936 (set_breakpoint): Likewise.
10937 (add_condition_to_breakpoint): Likewise.
10938 (add_commands_to_breakpoint): Likewise.
10939 (clone_agent_expr): Likewise.
10940 (clone_one_breakpoint): Likewise.
10941 * regcache.c (new_register_cache): Likewise.
10942 * remote-utils.c (look_up_one_symbol): Likewise.
10943 * server.c (queue_stop_reply): Likewise.
10944 (start_inferior): Likewise.
10945 (queue_stop_reply_callback): Likewise.
10946 (handle_target_event): Likewise.
10947 * spu-low.c (fetch_ppc_memory): Likewise.
10948 (store_ppc_memory): Likewise.
10949 * target.c (set_target_ops): Likewise.
10950 * thread-db.c (thread_db_load_search): Likewise.
10951 (try_thread_db_load_1): Likewise.
10952 * tracepoint.c (add_tracepoint): Likewise.
10953 (add_tracepoint_action): Likewise.
10954 (create_trace_state_variable): Likewise.
10955 (cmd_qtdpsrc): Likewise.
10956 (cmd_qtro): Likewise.
10957 (add_while_stepping_state): Likewise.
10958 * win32-low.c (child_add_thread): Likewise.
10959 (get_image_name): Likewise.
10961 2015-08-25 Yao Qi <yao.qi@linaro.org>
10963 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10965 2015-08-25 Yao Qi <yao.qi@linaro.org>
10967 * Makefile.in (aarch64-linux.o): New rule.
10968 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10970 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10971 (aarch64_init_debug_reg_state): Make it extern.
10972 (aarch64_linux_prepare_to_resume): Remove.
10974 2015-08-25 Yao Qi <yao.qi@linaro.org>
10976 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10977 lwp_arch_private_info and ptid_of_lwp.
10979 2015-08-25 Yao Qi <yao.qi@linaro.org>
10981 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10982 Find proc_info by find_process_pid. All callers updated.
10984 2015-08-25 Yao Qi <yao.qi@linaro.org>
10986 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10988 (debug_reg_change_callback): Remove.
10989 (aarch64_notify_debug_reg_change): Remove.
10991 2015-08-25 Yao Qi <yao.qi@linaro.org>
10993 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10994 Call current_lwp_ptid.
10996 2015-08-25 Yao Qi <yao.qi@linaro.org>
10998 * linux-aarch64-low.c (debug_reg_change_callback): Use
11001 2015-08-25 Yao Qi <yao.qi@linaro.org>
11003 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
11005 2015-08-25 Yao Qi <yao.qi@linaro.org>
11007 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
11009 2015-08-25 Yao Qi <yao.qi@linaro.org>
11011 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
11014 2015-08-25 Yao Qi <yao.qi@linaro.org>
11016 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
11018 (debug_reg_change_callback): Remove argument entry and add argument
11019 lwp. Remove local variable thread. Don't print thread id in the
11020 debugging output. Don't check whether pid of thread equals to pid.
11021 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
11022 iterate_over_lwps instead find_inferior.
11024 2015-08-24 Pedro Alves <palves@redhat.com>
11026 * inferiors.c (get_first_process): New function.
11027 * inferiors.h (get_first_process): New declaration.
11028 * remote-utils.c (read_ptid): Default to the first process in the
11029 list, instead of to the current thread's process.
11031 2015-08-24 Pedro Alves <palves@redhat.com>
11033 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11034 * event-loop.c: Likewise.
11035 * remote-utils.c: Likewise.
11036 * tracepoint.c: Likewise.
11038 2015-08-24 Pedro Alves <palves@redhat.com>
11040 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11043 2015-08-21 Pedro Alves <palves@redhat.com>
11045 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11046 instead of literal 1.
11048 2015-08-21 Pedro Alves <palves@redhat.com>
11050 * tdesc.c (default_description): Explicitly zero-initialize.
11052 2015-08-21 Pedro Alves <palves@redhat.com>
11055 * inferiors.c (remove_thread): Discard any pending stop reply for
11057 * server.c (remove_all_on_match_pid): Rename to ...
11058 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11060 (discard_queued_stop_replies): Change parameter to a ptid. Now
11062 (handle_v_kill, kill_inferior_callback, captured_main)
11063 (process_serial_event): Adjust.
11064 * server.h (discard_queued_stop_replies): Declare.
11066 2015-08-21 Pedro Alves <palves@redhat.com>
11068 * linux-low.c (wait_for_sigstop): Always switch to no thread
11069 selected if the previously current thread dies.
11070 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11071 process instead of the current thread's.
11072 * remote-utils.c (input_interrupt): Don't check if there's no
11074 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11075 current thread to the general thread fails, error out.
11076 (handle_qxfer_auxv, handle_qxfer_libraries)
11077 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11078 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11079 (handle_query): Check if there's a thread selected instead of
11080 checking whether there's any thread in the thread list.
11081 (handle_qxfer_threads, handle_qxfer_btrace)
11082 (handle_qxfer_btrace_conf): Don't error out early if there's no
11083 thread in the thread list.
11084 (handle_v_cont, myresume): Don't set the current thread to the
11086 (process_serial_event) <Hg handling>: Also set thread_id if the
11087 previous general thread is still alive.
11088 (process_serial_event) <g/G handling>: If setting the current
11089 thread to the general thread fails, error out.
11090 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11091 thread's lwp instead of the current thread's.
11092 * target.c (set_desired_thread): If the desired thread was not
11093 found, leave the current thread pointing to NULL. Return an int
11094 (boolean) indicating success.
11095 * target.h (set_desired_thread): Change return type to int.
11097 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11099 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11100 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11102 (ps_get_thread_area): New function.
11104 2015-08-19 Gary Benson <gbenson@redhat.com>
11106 * hostio.c (handle_pread): Do not attempt to read more data
11107 than hostio_reply_with_data can fit in a packet.
11109 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11111 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11113 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11115 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11117 2015-08-06 Pedro Alves <palves@redhat.com>
11119 * tracepoint.c (expr_eval_result): Now an int.
11121 2015-08-06 Pedro Alves <palves@redhat.com>
11123 * gdbthread.h (struct regcache): Forward declare.
11124 (struct thread_info) <regcache_data>: Now a struct regcache
11126 * inferiors.c (inferior_regcache_data)
11127 (set_inferior_regcache_data): Now work with struct regcache
11129 * inferiors.h (struct regcache): Forward declare.
11130 (inferior_regcache_data, set_inferior_regcache_data): Now work
11131 with struct regcache pointers.
11132 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11133 (free_register_cache_thread): Remove struct regcache pointer
11136 2015-08-06 Pedro Alves <palves@redhat.com>
11138 * server.c (captured_main): On error, print the exception message
11139 to stderr, and if run_once is set, throw a quit.
11141 2015-08-06 Pedro Alves <palves@redhat.com>
11143 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11144 the current thread.
11146 2015-08-06 Pedro Alves <palves@redhat.com>
11148 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11149 reading beyond the passed in buffer length.
11151 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11153 * tracepoint.c (symbol_list) <required>: Remove.
11155 2015-08-06 Pedro Alves <palves@redhat.com>
11157 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11158 count if stopping and suspending threads.
11159 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11160 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11161 (linux_detach): Complete an ongoing step-over.
11162 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11164 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11165 (linux_wait_1): If passing a signal to the inferior after
11166 finishing a step-over, unsuspend and re-resume all lwps. If we
11167 see a single-step event but the thread should be continuing, don't
11168 pass the trap to gdb.
11169 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11170 internal_error instead of gdb_assert.
11171 (enqueue_pending_signal): New function.
11172 (check_ptrace_stopped_lwp_gone): Add debug output.
11173 (start_step_over): Use internal_error instead of gdb_assert.
11174 (complete_ongoing_step_over): New function.
11175 (linux_resume_one_thread): Don't resume a suspended thread.
11176 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11179 2015-08-06 Pedro Alves <palves@redhat.com>
11181 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11182 (linux_thread_alive): Use lwp_is_marked_dead.
11183 (extended_event_reported): Delete.
11184 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11185 instead of extended_event_reported.
11186 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11188 (lwp_is_marked_dead): New function.
11189 (lwp_running): Use lwp_is_marked_dead.
11190 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11193 2015-08-06 Pedro Alves <palves@redhat.com>
11195 * linux-low.c (linux_wait_1): Move fork event output out of the
11196 !report_to_gdb check. Pass event_child->waitstatus to
11197 target_waitstatus_to_string instead of ourstatus.
11199 2015-08-04 Yao Qi <yao.qi@linaro.org>
11201 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11202 if current_thread is 32 bit.
11204 2015-08-04 Yao Qi <yao.qi@linaro.org>
11206 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11207 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11208 * server.c (extended_protocol): Remove "static".
11209 * server.h (extended_protocol): Declare it.
11211 2015-08-04 Yao Qi <yao.qi@linaro.org>
11213 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11214 both aarch64 and aarch32.
11215 (aarch64_set_pc): Likewise.
11217 2015-08-04 Yao Qi <yao.qi@linaro.org>
11219 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11220 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11221 arm-with-neon.xml to srv_xmlfiles.
11222 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11223 (is_64bit_tdesc): New function.
11224 (aarch64_linux_read_description): New function.
11225 (aarch64_arch_setup): Call aarch64_linux_read_description.
11226 (regs_info): Rename to regs_info_aarch64.
11227 (aarch64_regs_info): Return right regs_info.
11228 (initialize_low_arch): Call initialize_low_arch_aarch32.
11230 2015-08-04 Yao Qi <yao.qi@linaro.org>
11232 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11233 * linux-aarch32-low.c: New file.
11234 * linux-aarch32-low.h: New file.
11235 * linux-arm-low.c (arm_fill_gregset): Move it to
11236 linux-aarch32-low.c.
11237 (arm_store_gregset): Likewise.
11238 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11239 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11240 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11241 (regs_info): Rename to regs_info_arm.
11242 (arm_regs_info): Return regs_info_aarch32 if
11243 have_ptrace_getregset is 1 and target description is
11244 arm_with_neon or arm_with_vfpv3.
11245 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11246 Call initialize_low_arch_aarch32 instead.
11248 2015-08-04 Yao Qi <yao.qi@linaro.org>
11250 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11251 * linux-low.c: ... here.
11252 * linux-low.h (have_ptrace_getregset): Declare it.
11254 2015-08-04 Pedro Alves <palves@redhat.com>
11256 * thread-db.c (struct thread_db): Use new typedefs.
11257 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11259 (disable_thread_event_reporting): Cast result of dlsym to
11260 destination function pointer type.
11261 (thread_db_mourn): Use td_ta_delete_ftype.
11263 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11265 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11267 (CDX_BREAKPOINT): Define for R2.
11268 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11269 (the_low_target): Add comments.
11271 2015-07-30 Yao Qi <yao.qi@linaro.org>
11273 * linux-arm-low.c (arm_hwcap): Remove it.
11274 (arm_read_description): New local variable arm_hwcap. Don't
11275 set arm_hwcap to zero.
11277 2015-07-30 Yao Qi <yao.qi@linaro.org>
11279 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11280 Use regcache->tdesc instead.
11281 (arm_store_wmmxregset): Likewise.
11282 (arm_fill_vfpregset): Likewise.
11283 (arm_store_vfpregset): Likewise.
11285 2015-07-30 Yao Qi <yao.qi@linaro.org>
11287 * linux-arm-low.c: Include arch/arm.h.
11288 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11289 (arm_store_gregset): Likewise.
11291 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11293 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11294 ptrace's 4th parameter.
11296 2015-07-27 Yao Qi <yao.qi@linaro.org>
11298 * configure.srv (case aarch64*-*-linux*): Don't set
11301 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11303 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11305 * linux-arm-low.c: Likewise.
11306 * linux-cris-low.c: Likewise.
11307 * linux-crisv32-low.c: Likewise.
11308 * linux-low.c: Likewise.
11309 * linux-m68k-low.c: Likewise.
11310 * linux-mips-low.c: Likewise.
11311 * linux-nios2-low.c: Likewise.
11312 * linux-s390-low.c: Likewise.
11313 * linux-sparc-low.c: Likewise.
11314 * linux-tic6x-low.c: Likewise.
11315 * linux-tile-low.c: Likewise.
11316 * linux-x86-low.c: Likewise.
11318 2015-07-24 Pedro Alves <palves@redhat.com>
11320 * config.in: Regenerate.
11321 * configure: Regenerate.
11323 2015-07-24 Pedro Alves <palves@redhat.com>
11325 * acinclude.m4: Include ../ptrace.m4.
11326 * configure.ac: Call GDB_AC_PTRACE.
11327 * config.in, configure: Regenerate.
11329 2015-07-24 Yao Qi <yao.qi@linaro.org>
11331 * linux-low.c (linux_create_inferior): Remove setting to
11332 proc->priv->new_inferior.
11333 (linux_attach): Likewise.
11334 (linux_low_filter_event): Likewise.
11335 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11337 2015-07-24 Yao Qi <yao.qi@linaro.org>
11339 * linux-low.c (linux_arch_setup): New function.
11340 (linux_low_filter_event): If proc->tdesc is NULL and
11341 proc->attached is true, call the_low_target.arch_setup.
11342 Otherwise, keep status pending, and return.
11343 (linux_resume_one_lwp_throw): Don't call get_pc if
11344 thread->while_stepping isn't NULL. Don't call
11345 get_thread_regcache if proc->tdesc is NULL.
11346 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11347 (linux_target_ops): Install arch_setup.
11348 * server.c (start_inferior): Call the_target->arch_setup.
11349 * target.h (struct target_ops) <arch_setup>: New field.
11350 (target_arch_setup): New marco.
11351 * lynx-low.c (lynx_target_ops): Update.
11352 * nto-low.c (nto_target_ops): Update.
11353 * spu-low.c (spu_target_ops): Update.
11354 * win32-low.c (win32_target_ops): Update.
11356 2015-07-24 Yao Qi <yao.qi@linaro.org>
11358 * linux-low.c (linux_add_process): Don't set
11359 proc->priv->new_inferior.
11360 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11361 (linux_attach): Likewise.
11363 2015-07-24 Yao Qi <yao.qi@linaro.org>
11365 * server.c (start_inferior): Code refactor.
11367 2015-07-24 Yao Qi <yao.qi@linaro.org>
11369 * server.c (process_serial_event): Set general_thread.
11371 2015-07-21 Yao Qi <yao.qi@linaro.org>
11373 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11374 aarch64_linux_get_debug_reg_capacity.
11376 2015-07-17 Yao Qi <yao.qi@linaro.org>
11378 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11379 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11380 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11381 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11382 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11383 (AARCH64_HWP_ALIGNMENT): Likewise.
11384 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11385 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11386 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11387 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11388 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11389 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11390 (struct aarch64_debug_reg_state): Likewise.
11391 (struct arch_lwp_info): Likewise.
11392 (aarch64_align_watchpoint): Likewise.
11393 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11394 (aarch64_watchpoint_length): Likewise.
11395 (aarch64_point_encode_ctrl_reg): Likewise
11396 (aarch64_point_is_aligned): Likewise.
11397 (aarch64_align_watchpoint): Likewise.
11398 (aarch64_linux_set_debug_regs):
11399 (aarch64_dr_state_insert_one_point): Likewise.
11400 (aarch64_dr_state_remove_one_point): Likewise.
11401 (aarch64_handle_breakpoint): Likewise.
11402 (aarch64_handle_aligned_watchpoint): Likewise.
11403 (aarch64_handle_unaligned_watchpoint): Likewise.
11404 (aarch64_handle_watchpoint): Likewise.
11406 2015-07-17 Yao Qi <yao.qi@linaro.org>
11408 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11409 and don't aarch64_get_debug_reg_state. All callers update.
11410 (aarch64_handle_aligned_watchpoint): Likewise.
11411 (aarch64_handle_unaligned_watchpoint): Likewise.
11412 (aarch64_handle_watchpoint): Likewise.
11413 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11414 (aarch64_remove_point): Likewise.
11416 2015-07-17 Yao Qi <yao.qi@linaro.org>
11418 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11420 (aarch64_handle_unaligned_watchpoint): Likewise.
11422 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11424 Revert the previous 3 commits:
11425 Move gdb_regex* to common/
11426 Move linux_find_memory_regions_full & co.
11427 gdbserver build-id attribute generator
11429 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11430 Jan Kratochvil <jan.kratochvil@redhat.com>
11432 gdbserver build-id attribute generator.
11433 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11434 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11435 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11437 (get_dynamic): Use find_pdhr to traverse program headers.
11438 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11439 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11440 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11441 (get_hex_build_id): New.
11442 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11443 to reply XML document.
11445 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11446 Jan Kratochvil <jan.kratochvil@redhat.com>
11448 * target.c: Include target/target-utils.h and fcntl.h.
11449 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11450 (target_fileio_read_stralloc): New functions.
11452 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11454 * Makefile.in (OBS): Add gdb_regex.o.
11455 (gdb_regex.o): New.
11456 * config.in: Rebuilt.
11457 * configure: Rebuilt.
11459 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11460 Jan Kratochvil <jan.kratochvil@redhat.com>
11462 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11463 * Makefile.in (OBS): Add target-utils.o.
11464 (linux-maps.o, target-utils.o): New.
11465 * configure.srv (srv_linux_obj): Add linux-maps.o.
11467 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11469 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11470 function, return 1.
11471 (the_low_target): Install it.
11473 2015-07-14 Pedro Alves <palves@redhat.com>
11475 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11476 Instead, ignore ECHILD, and throw an error for other errnos.
11478 2015-07-10 Pedro Alves <palves@redhat.com>
11480 * event-loop.c (struct callback_event) <data>: Change type to
11481 gdb_client_data instance instead of gdb_client_data pointer.
11482 (append_callback_event): Adjust.
11484 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11486 * linux-aarch64-low.c: Add comments for each linux_target_ops
11487 method. Remove comments already covered in target_ops and
11488 linux_target_ops definitions.
11489 (the_low_target): Add comments for each unimplemented method.
11491 2015-07-09 Yao Qi <yao.qi@linaro.org>
11493 * linux-aarch64-low.c (aarch64_regmap): Remove.
11494 (aarch64_usrregs_info): Remove.
11495 (regs_info): Set field usrregs to NULL.
11497 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11499 * linux-low.c: Include "rsp-low.h"
11500 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11501 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11502 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11503 (handle_btrace_enable_pt): New.
11504 (handle_btrace_general_set): Support "pt".
11505 (handle_btrace_conf_general_set): Support "pt:size".
11507 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11509 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11512 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11514 * linux-aarch64-low.c: Remove comment about endianness.
11515 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11516 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11519 2015-06-24 Gary Benson <gbenson@redhat.com>
11521 * linux-i386-ipa.c (stdint.h): Do not include.
11522 * lynx-i386-low.c (stdint.h): Likewise.
11523 * lynx-ppc-low.c (stdint.h): Likewise.
11524 * mem-break.c (stdint.h): Likewise.
11525 * thread-db.c (stdint.h): Likewise.
11526 * tracepoint.c (stdint.h): Likewise.
11527 * win32-low.c (stdint.h): Likewise.
11529 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11531 * server.c (write_qxfer_response): Update call to
11532 remote_escape_output.
11534 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11535 Jan Kratochvil <jan.kratochvil@redhat.com>
11537 Merge multiple hex conversions.
11538 * gdbreplay.c (tohex): Rename to 'fromhex'.
11539 (logchar): Use fromhex.
11541 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11543 * server.c (handle_qxfer_libraries): Set `version' attribute for
11546 2015-06-10 Gary Benson <gbenson@redhat.com>
11548 * target.h (struct target_ops) <multifs_open>: New field.
11549 <multifs_unlink>: Likewise.
11550 <multifs_readlink>: Likewise.
11551 * linux-low.c (nat/linux-namespaces.h): New include.
11552 (linux_target_ops): Initialize the_target->multifs_open,
11553 the_target->multifs_unlink and the_target->multifs_readlink.
11554 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11555 * hostio.c (hostio_fs_pid): New static variable.
11556 (hostio_handle_new_gdb_connection): New function.
11557 (handle_setfs): Likewise.
11558 (handle_open): Use the_target->multifs_open as appropriate.
11559 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11560 (handle_readlink): Use the_target->multifs_readlink as
11562 (handle_vFile): Handle vFile:setfs packets.
11563 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11564 after target_handle_new_gdb_connection.
11566 2015-06-10 Gary Benson <gbenson@redhat.com>
11568 * configure.ac (AC_CHECK_FUNCS): Add setns.
11569 * config.in: Regenerate.
11570 * configure: Likewise.
11571 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11572 (linux-namespaces.o): New rule.
11573 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11575 2015-06-09 Gary Benson <gbenson@redhat.com>
11577 * hostio.c (handle_open): Process mode argument with
11578 fileio_to_host_mode.
11580 2015-06-01 Yao Qi <yao.qi@linaro.org>
11582 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11583 * linux-x86-low.c: Likewise.
11585 2015-05-28 Don Breazeal <donb@codesourcery.com>
11587 * linux-low.c (handle_extended_wait): Initialize
11588 thread_info.last_resume_kind for new fork children.
11590 2015-05-15 Pedro Alves <palves@redhat.com>
11592 * target.h (target_handle_new_gdb_connection): Rewrite using if
11593 wrapped in do/while.
11595 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11597 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11598 * configure, config.in: Regenerate.
11599 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11602 2015-05-12 Don Breazeal <donb@codesourcery.com>
11604 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11605 PTRACE_EVENT_VFORK_DONE.
11606 (linux_low_ptrace_options, extended_event_reported): Add vfork
11608 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11609 and "vforkdone" for RSP 'T' Stop Reply Packet.
11610 * server.h (report_vfork_events): Declare
11613 2015-05-12 Don Breazeal <donb@codesourcery.com>
11615 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11616 (the_low_target) <new_fork>: Initialize new member.
11617 * linux-arm-low.c (arm_new_fork): New function.
11618 (the_low_target) <new_fork>: Initialize new member.
11619 * linux-low.c (handle_extended_wait): Call new target function
11621 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11622 * linux-mips-low.c (mips_add_watchpoint): New function
11623 extracted from mips_insert_point.
11624 (the_low_target) <new_fork>: Initialize new member.
11625 (mips_linux_new_fork): New function.
11626 (mips_insert_point): Call mips_add_watchpoint.
11627 * linux-x86-low.c (x86_linux_new_fork): New function.
11628 (the_low_target) <new_fork>: Initialize new member.
11630 2015-05-12 Don Breazeal <donb@codesourcery.com>
11632 * linux-low.c (handle_extended_wait): Implement return value,
11633 rename argument 'event_child' to 'event_lwp', handle
11634 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11635 (linux_low_ptrace_options): New function.
11636 (linux_low_filter_event): Call linux_low_ptrace_options,
11637 use different argument fo linux_enable_event_reporting,
11638 use return value from handle_extended_wait.
11639 (extended_event_reported): New function.
11640 (linux_wait_1): Call extended_event_reported and set
11641 status to report fork events.
11642 (linux_write_memory): Add pid to debug message.
11643 (reset_lwp_ptrace_options_callback): New function.
11644 (linux_handle_new_gdb_connection): New function.
11645 (linux_target_ops): Initialize new structure member.
11646 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11647 * lynx-low.c: Initialize new structure member.
11648 * remote-utils.c (prepare_resume_reply): Implement stop reason
11649 "fork" for "T" stop message.
11650 * server.c (handle_query): Call handle_new_gdb_connection.
11651 * server.h (report_fork_events): Declare global flag.
11652 * target.h (struct target_ops) <handle_new_gdb_connection>:
11654 (target_handle_new_gdb_connection): New macro.
11655 * win32-low.c: Initialize new structure member.
11657 2015-05-12 Don Breazeal <donb@codesourcery.com>
11659 * mem-break.c (APPEND_TO_LIST): Define macro.
11660 (clone_agent_expr): New function.
11661 (clone_one_breakpoint): New function.
11662 (clone_all_breakpoints): New function.
11663 * mem-break.h: Declare new functions.
11665 2015-05-12 Don Breazeal <donb@codesourcery.com>
11667 * linux-low.c (linux_supports_fork_events): New function.
11668 (linux_supports_vfork_events): New function.
11669 (linux_target_ops): Initialize new structure members.
11670 (initialize_low): Call linux_check_ptrace_features.
11671 * lynx-low.c (lynx_target_ops): Initialize new structure
11673 * server.c (report_fork_events, report_vfork_events):
11675 (handle_query): Add new features to qSupported packet and
11677 (captured_main): Initialize new global variables.
11678 * target.h (struct target_ops) <supports_fork_events>:
11680 <supports_vfork_events>: New member.
11681 (target_supports_fork_events): New macro.
11682 (target_supports_vfork_events): New macro.
11683 * win32-low.c (win32_target_ops): Initialize new structure
11686 2015-05-12 Gary Benson <gbenson@redhat.com>
11688 * server.c (handle_qxfer_exec_file): Use current process
11691 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11693 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11694 Remove HAVE_PTRACE_GETREGS conditionals.
11695 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11696 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11698 2015-05-08 Yao Qi <yao.qi@linaro.org>
11700 * linux-low.c (linux_supports_conditional_breakpoints): New
11702 (linux_target_ops): Install new target method.
11703 * lynx-low.c (lynx_target_ops): Install NULL hook for
11704 supports_conditional_breakpoints.
11705 * nto-low.c (nto_target_ops): Likewise.
11706 * spu-low.c (spu_target_ops): Likewise.
11707 * win32-low.c (win32_target_ops): Likewise.
11708 * server.c (handle_query): Check
11709 target_supports_conditional_breakpoints.
11710 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11712 (target_supports_conditional_breakpoints): New macro.
11714 2015-05-06 Pedro Alves <palves@redhat.com>
11717 * server.c (start_inferior): If the process exits, mourn it.
11719 2015-04-21 Gary Benson <gbenson@redhat.com>
11721 * hostio.c (fileio_open_flags_to_host): Factored out to
11722 fileio_to_host_openflags in common/fileio.c. Single use
11725 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11727 * linux-xtensa-low.c (xtensa_fill_gregset)
11728 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11731 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11733 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11734 (regs_info): Replace usrregs pointer with NULL.
11736 2015-04-17 Gary Benson <gbenson@redhat.com>
11738 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11739 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11740 * server.c (handle_qxfer_exec_file): New function.
11741 (qxfer_packets): Add exec-file entry.
11742 (handle_query): Report qXfer:exec-file:read as supported packet.
11744 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11746 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11748 2015-04-09 Gary Benson <gbenson@redhat.com>
11750 * hostio-errno.c (errno_to_fileio_error): Remove function.
11751 Update caller to use remote_fileio_to_fio_error.
11753 2015-04-09 Yao Qi <yao.qi@linaro.org>
11755 * linux-low.c (linux_insert_point): Call
11756 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11757 (linux_remove_point): Call remove_memory_breakpoint if type is
11759 * linux-x86-low.c (x86_insert_point): Don't call
11760 insert_memory_breakpoint.
11761 (x86_remove_point): Don't call remove_memory_breakpoint.
11763 2015-04-01 Pedro Alves <palves@redhat.com>
11764 Cleber Rosa <crosa@redhat.com>
11766 * server.c (gdbserver_usage): Reorganize and extend the usage
11769 2015-03-24 Pedro Alves <palves@redhat.com>
11771 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11772 output. Also dump TRAP_TRACE.
11773 (linux_low_filter_event): In debug output, distinguish a
11774 resume_stop SIGSTOP from a delayed SIGSTOP.
11776 2015-03-24 Gary Benson <gbenson@redhat.com>
11778 * linux-x86-low.c (x86_linux_new_thread): Moved to
11780 (x86_linux_prepare_to_resume): Likewise.
11782 2015-03-24 Gary Benson <gbenson@redhat.com>
11784 * Makefile.in (x86-linux-dregs.o): New rule.
11785 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11786 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11787 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11788 (x86_linux_dr_get): Likewise.
11789 (x86_linux_dr_set): Likewise.
11790 (update_debug_registers_callback): Likewise.
11791 (x86_linux_dr_set_addr): Likewise.
11792 (x86_linux_dr_get_addr): Likewise.
11793 (x86_linux_dr_set_control): Likewise.
11794 (x86_linux_dr_get_control): Likewise.
11795 (x86_linux_dr_get_status): Likewise.
11796 (x86_linux_update_debug_registers): Likewise.
11798 2015-03-24 Gary Benson <gbenson@redhat.com>
11800 * linux-x86-low.c (x86_linux_update_debug_registers):
11801 New function, factored out from...
11802 (x86_linux_prepare_to_resume): ...this.
11804 2015-03-24 Gary Benson <gbenson@redhat.com>
11806 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11807 (x86_linux_dr_set): Likewise.
11808 (update_debug_registers_callback): Likewise.
11809 (x86_linux_dr_set_addr): Likewise.
11810 (x86_linux_dr_get_addr): Likewise.
11811 (x86_linux_dr_set_control): Likewise.
11812 (x86_linux_dr_get_control): Likewise.
11813 (x86_linux_dr_get_status): Likewise.
11814 (x86_linux_prepare_to_resume): Likewise.
11816 2015-03-24 Gary Benson <gbenson@redhat.com>
11818 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11819 Use perror_with_name. Pass string through gettext.
11820 (x86_linux_dr_set): Likewise.
11822 2015-03-24 Gary Benson <gbenson@redhat.com>
11824 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11825 (x86_linux_dr_set_addr): ...this.
11826 (x86_dr_low_get_addr): Rename to...
11827 (x86_linux_dr_get_addr): ...this.
11828 (x86_dr_low_set_control): Rename to...
11829 (x86_linux_dr_set_control): ...this.
11830 (x86_dr_low_get_control): Rename to...
11831 (x86_linux_dr_get_control): ...this.
11832 (x86_dr_low_get_status): Rename to...
11833 (x86_linux_dr_get_status): ...this.
11834 (x86_dr_low): Update with new function names.
11836 2015-03-24 Gary Benson <gbenson@redhat.com>
11838 * Makefile.in (x86-linux.o): New rule.
11839 * configure.srv: Add x86-linux.o to relevant targets.
11840 * linux-low.c (lwp_set_arch_private_info): New function.
11841 (lwp_arch_private_info): Likewise.
11842 * linux-x86-low.c: Include nat/x86-linux.h.
11843 (arch_lwp_info): Removed structure.
11844 (update_debug_registers_callback):
11845 Use lwp_set_debug_registers_changed.
11846 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11847 and lwp_set_debug_registers_changed.
11848 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11850 2015-03-24 Gary Benson <gbenson@redhat.com>
11852 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11853 * linux-arm-low.c (arm_new_thread): Likewise.
11854 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11855 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11856 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11857 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11859 2015-03-24 Gary Benson <gbenson@redhat.com>
11861 * linux-low.c (ptid_of_lwp): New function.
11862 (lwp_is_stopped): Likewise.
11863 (lwp_stop_reason): Likewise.
11864 * linux-x86-low.c (update_debug_registers_callback):
11865 Use lwp_is_stopped.
11866 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11869 2015-03-24 Gary Benson <gbenson@redhat.com>
11871 * linux-low.h (linux_stop_lwp): Remove declaration.
11873 2015-03-24 Gary Benson <gbenson@redhat.com>
11875 * linux-low.h: Include nat/linux-nat.h.
11876 * linux-low.c (iterate_over_lwps_args): New structure.
11877 (iterate_over_lwps_filter): New function.
11878 (iterate_over_lwps): Likewise.
11879 * linux-x86-low.c (update_debug_registers_callback):
11880 Update signature to what iterate_over_lwps expects.
11881 Remove PID check that iterate_over_lwps now performs.
11882 (x86_dr_low_set_addr): Use iterate_over_lwps.
11883 (x86_dr_low_set_control): Likewise.
11885 2015-03-24 Gary Benson <gbenson@redhat.com>
11887 * linux-x86-low.c (x86_debug_reg_state): New function.
11888 (x86_linux_prepare_to_resume): Use the above.
11890 2015-03-24 Gary Benson <gbenson@redhat.com>
11892 * linux-low.c (current_lwp_ptid): New function.
11893 * linux-x86-low.c: Include nat/linux-nat.h.
11894 (x86_dr_low_get_addr): Use current_lwp_ptid.
11895 (x86_dr_low_get_control): Likewise.
11896 (x86_dr_low_get_status): Likewise.
11898 2015-03-20 Pedro Alves <palves@redhat.com>
11900 * tracepoint.c (cmd_qtstatus): Make "str" const.
11902 2015-03-20 Pedro Alves <palves@redhat.com>
11904 * server.c (handle_general_set): Make "req_str" const.
11906 2015-03-19 Pedro Alves <palves@redhat.com>
11908 * linux-low.c (linux_resume_one_lwp): Rename to ...
11909 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11910 instead call perror_with_name.
11911 (check_ptrace_stopped_lwp_gone): New function.
11912 (linux_resume_one_lwp): Reimplement as wrapper around
11913 linux_resume_one_lwp_throw that swallows errors if the LWP is
11916 2015-03-19 Pedro Alves <palves@redhat.com>
11918 * linux-low.c (count_events_callback, select_event_lwp_callback):
11919 No longer check whether the thread has resume_stop as last resume
11922 2015-03-19 Pedro Alves <palves@redhat.com>
11924 * linux-low.c (count_events_callback, select_event_lwp_callback):
11925 Use the lwp's status_pending_p field, not the thread's.
11927 2015-03-19 Pedro Alves <palves@redhat.com>
11929 * linux-low.c (select_event_lwp_callback): Update comments to
11930 no longer mention SIGTRAP.
11932 2015-03-18 Gary Benson <gbenson@redhat.com>
11934 * server.c (handle_query): Do not report vFile:fstat as supported.
11936 2015-03-11 Gary Benson <gbenson@redhat.com>
11938 * hostio.c (sys/types.h): New include.
11939 (sys/stat.h): Likewise.
11940 (common-remote-fileio.h): Likewise.
11941 (handle_fstat): New function.
11942 (handle_vFile): Handle vFile:fstat packets.
11944 2015-03-11 Gary Benson <gbenson@redhat.com>
11946 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11947 struct stat.st_blocks and struct stat.st_blksize.
11948 * configure: Regenerate.
11949 * config.in: Likewise.
11950 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11951 (OBS): Add common-remote-fileio.o.
11952 (common-remote-fileio.o): New rule.
11954 2015-03-09 Pedro Alves <palves@redhat.com>
11956 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11957 'struct sockaddr' pointer in 'accept' call.
11959 2015-03-09 Pedro Alves <palves@redhat.com>
11962 2015-03-07 Pedro Alves <palves@redhat.com>
11963 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11964 or <winsock2.h> here. Instead include "gdb_socket.h".
11965 (remote_open): Use union gdb_sockaddr_u.
11966 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11967 or <winsock2.h> here. Instead include "gdb_socket.h".
11968 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11969 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11971 (init_named_socket, gdb_agent_helper_thread): Use union
11974 2015-03-07 Pedro Alves <palves@redhat.com>
11976 * configure.ac (build_warnings): Move
11977 -Wdeclaration-after-statement to the C-specific set.
11978 * configure: Regenerate.
11980 2015-03-07 Pedro Alves <palves@redhat.com>
11982 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11983 or <winsock2.h> here. Instead include "gdb_socket.h".
11984 (remote_open): Use union gdb_sockaddr_u.
11985 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11986 or <winsock2.h> here. Instead include "gdb_socket.h".
11987 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11988 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11990 (init_named_socket, gdb_agent_helper_thread): Use union
11993 2015-03-07 Pedro Alves <palves@redhat.com>
11995 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11998 2015-03-06 Yao Qi <yao.qi@linaro.org>
12000 * linux-aarch64-low.c (aarch64_insert_point): Use
12001 show_debug_regs as a boolean.
12002 (aarch64_remove_point): Likewise.
12004 2015-03-05 Pedro Alves <palves@redhat.com>
12006 * lynx-low.c (lynx_target_ops): Install NULL hooks for
12007 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
12008 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
12009 * nto-low.c (nto_target_ops): Likewise.
12010 * spu-low.c (spu_target_ops): Likewise.
12011 * win32-low.c (win32_target_ops): Likewise.
12013 2015-03-04 Pedro Alves <palves@redhat.com>
12015 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
12016 Decide whether a breakpoint triggered based on the SIGTRAP's
12018 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
12019 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
12020 (linux_low_filter_event): Check for breakpoints before checking
12022 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
12024 (linux_stopped_by_sw_breakpoint)
12025 (linux_supports_stopped_by_sw_breakpoint)
12026 (linux_stopped_by_hw_breakpoint)
12027 (linux_supports_stopped_by_hw_breakpoint): New functions.
12028 (linux_target_ops): Install new target methods.
12030 2015-03-04 Pedro Alves <palves@redhat.com>
12032 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12033 * server.c (swbreak_feature, hwbreak_feature): New globals.
12034 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12035 (captured_main): Clear swbreak_feature and hwbreak_feature.
12036 * server.h (swbreak_feature, hwbreak_feature): Declare.
12037 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12038 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12039 supports_stopped_by_hw_breakpoint>: New fields.
12040 (target_supports_stopped_by_sw_breakpoint)
12041 (target_stopped_by_sw_breakpoint)
12042 (target_supports_stopped_by_hw_breakpoint)
12043 (target_stopped_by_hw_breakpoint): Declare.
12045 2015-03-04 Pedro Alves <palves@redhat.com>
12047 enum lwp_stop_reason -> enum target_stop_reason
12048 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12049 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12050 (linux_wait_1, stuck_in_jump_pad_callback)
12051 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12052 (linux_stopped_by_watchpoint):
12053 * linux-low.h (enum lwp_stop_reason): Delete.
12054 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12055 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12057 2015-03-04 Yao Qi <yao.qi@linaro.org>
12059 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12061 2015-03-03 Gary Benson <gbenson@redhat.com>
12063 * hostio.c (handle_vFile): Fix prefix lengths.
12065 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12067 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12070 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12072 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12073 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12074 (clean): Add "rm -f" for above C files.
12075 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12076 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12077 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12078 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12079 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12080 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12081 (init_registers_s390x_vx_linux64)
12082 (init_registers_s390x_tevx_linux64)
12083 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12084 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12086 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12087 (s390_store_vxrs_high): New functions.
12088 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12090 (s390_arch_setup): Add logic for selecting one of the new target
12091 descriptions. Activate the new vector regsets if applicable.
12092 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12093 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12094 and init_registers_s390x_tevx_linux64.
12096 2015-03-01 Pedro Alves <palves@redhat.com>
12098 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12101 2015-02-27 Pedro Alves <palves@redhat.com>
12103 * linux-x86-low.c (u_debugreg_offset): New function.
12104 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12106 2015-02-27 Pedro Alves <palves@redhat.com>
12108 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12109 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12110 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12111 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12112 (ps_lsetfpregs, ps_getpid)
12113 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12114 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12115 (ps_lsetxregs, ps_plog): Declare.
12117 2015-02-27 Pedro Alves <palves@redhat.com>
12119 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12120 IP_AGENT_EXPORT_FUNC.
12121 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12122 IP_AGENT_EXPORT_FUNC.
12123 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12124 (IP_AGENT_EXPORT): Delete.
12125 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12126 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12127 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12128 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12129 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12130 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12131 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12132 (traceframe_read_count, traceframe_write_count)
12133 (traceframes_created, trace_state_variables, get_raw_reg)
12134 (get_trace_state_variable_value, set_trace_state_variable_value)
12135 (ust_loaded, helper_thread_id, cmd_buf): Use
12136 IPA_SYM_EXPORTED_NAME.
12137 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12138 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12139 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12140 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12141 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12142 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12143 EXTERN_C_PUSH/EXTERN_C_POP.
12144 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12145 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12146 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12147 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12148 (traceframe_write_count, traceframe_read_count)
12149 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12150 (about_to_request_buffer_space, get_trace_state_variable_value)
12151 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12152 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12153 EXTERN_C_PUSH/EXTERN_C_POP.
12154 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12155 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12156 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12157 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12158 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12159 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12160 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12161 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12163 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12164 (IP_AGENT_EXPORT_VAR_DECL): Define.
12165 (tracing): Declare.
12166 (gdb_agent_get_raw_reg): Declare.
12168 2015-02-27 Tom Tromey <tromey@redhat.com>
12169 Pedro Alves <palves@redhat.com>
12171 Rename symbols whose names are reserved C++ keywords throughout.
12173 2015-02-27 Pedro Alves <palves@redhat.com>
12175 * Makefile.in (COMPILER): New, get it from autoconf.
12176 (CXX): Get from autoconf instead.
12177 (COMPILE.pre): Use COMPILER.
12178 (CC-LD): Rename to ...
12179 (CC_LD): ... this. Use COMPILER.
12180 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12181 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12182 * acinclude.m4: Include build-with-cxx.m4.
12183 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12184 Disable -Werror by default if building in C++ mode.
12185 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12186 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12187 the C++ compiler. Save/restore CXXFLAGS too.
12188 * configure: Regenerate.
12190 2015-02-27 Pedro Alves <palves@redhat.com>
12192 * acinclude.m4: Include libiberty.m4.
12193 * configure.ac: Call libiberty_INIT.
12194 * config.in, configure: Regenerate.
12196 2015-02-26 Pedro Alves <palves@redhat.com>
12198 * linux-low.c (linux_wait_1): When incrementing the PC past a
12199 program breakpoint always use the_low_target.breakpoint_len as
12200 increment, rather than the maximum between that and
12201 the_low_target.decr_pc_after_break.
12203 2015-02-23 Pedro Alves <palves@redhat.com>
12205 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12206 thread was doing a step-over; always adjust the PC if
12207 we stepped over a permanent breakpoint.
12208 (linux_wait_1): If we stepped over breakpoint that was on top of a
12209 permanent breakpoint, manually advance the PC past it.
12211 2015-02-23 Pedro Alves <palves@redhat.com>
12213 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12215 (x86_fill_gregset, x86_store_gregset): Use it when handling
12218 2015-02-20 Pedro Alves <palves@redhat.com>
12220 * thread-db.c: Include "nat/linux-procfs.h".
12221 (thread_db_init): Skip listing new threads if the kernel supports
12222 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12224 2015-02-20 Pedro Alves <palves@redhat.com>
12226 * linux-low.c (status_pending_p_callback): Use ptid_match.
12228 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12230 PR breakpoints/16812
12231 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12232 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12233 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12235 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12237 PR breakpoints/15956
12238 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12240 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12242 * linux-low.c (linux_low_btrace_conf): Print size.
12243 * server.c (handle_btrace_conf_general_set): New.
12244 (hanle_general_set): Call handle_btrace_conf_general_set.
12245 (handle_query): Report Qbtrace-conf:bts:size as supported.
12247 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12249 * linux-low.c (linux_low_enable_btrace): Update parameters.
12250 (linux_low_btrace_conf): New.
12251 (linux_target_ops)<to_btrace_conf>: Initialize.
12252 * server.c (current_btrace_conf): New.
12253 (handle_btrace_enable): Rename to ...
12254 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12255 to target_enable_btrace. Update comment. Update users.
12256 (handle_qxfer_btrace_conf): New.
12257 (qxfer_packets): Add btrace-conf entry.
12258 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12259 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12260 (target_ops)<read_btrace_conf>: New.
12261 (target_enable_btrace): Update parameters.
12262 (target_read_btrace_conf): New.
12264 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12266 * server.c (handle_btrace_general_set): Remove call to
12267 target_supports_btrace.
12268 (supported_btrace_packets): New.
12269 (handle_query): Call supported_btrace_packets.
12270 * target.h: include btrace-common.h.
12271 (btrace_target_info): Removed.
12272 (supports_btrace, target_supports_btrace): Update parameters.
12274 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12276 * Makefile.in (SFILES): Add common/btrace-common.c.
12277 (OBS): Add common/btrace-common.o.
12278 (btrace-common.o): Add build rules.
12279 * linux-low: Include btrace-common.h.
12280 (linux_low_read_btrace): Use struct btrace_data. Call
12281 btrace_data_init and btrace_data_fini.
12283 2015-02-06 Pedro Alves <palves@redhat.com>
12285 * thread-db.c (find_new_threads_callback): Add debug output.
12287 2015-02-04 Pedro Alves <palves@redhat.com>
12289 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12290 (resume_stopped_resumed_lwps): New function.
12291 (linux_wait_for_event_filtered): Use it.
12293 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12295 * Makefile.in (SFILES): Add linux-personality.c.
12296 (linux-personality.o): New rule.
12297 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12298 list of objects to be built.
12299 * linux-low.c: Include nat/linux-personality.h.
12300 (linux_create_inferior): Remove code to disable address space
12301 randomization (moved to ../nat/linux-personality.c). Create
12302 cleanup to disable address space randomization.
12304 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12306 * Makefile.in (posix-strerror.o): New rule.
12307 (mingw-strerror.o): Likewise.
12308 * configure: Regenerated.
12309 * configure.ac: Source file ../common/common.host. Initialize new
12310 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12312 2015-01-14 Yao Qi <yao@codesourcery.com>
12314 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12315 (ppc-linux.o): New rule.
12316 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12317 * configure.ac: AC_CHECK_FUNCS(getauxval).
12318 * config.in: Re-generated.
12319 * configure: Re-generated.
12320 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12321 ppc64_64bit_inferior_p
12323 2015-01-14 Yao Qi <yao@codesourcery.com>
12325 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12326 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12327 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12328 (PT_ORIG_R3, PT_TRAP): Likewise.
12329 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12330 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12331 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12333 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12335 * i387-fp.c (i387_cache_to_xsave): In look over
12336 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12337 zmmh_low_space field by use of zmmh_high_space.
12339 2015-01-09 Pedro Alves <palves@redhat.com>
12341 * linux-low.c (step_over_bkpt): Move higher up in the file.
12342 (handle_extended_wait): Don't store the stop_pc here.
12343 (get_stop_pc): Adjust comments and rename to ...
12344 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12345 stopped for a software breakpoint or hardware breakpoint.
12346 (thread_still_has_status_pending_p): New function.
12347 (status_pending_p_callback): Use
12348 thread_still_has_status_pending_p. If the event is no longer
12349 interesting, resume the LWP.
12350 (handle_tracepoints): Add assert.
12351 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12352 (wstatus_maybe_breakpoint): New function.
12353 (cancel_breakpoint): Delete function.
12354 (check_stopped_by_watchpoint): New function, factored out from
12355 linux_low_filter_event.
12356 (lp_status_maybe_breakpoint): Delete function.
12357 (linux_low_filter_event): Remove filter_ptid argument.
12358 Leave thread group exits pending here. Store the LWP's stop PC.
12359 Always leave events pending.
12360 (linux_wait_for_event_filtered): Pull all events out of the
12361 kernel, and leave them all pending.
12362 (count_events_callback, select_event_lwp_callback): Consider all
12364 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12365 (select_event_lwp): Only give preference to the stepping LWP in
12366 all-stop mode. Adjust comments.
12367 (ignore_event): New function.
12368 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12369 references to cancel_breakpoints. Adjust to renames. Also give
12370 equal priority to all LWPs that have had events in non-stop mode.
12371 If reporting a software breakpoint event, unadjust the LWP's PC.
12372 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12373 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12375 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12376 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12377 (linux_stopped_by_watchpoint): Adjust.
12378 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12379 * linux-low.h (enum lwp_stop_reason): New.
12380 (struct lwp_info) <stop_pc>: Adjust comment.
12381 <stopped_by_watchpoint>: Delete field.
12382 <stop_reason>: New field.
12383 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12384 * mem-break.c (software_breakpoint_inserted_here)
12385 (hardware_breakpoint_inserted_here): New function.
12386 * mem-break.h (software_breakpoint_inserted_here)
12387 (hardware_breakpoint_inserted_here): Declare.
12388 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12389 (cancel_breakpoints): Delete.
12390 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12391 (upload_fast_traceframes): Remove references to
12392 cancel_breakpoints.
12394 2015-01-09 Pedro Alves <palves@redhat.com>
12396 * thread-db.c (find_new_threads_callback): Ignore thread if the
12397 kernel thread ID is -1.
12399 2015-01-09 Pedro Alves <palves@redhat.com>
12401 * linux-low.c (linux_attach_fail_reason_string): Move to
12402 nat/linux-ptrace.c, and rename.
12403 (linux_attach_lwp): Update comment.
12404 (attach_proc_task_lwp_callback): New function.
12405 (linux_attach): Adjust to rename and use
12406 linux_proc_attach_tgid_threads.
12407 (linux_attach_fail_reason_string): Delete declaration.
12409 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12411 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12412 * server.c (gdbserver_version): Likewise.
12414 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12416 * remote-utils.c: Include ctype.h.
12417 (input_interrupt): Explicitly handle the case when the char
12418 received is the NUL byte. Improve the printing of non-ASCII
12421 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12423 * linux-low.c (linux_low_filter_event): Update call to
12424 linux_enable_event_reporting following the addition of
12425 a new parameter to that function.
12427 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12430 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12431 (AARCH64_FPCR_REGNO): Likewise.
12432 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12433 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12434 (aarch64_store_fpregset): Likewise.
12436 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12438 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12439 Remove FIXME comment about assumption about N.
12441 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12443 * configure.ac: If large-file support is disabled in GDBserver,
12444 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12445 * configure: Regenerate.
12447 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12449 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12450 warning upon ENODATA from ptrace.
12451 * linux-s390-low.c (s390_store_tdb): New.
12452 (s390_regsets): Add regset for NT_S390_TDB.
12454 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12456 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12457 without a fill_function.
12458 * linux-s390-low.c (s390_fill_last_break): Remove.
12459 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12460 (s390_arch_setup): Use regset's size instead of fill_function for
12461 loop end condition.
12463 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12465 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12466 the regset's store function when ptrace returned an error.
12467 * regcache.c (get_thread_regcache): Invalidate register cache
12468 before fetching inferior's registers.
12470 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12472 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12473 while-loop as for-loop.
12474 (regsets_store_inferior_registers): Likewise.
12476 2014-11-28 Yao Qi <yao@codesourcery.com>
12478 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12479 * config.in, configure: Re-generate.
12480 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12483 2014-11-21 Yao Qi <yao@codesourcery.com>
12485 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12486 (AC_CHECK_HEADERS): Remove malloc.h.
12487 * configure: Re-generated.
12488 * config.in: Re-generated.
12489 * server.h: Don't include alloca.h and malloc.h.
12490 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12491 Don't include malloc.h.
12493 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12495 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12496 corresponding ERRNO check in same block.
12498 2014-11-12 Pedro Alves <palves@redhat.com>
12500 * server.c (cont_thread): Update comment.
12501 (start_inferior, attach_inferior): No longer clear cont_thread.
12502 (handle_v_cont): No longer set cont_thread.
12503 (captured_main): Clear cont_thread each time a GDB connects.
12505 2014-11-12 Pedro Alves <palves@redhat.com>
12507 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12508 thread, and don't resume all threads if the Hc thread has exited.
12510 2014-11-12 Pedro Alves <palves@redhat.com>
12512 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12513 the process group instead of to a specific LWP.
12515 2014-10-15 Pedro Alves <palves@redhat.com>
12518 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12520 (arm_set_thread_context): Delete.
12521 (the_low_target): Adjust.
12522 * win32-i386-low.c (debug_registers_changed)
12523 (debug_registers_used): Delete.
12524 (update_debug_registers_callback): New function.
12525 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12526 needing to update their debug registers.
12527 (win32_get_current_dr): New function.
12528 (x86_dr_low_get_addr, x86_dr_low_get_control)
12529 (x86_dr_low_get_status): Fetch the debug register from the thread
12531 (i386_initial_stuff): Adjust.
12532 (i386_get_thread_context): Remove current_event parameter. Don't
12533 clear debug_registers_changed nor copy DR values to
12535 (i386_set_thread_context): Delete.
12536 (i386_prepare_to_resume): New function.
12537 (i386_thread_added): Mark the thread as needing to update irs
12539 (the_low_target): Remove i386_set_thread_context and install
12540 i386_prepare_to_resume.
12541 * win32-low.c (win32_get_thread_context): Adjust.
12542 (win32_set_thread_context): Use SetThreadContext
12544 (win32_prepare_to_resume): New function.
12545 (win32_require_context): New function, factored out from ...
12546 (thread_rec): ... this.
12547 (continue_one_thread): Call win32_prepare_to_resume on each thread
12548 we're about to continue.
12549 (win32_resume): Call win32_prepare_to_resume on the event thread.
12550 * win32-low.h (struct win32_thread_info)
12551 <debug_registers_changed>: New field.
12552 (struct win32_target_ops): Change prototype of set_thread_context,
12553 delete set_thread_context and add prepare_to_resume.
12554 (win32_require_context): New declaration.
12556 2014-10-08 Gary Benson <gbenson@redhat.com>
12558 * server.h: Do not include common-exceptions.h.
12560 2014-10-08 Gary Benson <gbenson@redhat.com>
12562 * server.h: Do not include cleanups.h.
12564 2014-09-30 James Hogan <james.hogan@imgtec.com>
12566 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12567 mips64-dsp-linux.c.
12569 2014-09-23 Yao Qi <yao@codesourcery.com>
12571 * linux-low.c (lp_status_maybe_breakpoint): New function.
12572 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12573 (count_events_callback): Likewise.
12574 (select_event_lwp_callback): Likewise.
12575 (cancel_breakpoints_callback): Likewise.
12577 2014-09-19 Don Breazeal <donb@codesourcery.com>
12579 * linux-low.c (handle_extended_wait): Call
12580 linux_ptrace_get_extended_event.
12581 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12582 linux_is_extended_waitstatus.
12584 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12586 * Makefile.in (CPPFLAGS): Define.
12587 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12588 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12590 2014-09-16 Gary Benson <gbenson@redhat.com>
12592 * inferiors.h (current_inferior): Renamed as...
12593 (current_thread): New variable. All uses updated.
12594 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12595 (maybe_move_out_of_jump_pad): Likewise.
12596 (cancel_breakpoint): Likewise.
12597 (linux_low_filter_event): Likewise.
12598 (wait_for_sigstop): Likewise.
12599 (linux_resume_one_lwp): Likewise.
12600 (need_step_over_p): Likewise.
12601 (start_step_over): Likewise.
12602 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12603 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12604 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12605 and save_inferior as saved_thread.
12606 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12608 (regcache_invalidate_thread): Likewise.
12609 * remote-utils.c (prepare_resume_reply): Likewise.
12610 * thread-db.c (thread_db_get_tls_address): Likewise.
12611 (disable_thread_event_reporting): Likewise.
12612 (remove_thread_event_breakpoints): Likewise.
12613 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12615 * target.h (set_desired_inferior): Renamed as...
12616 (set_desired_thread): New declaration. All uses updated.
12617 * server.c (myresume): Updated comment to reference thread instead
12619 (handle_serial_event): Likewise.
12620 (handle_target_event): Likewise.
12622 2014-09-12 Tom Tromey <tromey@redhat.com>
12623 Gary Benson <gbenson@redhat.com>
12625 * regcache.h: Include common-regcache.h.
12626 (regcache_read_pc): Don't declare.
12627 * regcache.c (get_thread_regcache_for_ptid): New function.
12629 2014-09-11 Tom Tromey <tromey@redhat.com>
12630 Gary Benson <gbenson@redhat.com>
12632 * symbol.c: New file.
12633 * Makefile.in (SFILES): Add symbol.c.
12634 (OBS): Add symbol.o.
12636 2014-09-11 Gary Benson <gbenson@redhat.com>
12638 * target.c (target_stop_ptid, target_continue_ptid): New
12641 2014-09-11 Tom Tromey <tromey@redhat.com>
12642 Gary Benson <gbenson@redhat.com>
12644 * target.h: Include target/target.h.
12645 * target.c (target_read_memory, target_read_uint32)
12646 (target_write_memory): New functions.
12648 2014-09-11 Gary Benson <gbenson@redhat.com>
12650 * server.h (debug_hw_points): Don't declare.
12651 * server.c (debug_hw_points): Don't define. Replace all uses
12652 with show_debug_regs.
12653 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12654 all uses with show_debug_regs.
12656 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12658 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12659 endianness into account.
12660 (ppc_supply_ptrace_register): Likewise.
12662 2014-09-03 James Hogan <james.hogan@imgtec.com>
12664 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12665 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12667 2014-09-03 Gary Benson <gbenson@redhat.com>
12669 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12670 ALL_DEBUG_ADDRESS_REGISTERS.
12672 2014-09-02 Gary Benson <gbenson@redhat.com>
12674 * i386-low.h: Renamed as...
12675 * x86-low.h: New file. All type, function and variable name
12676 prefixes changed from "i386_" to "x86_". All references updated.
12677 * i386-low.c: Renamed as...
12678 * x86-low.c: New file. All type, function and variable name
12679 prefixes changed from "i386_" to "x86_". All references updated.
12681 2014-09-02 Gary Benson <gbenson@redhat.com>
12683 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12684 (x86_linux_new_thread): Likewise.
12686 2014-08-29 Gary Benson <gbenson@redhat.com>
12688 * server.h (setjmp.h): Do not include.
12689 (toplevel): Do not declare.
12690 (common-exceptions.h): Include.
12691 (cleanups.h): Likewise.
12692 * server.c (toplevel): Do not define.
12693 (exit_code): New static global.
12694 (detach_or_kill_for_exit_cleanup): New function.
12695 (main): New function. Original main renamed to...
12696 (captured_main): New function.
12697 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12699 2014-08-29 Gary Benson <gbenson@redhat.com>
12701 * Makefile.in (SFILES): Add common/common-exceptions.c.
12702 (OBS): Add common-exceptions.o.
12703 (common-exceptions.o): New rule.
12704 * utils.c (prepare_to_throw_exception): New function.
12706 2014-08-29 Gary Benson <gbenson@redhat.com>
12708 * config.in: Regenerate.
12709 * configure: Likewise.
12711 2014-08-29 Gary Benson <gbenson@redhat.com>
12713 * Makefile.in (SFILES): Add common/cleanups.c.
12715 (cleanups.o): New rule.
12717 2014-08-29 Gary Benson <gbenson@redhat.com>
12719 * utils.c (internal_vwarning): New function.
12721 2014-08-28 Gary Benson <gbenson@redhat.com>
12723 * utils.h (fatal): Remove declaration.
12724 * utils.c (fatal): Remove function.
12726 2014-08-28 Gary Benson <gbenson@redhat.com>
12728 * tracepoint.c (gdb_agent_init): Replace fatal with
12730 (initialize_tracepoint): Likewise.
12732 2014-08-28 Gary Benson <gbenson@redhat.com>
12734 * remote-utils.c (remote_prepare): Replace fatal with error.
12736 2014-08-28 Gary Benson <gbenson@redhat.com>
12738 * linux-low.c (linux_async): Replace fatal with warning.
12739 Tidy up and return.
12740 (linux_start_non_stop): Return -1 if linux_async failed.
12742 2014-08-28 Gary Benson <gbenson@redhat.com>
12744 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12746 (i386_dr_low_get_addr): Remove vague comment.
12747 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12750 2014-08-28 Gary Benson <gbenson@redhat.com>
12752 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12753 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12755 (linux_resume_one_lwp): Likewise.
12756 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12758 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12759 with internal_error.
12760 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12761 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12762 (find_register_by_name): Replace fatal with internal_error.
12763 (find_regno): Likewise.
12764 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12765 * thread-db.c (thread_db_create_event): Likewise.
12766 (thread_db_load_search): Likewise.
12767 (try_thread_db_load_1): Likewise.
12768 * tracepoint.c (get_jump_space_head): Replace fatal with
12770 (claim_trampoline_space): Likewise.
12771 (have_fast_tracepoint_trampoline_buffer): Likewise.
12772 (cmd_qtstart): Likewise.
12773 (stop_tracing): Likewise.
12774 (fast_tracepoint_collecting): Likewise.
12775 (target_malloc): Likewise.
12776 (download_tracepoint): Likewise.
12777 (download_trace_state_variables): Replace check with gdb_assert.
12778 (upload_fast_traceframes): Replace fatal with internal_error.
12780 2014-08-19 Tom Tromey <tromey@redhat.com>
12781 Gary Benson <gbenson@redhat.com>
12783 * Makefile.in (SFILES): Add common/common-debug.c.
12784 (OBS): Add common-debug.o.
12785 (common-debug.o): New rule.
12786 * debug.h (debug_printf): Don't declare.
12787 * debug.c (debug_printf): Renamed and rewritten as...
12788 (debug_vprintf): New function.
12790 2014-08-19 Gary Benson <gbenson@redhat.com>
12792 * utils.h: Do not include print-utils.h.
12794 2014-08-19 Tom Tromey <tromey@redhat.com>
12795 Gary Benson <gbenson@redhat.com>
12797 * server.h: Add static assertion.
12798 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12800 2014-08-19 Tom Tromey <tromey@redhat.com>
12801 Gary Benson <gbenson@redhat.com>
12803 * Makefile.in (SFILES): Add common/errors.c.
12804 (OBS): Add errors.o.
12805 (IPA_OBS): Add errors-ipa.o.
12806 (errors.o): New rule.
12807 (errors-ipa.o): Likewise.
12808 * utils.h (perror_with_name, error, warning): Don't declare.
12809 * utils.c (warning): Renamed and rewritten as...
12810 (vwarning): New function.
12811 (error): Renamed and rewritten as...
12812 (verror): New function.
12813 (internal_error): Renamed and rewritten as...
12814 (internal_verror): New function.
12816 2014-08-07 Gary Benson <gbenson@redhat.com>
12818 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12819 * configure: Regenerate.
12820 * config.in: Likewise.
12821 * server.h: Do not include errno.h.
12822 * event-loop.c: Likewise.
12823 * hostio-errno.c: Likewise.
12824 * linux-low.c: Likewise.
12825 * remote-utils.c: Likewise.
12826 * spu-low.c: Likewise.
12827 * utils.c: Likewise.
12828 * gdbreplay.c: Unconditionally include errno.h.
12830 2014-08-07 Gary Benson <gbenson@redhat.com>
12832 * server.h: Do not include string.h.
12833 * event-loop.c: Likewise.
12834 * linux-low.c: Likewise.
12835 * regcache.c: Likewise.
12836 * remote-utils.c: Likewise.
12837 * spu-low.c: Likewise.
12838 * utils.c: Likewise.
12840 2014-08-07 Gary Benson <gbenson@redhat.com>
12842 * server.h: Do not include gdb_assert.h.
12844 2014-08-07 Gary Benson <gbenson@redhat.com>
12846 * server.h: Do not include common-utils.h.
12848 2014-08-07 Gary Benson <gbenson@redhat.com>
12850 * server.h: Do not include ptid.h.
12851 * notif.h: Likewise.
12853 2014-08-07 Gary Benson <gbenson@redhat.com>
12855 * server.h: Do not include gdb_locale.h.
12857 2014-08-07 Gary Benson <gbenson@redhat.com>
12859 * server.h: Do not include gdb/signals.h.
12860 * win32-low.c: Likewise.
12862 2014-08-07 Gary Benson <gbenson@redhat.com>
12864 * server.h: Do not include pathmax.h.
12866 2014-08-07 Gary Benson <gbenson@redhat.com>
12868 * server.h: Do not include libiberty.h.
12869 * linux-bfin-low.c: Likewise.
12871 2014-08-07 Gary Benson <gbenson@redhat.com>
12873 * server.h: Do not include ansidecl.h.
12875 2014-08-07 Gary Benson <gbenson@redhat.com>
12877 * linux-x86-low.c: Do not include stddef.h.
12878 * lynx-ppc-low.c: Likewise.
12879 * tracepoint.c: Likewise.
12881 2014-08-07 Gary Benson <gbenson@redhat.com>
12883 * server.h: Do not include stdarg.h.
12884 * nto-low.c: Likewise.
12886 2014-08-07 Gary Benson <gbenson@redhat.com>
12888 * server.h: Do not include stdlib.h.
12889 * inferiors.c: Likewise.
12890 * linux-low.c: Likewise.
12891 * regcache.c: Likewise.
12892 * spu-low.c: Likewise.
12893 * tracepoint.c: Likewise.
12894 * utils.c: Likewise.
12896 2014-08-07 Gary Benson <gbenson@redhat.com>
12898 * server.h: Do not include stdio.h.
12899 * linux-low.c: Likewise.
12900 * remote-utils.c: Likewise.
12901 * spu-low.c: Likewise.
12902 * utils.c: Likewise.
12903 * wincecompat.c: Likewise.
12905 2014-08-06 Gary Benson <gbenson@redhat.com>
12907 * regcache.c (init_register_cache): Move conditionals inside if.
12909 2014-08-06 Gary Benson <gbenson@redhat.com>
12911 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12913 2014-07-31 Gary Benson <gbenson@redhat.com>
12915 * ax.h: Do not include server.h.
12916 * gdbthread.h: Likewise.
12917 * lynx-low.h: Likewise.
12918 * notif.h: Likewise.
12920 2014-07-30 Gary Benson <gbenson@redhat.com>
12922 * server.h: Include common-defs.h.
12923 Do not include config.h or build-gnulib-gdbserver/config.h.
12925 2014-07-30 Gary Benson <gbenson@redhat.com>
12927 * hostio-errno.c: Move server.h to top of includes list.
12928 * inferiors.c: Likewise.
12929 * linux-x86-low.c: Likewise.
12930 * notif.c: Include server.h.
12932 2014-07-24 Tom Tromey <tromey@redhat.com>
12933 Gary Benson <gbenson@redhat.com>
12935 * server.h (CORE_ADDR): Now unsigned.
12937 2014-07-16 Pedro Alves <palves@redhat.com>
12939 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12941 2014-07-15 Pedro Alves <palves@redhat.com>
12943 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12946 2014-07-11 Pedro Alves <palves@redhat.com>
12948 * linux-low.c (kill_wait_lwp): New function, based on
12949 kill_one_lwp_callback, but use my_waitpid directly.
12950 (kill_one_lwp_callback, linux_kill): Use it.
12952 2014-06-23 Pedro Alves <palves@redhat.com>
12954 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12955 before setting DR0..DR3.
12957 2014-06-20 Gary Benson <gbenson@redhat.com>
12959 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12960 * configure: Regenerated.
12961 * config.in: Likewise.
12963 2014-06-20 Gary Benson <gbenson@redhat.com>
12965 * Makefile.in (SFILES): Update locations for files moved
12966 from common to nat.
12967 (object file files): Reordered.
12969 2014-06-20 Gary Benson <gbenson@redhat.com>
12971 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12972 (i386_dr_low_set_addr): Likewise.
12973 (i386_dr_low_get_addr): Likewise.
12974 (i386_dr_low_can_set_control): Likewise.
12975 (i386_dr_low_set_control): Likewise.
12976 (i386_dr_low_get_control): Likewise.
12977 (i386_dr_low_get_status): Likewise.
12978 (i386_get_debug_register_length): Likewise.
12979 * linux-x86-low.c (i386_dr_low_set_addr):
12980 Changed signature. Made static.
12981 (i386_dr_low_get_addr): Likewise.
12982 (i386_dr_low_set_control): Likewise.
12983 (i386_dr_low_get_control): Likewise.
12984 (i386_dr_low_get_status): Likewise.
12985 (i386_dr_low): New global variable.
12986 * win32-i386-low.c (i386_dr_low_set_addr):
12987 Changed signature. Made static.
12988 (i386_dr_low_get_addr): Likewise.
12989 (i386_dr_low_set_control): Likewise.
12990 (i386_dr_low_get_control): Likewise.
12991 (i386_dr_low_get_status): Likewise.
12992 (i386_dr_low): New global variable.
12994 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12996 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12997 * Makefile.in (AR, AR_FLAGS): Define.
12998 * configure: Regenerate.
13000 2014-06-19 Gary Benson <gbenson@redhat.com>
13002 * Makefile.in (i386-dregs.o): New rule.
13003 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
13004 * i386-low.c (target.h): Remove include.
13005 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
13006 (DR_CONTROL_SHIFT): Likewise.
13007 (DR_CONTROL_SIZE): Likewise.
13008 (DR_RW_EXECUTE): Likewise.
13009 (DR_RW_WRITE): Likewise.
13010 (DR_RW_READ): Likewise.
13011 (DR_RW_IORW): Likewise.
13012 (DR_LEN_1): Likewise.
13013 (DR_LEN_2): Likewise.
13014 (DR_LEN_4): Likewise.
13015 (DR_LEN_8): Likewise.
13016 (DR_LOCAL_ENABLE_SHIFT): Likewise.
13017 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
13018 (DR_ENABLE_SIZE): Likewise.
13019 (DR_LOCAL_SLOWDOWN): Likewise.
13020 (DR_GLOBAL_SLOWDOWN): Likewise.
13021 (DR_CONTROL_RESERVED): Likewise.
13022 (I386_DR_CONTROL_MASK): Likewise.
13023 (I386_DR_VACANT): Likewise.
13024 (I386_DR_LOCAL_ENABLE): Likewise.
13025 (I386_DR_GLOBAL_ENABLE): Likewise.
13026 (I386_DR_DISABLE): Likewise.
13027 (I386_DR_SET_RW_LEN): Likewise.
13028 (I386_DR_GET_RW_LEN): Likewise.
13029 (I386_DR_WATCH_HIT): Likewise.
13030 (i386_wp_op_t): Likewise.
13031 (i386_show_dr): Likewise.
13032 (i386_length_and_rw_bits): Likewise.
13033 (i386_insert_aligned_watchpoint): Likewise.
13034 (i386_remove_aligned_watchpoint): Likewise.
13035 (i386_handle_nonaligned_watchpoint): Likewise.
13036 i386_update_inferior_debug_regs(): Likewise.
13037 (i386_dr_insert_watchpoint): Likewise.
13038 (i386_dr_remove_watchpoint): Likewise.
13039 (i386_dr_region_ok_for_watchpoint): Likewise.
13040 (i386_dr_stopped_data_address): Likewise.
13041 (i386_dr_stopped_by_watchpoint): Likewise.
13043 2014-06-19 Gary Benson <gbenson@redhat.com>
13045 * i386-low.c (i386_dr_show): Renamed to
13046 i386_show_dr and made static. All uses updated.
13047 (i386_dr_length_and_rw_bits): Renamed to
13048 i386_length_and_rw_bits and made static.
13050 (i386_dr_insert_aligned_watchpoint): Renamed to
13051 i386_insert_aligned_watchpoint and made static.
13053 (i386_dr_remove_aligned_watchpoint): Renamed to
13054 i386_remove_aligned_watchpoint and made static.
13056 (i386_dr_update_inferior_debug_regs): Renamed to
13057 i386_update_inferior_debug_regs and made static.
13060 2014-06-18 Gary Benson <gbenson@redhat.com>
13062 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13063 (i386_dr_low_can_set_control): Likewise.
13064 (i386_get_debug_register_length): Likewise.
13065 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13066 (i386_dr_low_can_set_control): Likewise.
13067 (i386_get_debug_register_length): Likewise.
13069 2014-06-17 Gary Benson <gbenson@redhat.com>
13071 * i386-low.h (i386-dregs.h): New include.
13072 (DR_FIRSTADDR): Now in i386-dregs.h.
13073 (DR_LASTADDR): Likewise.
13074 (DR_NADDR): Likewise.
13075 (DR_STATUS): Likewise.
13076 (DR_CONTROL): Likewise.
13077 (i386_debug_reg_state): Likewise.
13078 (i386_dr_insert_watchpoint): Likewise.
13079 (i386_dr_remove_watchpoint): Likewise.
13080 (i386_dr_region_ok_for_watchpoint): Likewise.
13081 (i386_dr_stopped_data_address): Likewise.
13082 (i386_dr_stopped_by_watchpoint): Likewise.
13083 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13085 2014-06-18 Gary Benson <gbenson@redhat.com>
13087 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13088 i386_dr_insert_watchpoint.
13089 (i386_low_remove_watchpoint): Renamed to
13090 i386_dr_remove_watchpoint.
13091 (i386_low_region_ok_for_watchpoint): Renamed to
13092 i386_dr_region_ok_for_watchpoint.
13093 (i386_low_stopped_data_address): Renamed to
13094 i386_dr_stopped_data_address.
13095 (i386_low_stopped_by_watchpoint): Renamed to
13096 i386_dr_stopped_by_watchpoint.
13097 * i386-low.c (i386_show_dr): Renamed to
13098 i386_dr_show and made nonstatic. All uses updated.
13099 (i386_length_and_rw_bits): Renamed to
13100 i386_dr_length_and_rw_bits and made nonstatic.
13102 (i386_insert_aligned_watchpoint): Renamed to
13103 i386_dr_insert_aligned_watchpoint and made nonstatic.
13105 (i386_remove_aligned_watchpoint): Renamed to
13106 i386_dr_remove_aligned_watchpoint and made nonstatic.
13108 (i386_update_inferior_debug_regs): Renamed to
13109 i386_dr_update_inferior_debug_regs and made nonstatic.
13111 (i386_low_insert_watchpoint): Renamed to
13112 i386_dr_insert_watchpoint. All uses updated.
13113 (i386_low_remove_watchpoint): Renamed to
13114 i386_dr_remove_watchpoint. All uses updated.
13115 (i386_low_region_ok_for_watchpoint): Renamed to
13116 i386_dr_region_ok_for_watchpoint. All uses updated.
13117 (i386_low_stopped_data_address): Renamed to
13118 i386_dr_stopped_data_address. All uses updated.
13119 (i386_low_stopped_by_watchpoint): Renamed to
13120 i386_dr_stopped_by_watchpoint. All uses updated.
13122 2014-06-18 Gary Benson <gbenson@redhat.com>
13124 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13125 (i386_dr_low_can_set_control): Likewise.
13126 (i386_insert_aligned_watchpoint): New check.
13128 2014-06-18 Gary Benson <gbenson@redhat.com>
13130 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13133 2014-06-18 Gary Benson <gbenson@redhat.com>
13135 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13136 instead of fatal and error.
13137 (i386_handle_nonaligned_watchpoint): Likewise.
13139 2014-06-18 Gary Benson <gbenson@redhat.com>
13141 * i386-low.c (i386_get_debug_register_length): New macro.
13142 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13143 (i386_show_dr): Use debug_printf instead of fprintf. Use
13144 phex to format values.
13146 2014-06-18 Gary Benson <gbenson@redhat.com>
13148 * i386-low.h: Comment changes.
13149 * i386-low.c: Likewise.
13151 2014-06-18 Gary Benson <gbenson@redhat.com>
13153 * i386-low.c: Whitespace changes.
13155 2014-06-12 Tom Tromey <tromey@redhat.com>
13157 * utils.c (freeargv): Remove.
13159 2014-06-12 Tom Tromey <tromey@redhat.com>
13161 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13162 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13163 (parse_debug_format_options): Likewise.
13164 (gdbserver_usage): Likewise.
13165 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13166 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13167 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13169 ($(LIBGNU)): Depend on libiberty.
13170 (all-lib): Recurse into all subdirs.
13171 (install-only): Invoke "install" target in subdirs.
13172 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13174 * configure: Rebuild.
13175 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13176 for vasprintf, vsnprintf, or gettimeofday.
13177 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13180 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13182 * development.sh: Delete.
13183 * Makefile.in (config.status): Adjust dependency on development.sh.
13184 * configure.ac: Adjust development.sh source call.
13185 * configure: Regenerate.
13187 2014-06-02 Pedro Alves <palves@redhat.com>
13189 * ax.c (gdb_free_agent_expr): New function.
13190 * ax.h (gdb_free_agent_expr): New declaration.
13191 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13193 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13195 (clear_breakpoint_conditions_and_commands): New function.
13196 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13197 (clear_breakpoint_conditions_and_commands): New declaration.
13199 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13201 * linux-aarch64-low.c (asm/ptrace.h): Include.
13203 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13205 Fix TLS access for -static -pthread.
13206 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13207 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13208 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13210 2014-05-20 Pedro Alves <palves@redhat.com>
13212 * linux-aarch64-low.c (aarch64_insert_point)
13213 (aarch64_remove_point): No longer check whether the type is
13214 supported here. Adjust to new interface.
13215 (the_low_target): Install aarch64_supports_z_point_type as
13216 supports_z_point_type method.
13217 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13218 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13219 instead of a Z packet char. Adjust.
13220 (arm_supports_z_point_type): New function.
13221 (arm_insert_point, arm_remove_point): Adjust to new interface.
13222 (the_low_target): Install arm_supports_z_point_type.
13223 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13224 (cris_insert_point, cris_remove_point): Adjust to new interface.
13225 Don't check whether the type is supported here.
13226 (the_low_target): Install cris_supports_z_point_type.
13227 * linux-low.c (linux_supports_z_point_type): New function.
13228 (linux_insert_point, linux_remove_point): Adjust to new interface.
13229 * linux-low.h (struct linux_target_ops) <insert_point,
13230 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13231 raw_breakpoint pointer parameter.
13232 <supports_z_point_type>: New method.
13233 * linux-mips-low.c (mips_supports_z_point_type): New function.
13234 (mips_insert_point, mips_remove_point): Adjust to new interface.
13235 Use mips_supports_z_point_type.
13236 (the_low_target): Install mips_supports_z_point_type.
13237 * linux-ppc-low.c (the_low_target): Install NULL as
13238 supports_z_point_type method.
13239 * linux-s390-low.c (the_low_target): Install NULL as
13240 supports_z_point_type method.
13241 * linux-sparc-low.c (the_low_target): Install NULL as
13242 supports_z_point_type method.
13243 * linux-x86-low.c (x86_supports_z_point_type): New function.
13244 (x86_insert_point): Adjust to new insert_point interface. Use
13245 insert_memory_breakpoint. Adjust to new
13246 i386_low_insert_watchpoint interface.
13247 (x86_remove_point): Adjust to remove_point interface. Use
13248 remove_memory_breakpoint. Adjust to new
13249 i386_low_remove_watchpoint interface.
13250 (the_low_target): Install x86_supports_z_point_type.
13251 * lynx-low.c (lynx_target_ops): Install NULL as
13252 supports_z_point_type callback.
13253 * nto-low.c (nto_supports_z_point_type): New.
13254 (nto_insert_point, nto_remove_point): Adjust to new interface.
13255 (nto_target_ops): Install nto_supports_z_point_type.
13256 * mem-break.c: Adjust intro comment.
13257 (struct raw_breakpoint) <raw_type, size>: New fields.
13258 <inserted>: Update comment.
13259 <shlib_disabled>: Delete field.
13260 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13261 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13262 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13263 (raw_bkpt_type_to_target_hw_bp_type): New function.
13264 (find_enabled_raw_code_breakpoint_at): New function.
13265 (find_raw_breakpoint_at): New type and size parameters. Use them.
13266 (insert_memory_breakpoint): New function, based off
13267 set_raw_breakpoint_at.
13268 (remove_memory_breakpoint): New function.
13269 (set_raw_breakpoint_at): Reimplement.
13270 (set_breakpoint): New, based on set_breakpoint_at.
13271 (set_breakpoint_at): Reimplement.
13272 (delete_raw_breakpoint): Go through the_target->remove_point
13273 instead of assuming memory breakpoints.
13274 (find_gdb_breakpoint_at): Delete.
13275 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13276 (find_gdb_breakpoint): New function.
13277 (set_gdb_breakpoint_at): Delete.
13278 (z_type_supported): New function.
13279 (set_gdb_breakpoint_1): New function, loosely based off
13280 set_gdb_breakpoint_at.
13281 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13282 (delete_gdb_breakpoint_at): Delete.
13283 (delete_gdb_breakpoint_1): New function, loosely based off
13284 delete_gdb_breakpoint_at.
13285 (delete_gdb_breakpoint): New function.
13286 (clear_gdb_breakpoint_conditions): Rename to ...
13287 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13289 (add_condition_to_breakpoint): Make static.
13290 (add_breakpoint_condition): Take a struct breakpoint pointer
13291 instead of an address. Adjust.
13292 (gdb_condition_true_at_breakpoint): Rename to ...
13293 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13295 (gdb_condition_true_at_breakpoint): Reimplement.
13296 (add_breakpoint_commands): Take a struct breakpoint pointer
13297 instead of an address. Adjust.
13298 (gdb_no_commands_at_breakpoint): Rename to ...
13299 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13300 parameter. Return true if no breakpoint was found. Change debug
13302 (gdb_no_commands_at_breakpoint): Reimplement.
13303 (run_breakpoint_commands): Rename to ...
13304 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13305 and change return type to boolean.
13306 (run_breakpoint_commands): New function.
13307 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13308 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13309 breakpoint. Go through the_target->remove_point instead of
13310 assuming memory breakpoint.
13311 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13312 software and hardware breakpoints.
13313 (reinsert_raw_breakpoint): Go through the_target->insert_point
13314 instead of assuming memory breakpoint.
13315 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13316 software and hardware breakpoints.
13317 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13318 Check both software and hardware breakpoints.
13319 (validate_inserted_breakpoint): Assert the breakpoint is a
13320 software breakpoint. Set the inserted flag to -1 instead of
13321 setting shlib_disabled.
13322 (delete_disabled_breakpoints): Adjust.
13323 (validate_breakpoints): Only validate software breakpoints.
13324 Adjust to inserted flag change.
13325 (check_mem_read, check_mem_write): Skip breakpoint types other
13326 than software breakpoints. Adjust to inserted flag change.
13327 * mem-break.h (enum raw_bkpt_type): New enum.
13328 (raw_breakpoint, struct process_info): Forward declare.
13329 (Z_packet_to_target_hw_bp_type): Delete declaration.
13330 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13331 (set_gdb_breakpoint, delete_gdb_breakpoint)
13332 (clear_breakpoint_conditions): New declarations.
13333 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13334 (breakpoint_inserted_here): Update comment.
13335 (add_breakpoint_condition, add_breakpoint_commands): Replace
13336 address parameter with a breakpoint pointer parameter.
13337 (gdb_breakpoint_here): Update comment.
13338 (delete_gdb_breakpoint_at): Delete.
13339 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13340 * server.c (process_point_options): Take a struct breakpoint
13341 pointer instead of an address. Adjust.
13342 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13343 delete_gdb_breakpoint.
13344 * spu-low.c (spu_target_ops): Install NULL as
13345 supports_z_point_type method.
13346 * target.h: Include mem-break.h.
13347 (struct target_ops) <prepare_to_access_memory>: Update comment.
13348 <supports_z_point_type>: New field.
13349 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13350 instead of a char. Also take a raw breakpoint pointer.
13351 * win32-arm-low.c (the_low_target): Install NULL as
13352 supports_z_point_type.
13353 * win32-i386-low.c (i386_supports_z_point_type): New function.
13354 (i386_insert_point, i386_remove_point): Adjust to new interface.
13355 (the_low_target): Install i386_supports_z_point_type.
13356 * win32-low.c (win32_supports_z_point_type): New function.
13357 (win32_insert_point, win32_remove_point): Adjust to new interface.
13358 (win32_target_ops): Install win32_supports_z_point_type.
13359 * win32-low.h (struct win32_target_ops):
13360 <supports_z_point_type>: New method.
13361 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13362 instead of a char. Also take a raw breakpoint pointer.
13364 2014-05-20 Pedro Alves <palves@redhat.com>
13366 * mem-break.h: Include break-common.h.
13367 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13368 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13369 (Z_packet_to_target_hw_bp_type): New declaration.
13370 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13371 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13372 (Z_PACKET_ACCESS_WP): Delete macros.
13373 (Z_packet_to_hw_type): Delete function.
13374 * i386-low.h: Don't include break-common.h here.
13375 (Z_packet_to_hw_type): Delete declaration.
13376 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13377 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13378 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13379 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13380 * linux-aarch64-low.c: Don't include break-common.h here.
13381 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13382 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13383 (Z_packet_to_target_hw_bp_type): Delete function.
13384 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13386 (mips_insert_point, mips_remove_point): Use
13387 Z_packet_to_target_hw_bp_type.
13389 2014-05-20 Pedro Alves <palves@redhat.com>
13391 * linux-aarch64-low.c: Include break-common.h.
13392 (enum target_point_type): Delete.
13393 (Z_packet_to_point_type): Rename to ...
13394 (Z_packet_to_target_hw_bp_type): ... this, and return a
13395 target_hw_bp_type instead.
13396 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13397 instead of an enum target_point_type.
13398 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13400 (aarch64_dr_state_insert_one_point)
13401 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13402 (aarch64_handle_aligned_watchpoint)
13403 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13404 Take an enum target_hw_bp_type instead of an enum
13406 (aarch64_supports_z_point_type): New function.
13407 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13408 use Z_packet_to_target_hw_bp_type.
13410 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13412 * configure.ac: Only use -Werror by default when DEVELOPMENT
13414 * configure: Regenerate.
13416 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13418 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13419 * linux-x86-low.c (X86_64_USER_REGS): New.
13420 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13422 2014-04-28 Yao Qi <yao@codesourcery.com>
13424 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13427 2014-04-25 Pedro Alves <palves@redhat.com>
13430 * linux-low.c (linux_attach_fail_reason_string): New function.
13431 (linux_attach_lwp): Delete.
13432 (linux_attach_lwp_1): Rename to ...
13433 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13434 argument. Remove "initial" parameter. Return int instead of
13435 void. Don't error or warn here.
13436 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13437 failure to attach to the tgid. Call warning when failing to
13439 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13440 argument. Remove "initial" parameter. Return int instead of
13441 void. Don't error or warn here.
13442 (linux_attach_fail_reason_string): New declaration.
13443 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13444 interface change. Use linux_attach_fail_reason_string.
13446 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13447 Walfred Tedeschi <walfred.tedeschi@intel.com>
13449 * Makefile.in: Added rules to handle new files
13450 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13451 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13452 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13453 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13454 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13455 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13456 x32-avx512-linux.o.
13457 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13458 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13459 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13460 i386/x32-avx512.xml.
13461 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13462 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13463 i386/x32-avx512-linux.xml.
13464 * i387-fp.c (num_avx512_k_registers): New constant for number
13466 (num_avx512_zmmh_low_registers): New constant for number of
13467 lower ZMM registers (0-15).
13468 (num_avx512_zmmh_high_registers): New constant for number of
13469 higher ZMM registers (16-31).
13470 (num_avx512_ymmh_registers): New contant for number of higher
13471 YMM registers (ymm16-31 added by avx521 on x86_64).
13472 (num_avx512_xmm_registers): New constant for number of higher
13473 XMM registers (xmm16-31 added by AVX512 on x86_64).
13474 (struct i387_xsave): Add space for AVX512 registers.
13475 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13476 Add code to handle AVX512 registers.
13477 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13478 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13479 prototypei from generated file.
13480 (tdesc_amd64_avx512_linux): Likewise.
13481 (init_registers_x32_avx512_linux): Likewise.
13482 (tdesc_x32_avx512_linux): Likewise.
13483 (init_registers_i386_avx512_linux): Likewise.
13484 (tdesc_i386_avx512_linux): Likewise.
13485 (x86_64_regmap): Add AVX512 registers.
13486 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13488 (initialize_low_arch): Add code to initialize AVX512 registers.
13490 2014-04-23 Pedro Alves <palves@redhat.com>
13492 * mem-break.c (find_gdb_breakpoint_at): Make static.
13493 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13495 2014-04-23 Pedro Alves <palves@redhat.com>
13497 * i386-low.c: Don't include break-common.h here.
13498 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13499 prototype to take target_hw_bp_type as argument instead of a Z
13501 * i386-low.h: Include break-common.h here.
13502 (Z_packet_to_hw_type): Declare.
13503 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13505 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13506 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13507 (x86_remove_point): Convert the packet number to a
13508 target_hw_bp_type before calling i386_low_remove_watchpoint.
13509 * win32-i386-low.c (i386_insert_point): Convert the packet number
13510 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13511 (i386_remove_point): Convert the packet number to a
13512 target_hw_bp_type before calling i386_low_remove_watchpoint.
13514 2014-04-23 Pedro Alves <palves@redhat.com>
13516 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13518 2014-04-10 Pedro Alves <palves@redhat.com>
13520 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13521 Check if the condition or command is NULL before checking if the
13522 breakpoint is known. On success, return true.
13523 * mem-break.h (add_breakpoint_condition): Document return.
13524 (add_breakpoint_commands): Add describing comment.
13525 * server.c (skip_to_semicolon): New function.
13526 (process_point_options): Use it.
13528 2014-04-09 Pedro Alves <palves@redhat.com>
13530 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13533 2014-02-27 Pedro Alves <palves@redhat.com>
13536 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13538 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13540 (last_thread_of_process_p): Take a PID argument instead of a
13542 (linux_wait_for_lwp): Delete.
13543 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13545 (linux_low_filter_event): New function, party factored out from
13546 linux_wait_for_event.
13547 (linux_wait_for_event): Rename to ...
13548 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13549 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13550 sigsuspend. Check for zombie leaders.
13551 (linux_wait_for_event): Reimplement as wrapper around
13552 linux_wait_for_event_filtered.
13553 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13554 a normal or signal exit is seen, it's the whole process exiting.
13555 (wait_for_sigstop): No longer a for_each_inferior callback.
13556 Rewrite on top of linux_wait_for_event_filtered.
13557 (stop_all_lwps): Call wait_for_sigstop directly.
13558 * server.c (resume, handle_target_event): Handle
13559 TARGET_WAITKIND_NO_RESUMED.
13561 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13563 * win32-low.c (psapi_get_dll_name,
13564 * win32_CreateToolhelp32Snapshot): Delete.
13565 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13566 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13568 (handle_load_dll): Add function description.
13569 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13571 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13573 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13575 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13576 base address when calling win32_add_one_solib.
13577 (handle_load_dll): Delete local variable load_addr.
13578 Remove 0x1000 offset applied to DLL base address when calling
13579 win32_add_one_solib.
13580 (handle_unload_dll): Add comment.
13582 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13584 * win32-low.c (win32_add_all_dlls): Renames
13585 win32_ensure_ntdll_loaded. Rewrite function documentation.
13586 Adjust implementation to always load all DLLs.
13587 Add 0x1000 offset to DLL base address when calling
13588 win32_add_one_solib.
13589 (child_initialization_done): New static global.
13590 (do_initial_child_stuff): Set child_initialization_done to
13591 zero during child initialization, and 1 after. Replace call
13592 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13594 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13595 (handle_unload_dll): Add function documentation.
13596 (get_child_debug_event): Ignore load and unload DLL events
13597 during child initialization.
13599 2014-02-20 Doug Evans <dje@google.com>
13601 Remove global all_lwps.
13602 * inferiors.h (ptid_of): Move here from linux-low.h.
13603 (pid_of, lwpid_of): Ditto.
13604 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13605 parameter is a struct thread_info * now.
13606 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13607 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13608 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13610 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13611 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13612 * linux-arm-low.c (update_registers_callback): Update, "entry"
13613 parameter is a struct thread_info * now.
13614 Fetch lwpid from current_inferior directly.
13615 (arm_insert_point): Pass &all_threads to find_inferior instead of
13617 (arm_remove_point): Ditto.
13618 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13619 (arm_prepare_to_resume): Fetch pid from thread.
13620 (arm_read_description): Fetch lwpid from current_inferior directly.
13621 * linux-low.c (all_lwps): Delete.
13622 (delete_lwp): Delete call to remove_inferior.
13623 (handle_extended_wait): Fetch lwpid from thread.
13624 (add_lwp): Don't set lwp->entry.id. Remove call to
13625 add_inferior_to_list.
13626 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13627 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13628 (kill_one_lwp_callback): Ditto.
13629 (linux_kill): Don't dereference NULL pointer.
13630 Fetch ptid,lwpid from thread.
13631 (get_detach_signal): Fetch ptid from thread.
13632 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13633 Simplify call to regcache_invalidate_thread.
13634 (delete_lwp_callback): Update, "entry" parameter is a
13635 struct thread_info * now. Fetch pid from thread.
13636 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13637 (status_pending_p_callback): Update, "entry" parameter is a
13638 struct thread_info * now. Fetch ptid from thread.
13639 (find_lwp_pid): Update, "entry" parameter is a
13640 struct thread_info * now.
13641 (linux_wait_for_lwp): Fetch pid from thread.
13642 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13643 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13644 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13645 (dequeue_one_deferred_signal): Ditto.
13646 (cancel_breakpoint): Fetch ptid from current_inferior.
13647 (linux_wait_for_event): Pass &all_threads to find_inferior,
13648 not &all_lwps. Fetch ptid, lwpid from thread.
13649 (count_events_callback): Update, "entry" parameter is a
13650 struct thread_info * now.
13651 (select_singlestep_lwp_callback): Ditto.
13652 (select_event_lwp_callback): Ditto.
13653 (cancel_breakpoints_callback): Ditto.
13654 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13656 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13657 (unsuspend_one_lwp): Update, "entry" parameter is a
13658 struct thread_info * now.
13659 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13661 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13662 Fetch lwpid from thread, not lwp.
13663 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13664 Pass &all_threads to find_inferior, not &all_lwps.
13665 (send_sigstop): Fetch lwpid from thread, not lwp.
13666 (send_sigstop_callback): Update, "entry" parameter is a
13667 struct thread_info * now.
13668 (suspend_and_send_sigstop_callback): Ditto.
13669 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13670 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13671 struct thread_info * now.
13672 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13674 (lwp_running): Update, "entry" parameter is a
13675 struct thread_info * now.
13676 (stop_all_lwps): Fetch ptid from thread.
13677 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13678 (linux_resume_one_lwp): Fetch lwpid from thread.
13679 (linux_set_resume_request): Update, "entry" parameter is a
13680 struct thread_info * now. Fetch pid, lwpid from thread.
13681 (resume_status_pending_p): Update, "entry" parameter is a
13682 struct thread_info * now.
13683 (need_step_over_p): Ditto. Fetch lwpid from thread.
13684 (start_step_over): Fetch lwpid from thread.
13685 (linux_resume_one_thread): Update, "entry" parameter is a
13686 struct thread_info * now. Fetch lwpid from thread.
13687 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13688 (proceed_one_lwp): Update, "entry" parameter is a
13689 struct thread_info * now. Fetch lwpid from thread.
13690 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13691 struct thread_info * now.
13692 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13693 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13694 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13696 (regsets_store_inferior_registers): Ditto.
13697 (fetch_register, store_register): Ditto.
13698 (linux_read_memory, linux_write_memory): Ditto.
13699 (linux_request_interrupt): Ditto.
13700 (linux_read_auxv): Ditto.
13701 (linux_xfer_siginfo): Ditto.
13702 (linux_qxfer_spu): Ditto.
13703 (linux_qxfer_libraries_svr4): Ditto.
13704 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13705 moved to inferiors.h.
13707 (get_thread_lwp): Update.
13708 (struct lwp_info): Delete member "entry". Simplify comment for
13710 (all_lwps): Delete.
13711 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13712 current_inferior directly.
13713 (update_watch_registers_callback): Update, "entry" parameter is a
13714 struct thread_info * now. Fetch pid from thread.
13715 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13716 (mips_insert_point): Fetch lwpid from current_inferior.
13717 Pass &all_threads to find_inferior, not &all_lwps.
13718 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13719 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13721 (mips_stopped_data_address): Ditto.
13722 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13724 * linux-tile-low.c (tile_arch_setup): Ditto.
13725 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13726 (update_debug_registers_callback): Update, "entry" parameter is a
13727 struct thread_info * now. Fetch pid from thread.
13728 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13729 Pass &all_threads to find_inferior, not &all_lwps.
13730 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13731 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13732 Pass &all_threads to find_inferior, not &all_lwps.
13733 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13734 (i386_dr_low_get_status): Ditto.
13735 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13736 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13737 (x86_linux_read_description): Ditto.
13738 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13740 2014-02-20 Doug Evans <dje@google.com>
13742 * inferiors.c (get_first_inferior): Fix buglet.
13744 2014-02-19 Doug Evans <dje@google.com>
13746 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13747 * inferiors.c (add_thread): Change result type to struct thread_info *.
13748 All callers updated.
13749 (add_lwp): Call add_thread here instead of in callers.
13750 All callers updated.
13751 * linux-low.h (get_lwp_thread): Rewrite.
13752 (struct lwp_info): New member "thread".
13754 2014-02-19 Doug Evans <dje@google.com>
13756 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13757 All callers updated.
13759 2014-02-19 Doug Evans <dje@google.com>
13761 * inferiors.c (add_thread): Fix whitespace.
13763 2014-02-19 Doug Evans <dje@google.com>
13765 * dll.c (clear_dlls): Replace accessing list implemention details
13767 * gdbthread.h (get_first_thread): Declare.
13768 * inferiors.c (for_each_inferior_with_data): New function.
13769 (get_first_thread): New function.
13770 (find_thread_ptid): Simplify.
13771 (get_first_inferior): New function.
13772 (clear_list): Delete.
13773 (one_inferior_p): New function.
13774 (clear_inferior_list): New function.
13775 (clear_inferiors): Update.
13776 * inferiors.h (for_each_inferior_with_data): Declare.
13777 (clear_inferior_list): Declare.
13778 (one_inferior_p): Declare.
13779 (get_first_inferior): Declare.
13780 * linux-low.c (linux_wait_for_event): Replace accessing list
13781 implemention details with API function.
13782 * server.c (target_running): Ditto.
13783 (accumulate_file_name_length): New function.
13784 (emit_dll_description): New function.
13785 (handle_qxfer_libraries): Replace accessing list implemention
13786 details with API function.
13787 (handle_qxfer_threads_worker): New function.
13788 (handle_qxfer_threads_proper): Replace accessing list implemention
13789 details with API function.
13790 (handle_query): Ditto.
13791 (visit_actioned_threads_callback_ftype): New typedef.
13792 (visit_actioned_threads_data): New struct.
13793 (visit_actioned_threads): Rewrite to be find_inferior callback.
13794 (resume): Call find_inferior.
13795 (handle_status): Replace accessing list implemention
13796 details with API function.
13797 (process_serial_event): Replace accessing list implemention details
13799 * target.c (set_desired_inferior): Replace accessing list implemention
13800 details with API function.
13801 * tracepoint.c (same_process_p): New function.
13802 (gdb_agent_about_to_close): Replace accessing list implemention
13803 details with API function.
13804 * win32-low.c (child_delete_thread): Replace accessing list
13805 implemention details with API function.
13806 (match_dll_by_basename): New function.
13807 (dll_is_loaded_by_basename): New function.
13808 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13809 details call to dll_is_loaded_by_basename.
13811 2014-02-19 Doug Evans <dje@google.com>
13813 * dll.h (struct dll_info): Add comment.
13814 * gdbthread.h (struct thread_info): Add comment.
13815 (current_ptid): Simplify.
13816 * inferiors.c (add_process): Update.
13817 (remove_process): Update.
13818 * inferiors.h (struct process_info): Rename member "head" to "entry".
13819 * linux-low.c (delete_lwp): Update.
13821 (last_thread_of_process_p): Update.
13822 (kill_one_lwp_callback, linux_kill): Update.
13823 (status_pending_p_callback): Update.
13824 (wait_for_sigstop): Update. Simplify read of ptid.
13825 (start_step_over): Update.
13826 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13827 (get_lwp_thread): Update.
13828 (struct lwp_info): Rename member "head" to "entry".
13829 * regcache.h (inferior_list_entry): Delete.
13830 * server.c (kill_inferior_callback): Update.
13831 (detach_or_kill_inferior_callback): Update.
13832 (print_started_pid): Update.
13833 (print_attached_pid): Update.
13834 (process_serial_event): Simplify read of ptid.
13835 * thread-db.c (thread_db_create_event): Update.
13836 (thread_db_get_tls_address): Update.
13837 * win32-low.c (current_inferior_ptid): Simplify.
13839 2014-02-19 Tom Tromey <tromey@redhat.com>
13841 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13843 (target_supports_btrace): Update.
13845 2014-02-14 Yao Qi <yao@codesourcery.com>
13847 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13848 (rsp-low-ipa.o): New target.
13850 2014-02-12 Tom Tromey <tromey@redhat.com>
13852 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13853 convert_ascii_to_int.
13854 * regcache.c (registers_to_string): Likewise.
13855 * remote-utils.c (decode_M_packet): Likewise.
13856 * server.c (process_serial_event): Likewise.
13858 2014-02-12 Tom Tromey <tromey@redhat.com>
13860 * server.c (handle_query, handle_v_run): Use hex2bin, not
13862 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13864 2014-02-12 Tom Tromey <tromey@redhat.com>
13866 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13867 convert_int_to_ascii.
13868 * regcache.c (registers_to_string, collect_register_as_string):
13870 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13872 * server.c (process_serial_event): Likewise.
13873 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13874 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13876 2014-02-12 Tom Tromey <tromey@redhat.com>
13878 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13879 bin2hex, not hexify.
13880 * tracepoint.c (cmd_qtstatus): Likewise.
13882 2014-02-12 Tom Tromey <tromey@redhat.com>
13884 * remote-utils.c (monitor_output): Pass explicit length to
13887 2014-02-12 Tom Tromey <tromey@redhat.com>
13889 * tracepoint.c: Include rsp-low.h.
13890 * server.c: Include rsp-low.h.
13891 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13892 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13894 * remote-utils.c: Include rsp-low.h.
13895 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13896 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13897 (convert_int_to_ascii, convert_ascii_to_int): Move to
13899 * regcache.c: Include rsp-low.h.
13900 * ax.c: Include rsp-low.h.
13901 * Makefile.in (SFILES): Add common/rsp-low.c.
13902 (OBS): Add rsp-low.o.
13903 (rsp-low.o): New target.
13905 2014-02-12 Tom Tromey <tromey@redhat.com>
13907 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13908 Include print-utils.h.
13909 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13910 (plongest, thirty_two, phex_nz): Remove.
13911 * Makefile.in (SFILES): Add common/print-utils.c.
13912 (OBS): Add print-utils.o.
13913 (print-utils-ipa.o): New target.
13914 (print-utils.o): New target.
13915 (IPA_OBJS): Add print-utils-ipa.o.
13917 2014-02-06 Tom Tromey <tromey@redhat.com>
13919 * Makefile.in (SFILES): Fix indentation.
13921 2014-02-05 Doug Evans <dje@google.com>
13923 * linux-low.c (linux_wait_for_event): Improve comment.
13924 (linux_wait_1): Keep current_inferior in sync with event_child.
13926 2014-01-22 Doug Evans <dje@google.com>
13928 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13930 2014-01-22 Doug Evans <dje@google.com>
13932 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13933 * configure: Regenerate.
13934 * config.in: Regenerate.
13935 * Makefile.in (SFILES): Add debug.c.
13936 (OBS): Add debug.o.
13937 * debug.c: New file.
13938 * debug.h: New file.
13939 * linux-aarch64-low.c (*): Update all debugging printfs to use
13940 debug_printf instead of fprintf.
13941 * linux-arm-low.c (*): Ditto.
13942 * linux-cris-low.c (*): Ditto.
13943 * linux-crisv32-low.c (*): Ditto.
13944 * linux-m32r-low.c (*): Ditto.
13945 * linux-sparc-low.c (*): Ditto.
13946 * linux-x86.c (*): Ditto.
13947 * linux-low.c (*): Ditto.
13948 (linux_wait_1): Add calls to debug_enter, debug_exit.
13949 (linux_wait): Remove redundant debugging printf.
13950 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13951 (linux_resume, unstop_all_lwps): Ditto.
13952 * mem-break.c (*): Update all debugging printfs to use
13953 debug_printf instead of fprintf.
13954 * remote-utils.c (*): Ditto.
13955 * thread-db.c (*): Ditto.
13956 * server.c #include <ctype.h>, "gdb_vecs.h".
13957 (debug_threads): Moved to debug.c.
13958 (*): Update all debugging printfs to use debug_printf instead of
13960 (start_inferior): Replace call to fflush with call to debug_flush.
13961 (monitor_show_help): Mention set debug-format.
13962 (parse_debug_format_options): New function.
13963 (handle_monitor_command): Handle "monitor set debug-format".
13964 (gdbserver_usage): Mention --debug-format.
13965 (main): Parse --debug-format.
13966 * server.h (debug_threads): Declaration moved to debug.h.
13967 #include "debug.h".
13968 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13969 trace_debug_1 that uses debug_printf.
13970 (tracepoint_look_up_symbols): Update all debugging printfs to use
13971 debug_printf instead of fprintf.
13973 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13975 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13978 2014-01-17 Pedro Alves <palves@redhat.com>
13981 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13982 defined after including gdb_proc_service.h.
13984 2014-01-16 Doug Evans <dje@google.com>
13986 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13987 (match_dll): Use it.
13989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13991 * target.h (target_ops) <read_btrace>: Change parameters and
13992 return type to allow error reporting.
13993 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13994 trace reading errors on.
13995 * linux-low.c (linux_low_read_btrace): Pass trace reading
13997 (linux_low_disable_btrace): New.
13999 2014-01-15 Doug Evans <dje@google.com>
14001 * inferiors.c (thread_id_to_gdb_id): Delete.
14002 * inferiors.h (thread_id_to_gdb_id): Delete.
14004 2014-01-13 Eli Zaretskii <eliz@gnu.org>
14006 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
14007 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
14010 2014-01-08 Pedro Alves <palves@redhat.com>
14012 * server.c (handle_status): Don't discard previous queued stop
14013 replies or thread's pending status here.
14014 (main) <disconnection>: Do it here instead.
14016 2014-01-08 Pedro Alves <palves@redhat.com>
14018 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
14019 * server.c (visit_actioned_threads, handle_pending_status): New
14021 (handle_v_cont): Factor out parts to ...
14022 (resume): ... this new function. If in all-stop, and a thread
14023 being resumed has a pending status, report it without actually
14025 (myresume): Adjust to use the new 'resume' function.
14026 (clear_pending_status_callback, set_pending_status_callback)
14027 (find_status_pending_thread_callback): New functions.
14028 (handle_status): Handle the case of multiple threads having
14029 interesting statuses to report. Report threads' real last signal
14030 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14031 with an interesting thread to report the status for, instead of
14032 always reporting the status of the first thread.
14034 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14036 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14037 * gdbreplay.c (gdbreplay_version): Likewise.
14039 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14041 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14042 iov.iov_len with the real length in use.
14044 2013-12-13 Joel Brobecker <brobecker@adacore.com>
14046 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14047 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14048 for all targets that use win32-low.c.
14049 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14050 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14052 2013-12-13 Pedro Alves <palves@redhat.com>
14054 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14055 if equal to TARGET_WAITKIND_LOADED.
14056 * win32-low.c (cached_status): New static global.
14057 (win32_wait): Add declaration.
14058 (do_initial_child_stuff): Flush all initial pending debug events
14059 up to the initial breakpoint.
14060 (win32_wait): If CACHED_STATUS was set, return that instead
14061 of doing a real wait. Remove the code resuming the execution
14062 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14063 during the initial phase. Also remove the code changing
14064 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14065 TARGET_WAITKIND_STOPPED.
14067 2013-12-11 Yao Qi <yao@codesourcery.com>
14069 * notif.c (handle_notif_ack): Return 0 if no notification
14072 2013-11-20 Doug Evans <dje@google.com>
14074 * linux-low.c (linux_set_resume_request): Fix comment.
14076 2013-11-20 Doug Evans <dje@google.com>
14078 * linux-low.c (resume_status_pending_p): Tweak comment.
14080 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14082 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14083 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14084 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14085 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14086 (srv_amd64_regobj): Add amd64-mpx.o.
14087 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14088 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14089 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14090 * i387-fp.c (num_pl_bnd_register) Added constant.
14091 (num_pl_bnd_cfg_registers) Added constant.
14092 (struct i387_xsave) Added reserved area and MPX fields.
14093 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14094 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14096 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14097 (init_registers_amd64_mpx_linux): Declare new function.
14098 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14099 (x86_64_regmap): Add MPX registers.
14100 (x86_linux_read_description): Add MPX case.
14101 (initialize_low_arch): Initialize MPX targets.
14103 2013-11-18 Tom Tromey <tromey@redhat.com>
14105 * configure: Rebuild.
14106 * configure.ac: Don't check for stdlib.h.
14107 * gdbreplay.c: Unconditionally include stdlib.h.
14109 2013-11-18 Tom Tromey <tromey@redhat.com>
14111 * config.in: Rebuild.
14112 * configure: Rebuild.
14113 * configure.ac: Don't use AC_HEADER_DIRENT.
14115 2013-11-18 Tom Tromey <tromey@redhat.com>
14117 * server.h: Don't check HAVE_STRING_H.
14118 * gdbreplay.c: Don't check HAVE_STRING_H.
14119 * configure: Rebuild.
14121 2013-11-18 Tom Tromey <tromey@redhat.com>
14123 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14126 2013-11-08 Tom Tromey <tromey@redhat.com>
14128 * configure, config.in: Rebuild.
14129 * configure.ac: Remove unused configury.
14131 2013-11-08 Tom Tromey <tromey@redhat.com>
14133 * acinclude.m4: Include common.m4, codeset.m4.
14134 * configure, config.in: Rebuild.
14135 * configure.ac: Use GDB_AC_COMMON.
14137 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14139 * linux-s390-low.c (HWCAP_S390_TE): New define.
14140 (s390_arch_setup): Consider the TE field in the HWCAP for
14141 determining 'have_regset_tdb'.
14143 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14146 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14149 2013-10-02 Pedro Alves <palves@redhat.com>
14151 * server.c (process_serial_event): Don't output "GDBserver
14152 exiting" if GDB is connected through stdio.
14153 * target.c (mywait): Likewise, be silent if GDB is connected
14156 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14158 * lynx-low.c (lynx_add_threads_after_attach): New function.
14159 (lynx_attach): Remove call to add_thread. Add call to
14160 lynx_add_threads_after_attach instead.
14162 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14164 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14165 * config.in, configure: Regenerated.
14167 2013-09-18 Yao Qi <yao@codesourcery.com>
14170 * server.c (start_inferior): Clear 'resume_info'.
14172 2013-09-16 Jiong Wang <jiwang@tilera.com>
14174 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14177 2013-09-16 Jiong Wang <jiwang@tilera.com>
14179 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14180 linux-tile-low.o to srv_tgtobj.
14182 2013-09-16 Will Newton <will.newton@linaro.org>
14184 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14187 2013-09-06 Pedro Alves <palves@redhat.com>
14189 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14190 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14191 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14192 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14193 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14194 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14196 2013-09-06 Pedro Alves <palves@redhat.com>
14198 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14199 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14201 2013-09-06 Pedro Alves <palves@redhat.com>
14203 * linux-amd64-ipa.c: Include tracepoint.h.
14204 * linux-i386-ipa.c: Include tracepoint.h.
14206 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14208 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14209 (ps_get_thread_area): New function.
14211 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14213 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14214 (initialize_low_arch): Call init_registers_crisv32 rather than
14215 init_register_crisv32.
14217 2013-09-05 Pedro Alves <palves@redhat.com>
14219 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14221 * hostio.h: ... this new file.
14222 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14223 win32-low.c: Include hostio.h.
14225 2013-09-05 Pedro Alves <palves@redhat.com>
14227 * server.h (gdb_client_data, handler_func, callback_handler_func)
14228 (delete_file_handler, add_file_handler, append_callback_event)
14229 (delete_callback_event, start_event_loop, initialize_event_loop):
14230 Move to event-loop.h and include it.
14231 * event-loop.h: New file.
14233 2013-09-05 Pedro Alves <palves@redhat.com>
14235 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14236 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14237 (loaded_dll, unloaded_dll): Move to ...
14238 * dll.h: ... this new file.
14239 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14241 2013-09-05 Pedro Alves <palves@redhat.com>
14243 * server.h (current_process, get_thread_process, all_processes)
14244 (add_inferior_to_list, for_each_inferior, current_inferior)
14245 (remove_inferior, add_process, remove_process, find_process_pid)
14246 (have_started_inferiors_p, have_attached_inferiors_p)
14247 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14248 (clear_inferiors, find_inferior, find_inferior_id)
14249 (inferior_target_data, set_inferior_target_data)
14250 (inferior_regcache_data, set_inferior_regcache_data): Move to
14251 inferiors.h, and include it.
14252 * inferiors.h: New file.
14254 2013-09-05 Pedro Alves <palves@redhat.com>
14256 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14260 2013-09-05 Pedro Alves <palves@redhat.com>
14262 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14264 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14265 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14266 (handle_tracepoint_general_set, handle_tracepoint_query)
14267 (tracepoint_finished_step, tracepoint_was_hit)
14268 (release_while_stepping_state_list, current_traceframe)
14269 (in_readonly_region, traceframe_read_mem)
14270 (fetch_traceframe_registers, traceframe_read_sdata)
14271 (traceframe_read_info, struct fast_tpoint_collect_status)
14272 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14273 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14274 (supply_fast_tracepoint_registers)
14275 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14276 (ipa_tdesc, claim_trampoline_space)
14277 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14278 (agent_mem_read, agent_get_trace_state_variable_value)
14279 (agent_set_trace_state_variable_value, agent_tsv_read)
14280 (agent_mem_read_string, get_raw_reg_func_addr)
14281 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14282 * tracepoint.h: ... this new file.
14284 2013-09-05 Pedro Alves <palves@redhat.com>
14286 * server.h (perror_with_name, error, fatal, warning, paddress)
14287 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14289 * utils.h: New file.
14291 2013-09-05 Pedro Alves <palves@redhat.com>
14293 * server.h (remote_debug, noack_mode, transport_is_reliable)
14294 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14295 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14296 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14297 (write_enn, initialize_async_io, enable_async_io)
14298 (disable_async_io, check_remote_input_interrupt_request)
14299 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14300 (dead_thread_notify, prepare_resume_reply)
14301 (decode_address_to_semicolon, decode_address, decode_m_packet)
14302 (decode_M_packet, decode_X_packet, decode_xfer_write)
14303 (decode_search_memory_packet, unhexify, hexify)
14304 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14305 (look_up_one_symbol, relocate_instruction)
14306 (monitor_output): Move to remote-utils.h, and include it.
14307 * remote-utils.h: New file.
14309 2013-09-05 Pedro Alves <palves@redhat.com>
14311 * server.h (_): Delete.
14313 2013-09-02 Pedro Alves <palves@redhat.com>
14315 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14316 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14318 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14320 2013-09-02 Pierre Muller <muller@sourceware.org>
14322 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14323 or WriteProcessMemory complete successfully and handle
14324 ERROR_PARTIAL_COPY error.
14326 2013-09-02 Pedro Alves <palves@redhat.com>
14328 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14329 error instead of EIO.
14331 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14334 * linux-low.c: Include filestuff.h.
14335 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14336 * lynx-low.c: Include filestuff.h.
14337 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14338 * server.c: Include filestuff.h.
14339 (main): Call notice_open_fds.
14340 * spu-low.c: Include filestuff.h.
14341 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14343 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14345 * Makefile.in: Explain why ../target and ../nat are not
14346 listed as include file search paths.
14347 (linux-waitpid.o): New object file rule.
14348 * configure.srv (srv_native_linux_obj): New variable.
14349 Replace all occurrences of linux native object files with
14350 $srv_native_linux_obj.
14351 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14352 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14353 (linux_enable_event_reporting): Remove declaration.
14354 (my_waitpid): Moved to common/linux-waitpid.c.
14355 (linux_wait_for_event): Pass ptid when calling
14356 linux_enable_event_reporting.
14357 (linux_supports_tracefork_flag): Remove.
14358 (linux_enable_event_reporting): Likewise.
14359 (linux_tracefork_grandchild): Remove.
14360 (STACK_SIZE): Moved to common/linux-ptrace.c.
14361 (linux_tracefork_child): Remove.
14362 (linux_test_for_tracefork): Remove.
14363 (linux_look_up_symbols): Call linux_supports_traceclone.
14364 (initialize_low): Remove call to linux_test_for_tracefork.
14365 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14366 common/linux-ptrace.h.
14367 (PTRACE_TYPE_ARG4): Likewise.
14368 Include linux-ptrace.h.
14370 2013-08-21 Pedro Alves <palves@redhat.com>
14372 * config.in: Renegerate.
14374 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14376 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14377 (SFILES): Remove $(srcdir)/common/target-common.c and
14378 add $(srcdir)/target/waitstatus.c.
14379 (OBS): Remove target-common.o and add waitstatus.o.
14380 (server_h): Remove $(srcdir)/../common/target-common.h and
14381 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14382 and $(srcdir)/../target/waitstatus.h.
14383 (target-common.o): Remove.
14384 (waitstatus.o): New target object file.
14385 * target.h: Do not include target-common.h and
14386 include target/resume.h, target/wait.h and
14387 target/waitstatus.h.
14389 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14391 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14392 to PTRACE_TYPE_ARG3.
14393 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14394 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14396 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14397 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14399 2013-07-27 Jie Zhang <jie@codesourcery.com>
14400 Daniel Jacobowitz <dan@codesourcery.com>
14401 Yao Qi <yao@codesourcery.com>
14403 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14404 (mips-linux-watch.o): New rule.
14405 (mips_linux_watch_h): New variable.
14406 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14408 * linux-mips-low.c: Include mips-linux-watch.h.
14409 (struct arch_process_info, struct arch_lwp_info): New.
14410 (update_watch_registers_callback): New function.
14411 (mips_linux_new_process, mips_linux_new_thread) New functions.
14412 (mips_linux_prepare_to_resume, mips_insert_point): New
14414 (mips_remove_point, mips_stopped_by_watchpoint): New
14416 (rsp_bp_type_to_target_hw_bp_type): New function.
14417 (mips_stopped_data_address): New function.
14418 (the_low_target): Add watchpoint support functions.
14420 2013-07-27 Yao Qi <yao@codesourcery.com>
14422 * i386-low.c: Include break-common.h.
14423 (enum target_hw_bp_type): Remove.
14425 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14427 * Makefile.in (SFILES): /common/target-common.c.
14428 (OBS): Add target-common.o.
14429 (server_h): Add $(srcdir)/../common/target-common.h.
14430 (target-common.o): New target.
14431 * server.c (queue_stop_reply_callback): Free
14432 status string after use.
14433 * target.c (target_waitstatus_to_string): Remove.
14434 * target.h: Include target-common.h.
14435 (resume_kind): Likewise.
14436 (target_waitkind): Likewise.
14437 (target_waitstatus): Likewise.
14438 (TARGET_WNOHANG): Likewise.
14440 2013-07-04 Yao Qi <yao@codesourcery.com>
14442 * Makefile.in (host_alias): Use @host_noncanonical@.
14443 (target_alias): Use @target_noncanonical@.
14444 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14445 ACX_NONCANONICAL_HOST.
14446 * configure: Regenerated.
14449 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14451 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14452 * configure: Rebuild.
14453 * Makefile.in (version_host, version_target): Get from configure.
14454 (version.c): Use $(version_host) and $(version_target).
14456 2013-07-03 Pedro Alves <palves@redhat.com>
14458 * Makefile.in (config.status): Depend on development.sh.
14459 * acinclude.m4: Include libmcheck.m4.
14460 * configure: Regenerate.
14462 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14464 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14465 attribute inside the parentheses.
14466 (winapi_DebugSetProcessKillOnExit): Ditto.
14467 (winapi_DebugBreakProcess): Ditto.
14468 (winapi_GenerateConsoleCtrlEvent): Ditto.
14470 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14472 * notif.h (notif_event): Add a dummy member to avoid compiler
14475 2013-07-01 Pedro Alves <palves@redhat.com>
14477 * hostio.c (HOSTIO_PATH_MAX): Define.
14478 (require_filename, handle_open, handle_unlink, handle_readlink):
14481 2013-07-01 Pedro Alves <palves@redhat.com>
14483 * server.h: Include "pathmax.h".
14484 * linux-low.c: Don't include sys/param.h.
14485 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14487 * win32-low.c: Don't include sys/param.h.
14488 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14490 2013-07-01 Pedro Alves <palves@redhat.com>
14492 * event-loop.c: Don't check HAVE_UNISTD_H before including
14494 * gdbreplay.c: Likewise.
14495 * remote-utils.c: Likewise.
14496 * server.c: Likewise.
14497 * configure.ac: Don't check for unistd.h.
14498 * configure: Regenerate.
14500 2013-06-28 Tom Tromey <tromey@redhat.com>
14502 * Makefile.in (version.c): Use version.in, not
14505 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14507 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14508 * configure: Rebuild.
14509 * Makefile.in (version_host, version_target): Get from configure.
14510 (version.c): Use $(version_host) and $(version_target).
14512 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14514 Fix trace-status to output user name without trailing colon.
14515 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14517 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14519 Fix trace-status to output proper start-time and stop-time.
14520 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14521 output start time and stop time in hex as gdb expects.
14523 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14525 * tracepoint.c (build_traceframe_info_xml): Output trace state
14526 variables present in the trace buffer.
14528 2013-06-24 Tom Tromey <tromey@redhat.com>
14530 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14532 (version.o): Remove.
14533 * gdbreplay.c: Include version.h.
14534 (version, host_name): Don't declare.
14535 * server.h: Include version.h.
14536 (version, host_name): Don't declare.
14538 2013-06-12 Pedro Alves <palves@redhat.com>
14540 * linux-x86-low.c (linux_is_elf64): Delete global.
14541 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14542 with local linux_pid_exe_is_elf_64_file use.
14544 2013-06-11 Pedro Alves <palves@redhat.com>
14546 * linux-low.c (regset_disabled, disable_regset): New functions.
14547 (regsets_fetch_inferior_registers)
14548 (regsets_store_inferior_registers): Use them.
14549 (initialize_regsets_info); Don't allocate the disabled_regsets
14551 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14554 2013-06-11 Pedro Alves <palves@redhat.com>
14556 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14559 2013-06-11 Pedro Alves <palves@redhat.com>
14561 * linux-x86-low.c (initialize_low_arch): Call
14562 init_registers_x32_avx_linux.
14564 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14566 Fix compatibility with Android Bionic.
14567 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14570 2013-06-07 Pedro Alves <palves@redhat.com>
14573 * Makefile.in (OBS): Add tdesc.o.
14574 (IPA_OBJS): Add tdesc-ipa.o.
14575 (tdesc-ipa.o): New rule.
14576 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14578 * linux-low.c (new_inferior): Delete.
14579 (disabled_regsets, num_regsets): Delete.
14580 (linux_add_process): Adjust to set the new per-process
14582 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14583 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14584 was a stop. When calling arch_setup, switch the current inferior
14585 to the thread that got an event.
14586 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14587 (regsets_fetch_inferior_registers)
14588 (regsets_store_inferior_registers): New regsets_info parameter.
14590 (linux_register_in_regsets): New regs_info parameter. Adjust to
14592 (register_addr, fetch_register, store_register): New usrregs_info
14593 parameter. Adjust to use it.
14594 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14595 parameter regs_info. Adjust to use it.
14596 (linux_fetch_registers): Get the current inferior's regs_info, and
14598 (linux_store_registers): Ditto.
14599 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14600 (initialize_low): Don't initialize the target_regsets here. Call
14601 initialize_low_arch.
14602 * linux-low.h (target_regsets): Delete declaration.
14603 (struct regsets_info): New.
14604 (struct usrregs_info): New.
14605 (struct regs_info): New.
14606 (struct process_info_private) <new_inferior>: New field.
14607 (struct linux_target_ops): Delete the num_regs, regmap, and
14608 regset_bitmap fields. New field regs_info.
14609 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14610 * i387-fp.c (num_xmm_registers): Delete.
14611 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14612 calls to new interface.
14613 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14614 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14615 Infer the number of xmm registers from the regcache's target
14617 * i387-fp.h (num_xmm_registers): Delete.
14618 * inferiors.c (add_thread): Don't install the thread's regcache
14620 * proc-service.c (gregset_info): Fetch the current inferior's
14621 regs_info. Adjust to use it.
14622 * regcache.c: Include tdesc.h.
14623 (register_bytes, reg_defs, num_registers)
14624 (gdbserver_expedite_regs): Delete.
14625 (get_thread_regcache): If the thread doesn't have a regcache yet,
14626 create one, instead of aborting gdbserver.
14627 (regcache_invalidate_one): Rename to ...
14628 (regcache_invalidate_thread): ... this.
14629 (regcache_invalidate_one): New.
14630 (regcache_invalidate): Only invalidate registers of the current
14632 (init_register_cache): Add target_desc parameter, and use it.
14633 (new_register_cache): Ditto. Assert the target description has a
14634 non zero registers_size.
14635 (regcache_cpy): Add assertions. Adjust.
14636 (realloc_register_cache, set_register_cache): Delete.
14637 (registers_to_string, registers_from_string): Adjust.
14638 (find_register_by_name, find_regno, find_register_by_number)
14639 (register_cache_size): Add target_desc parameter, and use it.
14640 (free_register_cache_thread, free_register_cache_thread_one)
14641 (regcache_release, register_cache_size): New.
14642 (register_size): Add target_desc parameter, and use it.
14643 (register_data, supply_register, supply_register_zeroed)
14644 (supply_regblock, supply_register_by_name, collect_register)
14645 (collect_register_as_string, collect_register_by_name): Adjust.
14646 * regcache.h (struct target_desc): Forward declare.
14647 (struct regcache) <tdesc>: New field.
14648 (init_register_cache, new_register_cache): Add target_desc
14650 (regcache_invalidate_thread): Declare.
14651 (regcache_invalidate_one): Delete declaration.
14652 (regcache_release): Declare.
14653 (find_register_by_number, register_cache_size, register_size)
14654 (find_regno): Add target_desc parameter.
14655 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14657 * remote-utils.c: Include tdesc.h.
14658 (outreg, prepare_resume_reply): Adjust.
14659 * server.c: Include tdesc.h.
14660 (gdbserver_xmltarget): Delete declaration.
14661 (get_features_xml, process_serial_event): Adjust.
14662 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14664 (struct process_info) <tdesc>: New field.
14665 (ipa_tdesc): Declare.
14666 * tdesc.c: New file.
14667 * tdesc.h: New file.
14668 * tracepoint.c: Include tdesc.h.
14669 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14670 (get_context_regcache): Adjust to pass ipa_tdesc down.
14671 (do_action_at_tracepoint): Adjust to get the register cache size
14672 from the context regcache's description.
14673 (traceframe_walk_blocks): Adjust to get the register cache size
14674 from the current trace frame's description.
14675 (traceframe_get_pc): Adjust to get current trace frame's
14676 description and pass it down.
14677 (gdb_collect): Adjust to get the register cache size from the
14679 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14680 (gdbserver_xmltarget): Delete.
14681 (initialize_low_tracepoint): Set the ipa's target description.
14682 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14683 (initialize_low_tracepoint): Set the ipa's target description.
14684 * linux-x86-low.c: Include tdesc.h.
14685 [__x86_64__] (is_64bit_tdesc): New.
14686 (ps_get_thread_area, x86_get_thread_area): Use it.
14687 (i386_cannot_store_register): Rename to ...
14688 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14689 (i386_cannot_fetch_register): Rename to ...
14690 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14691 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14693 (target_regsets): Rename to ...
14694 (x86_regsets): ... this.
14695 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14697 (x86_siginfo_fixup): Use is_64bit_tdesc.
14698 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14699 (tdesc_x32_avx_linux, tdesc_x32_linux)
14700 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14702 (x86_linux_update_xmltarget): Delete.
14703 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14704 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14705 (AMD64_LINUX_USER64_CS): New.
14706 (x86_linux_read_description): New, based on
14707 x86_linux_update_xmltarget.
14708 (same_process_callback): New.
14709 (x86_arch_setup_process_callback): New.
14710 (x86_linux_update_xmltarget): New.
14711 (x86_regsets_info): New.
14712 (amd64_linux_regs_info): New.
14713 (i386_linux_usrregs_info): New.
14714 (i386_linux_regs_info): New.
14715 (x86_linux_regs_info): New.
14716 (x86_arch_setup): Reimplement.
14717 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14718 (x86_emit_ops): Ditto.
14719 (the_low_target): Adjust. Install x86_linux_regs_info,
14720 x86_cannot_fetch_register, and x86_cannot_store_register.
14721 (initialize_low_arch): New.
14722 * linux-ia64-low.c (tdesc_ia64): Declare.
14723 (ia64_fetch_register): Adjust.
14724 (ia64_usrregs_info, regs_info): New globals.
14725 (ia64_regs_info): New function.
14726 (the_low_target): Adjust.
14727 (initialize_low_arch): New function.
14728 * linux-sparc-low.c (tdesc_sparc64): Declare.
14729 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14731 (sparc_arch_setup): New function.
14732 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14733 (the_low_target): Adjust.
14734 (initialize_low_arch): New function.
14735 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14736 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14737 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14738 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14739 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14740 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14741 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14742 (tdesc_powerpc_isa205_vsx64l): Declare.
14743 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14744 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14745 (ppc_set_pc, ppc_get_hwcap): Adjust.
14746 (ppc_usrregs_info): Forward declare.
14747 (!__powerpc64__) ppc_regmap_adjusted: New global.
14748 (ppc_arch_setup): Adjust to the current process'es target
14750 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14751 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14752 (ppc_store_evrregset): Adjust.
14753 (target_regsets): Rename to ...
14754 (ppc_regsets): ... this, and make static.
14755 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14756 (ppc_regs_info): New function.
14757 (the_low_target): Adjust.
14758 (initialize_low_arch): New function.
14759 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14760 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14761 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14762 (tdesc_s390x_linux64v2): Declare.
14763 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14764 (s390_fill_gregset, s390_store_last_break): Adjust.
14765 (target_regsets): Rename to ...
14766 (s390_regsets): ... this, and make static.
14767 (s390_get_pc, s390_set_pc): Adjust.
14768 (s390_get_hwcap): New target_desc parameter, and use it.
14769 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14770 (s390_arch_setup): Adjust to set the current process'es target
14771 description. Don't adjust the regmap.
14772 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14773 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14774 (regs_info_3264): New globals.
14775 (s390_regs_info): New function.
14776 (the_low_target): Adjust.
14777 (initialize_low_arch): New function.
14778 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14779 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14780 [__mips64] (init_registers_mips_linux)
14781 (init_registers_mips_dsp_linux): Delete defines.
14782 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14783 (have_dsp): New global.
14784 (mips_read_description): New, based on mips_arch_setup.
14785 (mips_arch_setup): Reimplement.
14786 (get_usrregs_info): New function.
14787 (mips_cannot_fetch_register, mips_cannot_store_register)
14788 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14789 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14790 (target_regsets): Rename to ...
14791 (mips_regsets): ... this, and make static.
14792 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14793 (dsp_regs_info, regs_info): New globals.
14794 (mips_regs_info): New function.
14795 (the_low_target): Adjust.
14796 (initialize_low_arch): New function.
14797 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14798 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14800 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14801 (arm_read_description): New, with bits factored from
14803 (arm_arch_setup): Reimplement.
14804 (target_regsets): Rename to ...
14805 (arm_regsets): ... this, and make static.
14806 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14807 (arm_regs_info): New function.
14808 (the_low_target): Adjust.
14809 (initialize_low_arch): New function.
14810 * linux-m68k-low.c (tdesc_m68k): Declare.
14811 (target_regsets): Rename to ...
14812 (m68k_regsets): ... this, and make static.
14813 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14814 (m68k_regs_info): New function.
14815 (m68k_arch_setup): New function.
14816 (the_low_target): Adjust.
14817 (initialize_low_arch): New function.
14818 * linux-sh-low.c (tdesc_sharch): Declare.
14819 (target_regsets): Rename to ...
14820 (sh_regsets): ... this, and make static.
14821 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14822 (sh_regs_info, sh_arch_setup): New functions.
14823 (the_low_target): Adjust.
14824 (initialize_low_arch): New function.
14825 * linux-bfin-low.c (tdesc_bfin): Declare.
14826 (bfin_arch_setup): New function.
14827 (bfin_usrregs_info, regs_info): New globals.
14828 (bfin_regs_info): New function.
14829 (the_low_target): Adjust.
14830 (initialize_low_arch): New function.
14831 * linux-cris-low.c (tdesc_cris): Declare.
14832 (cris_arch_setup): New function.
14833 (cris_usrregs_info, regs_info): New globals.
14834 (cris_regs_info): New function.
14835 (the_low_target): Adjust.
14836 (initialize_low_arch): New function.
14837 * linux-cris-low.c (tdesc_crisv32): Declare.
14838 (cris_arch_setup): New function.
14839 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14840 (cris_regs_info): New function.
14841 (the_low_target): Adjust.
14842 (initialize_low_arch): New function.
14843 * linux-m32r-low.c (tdesc_m32r): Declare.
14844 (m32r_arch_setup): New function.
14845 (m32r_usrregs_info, regs_info): New globals.
14846 (m32r_regs_info): Adjust.
14847 (initialize_low_arch): New function.
14848 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14849 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14850 (tic6x_usrregs_info): Forward declare.
14851 (tic6x_read_description): New function, based on ...
14852 (tic6x_arch_setup): ... this. Reimplement.
14853 (target_regsets): Rename to ...
14854 (tic6x_regsets): ... this, and make static.
14855 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14856 (tic6x_regs_info): New function.
14857 (the_low_target): Adjust.
14858 (initialize_low_arch): New function.
14859 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14860 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14861 (target_regsets): Rename to ...
14862 (xtensa_regsets): ... this, and make static.
14863 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14865 (xtensa_arch_setup, xtensa_regs_info): New functions.
14866 (the_low_target): Adjust.
14867 (initialize_low_arch): New function.
14868 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14869 (nios2_arch_setup): Set the current process'es tdesc.
14870 (target_regsets): Rename to ...
14871 (nios2_regsets): ... this.
14872 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14873 (nios2_regs_info): New function.
14874 (the_low_target): Adjust.
14875 (initialize_low_arch): New function.
14876 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14877 (aarch64_arch_setup): Set the current process'es tdesc.
14878 (target_regsets): Rename to ...
14879 (aarch64_regsets): ... this.
14880 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14881 (aarch64_regs_info): New function.
14882 (the_low_target): Adjust.
14883 (initialize_low_arch): New function.
14884 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14886 (target_regsets): Rename to ...
14887 (tile_regsets): ... this.
14888 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14889 (tile_regs_info): New function.
14890 (tile_arch_setup): Set the current process'es tdesc.
14891 (the_low_target): Adjust.
14892 (initialize_low_arch): New function.
14893 * spu-low.c (tdesc_spu): Declare.
14894 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14895 * win32-arm-low.c (tdesc_arm): Declare.
14896 (arm_arch_setup): New function.
14897 (the_low_target): Install arm_arch_setup instead of
14898 init_registers_arm.
14899 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14900 (init_windows_x86): Rename to ...
14901 (i386_arch_setup): ... this. Set `win32_tdesc'.
14902 (the_low_target): Adjust.
14903 * win32-low.c (win32_tdesc): New global.
14904 (child_add_thread): Don't create the thread cache here.
14905 (do_initial_child_stuff): Set the new process'es tdesc.
14906 * win32-low.h (struct target_desc): Forward declare.
14907 (win32_tdesc): Declare.
14908 * lynx-i386-low.c (tdesc_i386): Declare global.
14909 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14910 * lynx-low.c (lynx_tdesc): New global.
14911 (lynx_add_process): Set the new process'es tdesc.
14912 * lynx-low.h (struct target_desc): Forward declare.
14913 (lynx_tdesc): Declare global.
14914 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14915 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14916 * nto-low.c (nto_tdesc): New global.
14917 (do_attach): Set the new process'es tdesc.
14918 * nto-low.h (struct target_desc): Forward declare.
14919 (nto_tdesc): Declare.
14920 * nto-x86-low.c (tdesc_i386): Declare.
14921 (nto_x86_arch_setup): Set `nto_tdesc'.
14923 2013-06-04 Gary Benson <gbenson@redhat.com>
14925 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14926 to qSupported response when appropriate.
14927 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14928 with nonzero-length annex.
14929 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14930 arguments supplied in annex.
14932 2013-05-31 Doug Evans <dje@google.com>
14935 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14936 64 bits in 64-cross-32 environment.
14938 2013-05-28 Pedro Alves <palves@redhat.com>
14940 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14941 (aarch64-without-fpu.c): Delete rule.
14942 * configure.srv (aarch64*-*-linux*): Remove references to
14943 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14944 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14947 2013-05-24 Pedro Alves <palves@redhat.com>
14949 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14950 instead of strchr/decode_address. Error if the range isn't split
14951 with a ','. Don't assume there's be a ':' in the action.
14953 2013-05-23 Yao Qi <yao@codesourcery.com>
14954 Pedro Alves <palves@redhat.com>
14956 * linux-low.c (lwp_in_step_range): New function.
14957 (linux_wait_1): If the thread was range stepping and stopped
14958 outside the stepping range, report the stop to GDB. Otherwise,
14959 continue stepping. Add range stepping debug output.
14960 (linux_set_resume_request): Copy the step range from the resume
14961 request to the lwp.
14962 (linux_supports_range_stepping): New.
14963 (linux_target_ops) <supports_range_stepping>: Set to
14964 linux_supports_range_stepping.
14965 * linux-low.h (struct linux_target_ops)
14966 <supports_range_stepping>: New field.
14967 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14968 * linux-x86-low.c (x86_supports_range_stepping): New.
14969 (the_low_target) <supports_range_stepping>: Set to
14970 x86_supports_range_stepping.
14971 * server.c (handle_v_cont): Handle 'r' action.
14972 (handle_v_requests): Append ";r" if the target supports range
14974 * target.h (struct thread_resume) <step_range_start,
14975 step_range_end>: New fields.
14976 (struct target_ops) <supports_range_stepping>:
14978 (target_supports_range_stepping): New macro.
14980 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14982 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14983 confusion in comment.
14985 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14987 * lynx-low.c (struct process_info_private): New type.
14988 (lynx_add_process): New function.
14989 (lynx_create_inferior, lynx_attach): Replace calls to
14990 add_process by calls to lynx_add_process.
14991 (lynx_resume): If PTID is null, then try using
14992 current_process()->private->last_wait_event_ptid.
14994 (lynx_clear_inferiors): Delete. The contents of that function
14995 has been inlined in lynx_mourn;
14996 (lynx_wait_1): Save the ptid in the process's private data.
14997 (lynx_mourn): Free the process' private data. Replace call
14998 to lynx_clear_inferiors by call to clear_inferiors.
15000 2013-05-17 Yao Qi <yao@codesourcery.com>
15002 * i386-low.c (i386_length_and_rw_bits): Move the comment to
15005 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
15007 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
15008 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
15009 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
15010 PT_TEXT_END_ADDR guards. Update comments.
15011 (linux_target_op) <read_offsets>: Conditionally define to
15012 linux_read_offsets if the target is UCLIBC and if it defines
15013 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
15015 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
15016 Andrew Jenner <andrew@codesourcery.com>
15018 * Makefile.in (SFILES): Add linux-nios2-low.c.
15019 (clean): Add action to delete nios2-linux.c.
15020 (nios2-linux.c): New rule.
15021 * configure.srv: Add nios2*-*-linux*.
15022 * linux-nios2-low.c: New.
15024 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15026 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15028 2013-04-25 Hui Zhu <hui@codesourcery.com>
15031 * ax.c (ax_printf): Add fflush.
15033 2013-04-22 Tom Tromey <tromey@redhat.com>
15035 * Makefile.in (SFILES): Add filestuff.c.
15036 (OBS): Add filestuff.o.
15037 (filestuff.o): New target.
15038 * config.in, configure: Rebuild.
15039 * configure.ac: Check for fdwalk, pipe2.
15041 2013-04-17 Pedro Alves <palves@redhat.com>
15043 * configure.ac (USE_THREAD_DB): Delete variable.
15044 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15045 Don't AC_SUBST USE_THREAD_DB.
15046 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15047 * config.in, configure: Regenerate.
15049 2013-04-16 Pedro Alves <palves@redhat.com>
15051 * linux-low.h (struct lwp_info) <thread_known>: Move under
15052 the USE_THREAD_DB #ifdef.
15054 2013-04-16 Pedro Alves <palves@redhat.com>
15056 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15057 (linux-low.o): Delete rule.
15058 * linux-low.h: Always include "gdb_thread_db.h" instead of
15059 conditionally including thread_db.h.
15060 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15063 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15065 * Makefile.in (install-only): Fix make install regression.
15067 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15069 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15070 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15072 * gdbserver.1: Remove.
15074 2013-03-22 Pedro Alves <palves@redhat.com>
15076 * linux-low.c (handle_extended_wait): Don't call
15077 linux_enable_event_reporting.
15079 2013-03-15 Tony Theodore <tonyt@logyst.com>
15082 * Makefile.in (SHELL): Use @SHELL@.
15084 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15086 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15089 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15091 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15092 Remove extraneous NULL element.
15094 2013-03-13 Yao Qi <yao@codesourcery.com>
15096 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15097 'V' block in trace frame.
15099 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15101 * target.h (struct target_ops): Add btrace ops.
15102 (target_supports_btrace): New macro.
15103 (target_enable_btrace): New macro.
15104 (target_disable_btrace): New macro.
15105 (target_read_btrace): New macro.
15106 * gdbthread.h (struct thread_info): Add btrace field.
15107 * server.c: Include btrace-common.h.
15108 (handle_btrace_general_set): New function.
15109 (handle_btrace_enable): New function.
15110 (handle_btrace_disable): New function.
15111 (handle_general_set): Call handle_btrace_general_set.
15112 (handle_qxfer_btrace): New function.
15113 (struct qxfer qxfer_packets[]): Add btrace entry.
15114 * inferiors.c (remove_thread): Disable btrace.
15115 * linux-low: Include linux-btrace.h.
15116 (linux_low_enable_btrace): New function.
15117 (linux_low_read_btrace): New function.
15118 (linux_target_ops): Add btrace ops.
15119 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15120 Add srv_linux_btrace=yes.
15121 (x86_64-*-linux*): Add linux-btrace.o.
15122 Add srv_linux_btrace=yes.
15123 * configure.ac: Define HAVE_LINUX_BTRACE.
15124 * config.in: Regenerated.
15125 * configure: Regenerated.
15127 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15129 * server.c (handle_qxfer): Preserve error message if -3 is
15131 (qxfer): Document the -3 return value.
15133 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15135 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15136 (linux_btrace_h): New variable.
15137 (linux-btrace.o): New rule.
15139 2013-03-08 Stan Shebs <stan@codesourcery.com>
15140 Hafiz Abid Qadeer <abidh@codesourcery.com>
15142 * tracepoint.c (trace_buffer_size): New global.
15143 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15144 (init_trace_buffer): Change to one-argument function. Allocate
15145 trace buffer memory.
15146 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15147 handle QTBuffer:size packet.
15148 (cmd_bigqtbuffer_size): New function.
15149 (initialize_tracepoint): Call init_trace_buffer with
15150 DEFAULT_TRACE_BUFFER_SIZE.
15151 * server.c (handle_query): Add QTBuffer:size in the
15154 2013-03-07 Yao Qi <yao@codesourcery.com>
15156 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15157 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15159 (cmd_qtsp): Adjust condition. Do post increment.
15160 Set cur_action and cur_step_action back to 0.
15162 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15165 * linux-low.c (linux_write_memory): Return early success if LEN is
15168 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15170 * configure.srv: Add x86_64-*-cygwin* as target.
15172 2013-02-28 Tom Tromey <tromey@redhat.com>
15174 * configure.ac: Invoke AC_SYS_LARGEFILE.
15175 * configure, config.in: Rebuild.
15177 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15179 * win32-low.c: Throughout, fix format strings and casts of
15180 printf-like functions to avoid type related warnings on all
15182 (get_child_debug_event): Print dwDebugEventCode as hex since
15183 that's how it's usually documented.
15185 2013-02-28 Yao Qi <yao@codesourcery.com>
15187 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15190 2013-02-27 Jiong Wang <jiwang@tilera.com>
15192 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15193 (reg-tilegx32.c): New rule.
15194 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15195 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15196 different register info initializer according to elf class.
15197 (init_registers_tilgx32): New function. The tilegx32 register info
15199 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15200 (tile_store_gregset): Likewise.
15202 2013-02-27 Yao Qi <yao@codesourcery.com>
15204 * server.c (process_point_options): Print debug message when
15205 debug_threads is true.
15207 2013-02-26 Yao Qi <yao@codesourcery.com>
15209 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15211 2013-02-19 Pedro Alves <palves@redhat.com>
15212 Kai Tietz <ktietz@redhat.com>
15216 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15217 instead of strtoul to extract address from packet.
15218 (process_serial_event) <'z'>: Likewise.
15220 2013-02-18 Yao Qi <yao@codesourcery.com>
15222 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15224 2013-02-14 Pedro Alves <palves@redhat.com>
15228 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15229 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15231 2013-02-14 Pedro Alves <palves@redhat.com>
15233 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15235 2013-02-14 Pedro Alves <palves@redhat.com>
15237 * tracepoint.c (save_string): Delete.
15238 (add_tracepoint_action): Use savestring instead of save_string.
15240 2013-02-12 Pedro Alves <palves@redhat.com>
15242 * linux-xtensa-low.c: Ditto.
15243 * xtensa-xtregs.c: Ditto.
15245 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15247 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15250 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15252 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15253 aarch64_num_wp_regs and aarch64_num_bp_regs to
15254 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15256 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15258 * linux-aarch64-low.c (ps_get_thread_area): Replace
15259 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15261 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15262 Marcus Shawcroft <marcus.shawcroft@arm.com>
15263 Nigel Stephens <nigel.stephens@arm.com>
15264 Yufeng Zhang <yufeng.zhang@arm.com>
15266 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15267 (aarch64.c, aarch64-without-fpu.c): New targets.
15268 * configure.srv (aarch64*-*-linux*): New.
15269 * linux-aarch64-low.c: New file.
15271 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15273 * linux-low.c (handle_extended_wait, linux_create_inferior)
15274 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15275 (dequeue_one_deferred_signal, linux_resume_one_thread)
15276 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15277 (linux_tracefork_grandchild, linux_test_for_tracefork)
15278 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15279 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15280 where the argument is 0.
15282 2013-01-25 Yao Qi <yao@codesourcery.com>
15284 * event-loop.c: Include "queue.h".
15285 (gdb_event_p): New typedef.
15286 (struct gdb_event) <next_event>: Remove.
15287 (event_queue): Change to QUEUE(gdb_event_p).
15288 (async_queue_event): Remove.
15289 (gdb_event_xfree): New.
15290 (initialize_event_loop): New.
15291 (process_event): Use API from QUEUE.
15292 (wait_for_event): Likewise.
15293 * server.c (main): Call initialize_event_loop.
15294 * server.h (initialize_event_loop): Declare.
15296 2013-01-18 Yao Qi <yao@codesourcery.com>
15298 * ax.h (struct eval_agent_expr_context): New.
15299 (gdb_eval_agent_expr): Update declaration.
15300 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15301 TFRAME. Add new argument CTX.
15302 * server.h (struct eval_agent_expr_context): Declare.
15303 (agent_mem_read, agent_tsv_read): Update declaration.
15304 (agent_mem_read_string): Likewise.
15305 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15306 (add_traceframe_block): Add new argument TPOINT.
15307 Increase TPOINT->traceframe_usage.
15308 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15309 eval_tracepoint_agent_expr.
15310 (condition_true_at_tracepoint): Likewise.
15311 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15312 (agent_mem_read_string, agent_tsv_read): Likewise.
15314 2013-01-16 Yao Qi <yao@codesourcery.com>
15316 * linux-low.c (linux_resume_one_lwp): Don't check
15317 'lwp->bp_reinsert != 0'.
15319 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15320 Pedro Alves <palves@redhat.com>
15322 * lynx-low.c (ptrace_request_to_str): Define a temporary
15323 macro and use it to simplify this function's implementation.
15325 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15327 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15330 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15332 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15334 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15336 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15338 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15340 * lynx-low.c (lynx_resume): Use the resume_info parameter
15341 to determine the ptid for the lynx_ptrace call, unless
15342 it is equal to minus_one_ptid, in which case we use the
15343 ptid of the current_inferior.
15344 (lynx_wait_1): After having received a thread create/exit
15345 event, resume the inferior's execution using the signaling
15346 thread's ptid, rather than the old ptid.
15348 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15350 * lynx-low.c (lynx_resume): Delete variable ret.
15352 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15354 * gdbreplay.c (gdbreplay_version): Update copyright year.
15355 * server.c (gdbserver_version): Likewise.
15357 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15359 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15362 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15364 * lynx-low.c (ptrace_request_to_str): Add handling for
15365 PTRACE_GETTRACESIG.
15367 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15369 * lynx-low.c (lynx_attach): Delete variable new_process.
15371 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15373 * lynx-low.c (lynx_create_inferior): Delete variable
15376 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15378 * lynx-low.c (ptrace_request_to_str): Do not handle
15379 PTRACE_GETTHREADLIST if this macro does not exist.
15381 2012-12-15 Yao Qi <yao@codesourcery.com>
15383 * Makefile.in (OBS): Add notif.o.
15384 * notif.c, notif.h: New.
15385 * server.c: Include "notif.h".
15386 (struct vstop_notif) <next>: Remove.
15388 (queue_stop_reply): Update.
15389 (push_event, send_next_stop_reply): Remove.
15390 (discard_queued_stop_replies): Update.
15391 (notif_stop): New variable.
15392 (handle_v_stopped): Remove.
15393 (handle_v_requests): Don't call handle_v_stopped. Call
15394 handle_ack_notif instead.
15395 (queue_stop_reply_callback): Call notif_event_enque instead
15396 of queue_stop_reply.
15397 (handle_status): Don't call send_next_stop_reply, call
15398 notif_write_event instead.
15399 (kill_inferior_callback): Likewise.
15400 (detach_or_kill_inferior_callback): Likewise.
15401 (main): Call initialize_notif.
15402 (process_serial_event): Call QUEUE_is_empty.
15403 (handle_target_event): Call notif_push instead of push event.
15404 * server.h (push_event): Remove declaration.
15406 2012-12-10 Tom Tromey <tromey@redhat.com>
15408 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15409 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15412 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15413 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15414 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15415 (amd64-linux-ipa.o, ax.o): Rewrite.
15416 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15417 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15418 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15419 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15420 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15421 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15422 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15423 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15424 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15425 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15426 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15427 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15428 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15429 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15430 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15431 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15432 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15433 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15434 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15435 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15436 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15437 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15438 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15439 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15440 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15441 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15442 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15443 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15444 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15445 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15446 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15447 (reg-tilegx.o): Remove.
15448 (all_object_files): New macro.
15449 Include .deps files.
15450 * aclocal.m4, configure: Rebuild.
15451 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15452 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15453 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15455 2012-12-05 Tom Tromey <tromey@redhat.com>
15458 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15460 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15462 * configure.ac: Check for linux/perf_event.h.
15463 * config.in: Regenerated.
15464 * configure: Regenerated.
15466 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15468 * hostio.c (handle_readlink): Decrease buffer size
15469 parameter passed to readlink by one byte.
15471 2012-11-26 Yao Qi <yao@codesourcery.com>
15473 * configure.ac (build_warnings): Append '-Wempty-body'.
15474 * configure: Regenerated.
15475 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15478 2012-11-15 Pierre Muller <muller@sourceware.org>
15480 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15481 * config.in: Regenerate.
15482 * configure: Regenerate.
15483 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15484 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15485 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15486 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15488 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15489 instead of <sys/wait.h> header.
15490 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15492 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15494 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15495 (various make rules): Remove -DGDBSERVER
15497 2012-11-09 Yao Qi <yao@codesourcery.com>
15499 * spu-low.c (current_ptid): Move it to ..
15500 * gdbthread.h: ... here. New.
15501 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15502 * server.c (myresume, process_serial_event): Likewise.
15503 * thread-db.c (thread_db_find_new_threads): Likewise.
15504 * tracepoint.c (run_inferior_command): Likewise.
15506 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15508 * server.c (handle_search_memory_1): Include access length in
15511 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15513 * linux-crisv32-low.c: Fix compile errors.
15515 2012-09-04 Yao Qi <yao@codesourcery.com>
15517 * tracepoint.c (cmd_qtsv): Adjust debug message.
15518 Don't check CUR_TPOINT.
15520 2012-08-28 Yao Qi <yao@codesourcery.com>
15522 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15523 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15524 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15525 Remove declarations of xmalloc, xreallloc, xstrdup and
15527 * Makefile.in (libiberty_h): New.
15528 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15529 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15531 2012-08-23 Yao Qi <yao@codesourcery.com>
15533 * server.h: Remove declaration of 'xsnprintf'.
15535 2012-08-22 Keith Seitz <keiths@redhat.com>
15537 * server.h: Include build-gnulib-gbserver/config.h.
15538 * gdbreplay.c: Likewise.
15540 2012-08-08 Doug Evans <dje@google.com>
15542 * Makefile.in (SFILES): Add gdb_vecs.c.
15543 (OBS): Add gdb_vecs.o.
15544 (gdb_vecs_h, host_defs_h): New variables.
15545 (thread-db.o): Add $(gdb_vecs_h) dependency.
15546 (gdb_vecs.o): New rule.
15547 * thread-db.c: #include "gdb_vecs.h".
15548 (thread_db_load_search): Use a vector to iterate over path elements.
15549 Handle text appearing after "$pdir".
15551 * configure.ac: Add check for strstr.
15552 * config.in: Regenerate.
15553 * configure: Regenerate.
15555 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15557 * hostio.c (handle_pread): If pread fails, fall back to attempting
15559 (handle_pwrite): Likewise for pwrite.
15561 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15563 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15564 between unsupported TYPE and unimplementable ADDR/LEN combination.
15565 (arm_insert_point): Act on new return value.
15567 2012-07-31 Pedro Alves <palves@redhat.com>
15569 * server.c (process_point_options): Only skip tokens if we find
15570 one that is unrecognized. Don't treat 'X' specially while
15571 skipping unrecognized tokens.
15573 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15575 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15576 to 4-byte-align HW breakpoint addresses for Thumb.
15578 2012-07-27 Yao Qi <yao@codesourcery.com>
15582 * server.h: Declare gdb_agent_about_to_close.
15583 * target.c (kill_inferior): Include "agent.h".
15584 New. Send command 'kill'.
15585 * target.h (kill_inferior): Removed macro.
15586 * tracepoint.c (gdb_agent_about_to_close): New.
15587 (gdb_agent_helper_thread): Handle command 'close'.
15588 Wait endlessly until the inferior stops.
15589 Install gdb_agent_remove_socket to atexit hook.
15590 (agent_socket_name): New static variable.
15591 (gdb_agent_socket_init): Replace local variable 'name' with
15592 'agent_socket_name'.
15593 (gdb_agent_remove_socket): New.
15595 2012-07-27 Yao Qi <yao@codesourcery.com>
15597 * server.c (process_point_options): Stop at 'X' when parsing.
15599 2012-07-19 Michael Eager <eager@eagercon.com>
15601 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15603 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15604 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15605 hardware breakpoint.
15607 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15609 * gdbserver/linux-low.c (initialize_low): Call
15610 linux_ptrace_init_warnings.
15612 2012-07-02 Doug Evans <dje@google.com>
15614 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15617 2012-07-02 Stan Shebs <stan@codesourcery.com>
15619 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15620 (ax.o): Add it to build rule.
15622 (OBS): Add format.o.
15623 (IPA_OBS): Add format.o.
15624 * server.c (handle_query): Claim support for breakpoint commands.
15625 (process_point_options): Add command case.
15626 (process_serial_event): Leave running if there are printfs in
15628 * mem-break.h (any_persistent_commands): Declare.
15629 (add_breakpoint_commands): Declare.
15630 (gdb_no_commands_at_breakpoint): Declare.
15631 (run_breakpoint_commands): Declare.
15632 * mem-break.c (struct point_command_list): New struct.
15633 (struct breakpoint): New field command_list.
15634 (any_persistent_commands): New function.
15635 (add_commands_to_breakpoint): New function.
15636 (add_breakpoint_commands): New function.
15637 (gdb_no_commands_at_breakpoint): New function.
15638 (run_breakpoint_commands): New function.
15639 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15641 * ax.c: Include format.h.
15642 (ax_printf): New function.
15643 (gdb_eval_agent_expr): Add printf opcode.
15645 2012-06-13 Yao Qi <yao@codesourcery.com>
15647 * server.c (start_inferior): Remove duplicated writes to fields
15648 'last_resume_kind' and 'last_status' of 'current_inferior'.
15650 2012-06-12 Yao Qi <yao@codesourcery.com>
15651 Pedro Alves <palves@redhat.com>
15653 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15655 * server.c (handle_v_cont): Extend comment.
15657 2012-06-11 Yao Qi <yao@codesourcery.com>
15659 * linux-low.c (linux_attach): Add 'static'.
15661 2012-06-06 Yao Qi <yao@codesourcery.com>
15663 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15665 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15667 Fix gcc -flto compilation warning.
15668 * server.c (main): Make variable multi_mode and attach volatile.
15670 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15672 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15673 if the platform doesn't know about it.
15675 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15677 * Makefile.in (SFILES): Add linux-tile-low.c.
15678 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15679 * configure.srv: Handle tilegx-*-linux*.
15680 * linux-tile-low.c: New file.
15682 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15684 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15686 2012-05-24 Pedro Alves <palves@redhat.com>
15690 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15692 2012-05-24 Pedro Alves <palves@redhat.com>
15696 Replace target_signal with gdb_signal throughout.
15698 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15700 * linux-low.c (linux_store_registers): Avoid the copying sequence
15701 when no data has been retrieved by ptrace.
15703 2012-05-22 Will Deacon <will.deacon@arm.com>
15705 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15706 Include asm/ptrace.h.
15707 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15710 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15712 * linux-low.c (linux_store_registers): Don't re-retrieve data
15713 with ptrace that has already been obtained from /proc. Always
15714 copy any data retrieved with ptrace to the buffer supplied.
15716 2012-05-11 Yao Qi <yao@codesourcery.com>
15717 Pedro Alves <palves@redhat.com>
15719 * linux-low.c (enum stopping_threads_kind): New.
15720 (stopping_threads): Change type to `enum stopping_threads_kind'.
15721 (handle_extended_wait): If stopping and suspending threads, leave
15722 the new_lwp suspended too.
15723 (linux_wait_for_event): Adjust.
15724 (stop_all_lwps): Set `stopping_threads' to
15725 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15726 whether we're suspending threads or just stopping them. Assert no
15729 2012-04-29 Yao Qi <yao@codesourcery.com>
15731 * server.h: Move some code to ...
15732 * gdbthread.h: ... here. New.
15733 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15734 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15735 (nto-low.o, win32-low.o): Likewise.
15736 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15737 * regcache.c, remote-utils.c, server.c: Likewise.
15738 * target.c, tracepoint.c, win32-low.c: Likewise.
15740 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15742 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15743 (PTRACE_ARG4_TYPE): Likewise.
15744 (PTRACE_XFER_TYPE): Likewise.
15745 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15746 ptrace to PTRACE_ARG3_TYPE.
15747 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15748 (PTRACE_ARG4_TYPE): Likewise.
15749 (PTRACE_XFER_TYPE): Likewise.
15750 (linux_detach_one_lwp): Cast fourth argument of
15751 ptrace to long then PTRACE_ARG4_TYPE.
15752 (regsets_fetch_inferior_registers): Cast third argument of
15753 ptrace to long then PTRACE_ARG3_TYPE.
15754 (regsets_store_inferior_registers): Likewise.
15756 2012-04-20 Pedro Alves <palves@redhat.com>
15758 * configure: Regenerate.
15760 2012-04-19 Pedro Alves <palves@redhat.com>
15762 * Makefile.in (GNULIB_BUILDDIR): New.
15763 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15764 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15765 (all, install-only, uninstall, clean-info, all-lib, clean): No
15766 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15767 (maintainer-clean realclean distclean): Use subdir_do.
15769 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15770 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15771 * acinclude.m4: Include acx_configure_dir.m4.
15772 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15773 calls. Call AC_PROG_RANLIB. Configure gnulib using
15776 (GNULIB_STDINT_H): Adjust.
15777 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15778 * gdbreplay.c: Include build-gnulib/config.h.
15779 * server.h: Likewise.
15780 * aclocal.m4: Regenerate.
15781 * config.in: Regenerate.
15782 * configure: Regenerate.
15784 2012-04-19 Pedro Alves <palves@redhat.com>
15786 * Makefile.in (LIBGNU, INCGNU): Adjust.
15787 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15788 (all, install-only, uninstall, clean-info, all-lib, clean)
15789 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15790 * configure.ac: Adjust AC_OUTPUT output.
15791 * aclocal.m4: Regenerate.
15792 * configure: Regenerate.
15794 2012-04-19 Pedro Alves <palves@redhat.com>
15796 * Makefile.in (generated_files): New.
15797 (server_h): Remove the explicit dependency on config.h, and depend
15798 on $generated_files.
15800 2012-04-19 Pedro Alves <palves@redhat.com>
15802 * Makefile.in (INCGNU): Add -Ignulib.
15804 2012-04-19 Pedro Alves <palves@redhat.com>
15806 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15807 (INCGNU): ... this, and spell out -I here.
15808 (GNULIB_LIB): Rename to ...
15809 (LIBGNU): ... this.
15810 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15812 2012-04-19 Pedro Alves <palves@redhat.com>
15814 * config.in: Regenerate.
15816 2012-04-19 Pedro Alves <palves@redhat.com>
15818 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15819 * server.h (memmem): Remove declaration.
15820 * config.in: Regenerate.
15821 * configure: Regenerate.
15823 2012-04-19 Yao Qi <yao@codesourcery.com>
15825 * Makefile.in (SFILES): Add common/vec.c.
15829 2012-04-19 Yao Qi <yao@codesourcery.com>
15831 * remote-utils.c (prepare_resume_reply): Replace with macro
15832 target_core_of_thread.
15833 * server.c (handle_qxfer_threads_proper): Likewise.
15834 * target.h (traget_core_of_thread): New macro.
15836 2012-04-18 Pedro Alves <palves@redhat.com>
15838 * aclocal.m4: Regenerate.
15839 * configure: Regenerate.
15841 2012-04-16 Yao Qi <yao@codesourcery.com>
15843 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15844 duplicated on address.
15846 2012-04-16 Yao Qi <yao@codesourcery.com>
15848 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15849 (struct tracepoint_action_ops) <send>: New field.
15850 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15851 (agent_expr_send, x_tracepoint_action_send): New.
15852 (l_tracepoint_action_send): New.
15853 (cmd_qtdp): Download and install tracepoint
15854 according to `use_agent'.
15855 (run_inferior_command): Add one more parameter `len'.
15857 (tracepoint_send_agent): New.
15858 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15860 2012-04-16 Yao Qi <yao@codesourcery.com>
15862 * tracepoint.c (download_tracepoints): Moved to ...
15863 (cmd_qtstart): ... here.
15865 2012-04-14 Yao Qi <yao@codesourcery.com>
15867 * tracepoint.c: Include inttypes.h.
15868 (struct collect_memory_action): Use sized types.
15869 (struct tracepoint): Likewise.
15870 (cmd_qtdp, stop_tracing): Update print specifiers.
15871 (cmd_qtp, response_tracepoint): Likewise.
15872 (collect_data_at_tracepoint): Likewise.
15873 (collect_data_at_step): Likewise.
15875 2012-04-14 Yao Qi <yao@codesourcery.com>
15877 Import gnulib module inttypes.
15878 * aclocal.m4, config.in, configure: Regenerated.
15880 2012-04-14 Yao Qi <yao@codesourcery.com>
15882 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15883 Makefile and config.status at last.
15885 2012-04-13 Yao Qi <yao@codesourcery.com>
15887 * tracepoint.c: Include stdint.h unconditionally.
15889 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15891 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15892 on BFD_HAVE_SYS_PROCFS_TYPE.
15893 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15894 * configure: Regenerate.
15895 * config.in: Likewise.
15897 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15899 * Makefile.in (clean): Also remove x32.c x32-linux.c
15900 x32-avx.c x32-avx-linux.c.
15901 (x32.o): New target.
15903 (x32-linux.o): Likewise.
15904 (x32-linux.c): Likewise.
15905 (x32-avx.o): Likewise.
15906 (x32-avx.c): Likewise.
15907 (x32-avx-linux.o): Likewise.
15908 (x32-avx-linux.c): Likewise.
15910 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15911 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15912 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15913 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15914 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15915 i386/x32-avx-linux.xml.
15917 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15918 (init_registers_x32_avx_linux): Likwise.
15919 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15920 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15922 2012-04-13 Pedro Alves <palves@redhat.com>
15924 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15925 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15926 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15927 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15930 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15932 * linux-x86-low.c (compat_x32_clock_t): New.
15933 (compat_x32_siginfo_t): Likewise.
15934 (compat_x32_siginfo_from_siginfo): Likewise.
15935 (siginfo_from_compat_x32_siginfo): Likewise.
15936 (linux_is_elf64): Likewise.
15937 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15938 and siginfo_from_compat_x32_siginfo for x32.
15939 (x86_arch_setup): Set linux_is_elf64.
15941 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15944 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15946 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15947 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15948 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15949 compatible with process.
15951 2012-04-12 Yao Qi <yao@codesourcery.com>
15953 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15954 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15955 (install-only, install-info, clean): Handle sub dir gnulib.
15956 (all-lib, am--refresh): New targets.
15957 (memmem.o): Remove target.
15958 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15959 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15960 (AC_REPLACE_FUNCS): Remove memmem.
15961 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15962 (AC_OUTPUT): Generate Makefile in gnulib/.
15963 * aclocal.m4, config.in, configure: Regenerated.
15965 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15967 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15969 2012-04-05 Pedro Alves <palves@redhat.com>
15971 -Werror=strict-aliasing
15973 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15976 2012-04-04 Pedro Alves <palves@redhat.com>
15978 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15979 (sparc_store_gregset_from_stack, sparc_store_gregset)
15980 (sparc_breakpoint_at): Fix formatting.
15982 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15984 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15986 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15987 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15988 * config.in: Regenerate.
15989 * configure: Likewise.
15991 2012-03-29 Pedro Alves <palves@redhat.com>
15993 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15994 Correct ptrace arguments.
15996 2012-03-28 Pedro Alves <palves@redhat.com>
15998 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15999 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
16000 (IA64_FR1_REGNUM): New defines.
16001 (ia64_fetch_register): New.
16002 (the_low_target): Install it.
16003 * linux-low.h (struct linux_target_ops) <fetch_register>: New
16005 * linux-low.c (linux_fetch_registers): Try the
16006 the_low_target.fetch_register hook first.
16008 * linux-arm-low.c (the_low_target): Adjust.
16009 * linux-bfin-low.c (the_low_target): Adjust.
16010 * linux-cris-low.c (the_low_target): Adjust.
16011 * linux-crisv32-low.c (the_low_target): Adjust.
16012 * linux-m32r-low.c (the_low_target): Adjust.
16013 * linux-m68k-low.c (the_low_target): Adjust.
16014 * linux-mips-low.c (the_low_target): Adjust.
16015 * linux-ppc-low.c (the_low_target): Adjust.
16016 * linux-s390-low.c (the_low_target): Adjust.
16017 * linux-sh-low.c (the_low_target): Adjust.
16018 * linux-sparc-low.c (the_low_target): Adjust.
16019 * linux-tic6x-low.c (the_low_target): Adjust.
16020 * linux-x86-low.c (the_low_target): Adjust.
16021 * linux-xtensa-low.c (the_low_target): Adjust.
16023 2012-03-26 Pedro Alves <palves@redhat.com>
16025 * server.c (handle_qxfer_libraries): Don't bail early if
16026 the_target->qxfer_libraries_svr4 is not NULL.
16028 2012-03-26 Pedro Alves <palves@redhat.com>
16030 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16032 2012-03-23 Pedro Alves <palves@redhat.com>
16034 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16035 "library-list-svr4" element's start tag when the the DSO list is
16038 2012-03-23 Pedro Alves <palves@redhat.com>
16040 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16041 a variable whose type size is the same as the inferior's pointer
16044 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16046 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16048 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16049 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16050 * linux-low.h: Include <signal.h>.
16051 (struct siginfo): Remove forward declaration.
16052 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16055 2012-03-21 Mike Frysinger <vapier@gentoo.org>
16057 * .gitignore: Ignore more files.
16059 2012-03-19 Pedro Alves <palves@redhat.com>
16060 Jan Kratochvil <jan.kratochvil@redhat.com>
16062 * server.c (cont_thread, general_thread): Add describing comments.
16063 (start_inferior): Clear `cont_thread'.
16064 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16067 2012-03-15 Yao Qi <yao@codesourcery.com>
16069 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16071 (cmd_qtdp): ... here.
16073 2012-03-15 Yao Qi <yao@codesourcery.com>
16075 * tracepoint.c (struct tracepoint_action_ops): New.
16076 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16077 (m_tracepoint_action_download): New.
16078 (r_tracepoint_action_download): New.
16079 (x_tracepoint_action_download): New.
16080 (l_tracepoint_action_download): New.
16081 (add_tracepoint_action): Install `action->ops' according type.
16082 (download_tracepoint_1): Move code `download' function pointer
16083 of various tracepoint_action_ops.
16085 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16087 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16088 linux_ptrace_attach_warnings.
16090 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16092 * Makefile.in (linux-ptrace.o): New.
16093 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16094 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16095 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16096 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16097 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16099 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16101 2012-03-08 Yao Qi <yao@codesourcery.com>
16102 Pedro Alves <palves@redhat.com>
16104 Fix PR server/13392.
16105 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16106 offset of JMP insn.
16107 * tracepoint.c (remove_tracepoint): New.
16108 (cmd_qtdp): Call remove_tracepoint when failed to install.
16110 2012-03-07 Pedro Alves <palves@redhat.com>
16112 * linux-low.c (get_detach_signal): New.
16113 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16114 Pass on pending signals to PTRACE_DETACH. Check the result of the
16116 * server.c (program_signals, program_signals_p): New.
16117 (handle_general_set): Handle QProgramSignals.
16118 * server.h (program_signals, program_signals_p): Declare.
16120 2012-03-05 Pedro Alves <palves@redhat.com>
16121 Jan Kratochvil <jan.kratochvil@redhat.com>
16123 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16126 2012-03-03 Yao Qi <yao@codesourcery.com>
16128 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16129 agent_look_up_symbols.
16131 2012-03-03 Yao Qi <yao@codesourcery.com>
16133 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16134 (linux-x86-low.o): Likewise.
16135 * server.h: Remove in_process_agent_loaded.
16136 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16140 2012-03-03 Yao Qi <yao@codesourcery.com>
16142 * tracepoint.c (gdb_agent_capability): New global.
16143 (in_process_agent_loaded_ust): Renamed to
16144 `in_process_agent_supports_ust'.
16146 (in_process_agent_supports_ust): Call agent_capability_check.
16147 (clear_installed_tracepoints): Assert that agent supports
16150 2012-03-03 Yao Qi <yao@codesourcery.com>
16152 * linux-low.c (linux_supports_agent): New.
16153 (linux_target_ops): Initialize field `supports_agent' with
16154 linux_supports_agent.
16155 * target.h (struct target_ops) <supports_agent>: New.
16156 (target_supports_agent): New macro.
16157 * server.c (handle_general_set): Handle packet 'QAgent'.
16158 (handle_query): Send `QAgent+'.
16159 * Makefile.in (server.o): Depends on agent.h.
16161 2012-03-03 Yao Qi <yao@codesourcery.com>
16163 * Makefile.in (OBS): Add agent.o.
16164 Add new rule for agent.o.
16165 Track dependence of tracepoint.c on agent.h.
16166 * tracepoint.c (run_inferior_command_1):
16167 (run_inferior_command): Call agent_run_command.
16168 (gdb_ust_connect_sync_socket): Deleted. Move it to
16170 (resume_thread, stop_thread): Likewise.
16171 (gdb_ust_socket_init): Renamed to ...
16172 (gdb_agent_socket_init): ... New.
16173 (gdb_ust_thread): Renamed to ...
16174 (gdb_agent_helper_thread): ... New.
16175 (gdb_ust_init): Move some code to ...
16176 (gdb_agent_init): ... here. New.
16177 [HAVE_UST]: Call gdb_ust_init.
16178 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16179 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16180 * config.in, configure: Regenerated.
16182 2012-03-02 Pedro Alves <palves@redhat.com>
16184 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16185 * linux-low.c (struct simple_pid_list): New.
16186 (stopped_pids): New a struct simple_pid_list pointer.
16187 (add_to_pid_list, pull_pid_from_list): New.
16188 (handle_extended_wait): Don't assume the first signal new children
16189 report is SIGSTOP. Adjust call to pull_pid_from_list.
16190 (linux_wait_for_lwp): Adjust.
16192 2012-03-02 Yao Qi <yao@codesourcery.com>
16194 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16197 2012-03-02 Yao Qi <yao@codesourcery.com>
16199 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16200 `stop_pc' and `tpoint'. Update caller.
16202 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16204 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16205 * linux-low.c (use_linux_regsets): New macro.
16206 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16207 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16208 (linux_register_in_regsets): New function.
16209 (usr_fetch_inferior_registers): Skip registers covered by
16211 (usr_store_inferior_registers): Likewise.
16212 (usr_fetch_inferior_registers): New macro.
16213 (usr_store_inferior_registers): Likewise.
16214 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16215 (linux_store_registers): Likewise.
16216 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16218 (init_registers_mips64_dsp_linux): Likewise.
16219 (init_registers_mips_linux): New macro.
16220 (init_registers_mips_dsp_linux): Likewise.
16221 (mips_dsp_num_regs): Likewise.
16222 (DSP_BASE, DSP_CONTROL): New fallback macros.
16223 (mips_base_regs): New macro.
16224 (mips_regmap): Use it. Fix the size.
16225 (mips_dsp_regmap): New variable.
16226 (mips_dsp_regset_bitmap): Likewise.
16227 (mips_arch_setup): New function.
16228 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16230 (mips_cannot_store_register): Likewise.
16231 (the_low_target): Update .arch_setup, .num_regs and .regmap
16232 initializers. Add .regset_bitmap initializer.
16233 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16235 * linux-bfin-low.c (the_low_target): Likewise.
16236 * linux-cris-low.c (the_low_target): Likewise.
16237 * linux-crisv32-low.c (the_low_target): Likewise.
16238 * linux-ia64-low.c (the_low_target): Likewise.
16239 * linux-m32r-low.c (the_low_target): Likewise.
16240 * linux-m68k-low.c (the_low_target): Likewise.
16241 * linux-ppc-low.c (the_low_target): Likewise.
16242 * linux-s390-low.c (the_low_target): Likewise.
16243 * linux-sh-low.c (the_low_target): Likewise.
16244 * linux-sparc-low.c (the_low_target): Likewise.
16245 * linux-tic6x-low.c (the_low_target): Likewise.
16246 * linux-x86-low.c (the_low_target): Likewise.
16247 * linux-xtensa-low.c (the_low_target): Likewise.
16248 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16249 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16250 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16252 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16253 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16255 2012-02-29 Yao Qi <yao@codesourcery.com>
16256 Pedro Alves <palves@redhat.com>
16258 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16259 `step_over_finished' is true.
16261 2012-02-27 Pedro Alves <palves@redhat.com>
16263 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16264 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16266 2012-02-27 Pedro Alves <palves@redhat.com>
16269 * linux-low.c (pid_is_stopped): New.
16270 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16272 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16274 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16277 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16279 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16281 2012-02-24 Luis Machado <lgustavo@codesourcery>
16283 * server.c (handle_query): Advertise support for target-side
16284 breakpoint condition evaluation.
16285 (process_point_options): New function.
16286 (process_serial_event): When inserting a breakpoint, check for
16287 a target-side condition that should be evaluated.
16289 * mem-break.c: Include regcache.h and ax.h.
16290 (point_cond_list_t): New data structure.
16291 (breakpoint) <cond_list>: New field.
16292 (find_gdb_breakpoint_at): Make non-static.
16293 (delete_gdb_breakpoint_at): Clear any target-side
16295 (clear_gdb_breakpoint_conditions): New function.
16296 (add_condition_to_breakpoint): Likewise.
16297 (add_breakpoint_condition): Likewise.
16298 (gdb_condition_true_at_breakpoint): Likewise.
16299 (gdb_breakpoint_here): Return result directly instead
16300 of going through a local variable.
16302 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16303 (clear_gdb_breakpoint_conditions): Likewise.
16304 (add_breakpoint_condition): Likewise.
16305 (gdb_condition_true_at_breakpoint): Likewise.
16307 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16308 (need_step_over_p): Take target-side breakpoint condition into
16311 2012-02-24 Luis Machado <lgustavo@codesourcery>
16313 * server.h: Include tracepoint.h.
16314 (agent_mem_read, agent_get_trace_state_variable_value,
16315 agent_set_trace_state_variable_value,
16316 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16317 get_set_tsv_func_addr): New prototypes.
16319 * ax.h: New include file.
16320 * ax.c: New source file.
16322 * tracepoint.c: Include ax.h.
16323 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16324 agent_expr, eval_result_type): Move to ax.h.
16325 (parse_agent_expr): Rename to ...
16326 (gdb_parse_agent_expr): ... this, make it non-static and move
16328 (unparse_agent_expr) Rename to ...
16329 (gdb_unparse_agent_expr): ... this, make it non-static and move
16331 (eval_agent_expr): Rename to ...
16332 (eval_tracepoint_agent_expr): ... this.
16333 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16334 forward declarations.
16335 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16336 (agent_get_trace_state_variable_value): New function.
16337 (agent_set_trace_state_variable_value): New function.
16338 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16339 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16340 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16341 (condition_true_at_tracepoint): Likewise.
16342 (parse_agent_expr): Rename to ...
16343 (gdb_parse_agent_expr): ... this and move to ax.c.
16344 (unparse_agent_expr): Rename to ...
16345 (gdb_unparse_agent_expr): ... this and move to ax.c.
16346 (gdb_agent_op_name): Move to ax.c.
16347 (eval_agent_expr): Rename to ...
16348 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16350 (eval_tracepoint_agent_expr): New function.
16351 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16353 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16355 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16356 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16357 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16358 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16359 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16360 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16361 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16362 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16363 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16364 (compile_bytecodes): Remove forward declaration.
16365 (is_goto_target): Move to ax.c.
16366 (compile_bytecodes): Move to ax.c and call
16367 agent_get_trace_state_variable_value (...) and
16368 agent_set_trace_state_variable_value (...).
16370 * Makefile.in: Update ax.c and IPA dependencies.
16372 2012-02-24 Pedro Alves <palves@redhat.com>
16374 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16375 (cmd_bigqtbuffer_circular): ... this. Only handle
16376 'QTBuffer:circular:'.
16377 (handle_tracepoint_general_set): Adjust.
16379 2012-02-16 Yao Qi <yao@codesourcery.com>
16381 * inferiors.c: Move code to ...
16382 * dll.c: .... here. New.
16383 * server.h: Declare clear_dlls.
16384 * Makefile.in (SFILES): Add dll.c.
16388 2012-02-11 Yao Qi <yao@codesourcery.com>
16390 * server.c: (handle_monitor_command): Add a new parameter
16392 (handle_query): Update caller.
16394 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16396 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16397 * configure, config.in: Regenerate.
16398 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16401 2012-02-02 Pedro Alves <palves@redhat.com>
16403 Try SIGKILL first, then PTRACE_KILL.
16404 * linux-low.c (linux_kill_one_lwp): New.
16405 (linux_kill_one_lwp): Rename to ...
16406 (kill_one_lwp_callback): ... this. Use the new
16407 linux_kill_one_lwp.
16409 2012-02-02 Pedro Alves <palves@redhat.com>
16411 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16414 2012-01-27 Pedro Alves <palves@redhat.com>
16416 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16417 (elf_64_file_p): Make static.
16418 (linux_pid_exe_is_elf_64_file): New.
16419 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16420 Delete declarations.
16421 (linux_pid_exe_is_elf_64_file): Declare.
16422 * linux-x86-low.c (x86_arch_setup): Use
16423 linux_pid_exe_is_elf_64_file.
16425 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16427 * linux-low.c (linux_wait_for_event_1): Rename to ...
16428 (linux_wait_for_event): ... here and merge it with former
16429 linux_wait_for_event - new variable wait_ptid, use it.
16430 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16432 2012-01-23 Pedro Alves <palves@redhat.com>
16434 * server.c (main): Avoid yet another case of infinite loop while
16435 detaching/killing after a longjmp.
16437 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16440 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16442 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16444 * hostio.c (handle_readlink): New function.
16445 (handle_vFile): Call it to handle "vFile:readlink" packets.
16447 2012-01-20 Pedro Alves <palves@redhat.com>
16448 Ulrich Weigand <ulrich.weigand@linaro.org>
16450 * server.c (handle_v_requests): Only support vAttach and vRun to
16451 start multiple processes when in extended protocol mode.
16453 2012-01-17 Pedro Alves <palves@redhat.com>
16455 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16456 memalign plus mprotect to allocate the scratch buffer.
16458 2012-01-13 Pedro Alves <palves@redhat.com>
16460 * server.c (attach_inferior): Clear `cont_thread'.
16462 2012-01-13 Pedro Alves <palves@redhat.com>
16464 * server.c (main): Avoid infinite loop while detaching/killing
16467 2012-01-09 Doug Evans <dje@google.com>
16469 * server.c (start_inferior): Set last_ptid in --wrapper case.
16471 2012-01-06 Yao Qi <yao@codesourcery.com>
16473 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16475 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16477 2012-01-04 Yao Qi <yao@codesourcery.com>
16479 * tracepoint.c (cmd_qtdp): Print debug message
16480 for static tracepoint.
16482 2012-01-04 Yao Qi <yao@codesourcery.com>
16484 * tracepoint.c (trace_vdebug): Differentiate debug message
16485 between gdbserver and IPA.
16487 2012-01-03 Yao Qi <yao@codesourcery.com>
16489 * tracepoint.c (tracepoint_was_hit): Don't collect for
16492 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16494 * terminal.h: Reformat copyright header.
16496 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16498 * server.c (gdbserver_version): Update copyright year.
16499 * gdbreplay.c (gdbreplay_version): Likewise.
16501 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16503 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16506 2011-12-18 Hui Zhu <teawater@gmail.com>
16507 * linux-low.c (linux_create_inferior): Save return value to ret.
16509 2011-12-18 Hui Zhu <teawater@gmail.com>
16511 * linux-low.c (linux_create_inferior): Save return value to ret.
16513 2011-12-16 Doug Evans <dje@google.com>
16515 * linux-low.c (linux_create_inferior): If stdio connection,
16516 redirect stdin from /dev/null, stdout to stderr.
16517 * remote-utils.c (remote_is_stdio): New static global.
16518 (remote_connection_is_stdio): New function.
16519 (remote_prepare): Handle stdio connection.
16520 (remote_open): Ditto.
16521 (remote_close): Don't close stdin for stdio connections.
16522 (read_prim,write_prim): New functions. Replace all calls to
16523 read/write to these.
16524 * server.c (main): Watch for "-" argument. Move call to
16525 remote_prepare before start_inferior.
16526 * server.h (STDIO_CONNECTION_NAME): New macro.
16527 (remote_connection_is_stdio): Declare.
16529 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16530 in debugging output.
16532 2011-12-15 Yao Qi <yao@codesourcery.com>
16534 * tracepoint.c: Include sys/syscall.h.
16535 (gdb_ust_thread): Remove preprocessor conditional.
16537 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16539 * linux-low.c (linux_detach_one_lwp): Call
16540 the_low_target.prepare_to_resume before detaching.
16542 2011-12-14 Yao Qi <yao@codesourcery.com>
16544 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16547 2011-12-14 Yao Qi <yao@codesourcery.com>
16549 * i386-low.c (i386_low_stopped_data_address): Initialize local
16550 variable `control'.
16552 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16556 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16557 DR_CONTROL unless necessary. Extend comments.
16558 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16559 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16561 2011-12-13 Yao Qi <yao@codesourcery.com>
16563 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16565 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16567 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16569 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16570 Print new debug message for such case.
16572 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16574 Fix overlapping memcpy.
16575 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16576 the read_inferior_memory transfer.
16577 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16578 write_inferior_memory transfer.
16579 (set_fast_tracepoint_jump): New variable buf. Use it for the
16580 read_inferior_memory and write_inferior_memory transfers.
16581 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16582 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16583 Use it for the write_inferior_memory transfer.
16584 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16587 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16589 * linux-low.c (fetch_register, store_register): Make code
16590 consistent, fix formatting.
16592 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16594 * linux-low.c (usr_store_inferior_registers): Factor out code
16595 to handle individual registers into...
16596 (store_register): ... this new function.
16598 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16600 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16601 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16602 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16603 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16604 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16605 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16606 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16607 (srv_xmlfiles): Add new XML files.
16609 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16611 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16612 (init_registers_s390_linux32v1): Add prototype.
16613 (init_registers_s390_linux32v2): Likewise.
16614 (init_registers_s390_linux64v1): Likewise.
16615 (init_registers_s390_linux64v2): Likewise.
16616 (init_registers_s390x_linux64v1): Likewise.
16617 (init_registers_s390x_linux64v2): Likewise.
16618 (s390_num_regs): Increment to 52.
16619 (s390_regmap): Add orig_r2 register.
16620 (s390_num_regs_3264): Increment to 68.
16621 (s390_regmap_3264): Add orig_r2 register.
16622 (s390_collect_ptrace_register): Handle orig_r2 register.
16623 (s390_supply_ptrace_register): Likewise.
16624 (s390_fill_last_break): New function.
16625 (s390_store_last_break): Likewise.
16626 (s390_fill_system_call): New function.
16627 (s390_store_system_call): Likewise.
16628 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16630 (s390_check_regset): New function.
16631 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16632 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16633 Update target_regsets for available register sets.
16635 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16636 Jan Kratochvil <jan.kratochvil@redhat.com>
16638 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16639 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16641 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16642 * linux-low.h (struct process_info_private): New member r_debug.
16643 * server.c (handle_qxfer_libraries): Call
16644 the_target->qxfer_libraries_svr4.
16645 (handle_qxfer_libraries_svr4): New function.
16646 (qxfer_packets): New entry "libraries-svr4".
16647 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16648 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16649 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16650 PACKET_qXfer_libraries_svr4.
16652 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16654 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16655 PSW address/mask between 8-byte and 16-byte formats.
16656 (s390_supply_ptrace_register): Likewise.
16657 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16658 basic addressing mode bit.
16660 2011-11-24 Stan Shebs <stan@codesourcery.com>
16662 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16664 2011-11-17 Stan Shebs <stan@codesourcery.com>
16666 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16667 (tracing_start_time): New global.
16668 (tracing_stop_time): New global.
16669 (tracing_user_name): New global.
16670 (tracing_notes): New global.
16671 (tracing_stop_note): New global.
16672 (cmd_qtstart): Set traceframe_usage, start_time.
16673 (stop_tracing): Set stop_time.
16674 (cmd_qtstatus): Report additional status.
16675 (cmd_qtp): New function.
16676 (handle_tracepoint_query): Call it.
16677 (cmd_qtnotes): New function.
16678 (handle_tracepoint_general_set): Call it.
16679 (get_timestamp): Rename from tsv_get_timestamp.
16681 2011-11-14 Stan Shebs <stan@codesourcery.com>
16682 Kwok Cheung Yeung <kcy@codesourcery.com>
16684 * linux-x86-low.c (small_jump_insn): New.
16685 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16686 trampoline and error message, build a trampoline and issue a small
16687 jump instruction to it.
16688 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16689 trampoline and error message.
16690 (x86_get_min_fast_tracepoint_insn_len): New.
16691 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16692 * linux-low.h (struct linux_target_ops): Add arguments to
16693 install_fast_tracepoint_jump_pad operation, add new operation.
16694 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16696 (linux_get_min_fast_tracepoint_insn_len): New function.
16697 (linux_target_op): Add new operation.
16698 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16699 (gdb_trampoline_buffer_end): Ditto.
16700 (gdb_trampoline_buffer_error): Ditto.
16701 (struct ipa_sym_addresses): Add fields for new IPA variables.
16702 (symbol_list): Add entries for new IPA variables.
16703 (struct tracepoint): Add fields to hold the address range of the
16704 trampoline used by the tracepoint.
16705 (trampoline_buffer_head): New static variable.
16706 (trampoline_buffer_tail): Ditto.
16707 (claim_trampoline_space): New function.
16708 (have_fast_tracepoint_trampoline_buffer): New function.
16709 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16711 (install_fast_tracepoint): Ditto, also add error buffer argument.
16712 (cmd_qtminftpilen): New function.
16713 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16714 (fast_tracepoint_from_trampoline_address): New function.
16715 (fast_tracepoint_collecting): Handle trampoline as part of jump
16717 (set_trampoline_buffer_space): New function.
16718 (initialize_tracepoint): Initialize new IPA variables.
16719 * target.h (struct target_ops): Add arguments to
16720 install_fast_tracepoint_jump_pad operation, add new
16721 get_min_fast_tracepoint_insn_len operation.
16722 (target_get_min_fast_tracepoint_insn_len): New.
16723 (install_fast_tracepoint_jump_pad): Add arguments.
16724 * server.h (IPA_BUFSIZ): Define.
16725 * linux-i386-ipa.c: Include extra header files.
16726 (initialize_fast_tracepoint_trampoline_buffer): New function.
16727 (initialize_low_tracepoint): Call it.
16728 * server.h (set_trampoline_buffer_space): Declare.
16729 (claim_trampoline_space): Ditto.
16730 (have_fast_tracepoint_trampoline_buffer): Ditto.
16732 2011-11-14 Yao Qi <yao@codesourcery.com>
16734 * server.c (handle_query): Handle InstallInTrace for qSupported.
16735 * tracepoint.c (add_tracepoint): Sort list.
16736 (install_tracepoint, download_tracepoint): New.
16737 (cmd_qtdp): Call them to install and download tracepoints.
16738 (sort_tracepoints): Removed.
16739 (cmd_qtstart): Update.
16741 2011-11-14 Yao Qi <yao@codesourcery.com>
16743 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16744 * mem-break.h: Declare.
16745 * tracepoint.c (cmd_qtstart): Move some code to ...
16746 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16748 (download_tracepoints): Move some code to ...
16749 (download_tracepoint_1): ... here. New.
16751 2011-11-08 Yao Qi <yao@codesourcery.com>
16753 * remote-utils.c (relocate_instruction): A comment fix.
16755 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16757 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16758 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16759 dr_status_mirror and dr_control_mirror from debug_reg_state.
16760 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16761 (i386_initial_stuff): Remove use of deleted globals.
16762 (i386_get_thread_context, i386_set_thread_context,
16763 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16764 from debug_reg_state.
16766 2011-11-05 Yao Qi <yao@codesourcery.com>
16768 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16769 address as TPOINT's.
16771 2011-11-02 Stan Shebs <stan@codesourcery.com>
16773 * tracepoint.c (agent_mem_read_string): New function.
16774 (eval_agent_expr): Call it for tracenz.
16775 * server.c (handle_query): Report support for tracenz.
16777 2011-11-02 Yao Qi <yao@codesourcery.com>
16779 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16781 2011-11-02 Yao Qi <yao@codesourcery.com>
16783 * target.h: Fix a typo in comment.
16785 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16787 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16788 clobber the breakpoints' shadows with fast tracepoint jumps.
16789 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16790 * target.c (write_inferior_memory): Also pass MYADDR down to
16793 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16795 * configure.ac: Check support for personality routine.
16796 * configure: Regenerate.
16797 * config.in: Likewise.
16798 * linux-low.c: Include <sys/personality.h>.
16799 Define ADDR_NO_RANDOMIZE if necessary.
16800 (linux_create_inferior): Disable address space randomization when
16801 forking inferior, if requested.
16802 (linux_supports_disable_randomization): New function.
16803 (linux_target_ops): Install it.
16804 * server.h (disable_randomization): Declare.
16805 * server.c (disable_randomization): New global variable.
16806 (handle_general_set): Handle QDisableRandomization.
16807 (handle_query): Likewise for qSupported.
16808 (main): Support --disable-randomization and --no-disable-randomization
16809 command line arguments.
16810 * target.h (struct target_ops): Add supports_disable_randomization.
16811 (target_supports_disable_randomization): New macro.
16813 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16815 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16817 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16818 [!PT_GETDSBT] (target_loadmap): New definition.
16819 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16820 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16821 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16822 and PT_GETDSBT to LINUX_LOADMAP.
16823 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16824 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16826 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16828 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16829 (arm_linux_hwbp_cap): New static variable.
16830 (arm_linux_get_hwbp_cap): Replace by ...
16831 (arm_linux_init_hwbp_cap): ... this new function.
16832 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16833 (arm_linux_get_hw_watchpoint_count): Likewise.
16834 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16835 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16836 (arm_prepare_to_resume): Use perror_with_name instead of error.
16838 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16840 * linux-arm-low.c: Include <signal.h>.
16841 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16842 (struct arm_linux_hwbp_cap): New data type.
16843 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16844 (struct arm_linux_hw_breakpoint): New data type.
16845 (MAX_BPTS, MAX_WPTS): Define.
16846 (struct arch_process_info, struct arch_lwp_info): New data types.
16847 (arm_linux_get_hwbp_cap): New function.
16848 (arm_linux_get_hw_breakpoint_count): Likewise.
16849 (arm_linux_get_hw_watchpoint_count): Likewise.
16850 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16851 (arm_hwbp_control_initialize): Likewise.
16852 (arm_hwbp_control_is_enabled): Likewise.
16853 (arm_hwbp_control_is_initialized): Likewise.
16854 (arm_hwbp_control_disable): Likewise.
16855 (arm_linux_hw_breakpoint_equal): Likewise.
16856 (arm_linux_hw_point_initialize): Likewise.
16857 (struct update_registers_data): New data structure.
16858 (update_registers_callback: New function.
16859 (arm_insert_point): Likewise.
16860 (arm_remove_point): Likewise.
16861 (arm_stopped_by_watchpoint): Likewise.
16862 (arm_stopped_data_address): Likewise.
16863 (arm_new_process): Likewise.
16864 (arm_new_thread): Likewise.
16865 (arm_prepare_to_resume): Likewise.
16866 (the_low_target): Register arm_insert_point, arm_remove_point,
16867 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16868 arm_new_thread, and arm_prepare_to_resume.
16870 2011-09-15 Stan Shebs <stan@codesourcery.com>
16872 * server.h (struct emit_ops): Add compare-goto fields.
16873 * tracepoint.c (gdb_agent_op_sizes): New table.
16874 (emit_eq_goto): New function.
16875 (emit_ne_goto): New function.
16876 (emit_lt_goto): New function.
16877 (emit_le_goto): New function.
16878 (emit_gt_goto): New function.
16879 (emit_ge_goto): New function.
16880 (is_goto_target): New function.
16881 (compile_bytecodes): Recognize special cases of compare-goto
16882 combinations and call specialized emitters for them.
16883 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16884 (amd64_emit_ne_goto): New function.
16885 (amd64_emit_lt_goto): New function.
16886 (amd64_emit_le_goto): New function.
16887 (amd64_emit_gt_goto): New function.
16888 (amd64_emit_ge_goto): New function.
16889 (amd64_emit_ops): Add the new functions.
16890 (i386_emit_eq_goto): New function.
16891 (i386_emit_ne_goto): New function.
16892 (i386_emit_lt_goto): New function.
16893 (i386_emit_le_goto): New function.
16894 (i386_emit_gt_goto): New function.
16895 (i386_emit_ge_goto): New function.
16896 (i386_emit_ops): Add the new functions.
16898 2011-09-08 Stan Shebs <stan@codesourcery.com>
16900 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16901 (i386_emit_epilogue): Restore %ebx.
16903 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16905 * server.c (step_thread): Remove definition.
16906 (process_serial_event): Don't handle Hs.
16907 * server.h (step_thread): Remove declaration.
16908 * target.c (set_desired_inferior): Remove use of step_thread.
16910 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16912 * linux-low.c: Include linux-procfs.h.
16913 (linux_attach_lwp_1): Update comments.
16914 (linux_attach): Scan for existing threads when attaching to a
16915 process that is the tgid.
16916 * Makefile.in: Update dependencies.
16918 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16920 * configure.srv: Add linux-procfs.o dependencies.
16922 2011-08-14 Yao Qi <yao@codesourcery.com>
16924 * target.h (struct target_ops): Fix indent.
16925 * win32-low.c (win32_target_ops): Fix comment.
16927 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16928 Yao Qi <yao@codesourcery.com>
16930 * Makefile.in (clean): Remove tic6x-*.c files.
16931 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16932 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16933 (tic6x-c64xp-linux.c): Likewise.
16934 * configure.srv: Add support for tic6x-*-uclinux.
16935 * linux-tic6x-low.c: New.
16936 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16938 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16939 Yao Qi <yao@codesourcery.com>
16941 * target.h (struct target_ops): Add read_loadmap.
16942 * linux-low.c (struct target_loadseg): New type.
16943 (struct target_loadmap): New type.
16944 (linux_read_loadmap): New function.
16945 (linux_target_ops): Add linux_read_loadmap.
16946 * server.c (handle_query): Support qXfer:fdpic:read packet.
16947 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16950 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16952 * win32-low.c: Include <stdint.h>.
16954 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16956 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16957 to the inferior here.
16958 (i386_remove_aligned_watchpoint): Ditto.
16959 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16960 fit part of the watchpoint in the debug registers.
16961 (i386_update_inferior_debug_regs): New.
16962 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16963 registers, and only update the inferior on success.
16964 (i386_low_remove_watchpoint): Ditto.
16966 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16968 * linux-low.c (compare_ints, unique, list_threads, show_process,
16969 linux_core_of_thread): Delete.
16970 (linux_target_ops): Change linux_core_of_thread to
16971 linux_common_core_of_thread.
16972 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16973 * utils.c (malloc_failure): Change type of argument.
16974 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16975 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16976 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16977 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16978 (IPA_OBJS): Add common-utils-ipa.o.
16979 (ptid_h, linux_osdata_h): New macros.
16980 (server_h): Add common/common-utils.h, common/xml-utils.h,
16981 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16983 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16984 ptid.o, buffer.o): New rules.
16985 (linux-low.o): Add common/linux-osdata.h as a dependency.
16986 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16987 * configure.ac: Add AC_HEADER_DIRENT check.
16988 * config.in: Regenerate.
16989 * configure: Regenerate.
16990 * remote-utils.c (xml_escape_text): Delete.
16991 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16992 buffer_xml_printf): Move to common/buffer.c.
16993 * server.c (main): Remove call to initialize_inferiors.
16994 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16995 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16996 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16997 internal_error, gdb_assert, gdb_assert_fail): Delete.
16998 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16999 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
17001 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
17002 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
17003 initialize_inferiors): Delete.
17005 2011-07-20 Pedro Alves <pedro@codesourcery.com>
17007 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
17010 2011-05-31 Pedro Alves <pedro@codesourcery.com>
17012 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
17014 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
17016 2011-05-26 Yao Qi <yao@codesourcery.com>
17018 * Makefile.in (thread-db.o): Track dependence to
17019 common/gdb_thread_db.h.
17020 * thread-db.c: include gdb_thread_db.h from right place.
17022 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
17024 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17025 __FILE__ and __LINE__ to internal_error.
17027 2011-05-13 Doug Evans <dje@google.com>
17029 * thread-db.c (try_thread_db_load_from_sdir): New function.
17030 (try_thread_db_load_from_dir): New function.
17031 (thread_db_load_search): Handle $sdir, ignore $pdir.
17032 Remove trying of system directories if search of
17033 libthread-db-search-path fails, that is now done via $sdir.
17035 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17037 * server.c (handle_query): Add EnableDisableTracepoints to the list
17038 of supported features.
17039 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
17041 (cmd_qtenable_disable): New.
17042 (cmd_qtstart): Install tracepoints even if disabled.
17043 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17044 receiving a QTEnable or QTDisable packet.
17045 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17046 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17048 (gdb_probe): Skip data collection if static tracepoint is disabled.
17050 2011-05-10 Doug Evans <dje@google.com>
17052 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17054 2011-05-04 Doug Evans <dje@google.com>
17056 * linux-low.c (linux_join): Skip process lookup.
17057 * spu-low.c (spu_join): Ditto.
17058 * server.c (join_inferiors_callback): Delete.
17059 (process_serial_event): For 'D' packet (detach) call join_inferior
17062 2011-05-04 Joseph Myers <joseph@codesourcery.com>
17064 * README: Don't mention xscale*-*-linux*.
17065 * configure.srv (xscale*-*-linux*): Don't handle target.
17067 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17069 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17071 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17072 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17073 (i386_emit_void_call_2): Likewise.
17075 2011-04-26 Yao Qi <yao@codesourcery.com>
17077 * linux-low.c: Move common macros to linux-ptrace.h.
17078 Include linux-ptrace.h.
17079 * Makefile.in (linux_ptrace_h): New.
17080 (linux-low.o): Depends on linux-ptrace.h.
17082 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17084 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17085 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17086 (remote_prepare): New function with most of the TCP code from ...
17087 (remote_open): ... here. Detect PORT here unconditionally. Move also
17088 setting transport_is_reliable.
17089 * server.c (run_once): New variable.
17090 (gdbserver_usage): Document it.
17091 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17092 the first run if RUN_ONCE.
17093 * server.h (run_once, remote_prepare): New declarations.
17095 2011-04-19 Tom Tromey <tromey@redhat.com>
17097 * win32-low.c (handle_load_dll): Remove duplicate "the".
17099 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17101 Remove support for old Cygwin 1.5 versions.
17102 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17103 function to avoid warning.
17104 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17107 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17109 * gdbserver/server.h (Macro _): Define it if not available.
17111 2011-03-14 Michael Snyder <msnyder@vmware.com>
17113 * hostio.c (handle_close): Remove unnecessary null test.
17115 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17117 * Makefile.in (maintainer-clean realclean distclean): Remove
17118 "make ... subdir_do" command.
17120 2011-03-10 Michael Snyder <msnyder@vmware.com>
17122 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17124 * server.c (handle_v_run): Free alloced buffer on early return.
17126 2011-03-09 Yao Qi <yao@codesourcery.com>
17129 2011-03-04 Yao Qi <yao@codesourcery.com>
17131 * Makefile.in: Remove GNU make feature --directory.
17133 2011-03-05 Yao Qi <yao@codesourcery.com>
17135 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17136 (subdir_do): New make target. Copied from gdb/Makefile.
17137 (maintainer-clean, realclean, distclean, clean): Call corresponding
17138 make targets in common/Makefile.
17140 2011-02-11 Yao Qi <yao@codesourcery.com>
17142 * configure.ac: Call AC_PROG_RANLIB.
17143 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17144 * configure: Regenerate.
17146 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17148 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17150 2011-03-06 Yao Qi <yao@codesourcery.com>
17152 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17154 2011-03-05 Yao Qi <yao@codesourcery.com>
17156 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17157 (subdir_do): New make target. Copied from gdb/Makefile.
17158 (maintainer-clean, realclean, distclean, clean): Call corresponding
17159 make targets in common/Makefile.
17161 2011-03-04 Yao Qi <yao@codesourcery.com>
17163 * Makefile.in: Remove GNU make feature --directory.
17165 2011-03-04 Michael Snyder <msnyder@vmware.com>
17167 * server.c (queue_stop_reply): Call xmalloc not malloc.
17169 2011-03-02 Michael Snyder <msnyder@vmware.com>
17171 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17173 2011-02-28 Michael Snyder <msnyder@vmware.com>
17175 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17176 (cmd_qtframe): Ditto.
17177 (cmd_qtbuffer): Ditto.
17178 (cmd_bigqtbuffer): Ditto.
17180 * utils.c (decimal2str): Initialize 'width' to nine, then
17181 don't mess with it.
17183 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17185 * hostio.c (require_data): Free *data, not data.
17187 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17189 * hostio.c (require_data): Use free, not xfree.
17191 2011-02-27 Michael Snyder <msnyder@vmware.com>
17193 * server.c (handle_query): Discard unused value.
17195 * hostio.c (require_data): Free malloc memory before returning
17198 2011-02-26 Michael Snyder <msnyder@vmware.com>
17200 * linux-low.c (list_threads): Call closedir for dirent.
17202 2011-02-27 Michael Snyder <msnyder@vmware.com>
17204 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17205 a case statement falls through.
17207 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17209 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17212 2011-02-26 Michael Snyder <msnyder@vmware.com>
17214 * utils.c (decimal2str): Eliminate dead code and dead param.
17215 (pulongest): Drop dead param from call to decimal2str.
17218 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17220 Revert the following patch (not approved yet):
17221 2011-02-21 Hui Zhu <teawater@gmail.com>
17222 * tracepoint.c (tp_printf): New function.
17223 (eval_agent_expr): Handle gdb_agent_op_printf.
17225 2011-02-21 Hui Zhu <teawater@gmail.com>
17227 * tracepoint.c (tp_printf): New function.
17228 (eval_agent_expr): Handle gdb_agent_op_printf.
17230 2011-02-18 Tom Tromey <tromey@redhat.com>
17232 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17233 (tracepoint.o): Likewise.
17234 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17235 (gdb_agent_op_names): Likewise.
17237 2011-02-18 Tom Tromey <tromey@redhat.com>
17239 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17240 gdb_agent_op_rot>: New constants.
17241 (gdb_agent_op_names): Add pick and roll.
17242 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17245 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17247 * aclocal.m4: Regenerated with aclocal-1.11.1.
17249 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17251 * server.c (handle_qxfer_traceframe_info): New.
17252 (qxfer_packets): Register "traceframe-info".
17253 (handle_query): Report support for qXfer:traceframe-info:read+.
17254 * tracepoint.c (match_blocktype): New.
17255 (traceframe_find_block_type): Rename to ...
17256 (traceframe_walk_blocks): ... this. Add callback filter argument,
17258 (traceframe_find_block_type): New, reimplemented on top of
17259 traceframe_walk_blocks.
17260 (build_traceframe_info_xml): New.
17261 (traceframe_read_info): New.
17262 * server.h (traceframe_read_info): Declare.
17264 2011-02-11 Yao Qi <yao@codesourcery.com>
17266 * configure.ac: Call AC_PROG_RANLIB.
17267 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17268 * configure: Regenerate.
17270 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17272 * server.c (gdb_read_memory): Change return semantics to allow
17274 (handle_search_memory_1): Adjust.
17275 (process_serial_event) <'m' packet>: Handle partial transfers.
17276 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17278 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17280 * regcache.c (init_register_cache): Initialize
17281 regcache->register_status.
17282 (free_register_cache): Release regcache->register_status.
17283 (regcache_cpy): Copy register_status.
17284 (registers_to_string): Print 'x's for unavailable registers.
17285 (supply_register): Mark the register's status valid or
17286 unavailable, depending on whether a buffer was passed in or not.
17287 (supply_register_zeroed): New.
17288 (supply_regblock): Mark the registers' status valid or
17289 unavailable, depending on whether a buffer was passed in or not.
17290 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17291 (struct regcache): New `register_status' field.
17292 (supply_register_zeroed): Declare.
17293 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17294 supply_register_zeroed, rather than passing a NULL buffer to
17296 * tracepoint.c (fetch_traceframe_registers): Update comment.
17298 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17300 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17303 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17305 * server.h (decode_xfer_write): Change prototype.
17306 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17307 and don't extract the annex here.
17308 * server.c (decode_xfer_read): Remove `annex' parameter,
17309 and don't extract the annex here.
17310 (decode_xfer): New.
17311 (struct qxfer): New.
17312 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17313 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17314 (handle_qxfer_statictrace): New functions, abstracted out from
17315 handle_query, and made to use the struct qxfer interface.
17316 (handle_threads_qxfer_proper): Rename to ...
17317 (handle_qxfer_threads_proper): ... this.
17318 (handle_threads_qxfer): Rename to ...
17319 (handle_qxfer_threads): ... this. Adjust.
17320 (qxfer_packets): New array.
17321 (handle_qxfer): New function.
17322 (handle_query): Use handle_qxfer.
17324 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17326 * gdbreplay.c: Shorten lines of >= 80 columns.
17327 * linux-low.c: Ditto.
17328 * linux-ppc-low.c: Ditto.
17329 * linux-s390-low.c: Ditto.
17330 * linux-sparc-low.c: Ditto.
17331 * linux-x86-low.c: Ditto.
17332 * linux-xtensa-low.c: Ditto.
17333 * mem-break.c: Ditto.
17334 * nto-low.c: Ditto.
17335 * regcache.h: Ditto.
17336 * remote-utils.c: Ditto.
17339 * thread-db.c: Ditto.
17340 * tracepoint.c: Ditto.
17342 * win32-low.h: Ditto.
17344 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17346 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17349 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17351 * server.c (gdbserver_version): Update copyright year in version
17353 * gdbreplay.c (gdbreplay_version): Ditto.
17355 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17357 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17358 * linux-bfin-low.c: New file.
17359 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17360 PT_DATA_ADDR for BFIN targets.
17361 * Makefile.in (SFILES): Add linux-bfin-low.c.
17362 (clean): Remove reg-bfin.c.
17363 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17364 * README: Mention supported Blackfin targets.
17366 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17368 * .gitignore: New file.
17370 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17372 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17374 2010-10-22 Jie Zhang <jie@codesourcery.com>
17376 * Makefile.in: Add FLAGS_TO_PASS variable.
17377 (install): Remove dependency of install-only and recursively
17378 invoke make for install-only.
17380 2010-10-04 Doug Evans <dje@google.com>
17382 * Makefile.in (uninstall): Use $(DESTDIR).
17384 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17388 * linux-x86-low.c (compat_siginfo_from_siginfo)
17389 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17390 si_code is < 0. Check for si_code == SI_TIMER before checking for
17393 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17395 * lynx-i386-low.c: New file.
17396 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17398 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17400 * lynx-low.c (ptrace_request_to_str): Remove handling for
17401 request values that have been removed in LynxOS 5.x.
17403 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17405 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17408 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17410 * configure.ac: Add --enable-inprocess-agent option.
17411 * configure: Rebuilt.
17413 2010-09-06 Yao Qi <yao@codesourcery.com>
17415 * linux-low.c (linux_kill): Remove unused variable.
17416 (linux_stabilize_threads): Likewise.
17417 * server.c (start_inferior): Likewise.
17418 (queue_stop_reply_callback): Likewise.
17419 * tracepoint.c (do_action_at_tracepoint): Likewise.
17421 2010-09-06 Yao Qi <yao@codesourcery.com>
17423 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17426 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17428 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17430 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17432 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17435 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17437 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17438 gdbserver/lynx-ppc-low.c: New files.
17439 * Makefile.in (lynx_low_h): New variable.
17440 (lynx-low.o, lynx-ppc-low.o): New rules.
17441 * configure.ac: On LynxOS, link with -lnetinet.
17442 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17443 * configure: regenerate.
17445 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17447 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17448 * configure.ac: Add check for vasprintf and vsnprintf.
17449 * configure, config.in: Regenerate.
17450 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17452 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17454 * gdbreplay.c: Move include of alloca.h up, next to include of
17456 * server.h: Add include of malloc.h.
17457 * mem-break.c: Remove include of malloc.h.
17458 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17460 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17462 * Makefile.in (memmem.o): Build with -Wno-error.
17464 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17466 * utils.c (xsnprintf): Make non-static.
17467 * server.h: Add xsnprintf declaration.
17468 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17469 replace calls to snprintf by calls to xsnprintf throughout.
17471 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17473 * configure.ac: Add configure check for alloca.
17474 * configure, config.in: Regenerate.
17475 * server.h: Include alloca.h if it exists.
17476 * gdbreplay.c: Include alloca.h if it exists.
17478 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17480 * linux-low.c (__SIGRTMIN): Define if not already defined.
17481 (linux_create_inferior): Check for __ANDROID__ rather than
17483 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17484 are already deferred.
17485 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17486 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17487 stopped and already has a pending signal to report.
17488 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17489 a pending signal to report or is moving out of a jump pad.
17490 (linux_init_signals): Check for __ANDROID__ rather than
17493 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17495 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17496 debug_threads check. Avoid a linear search when not doing debug
17499 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17501 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17502 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17503 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17504 (process_event): Change local fd's type to gdb_fildes_t.
17505 (create_file_handler): Adjust prototype.
17506 (delete_file_handler): Adjust prototype.
17507 (handle_file_event): Adjust prototype. Use pfildes.
17508 (create_file_event): Adjsut prototype.
17509 * remote-utils.c (remote_desc, listen_desc): Change type to
17511 * server.h: New gdb_fildes_t typedef.
17512 [USE_WIN32API]: Include winsock2.h.
17513 (delete_file_handler, add_file_handler): Adjust prototypes.
17514 (pfildes): Declare.
17515 * utils.c (pfildes): New.
17517 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17519 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17520 * configure: Regenerate.
17522 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17524 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17525 (linux_done_accessing_memory): ... this.
17526 (linux_target_ops): Adjust.
17527 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17528 * nto-low.c (nto_target_ops): Adjust comment.
17529 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17530 * spu-low.c (spu_target_ops): Adjust comment.
17531 * target.h (target_ops): Rename unprepare_to_access_memory field
17532 to done_accessing_memory.
17533 (unprepare_to_access_memory): Rename to ...
17534 (done_accessing_memory): ... this.
17536 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17538 * linux-low.c (linux_prepare_to_access_memory): New.
17539 (linux_unprepare_to_access_memory): New.
17540 (linux_target_ops): Install them.
17541 * server.c (read_memory): Rename to ...
17542 (gdb_read_memory): ... this. Use
17543 prepare_to_access_memory/prepare_to_access_memory.
17544 (write_memory): Rename to ...
17545 (gdb_write_memory): ... this. Use
17546 prepare_to_access_memory/prepare_to_access_memory.
17547 (handle_search_memory_1): Adjust.
17548 (process_serial_event): Adjust.
17549 * target.h (struct target_ops): New fields
17550 prepare_to_access_memory and unprepare_to_access_memory.
17551 (prepare_to_access_memory, unprepare_to_access_memory): New.
17552 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17553 prepare_to_access_memory/prepare_to_access_memory.
17554 * nto-low.c (nto_target_ops): Adjust.
17555 * spu-low.c (spu_target_ops): Adjust.
17556 * win32-low.c (win32_target_ops): Adjust.
17558 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17560 * Makefile.in (WARN_CFLAGS): Get it from configure.
17561 (WERROR_CFLAGS): New.
17562 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17563 * configure.ac: Introduce --enable-werror, which adds -Werror to
17564 the compiler command line. Enabled by default. Disable with
17565 --disable-werror. Add -Wdeclaration-after-statement
17566 Wpointer-arith and -Wformat-nonliteral to warning flags.
17567 * configure: Regenerate.
17569 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17571 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17573 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17575 * gdbreplay.c (remote_error): New.
17577 (expect): Use gdbchar. Check for error reading from GDB.
17578 Clarify sync error output.
17579 (play): Check for errors writing to GDB.
17580 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17581 * remote-utils.c (getpkt): Check for errors writing to the remote
17584 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17586 * linux-low.c (linux_wait_1): Move non-debugging code out of
17587 `debug_threads' control.
17589 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17591 * linux-low.c (linux_wait_1): Don't set last_status here.
17592 * server.c (push_event, queue_stop_reply_callback): Assert we're
17593 not pushing a TARGET_WAITKIND_IGNORE event.
17594 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17595 (myresume, handle_target_event): Set the thread's last_resume_kind
17596 and last_status from the target returned status.
17598 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17602 * linux-x86-low.c (update_debug_registers_callback): New.
17603 (i386_dr_low_set_addr): Use it.
17604 (i386_dr_low_get_addr): New.
17605 (i386_dr_low_set_control): Use update_debug_registers_callback.
17606 (i386_dr_low_get_control): New.
17607 (i386_dr_low_get_status): Adjust.
17608 * linux-low.c (linux_stop_lwp): New.
17609 * linux-low.h (linux_stop_lwp): Declare.
17611 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17612 argument instead of a i386_debug_reg_state.
17613 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17614 a i386_debug_reg_state.
17615 (i386_insert_aligned_watchpoint): Adjust.
17616 (i386_remove_aligned_watchpoint): Adjust.
17617 (i386_low_stopped_data_address): Read the debug registers from the
17618 inferior instead of from the mirrors.
17619 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17620 (i386_dr_low_get_addr): Declare.
17621 (i386_dr_low_get_control): Declare.
17622 (i386_dr_low_get_status): Change prototype.
17624 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17625 (i386_dr_low_get_addr): New.
17626 (i386_dr_low_get_control): New.
17627 (i386_dr_low_get_status): Adjust prototype. Return
17629 (i386_initial_stuff): Clear dr_status_mirror and
17631 (i386_get_thread_context): Adjust.
17632 (i386_set_thread_context): Adjust.
17633 (i386_thread_added): Adjust.
17635 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17637 * linux-low.h (linux_thread_area): Delete declaration.
17639 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17641 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17642 after its termination.
17644 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17646 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17647 (gdb_wants_all_stopped): Delete.
17648 (linux_wait_1): Don't call them.
17649 * server.c (handle_v_cont): Tag all threads as want-stopped.
17650 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17651 stopped as "client-wants-stopped".
17653 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17655 * Makefile.in (signals_h): New.
17656 (server_h): Depend on it.
17657 (server.o): Don't depend on $(signals_def).
17658 (signals.o): Depend on $(signals_def).
17660 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17662 * Makefile.in (signals_def): New.
17663 (server_h): Append include/gdb/signals.h and signals_def.
17664 (server.o): Append signals_def.
17666 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17668 * server.c (handle_target_event): Use target_signal_to_host for
17669 resume_info.sig initialization.
17670 * target.h (struct thread_resume) <sig>: New comment.
17672 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17674 * server.c (handle_query): strcpy() the returned string from paddress()
17675 instead of sprintf().
17676 * utils.c (paddress): Return phex_nz().
17678 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17680 * server.c (handle_v_cont): Call mourn_inferior if process
17682 (myresume): Likewise.
17684 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17686 Static tracepoints, and integration with UST.
17688 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17689 * mem-break.c (uninsert_all_breakpoints)
17690 (reinsert_all_breakpoints): New.
17691 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17692 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17693 (gdb_agent_ust_loaded, helper_thread_id)
17694 (gdb_agent_helper_thread_id): New macros.
17695 (struct ipa_sym_addresses): Add addr_ust_loaded,
17696 addr_helper_thread_id, addr_cmd_buf.
17697 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17698 (in_process_agent_loaded_ust): New.
17699 (write_e_ust_not_loaded): New.
17700 (maybe_write_ipa_ust_not_loaded): New.
17701 (struct collect_static_trace_data_action): New.
17702 (enum tracepoint_type) <static_tracepoint>: New.
17703 (struct tracepoint) <handle>: Mention static tracepoints.
17704 (struct static_tracepoint_ctx): New.
17705 (CMD_BUF_SIZE): New.
17706 (add_tracepoint_action): Handle static tracepoint actions.
17707 (unprobe_marker_at): New.
17708 (clear_installed_tracepoints): Handle static tracepoints.
17709 (cmd_qtdp): Handle static tracepoints.
17710 (probe_marker_at): New.
17711 (cmd_qtstart): Handle static tracepoints.
17712 (response_tracepoint): Handle static tracepoints.
17713 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17714 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17715 (get_context_regcache): Handle static tracepoints.
17716 (do_action_at_tracepoint): Handle static tracepoint actions.
17717 (traceframe_find_block_type): Handle static trace data blocks.
17718 (traceframe_read_sdata): New.
17719 (download_tracepoints): Download static tracepoint actions.
17720 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17721 (GDB_PROBE_NAME): New.
17723 (GET_UST_SYM): New.
17726 (ust_marker_to_static_tracepoint): New.
17728 (collect_ust_data_at_tracepoint): New.
17729 (gdb_ust_probe): New.
17730 (UNIX_PATH_MAX, SOCK_DIR): New.
17731 (gdb_ust_connect_sync_socket): New.
17732 (resume_thread, stop_thread): New.
17733 (run_inferior_command): New.
17734 (init_named_socket): New.
17735 (gdb_ust_socket_init): New.
17736 (cstr_to_hexstr): New.
17738 (first_marker, next_marker): New.
17739 (response_ust_marker): New.
17740 (cmd_qtfstm, cmd_qtsstm): New.
17741 (unprobe_marker_at, probe_marker_at): New.
17742 (cmd_qtstmat, gdb_ust_thread): New.
17743 (gdb_ust_init): New.
17744 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17745 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17746 (ST_REGENTRY): New.
17747 (x86_64_st_collect_regmap): New.
17748 (X86_64_NUM_ST_COLLECT_GREGS): New.
17749 (AMD64_RIP_REGNUM): New.
17750 (supply_static_tracepoint_registers): New.
17751 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17752 (ST_REGENTRY): New.
17753 (i386_st_collect_regmap): New.
17754 (i386_NUM_ST_COLLECT_GREGS): New.
17755 (supply_static_tracepoint_registers): New.
17756 * server.c (handle_query): Handle qXfer:statictrace:read.
17757 <qSupported>: Report support for StaticTracepoints, and
17758 qXfer:statictrace:read features.
17759 * server.h (traceframe_read_sdata)
17760 (supply_static_tracepoint_registers): Declare.
17761 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17762 (unpack_varlen_hex): Include in IPA build.
17763 * Makefile.in (ustlibs, ustinc): New.
17764 (IPA_OBJS): Add remote-utils-ipa.o.
17765 ($(IPA_LIB)): Link -ldl and -lpthread.
17767 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17768 * config.in, configure: Regenerate.
17770 2010-06-20 Ian Lance Taylor <iant@google.com>
17771 Pedro Alves <pedro@codesourcery.com>
17773 * linux-x86-low.c (always_true): Delete.
17774 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17775 trying to fool the compiler with always_true.
17777 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17779 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17780 conditions in gdbserver.
17782 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17784 * spu-low.c (spu_read_memory): Wrap around local store limit.
17785 (spu_write_memory): Likewise.
17787 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17789 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17790 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17792 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17794 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17795 uses with LONGEST uses.
17797 2010-06-14 Stan Shebs <stan@codesourcery.com>
17798 Pedro Alves <pedro@codesourcery.com>
17802 * linux-x86-low.c: Include limits.h.
17804 (always_true): New.
17807 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17808 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17809 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17810 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17811 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17812 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17813 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17814 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17815 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17816 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17817 (amd64_emit_void_call_2): New.
17818 (amd64_emit_ops): New.
17819 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17820 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17821 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17822 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17823 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17824 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17825 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17826 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17827 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17828 (i386_emit_stack_adjust, i386_emit_int_call_1)
17829 (i386_emit_void_call_2): New.
17830 (i386_emit_ops): New.
17831 (x86_emit_ops): New.
17832 (the_low_target): Install x86_emit_ops.
17833 * server.h (struct emit_ops): New.
17834 (get_raw_reg_func_addr): Declare.
17835 (current_insn_ptr, emit_error): Declare.
17836 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17837 (set_trace_state_variable_value): New defines.
17838 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17839 addr_get_trace_state_variable_value and
17840 addr_set_trace_state_variable_value.
17841 (symbol_list): New fields for get_raw_reg,
17842 get_trace_state_variable_value and set_trace_state_variable_value.
17843 (condfn): New typedef.
17844 (struct tracepoint): New field `compiled_cond'.
17845 (do_action_at_tracepoint): Clear compiled_cond.
17846 (get_trace_state_variable_value, set_trace_state_variable_value):
17848 (condition_true_at_tracepoint): If there's a compiled condition,
17850 (current_insn_ptr, emit_error): New globals.
17851 (struct bytecode_address): New.
17852 (get_raw_reg_func_addr): New.
17853 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17854 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17855 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17856 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17857 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17858 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17859 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17860 (compile_tracepoint_condition, compile_bytecodes): New.
17861 * target.h (emit_ops): Forward declare.
17862 (struct target_ops): New field emit_ops.
17863 (target_emit_ops): New.
17864 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17865 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17866 * linux-low.c (linux_emit_ops): New.
17867 (linux_target_ops): Install it.
17868 * linux-low.h (struct linux_target_ops): New field emit_ops.
17870 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17872 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17873 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17875 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17876 Stan Shebs <stan@codesourcery.com>
17878 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17879 (all): Depend on $(extra_libraries).
17880 (install-only): Install the IPA.
17881 (IPA_OBJS, IPA_LIB): New.
17882 (clean): Remove the IPA lib.
17883 (IPAGENT_CFLAGS): New.
17884 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17885 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17886 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17887 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17888 * configure.ac: Check for atomic builtins support in the compiler.
17889 (IPA_DEPFILES, extra_libraries): Define.
17890 * configure.srv (ipa_obj): Add description.
17891 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17892 (i[34567]86-*-linux*): Set ipa_obj.
17893 (x86_64-*-linux*): Set ipa_obj.
17894 * linux-low.c (stabilizing_threads): New.
17895 (supports_fast_tracepoints): New.
17896 (linux_detach): Stabilize threads before detaching.
17897 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17898 the lwp is either not stabilizing, or is moving out of a jump pad.
17899 (linux_fast_tracepoint_collecting): New.
17900 (maybe_move_out_of_jump_pad): New.
17901 (enqueue_one_deferred_signal): New.
17902 (dequeue_one_deferred_signal): New.
17903 (linux_wait_for_event_1): If moving out of a jump pad, defer
17904 pending signals to later.
17905 (linux_stabilize_threads): New.
17906 (linux_wait_1): Check if threads need moving out of jump pads, and
17908 (stuck_in_jump_pad_callback): New.
17909 (move_out_of_jump_pad_callback): New.
17910 (lwp_running): New.
17911 (linux_resume_one_lwp): Handle moving out of jump pads.
17912 (linux_set_resume_request): Dequeue deferred signals.
17913 (need_step_over_p): Also step over fast tracepoint jumps.
17914 (start_step_over): Also uninsert fast tracepoint jumps.
17915 (finish_step_over): Also reinsert fast tracepoint jumps.
17916 (linux_install_fast_tracepoint_jump): New.
17917 (linux_target_ops): Install linux_stabilize_threads and
17918 linux_install_fast_tracepoint_jump_pad.
17919 * linux-low.h (linux_target_ops) <get_thread_area,
17920 install_fast_tracepoint_jump_pad>: New fields.
17921 (struct lwp_info) <collecting_fast_tracepoint,
17922 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17923 (linux_get_thread_area): Declare.
17924 * linux-x86-low.c (jump_insn): New.
17925 (x86_get_thread_area): New.
17926 (append_insns): New.
17927 (push_opcode): New.
17928 (amd64_install_fast_tracepoint_jump_pad): New.
17929 (i386_install_fast_tracepoint_jump_pad): New.
17930 (x86_install_fast_tracepoint_jump_pad): New.
17931 (the_low_target): Install x86_get_thread_area and
17932 x86_install_fast_tracepoint_jump_pad.
17933 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17934 (struct fast_tracepoint_jump): New.
17935 (fast_tracepoint_jump_insn): New.
17936 (fast_tracepoint_jump_shadow): New.
17937 (find_fast_tracepoint_jump_at): New.
17938 (fast_tracepoint_jump_here): New.
17939 (delete_fast_tracepoint_jump): New.
17940 (set_fast_tracepoint_jump): New.
17941 (uninsert_fast_tracepoint_jumps_at): New.
17942 (reinsert_fast_tracepoint_jumps_at): New.
17943 (set_breakpoint_at): Use write_inferior_memory.
17944 (uninsert_raw_breakpoint): Use write_inferior_memory.
17945 (check_mem_read): Mask out fast tracepoint jumps.
17946 (check_mem_write): Mask out fast tracepoint jumps.
17947 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17948 (set_fast_tracepoint_jump): Declare.
17949 (delete_fast_tracepoint_jump)
17950 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17951 (reinsert_fast_tracepoint_jumps_at): Declare.
17952 * regcache.c: Don't compile many functions when building the
17953 in-process agent library.
17954 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17955 the register buffer in the heap.
17956 (free_register_cache): If the register buffer isn't owned by the
17957 regcache, don't free it.
17958 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17959 pre-existing register caches.
17960 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17962 (convert_ascii_to_int): : Constify `from' parameter type.
17963 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17964 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17965 the needed buffer in-place.
17966 (relocate_instruction): New.
17967 * server.c (handle_query) <qSymbols>: If the target supports
17968 tracepoints, give it a chance of looking up symbols. Report
17969 support for fast tracepoints.
17970 (handle_status): Stabilize threads.
17971 (process_serial_event): Adjust.
17972 * server.h (struct fast_tracepoint_jump): Forward declare.
17973 (struct process_info) <fast_tracepoint_jumps>: New field.
17974 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17975 (decode_X_packet, decode_M_packet): Adjust.
17976 (relocate_instruction): Declare.
17977 (in_process_agent_loaded): Declare.
17978 (tracepoint_look_up_symbols): Declare.
17979 (struct fast_tpoint_collect_status): Declare.
17980 (fast_tracepoint_collecting): Declare.
17981 (force_unlock_trace_buffer): Declare.
17982 (handle_tracepoint_bkpts): Declare.
17983 (initialize_low_tracepoint)
17984 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17985 * target.h (struct target_ops) <stabilize_threads,
17986 install_fast_tracepoint_jump_pad>: New fields.
17987 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17988 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17989 [HAVE_STDINT_H]: Include stdint.h.
17990 (trace_debug_1): Rename to ...
17991 (trace_vdebug): ... this.
17992 (trace_debug): Rename to ...
17993 (trace_debug_1): ... this. Add `level' parameter.
17994 (trace_debug): New.
17995 (ATTR_USED, ATTR_NOINLINE): New.
17996 (IP_AGENT_EXPORT): New.
17997 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17998 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17999 (about_to_request_buffer_space, trace_buffer_is_full)
18000 (stopping_tracepoint, expr_eval_result, error_tracepoint)
18001 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
18002 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
18003 (traceframe_write_count, traceframes_created)
18004 (trace_state_variables)
18005 New renaming defines.
18006 (struct ipa_sym_addresses): New.
18007 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
18008 (symbol_list): New.
18009 (ipa_sym_addrs): New.
18010 (all_tracepoint_symbols_looked_up): New.
18011 (in_process_agent_loaded): New.
18012 (write_e_ipa_not_loaded): New.
18013 (maybe_write_ipa_not_loaded): New.
18014 (tracepoint_look_up_symbols): New.
18015 (debug_threads) [IN_PROCESS_AGENT]: New.
18016 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
18017 (UNKNOWN_SIDE_EFFECTS): New.
18018 (stop_tracing): New.
18019 (flush_trace_buffer): New.
18020 (stop_tracing_bkpt): New.
18021 (flush_trace_buffer_bkpt): New.
18022 (read_inferior_integer): New.
18023 (read_inferior_uinteger): New.
18024 (read_inferior_data_pointer): New.
18025 (write_inferior_data_pointer): New.
18026 (write_inferior_integer): New.
18027 (write_inferior_uinteger): New.
18028 (struct collect_static_trace_data_action): Delete.
18029 (enum tracepoint_type): New.
18030 (struct tracepoint) <type>: New field `type'.
18031 <actions_str, step_actions, step_actions_str>: Only include in
18033 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18034 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18035 (tracepoints): Use IP_AGENT_EXPORT.
18036 (last_tracepoint): Don't include in the IPA.
18037 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18038 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18039 (alloced_trace_state_variables): New.
18040 (trace_state_variables): Use IP_AGENT_EXPORT.
18041 (traceframe_t): Delete unused variable.
18042 (circular_trace_buffer): Don't include in the IPA.
18043 (trace_buffer_start): Delete.
18044 (struct trace_buffer_control): New.
18045 (trace_buffer_free): Delete.
18046 (struct ipa_trace_buffer_control): New.
18047 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18048 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18050 (trace_buffer_ctrl): New.
18051 (TRACE_BUFFER_CTRL_CURR): New.
18052 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18053 Reimplement as macros.
18054 (trace_buffer_wrap): Delete.
18055 (traceframe_write_count, traceframe_read_count)
18056 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18057 (struct tracepoint_hit_ctx) <type>: New field.
18058 (struct fast_tracepoint_ctx): New.
18059 (memory_barrier): New.
18061 (record_tracepoint_error): Update atomically in the IPA.
18062 (clear_inferior_trace_buffer): New.
18063 (about_to_request_buffer_space): New.
18064 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18065 updating the same buffer.
18066 (add_tracepoint): Default the tracepoint's type to trap
18067 tracepoint, and orig_size to -1.
18068 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18069 internal variables.
18070 (create_trace_state_variable): New parameter `gdb'. Handle it.
18071 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18072 (cmd_qtdp): Handle fast tracepoints.
18073 (cmd_qtdv): Adjust.
18074 (max_jump_pad_size): New.
18075 (gdb_jump_pad_head): New.
18076 (get_jump_space_head): New.
18077 (claim_jump_space): New.
18078 (sort_tracepoints): New.
18079 (MAX_JUMP_SIZE): New.
18080 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18082 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18083 support. Upload fast traceframes, and delete internal IPA
18085 (stop_tracing_handler): New.
18086 (flush_trace_buffer_handler): New.
18087 (cmd_qtstop): Upload fast tracepoints.
18088 (response_tracepoint): Handle fast tracepoints.
18089 (tracepoint_finished_step): Upload fast traceframes. Set the
18090 tracepoint hit context's tracepoint type.
18091 (handle_tracepoint_bkpts): New.
18092 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18093 type. Add comment about fast tracepoints.
18094 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18095 non-existing action_str field.
18096 (get_context_regcache): Handle fast tracepoints.
18097 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18099 (fast_tracepoint_from_jump_pad_address): New.
18100 (fast_tracepoint_from_ipa_tpoint_address): New.
18101 (collecting_t): New.
18102 (force_unlock_trace_buffer): New.
18103 (fast_tracepoint_collecting): New.
18105 (gdb_collect): New.
18106 (write_inferior_data_ptr): New.
18107 (target_tp_heap): New.
18108 (target_malloc): New.
18109 (download_agent_expr): New.
18111 (download_tracepoints): New.
18112 (download_trace_state_variables): New.
18113 (upload_fast_traceframes): New.
18114 (IPA_FIRST_TRACEFRAME): New.
18115 (IPA_NEXT_TRACEFRAME_1): New.
18116 (IPA_NEXT_TRACEFRAME): New.
18117 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18118 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18119 (gdb_jump_pad_buffer_end): New.
18120 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18121 (initialize_tracepoint): Adjust.
18122 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18123 buffer. Initialize the low module.
18124 * utils.c (PREFIX, TOOLNAME): New.
18125 (malloc_failure): Use PREFIX.
18126 (error): In the IPA, an error causes an exit.
18127 (fatal, warning): Use PREFIX.
18128 (internal_error): Use TOOLNAME.
18129 (NUMCELLS): Increase to 10.
18130 * configure, config.in: Regenerate.
18132 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18134 * server.c (handle_query) <qSupported>: Do two passes over the
18135 qSupported string to avoid nesting strtok.
18137 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18139 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18141 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18142 -Wl,--dynamic-list.
18143 * configure: Regenerate.
18144 * proc-service.list: New.
18146 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18148 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18151 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18153 * gdbreplay.c (remote_open): Check error return from socket() call by
18154 its equality to -1 not by it being negative.
18155 * remote-utils.c (remote_open): Likewise.
18157 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18159 * config.h: Regenerate.
18161 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18163 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18164 doesn't provide PTRACE_GET_THREAD_AREA.
18166 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18168 * linux-m68k-low.c: Include <asm/ptrace.h>
18169 (ps_get_thread_area): Implement.
18171 2010-05-03 Doug Evans <dje@google.com>
18173 * event-loop.c (struct callback_event): New struct.
18174 (callback_list): New global.
18175 (append_callback_event, delete_callback_event): New functions.
18176 (process_callback): New function.
18177 (start_event_loop): Call it.
18178 * remote-utils.c (NOT_SCHEDULED): Define.
18179 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18180 moved out of readchar.
18181 (readchar): Rewrite. Call reschedule before returning.
18182 (reset_readchar): New function.
18183 (remote_close): Call it.
18184 (process_remaining, reschedule): New functions.
18185 * server.h (callback_handler_func): New typedef.
18186 (append_callback_event, delete_callback_event): Declare.
18188 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18190 * proc-service.c (ps_pglobal_lookup): Use
18191 thread_db_look_up_one_symbol.
18192 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18193 parameter. Use it instead of all_symbols_looked_up.
18194 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18196 (all_symbols_looked_up): Don't declare.
18197 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18198 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18200 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18201 Set all_symbols_looked_up here.
18202 (thread_db_look_up_one_symbol): New.
18203 (thread_db_get_tls_address): Adjust.
18204 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18205 thread_db object on the heap, and tentatively set it in the
18207 (thread_db_init): Don't set all_symbols_looked_up here.
18208 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18210 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18212 * linux-low.c (linux_kill, linux_detach): Adjust.
18213 (status_pending_p_callback): Remove redundant statement. Check
18214 for !TARGET_WAITIKIND_IGNORE, instead of
18215 TARGET_WAITKIND_STOPPED.
18216 (handle_tracepoints): Make sure LWP is locked. Adjust.
18217 (linux_wait_for_event_1): Adjust.
18218 (linux_cancel_breakpoints): New.
18219 (unsuspend_one_lwp): New.
18220 (unsuspend_all_lwps): New.
18221 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18222 (send_sigstop_callback): Change return type to int, add new
18223 `except' parameter and handle it.
18224 (suspend_and_send_sigstop_callback): New.
18225 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18226 pass them down. If SUSPEND, also increment the lwp's suspend
18228 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18229 (need_step_over_p): Don't consider suspended LWPs.
18230 (start_step_over): Adjust.
18231 (proceed_one_lwp): Change return type to int, add new `except'
18232 parameter and handle it.
18233 (unsuspend_and_proceed_one_lwp): New.
18234 (proceed_all_lwps): Use find_inferior instead of
18236 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18237 also decrement the suspend count of LWPs. Pass `except' down,
18238 instead of hacking its suspend count.
18239 (linux_pause_all): Add `freeze' parameter. Adjust.
18240 (linux_unpause_all): New.
18241 (linux_target_ops): Install linux_unpause_all.
18242 * server.c (handle_status): Adjust.
18243 * target.h (struct target_ops): New fields `unpause_all' and
18244 `cancel_breakpoints'. Add new parameter to `pause_all'.
18245 (pause_all): Add new `freeze' parameter.
18246 (unpause_all): New.
18247 (cancel_breakpoints): New.
18248 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18249 cancel breakpoints.
18250 (cmd_qtstart): Pause threads.
18251 (stop_tracing): Pause threads, and cancel breakpoints.
18252 * win32-low.c (win32_target_ops): Adjust.
18254 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18256 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18257 the inferior right away from here...
18258 (linux_wait_1): ... to here, and adjust to check the thread's
18259 last_resume_kind instead of the lwp's step or stop_expected flags.
18261 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18263 * README: Use consistent `GDB' and `GDBserver' spellings.
18265 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18267 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18268 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18269 (linux_detach_one_lwp): Assume the lwp is stopped.
18270 (any_thread_of): Delete.
18271 (linux_detach): Stop all lwps here. Don't blindly delete all
18273 (delete_lwp_callback): New.
18274 (linux_mourn): Delete all lwps of the process that is gone.
18275 (linux_wait_1): Don't delete the last lwp of the process here.
18276 * mem-break.h (mark_breakpoints_out): Declare.
18277 * mem-break.c (mark_breakpoints_out): New.
18278 (free_all_breakpoints): Use it.
18279 * server.c (handle_target_event): If the process is gone, mark
18281 * thread-db.c (struct thread_db) <create_bp>: New field.
18282 (thread_db_enable_reporting): Fix prototype. Store a thread event
18283 breakpoint reference in the thread_db struct.
18284 (thread_db_load_search): Clear the thread_db object.
18285 (try_thread_db_load_1): Ditto.
18286 (switch_to_process): New.
18287 (disable_thread_event_reporting): Use it.
18288 (remove_thread_event_breakpoints): New.
18289 (thread_db_detach, thread_db_mourn): Use it.
18291 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18293 * linux-low.c (linux_enable_event_reporting): New.
18294 (linux_wait_for_event_1, handle_extended_wait): Use it.
18296 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18298 * linux-low.c (linux_kill_one_lwp, linux_kill)
18299 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18300 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18301 SIGSTOP even if the LWP is stopped.
18302 (send_sigstop_callback): New.
18303 (stop_all_lwps): Use send_sigstop_callback instead.
18304 (linux_resume_one_thread): Adjust.
18305 (proceed_one_lwp): Still proceed an LWP that the client has
18306 requested to stop, if we haven't reported it as stopped yet. Make
18307 sure that LWPs the client want stopped, have a pending SIGSTOP.
18309 2010-04-26 Doug Evans <dje@google.com>
18311 * server.c (handle_general_set): Make static.
18313 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18314 Print received char after testing for error/eof instead of before.
18315 (input_interrupt): Tweak comment.
18317 2010-04-23 Doug Evans <dje@google.com>
18319 * server.c (start_inferior): Print inferior argv if --debug.
18321 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18323 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18324 * nto-x86-low.c: Include server.h
18326 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18328 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18329 be consistent with other sources of this directory.
18330 (init_registers_amd64): Correct name of source file of this function
18333 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18335 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18336 64-bit executables.
18338 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18340 * win32-i386-low.c: Add 64-bit support.
18341 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18342 (init_registers_amd64): Declare.
18343 (mappings): Add 64-bit version of array.
18344 (init_windows_x86): New function.
18345 (the_low_target): Change init_arch field to init_windows_x86.
18347 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18349 * win32-low.c: Adapt to support also 64-bit architecture.
18350 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18351 (get_image_name): Use SIZE_T type for local variable `done'.
18352 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18353 (toolhelp_get_dll_name): Idem.
18354 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18355 Use uintptr_t typecast to avoid warning.
18356 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18357 (handle_exception): Use phex_nz to avoid warning.
18358 (win32_wait): Remove unused local variable `process'.
18360 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18362 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18365 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18367 * configure.ac: Use `ws2_32' library for srv_mingw.
18368 * configure: Regenerate.
18369 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18370 * remote-utils.c: Likewise.
18372 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18374 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18375 if __x86_64__ is defined.
18377 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18379 * configure: Regenerate.
18381 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18383 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18384 * target.h (target_ops): New get_tib_address field.
18385 * win32-low.h (win32_thread_info): Add thread_local_base field.
18386 * win32-low.c (child_add_thread): Add tlb argument.
18387 Set thread_local_base field to TLB.
18388 (get_child_debug_event): Adapt to child_add_thread change.
18389 (win32_get_tib_address): New function.
18390 (win32_target_ops): Set get_tib_address field to
18391 win32_get_tib_address.
18392 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18394 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18396 * linux-low.c (linux_mourn): Also remove the process.
18397 * server.c (handle_target_event): Don't remove the process here.
18398 * nto-low.c (nto_mourn): New.
18399 (nto_target_ops): Install it.
18400 * spu-low.c (spu_mourn): New.
18401 (spu_target_ops): Install it.
18402 * win32-low.c (win32_mourn): New.
18403 (win32_target_ops): Install it.
18405 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18407 * server.h (buffer_xml_printf): Remove redundant `;'.
18409 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18411 * regcache.c (set_register_cache): Invalidate regcaches before
18412 changing the register cache layout.
18413 (regcache_invalidate_one): Allow a NULL regcache.
18414 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18415 regcaches before changing the register cache layout or the target
18418 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18420 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18421 variable warning on Linux/x86-64.
18423 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18425 GDBserver disconnected tracing support.
18427 * linux-low.c (linux_remove_process): Delete.
18428 (add_lwp): Don't set last_resume_kind here.
18429 (linux_kill): Use `mourn'.
18430 (linux_detach): Use `thread_db_detach', and `mourn'.
18431 (linux_mourn): New.
18432 (linux_attach_lwp_1): Adjust comment.
18433 (linux_attach): last_resume_kind moved the thread_info; adjust.
18434 (status_pending_p_callback): Adjust.
18435 (linux_wait_for_event_1): Adjust.
18436 (count_events_callback, select_singlestep_lwp_callback)
18437 (select_event_lwp_callback, cancel_breakpoints_callback)
18438 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18439 (proceed_one_lwp): Adjust.
18440 (linux_async): Add debug output.
18441 (linux_thread_stopped): New.
18442 (linux_pause_all): New.
18443 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18445 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18446 (thread_db_free): Delete declaration.
18447 (thread_db_detach, thread_db_mourn): Declare.
18448 * thread-db.c (thread_db_init): Use thread_db_mourn.
18449 (thread_db_free): Delete, split in two.
18450 (disable_thread_event_reporting): New.
18451 (thread_db_detach): New.
18452 (thread_db_mourn): New.
18454 * server.h (struct thread_info) <last_resume_kind>: New field.
18455 <attached>: Add comment.
18456 <gdb_detached>: New field.
18457 (handler_func): Change return type to int.
18458 (handle_serial_event, handle_target_event): Ditto.
18459 (gdb_connected): Declare.
18461 (disconnected_tracing): Declare.
18462 (stop_tracing): Declare.
18464 * server.c (handle_query) <qSupported>: Report support for
18465 disconnected tracing.
18466 (queue_stop_reply_callback): Account for running threads.
18467 (gdb_wants_thread_stopped): New.
18468 (gdb_wants_all_threads_stopped): New.
18469 (gdb_reattached_process): New.
18470 (handle_status): Clear the `gdb_detached' flag of all processes.
18471 In all-stop, stop all threads.
18472 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18473 (process_serial_event): If the remote connection breaks, or if an
18474 exit was forced with "monitor exit", force an event loop exit.
18475 Handle disconnected tracing on detach.
18476 (handle_serial_event): Adjust.
18477 (handle_target_event): If GDB isn't connected, forward events back
18478 to the inferior, unless the last process exited, in which case,
18479 exit gdbserver. Adjust interface.
18481 * remote-utils.c (remote_open): Don't block in accept. Instead
18482 register an event loop source on the listen socket file
18483 descriptor. Refactor bits into ...
18484 (listen_desc): ... this new global.
18485 (gdb_connected): ... this new function.
18486 (enable_async_notification): ... this new function.
18487 (handle_accept_event): ... this new function.
18488 (remote_close): Clear remote_desc.
18490 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18492 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18494 (mourn_inferior): Define.
18495 (target_process_qsupported): Avoid the dangling else problem.
18496 (thread_stopped): Define.
18497 (pause_all): Define.
18498 (target_waitstatus_to_string): Declare.
18499 * target.c (target_waitstatus_to_string): New.
18501 * tracepoint.c (tracing): Make extern.
18502 (disconnected_tracing): New.
18503 (stop_tracing): Make extern. Handle tracing stops due to GDB
18505 (cmd_qtdisconnected): New.
18506 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18507 (handle_tracepoint_general_set): Handle QTDisconnected.
18509 * event-loop.c (event_handler_func): Change return type to int.
18510 (process_event): Bail out if the event handler wants the event
18512 (handle_file_event): Ditto.
18513 (start_event_loop): Bail out if the event handler wants the event
18516 * nto-low.c (nto_target_ops): Adjust.
18517 * spu-low.c (spu_wait): Don't remove the process here.
18518 (spu_target_ops): Adjust.
18519 * win32-low.c (win32_wait): Don't remove the process here.
18520 (win32_target_ops): Adjust.
18522 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18524 * regcache.c (realloc_register_cache): Invalidate inferior's
18525 regcache before recreating it.
18527 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18529 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18531 2010-04-09 Stan Shebs <stan@codesourcery.com>
18532 Pedro Alves <pedro@codesourcery.com>
18534 * server.h (LONGEST): New.
18535 (struct thread_info) <while_stepping>: New field.
18536 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18538 (initialize_tracepoint, handle_tracepoint_general_set)
18539 (handle_tracepoint_query, tracepoint_finished_step)
18540 (tracepoint_was_hit, release_while_stepping_state_list):
18541 (current_traceframe): Declare.
18542 * server.c (handle_general_set): Handle tracepoint packets.
18543 (read_memory): New.
18544 (write_memory): New.
18545 (handle_search_memory_1): Use read_memory.
18546 (handle_query): Report support for conditional tracepoints, trace
18547 state variables, and tracepoint sources. Handle tracepoint
18549 (main): Initialize the tracepoints module.
18550 (process_serial_event): Handle traceframe reads/writes.
18552 * linux-low.c (handle_tracepoints): New.
18553 (linux_wait_1): Call it.
18554 (linux_resume_one_lwp): Handle while-stepping.
18555 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18556 (linux_target_ops): Install them.
18557 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18559 * linux-x86-low.c (x86_supports_tracepoints): New.
18560 (the_low_target). Install it.
18562 * mem-break.h (delete_breakpoint): Declare.
18563 * mem-break.c (delete_breakpoint): Make external.
18565 * target.h (struct target_ops): Add `supports_tracepoints',
18566 `read_pc', and `write_pc' fields.
18567 (target_supports_tracepoints): Define.
18568 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18571 * regcache.h (struct regcache) <registers_owned>: New field.
18572 (init_register_cache, regcache_cpy): Declare.
18573 (regcache_read_pc, regcache_write_pc): Declare.
18574 (register_cache_size): Declare.
18575 (supply_regblock): Declare.
18576 * regcache.c (init_register_cache): New.
18577 (new_register_cache): Use it.
18578 (regcache_cpy): New.
18579 (register_cache_size): New.
18580 (supply_regblock): New.
18581 (regcache_read_pc, regcache_write_pc): New.
18583 * tracepoint.c: New.
18585 * Makefile.in (OBS): Add tracepoint.o.
18586 (tracepoint.o): New rule.
18588 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18590 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18592 (i386-mmx.c): Likewise.
18593 (i386-mmx-linux.o): Likewise.
18594 (i386-mmx-linux.c): Likewise.
18596 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18597 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18598 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18599 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18601 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18602 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18603 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18605 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18607 * Makefile.in (clean): Updated.
18609 (i386-avx.c): Likewise.
18610 (i386-avx-linux.o): Likewise.
18611 (i386-avx-linux.c): Likewise.
18612 (amd64-avx.o): Likewise.
18613 (amd64-avx.c): Likewise.
18614 (amd64-avx-linux.o): Likewise.
18615 (amd64-avx-linux.c): Likewise.
18617 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18618 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18619 (srv_amd64_regobj): Add amd64-avx.o.
18620 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18621 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18622 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18623 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18624 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18625 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18626 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18628 * i387-fp.c: Include "i386-xstate.h".
18630 (i387_cache_to_xsave): Likewise.
18631 (i387_xsave_to_cache): Likewise.
18632 (x86_xcr0): Likewise.
18634 * i387-fp.h (i387_cache_to_xsave): Likewise.
18635 (i387_xsave_to_cache): Likewise.
18636 (x86_xcr0): Likewise.
18638 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18639 * linux-crisv32-low.c (target_regsets): Likewise.
18640 * linux-m68k-low.c (target_regsets): Likewise.
18641 * linux-mips-low.c (target_regsets): Likewise.
18642 * linux-ppc-low.c (target_regsets): Likewise.
18643 * linux-s390-low.c (target_regsets): Likewise.
18644 * linux-sh-low.c (target_regsets): Likewise.
18645 * linux-sparc-low.c (target_regsets): Likewise.
18646 * linux-xtensa-low.c (target_regsets): Likewise.
18648 * linux-low.c: Include <sys/uio.h>.
18649 (regsets_fetch_inferior_registers): Support nt_type.
18650 (regsets_store_inferior_registers): Likewise.
18651 (linux_process_qsupported): New.
18652 (linux_target_ops): Add linux_process_qsupported.
18654 * linux-low.h (regset_info): Add nt_type.
18655 (linux_target_ops): Add process_qsupported.
18657 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18659 (init_registers_i386_avx_linux): New.
18660 (init_registers_amd64_avx_linux): Likewise.
18661 (xmltarget_i386_linux_no_xml): Likewise.
18662 (xmltarget_amd64_linux_no_xml): Likewise.
18663 (PTRACE_GETREGSET): Likewise.
18664 (PTRACE_SETREGSET): Likewise.
18665 (x86_fill_xstateregset): Likewise.
18666 (x86_store_xstateregset): Likewise.
18667 (use_xml): Likewise.
18668 (x86_linux_update_xmltarget): Likewise.
18669 (x86_linux_process_qsupported): Likewise.
18670 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18671 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18672 init_registers_i386_linux here. Call
18673 x86_linux_update_xmltarget.
18674 (the_low_target): Add x86_linux_process_qsupported.
18676 * server.c (handle_query): Call target_process_qsupported.
18678 * target.h (target_ops): Add process_qsupported.
18679 (target_process_qsupported): New.
18681 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18683 * inferiors.c (add_thread): Set last_status kind to
18684 TARGET_WAITKIND_IGNORE.
18685 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18686 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18687 (linux_wait_1): Move `thread' local definition to block that uses
18688 it. Don't NULL initialize `event_child'.
18689 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18690 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18691 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18693 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18695 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18696 an extended waitstatus, or by a watchpoint.
18697 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18698 thread was stepping or has been stopped by a watchpoint.
18700 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18702 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18703 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18704 of another, then delete the previous, and validate all
18706 (validate_inserted_breakpoint): New.
18707 (delete_disabled_breakpoints): New.
18708 (validate_breakpoints): New.
18709 (check_mem_read): Validate breakpoints before trusting their
18710 shadow. Delete disabled breakpoints.
18711 (check_mem_write): Validate breakpoints before trusting they
18712 should be inserted. Delete disabled breakpoints.
18713 * mem-break.h (validate_breakpoints):
18714 * server.c (handle_query): Validate breakpoints when we see a
18717 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18719 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18720 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18721 if we could tell there's a GDB breakpoint at stop_pc.
18722 (need_step_over_p): Don't do a step over if we find a GDB
18723 breakpoint at the resume PC.
18725 * mem-break.c (struct raw_breakpoint): New.
18726 (enum bkpt_type): New type `gdb_breakpoint'.
18727 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18728 fields. New field `raw'.
18729 (find_raw_breakpoint_at): New.
18730 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18731 breakpoint instead.
18732 (set_breakpoint_at): Adjust.
18733 (delete_raw_breakpoint): New.
18734 (release_breakpoint): New.
18735 (delete_breakpoint): Rename to...
18736 (delete_breakpoint_1): ... this. Add proc parameter. Use
18737 release_breakpoint. Return ENOENT.
18738 (delete_breakpoint): Reimplement.
18739 (find_breakpoint_at): Delete.
18740 (find_gdb_breakpoint_at): New.
18741 (delete_breakpoint_at): Delete.
18742 (set_gdb_breakpoint_at): New.
18743 (delete_gdb_breakpoint_at): New.
18744 (gdb_breakpoint_here): New.
18745 (set_reinsert_breakpoint): Use release_breakpoint.
18746 (uninsert_breakpoint): Rename to ...
18747 (uninsert_raw_breakpoint): ... this.
18748 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18749 (reinsert_raw_breakpoint): Change parameter type to
18751 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18753 (check_breakpoints): Adjust. Use release_breakpoint.
18754 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18755 (breakpoint_inserted_here): Ditto.
18756 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18757 Don't trust the breakpoint's shadow if it is not inserted.
18758 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18759 (delete_all_breakpoints): Adjust.
18760 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18761 use delete_breakpoint_1.
18763 * mem-break.h (breakpoints_supported): Delete declaration.
18764 (set_gdb_breakpoint_at): Declare.
18765 (gdb_breakpoint_here): Declare.
18766 (delete_breakpoint_at): Delete.
18767 (delete_gdb_breakpoint_at): Declare.
18769 * server.h (struct raw_breakpoint): Forward declare.
18770 (struct process_info): New field `raw_breakpoints'.
18772 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18775 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18777 * linux-low.c (status_pending_p_callback): Fix comment.
18778 (linux_wait_for_event_1): Move most of the internal breakpoint
18779 handling from here...
18780 (linux_wait_1): ... to here.
18781 (count_events_callback): New.
18782 (select_singlestep_lwp_callback): New.
18783 (select_event_lwp_callback): New.
18784 (cancel_breakpoints_callback): New.
18785 (select_event_lwp): New.
18786 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18787 priority to all LWPs that have had events that should be reported
18788 to the client. Cancel breakpoints when about to reporting the
18789 event to the client, not while stopping lwps. No longer cancel
18790 finished single-steps here.
18791 (cancel_finished_single_step): Delete.
18792 (cancel_finished_single_steps): Delete.
18794 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18796 * mem-break.c (enum bkpt_type): New.
18797 (struct breakpoint): New field `type'.
18798 (set_breakpoint_at): Change return type to struct breakpoint
18799 pointer. Set type to `other_breakpoint' by default.
18800 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18801 in the breakpoint list.
18802 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18803 (reinsert_breakpoint): Rename to ...
18804 (reinsert_raw_breakpoint): ... this.
18805 (reinsert_breakpoints_at): Adjust.
18806 * mem-break.h (struct breakpoint): Declare.
18807 (set_breakpoint_at): Change return type to struct breakpoint
18810 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18812 * server.c (handle_query): Assign, not compare.
18814 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18816 Teach linux gdbserver to step-over-breakpoints.
18818 * linux-low.c (can_hardware_single_step): New.
18819 (supports_breakpoints): New.
18820 (handle_extended_wait): If stopping threads, read the stop pc of
18821 the new cloned LWP.
18823 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18824 low target doesn't support retrieving the PC.
18825 (add_lwp): Set last_resume_kind to resume_continue.
18826 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18827 (linux_attach): Don't clear stop_expected. Set the lwp's
18828 last_resume_kind to resume_stop.
18829 (linux_detach_one_lwp): Don't check for removed breakpoints.
18830 (check_removed_breakpoint): Delete.
18831 (status_pending_p): Rename to ...
18832 (status_pending_p_callback): ... this. Don't check for removed
18833 breakpoints. Don't consider threads that are stopped from GDB's
18835 (linux_wait_for_lwp): Always read the stop_pc here.
18836 (cancel_breakpoint): New.
18837 (step_over_bkpt): New global.
18838 (linux_wait_for_event_1): Implement stepping over breakpoints.
18839 (gdb_wants_lwp_stopped): New.
18840 (gdb_wants_all_stopped): New.
18841 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18842 single-step traps here. Store the thread's last reported target
18844 (send_sigstop): Don't clear stop_expected. Always set it,
18846 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18847 (cancel_finished_single_step): New.
18848 (cancel_finished_single_steps): New.
18849 (wait_for_sigstop): Don't cancel finished single-step traps here.
18850 (linux_resume_one_lwp): Don't check for removed breakpoints.
18851 Don't set `step' on non-hardware step archs.
18852 (linux_set_resume_request): Ignore resume_stop requests if already
18853 stopping or stopped. Set the lwp's last_resume_kind.
18854 (resume_status_pending_p): Don't check for removed breakpoints.
18855 (need_step_over_p): New.
18856 (start_step_over): New.
18857 (finish_step_over): New.
18858 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18859 requests. Clear the thread's last reported target waitstatus.
18860 Don't use the `suspended' flag. Don't consider pending breakpoints.
18861 (linux_resume): Start a step-over if necessary.
18862 (proceed_one_lwp): New.
18863 (proceed_all_lwps): New.
18864 (unstop_all_lwps): New.
18865 * linux-low.h (struct lwp_info): Rewrite comment for the
18866 `suspended' flag. Add the `stop_pc' field. Delete the
18867 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18868 Add `'last_resume_kind' and `need_step_over' fields.
18869 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18870 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18871 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18872 (set_raw_breakpoint_at): New.
18873 (set_breakpoint_at): Rewrite to use it.
18874 (reinsert_breakpoint_handler): Delete.
18875 (set_reinsert_breakpoint): New.
18876 (reinsert_breakpoint_by_bp): Delete.
18877 (delete_reinsert_breakpoints): New.
18878 (uninsert_breakpoint): Rewrite.
18879 (uninsert_breakpoints_at): New.
18880 (reinsert_breakpoint): Rewrite.
18881 (reinsert_breakpoints_at): New.
18882 (check_breakpoints): Rewrite.
18883 (breakpoint_here): New.
18884 (breakpoint_inserted_here): New.
18885 (check_mem_read): Adjust.
18886 * mem-break.h (breakpoints_supported, breakpoint_here)
18887 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18888 (reinsert_breakpoint_by_bp): Delete declaration.
18889 (delete_reinsert_breakpoints): Declare.
18890 (reinsert_breakpoint): Delete declaration.
18891 (reinsert_breakpoints_at): Declare.
18892 (uninsert_breakpoint): Delete declaration.
18893 (uninsert_breakpoints_at): Declare.
18894 (check_breakpoints): Adjust prototype.
18895 * server.h: Adjust include order.
18896 (struct thread_info): Declare here. Add a `last_status' field.
18898 2010-03-23 Michael Snyder <msnyder@vmware.com>
18900 * server.c (crc32): New function.
18901 (handle_query): Add handling for 'qCRC:' request.
18903 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18905 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18906 lwp had been stopped by a watchpoint.
18908 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18910 * server.h (internal_error): Declare.
18911 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18912 * utils.c (internal_error): New function.
18914 2010-03-15 Andreas Schwab <schwab@redhat.com>
18916 * configure.srv: Fix typo setting srv_regobj.
18918 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18920 * linux-low.c (fetch_register): Avoid passing a non string literal
18922 (usr_store_inferior_registers): Ditto.
18924 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18926 * linux-low.c (linux_write_memory): Bail out early if peeking
18929 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18931 * linux-low.h (struct lwp_info): New fields
18932 `stopped_by_watchpoint' and `stopped_data_address'.
18933 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18934 here, and cache them in the lwp object.
18935 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18937 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18939 (linux_stopped_by_watchpoint): Rewrite.
18940 (linux_stopped_data_address): Rewrite.
18942 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18944 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18945 switching the current inferior, not before.
18947 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18949 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18950 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18951 i386-linux.c and amd64-linux.c.
18952 (reg-i386.o): Removed.
18953 (reg-i386.c): Likewise.
18954 (reg-i386-linux.o): Likewise.
18955 (reg-i386-linux.c): Likewise.
18956 (reg-x86-64.o): Likewise.
18957 (reg-x86-64.c): Likewise.
18958 (reg-x86-64-linux.o): Likewise.
18959 (reg-x86-64-linux.c): Likewise.
18961 (i386.c): Likewise.
18962 (i386-linux.o): Likewise.
18963 (i386-linux.c): Likewise.
18964 (amd64.o): Likewise.
18965 (amd64.c): Likewise.
18966 (amd64-linux.o): Likewise.
18967 (amd64-linux.c): Likewise.
18969 * configure.srv (srv_i386_regobj): New.
18970 (srv_i386_linux_regobj): Likewise.
18971 (srv_amd64_regobj): Likewise.
18972 (srv_amd64_linux_regobj): Likewise.
18973 (srv_i386_32bit_xmlfiles): Likewise.
18974 (srv_i386_64bit_xmlfiles): Likewise.
18975 (srv_i386_xmlfiles): Likewise.
18976 (srv_amd64_xmlfiles): Likewise.
18977 (srv_i386_linux_xmlfiles): Likewise.
18978 (srv_amd64_linux_xmlfiles): Likewise.
18979 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18980 srv_xmlfiles to $srv_i386_xmlfiles.
18981 (i[34567]86-*-mingw32ce*): Likewise.
18982 (i[34567]86-*-mingw*): Likewise.
18983 (i[34567]86-*-nto*): Likewise.
18984 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18985 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18986 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18987 (x86_64-*-linux*): Likewise.
18989 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18990 (init_registers_amd64_linux): New.
18991 (x86_arch_setup): Replace init_registers_x86_64_linux with
18992 init_registers_amd64_linux.
18994 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18996 * configure.ac: Check for libdl. If it is not available link against
18997 static libthread_db.
18998 * configure: Regenerate.
19000 2010-02-22 Pedro Alves <pedro@codesourcery.com>
19004 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
19005 handing a read watchpoint.
19006 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
19008 2010-02-12 Doug Evans <dje@google.com>
19010 * linux-low.c (linux_supports_tracefork_flag): Document.
19011 (linux_look_up_symbols): Add comment.
19013 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
19015 * regcache.c (supply_register): Clear regcache if buf is NULL.
19017 2010-02-02 Nicolas Roche <roche@sourceware.org>
19018 Joel Brobecker <brobecker@adacore.com>
19020 * inferiors.c (find_inferior): Add function documentation.
19021 (unloaded_dll): Handle the case where the unloaded dll has not
19022 been previously registered in the dll list.
19024 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19026 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19027 (thumb2_breakpoint): New.
19028 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19030 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19032 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19033 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19036 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19038 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19040 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19042 * linux-s390-low.c (s390_collect_ptrace_register)
19043 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19045 2010-01-21 Doug Evans <dje@google.com>
19047 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19048 (PTRACE_ARG4_TYPE): New macro.
19049 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19050 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19051 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19052 (usr_store_inferior_registers): Ditto.
19053 (linux_read_memory, linux_write_memory): Ditto.
19054 (linux_test_for_tracefork): Ditto.
19056 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19057 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19059 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19061 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19064 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19066 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19067 prototype to take a regcache. Adjust.
19069 2010-01-20 Pedro Alves <pedro@codesourcery.com>
19071 * regcache.h (struct thread_info): Forward declare.
19072 (struct regcache): New.
19073 (new_register_cache): Adjust prototype.
19074 (get_thread_regcache): Declare.
19075 (free_register_cache): Adjust prototype.
19076 (registers_to_string, registers_from_string): Ditto.
19077 (supply_register, supply_register_by_name, collect_register)
19078 (collect_register_as_string, collect_register_by_name): Ditto.
19079 * regcache.c (struct inferior_regcache_data): Delete.
19080 (get_regcache): Rename to ...
19081 (get_thread_regcache): ... this. Adjust. Switch inferior before
19082 fetching registers.
19083 (regcache_invalidate_one): Adjust.
19084 (regcache_invalidate): Fix prototype.
19085 (new_register_cache): Return the new register cache.
19086 (free_register_cache): Change prototype.
19087 (realloc_register_cache): Adjust.
19088 (registers_to_string): Change prototype to take a regcache. Adjust.
19089 (registers_from_string): Ditto.
19090 (register_data): Ditto.
19091 (supply_register): Ditto.
19092 (supply_register_by_name): Ditto.
19093 (collect_register): Ditto.
19094 (collect_register_as_string): Ditto.
19095 (collect_register_by_name): Ditto.
19096 * server.c (process_serial_event): Adjust.
19097 * linux-low.h (regset_fill_func, regset_store_func): Change
19099 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19101 * linux-low.c (get_stop_pc): Adjust.
19102 (check_removed_breakpoint): Adjust.
19103 (linux_wait_for_event): Adjust.
19104 (linux_resume_one_lwp): Adjust.
19105 (fetch_register): Add regcache parameter. Adjust.
19106 (usr_store_inferior_registers): Ditto.
19107 (regsets_fetch_inferior_registers): Ditto.
19108 (regsets_store_inferior_registers): Ditto.
19109 (linux_fetch_registers, linux_store_registers): Ditto.
19110 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19112 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19114 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19115 prototype to take a regcache.
19116 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19117 * remote-utils.c (convert_ascii_to_int, outreg)
19118 (prepare_resume_reply): Change prototype to take a regcache.
19120 * target.h (struct target_ops) <fetch_registers, store_registers>:
19121 Change prototype to take a regcache.
19122 (fetch_inferior_registers, store_inferior_registers): Change
19123 prototype to take a regcache. Adjust.
19124 * proc-service.c (ps_lgetregs): Adjust.
19125 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19126 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19127 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19128 take a regcache. Adjust.
19129 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19130 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19131 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19132 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19133 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19134 (cris_cannot_fetch_register):
19135 (cris_breakpoint_at): Change prototype to take a regcache.
19137 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19138 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19139 to take a regcache. Adjust.
19140 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19142 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19143 take a regcache. Adjust.
19144 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19145 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19146 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19147 * linux-mips-low.c (mips_get_pc):
19148 (mips_set_pc): Change prototype to take a regcache. Adjust.
19149 (mips_reinsert_addr): Adjust.
19150 (mips_collect_register): Change prototype to take a regcache.
19152 (mips_supply_register):
19153 (mips_collect_register_32bit, mips_supply_register_32bit)
19154 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19155 (mips_store_fpregset): Ditto.
19156 * linux-ppc-low.c (ppc_supply_ptrace_register)
19157 (ppc_supply_ptrace_register): Ditto.
19158 (parse_spufs_run): Adjust.
19159 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19160 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19161 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19162 take a regcache. Adjust.
19163 * linux-s390-low.c (s390_collect_ptrace_register)
19164 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19165 (s390_set_pc): Change prototype to take a regcache. Adjust.
19166 (s390_arch_setup): Adjust.
19167 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19168 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19169 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19170 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19171 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19173 (sparc_breakpoint_at): Adjust.
19174 * linux-xtensa-low.c (xtensa_fill_gregset):
19175 (xtensa_store_gregset):
19176 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19177 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19178 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19179 prototype to take a regcache. Adjust.
19180 * win32-arm-low.c (arm_fetch_inferior_register)
19181 (arm_store_inferior_register): Change prototype to take a
19183 * win32-i386-low.c (i386_fetch_inferior_register)
19184 (i386_store_inferior_register): Change prototype to take a
19186 * win32-low.c (child_fetch_inferior_registers)
19187 (child_store_inferior_registers): Change prototype to take a
19189 (win32_wait): Adjust.
19190 (win32_fetch_inferior_registers): Change prototype to take a
19192 (win32_store_inferior_registers): Adjust.
19193 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19194 store_inferior_register>: Change prototype to take a regcache.
19196 2010-01-20 Doug Evans <dje@google.com>
19198 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19200 (linux_wait_for_event1, linux_init_signals): Ditto.
19201 (W_STOPCODE): Provide definition if missing.
19203 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19205 * linux-low.c (linux_core_of_thread): New.
19206 (compare_ints, show_process, list_threads): New.
19207 (linux_qxfer_osdata): Report threads and cores.
19208 (linux_target_op): Register linux_core_of_thread.
19209 * remote-utils.c (prepare_resume_reply): Report the core.
19210 (buffer_xml_printf): Support %d specifier.
19211 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19213 (handle_query): Handle qXfer:threads. Announce availability
19215 * target.h (struct target_ops): New field core_of_thread.
19217 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19219 * Makefile.in (clean): Remove new generated files.
19220 (reg-s390.o, reg-s390.c): Remove rules.
19221 (reg-s390x.o, reg-s390x.c): Likewise.
19222 (s390-linux32.o, s390-linux32.c): Add rules.
19223 (s390-linux64.o, s390-linux64.c): Likewise.
19224 (s390x-linux64.o, s390x-linux64.c): Likewise.
19225 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19226 * linux-s390-low.c: Include <elf.h>.
19227 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19228 (init_registers_s390): Remove prototype.
19229 (init_registers_s390x): Likewise.
19230 (init_registers_s390_linux32): Add prototype.
19231 (init_registers_s390_linux64): Likewise.
19232 (init_registers_s390x_linux64): Likewise.
19233 (s390_num_regs_3264): New define.
19234 (s390_regmap_3264): New global variable.
19235 (s390_cannot_fetch_register): Remove obsolete check.
19236 (s390_cannot_store_register): Likewise.
19237 (s390_collect_ptrace_register): Handle upper/lower register halves.
19238 (s390_supply_ptrace_register): Likewise.
19239 (s390_fill_gregset): Update to register number changes.
19240 (s390_get_hwcap): New routine.
19241 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19242 Install appropriate regmap and register set.
19244 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19246 * server.c (gdbserver_version): Update copyright year to 2010.
19247 * gdbreplay.c (gdbreplay_version): Likewise.
19249 2009-12-28 Doug Evans <dje@google.com>
19251 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19252 elf/external.h. Include <elf.h> instead but only if necessary.
19254 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19256 * linux-low.c (linux_remove_process): Remove `detaching'
19257 parameter. Don't release/detach from thread_db here.
19258 (linux_kill): Release/detach from thread_db here, ...
19259 (linux_detach): ... and here, before actually detaching.
19260 (linux_wait_1): ... and here, when a process exits.
19261 * thread-db.c (any_thread_of): New.
19262 (thread_db_free): Switch the current inferior to a thread of the
19265 2009-12-21 Doug Evans <dje@google.com>
19267 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19269 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19270 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19271 warning ifndef __NR_tkill. Move setting of errno there too.
19272 Delete unnecessary resetting of errno after syscall.
19273 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19275 * configure.ac: Check for dladdr.
19276 * config.in: Regenerate.
19277 * configure: Regenerate.
19278 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19279 (try_thread_db_load): Update.
19281 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19283 2009-12-18 Doug Evans <dje@google.com>
19285 * event-loop.c: Include unistd.h if it exists.
19287 * linux-low.c (my_waitpid): Move definition away from being in
19288 between linux_tracefork_child/linux_test_for_tracefork.
19290 * gdb_proc_service.h (psaddr_t): Fix type.
19291 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19292 signature to match glibc.
19294 2009-12-16 Doug Evans <dje@google.com>
19296 * linux-low.c (linux_read_memory): Fix argument to read.
19298 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19300 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19301 events, don't leave current_inferior pointing at null.
19303 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19305 * win32-low.c (LOG): Delete.
19306 (OUTMSG): Output to stderr.
19307 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19308 on compile time LOG macro.
19309 (win32_wait): Fix debug output.
19311 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19313 * win32-low.c (win32_add_one_solib): If the dll name is
19314 "ntdll.dll", prepend the system directory to the dll path.
19316 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19318 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19320 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19321 Vladimir Prus <vladimir@codesourcery.com>
19323 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19324 * configure.ac: Check for __mcoldfire__ and set
19325 gdb_cv_m68k_is_coldfire.
19326 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19327 reg-cf.o and reg-m68k.o.
19328 * configure: Regenerated.
19330 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19332 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19333 Pass it to thread_db_free.
19334 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19335 proper `detaching' argument to linux_remove_process.
19336 * linux-low.h (thread_db_free): Add `detaching' parameter.
19337 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19339 (thread_db_free): Add `detaching' parameter. Only
19340 call td_ta_clear_event if detaching from process.
19342 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19344 * thread-db.c (thread_db_free): Fix typo.
19346 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19349 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19351 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19353 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19354 with an i686 compiler.
19355 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19357 * configure: Rebuilt.
19359 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19363 * server.c (handle_search_memory_1): Correct read_addr initialization
19364 in loop for searching subsequent chunks.
19366 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19368 * configure.ac: New --with-libthread-db option.
19369 * thread-db.c: Allow direct dependence on libthread_db.
19370 (thread_db_free): Adjust.
19371 * config.in: Regenerate.
19372 * configure: Likewise.
19374 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19377 * thread-db.c (attach_thread): New function.
19378 (maybe_attach_thread): Return success/failure.
19379 (find_new_threads_callback): Adjust.
19380 (thread_db_find_new_threads): Loop until no new threads.
19382 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19384 * proc-service.c (ps_lgetregs): Formatting.
19386 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19388 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19389 * configure.ac: Adjust.
19390 * linux-low.h (struct process_info_private): Move members to struct
19392 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19393 * linux-low.c (linux_remove_process): Adjust.
19394 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19395 * server.c (handle_query): Move code ...
19396 (handle_monitor_command): ... here. New function.
19397 * target.h (struct target_ops): New member.
19398 * thread-db.c (struct thread_db): New.
19399 (libthread_db_search_path): New variable.
19400 (thread_db_create_event, thread_db_enable_reporting)
19401 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19402 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19403 (try_thread_db_load_1, dladdr_to_soname): New functions.
19404 (try_thread_db_load, thread_db_load_search): New functions.
19405 (thread_db_init): Search for libthread_db.
19406 (thread_db_free): New function.
19407 (thread_db_handle_monitor_command): Likewise.
19408 * config.in: Regenerate.
19409 * configure: Regenerate.
19411 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19413 * spu-low.c (spu_kill): Wait for inferior to terminate.
19414 Call clear_inferiors.
19415 (spu_detach): Call clear_inferiors.
19417 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19419 * aclocal.m4: Regenerate.
19420 * config.in: Likewise.
19421 * configure: Likewise.
19423 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19425 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19426 (parse_spufs_run): New function.
19427 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19428 (ppc_breakpoint_at): Handle SPU breakpoints.
19430 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19432 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19433 (SPUFS_MAGIC): Define.
19434 (spu_enumerate_spu_ids): New function.
19435 (linux_qxfer_spu): New function.
19436 (linux_target_ops): Install linux_qxfer_spu.
19438 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19440 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19441 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19442 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19443 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19444 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19445 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19446 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19447 (init_registers_powerpc_cell32l): Add prototype.
19448 (init_registers_powerpc_cell64l): Likewise.
19449 (ppc_arch_setup): Detect Cell/B.E. architecture.
19451 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19453 * Makefile.in (datarootdir): New variable.
19455 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19457 * linux-low.c (linux_write_memory): Update debugging output.
19458 * Makefile.in (clean): Add new descriptions.
19459 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19460 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19461 * configure.srv: Add new files for arm*-*-linux*.
19462 * linux-arm-low.c: Add new declarations.
19463 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19464 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19465 (HWCAP_VFPv3D16): New.
19466 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19467 instead of __IWMMXT__.
19468 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19469 (arm_arch_setup): New.
19470 (target_regsets): Remove #ifdef. Add VFP regset.
19471 (the_low_target): Use arm_arch_setup.
19473 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19475 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19476 the main thread again.
19478 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19480 Adding Neutrino gdbserver.
19481 * configure: Regenerated.
19482 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19483 * configure.srv (i[34567]86-*-nto*): New target.
19484 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19485 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19486 (nto_comctrl) [__QNX__]: New function.
19487 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19489 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19491 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19494 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19495 Pedro Alves <pedro@codesourcery.com>
19497 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19498 don't support CONTEXT_EXTENDED_REGISTERS.
19499 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19500 (the_low_target): Install them.
19501 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19502 failing with ERROR_PIPE_NOT_CONNECTED.
19504 2009-06-30 Doug Evans <dje@google.com>
19505 Pierre Muller <muller@ics.u-strasbg.fr>
19507 Add h/w watchpoint support to x86-linux, win32-i386.
19508 * Makefile.in (SFILES): Add i386-low.c
19509 (i386_low_h): Define.
19510 (i386-low.o): Add dependencies.
19511 (linux-x86-low.o): Add i386-low.h dependency.
19512 (win32-i386-low.o): Ditto.
19513 * i386-low.c: New file.
19514 * i386-low.h: New file.
19515 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19516 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19517 * linux-low.c (linux_add_process): Initialize arch_private.
19518 (linux_remove_process): Free arch_private.
19519 (add_lwp): Initialize arch_private.
19520 (delete_lwp): Free arch_private.
19521 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19523 * linux-low.h (process_info_private): New member arch_private.
19524 (lwp_info): New member arch_private.
19525 (linux_target_ops): New members new_process, new_thread,
19527 (ptid_of): New macro.
19528 * linux-x86-low.c: Include stddef.h, i386-low.h.
19529 (arch_process_info): New struct.
19530 (arch_lwp_info): New struct.
19531 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19532 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19533 (i386_dr_low_get_status): New function.
19534 (x86_insert_point, x86_remove_point): New functions.
19535 (x86_stopped_by_watchpoint): New function.
19536 (x86_stopped_data_address): New function.
19537 (x86_linux_new_process, x86_linux_new_thread): New functions.
19538 (x86_linux_prepare_to_resume): New function.
19539 (the_low_target): Add entries for insert_point, remove_point,
19540 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19542 * server.c (debug_hw_points): New global.
19543 (monitor_show_help): Document set debug-hw-points.
19544 (handle_query): Process "set debug-hw-points".
19545 * server.h (debug_hw_points): Declare.
19546 (paddress): Declare.
19547 * utils.c (NUMCELLS, CELLSIZE): New macros.
19548 (get_sell, xsnprintf, paddress): New functions.
19549 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19550 remove_point, stopped_by_watchpoint, stopped_data_address.
19551 * win32-i386-low.c: Include i386-low.h.
19552 (debug_reg_state): Replaces dr.
19553 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19554 (i386_dr_low_get_status): New function.
19555 (i386_insert_point, i386_remove_point): New functions.
19556 (i386_stopped_by_watchpoint): New function.
19557 (i386_stopped_data_address): New function.
19558 (i386_initial_stuff): Update.
19559 (get_thread_context,set_thread_context,i386_thread_added): Update.
19560 (the_low_target): Add entries for insert_point,
19561 remove_point, stopped_by_watchpoint, stopped_data_address.
19562 * win32-low.c (win32_insert_watchpoint): New function.
19563 (win32_remove_watchpoint): New function.
19564 (win32_stopped_by_watchpoint): New function.
19565 (win32_stopped_data_address): New function.
19566 (win32_target_ops): Add entries for insert_watchpoint,
19567 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19568 * win32-low.h (win32_target_ops): New members insert_point,
19569 remove_point, stopped_by_watchpoint, stopped_data_address.
19571 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19573 * server.c (process_serial_event): Re-return unsupported, not
19574 error, if the type isn't recognized. Re-allow supporting only
19575 insert or remove packets. Also call require_running for
19576 breakpoints. Add missing break statement to default case. Tidy.
19577 * target.h (struct target_ops): Rename insert_watchpoint to
19578 insert_point, and remove_watchpoint to remove_point.
19580 * linux-low.h (struct linux_target_ops): Likewise.
19581 * linux-low.c (linux_insert_watchpoint): Rename to ...
19582 (linux_insert_point): ... this. Adjust.
19583 (linux_remove_watchpoint): Rename to ...
19584 (linux_remove_point): ... this. Adjust.
19585 (linux_target_ops): Adjust.
19586 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19587 (cris_insert_point): ... this.
19588 (cris_remove_watchpoint): Rename to ...
19589 (cris_remove_point): ... this.
19590 (the_low_target): Adjust.
19592 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19594 * server.c (handle_v_kill): Pass signal_pid to
19595 kill_inferior if multi_process is zero.
19597 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19599 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19600 * target.h (target_ops): Comment for *_watchpoint to make it clear
19601 the functions can get types '0' and '1'.
19603 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19605 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19606 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19607 * regcache.c (get_regcache): Likewise.
19608 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19609 * win32-low.c (child_fetch_inferior_registers): Remove check for
19612 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19613 Pedro Alves <pedro@codesourcery.com>
19615 * target.h (struct target_ops) <supports_multi_process>: New
19617 (target_supports_multi_process): New.
19618 * server.c (handle_query): Even if GDB reports support, only
19619 enable multi-process if the target also supports it. Report
19620 multi-process support only if the target backend supports it.
19621 * linux-low.c (linux_supports_multi_process): New function.
19622 (linux_target_ops): Install it as target_supports_multi_process
19625 2009-05-24 Doug Evans <dje@google.com>
19627 Global renaming of find_thread_pid to find_thread_ptid.
19628 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19629 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19630 All callers updated.
19632 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19633 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19636 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19637 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19638 (linux_resume_one_lwp): Ditto.
19640 2009-05-23 Doug Evans <dje@google.com>
19642 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19643 from struct inferior_list_entry * to struct lwp_info *.
19644 All callers updated.
19646 2009-05-13 Doug Evans <dje@google.com>
19648 * linux-x86-low.c: Don't include assert.h.
19649 (x86_siginfo_fixup): Use fatal, not assert.
19650 (x86_arch_setup): Fix comment.
19652 2009-05-12 Doug Evans <dje@google.com>
19654 Biarch support for i386/amd64 gdbserver.
19655 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19656 Add linux-x86-low.c.
19657 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19658 (linux-x86-low.o): Add.
19659 * linux-x86-64-low.c: Delete.
19660 * linux-i386-low.c: Delete.
19661 * linux-x86-low.c: New file.
19662 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19664 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19666 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19667 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19668 (linux_child_pid_to_exec_file): New function.
19669 (elf_64_header_p, elf_64_file_p): New functions.
19670 (siginfo_fixup): New function.
19671 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19672 give target a chance to convert layout.
19673 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19674 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19676 2009-05-07 Doug Evans <dje@google.com>
19678 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19679 (regsets_store_inferior_registers): Ditto.
19681 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19685 * linux-low.c (must_set_ptrace_flags): Delete.
19686 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19688 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19689 `lwp->must_set_ptrace_flags' instead.
19690 (linux_wait_for_event_1): Set ptrace options here.
19691 (linux_wait_1): ... not here.
19693 2009-04-30 Doug Evans <dje@google.com>
19695 * inferiors.c (started_inferior_callback): New function.
19696 (attached_inferior_callback): New function.
19697 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19698 * server.c (print_started_pid, print_attached_pid): New functions.
19699 (detach_or_kill_for_exit): New function.
19700 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19701 * server.h (have_started_inferiors_p): Declare.
19702 (have_attached_inferiors_p): Declare.
19704 * inferiors.c (remove_process): Fix memory leak, free process.
19705 * linux-low.c (linux_remove_process): New function.
19706 (linux_kill): Call it instead of remove_process.
19707 (linux_detach, linux_wait_1): Ditto.
19709 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19711 * configure.srv: Add x86 Windows CE target.
19713 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19715 * inferiors.c (get_thread_process): Make global.
19716 * server.h (get_thread_process): Add prototype.
19717 * thread-db.c (find_one_thread): Use get_thread_process
19718 instead of current_process.
19719 (thread_db_get_tls_address): Do not crash if called when
19720 thread layer is not yet initialized.
19722 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19724 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19725 * spu-low.c (current_tid): Rename to ...
19726 (current_ptid): ... this.
19727 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19728 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19729 ptid_get_lwp (current_ptid) instead of current_tid.
19730 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19731 instead of current_tid. Use find_process_pid to verify pid
19732 argument is valid. Pass proper argument to remove_process.
19733 (spu_thread_alive): Compare current_ptid instead of current_tid.
19734 (spu_resume): Likewise.
19736 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19738 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19741 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19743 Implement the multiprocess extensions, and add linux multiprocess
19746 * server.h (ULONGEST): Declare.
19747 (struct ptid, ptid_t): New.
19748 (minus_one_ptid, null_ptid): Declare.
19749 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19750 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19751 (struct inferior_list_entry): Change `id' type from unsigned from
19753 (struct sym_cache, struct breakpoint, struct
19754 process_info_private): Forward declare.
19755 (struct process_info): Declare.
19756 (current_process): Declare.
19757 (all_processes): Declare.
19758 (initialize_inferiors): Declare.
19759 (add_thread): Adjust to use ptid_t.
19760 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19761 (add_process, remove_process, find_thread_pid): Declare.
19762 (find_inferior_id): Adjust to use ptid_t.
19763 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19764 (multi_process): Declare.
19765 (push_event): Adjust to use ptid_t.
19766 (read_ptid, write_ptid): Declare.
19767 (prepare_resume_reply): Adjust to use ptid_t.
19768 (clear_symbol_cache): Declare.
19769 * inferiors.c (all_processes): New.
19770 (null_ptid, minus_one_ptid): New.
19771 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19772 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19773 (add_thread): Change unsigned long to ptid. Remove gdb_id
19775 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19776 (gdb_id_to_thread): Rename to ...
19777 (find_thread_pid): ... this. Change unsigned long to ptid.
19778 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19779 (loaded_dll, pull_pid_from_list): Adjust.
19780 (add_process, remove_process, find_process_pid)
19781 (get_thread_process, current_process, initialize_inferiors): New.
19782 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19783 (struct target_waitstatus) <related_pid>: Ditto.
19784 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19785 return type to int.
19786 (struct target_ops) <join>: Add `pid' argument.
19787 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19788 (struct target_ops) <wait>: Add `ptid' field. Change return type
19790 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19791 (mywait): Add `ptid' argument. Change return type to ptid_t.
19792 (target_pid_to_str): Declare.
19793 * target.c (set_desired_inferior): Adjust to use ptids.
19794 (mywait): Add new `ptid' argument. Adjust.
19795 (target_pid_to_str): New.
19796 * mem-break.h (free_all_breakpoints): Declare.
19797 * mem-break.c (breakpoints): Delelete.
19798 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19799 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19800 to use per-process breakpoint list.
19801 (free_all_breakpoints): New.
19802 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19803 (symbol_cache, all_symbols_looked_up): Delete.
19805 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19807 (prepare_resume_reply): Change ptid argument's type from unsigned
19808 long to ptid_t. Adjust. Implement W;process and X;process.
19809 (free_sym_cache, clear_symbol_cache): New.
19810 (look_up_one_symbol): Adjust to per-process symbol cache. *
19811 * server.c (cont_thread, general_thread, step_thread): Change type
19813 (attached): Delete.
19814 (multi_process): New.
19815 (last_ptid): Change type to ptid_t.
19816 (struct vstop_notif) <ptid>: Change type to ptid_t.
19817 (queue_stop_reply, push_event): Change `ptid' argument's type to
19819 (discard_queued_stop_replies): Add `pid' argument.
19820 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19821 changes. Don't reference the `attached' global.
19822 (attach_inferior): Adjust to mywait interface changes.
19823 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19824 features. Handle and report "multiprocess+". Handle
19826 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19828 (handle_v_kill): New.
19829 (handle_v_stopped): Adjust to use target_pid_to_str.
19830 (handle_v_requests): Allow multiple attaches and runs when
19831 multiprocess extensions are in effect. Handle "vKill".
19832 (myresume): Adjust to use ptids.
19833 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19834 (handle_status): Adjust to discard_queued_stop_replies interface
19836 (first_thread_of, kill_inferior_callback)
19837 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19838 (main): Call initialize_inferiors. Adjust to use ptids, killing
19839 and detaching from all inferiors. Handle multiprocess packet
19841 * linux-low.h: Include gdb_proc_service.h.
19842 (struct process_info_private): New.
19843 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19844 <lwpid_of>: Use ptid_get_lwp.
19845 (get_lwp_thread): Adjust.
19846 (struct lwp_info): Add `dead' member.
19847 (find_lwp_pid): Declare.
19848 * linux-low.c (thread_db_active): Delete.
19849 (new_inferior): Adjust comment.
19850 (inferior_pid): Delete.
19851 (linux_add_process): New.
19852 (handle_extended_wait): Adjust.
19853 (add_lwp): Change unsigned long to ptid.
19854 (linux_create_inferior): Add process to processes table. Adjust
19855 to use ptids. Don't set new_inferior here.
19856 (linux_attach_lwp): Rename to ...
19857 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19858 it. Adjust to use ptids.
19859 (linux_attach_lwp): New.
19860 (linux_attach): Add process to processes table. Don't set
19862 (struct counter): New.
19863 (second_thread_of_pid_p, last_thread_of_process_p): New.
19864 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19865 multiple processes.
19866 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19867 processes. Remove process from process table.
19868 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19869 to multiple processes.
19870 (any_thread_of): New.
19871 (linux_detach): Add `pid' argument, and handle it. Remove process
19872 from processes table.
19873 (linux_join): Add `pid' argument. Handle it.
19874 (linux_thread_alive): Change unsighed long argument to ptid_t.
19875 Consider dead lwps as not being alive.
19876 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19877 threads we're not interested in.
19878 (same_lwp, find_lwp_pid): New.
19879 (linux_wait_for_lwp): Change `pid' argument's type from int to
19881 (linux_wait_for_event): Rename to ...
19882 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19883 from int to ptid_t. Adjust.
19884 (linux_wait_for_event): New.
19885 (linux_wait_1): Add `ptid' argument. Change return type to
19886 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19887 that exit from the process table.
19888 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19890 (mark_lwp_dead): New.
19891 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19892 stopping all threads, mark its main lwp as dead.
19893 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19895 (fetch_register, usr_store_inferior_registers)
19896 (regsets_fetch_inferior_registers)
19897 (regsets_store_inferior_registers, linux_read_memory)
19898 (linux_write_memory): Inline `inferior_pid'.
19899 (linux_look_up_symbols): Adjust to use per-process
19900 `thread_db_active'.
19901 (linux_request_interrupt): Adjust to use ptids.
19902 (linux_read_auxv): Inline `inferior_pid'.
19903 (initialize_low): Don't reference thread_db_active.
19904 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19905 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19906 (ps_getpid): Return the pid of the current inferior.
19907 * thread-db.c (proc_handle, thread_agent): Delete.
19908 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19910 (find_one_thread): Change argument type to ptid_t. Adjust to
19912 (maybe_attach_thread): Adjust to per-process data and ptids.
19913 (thread_db_find_new_threads): Ditto.
19914 (thread_db_init): Ditto.
19915 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19916 processes table. Adjust to use ptids.
19917 (spu_kill, spu_detach): Adjust interface. Remove process from
19919 (spu_join, spu_thread_alive): Adjust interface.
19920 (spu_wait): Adjust interface. Remove process from processes
19921 table. Adjust to use ptids.
19922 * win32-low.c (current_inferior_tid): Delete.
19923 (current_inferior_ptid): New.
19924 (debug_event_ptid): New.
19925 (thread_rec): Take a ptid. Adjust.
19926 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19927 (child_delete_thread): Ditto.
19928 (do_initial_child_stuff): Add `attached' argument. Add process to
19930 (child_fetch_inferior_registers, child_store_inferior_registers):
19932 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19933 (win32_attach): Pass 1 to do_initial_child_stuff.
19934 (win32_kill): Adjust interface. Remove process from processes
19936 (win32_detach): Ditto.
19937 (win32_join): Adjust interface.
19938 (win32_thread_alive): Take a ptid.
19939 (win32_resume): Adjust to use ptids.
19940 (get_child_debug_event): Ditto.
19941 (win32_wait): Adjust interface. Remove exiting process from
19944 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19946 Non-stop mode support.
19948 * server.h (non_stop): Declare.
19949 (gdb_client_data, handler_func): Declare.
19950 (delete_file_handler, add_file_handler, start_event_loop):
19952 (handle_serial_event, handle_target_event, push_event)
19953 (putpkt_notif): Declare.
19954 * target.h (enum resume_kind): New.
19955 (struct thread_resume): Replace `step' field by `kind' field.
19956 (TARGET_WNOHANG): Define.
19957 (struct target_ops) <wait>: Add `options' argument.
19958 <supports_non_stop, async, start_non_stop>: New fields.
19959 (target_supports_non_stop, target_async): New.
19960 (start_non_stop): Declare.
19961 (mywait): Add `options' argument.
19962 * target.c (mywait): Add `options' argument. Print child exit
19963 notifications here.
19964 (start_non_stop): New.
19965 * server.c (non_stop, own_buf, mem_buf): New globals.
19966 (struct vstop_notif): New.
19967 (notif_queue): New global.
19968 (queue_stop_reply, push_event, discard_queued_stop_replies)
19969 (send_next_stop_reply): New.
19970 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19972 (attach_inferior): In non-stop mode, don't wait for the target
19974 (handle_general_set): Handle QNonStop.
19975 (handle_query): When handling qC, return the current general
19976 thread, instead of the first thread of the list.
19977 (handle_query): If the backend supports non-stop mode, include
19978 QNonStop+ in the qSupported query response.
19979 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19981 (handle_v_attach, handle_v_run): Handle non-stop mode.
19982 (handle_v_stopped): New.
19983 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19984 (myresume): Adjust to use resume_kind. Handle non-stop.
19985 (queue_stop_reply_callback): New.
19986 (handle_status): Handle non-stop mode.
19987 (main): Clear non_stop flag on reconnection. Use the event-loop.
19988 Refactor serial protocol handling from here ...
19989 (process_serial_event): ... to this new function. When GDB
19990 selects any thread, select one here. In non-stop mode, wait until
19991 GDB acks all pending events before exiting.
19992 (handle_serial_event, handle_target_event): New.
19993 * remote-utils.c (remote_open): Install remote_desc in the event
19995 (remote_close): Remove remote_desc from the event loop.
19996 (putpkt_binary): Rename to...
19997 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19998 (putpkt_binary): New as wrapper around putpkt_binary_1.
19999 (putpkt_notif): New.
20000 (prepare_resume_reply): In non-stop mode, don't change the
20002 * event-loop.c: New.
20003 * Makefile.in (OBJ): Add event-loop.o.
20004 (event-loop.o): New rule.
20006 * linux-low.h (pid_of): Moved here.
20008 (get_lwp_thread): Use lwpid_of.
20009 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
20010 * linux-low.c (pid_of): Delete.
20011 (inferior_pid): Use lwpid_of.
20012 (linux_event_pipe): New.
20013 (target_is_async_p): New.
20015 (handle_extended_wait): Use lwpid_of.
20016 (add_lwp): Don't set lwpid field.
20017 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
20018 (linux_kill_one_lwp): If killing a running lwp, stop it first.
20019 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
20020 (linux_detach_one_lwp): If detaching from a running lwp, stop it
20021 first. Adjust to linux_wait_for_event interface changes. Use
20023 (linux_detach): Don't delete the main lwp here.
20024 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20025 (status_pending_p): Don't consider explicitly suspended lwps.
20026 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20027 pointer. Add OPTIONS argument. Change return type to int. Use
20028 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20029 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20030 pointer. Add status pointer argument. Return a pid instead of a
20031 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20032 changes. In non-stop mode, don't switch to a random thread.
20033 (linux_wait): Rename to...
20034 (linux_wait_1): ... this. Add target_options argument, and handle
20035 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20036 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20037 clean exit and signal exit code. Don't stop all threads in
20038 non-stop mode. In all-stop mode, only stop all threads when
20039 reporting a stop to GDB. Handle explicit thread stop requests.
20040 (async_file_flush, async_file_mark): New.
20042 (send_sigstop): Use lwpid_of.
20043 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20044 interface changes. In non-stop mode, don't switch to a random
20046 (linux_resume_one_lwp): Use lwpid_of.
20047 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20048 (linux_resume_one_thread): ... this. Handle resume_stop. In
20049 non-stop mode, don't look for pending flag in all threads.
20050 (resume_status_pending_p): Don't consider explicitly suspended
20052 (my_waitpid): Reimplement. Emulate __WALL.
20053 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20055 (sigchld_handler, linux_supports_non_stop, linux_async)
20056 (linux_start_non_stop): New.
20057 (linux_target_ops): Register linux_supports_non_stop, linux_async
20058 and linux_start_non_stop.
20059 (initialize_low): Install SIGCHLD handler.
20060 * thread-db.c (thread_db_create_event, find_one_thread)
20061 (thread_db_get_tls_address): Use lwpid_of.
20062 * win32-low.c (win32_detach): Adjust to use resume_kind.
20063 (win32_wait): Add `options' argument.
20064 * spu-low.c (spu_resume): Adjust to use resume_kind.
20065 (spu_wait): Add `options' argument.
20067 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20069 Decouple target code from remote protocol.
20071 * target.h (enum target_waitkind): New.
20072 (struct target_waitstatus): New.
20073 (struct target_ops) <wait>: Return an unsigned long. Take a
20074 target_waitstatus pointer instead of a char pointer.
20075 (mywait): Likewise.
20076 * target.c (mywait): Change prototype to return an unsigned long.
20077 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20078 * server.h (thread_from_wait, old_thread_from_wait): Delete
20080 (prepare_resume_reply): Change prototype to take a
20082 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20083 (last_status, last_ptid): New.
20084 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20085 pid instead of a signal.
20086 (attach_inferior): Remove "status" and "signal" parameters.
20088 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20090 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20091 (handle_v_requests, myresume): Remove "status" and "signal"
20092 parameters. Adjust.
20093 (handle_status): New.
20094 (main): Delete local `status'. Adjust.
20095 * remote-utils.c: Include target.h.
20096 (prepare_resume_reply): Change prototype to take a
20097 target_waitstatus. Adjust.
20099 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20101 * spu-low.c (spu_wait): Adjust.
20102 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20104 (win32_wait): Adjust.
20106 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20108 * target.h (struct thread_resume): Delete leave_stopped member.
20109 (struct target_ops): Add a `n' argument to the `resume' callback.
20110 * server.c (start_inferior): Adjust.
20111 (handle_v_cont, myresume): Adjust.
20112 * linux-low.c (check_removed_breakpoint): Adjust to resume
20113 interface change, and to removed leave_stopped field.
20114 (resume_ptr): Delete.
20115 (struct thread_resume_array): New.
20116 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20117 resume interface change.
20118 (linux_continue_one_thread, linux_queue_one_thread)
20119 (resume_status_pending_p): Check if the resume field is NULL
20120 instead of checking the leave_stopped member.
20121 (linux_resume): Adjust to the target resume interface change.
20122 * spu-low.c (spu_resume): Adjust to the target resume interface
20124 * win32-low.c (win32_detach, win32_resume): Ditto.
20126 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20128 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20130 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20132 (linux_continue_one_thread): Only preserve the stepping flag if
20133 there's a pending breakpoint.
20135 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20137 * server.c (main): After the inferior having exited, call
20138 remote_close before exiting gdbserver.
20140 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20142 Fix size of FPSCR in Power 7 processors.
20143 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20144 (PPC_FEATURE_HAS_DFP): New #define.
20145 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20148 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20150 * server.c (handle_query) Whitespace and formatting.
20152 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20154 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20155 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20156 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20157 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20158 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20159 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20160 Makefile.in, configure.ac: Fix whitespace throughout.
20161 * configure: Regenerate.
20163 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20165 * inferiors.c (find_inferior): Make it safe for the callback
20166 function to delete the currently iterated inferior.
20168 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20170 * Makefile.in (linuw_low_h): Move higher.
20171 (thread-db.o): Depend on $(linux_low_h).
20173 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20175 Rename "process" to "lwp" throughout.
20177 * linux-low.c (all_processes): Rename to...
20178 (all_lwps): ... this.
20179 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20180 (add_process): Rename to ...
20181 (add_lwp): ... this. Adjust.
20182 (linux_create_inferior): Adjust.
20183 (linux_attach_lwp): Adjust.
20184 (linux_attach): Adjust.
20185 (linux_kill_one_process): Rename to ...
20186 (linux_kill_one_lwp): ... this. Adjust.
20187 (linux_kill): Adjust.
20188 (linux_detach_one_process): Rename to ...
20189 (linux_detach_one_lwp): ... this. Adjust.
20190 (linux_detach): Adjust.
20191 (check_removed_breakpoint): Adjust.
20192 (status_pending_p): Adjust.
20193 (linux_wait_for_process): Rename to ...
20194 (linux_wait_for_lwp): ... this. Adjust.
20195 (linux_wait_for_event): Adjust.
20196 (send_sigstop): Adjust.
20197 (wait_for_sigstop): Adjust.
20198 (stop_all_processes): Rename to ...
20199 (stop_all_lwps): ... this.
20200 (linux_resume_one_process): Rename to ...
20201 (linux_resume_one_lwp): ... this. Adjust.
20202 (linux_set_resume_request, linux_continue_one_thread)
20203 (linux_queue_one_thread, resume_status_pending_p)
20204 (usr_store_inferior_registers, regsets_store_inferior_registers)
20205 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20207 * linux-low.h (get_process): Rename to ...
20208 (get_lwp): ... this. Adjust.
20209 (get_thread_process): Rename to ...
20210 (get_thread_lwp): ... this. Adjust.
20211 (get_process_thread): Rename to ...
20212 (get_lwp_thread): ... this. Adjust.
20213 (struct process_info): Rename to ...
20214 (struct lwp_info): ... this.
20215 (all_processes): Rename to ...
20216 (all_lwps): ... this.
20217 * proc-service.c (ps_lgetregs): Adjust.
20218 * thread-db.c (thread_db_create_event, find_one_thread)
20219 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20221 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20223 * server.c (handle_query): Handle "qAttached".
20225 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20227 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20228 GPLv3, update license URL.
20230 2009-03-01 Doug Evans <dje@google.com>
20232 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20233 (server_h): Add gdb_signals.h.
20234 (signals.o): Update.
20235 * server.h (target_signal_from_host,target_signal_to_host_p)
20236 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20238 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20240 * remote-utils.c (getpkt): Also generate remote-debug
20241 information if noack_mode is set.
20243 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20245 * server.c (handle_query): Report qXfer:siginfo:read and
20246 qXfer:siginfo:write as supported and handle them.
20247 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20248 * linux-low.c (linux_xfer_siginfo): New.
20249 (linux_target_ops): Set it.
20251 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20253 * server.c (gdbserver_usage): Mention --remote-debug.
20254 (main): Accept '--remote-debug' switch.
20256 2009-01-18 Doug Evans <dje@google.com>
20258 * regcache.c (new_register_cache): No need to check result of xcalloc.
20259 * server.c (handle_search_memory): Back out calls to xmalloc,
20260 result is checked and error is returned to user upon failure.
20261 (handle_query): Ditto. Add more checks for result of malloc.
20262 (handle_v_cont): Check result of malloc, report error back to
20264 (handle_v_run): Ditto. Call freeargv.
20265 * server.h (freeargv): Declare.
20266 * utils.c (freeargv): New fn.
20268 2009-01-15 Doug Evans <dje@google.com>
20270 * gdbreplay.c (perror_with_name): Make arg const char *.
20271 * server.h (target_signal_to_name): Make return type const char *.
20272 * thread-db.c (thread_db_err_str): Make return type const char *.
20273 * utils.c (perror_with_name): Make arg const char *.
20275 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20277 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20278 when handling a EXIT_PROCESS_DEBUG_EVENT.
20280 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20282 * gdbreplay.c (gdbreplay_version): Update copyright year.
20283 * server.c (gdbserver_version): Likewise.
20285 2009-01-05 Doug Evans <dje@google.com>
20287 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20288 (handle_extended_wait): Improve comment.
20290 2008-12-13 Doug Evans <dje@google.com>
20292 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20293 * server.h (ATTR_MALLOC): New macro.
20294 (xmalloc,xcalloc,xstrdup): Declare.
20295 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20296 * inferiors.c: Ditto.
20297 * linux-low.c: Ditto.
20298 * mem-break.c: Ditto.
20299 * regcache.c: Ditto.
20300 * remote-utils.c: Ditto.
20303 * win32-low.c: Ditto.
20305 2008-12-12 Doug Evans <dje@google.com>
20307 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20308 in debugging printf.
20310 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20312 2008-12-09 Doug Evans <dje@google.com>
20314 * linux-low.h (struct process_info): Delete member tid, unused.
20315 * thread-db.c (find_one_thread): Update.
20316 (maybe_attach_thread): Update.
20318 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20320 * target.h (struct target_ops): Add qxfer_osdata member.
20321 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20323 (linux_qxfer_osdata): New functions.
20324 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20326 * server.c (handle_query): Handle "qXfer:osdata:read:".
20327 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20328 (buffer_xml_printf): New functions.
20329 * server.h (struct buffer): New.
20330 (buffer_grow_str, buffer_grow_str0): New macros.
20331 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20332 (buffer_xml_printf): Declare.
20334 2008-11-24 Doug Evans <dje@google.com>
20336 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20338 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20340 * server.c (handle_v_run): Always use the supplied argument list.
20342 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20344 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20345 (xtensa_regmap_table): Add entry for scompare1.
20347 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20349 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20350 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20351 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20352 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20353 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20354 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20355 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20356 XML target descriptions.
20357 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20358 when inferior is running on an ISA 2.05 or later processor. Add
20359 special case to return offset for full 64-bit slot of FPSCR when
20362 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20364 * Makefile.in (SFILES, clean): Added sparc64 files.
20365 (reg-sparc64.o, reg-sparc64.c): New.
20366 * configure.srv (sparc*-*-linux*): New configuration.
20367 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20368 syscall arguments for SPARC.
20369 (regsets_store_inferior_registers): Likewise.
20370 * linux-sparc-low.c: New file.
20372 2008-10-21 Doug Evans <dje@google.com>
20374 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20375 (READLINE_DIR,READLINE_DEP): Delete.
20376 (INTERNAL_CFLAGS): Update.
20377 (LINTFLAGS): Update.
20379 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20381 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20382 whole argv from the last run, not just argv[0].
20384 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20386 * regcache.c (new_register_cache): Return NULL if the register
20387 cache size isn't known yet.
20388 (free_register_cache): Avoid dereferencing a NULL regcache.
20390 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20392 * configure.srv: Merge MIPS and MIPS64.
20394 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20396 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20398 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20400 * Makefile.in: Add required vsx dependencies.
20402 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20403 Declare init_registers_powerpc_vsx32l.
20404 Declare init_registers_powerpc_vsx64l.
20405 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20406 (ppc_arch_setup): Check for VSX in hwcap.
20407 (ppc_fill_vsxregset): New function.
20408 (ppc_store_vsxregset): New function.
20409 Add new VSX entry in regset_info target_regsets.
20411 * configure.srv: Add new VSX dependencies.
20413 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20415 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20416 (remote_open): Set or clear transport_is_reliable.
20417 (putpkt_binary): Don't expect acks in noack mode.
20418 (getpkt): Don't send ack/nac in noack mode.
20419 * server.c (handle_general_set): Handle QStartNoAckMode.
20420 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20422 (main): Reset noack_mode on every connection.
20423 * server.h (noack_mode): Declare.
20425 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20427 * Makefile.in (GDBREPLAY_OBS): New variable.
20428 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20430 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20431 Daniel Jacobowitz <dan@codesourcery.com>
20433 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20434 (usr_store_inferior_registers): Likewise.
20435 (regsets_store_inferior_registers): Likewise.
20437 2008-07-31 Rolf Jansen <rj@surtec.com>
20438 Pedro Alves <pedro@codesourcery.com>
20440 * configure.ac: Check for memmem declaration.
20441 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20442 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20443 (disable_packet_qfThreadInfo): Unconditionally compile.
20444 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20445 * configure, config.in: Regenerate.
20447 2008-07-28 Doug Kwan <dougkwan@google.com>
20449 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20450 (linux_write_memory): Remove declaration of errno.
20452 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20454 * linux-low.c (handle_extended_wait): Do not use "status"
20455 variable uninitialized.
20457 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20459 * server.c (handle_v_attach): Inhibit reporting dll changes.
20461 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20463 * remote-utils.c (prepare_resume_reply): If requested, don't
20464 output "thread:TID" in the T stop reply.
20466 * server.c (disable_packet_vCont, disable_packet_Tthread)
20467 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20468 (handle_query): If requested, disable support for qC, qfThreadInfo
20470 (handle_v_requests): If requested, disable support for vCont.
20471 (gdbserver_show_disableable): New.
20472 (main): Handle --disable-packet and --disable-packet=LIST.
20474 * server.h (disable_packet_vCont, disable_packet_Tthread)
20475 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20477 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20479 * server.c (gdbserver_usage): Mention --version.
20481 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20483 * Makefile.in (gdbreplay.o): New rule.
20485 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20487 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20488 message, not gdbserver.
20490 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20491 Nathan Sidwell <nathan@codesourcery.com>
20492 Joseph Myers <joseph@codesourcery.com>
20494 * acinclude.m4: Include ../../config/acx.m4.
20495 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20496 * configure, config.in: Regenerate.
20497 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20498 * server.c (gdbserver_version): Print PKGVERSION.
20499 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20500 (main): Adjust gdbserver_usage calls.
20501 * gdbreplay.c (version, host_name): Add declarations.
20502 (gdbreplay_version, gdbreplay_usage): New.
20503 (main): Accept --version and --help options.
20505 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20507 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20508 (arm_breakpoint_at): Handle Thumb.
20509 (the_low_target): Add comment.
20511 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20513 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20515 2008-05-09 Doug Evans <dje@google.com>
20517 * server.h (decode_search_memory_packet): Declare.
20518 * remote-utils.c (decode_search_memory_packet): New fn.
20519 * server.c (handle_search_memory_1): New fn.
20520 (handle_search_memory): New fn.
20521 (handle_query): Process qSearch:memory packets.
20523 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20525 * regcache.c (registers_length): Remove.
20526 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20527 full register packet.
20528 * regcache.h (registers_length): Remove prototype.
20529 * server.h (PBUFSIZ): Define to 16384.
20531 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20533 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20534 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20535 powerpc-64l.o, and powerpc-altivec64l.o.
20536 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20537 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20538 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20539 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20540 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20543 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20544 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20545 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20546 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20547 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20548 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20549 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20550 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20551 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20552 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20555 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20556 (init_registers_powerpc_32l): ... this new prototype.
20557 (init_registers_powerpc_32): Remove, replace by ...
20558 (init_registers_powerpc_altivec32l): ... this new prototype.
20559 (init_registers_powerpc_e500): Remove, replace by ...
20560 (init_registers_powerpc_e500l): ... this new prototype.
20561 (init_registers_ppc64): Remove, replace by ...
20562 (init_registers_powerpc_64l): ... this new prototype.
20563 (init_registers_powerpc_64): Remove, replace by ...
20564 (init_registers_powerpc_altivec64l): ... this new prototype.
20565 (ppc_num_regs): Set to 73.
20566 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20567 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20568 (ppc_cannot_store_register): Handle orig_r3 and trap.
20569 (ppc_arch_setup): Update init_registers_... calls.
20570 (ppc_fill_gregset): Handle orig_r3 and trap.
20572 * inferiors.c (clear_inferiors): Reset current_inferior.
20574 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20576 * acinclude.m4: Add override.m4.
20577 * configure: Regenerate.
20579 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20581 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20582 initial call to init_register_ppc64.
20584 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20586 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20587 single powerpc*-*-linux* case.
20588 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20590 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20592 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20593 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20595 * linux-ppc-low.c: Include <elf.h>.
20596 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20597 (ppc_hwcap): New global variable.
20598 (ppc_regmap): Remove __SPE__ #ifdef sections.
20599 (ppc_regmap_e500): New global variable.
20600 (ppc_cannot_store_register): Update __SPE__ special case.
20601 (ppc_get_hwcap): New function.
20602 (ppc_arch_setup): Use it to determine whether inferior supports
20603 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20604 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20605 Do not access registers if target does not support AltiVec.
20606 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20607 Do not access registers if target does not support SPE.
20608 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20610 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20612 * linux-low.c (disabled_regsets, num_regsets): New.
20613 (use_regsets_p): Delete.
20614 (linux_wait_for_process): Clear disabled_regsets.
20615 (regsets_fetch_inferior_registers): Check and set it.
20616 (regsets_store_inferior_registers): Likewise.
20617 (linux_fetch_registers, linux_store_registers): Do not use
20619 (initialize_low): Allocate disabled_regsets.
20621 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20623 * Makefile.in (LIBOBJS): New.
20624 (OBS): Use LIBOBJS.
20625 (memmem.o): New rule.
20626 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20627 * configure: Regenerated.
20629 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20631 * server.c (handle_query): Never return "unsupported" for
20632 qXfer:features:read queries.
20634 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20636 * server.c (get_features_xml): Fix inverted condition.
20637 (handle_query): Always support qXfer:feature:read.
20639 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20641 * server.c (wrapper_argv): New.
20642 (start_inferior): Handle wrapper_argv. If set, expect an extra
20644 (gdbserver_usage): Document --wrapper.
20645 (main): Parse --wrapper.
20647 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20649 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20650 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20651 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20652 (ppc_set_pc): Likewise.
20653 (ppc_arch_setup): New function.
20654 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20655 of collect_register.
20656 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20658 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20660 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20661 instead of linux-ppc64-low.o.
20662 * linux-ppc64-low.c: Remove file.
20663 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20664 (linux-ppc64-low.o): Remove rule.
20666 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20667 (init_registers_powerpc_64): Likewise.
20668 (ppc_regmap): Conditionally define depending on __powerpc64__.
20669 (ppc_cannot_store_register): Do not special-case "fpscr" when
20670 compiled on __powerpc64__.
20671 (ppc_collect_ptrace_register): New function.
20672 (ppc_supply_ptrace_register): New function.
20673 (ppc_breakpoint): Change type to "unsigned int".
20674 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20675 (the_low_target): Conditionally provide initializers for the
20676 arch_setup member depending on __powerpc64__. Install
20677 collect_ptrace_register and supply_ptrace_register members.
20679 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20681 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20682 * server.c (gdbserver_xmltarget): Define.
20683 (get_features_xml): Use it to replace "target.xml" and arch_string.
20685 * configure.srv: Remove srv_xmltarget. Add XML files that were
20686 mentioned there to srv_xmlfiles instead. Remove conditional tests
20687 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20688 srv_xmlfiles and srv_regobj to include all possible choices.
20689 * configure.ac (srv_xmltarget): Remove.
20690 (srv_xmlfiles): Do not add "target.xml".
20691 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20692 checks for supplementary target information.
20693 * configure: Regenerate.
20694 * Makefile.in (XML_TARGET): Remove.
20695 (target.xml): Remove rule.
20696 (clean): Do not clean up target.xml.
20697 (.PRECIOUS): Do not mention target.xml.
20699 * target.h (struct target_ops): Remove arch_string member.
20700 * linux-low.c (linux_arch_string): Remove.
20701 (linux_target_ops): Remove arch_string initializer.
20702 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20703 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20704 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20705 * spu-low.c (spu_arch_string): Remove.
20706 (spu_target_ops): Remove arch_string initializer.
20707 * win32-low.c (win32_arch_string): Remove.
20708 (win32_target_ops): Remove arch_string initializer.
20709 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20710 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20711 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20713 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20715 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20716 by collect_ptrace_register and supply_ptrace_register hooks.
20717 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20718 instead of checking for the_low_target.left_pad_xfer.
20719 (usr_store_inferior_registers): Use collect_ptrace_register callback
20720 instead of checking for the_low_target.left_pad_xfer.
20722 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20723 (s390_supply_ptrace_register): Likewise.
20724 (s390_fill_gregset): Call s390_collect_ptrace_register.
20725 (the_low_target): Update.
20727 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20728 (ppc_supply_ptrace_register): Likewise.
20729 (the_low_target): Update.
20731 * linux-i386-low.c (the_low_target): Update.
20732 * linux-x86-64-low.c (the_low_target): Update.
20734 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20736 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20737 reg-s390.o and reg-s390x.o.
20739 * linux-low.c (new_inferior): New global variable.
20740 (linux_create_inferior, linux_attach): Set it.
20741 (linux_wait_for_process): Call the_low_target.arch_setup after the
20742 target has stopped for the first time.
20743 (initialize_low): Do not call the_low_target.arch_setup.
20745 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20746 (s390_set_pc): Likewise.
20747 (s390_arch_setup): New function.
20748 (the_low_target): Use s390_arch_setup as arch_setup routine.
20750 * regcache.c (realloc_register_cache): New function.
20751 (set_register_cache): Call it for each existing regcache.
20753 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20755 * server.h (init_registers): Remove prototype.
20757 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20758 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20759 instead of init_registers ().
20760 * linux-arm-low.c (init_registers_arm): Add prototype.
20761 (init_registers_arm_with_iwmmxt): Likewise.
20762 (the_low_target): Add initializer for arch_setup field.
20763 * linux-cris-low.c (init_registers_cris): Add prototype.
20764 (the_low_target): Add initializer for arch_setup field.
20765 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20766 (the_low_target): Add initializer for arch_setup field.
20767 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20768 (the_low_target): Add initializer for arch_setup field.
20769 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20770 (the_low_target): Add initializer for arch_setup field.
20771 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20772 (the_low_target): Add initializer for arch_setup field.
20773 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20774 (the_low_target): Add initializer for arch_setup field.
20775 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20776 (init_registers_mips64_linux): Likewise.
20777 (the_low_target): Add initializer for arch_setup field.
20778 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20779 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20780 (the_low_target): Add initializer for arch_setup field.
20781 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20782 (init_registers_powerpc_64): Likewise.
20783 (the_low_target): Add initializer for arch_setup field.
20784 * linux-s390-low.c (init_registers_s390): Add prototype.
20785 (init_registers_s390x): Likewise.
20786 (the_low_target): Add initializer for arch_setup field.
20787 * linux-sh-low.c (init_registers_sh): Add prototype.
20788 (the_low_target): Add initializer for arch_setup field.
20789 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20790 (the_low_target): Add initializer for arch_setup field.
20791 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20792 (the_low_target): Add initializer for arch_setup field.
20794 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20795 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20796 instead of init_registers ().
20797 * win32-arm-low.c (init_registers_arm): Add prototype.
20798 (the_low_target): Add initializer for arch_setup field.
20799 * win32-i386-low.c (init_registers_i386): Add prototype.
20800 (the_low_target): Add initializer for arch_setup field.
20802 * spu-low.c (init_registers_spu): Add prototype.
20803 (initialize_low): Call initialie_registers_spu () instead of
20804 initialize_registers ().
20806 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20808 * server.c (handle_v_requests): When handling the vRun and vAttach
20809 packets, if already debugging a process, don't kill it. Return an
20812 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20814 * server.c (handle_query): Correct length check.
20816 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20818 * win32-low.c (do_initial_child_stuff): Add process handle
20819 parameter. Set current_process_handle and current_process_id from the
20820 parameters. Clear globals.
20821 (win32_create_inferior): Don't set current_process_handle and
20822 current_process_id here. Instead pass them on the call to
20823 do_initial_child_stuff.
20824 (win32_attach): Likewise.
20825 (win32_clear_inferiors): New.
20826 (win32_kill): Don't close the current process handle or the
20827 current thread handle here. Instead call win32_clear_inferiors.
20828 (win32_detach): Don't open a new handle to the process. Call
20829 win32_clear_inferiors.
20830 (win32_join): Don't rely on current_process_handle; open a new
20831 handle using the process id.
20832 (win32_wait): Call win32_clear_inferiors when the inferior process
20835 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20837 * server.c (monitor_show_help): Add "exit".
20839 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20841 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20842 (clean): Add reg-xtensa.c.
20843 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20844 * configure.srv (xtensa*-*-linux*) New target.
20845 * linux-xtensa-low.c: New.
20846 * xtensa-xtregs.c: New.
20848 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20850 * hostio.c: Don't include errno.h.
20851 (errno_to_fileio_errno): Move to hostio-errno.
20852 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20853 error number outputting to the target->hostio_last_error callback.
20854 (hostio_packet_error): Use FILEIO_EINVAL directly.
20855 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20856 calls to hostio_error.
20857 * hostio-errno.c: New.
20858 * server.h (hostio_last_error_from_errno): Declare.
20859 * target.h (target_ops): Add hostio_last_error member.
20860 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20861 as hostio_last_error handler.
20862 * spu-low.c (spu_target_ops): Likewise.
20863 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20864 (wince_hostio_last_error): New functions.
20865 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20866 as hostio_last_error handler.
20867 (win32_target_ops) [!_WIN32_WCE]: Register
20868 hostio_last_error_from_errno as hostio_last_error handler.
20869 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20870 (hostio-errno.o): New rule.
20871 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20872 * configure.srv (srv_hostio_err_objs): New variable. Default to
20874 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20875 * configure: Regenerate.
20877 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20879 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20880 (linux_kill, linux_detach): Clean up the process list.
20881 * remote-utils.c (remote_open): Improve port number parsing.
20882 (putpkt_binary, input_interrupt): Only send interrupts if the target
20884 * server.c (extended_protocol): Make static.
20885 (attached): Define earlier.
20886 (exit_requested, response_needed, program_argv): New variables.
20887 (target_running): New.
20888 (start_inferior): Clear attached here.
20889 (attach_inferior): Set attached here.
20890 (require_running): Define.
20891 (handle_query): Use require_running and target_running. Implement
20893 (handle_v_attach, handle_v_run): New.
20894 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20895 (gdbserver_usage): Update.
20896 (main): Redo argument parsing. Handle --debug and --multi. Handle
20897 --attach along with other options or after the port. Save
20898 program_argv. Support no initial program. Resynchronize
20899 communication with GDB after an error. Handle "monitor exit".
20900 Use require_running and target_running. Always allow the extended
20901 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20902 restart in extended mode.
20903 * README: Refer to the GDB manual. Update --attach usage.
20905 2007-12-20 Andreas Schwab <schwab@suse.de>
20907 * linux-low.c (STACK_SIZE): Define.
20908 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20909 (linux_test_for_tracefork): Likewise.
20911 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20913 * linux-low.c (linux_wait_for_event): Update messages. Do not
20914 reinsert auto-delete breakpoints.
20915 * mem-break.c (struct breakpoint): Change return type of handler to
20917 (set_breakpoint_at): Update handler type.
20918 (reinsert_breakpoint_handler): Return 1 instead of calling
20920 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20922 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20923 * mem-break.h (set_breakpoint_at): Update handler type.
20924 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20925 * win32-low.c (auto_delete_breakpoint): New.
20926 (get_child_debug_event): Use it.
20928 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20930 * configure.ac: Check for pread and pwrite.
20931 * hostio.c (handle_pread): Fall back to lseek and read.
20932 (handle_pwrite): Fall back to lseek and write.
20933 * config.in, configure: Regenerated.
20935 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20937 * server.c (myresume): Add own_buf argument.
20938 (main): Update calls.
20940 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20942 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20943 * remote-utils.c (remote_open): Do not call disable_async_io.
20944 (block_async_io): Delete.
20945 (unblock_async_io): Make static.
20946 (initialize_async_io): New.
20947 * server.c (handle_v_cont): Handle async I/O here.
20948 (myresume): Likewise. Move other common resume tasks here...
20949 (main): ... from here. Call initialize_async_io. Disable async
20950 I/O before the main loop.
20951 * server.h (initialize_async_io): Declare.
20952 (block_async_io, unblock_async_io): Delete prototypes.
20953 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20955 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20957 * remote-utils.c (readchar): Allow binary data in received messages.
20959 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20961 * win32-low.c (attaching): New global.
20962 (win32_create_inferior): Clear the `attaching' global.
20963 (win32_attach): Set the `attaching' global.
20964 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20965 attaching. Only set a breakpoint at the entry point if not
20968 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20970 * server.c (main): Don't report dll events on the initial
20971 connection on attaches.
20973 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20975 * server.c (main): Relax numerical bases supported for the pid of
20976 the --attach command line argument.
20978 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20980 * win32-low.c (win32_attach): Call OpenProcess before
20981 DebugActiveProcess, not after. Add last error output to error
20984 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20986 * win32-low.c (win32_get_thread_context)
20987 (win32_set_thread_context): New functions.
20988 (thread_rec): Use win32_get_thread_context.
20989 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20990 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20993 2007-12-03 Leo Zayas
20994 Pedro Alves <pedro_alves@portugalmail.pt>
20996 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20998 (child_add_thread): Minor cleanup.
20999 (child_continue): Resume artificially suspended threads before
21000 calling ContinueDebugEvent.
21001 (suspend_one_thread): New.
21002 (fake_breakpoint_event): New.
21003 (get_child_debug_event): Change return type to int. Check here if
21004 gdb sent an interrupt request. If a soft interrupt was requested,
21005 fake a breakpoint event. Return 0 if there is no event to handle,
21007 (win32_wait): Don't check here if gdb sent an interrupt request.
21008 Ensure there is a valid event to handle.
21009 (win32_request_interrupt): Add soft interruption method as last
21012 2007-12-03 Leo Zayas
21013 Pedro Alves <pedro_alves@portugalmail.pt>
21015 * win32-low.h (win32_thread_info): Add descriptions to the
21016 structure members. Replace `suspend_count' counter by a
21018 * win32-low.c (thread_rec): Update condition of when to get the
21019 context from the inferior. Rely on ContextFlags being set if it
21020 has already been retrieved. Only suspend the inferior thread if
21021 we haven't already. Warn if that fails.
21022 (continue_one_thread): s/suspend_count/suspended/. Only call
21023 ResumeThread once. Warn if that fails.
21025 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21027 * win32-low.c (win32_wait): Don't read from the inferior when it
21028 has already exited.
21030 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21032 * Makefile.in (win32_low_h): New variable.
21033 (win32-low.o): Add dependency on $(win32_low_h).
21034 (win32-arm-low.o, win32-i386-low.o): New rules.
21036 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21038 * hostio.c: Correct copyright year.
21040 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21042 * Makefile.in (OBS): Add hostio.o.
21043 (hostio.o): New rule.
21044 * server.h (handle_vFile): Declare.
21045 * hostio.c: New file.
21046 * server.c (handle_v_requests): Take packet_len and new_packet_len
21047 for binary packets. Call handle_vFile.
21048 (main): Update call to handle_v_requests.
21050 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21052 * linux-low.c: Include <sched.h>.
21054 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21056 * linux-low.c (linux_tracefork_grandchild): New.
21057 (linux_tracefork_child): Use clone.
21058 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21060 2007-10-31 Joel Brobecker <brobecker@adacore.com>
21062 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21064 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21066 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21068 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21070 * inferiors.c (change_inferior_id): Delete.
21071 (add_pid_to_list, pull_pid_from_list): New.
21072 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21073 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21074 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21075 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21076 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21077 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21078 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21079 (using_threads): Always set to 1.
21080 (handle_extended_wait): New.
21081 (add_process): Do not set TID.
21082 (linux_create_inferior): Set must_set_ptrace_flags.
21083 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21084 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21085 (linux_thread_alive): Rename TID argument to LWPID.
21086 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21087 (linux_wait_for_event): Do not use TID or check using_threads. Update
21088 call to dead_thread_notify. Call handle_extended_wait.
21089 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21090 (send_sigstop): Delete sigstop_sent.
21091 (wait_for_sigstop): Avoid TID.
21092 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21093 (linux_test_for_tracefork): New.
21094 (linux_lookup_signals): Use thread_db_active and
21095 linux_supports_tracefork_flag.
21096 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21097 * linux-low.h (get_process_thread): Avoid TID.
21098 (struct process_ifo): Move thread_known and tid to the end. Remove
21100 (linux_attach_lwp, thread_db_init): Update prototypes.
21101 * server.h (change_inferior_id): Delete prototype.
21102 (add_pid_to_list, pull_pid_from_list): New prototypes.
21103 * thread-db.c (thread_db_use_events): New.
21104 (find_first_thread): Rename to...
21105 (find_one_thread): ...this. Update callers and messages. Do not
21106 call fatal. Check thread_db_use_events. Do not call
21107 change_inferior_id or new_thread_notify.
21108 (maybe_attach_thread): Update. Do not call new_thread_notify.
21109 (thread_db_init): Set thread_db_use_events. Check use_events.
21110 * utils.c (fatal, warning): Correct message prefix.
21112 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21114 * Makefile.in (clean): Remove new files.
21115 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21116 (powerpc-64.o, powerpc-64.c): New rules.
21117 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21118 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21120 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21122 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21123 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21124 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21125 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21126 (target_regsets): Add AltiVec and SPE register sets.
21127 * configure.ac: Check for AltiVec and SPE.
21128 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21129 (ppc_fill_vrregset, ppc_store_vrregset): New.
21130 (target_regsets): Add AltiVec register set.
21131 * configure: Regenerated.
21133 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21135 * linux-low.c (O_LARGEFILE): Define.
21136 (linux_read_memory): Use /proc/PID/mem.
21137 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21138 * configure, config.in: Regenerated.
21140 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21142 * linux-low.c (linux_wait_for_event): Do not pass signals while
21145 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21147 * win32-low.c (create_process): New.
21148 (win32_create_inferior): Use create_process instead of
21149 CreateProcess. If create_process failed retry appending an ".exe"
21150 suffix. Store the GetLastError result immediatelly after
21151 create_process calls and use it on the call to error.
21153 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21155 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21157 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21159 * configure.ac: Switch license to GPLv3.
21161 2007-08-01 Michael Snyder <msnyder@access-company.com>
21163 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21165 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21167 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21169 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21170 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21171 CloseToolhelp32Snapshot.
21172 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21173 CloseToolhelp32Snapshot.
21175 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21177 * server.c (main): Check for inferior exit before main loop.
21179 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21181 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21182 instead of on tmp_desc.
21184 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21185 Daniel Jacobowitz <dan@codesourcery.com>
21187 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21188 (add_thread): Minor cleanups.
21189 (clear_inferiors): Move lower in the file. Clear the DLL
21191 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21192 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21193 (xml_escape_text): New.
21194 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21196 (handle_v_cont): Report errors.
21197 (gdbserver_version): Update.
21198 (main): Correct size of own_buf. Do not report initial DLL events.
21199 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21200 (unloaded_dll, xml_escape_text): New.
21201 * win32-low.c (enum target_waitkind): Update comments.
21202 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21203 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21204 (win32_EnumProcessModules, win32_GetModuleInformation)
21205 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21206 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21207 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21208 (win32_Module32First, win32_Module32Next, load_toolhelp)
21209 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21210 (get_child_debug_event): Handle DLL events.
21211 (win32_wait): Likewise.
21213 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21215 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21216 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21218 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21220 * win32-low.c (handle_output_debug_string): Ignore event if not
21223 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21225 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21227 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21229 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21231 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21233 * inferiors.c (change_inferior_id): Add comment.
21234 * linux-low.c (check_removed_breakpoint): Add an early
21235 prototype. Improve debug output.
21236 (linux_attach): Doc update.
21237 (linux_detach_one_process, linux_detach): Clean up before releasing
21239 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21240 * linux-low.h (struct process_info): Doc improvement.
21241 * mem-break.c (delete_all_breakpoints): New.
21242 * mem-break.h (delete_all_breakpoints): New prototype.
21243 * thread-db.c (find_first_thread): New.
21244 (thread_db_create_event): Call it instead of
21245 thread_db_find_new_threads. Clean up unused variables.
21246 (maybe_attach_thread): Remove first thread handling.
21247 (thread_db_find_new_threads): Use find_first_thread.
21248 (thread_db_get_tls_address): Likewise.
21250 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21252 * thread-db.c (thread_db_find_new_threads): Add prototype.
21253 (thread_db_create_event): Check for the main thread before adding
21255 (maybe_attach_thread): Only enable event reporting if TID == 0.
21256 (thread_db_get_tls_address): Check for new threads.
21258 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21260 * linux-low.c (linux_create_inferior): Try execv before execvp.
21261 * spu-low.c (spu_create_inferior): Likewise.
21263 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21265 * linux-low.c (linux_create_inferior): Change execv to execvp.
21266 * spu-low.c (spu_create_inferior): Likewies.
21268 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21270 * Makefile.in (clean): Clean new files instead of deleted ones.
21271 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21272 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21274 * configure.srv: Specify XML files and new regformats for MIPS and
21276 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21277 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21278 an entry for the restart register.
21279 (mips_cannot_fetch_register, mips_cannot_store_register)
21280 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21281 register names to match the XML descriptions.
21282 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21283 restart register instead of $0.
21285 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21286 Markus Deuling <deuling@de.ibm.com>
21288 * remote-utils.c (decode_xfer_write): New function.
21289 * server.h (decode_xfer_write): Add prototype.
21290 * server.c (handle_query): Add PACKET_LEN argument. Support
21291 qXfer:spu:read and qXfer:spu:write packets.
21292 (main): Pass packet_len to handle_query.
21293 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21294 * target.h (target_ops): Add qxfer_spu.
21296 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21298 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21299 accessing non-seekable spufs files.
21301 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21303 * server.c (handle_query): Add reply for qC packet.
21305 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21306 Leo Zayas <lerele@champenstudios@com>
21308 * server.h (check_remote_input_interrupt_request): New function.
21309 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21310 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21311 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21312 (check_remote_input_interrupt_request): New function.
21313 * server.h (check_remote_input_interrupt_request): Declare.
21314 * win32-low.c (winapi_DebugBreakProcess,
21315 winapi_GenerateConsoleCtrlEvent): New typedefs.
21316 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21318 (win32_wait): Check for remote interrupt request
21319 with check_remote_input_interrupt_request.
21320 (win32_request_interrupt): New function.
21321 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21323 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21325 * win32-low.c (debug_registers_changed,
21326 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21327 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21328 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21329 (thread_rec): Get context using the low target.
21330 (child_add_thread): Call thread_added on the low target,
21331 which does the same thing.
21333 (do_initial_child_stuff): Remove debug registers references.
21334 Set context using the low target. Resume threads after
21335 setting the contexts.
21336 (child_continue): Remove dead variable. Remove debug
21337 registers references.
21338 (child_fetch_inferior_registers): Go through the low target.
21339 (do_child_store_inferior_registers): Remove.
21340 (child_store_inferior_registers): Go through the low target.
21341 (win32_resume): Remove debug registers references.
21342 Set context using the low target.
21343 (handle_exception): Change return type to void. Don't record
21344 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21345 first chance exception.
21346 (get_child_debug_event): Change return type to void. Remove
21347 goto loop. Always return after waiting for debug event.
21348 (win32_wait): Convert to switch statement. Handle spurious
21351 * win32-i386-low.c (debug_registers_changed,
21352 debug_registers_used): New.
21353 (initial_stuff): Rename to ...
21354 (i386_initial_stuff): ... this. Clear debug registers
21356 (store_debug_registers): Delete.
21357 (i386_get_thread_context): New.
21358 (load_debug_registers): Delete.
21359 (i386_set_thread_context): New.
21360 (i386_thread_added): New.
21361 (single_step): Rename to ...
21362 (i386_single_step): ... this.
21363 (do_fetch_inferior_registers): Rename to ...
21364 (i386_fetch_inferior_register): ... this.
21365 (i386_store_inferior_register): New.
21366 (the_low_target): Adapt to new interface.
21368 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21369 (arm_get_thread_context): New.
21370 (arm_set_thread_context): New.
21372 (do_fetch_inferior_registers): Rename to ...
21373 (arm_fetch_inferior_register): ... this.
21374 (arm_store_inferior_register): New.
21375 (arm_wince_breakpoint): Reimplement as unsigned long.
21376 (arm_wince_breakpoint_len): Define.
21377 (the_low_target): Adapt to new interface.
21379 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21380 load_debug_registers. Add get_thread_context, set_thread_context,
21381 thread_added and store_inferior_register. Rename
21382 fetch_inferior_registers to fetch_inferior_register.
21383 (regptr): Remove declaration.
21385 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21387 * linux-low.c (linux_detach): Change return type to int. Return 0.
21388 * spu-low.c (spu_detach): Likewise.
21390 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21392 * target.h (target_ops): Change return type of detach to int.
21394 (join_inferior): New.
21395 * server.c (main): Don't skip detach support on mingw32.
21396 If the inferior doesn't support detaching return error.
21397 Call join_inferior instead of using waitpid.
21398 * linux-low.c (linux_join): New.
21399 (linux_target_op): Add linux_join.
21400 * spu-low.c (spu_join): New.
21401 (spu_target_ops): Add spu_join.
21402 * win32-low.c (win32_detach): Adapt to new interface.
21403 Reopen current_process_handle before detaching. Issue a child
21404 resume before detaching.
21406 (win32_target_op): Add win32_join.
21408 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21410 * win32-low.c (win32-attach): Fix return value.
21411 * target.h (target_ops): Describe ATTACH return values.
21413 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21415 * win32-low.c (GETPROCADDRESS): Define.
21416 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21417 (winapi_DebugSetProcessKillOnExit): Likewise.
21418 (win32_create_inferior): Force usage of ansi CreateProcessA.
21419 (win32_attach): Use GETPROCADDRESS.
21420 (win32_detach): Likewise.
21422 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21424 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21426 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21428 * win32-low.c: Commit leftover changes from 2007-03-29.
21430 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21432 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21433 fields short instead of int. Add explicit padding.
21434 (i387_cache_to_fsave): Remove unnecessary casts.
21435 (i387_fsave_to_cache): Doc fix.
21436 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21438 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21440 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21441 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21443 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21445 * configure.srv (arm*-*-mingw32ce*): Move near the other
21448 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21450 * configure.ac: Add errno checking.
21451 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21452 sys/file.h and malloc.h.
21453 (AC_CHECK_DECLS): Add perror.
21454 (srv_mingwce): Handle.
21455 * configure.srv (i[34567]86-*-cygwin*): Add
21456 win32-i386-low.o to srv_tgtobj.
21457 (i[34567]86-*-mingw*): Likewise.
21458 (arm*-*-mingw32ce*): Add case.
21459 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21460 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21461 [__MINGW32CE__] (strerror): New function.
21462 [__MINGW32CE__] (errno): Define to GetLastError.
21463 [__MINGW32CE__] (COUNTOF): New macro.
21464 (remote_open): Remove extra close call.
21465 * mem-break.c (delete_breakpoint_at): New function.
21466 * mem-break.h (delete_breakpoint_at): Declare.
21467 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21468 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21469 [USE_WIN32API] (read, write): Add char* casts.
21470 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21471 * server.h: Include wincecompat.h on Windows CE.
21472 [HAVE_ERRNO_H]: Check.
21473 (perror): Declare if not declared.
21474 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21475 (perror_with_name): Remove errno declaration.
21476 * wincecompat.h: New.
21477 * wincecompat.c: New.
21478 * win32-low.h: New.
21479 * win32-arm-low.c: New.
21480 * win32-i386-low.c: New.
21481 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21482 (OUTMSG2): Make it safe.
21484 (COUNTOF): New macro.
21485 (NUM_REGS): Get it from the low target.
21486 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21487 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21488 (thread_rec): Let low target handle debug registers.
21489 (child_add_thread): Likewise.
21490 (child_init_thread_list): Likewise.
21491 (continue_one_thread): Likewise.
21493 (do_child_fetch_inferior_registers): Move to ...
21494 * win32-i386-low.c: ... here, and rename to ...
21495 (do_fetch_inferior_registers): ... this.
21496 * win32-low.c (child_fetch_inferior_registers):
21497 Go through the low target.
21498 (do_child_store_inferior_registers): Use regptr.
21499 (strwinerror): New function.
21500 (win32_create_inferior): Handle Windows CE.
21501 Use strwinerror instead of strerror on Windows error
21502 codes. Add program to the error output.
21503 Don't close the main thread handle on Windows CE.
21504 (win32_attach): Use coredll.dll on Windows CE.
21505 (win32_kill): Close current process and current
21507 (win32_detach): Use coredll.dll on Windows CE.
21508 (win32_resume): Let low target handle debug registers, and
21510 (handle_exception): Add/Remove initial breakpoint. Avoid
21511 non-existant WSTOPSIG on Windows CE.
21512 (win32_read_inferior_memory): Cast to remove warning.
21513 (win32_arch_string): Go through the low target.
21514 (initialize_low): Call set_breakpoint_data with the low
21515 target's breakpoint.
21516 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21517 FOP_REGNUM, mappings): Move to ...
21518 * win32-i386-low.c: ... here.
21519 * win32-low.c (win32_thread_info): Move to ...
21520 * win32-low.h: ... here.
21521 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21522 win32-arm-low.c and wincecompat.c.
21523 (all:): Add $EXEEXT.
21524 (install-only:): Likewise.
21525 (gdbserver:): Likewise.
21526 (gdbreplay:): Likewise.
21527 * config.in: Regenerate.
21528 * configure: Regenerate.
21530 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21532 * win32-low.c: Rename typedef thread_info to
21533 win32_thread_info throughout.
21535 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21537 * win32-i386-low.c: Rename to ...
21538 * win32-low.c: ... this.
21539 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21540 * Makefile.in: Likewise.
21542 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21544 * remote-utils.c (monitor_output): Constify msg parameter.
21545 * server.h (monitor_output): Likewise.
21546 * win32-i386-low.c (handle_output_debug_string): New.
21547 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21548 handle_output_debug_string.
21549 (get_child_debug_event): Likewise.
21551 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21553 * server.c (main): Correct strtoul check.
21555 2007-03-27 Jon Ringle <jon@ringle.org>
21557 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21559 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21561 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21563 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21565 * terminal.h: Check HAVE_SGTTY_H.
21567 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21569 * remote-utils.c (remote_open): Print out the assigned port number.
21571 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21573 * remote-utils.c (monitor_output): New function.
21574 * server.c (debug_threads): Define here.
21575 (monitor_show_help): New function.
21576 (handle_query): Handle qRcmd.
21577 (main): Do not handle 'd' packet.
21578 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21579 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21582 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21584 * Makefile.in (EXEEXT): New.
21585 (clean): Use $(EXEEXT).
21587 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21589 * target.h (target_ops): Rename send_signal to request_interrupt,
21590 and remove enum target_signal parameter.
21591 * linux-low.c (linux_request_interrupt): Rename from
21592 linux_send_signal, and always send SIGINT.
21593 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21594 and always send SIGINT.
21595 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21597 (input_interrupt): Likewise.
21599 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21601 * server.c (get_features_xml): Check if target implemented
21603 * win32-i386-low.c (win32_arch_string): New.
21604 (win32_target_ops): Add win32_arch_string as arch_string member.
21606 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21608 * spu-low.c (spu_arch_string): New.
21609 (spu_target_ops): Add spu_arch_string.
21611 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21613 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21614 * configure.ac: Do not check for terminal.h.
21615 * configure, config.in: Regenerated.
21617 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21619 * Makefile.in (OBS): Add $(XML_BUILTIN).
21620 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21622 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21623 (arm-with-iwmmxt.c): New.
21624 * config.in, configure: Regenerate.
21625 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21626 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21627 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21628 (arm*-*-linux*): Add iWMMXt and regset support.
21629 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21630 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21631 (arm_store_wmmxregset, target_regsets): New.
21632 * server.c (get_features_xml): Take annex argument. Check builtin
21634 (handle_query): Handle multiple annexes.
21636 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21638 * remote-utils.c [USE_WIN32API] (read, write): Define.
21639 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21642 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21644 * linux-i386-low.c (the_low_target): Set arch_string.
21645 * linux-x86-64-low.c (the_low_target): Likewise.
21646 * linux-low.c (linux_arch_string): New.
21647 (linux_target_ops): Add it.
21648 * linux-low.h (struct linux_target_ops): Add arch_string.
21649 * server.c (write_qxfer_response): Use const void * for DATA.
21650 (get_features_xml): New.
21651 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21652 * target.h (struct target_ops): Add arch_string method.
21654 2007-01-03 Denis Pilat <denis.pilat@st.com>
21655 Daniel Jacobowitz <dan@codesourcery.com>
21657 * linux-low.c (linux_kill): Handle being called with no threads.
21658 * win32-i386-low.c (win32_kill): Likewise.
21659 (get_child_debug_event): Clear current_process_handle.
21661 2006-12-30 Denis PILAT <denis.pilat@st.com>
21662 Daniel Jacobowitz <dan@codesourcery.com>
21664 * remote-utils.c (remote_open): Check the type of specified
21665 serial port devices before opening them.
21666 * server.c (main): Kill the inferior if an error occurs during
21667 the first remote_open.
21669 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21671 * README: Update supported targets.
21673 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21675 * Makefile.in (clean): Remove reg-mips64.c.
21676 (reg-mips64.c, reg-mips64.o): New rules.
21677 * configure.srv: Handle mips64. Include regset support for mips.
21678 * linux-mips-low.c (union mips_register): New.
21679 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21680 (mips_breakpoint, mips_breakpoint_at): Use int.
21681 (mips_collect_register, mips_supply_register)
21682 (mips_collect_register_32bit, mips_supply_register_32bit)
21683 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21684 (mips_store_fpregset, target_regsets): New.
21685 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21687 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21689 * configure.srv: Add target "spu*-*-*".
21690 * Makefile.in (clean): Remove reg-spu.c.
21691 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21692 * spu-low.c: New file.
21694 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21696 * configure.ac: Correct td_thr_tls_get_addr test.
21697 * configure: Regenerated.
21699 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21701 * linux-low.c (linux_wait_for_event): Reformat. Use the
21702 pass_signals array.
21703 * remote-utils.c (decode_address_to_semicolon): New.
21704 * server.c (pass_signals, handle_general_set): New.
21705 (handle_query): Mention QPassSignals for qSupported.
21706 (main): Call handle_general_set.
21707 * server.h (pass_signals, decode_address_to_semicolon): New.
21709 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21711 * server.c (handle_query): Correct error handling for read_auxv.
21713 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21715 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21716 and srv_linux_thread_db to yes.
21717 * linux-s390-low.c (s390_fill_gregset): New function.
21718 (target_regsets): Define data structure.
21720 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21722 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21723 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21724 * config.in, configure: Regenerated.
21725 * inferiors.c (gdb_id_to_thread): New function.
21726 (gdb_id_to_thread_id): Use it.
21727 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21728 * linux-low.h (struct process_info): Add th member.
21729 (thread_db_get_tls_address): New prototype.
21730 * remote-utils.c (decode_address): Make non-static.
21731 * server.c (handle_query): Handle qGetTLSAddr.
21732 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21733 * target.h (struct target_ops): Add get_tls_address.
21734 * thread-db.c (maybe_attach_thread): Save the thread handle.
21735 (thread_db_get_tls_address): New.
21737 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21739 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21740 (linux_resume_one_process): Take a siginfo_t *. Update all
21741 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21742 (struct pending_signals): Add a siginfo_t.
21743 (linux_wait_for_process): Always set last_status.
21744 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21745 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21746 * linux-low.h (struct process_info): Add last_status.
21748 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21750 * remote-utils.c (try_rle): New function.
21751 (putpkt_binary): Use it.
21753 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21755 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21756 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21757 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21758 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21759 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21762 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21764 * server.c (terminal_fd): New variable.
21765 (old_foreground_pgrp): Likewise.
21766 (restore_old_foreground_pgrp): New function.
21767 (start_inferior): Record the terminal file descriptor in terminal_fd
21768 and its original foreground group in old_foreground_pgrp. Register
21769 restore_old_foreground_pgrp with atexit().
21771 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21773 * server.c (handle_query): Correct qPart to qXfer.
21775 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21777 * configure.ac: Check for more headers which are missing on
21778 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21779 * configure.srv: Add Cygwin and mingw32.
21780 * remote-utils.c: Don't include headers unconditionally which
21781 are missing on mingw32. Include <winsock.h> for mingw32.
21782 (remote_open): Adjust for mingw32 support. Flush
21783 standard error after writing to it.
21784 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21785 (unblock_async_io, enable_async_io, disable_async_io)
21786 (readchar, getpkt): Update for Winsock support.
21787 (prepare_resume_reply): Expect a protocol signal number.
21788 * server.c: Disable <sys/wait.h> on mingw32.
21789 (start_inferior): Adjust for mingw32 support. Flush
21790 standard error after writing to it.
21791 (attach_inferior): Likewise. Use protocol signal
21793 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21795 * win32-i386-low.c: New file.
21796 * Makefile.in (XM_CLIBS): Set.
21797 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21798 (win32-i386-low.o): New dependency rule.
21799 * linux-low.c (linux_wait): Use target signal numbers.
21800 * target.h (struct target_ops): Doc fix.
21801 * server.h (target_signal_to_name): New prototype.
21802 * gdbreplay.c: Don't include headers unconditionally which
21803 are missing on mingw32. Include <winsock.h> for mingw32.
21804 (remote_close, remote_open): Adjust for Winsock support.
21805 * configure, config.in: Regenerated.
21807 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21809 * server.c (decode_xfer_read, write_qxfer_response): New.
21810 (handle_query): Take a packet length argument. Handle
21811 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21812 the qSupported response.
21813 (main): Update call to handle_query.
21815 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21817 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21818 (putpkt_binary): Renamed from putpkt and adjusted for binary
21820 (putpkt): New wrapper for putpkt_binary.
21821 (readchar): Don't mask off the high bit.
21822 (decode_X_packet): New function.
21823 * server.c (main): Call putpkt_binary if a handler sets the packet
21824 length. Save the length of the incoming packet. Handle 'X'.
21825 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21827 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21829 * server.c (handle_query): Handle qSupported.
21831 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21833 * remote-utils.c (all_symbols_looked_up): New variable.
21834 (look_up_one_symbol): Check it.
21835 * server.h (look_up_one_symbol): New declaration.
21836 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21838 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21840 * Makefile.in (linux-arm-low.o): Update dependencies.
21841 * linux-arm-low.c: Include "gdb_proc_service.h".
21842 (PTRACE_GET_THREAD_AREA): Define.
21843 (ps_get_thread_area): New function.
21845 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21847 * configure.srv (m68k*-*-uclinux*): New target.
21848 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21849 (linux_resume_one_process): Remove extraneous cast.
21850 (linux_read_offsets): New.
21851 (linux_target_op): Add linux_read_offsets on mmuless systems.
21852 * server.c (handle_query): Add qOffsets logic.
21853 * target.h (struct target_ops): Add read_offsets.
21855 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21857 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21858 (PTRACE_GET_THREAD_AREA): Define.
21859 (ps_get_thread_area): New function.
21860 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21861 (linux-x86-64-low.o): Update.
21863 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21865 * configure.ac: Remove checks for prfpregset_t.
21866 * gdb_proc_service.h: New file.
21867 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21868 new "gdb_proc_service.h".
21869 * proc-service.c: Likewise.
21870 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21871 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21872 * Makefile.in (gdb_proc_service_h): Updated.
21873 * configure, config.in: Regenerated.
21875 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21877 * remote-utils.c (prepare_resume_reply): Move declaration
21878 of gdb_id_from_wait to the top of the block.
21880 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21882 * linux-low.c (regsets_store_inferior_registers): Read the regset
21883 from the target before filling it.
21885 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21887 * server.c (attach_inferior): Return SIGTRAP for a successful
21890 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21892 * Makefile.in (OBS): Add version.o.
21893 (STAGESTUFF): Delete.
21894 (version.o): Add dependencies.
21895 (version.c): Replace rule.
21896 (clean): Remove version.c.
21897 * server.c (gdbserver_version): New.
21898 (gdbserver_usage): Use printf.
21899 (main): Handle --version and --help.
21900 * server.h (version, host_name): Add declarations.
21902 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21914 * linux-x86-64-low.c:
21916 * linux-s390-low.c:
21917 * linux-ppc64-low.c:
21919 * linux-mips-low.c:
21920 * linux-m68k-low.c:
21921 * linux-m32r-low.c:
21924 * linux-ia64-low.c:
21925 * linux-i386-low.c:
21926 * linux-crisv32-low.c:
21938 * gdbserver.1: Add (C) after Copyright. Update the FSF
21941 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21943 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21944 (arm_breakpoint_at): Recognize both breakpoints.
21945 (the_low_target): Use the correct breakpoint instruction.
21947 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21949 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21950 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21951 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21952 (the_low_target): Update.
21954 2005-10-25 Andreas Schwab <schwab@suse.de>
21956 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21958 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21959 (ia64_num_regs): Reduce to 462.
21961 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21963 * acinclude.m4: Correct quoting.
21964 * aclocal.m4: Regenerated.
21966 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21967 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21968 (thread_db_init): Call thread_db_err_str.
21969 * configure.ac: Check for TD_VERSION.
21970 * config.in, configure: Regenerated.
21972 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21974 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21976 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21978 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21979 is not available. Define HAVE_PTRACE_GETREGS if it is.
21980 * config.in, configure: Regenerated.
21981 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21982 * linux-i386-low.c, linux-m68k-low.c: Update to use
21983 HAVE_PTRACE_GETREGS.
21984 * linux-low.c (regsets_fetch_inferior_registers)
21985 (regsets_store_inferior_registers): Only return 0 if we processed
21987 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21988 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21990 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21992 * inferiors.c (struct thread_info): Add gdb_id.
21993 (add_thread): Add gdb_id argument.
21994 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21995 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21996 calls to add_thread.
21997 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21998 * server.c (handle_query): Use thread_to_gdb_id.
21999 (handle_v_cont, main): Use gdb_id_to_thread_id.
22000 * server.h (add_thread): Update prototype.
22001 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
22004 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22006 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
22007 left-padded registers.
22008 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
22009 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
22011 2005-07-01 Steve Ellcey <sje@cup.hp.com>
22013 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
22014 * configure: Regenerate.
22015 * config.in: Regenerate.
22016 * server.h (NEED_DECLARATION_STRERROR):
22017 Replace with !HAVE_DECL_STRERROR.
22019 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
22021 * linux-low.c (linux_wait, linux_send_signal): Don't test
22022 an unsigned long variable for > 0 if it could be MAX_ULONG.
22023 * server.c (myresume): Likewise.
22024 * target.c (set_desired_inferior): Likewise.
22026 2005-06-13 Mark Kettenis <kettenis@gnu.org>
22028 * configure.ac: Simplify and improve check for socklen_t.
22029 * configure, config.in: Regenerate.
22031 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22033 * acconfig.h: Remove.
22034 * configure.ac: Add a test for socklen_t. Use three-argument
22035 AC_DEFINE throughout.
22036 * config.in: Regenerated using autoheader 2.59.
22037 * configure: Regenerated.
22039 * gdbreplay.c (socklen_t): Provide a default.
22040 (remote_open): Use socklen_t.
22041 * remote-utils.c (socklen_t): Provide a default.
22042 (remote_open): Use socklen_t.
22043 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22046 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22048 * linux-low.c (linux_read_memory, linux_write_memory)
22049 (linux_read_auxv): Likewise.
22050 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22051 (check_mem_write): Likewise.
22052 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22054 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22055 (registers_from_string, register_data): Likewise.
22056 * server.c (handle_query, main): Likewise.
22057 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22058 (decode_M_packet): Likewise.
22059 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22060 * target.h (struct target_ops): Update read_memory, write_memory,
22062 (read_inferior_memory, write_inferior_memory): Update.
22063 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22064 to unsigned char *.
22065 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22066 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22067 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22068 linux-s390-low.c, linux-sh-low.c: Update for changes in
22069 read_inferior_memory and the_low_target->breakpoint.
22071 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22073 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22074 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22075 * configure.srv: Add powerpc64-*-linux*.
22076 * linux-ppc64-low.c: New file.
22078 2005-05-23 Orjan Friberg <orjanf@axis.com>
22080 * linux-cris-low.c: New file with support for CRIS.
22081 * linux-crisv32-low.c: Ditto for CRISv32.
22082 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22083 (clean): Add reg-cris.c and reg-crisv32.c.
22084 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
22085 reg-crisv32.o, and reg-crisv32.c to make rules.
22086 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22087 recognized targets.
22089 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22091 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22092 of sizeof (PTRACE_XFER_TYPE).
22093 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22095 2005-05-12 Orjan Friberg <orjanf@axis.com>
22097 * target.h (struct target_ops): Add insert_watchpoint,
22098 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22099 pointers for hardware watchpoint support.
22100 * linux-low.h (struct linux_target_ops): Ditto.
22101 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22102 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22103 to linux_target_ops.
22104 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22106 * server.c (main): Recognize 'Z' and 'z' packets.
22108 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22110 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22111 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22112 (the_low_target): Add new members.
22114 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22116 * proc-service.c (ps_lgetregs): Search all_processes instead of
22119 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22121 * server.c (start_inferior): Change return type to int.
22122 (attach_inferior): Change sigptr to int *.
22123 (handle_v_cont, handle_v_requests): Change signal to int *.
22124 (main): Change signal to int.
22126 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22128 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22129 * configure.srv: Add m32r*-*-linux*.
22130 * linux-m32r-low.c: New file.
22132 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22134 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22136 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22138 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22139 Take unsigned long arguments for PIDs.
22140 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22141 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22142 (wait_for_sigstop, linux_resume_one_process)
22143 (regsets_fetch_inferior_registers, linux_send_signal)
22144 (linux_read_auxv): Likewise. Update the types of variables holding
22145 PIDs. Update format string specifiers.
22146 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22147 * remote-utils.c (prepare_resume_reply): Likewise.
22148 * server.c (cont_thread, general_thread, step_thread)
22149 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22151 (handle_query): Update format specifiers.
22152 (handle_v_cont, main): Use strtoul for thread IDs.
22153 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22154 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22155 (general_thread, step_thread, thread_from_wait)
22156 (old_thread_from_wait): Update.
22157 * target.h (struct thread_resume): Use unsigned long for THREAD.
22158 (struct target_ops): Use unsigned long for arguments to attach and
22161 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22163 * acinclude.m4: Include bfd/bfd.m4 directly.
22164 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22165 <agriffis@toolchain.org>.
22166 * aclocal.m4, configure: Regenerated.
22168 2005-01-07 Andrew Cagney <cagney@gnu.org>
22170 * configure.ac: Rename configure.in, require autoconf 2.59.
22171 * configure: Re-generate.
22173 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22175 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22176 LIBS when finished.
22177 * aclocal.m4: Regenerated.
22178 * configure: Regenerated.
22180 2004-11-21 Andreas Schwab <schwab@suse.de>
22182 * linux-m68k-low.c (m68k_num_gregs): Define.
22183 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22184 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22185 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22186 (m68k_breakpoint_at): New. Add to the_low_target.
22188 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22189 srv_linux_thread_db to yes.
22191 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22193 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22194 (ARCH_SET_FS): Likewise.
22195 (ARCH_GET_FS): Likewise.
22196 (ARCH_GET_GS): Likewise.
22198 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22200 * linux-i386-low.c (ps_get_thread_area): New.
22201 * linux-x86-64-low.c (ps_get_thread_area): New.
22202 * linux-low.c: Include <sys/syscall.h>.
22203 (linux_kill_one_process): Don't kill the first thread here.
22204 (linux_kill): Kill the first thread here.
22205 (kill_lwp): New function.
22206 (send_sigstop, linux_send_signal): Use it.
22207 * proc-service.c: Clean up #ifdefs.
22208 (fpregset_info): Delete.
22209 (ps_lgetregs): Update and enable implementation.
22210 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22212 * remote-utils.c (struct sym_cache, symbol_cache): New.
22213 (input_interrupt): Print a clearer message.
22214 (async_io_enabled): New variable.
22215 (enable_async_io, disable_async_io): Use it. Update comments.
22216 (look_up_one_symbol): Use the symbol cache.
22217 * thread-db.c (thread_db_look_up_symbols): New function.
22218 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22220 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22222 * configure.in: Test for -rdynamic.
22223 * configure: Regenerated.
22224 * Makefile (INTERNAL_LDFLAGS): New.
22225 (gdbserver, gdbreplay): Use it.
22227 2004-09-02 Andrew Cagney <cagney@gnu.org>
22229 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22231 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22233 * linux-low.c (linux_wait): Clear all_processes list also.
22235 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22237 * linux-low.c: Include <errno.h>. Remove extern declaration of
22240 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22242 * gdbreplay.c, server.h, utils.c: Update copyright years.
22244 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22246 * server.c (main): Print child status or termination signal from
22247 variable 'signal', not 'sig'.
22249 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22251 * linux-low.c (linux_read_memory): Change return type to
22252 int. Check for and return error from ptrace().
22253 * target.c (read_inferior_memory): Change return type to int. Pass
22254 back return status from the_target->read_memory().
22255 * target.h (struct target_ops): Adapt *read_memory() prototype.
22257 (read_inferior_memory): Adapt prototype.
22258 * server.c (main): Return an error packet if
22259 read_inferior_memory() returns an error.
22261 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22263 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22264 Unify with other clean targets.
22266 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22268 * server.c (handle_v_cont): Call set_desired_inferior.
22270 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22272 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22274 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22276 * linux-low.c (linux_wait): Unblock async I/O.
22277 (linux_resume): Block and enable async I/O.
22278 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22279 * server.h (block_async_io, unblock_async_io): Add prototypes.
22281 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22283 * remote-utils.c (remote_open): Print a status notice after
22284 opening a TCP port.
22285 * server.c (attach_inferior): Print a status notice after
22288 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22290 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22292 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22294 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22296 * server.c, target.h: Update copyright years.
22298 2004-02-25 Roland McGrath <roland@redhat.com>
22300 * target.h (struct target_ops): New member `read_auxv'.
22301 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22302 * linux-low.c (linux_read_auxv): New function.
22303 (linux_target_ops): Initialize `read_auxv' member to that.
22305 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22307 Committed by Jim Blandy <jimb@redhat.com>.
22309 * linux-s390-low.c (s390_num_regs): Update.
22310 (s390_regmap): Remove control registers. Use __s390x__ predefine
22311 instead of GPR_SIZE to distiguish s390 and s390x targets.
22313 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22315 * linux-low.c: Update copyright year.
22316 (check_removed_breakpoint): Clear pending_is_breakpoint.
22317 (linux_set_resume_request, linux_queue_one_thread)
22318 (resume_status_pending_p): New functions.
22319 (linux_continue_one_thread): Use process->resume.
22320 (linux_resume): Only resume threads if there are no pending events.
22321 * linux-low.h (struct process_info): Add resume request
22324 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22326 * regcache.c (new_register_cache): Clear the allocated register
22327 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22329 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22331 * linux-low.c (linux_resume): Take a struct thread_resume *
22333 (linux_wait): Update call.
22334 (resume_ptr): New static variable.
22335 (linux_continue_one_thread): Renamed from
22336 linux_continue_one_process. Use resume_ptr.
22337 (linux_resume): Use linux_continue_one_thread.
22338 * server.c (handle_v_cont, handle_v_requests): New functions.
22339 (myresume): New function.
22340 (main): Handle 'v' case.
22341 * target.h (struct thread_resume): New type.
22342 (struct target_ops): Change argument of "resume" to struct
22344 (myresume): Delete macro.
22346 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22348 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22349 (uninstall): Support DESTDIR.
22351 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22353 * configure.srv: Add xscale*linux copy of arm*linux entry.
22355 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22357 * linux-arm-low.c (arm_reinsert_addr): New function.
22358 (the_low_target): Add arm_reinsert_addr.
22360 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22362 * mem-break.c: Remove whitespace at end of file.
22364 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22366 * configure.in: Check whether we need to prototype strerror.
22367 * server.h: Optionally prototype strerror.
22368 * gdbreplay.c (perror_with_name): Use strerror.
22369 * linux-low.c (linux_attach_lwp): Use strerror.
22370 * utils.c (perror_with_name): Use strerror.
22371 * config.in, configure: Regenerated.
22373 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22375 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22376 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22378 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22380 * Makefile.in (SFILES): Update.
22381 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22382 low-sun3.c: Remove files.
22384 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22386 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22387 (linux_detach_one_process, linux_detach): New functions.
22388 (linux_target_ops): Add linux_detach.
22389 * server.c (main): Handle 'D' packet.
22390 * target.h (struct target_ops): Add "detach" member.
22391 (detach_inferior): Define.
22393 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22395 From Kelley Cook <kelleycook@wideopenwest.com>:
22396 * configure.srv: Accept i[34567]86 variants.
22398 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22400 * linux-low.c (linux_wait_for_event): Correct comment typos.
22401 (linux_resume_one_process): Call check_removed_breakpoint.
22402 (linux_send_signal): New function.
22403 (linux_target_ops): Add linux_send_signal.
22404 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22406 * target.h (struct target_ops): Add send_signal.
22408 2003-05-29 Jim Blandy <jimb@redhat.com>
22410 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22411 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22412 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22413 away part of the register's value.
22415 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22417 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22418 (linux_wait_for_event, linux_init_signals): Likewise.
22420 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22422 * configure.in: Check for stdlib.h.
22423 * configure: Regenerated.
22424 * config.in: Regenerated.
22426 2003-01-04 Andreas Schwab <schwab@suse.de>
22428 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22430 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22432 * Makefile.in: Remove obsolete code.
22434 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22436 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22437 defined(PT_FPR0_HI).
22439 2002-11-17 Stuart Hughes <seh@zee2.com>
22441 * linux-arm-low.c (arm_num_regs): Increase.
22442 (arm_regmap): Include status register.
22444 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22446 * linux-low.c (register_addr): Remove incorrect -1 check.
22448 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22450 * linux-low.c (linux_create_inferior): Call setpgid. Return
22452 (unstopped_p, linux_signal_pid): Remove.
22453 (linux_target_ops): Remove linux_signal_pid.
22454 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22455 global instead of target method.
22456 * target.h (struct target_ops): Remove signal_pid. Update comment
22457 for create_inferior.
22458 * server.c (signal_pid): New variable.
22459 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22460 gdbserver. Set the child to be the foreground process group.
22461 (attach_inferior): Set signal_pid.
22463 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22465 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22467 2002-08-20 Jim Blandy <jimb@redhat.com>
22469 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22472 2002-08-01 Andrew Cagney <cagney@redhat.com>
22474 * Makefile.in: Make chill references obsolete.
22476 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22478 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22479 * configure: Regenerate.
22480 * config.in: Regenerate.
22482 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22484 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22485 (perror_with_name, remote_close, remote_open, expect, play): Static.
22487 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22489 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22490 byte offsets instead of an array of indexes.
22491 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22493 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22495 * regcache.c: Add comment.
22497 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22499 * thread-db.c: New file.
22500 * proc-service.c: New file.
22501 * acinclude.m4: New file.
22502 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22503 proc-service.o, and thread-db.o.
22504 (linux-low.o): Add USE_THREAD_DB.
22505 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22506 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22507 * aclocal.m4: Regenerated.
22508 * config.in: Regenerated.
22509 * configure: Regenerated.
22510 * configure.in: Check for proc_service.h, sys/procfs.h,
22511 thread_db.h, and linux/elf.h headrs.
22512 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22513 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22514 Check for -lthread_db and thread support.
22515 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22516 PowerPC, and SuperH.
22517 * i387-fp.c: Constify arguments.
22518 * i387-fp.h: Likewise.
22519 * inferiors.c: (struct thread_info): Renamed from
22520 `struct inferior_info'. Remove PID member. Use generic inferior
22521 list header. All uses updated.
22522 (inferiors, signal_pid): Removed.
22523 (all_threads): New variable.
22524 (get_thread): Define.
22525 (add_inferior_to_list): New function.
22526 (for_each_inferior): New function.
22527 (change_inferior_id): New function.
22528 (add_inferior): Removed.
22529 (remove_inferior): New function.
22530 (add_thread): New function.
22531 (free_one_thread): New function.
22532 (remove_thread): New function.
22533 (clear_inferiors): Use for_each_inferior and free_one_thread.
22534 (find_inferior): New function.
22535 (find_inferior_id): New function.
22536 (inferior_target_data): Update argument type.
22537 (set_inferior_target_data): Likewise.
22538 (inferior_regcache_data): Likewise.
22539 (set_inferior_regcache_data): Likewise.
22540 * linux-low.c (linux_bp_reinsert): Remove.
22541 (all_processes, stopping_threads, using_thrads)
22542 (struct pending_signals, debug_threads, pid_of): New.
22543 (inferior_pid): Replace with macro.
22544 (struct inferior_linux_data): Remove.
22545 (get_stop_pc, add_process): New functions.
22546 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22547 Use add_process and add_thread.
22548 (linux_attach_lwp): New function, based on old linux_attach. Use
22549 add_process and add_thread. Set stop_expected for new threads.
22550 (linux_attach): New function.
22551 (linux_kill_one_process): New function.
22552 (linux_kill): Kill all LWPs.
22553 (linux_thread_alive): Use find_inferior_id.
22554 (check_removed_breakpoints, status_pending_p): New functions.
22555 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22556 Update. Use WNOHANG. Wait for cloned processes also. Update process
22557 struct for the found process.
22558 (linux_wait_for_event): New function.
22559 (linux_wait): Use it. Support LWPs.
22560 (send_sigstop, wait_for_sigstop, stop_all_processes)
22561 (linux_resume_one_process, linux_continue_one_process): New functions.
22562 (linux_resume): Support LWPs.
22563 (REGISTER_RAW_SIZE): Remove.
22564 (fetch_register): Use register_size instead. Call supply_register.
22565 (usr_store_inferior_registers): Likewise. Call collect_register.
22566 Fix recursive case.
22567 (regsets_fetch_inferior_registers): Improve error message.
22568 (regsets_store_inferior_registers): Add debugging.
22569 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22570 (unstopped_p, linux_signal_pid): New functions.
22571 (linux_target_ops): Add linux_signal_pid.
22572 (linux_init_signals): New function.
22573 (initialize_low): Call it. Initialize using_threads.
22574 * regcache.c (inferior_regcache_data): Add valid
22576 (get_regcache): Fetch registers lazily. Add fetch argument
22577 and update all callers.
22578 (regcache_invalidate_one, regcache_invalidate): New
22580 (new_register_cache): Renamed from create_register_cache.
22581 Return the new regcache.
22582 (free_register_cache): Change argument to a void *.
22583 (registers_to_string, registers_from_string): Call get_regcache
22584 with fetch flag set.
22585 (register_data): Make static. Pass fetch flag to get_regcache.
22586 (supply_register): Call get_regcache with fetch flag clear.
22587 (collect_register): Call get_regcache with fetch flag set.
22588 (collect_register_as_string): New function.
22589 * regcache.h: Update.
22590 * remote-utils.c (putpkt): Flush after debug output and use
22592 Handle input interrupts while waiting for an ACK.
22593 (input_interrupt): Use signal_pid method.
22594 (getpkt): Flush after debug output and use stderr.
22595 (outreg): Use collect_register_as_string.
22596 (new_thread_notify, dead_thread_notify): New functions.
22597 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22598 and general_thread.
22599 (look_up_one_symbol): Flush after debug output.
22600 * server.c (step_thread, server_waiting): New variables.
22601 (start_inferior): Don't use signal_pid. Update call to mywait.
22602 (attach_inferior): Update call to mywait.
22603 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22604 (main): Don't fetch/store registers explicitly. Use
22605 set_desired_inferior. Support proposed ``Hs'' packet. Update
22607 * server.h: Update.
22608 (struct inferior_list, struct_inferior_list_entry): New.
22609 * target.c (set_desired_inferior): New.
22610 (write_inferior_memory): Constify.
22611 (mywait): New function.
22612 * target.h: Update.
22613 (struct target_ops): New signal_pid method.
22614 (mywait): Removed macro, added prototype.
22616 * linux-low.h (regset_func): Removed.
22617 (regset_fill_func, regset_store_func): New.
22618 (enum regset_type): New.
22619 (struct regset_info): Add type field. Use new operation types.
22620 (struct linux_target_ops): stop_pc renamed to get_pc.
22621 Add decr_pc_after_break and breakpoint_at.
22622 (get_process, get_thread_proess, get_process_thread)
22623 (strut process_info, all_processes, linux_attach_lwp)
22624 (thread_db_init): New.
22626 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22627 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22628 (the_low_target): Add new members.
22629 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22630 (i386_store_fpxregset): Constify.
22631 (target_regsets): Add new kind identifier.
22632 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22633 (i386_set_pc): Add debugging.
22634 (i386_breakpoint_at): New function.
22635 (the_low_target): Add new members.
22636 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22637 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22638 (mips_breakpoint_at): New.
22639 (the_low_target): Add new members.
22640 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22641 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22642 (the_low_target): Add new members.
22643 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22644 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22645 (the_low_target): Add new members.
22646 * linux-x86-64-low.c (target_regsets): Add new kind
22649 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22651 From Martin Pool <mbp@samba.org>:
22652 * server.c (gdbserver_usage): New function.
22655 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22657 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22658 stop_at -> stop_pc.
22660 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22662 * Makefile.in: Remove obsolete code.
22664 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22666 * linux-low.c (regsets_fetch_inferior_registers),
22667 (regsets_store_inferior_registers): Removed cast to int from
22669 * regcache.h: Added declaration of struct inferior_info.
22671 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22673 * inferiors.c (struct inferior_info): Add regcache_data.
22674 (add_inferior): Call create_register_cache.
22675 (clear_inferiors): Call free_register_cache.
22676 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22677 * regcache.c (struct inferior_regcache_data): New.
22678 (registers): Remove.
22679 (get_regcache): New function.
22680 (create_register_cache, free_register_cache): New functions.
22681 (set_register_cache): Don't initialize the register cache here.
22682 (registers_to_string, registers_from_string, register_data): Call
22684 * regcache.h: Add prototypes.
22685 * server.h: Likewise.
22687 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22689 * mem-break.c: New file.
22690 * mem-break.h: New file.
22691 * Makefile.in: Add mem-break.o rule; update server.h
22693 * inferiors.c (struct inferior_info): Add target_data
22695 (clear_inferiors): Free target_data member if set.
22696 (inferior_target_data, set_inferior_target_data): New functions.
22697 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22698 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22699 * linux-low.c (linux_bp_reinsert): New variable.
22700 (struct inferior_linux_data): New.
22701 (linux_create_inferior): Use set_inferior_target_data.
22702 (linux_attach): Likewise. Call add_inferior.
22703 (linux_wait_for_one_inferior): New function.
22704 (linux_wait): Call it.
22705 (linux_write_memory): Add const.
22706 (initialize_low): Call set_breakpoint_data.
22707 * linux-low.h (struct linux_target_ops): Add breakpoint
22709 * server.c (attach_inferior): Remove extra add_inferior
22711 * server.h: Include mem-break.h. Update inferior.c
22713 * target.c (read_inferior_memory)
22714 (write_inferior_memory): New functions.
22715 * target.h (read_inferior_memory)
22716 (write_inferior_memory): Change macros to prototypes.
22717 (struct target_ops): Update comments. Add const to write_memory
22720 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22722 * linux-low.c (usr_store_inferior_registers): Support
22723 registers which are allowed to fail to store.
22724 * linux-low.h (linux_target_ops): Likewise.
22725 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22726 (ppc_cannot_store_register): FPSCR may not be storable.
22728 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22730 * server.h: Include <string.h> if HAVE_STRING_H.
22731 * ChangeLog: Correct paths in last ChangeLog entry.
22733 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22735 * linux-low.h: Remove obsolete prototypes.
22736 (struct linux_target_ops): New.
22737 (extern the_low_target): New.
22738 * linux-low.c (num_regs, regmap): Remove declarations.
22739 (register_addr): Use the_low_target explicitly.
22740 (fetch_register): Likewise.
22741 (usr_fetch_inferior_registers): Likewise.
22742 (usr_store_inferior_registers): Likewise.
22743 * linux-arm-low.c (num_regs): Remove.
22744 (arm_num_regs): Define.
22745 (arm_regmap): Renamed from regmap, made static.
22746 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22748 (arm_cannot_store_register): Renamed from cannot_store_register,
22750 (the_low_target): New.
22751 * linux-i386-low.c (num_regs): Remove.
22752 (i386_num_regs): Define.
22753 (i386_regmap): Renamed from regmap, made static.
22754 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22756 (i386_cannot_store_register): Renamed from cannot_store_register,
22758 (the_low_target): New.
22759 * linux-ia64-low.c (num_regs): Remove.
22760 (ia64_num_regs): Define.
22761 (ia64_regmap): Renamed from regmap, made static.
22762 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22764 (ia64_cannot_store_register): Renamed from cannot_store_register,
22766 (the_low_target): New.
22767 * linux-m68k-low.c (num_regs): Remove.
22768 (m68k_num_regs): Define.
22769 (m68k_regmap): Renamed from regmap, made static.
22770 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22772 (m68k_cannot_store_register): Renamed from cannot_store_register,
22774 (the_low_target): New.
22775 * linux-mips-low.c (num_regs): Remove.
22776 (mips_num_regs): Define.
22777 (mips_regmap): Renamed from regmap, made static.
22778 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22780 (mips_cannot_store_register): Renamed from cannot_store_register,
22782 (the_low_target): New.
22783 * linux-ppc-low.c (num_regs): Remove.
22784 (ppc_num_regs): Define.
22785 (ppc_regmap): Renamed from regmap, made static.
22786 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22788 (ppc_cannot_store_register): Renamed from cannot_store_register,
22790 (the_low_target): New.
22791 * linux-s390-low.c (num_regs): Remove.
22792 (s390_num_regs): Define.
22793 (s390_regmap): Renamed from regmap, made static.
22794 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22796 (s390_cannot_store_register): Renamed from cannot_store_register,
22798 (the_low_target): New.
22799 * linux-sh-low.c (num_regs): Remove.
22800 (sh_num_regs): Define.
22801 (sh_regmap): Renamed from regmap, made static.
22802 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22804 (sh_cannot_store_register): Renamed from cannot_store_register,
22806 (the_low_target): New.
22807 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22808 (the_low_target): New.
22810 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22812 * Makefile.in: Add stamp-h target.
22813 * configure.in: Create stamp-h.
22814 * configure: Regenerated.
22816 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22818 * inferiors.c: New file.
22819 * target.c: New file.
22820 * target.h: New file.
22821 * Makefile.in: Add target.o and inferiors.o. Update
22823 * linux-low.c (inferior_pid): New static variable,
22824 moved from server.c.
22825 (linux_create_inferior): Renamed from create_inferior.
22826 Call add_inferior. Return 0 on success instead of a PID.
22827 (linux_attach): Renamed from myattach.
22828 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22829 (linux_thread_alive): Renamed from mythread_alive.
22830 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22832 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22833 (regsets_store_inferior_registers): Correct error message.
22834 Add missing ``return 0''.
22835 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22836 (linux_store_registers): Renamed from store_inferior_registers.
22837 (linux_read_memory): Renamed from read_inferior_memory.
22838 (linux_write_memory): Renamed from write_inferior_memory.
22839 (linux_target_ops): New structure.
22840 (initialize_low): Call set_target_ops ().
22841 * remote-utils.c (unhexify): New function.
22842 (hexify): New function.
22843 (input_interrupt): Send signals to ``signal_pid''.
22844 * server.c (inferior_pid): Remove.
22845 (start_inferior): Update create_inferior call.
22846 (attach_inferior): Call add_inferior.
22847 (handle_query): New function.
22848 (main): Call handle_query for `q' packets.
22849 * server.h: Include "target.h". Remove obsolete prototypes.
22850 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22852 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22854 * Makefile.in: Add WARN_CFLAGS. Update configury
22856 * configure.in: Check for <string.h>
22857 * configure: Regenerate.
22858 * config.in: Regenerate.
22859 * gdbreplay.c: Include needed system headers.
22860 (remote_open): Remove strchr prototype.
22861 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22862 * regcache.c (supply_register): Change buf argument to const void *.
22863 (supply_register_by_name): Likewise.
22864 (collect_register): Change buf argument to void *.
22865 (collect_register_by_name): Likewise.
22866 * regcache.h: Add missing prototypes.
22867 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22868 * server.c (handle_query): New function.
22869 (attached): New static variable, moved out of main.
22870 (main): Quiet longjmp clobber warnings.
22871 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22872 * utils.c (error): Remove NORETURN.