1 2021-11-03 Luis Machado <luis.machado@linaro.org>
5 * linux-aarch64-low.cc (is_sve_tdesc): Remove.
6 (aarch64_target::low_arch_setup): Rework to adjust the register sets.
7 (aarch64_regsets): Update to list all register sets.
8 (aarch64_regsets_info, regs_info_aarch64): Replace NULL with nullptr.
9 (aarch64_sve_regsets, aarch64_sve_regsets_info)
10 (regs_info_aarch64_sve): Remove.
11 (aarch64_adjust_register_sets): New.
12 (aarch64_target::get_regs_info): Remove references to removed structs.
13 (initialize_low_arch): Likewise.
15 2021-10-04 Tom de Vries <tdevries@suse.de>
18 * configure: Regenerate.
20 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
22 * config.in, configure: Re-generate.
24 2021-06-19 Mike Frysinger <vapier@gentoo.org>
26 * acinclude.m4: Delete most m4_include's of ../config files.
27 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
28 * aclocal.m4: Regenerate.
29 * configure: Regenerate.
31 2021-06-14 Mike Frysinger <vapier@gentoo.org>
33 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
34 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
36 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
38 * Fix some indentation mistakes throughout.
40 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
42 * .dir-locals.el: Set sentence-end-double-space for all modes, and
43 set brace-list-open to 0 for C and C++ modes.
45 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
47 * linux-low.cc (linux_process_target::wait_for_event_filtered):
48 Adjust to status_to_str returning std::string.
50 2021-05-08 Pedro Alves <pedro@palves.net>
53 (linux_process_target::supports_disable_randomization): Remove
54 reference to HAVE_PERSONALITY.
55 * config.in, configure: Regenerate.
57 2021-05-08 Pedro Alves <pedro@palves.net>
59 * linux-low.cc: Don't include sys/personality.h or define
62 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64 * server.cc (handle_v_attach)
66 (handle_v_kill): Make void.
68 2021-05-03 Tom Tromey <tromey@adacore.com>
71 * win32-i386-low.cc (i386_get_thread_context): Call
72 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
74 2021-04-30 Tom Tromey <tromey@adacore.com>
76 * win32-low.cc (do_initial_child_stuff): Update.
77 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
78 Change parameter type.
79 (win32_add_dll, win32_add_all_dlls)
80 (windows_nat::handle_load_dll): Remove.
81 (get_child_debug_event): Call dll_loaded_event.
83 2021-04-30 Tom Tromey <tromey@adacore.com>
85 * win32-low.cc (GETPROCADDRESS): Remove.
86 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
87 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
88 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
89 (win32_Wow64SetThreadContext): Remove.
90 (win32_set_thread_context, do_initial_child_stuff)
91 (win32_process_target::attach, win32_process_target::detach):
93 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
94 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
96 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
97 (win32_GetModuleInformation, win32_GetModuleInformationA):
100 (win32_add_dll, win32_process_target::request_interrupt): Update.
101 (initialize_low): Call initialize_loadable.
103 2021-04-14 Tom Tromey <tromey@adacore.com>
105 * win32-low.cc (windows_nat::handle_load_dll): Don't check
108 2021-04-13 Pedro Alves <pedro@palves.net>
110 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
112 2021-04-13 Tom Tromey <tromey@adacore.com>
114 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
115 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
117 2021-04-13 Pedro Alves <pedro@palves.net>
119 * Makefile.in (SFILES): Remove hostio-errno.cc.
120 * configure: Regenerate.
121 * configure.ac (GDBSERVER_DEPFILES): No longer add
122 $srv_hostio_err_objs.
123 * configure.srv (srv_hostio_err_objs): Delete.
124 * hostio-errno.cc: Delete.
125 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
127 * hostio.h (hostio_last_error_from_errno): Delete.
128 * target.cc (process_stratum_target::hostio_last_error): Delete.
129 * target.h (class process_stratum_target) <hostio_last_error>:
132 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
134 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
135 * win32-low.h: Likewise.
137 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
139 * target.h (class process_stratum_target) <pid_to_exec_file>:
140 Constify the return type. Update the definition/references below.
141 * target.cc (process_stratum_target::pid_to_exec_file)
142 * linux-low.h (class linux_process_target) <pid_to_exec_file>
143 * linux-low.cc (linux_process_target::pid_to_exec_file)
144 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
145 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
146 * server.cc (handle_qxfer_exec_file)
148 2021-04-11 Eli Zaretskii <eliz@gnu.org>
150 * win32-low.cc (win32_add_dll): New function, with body almost
151 identical to what win32_add_all_dlls did. Accepts one argument;
152 if that is non-NULL, returns the file name of the DLL that is
153 loaded at the base address equal to that argument, or NULL if not
154 found. If the argument is NULL, add all the DLLs loaded by the
155 inferior to the list of solibs and return NULL.
156 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
157 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
158 failed to glean the file name of the DLL, call win32_add_dll to
159 try harder using the lpBaseOfDll member of the load-DLL event.
161 2021-03-30 Luis Machado <luis.machado@linaro.org>
163 * server.cc (handle_general_set, handle_query): Update variable
164 to bool and fix verification logic.
166 2021-03-24 Luis Machado <luis.machado@linaro.org>
168 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
169 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
170 nat/aarch64-mte-linux-ptrace.o.
171 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
172 (class aarch64_target) <supports_memory_tagging>
173 <fetch_memtags, store_memtags>: New method overrides.
174 (aarch64_target::supports_memory_tagging)
175 (aarch64_target::fetch_memtags)
176 (aarch64_target::store_memtags): New methods.
178 2021-03-24 Luis Machado <luis.machado@linaro.org>
180 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
181 (aarch64_store_mteregset): New function.
182 (aarch64_regsets): Add MTE register set entry.
183 (aarch64_sve_regsets): Add MTE register set entry.
185 2021-03-24 Luis Machado <luis.machado@linaro.org>
187 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
188 aarch64_linux_read_description.
189 (initialize_low_tracepoint): Likewise.
190 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
192 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
194 (aarch64_linux_read_description): Add mte_p parameter and update to
196 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
199 2021-03-24 Luis Machado <luis.machado@linaro.org>
201 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
203 2021-03-24 Luis Machado <luis.machado@linaro.org>
205 * server.cc (test_memory_tagging_functions): New function.
206 (captured_main): Register test_memory_tagging_functions.
208 2021-03-24 Luis Machado <luis.machado@linaro.org>
210 * remote-utils.cc (decode_m_packet_params): Renamed from ...
211 (decode_m_packet): ... this, which now calls decode_m_packet_params.
212 Make char * param/return const char *.
213 (decode_M_packet): Use decode_m_packet_params and make char * param
215 * remote-utils.h (decode_m_packet_params): New prototype.
216 (decode_m_packet): Constify char pointers.
217 (decode_M_packet): Likewise.
218 * server.cc (create_fetch_memtags_reply)
219 (parse_store_memtags_request): New
221 (handle_general_set): Handle the QMemTags packet.
222 (parse_fetch_memtags_request): New function.
223 (handle_query): Handle the qMemTags packet and advertise memory
225 (captured_main): Initialize memory tagging flag.
226 * server.h (struct client_state): Initialize memory tagging flag.
227 * target.cc (process_stratum_target::supports_memory_tagging)
228 (process_stratum_target::fetch_memtags)
229 (process_stratum_target::store_memtags): New methods.
230 * target.h: Include gdbsupport/byte-vector.h.
231 (class process_stratum_target) <supports_memory_tagging>
232 <fetch_memtags, store_memtags>: New class virtual methods.
233 (target_supports_memory_tagging): Define.
235 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
237 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
240 (unloaded_dll): Declare an overloaded version that takes a proc
242 * dll.cc (loaded_dll)
243 (unloaded_dll): Implement the overloaded versions.
244 (clear_dlls): Clear all process' dll lists.
245 (all_dlls, dlls_changed): Remove the global variables.
246 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
248 * server.cc (handle_qxfer_libraries): Ditto.
249 (handle_v_attach): Ditto.
250 (captured_main): Ditto.
252 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
254 * linux-low.cc (linux_process_target::filter_event): Return
256 * linux-low.h (class linux_process_target) <filter_event>:
259 2021-02-12 Tom Tromey <tromey@adacore.com>
261 * gdbreplay.cc (remote_desc): Remove.
262 (remote_desc_in, remote_desc_out): New globals.
263 (remote_close): Update.
264 (remote_open): Handle "-".
265 (remote_open): Update.
266 (logchar): Log to stderr.
267 (expect, play): Update.
269 2021-02-12 Tom Tromey <tromey@adacore.com>
271 * gdbreplay.cc (remote_open): Constify.
273 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
275 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
276 gnulib free replacement too.
277 * common-defs.h [USE_WIN32API](read, write): Undefine
278 gnulib versions before defining these macros.
280 2021-02-03 Pedro Alves <pedro@palves.net>
282 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
283 Discard step SIGTRAP, unless GDB wanted the thread to step.
285 2021-02-03 Pedro Alves <pedro@palves.net>
287 * server.cc (discard_queued_stop_replies): Don't ever discard the
288 notification at the head of the list.
290 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
292 * ax.cc (bytecode_address_table): Make static.
293 * debug.cc (debug_file): Make static.
294 * linux-low.cc (stopping_threads): Make static.
295 (step_over_bkpt): Make static.
296 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
297 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
298 alloced_trace_state_variables, trace_buffer_ctrl,
299 tracing_start_time, tracing_stop_time, tracing_user_name,
300 tracing_notes, tracing_stop_note): Make static.
302 2021-01-20 Tom de Vries <tdevries@suse.de>
304 * linux-x86-low.cc (collect_register_i386): New function.
305 (x86_fill_gregset): Remove memset. Use collect_register_i386.
307 2021-01-07 Tom de Vries <tdevries@suse.de>
309 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
310 (LIBIBERTY_FOR_SHLIB): New var.
311 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
312 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
314 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
316 * debug.cc (debug_print_depth): New.
318 2021-01-01 Joel Brobecker <brobecker@adacore.com>
320 * server.cc (gdbserver_version): Update copyright year.
321 * gdbreplay.cc (gdbreplay_version): Likewise.
323 2020-12-16 Luis Machado <luis.machado@linaro.org>
325 * linux-aarch64-low.cc (address_significant): New function.
326 (aarch64_target::low_stopped_data_address): Handle the TBI.
328 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
330 * Makefile.in (IPA_LIB): Include libiberty library.
332 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
334 * server.cc (gdbserver_usage): Add missing option to usage text.
335 (gdbserver_show_disableable): Likewise.
337 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
339 * ax.cc: Fix indentation.
340 * dll.cc: Fix indentation.
341 * inferiors.h: Fix indentation.
342 * linux-low.cc: Fix indentation.
343 * linux-nios2-low.cc: Fix indentation.
344 * linux-ppc-ipa.cc: Fix indentation.
345 * linux-ppc-low.cc: Fix indentation.
346 * linux-x86-low.cc: Fix indentation.
347 * linux-xtensa-low.cc: Fix indentation.
348 * regcache.cc: Fix indentation.
349 * server.cc: Fix indentation.
350 * tracepoint.cc: Fix indentation.
352 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
354 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
356 * configure: Re-generate.
358 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
360 * configure: Re-generate.
362 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
364 * configure: Re-generate.
366 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
368 * configure: Re-generate.
370 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
372 * configure: Re-generate.
374 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
376 * configure.ac: Modernize.
377 * configure: Re-generate.
379 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
381 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
383 * configure: Re-generate.
385 2020-10-26 Pedro Alves <pedro@palves.net>
387 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
388 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
391 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
393 * acinclude.m4: Update ptrace.m4 path.
395 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
397 * config.in: Re-generate.
398 * configure: Re-generate.
400 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
402 * server.cc (handle_general_set): Don't use sprintf with
403 argument overlapping buffer.
405 2020-10-20 Tom Tromey <tromey@adacore.com>
408 * inferiors.cc (remove_thread): Clear current_thread before
411 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
413 * netbsd-low.cc (netbsd_tdesc): Remove.
414 (netbsd_add_process): Likewise.
415 (netbsd_process_target::create_inferior): Update.
417 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
419 * linux-arc-low.cc (arc_linux_read_description): Release the
420 unique_ptr returned from arc_create_target_description.
422 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
424 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
425 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
427 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
429 * linux-low.cc (linux_process_target::handle_extended_wait):
430 Release the unique_ptr returned from allocate_target_description.
431 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
432 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
433 (tdesc_i386_linux_no_xml): Change type.
434 (x86_linux_read_description): Borrow pointer from unique_ptr
436 (x86_target::get_ipa_tdesc_idx): Likewise.
437 (initialize_low_arch): Likewise.
438 * tdesc.cc (allocate_target_description): Update return type.
440 2020-10-07 Tom Tromey <tromey@adacore.com>
442 * server.cc (handle_search_memory): Remove dead code.
444 2020-10-07 Tom Tromey <tromey@adacore.com>
446 * server.cc (handle_search_memory_1): Remove.
447 (handle_search_memory): Use simple_search_memory.
449 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
451 * Makefile.in (COMPILE): Add CXXFLAGS.
452 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
453 (gdbserver$(EXEEXT)): Add CXXFLAGS.
454 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
455 ($(IPA_LIB)): Add CXXFLAGS.
456 (IPAGENT_COMPILE): Add CXXFLAGS.
458 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
460 * configure.srv: Support ARC architecture.
461 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
462 * linux-arc-low.cc: New file.
464 2020-10-07 Kamil Rytarowski <n54@gmx.com>
466 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
467 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
468 (netbsd_process_target::qxfer_libraries_svr4): Update.
470 2020-10-07 Kamil Rytarowski <n54@gmx.com>
472 * netbsd-low.cc: Fix whitespace formatting.
473 * netbsd-amd64-low.cc: Likewise.
475 2020-10-07 Kamil Rytarowski <n54@gmx.com>
477 * netbsd-low.cc (netbsd_process_target::read_memory)
478 (netbsd_process_target::write_memory): Update.
480 2020-10-07 Kamil Rytarowski <n54@gmx.com>
482 * netbsd-aarch64-low.cc: Add.
483 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
484 * configure.srv: Add aarch64*-*-netbsd*.
486 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
488 * regcache.cc (register_data): Remove unused "fetch" argument.
490 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
492 * server.cc (handle_monitor_command): Handle "set
494 (captured_main): Handle "--debug-event-loop".
495 (monitor_show_help): Mention new setting.
496 (gdbserver_usage): Mention new flag.
498 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
500 * linux-low.cc (linux_process_target::async): Pass name to
502 * remote-utils.cc (handle_accept_event): Likewise.
503 (remote_open): Likewise.
505 2020-10-01 Kamil Rytarowski <n54@gmx.com>
507 * netbsd-i386-low.cc: Add.
508 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
509 * configure.srv: Add i[34567]86-*-netbsd*.
511 2020-10-01 Kamil Rytarowski <n54@gmx.com>
513 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
514 (netbsd_target_regsets): Now const.
515 (the_low_target): Remove.
516 (class netbsd_amd64_target, the_netbsd_amd64_target)
517 (the_netbsd_target): Add.
518 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
520 (netbsd_process_target::fetch_registers)
521 (netbsd_process_target::store_registers, initialize_low): Update.
522 (the_netbsd_target): Remove.
523 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
524 (the_low_target, netbsd_tdesc): Remove.
525 (netbsd_process_target::get_regs_info)
526 (netbsd_process_target::low_arch_setup): Add.
528 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
530 * win32-low.cc: Remove local wow64_process variable.
531 * win32-low.h: Remove local wow64_process variable.
533 2020-09-18 Tom Tromey <tromey@adacore.com>
535 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
536 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
537 (netbsd_process_target::wait): Change type of target_options.
538 * win32-low.h (class win32_process_target) <wait>: Update.
539 * win32-low.cc (win32_process_target::wait): Update.
540 * target.h (class process_stratum_target) <wait>: Update.
542 * target.cc (mywait, target_wait): Change type of "options".
543 * linux-low.h (class linux_process_target) <wait, wait_1>:
545 * linux-low.cc (linux_process_target::wait)
546 (linux_process_target::wait_1): Update.
548 2020-09-15 Tom Tromey <tromey@adacore.com>
550 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
551 (xmltarget_amd64_linux_no_xml): Now arrays.
553 2020-09-14 Tom Tromey <tromey@adacore.com>
555 * tracepoint.cc (eval_result_names): Now const.
556 * ax.cc (gdb_agent_op_names): Now const.
558 2020-09-10 Kamil Rytarowski <n54@gmx.com>
560 * netbsd-low.cc: Add.
561 * netbsd-low.h: Likewise.
562 * netbsd-amd64-low.cc: Likewise.
563 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
564 "netbsd-amd64-low.cc".
565 * configure.srv: Add x86_64-*-netbsd*.
567 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
569 * server.cc (captured_main): Accept multiple `--selftest=`
570 options. Pass all `--selftest=` arguments to run_tests.
572 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
574 * configure, config.in: Regenerate.
576 2020-07-26 Eli Zaretskii <eliz@gnu.org>
578 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
579 When checking whether socklen_t type is defined, use ws2tcpip.h if
580 it is available and sys/socket.h isn't.
581 * configure: Regenerate.
582 * config.in: Regenerate.
584 2020-07-22 Pedro Alves <pedro@palves.net>
586 * inferiors.cc (switch_to_process): New, moved here from
587 thread-db.cc, and made extern.
588 * inferiors.h (switch_to_process): Declare.
589 * server.cc: Include "gdbsupport/scoped_restore.h".
590 (handle_qxfer_threads_proper): Now returns bool. Prepare to
591 access memory around target calls.
592 (handle_qxfer_threads): Handle errors.
593 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
595 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
597 * linux-low.cc (stopped_pids): Make static.
599 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
601 * tdesc.cc (allocate_target_description): Add header comment.
602 (target_desc_deleter::operator()): New function.
603 * tdesc.h (struct target_desc): Declare as final.
605 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
607 * server.cc (handle_query): Use std::vector of
608 std::string for `qsupported` vector. Use separate
610 * target.h (class process_stratum_target) <process_qsupported>:
611 Change parameters to array_view of const char *.
612 (target_process_qsupported): Remove `count` parameter.
613 * target.cc (process_stratum_target::process_qsupported): Change
614 parameters to array_view of const char *.
615 * linux-x86-low.cc (class x86_target) <process_qsupported>:
618 2020-06-29 Tom de Vries <tdevries@suse.de>
620 * ax.h: Include gdbsupport/debug_agent.h.
622 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
624 * tdesc.cc (struct tdesc_compatible_info): New struct.
625 (tdesc_compatible_info_list): New function.
626 (tdesc_compatible_info_arch_name): New function.
628 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630 Use std::list to stop pending signal instead of manually-created
632 * linux-low.h: Include <list>.
633 (struct pending_signal): Move here from linux-low.cc.
634 (struct lwp_info) <pending_signals>
635 <pending_signals_to_report>: Update the type.
636 * linux-low.cc (struct pending_signals): Remove.
637 (linux_process_target::delete_lwp)
638 (linux_process_target::add_lwp)
639 (enqueue_one_deferred_signal)
640 (dequeue_one_deferred_signal)
641 (enqueue_pending_signal)
642 (linux_process_target::resume_one_lwp_throw)
643 (linux_process_target::thread_needs_step_over)
644 (linux_process_target::resume_one_thread)
645 (linux_process_target::proceed_one_lwp): Update the use of pending
648 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
650 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
653 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
655 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
656 * configure.srv: Remove mingw32ce cases.
657 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
658 * win32-low.h (to_back_slashes): Remove.
659 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
661 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
663 * Makefile.in (SFILES): linux-tile-low.cc.
664 * configure.srv: Remove tilegx case.
665 * linux-tile-low.cc: Remove.
667 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
669 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
670 * configure.srv: Remove m32r case.
671 * linux-m32r-low.cc: Remove.
673 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
675 * Makefile.in (SFILES): Remove linux-cris-low.c.
676 * configure.srv: Remove cris cases.
677 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
679 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
681 * Makefile.in (SFILES): Remove linux-bfin-low.c.
682 * configure.srv: Remove bfin case.
683 * linux-bfin-low.cc: Remove.
684 * linux-low.cc: Remove BFIN-conditional code.
686 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
688 * configure: Re-generate.
689 * configure.ac: Remove srv_qnx test.
690 * configure.srv: Remove nto case.
691 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
692 * remote-utils.c: Remove __QNX__-guarded code.
694 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
696 * configure: Re-generate.
697 * configure.ac: Remove srv_lynxos test.
698 * configure.srv: Remove lynxos cases.
699 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
702 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
704 * README: Fix a few outdated or incoherent things.
706 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
708 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
709 (win32_clear_inferiors): Use open_process_used.
710 (get_child_debug_event): Likewise.
712 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
715 * linux-low.cc (linux_process_target::create_inferior),
716 lynx-low.cc (lynx_process_target::create_inferior),
717 win32-low.cc (win32_process_target::create_inferior): Use
718 construct_inferior_arguments instead of stringify_argv
719 to get string representation which properly escapes
721 * server.cc (handle_v_run): Just pass empty program arg
722 as such, since any further processing is now handled via
723 construct_inferior_arguments.
725 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
727 * nto-low.cc (nto_process_target::create_inferior): Pass
728 argv to spawnp function as char **.
730 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
732 * server.cc (captured_main), (handle_v_run): No longer
733 insert extra NULL element to args vector.
735 2020-05-23 Pedro Alves <palves@redhat.com>
737 * gdb-safe-ctype.h: New.
739 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
741 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
742 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
743 (ia64_target::low_breakpoint_at): Ditto.
745 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
747 * win32-i386-low.cc (i386_supports_z_point_type): Handle
748 Z_PACKET_HW_BP z_type.
749 (i386_insert_point): Handle raw_bkpt_type type.
750 (i386_remove_point): Likewise.
752 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
754 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
756 * win32-arm-low.cc (arm_num_regs): New function.
757 (struct win32_target_ops): Use arm_num_regs.
758 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
760 (i386_get_thread_context): Likewise.
761 (i386_prepare_to_resume): Likewise.
762 (i386_thread_added): Likewise.
763 (i386_single_step): Likewise.
764 (i386_fetch_inferior_register): Likewise.
765 (i386_store_inferior_register): Likewise.
766 (i386_arch_setup): Likewise.
767 (i386_win32_num_regs): New function.
768 (struct win32_target_ops): Use i386_win32_num_regs.
769 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
771 (win32_require_context): Likewise.
772 (child_add_thread): Likewise.
773 (do_initial_child_stuff): Likewise.
774 (continue_one_thread): Likewise.
775 (win32_process_target::resume): Likewise.
776 (load_psapi): Likewise.
777 (win32_add_all_dlls): Likewise.
778 (maybe_adjust_pc): Likewise.
779 (win32_process_target::qxfer_siginfo): Likewise.
780 (initialize_low): Likewise.
781 * win32-low.h (struct win32_target_ops): Change num_regs to
784 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
786 * configure.ac: Remove check for fs_base/gs_base in
788 * configure: Re-generate.
789 * config.in: Re-generate.
790 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
791 x86_store_gregset): Adjust.
793 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
795 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
798 2020-04-16 Tom Tromey <tromey@adacore.com>
800 * win32-low.cc (windows_nat::handle_access_violation): New
803 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
805 * win32-low.cc (get_child_debug_event): Fix format string warning.
807 2020-04-13 Tom Tromey <tom@tromey.com>
809 * server.h (gdb_fildes_t): Remove typedef.
810 * remote-utils.c (remote_desc, list_desc): Now int.
811 (INVALID_DESCRIPTOR): Remove.
812 (gdb_connected, remote_close)
813 (check_remote_input_interrupt_request): Update.
814 * utils.h (pfildes): Don't declare.
815 * utils.c (pfildes): Remove.
817 2020-04-13 Tom Tromey <tom@tromey.com>
819 * server.h (handle_serial_event, handle_target_event): Update.
820 * server.c: Don't call initialize_event_loop.
821 (keep_processing_events): New global.
822 (handle_serial_event): Return void. Set keep_processing_events.
823 (handle_target_event): Return void.
824 (start_event_loop): Move from event-loop.c. Rewrite.
825 * remote-utils.c (handle_accept_event): Return void.
826 (reset_readchar): Use delete_timer.
827 (process_remaining): Return void.
828 (reschedule): Use create_timer.
829 * event-loop.h: Remove.
830 * event-loop.cc: Remove.
831 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
833 2020-04-13 Tom Tromey <tom@tromey.com>
835 * server.c (invoke_async_signal_handlers)
836 (check_async_event_handlers, flush_streams, gdb_select): New
839 2020-04-13 Tom Tromey <tom@tromey.com>
841 * configure: Rebuild.
842 * config.in: Rebuild.
844 2020-04-08 Tom Tromey <tromey@adacore.com>
847 * win32-low.c (child_continue): Call matching_pending_stop.
848 (get_child_debug_event): Call fetch_pending_stop. Push pending
851 2020-04-08 Tom Tromey <tromey@adacore.com>
853 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
854 (win32_process_target::supports_stopped_by_sw_breakpoint):
856 * win32-low.c (win32_supports_z_point_type): Always handle
858 (win32_insert_point): Call insert_memory_breakpoint when needed.
859 (win32_remove_point): Call remove_memory_breakpoint when needed.
860 (win32_process_target::stopped_by_sw_breakpoint)
861 (win32_process_target::supports_stopped_by_sw_breakpoint): New
863 (win32_target_ops): Update.
864 (maybe_adjust_pc): New function.
865 (win32_wait): Call maybe_adjust_pc.
867 2020-04-08 Tom Tromey <tromey@adacore.com>
869 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
871 * win32-i386-low.c (the_low_target): Update.
872 * win32-arm-low.c (the_low_target): Update.
874 2020-04-08 Tom Tromey <tromey@adacore.com>
876 * win32-low.h (win32_process_target::read_pc)
877 (win32_process_target::write_pc): Declare.
878 * win32-low.c (win32_process_target::read_pc)
879 (win32_process_target::write_pc): New methods.
880 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
882 (the_low_target): Update.
883 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
885 (the_low_target): Update.
887 2020-04-08 Tom Tromey <tromey@adacore.com>
889 * win32-low.c (win32_kill, get_child_debug_event): Use
890 wait_for_debug_event.
892 2020-04-08 Tom Tromey <tromey@adacore.com>
894 * win32-low.c (child_continue): Call continue_last_debug_event.
896 2020-04-08 Tom Tromey <tromey@adacore.com>
898 * win32-low.c (handle_exception): Remove.
899 (windows_nat::handle_ms_vc_exception): New function.
900 (get_child_debug_event): Add "continue_status" parameter.
902 (win32_wait): Update.
904 2020-04-08 Tom Tromey <tromey@adacore.com>
906 * win32-low.c (windows_nat::handle_load_dll): Rename from
907 handle_load_dll. No longer static.
908 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
911 2020-04-08 Tom Tromey <tromey@adacore.com>
913 * win32-low.c (handle_output_debug_string): Add parameter. Change
915 (win32_kill, get_child_debug_event): Update.
917 2020-04-08 Tom Tromey <tromey@adacore.com>
919 * win32-low.c (current_process_handle, current_process_id)
920 (main_thread_id, last_sig, current_event, siginfo_er): Move to
923 2020-04-08 Tom Tromey <tromey@adacore.com>
925 * win32-low.c (get_image_name): Remove.
926 (handle_load_dll): Update.
928 2020-04-08 Tom Tromey <tromey@adacore.com>
930 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
931 No longer static. Change parameters.
932 (child_add_thread, child_fetch_inferior_registers)
933 (child_store_inferior_registers, win32_resume)
934 (win32_get_tib_address): Update.
936 2020-04-08 Tom Tromey <tromey@adacore.com>
938 * win32-low.h (struct win32_target_ops): Use qualified names where
940 * win32-i386-low.c: Add "using namespace".
941 * win32-low.c: Add "using namespace".
942 * win32-arm-low.c: Add "using namespace".
944 2020-04-08 Tom Tromey <tromey@adacore.com>
946 * win32-low.c (delete_thread_info): Don't call CloseHandle.
948 2020-04-08 Tom Tromey <tromey@adacore.com>
950 * win32-low.c (win32_require_context, suspend_one_thread): Use
951 windows_thread_info::suspend.
952 (continue_one_thread): Use windows_thread_info::resume.
953 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
955 2020-04-08 Tom Tromey <tromey@adacore.com>
957 * win32-i386-low.c (update_debug_registers)
958 (i386_prepare_to_resume, i386_thread_added): Update.
960 2020-04-08 Tom Tromey <tromey@adacore.com>
962 * win32-low.c (child_add_thread): Use new.
963 (delete_thread_info): Use delete.
965 2020-04-08 Tom Tromey <tromey@adacore.com>
967 * win32-low.h (struct windows_thread_info): Remove.
969 2020-04-08 Tom Tromey <tromey@adacore.com>
971 * win32-low.h (struct windows_thread_info): Rename from
972 win32_thread_info. Remove typedef.
973 (struct win32_target_ops, win32_require_context): Update.
974 * win32-low.c (win32_get_thread_context)
975 (win32_set_thread_context, win32_prepare_to_resume)
976 (win32_require_context, thread_rec, child_add_thread)
977 (delete_thread_info, continue_one_thread)
978 (child_fetch_inferior_registers, child_store_inferior_registers)
979 (win32_resume, suspend_one_thread, win32_get_tib_address):
981 * win32-i386-low.c (update_debug_registers)
982 (win32_get_current_dr, i386_get_thread_context)
983 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
984 (i386_fetch_inferior_register, i386_store_inferior_register):
986 * win32-arm-low.c (arm_get_thread_context)
987 (arm_fetch_inferior_register, arm_store_inferior_register):
990 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
992 * linux-low.h (struct linux_target_ops): Remove.
993 (the_low_target): Remove.
994 * linux-x86-low.cc (the_low_target): Remove.
995 * linux-aarch64-low.cc (the_low_target): Ditto.
996 * linux-arm-low.cc (the_low_target): Ditto.
997 * linux-bfin-low.cc (the_low_target): Ditto.
998 * linux-cris-low.cc (the_low_target): Ditto.
999 * linux-crisv32-low.cc (the_low_target): Ditto.
1000 * linux-ia64-low.cc (the_low_target): Ditto.
1001 * linux-m32r-low.cc (the_low_target): Ditto.
1002 * linux-m68k-low.cc (the_low_target): Ditto.
1003 * linux-mips-low.cc (the_low_target): Ditto.
1004 * linux-nios2-low.cc (the_low_target): Ditto.
1005 * linux-ppc-low.cc (the_low_target): Ditto.
1006 * linux-riscv-low.cc (the_low_target): Ditto.
1007 * linux-s390-low.cc (the_low_target): Ditto.
1008 * linux-sh-low.cc (the_low_target): Ditto.
1009 * linux-sparc-low.cc (the_low_target): Ditto.
1010 * linux-tic6x-low.cc (the_low_target): Ditto.
1011 * linux-tile-low.cc (the_low_target): Ditto.
1012 * linux-xtensa-low.cc (the_low_target): Ditto.
1014 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
1017 linux target define the op by overriding the declaration in
1018 process_stratum_target.
1020 * linux-low.h (struct linux_target_ops): Remove the op.
1021 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
1022 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
1023 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
1024 (x86_get_ipa_tdesc_idx): Turn into...
1025 (x86_target::get_ipa_tdesc_idx): ...this.
1026 (the_low_target): Remove the op field.
1027 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
1028 (ppc_get_ipa_tdesc_idx): Turn into...
1029 (ppc_target::get_ipa_tdesc_idx): ...this.
1030 (the_low_target): Remove the op field.
1031 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
1032 (s390_get_ipa_tdesc_idx): Turn into...
1033 (s390_target::get_ipa_tdesc_idx): ...this.
1034 (the_low_target): Remove the op field.
1036 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1038 Turn the 'get_syscall_trapinfo' linux target op into a method
1039 of process_stratum_target.
1041 * linux-low.h (struct linux_target_ops): Remove the op.
1042 (class linux_process_target) <get_syscall_trapinfo>
1043 <gdb_catch_this_syscall>
1044 <low_supports_catch_syscall>
1045 <low_get_syscall_trapinfo>: Declare.
1046 * linux-low.cc (get_syscall_trapinfo): Turn into...
1047 (linux_process_target::get_syscall_trapinfo): ...this.
1048 (linux_process_target::low_get_syscall_trapinfo): Define.
1049 (gdb_catch_this_syscall_p): Turn into...
1050 (linux_process_target::gdb_catch_this_syscall): ...this.
1051 (linux_process_target::low_supports_catch_syscall): Define.
1053 Update the callers below.
1055 (linux_process_target::wait_1)
1056 (linux_process_target::supports_catch_syscall)
1058 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1059 <low_get_syscall_trapinfo>: Declare.
1060 (x86_target::low_supports_catch_syscall): Define.
1061 (x86_get_syscall_trapinfo): Turn into...
1062 (x86_target::low_get_syscall_trapinfo): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-aarch64-low.cc (class aarch64_target)
1065 <low_supports_catch_syscall>
1066 <low_get_syscall_trapinfo>: Declare.
1067 (aarch64_target::low_supports_catch_syscall): Define.
1068 (aarch64_get_syscall_trapinfo): Turn into...
1069 (aarch64_target::low_get_syscall_trapinfo): ...this.
1070 (the_low_target): Remove the op field.
1071 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1072 <low_get_syscall_trapinfo>: Declare.
1073 (arm_target::low_supports_catch_syscall): Define.
1074 (arm_get_syscall_trapinfo): Turn into...
1075 (arm_target::low_get_syscall_trapinfo): ...this.
1076 (the_low_target): Remove the op field.
1077 * linux-ppc-low.cc (the_low_target): Remove the op field.
1078 * linux-s390-low.cc (the_low_target): Remove the op field.
1080 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1082 Remove the 'supports_hardware_single_step' linux target op and
1083 override the process_stratum_target's op definition in
1084 linux_process_target to return true.
1086 * linux-low.h (struct linux_target_ops): Remove the op.
1087 (class linux_process_target) <finish_step_over>
1088 <maybe_hw_step>: Declare.
1089 * linux-low.cc (can_hardware_single_step): Remove.
1090 (maybe_hw_step): Turn into...
1091 (linux_process_target::maybe_hw_step): ...this.
1092 (finish_step_over): Turn into...
1093 (linux_process_target::finish_step_over): ...this.
1094 (linux_process_target::supports_hardware_single_step): Update
1097 Update the callers below.
1099 (linux_process_target::single_step)
1100 (linux_process_target::resume_one_lwp_throw)
1102 * linux-arm-low.cc (class arm_target)
1103 <supports_hardware_single_step>: Declare.
1104 (arm_supports_hardware_single_step): Turn into...
1105 (arm_target::supports_hardware_single_step): ...this.
1106 (the_low_target): Remove the op field.
1107 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1108 (the_low_target): Remove the op field.
1109 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1111 (the_low_target): Remove the op field.
1112 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1113 (the_low_target): Remove the op field.
1114 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1115 (the_low_target): Remove the op field.
1116 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1117 (the_low_target): Remove the op field.
1118 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1119 (the_low_target): Remove the op field.
1120 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1121 (the_low_target): Remove the op field.
1122 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1123 (the_low_target): Remove the op field.
1124 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1125 (the_low_target): Remove the op field.
1126 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1127 (the_low_target): Remove the op field.
1128 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1129 (the_low_target): Remove the op field.
1130 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1132 (the_low_target): Remove the op field.
1134 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1136 Turn the 'supports_range_stepping' linux target op into a method
1137 of linux_process_target.
1139 * linux-low.h (struct linux_target_ops): Remove the op.
1140 (class linux_process_target) <low_supports_range_stepping>: Declare.
1141 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1143 (linux_process_target::supports_range_stepping): Update the call
1145 * linux-x86-low.cc (class x86_target)
1146 <low_supports_range_stepping>: Declare.
1147 (x86_supports_range_stepping): Turn into...
1148 (x86_target::low_supports_range_stepping): ...this.
1149 (the_low_target): Remove the op field.
1150 * linux-aarch64-low.cc (class aarch64_target)
1151 <low_supports_range_stepping>: Declare.
1152 (aarch64_supports_range_stepping): Turn into...
1153 (aarch64_target::low_supports_range_stepping): ...this.
1154 (the_low_target): Remove the op field.
1155 * linux-arm-low.cc (the_low_target): Remove the op field.
1156 * linux-bfin-low.cc (the_low_target): Ditto.
1157 * linux-crisv32-low.cc (the_low_target): Ditto.
1158 * linux-m32r-low.cc (the_low_target): Ditto.
1159 * linux-m68k-low.cc (the_low_target): Ditto.
1160 * linux-ppc-low.cc (the_low_target): Ditto.
1161 * linux-s390-low.cc (the_low_target): Ditto.
1162 * linux-sh-low.cc (the_low_target): Ditto.
1163 * linux-tic6x-low.cc (the_low_target): Ditto.
1164 * linux-tile-low.cc (the_low_target): Ditto.
1165 * linux-xtensa-low.cc (the_low_target): Ditto.
1167 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1169 Remove the 'emit_ops' linux target ops and let the concrete
1170 linux target define the op by overriding the declaration of
1171 process_stratum_target.
1173 * linux-low.h (struct linux_target_ops): Remove the op.
1174 (class linux_process_target) <emit_ops>: Remove.
1175 * linux-low.cc (linux_process_target::emit_ops): Remove.
1176 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1177 (x86_emit_ops): Turn into...
1178 (x86_target::emit_ops): ...this.
1179 (the_low_target): Remove the op field.
1180 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1181 (aarch64_emit_ops): Turn into...
1182 (aarch64_target::emit_ops): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1185 (ppc_emit_ops): Turn into...
1186 (ppc_target::emit_ops): ...this.
1187 (the_low_target): Remove the op field.
1188 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1189 (s390_emit_ops): Turn into...
1190 (s390_target::emit_ops): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-arm-low.cc (the_low_target): Remove the op field.
1193 * linux-bfin-low.cc (the_low_target): Ditto.
1194 * linux-crisv32-low.cc (the_low_target): Ditto.
1195 * linux-m32r-low.cc (the_low_target): Ditto.
1196 * linux-m68k-low.cc (the_low_target): Ditto.
1197 * linux-sh-low.cc (the_low_target): Ditto.
1198 * linux-tic6x-low.cc (the_low_target): Ditto.
1199 * linux-tile-low.cc (the_low_target): Ditto.
1200 * linux-xtensa-low.cc (the_low_target): Ditto.
1202 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1204 Remove the 'install_fast_tracepoint_jump_pad' and
1205 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1206 concrete linux target define the ops by overriding the declarations
1207 of process_stratum_target.
1209 * linux-low.h (struct linux_target_ops): Remove the ops.
1210 (class linux_process_target) <supports_fast_tracepoints>
1211 <install_fast_tracepoint_jump_pad>
1212 <get_min_fast_tracepoint_insn_len>: Remove.
1213 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1214 (linux_process_target::install_fast_tracepoint_jump_pad)
1215 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1216 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1217 <install_fast_tracepoint_jump_pad>
1218 <get_min_fast_tracepoint_insn_len>: Declare.
1219 (x86_target::supports_fast_tracepoints): Define.
1220 (x86_install_fast_tracepoint_jump_pad): Turn into...
1221 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1222 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1223 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1224 (the_low_target): Remove the op fields.
1225 * linux-aarch64-low.cc (class aarch64_target)
1226 <supports_fast_tracepoints>
1227 <install_fast_tracepoint_jump_pad>
1228 <get_min_fast_tracepoint_insn_len>: Declare.
1229 (aarch64_target::supports_fast_tracepoints): Define.
1230 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1231 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1232 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1233 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1234 (the_low_target): Remove the op fields.
1235 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1236 <install_fast_tracepoint_jump_pad>
1237 <get_min_fast_tracepoint_insn_len>: Declare.
1238 (ppc_target::supports_fast_tracepoints): Define.
1239 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1240 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1241 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1242 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1243 (the_low_target): Remove the op fields.
1244 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1245 <install_fast_tracepoint_jump_pad>
1246 <get_min_fast_tracepoint_insn_len>: Declare.
1247 (s390_target::supports_fast_tracepoints): Define.
1248 (s390_install_fast_tracepoint_jump_pad): Turn into...
1249 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1250 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1251 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1252 (the_low_target): Remove the op fields.
1253 * linux-arm-low.cc (the_low_target): Remove the op fields.
1254 * linux-bfin-low.cc (the_low_target): Ditto.
1255 * linux-crisv32-low.cc (the_low_target): Ditto.
1256 * linux-m32r-low.cc (the_low_target): Ditto.
1257 * linux-m68k-low.cc (the_low_target): Ditto.
1258 * linux-sh-low.cc (the_low_target): Ditto.
1259 * linux-tic6x-low.cc (the_low_target): Ditto.
1260 * linux-tile-low.cc (the_low_target): Ditto.
1261 * linux-xtensa-low.cc (the_low_target): Ditto.
1263 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1265 Turn the 'get_thread_area' linux target op into a method of
1266 process_stratum_target.
1268 * linux-low.h (struct linux_target_ops): Remove the op.
1269 (class linux_process_target) <stuck_in_jump_pad>
1270 <linux_fast_tracepoint_collecting>
1271 <low_get_thread_area>: Declare.
1272 * linux-low.cc (supports_fast_tracepoints): Remove.
1273 (linux_fast_tracepoint_collecting): Turn into...
1274 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1275 (linux_process_target::low_get_thread_area): Define.
1276 (stuck_in_jump_pad_callback): Turn into...
1277 (linux_process_target::stuck_in_jump_pad): ...this.
1279 Update the caller below.
1281 (linux_process_target::stabilize_threads)
1283 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1285 (x86_get_thread_area): Turn into...
1286 (x86_target::low_get_thread_area): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1290 (aarch64_get_thread_area): Turn into...
1291 (aarch64_target::low_get_thread_area): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1295 (ppc_get_thread_area): Turn into...
1296 (ppc_target::low_get_thread_area): ...this.
1297 (the_low_target): Remove the op field.
1298 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1300 (s390_get_thread_area): Turn into...
1301 (s390_target::low_get_thread_area): ...this.
1302 (the_low_target): Remove the op field.
1303 * linux-arm-low.cc (the_low_target): Remove the op field.
1304 * linux-bfin-low.cc (the_low_target): Ditto.
1305 * linux-crisv32-low.cc (the_low_target): Ditto.
1306 * linux-m32r-low.cc (the_low_target): Ditto.
1307 * linux-m68k-low.cc (the_low_target): Ditto.
1308 * linux-sh-low.cc (the_low_target): Ditto.
1309 * linux-tic6x-low.cc (the_low_target): Ditto.
1310 * linux-tile-low.cc (the_low_target): Ditto.
1311 * linux-xtensa-low.cc (the_low_target): Ditto.
1313 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1315 Remote the 'supports_tracepoints' linux target op and let the
1316 concrete linux target define it by overriding the op declared in
1317 process_stratum_target.
1319 * linux-low.h (struct linux_target_ops): Remove the op.
1320 (class linux_process_target) <supports_tracepoints>: Remove.
1321 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1322 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1324 (x86_supports_tracepoints): Turn into...
1325 (x86_target::supports_tracepoints): ...this.
1326 (the_low_target): Remove the op field.
1327 * linux-aarch64-low.cc (class aarch64_target)
1328 <supports_tracepoints>: Declare.
1329 (aarch64_supports_tracepoints): Turn into...
1330 (aarch64_target::supports_tracepoints): ...this.
1331 (the_low_target): Remove the op field.
1332 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1334 (ppc_supports_tracepoints): Turn into...
1335 (ppc_target::supports_tracepoints): ...this.
1336 (the_low_target): Remove the op field.
1337 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1339 (s390_supports_tracepoints): Turn into...
1340 (s390_target::supports_tracepoints): ...this.
1341 (the_low_target): Remove the op field.
1342 * linux-arm-low.cc (the_low_target): Remove the op field.
1343 * linux-bfin-low.cc (the_low_target): Ditto.
1344 * linux-crisv32-low.cc (the_low_target): Ditto.
1345 * linux-m32r-low.cc (the_low_target): Ditto.
1346 * linux-m68k-low.cc (the_low_target): Ditto.
1347 * linux-sh-low.cc (the_low_target): Ditto.
1348 * linux-tic6x-low.cc (the_low_target): Ditto.
1349 * linux-tile-low.cc (the_low_target): Ditto.
1350 * linux-xtensa-low.cc (the_low_target): Ditto.
1352 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1354 Remove the 'process_qsupported' linux target op and let a concrete
1355 linux target define the op by overriding the op declaration in
1356 process_stratum_target.
1358 * linux-low.h (struct linux_target_ops): Remove the op.
1359 (class linux_process_target) <process_qsupported>: Remove.
1360 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1361 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1362 (x86_linux_process_qsupported): Turn into...
1363 (x86_target::process_qsupported): ...this.
1364 (the_low_target): Remove the op field.
1365 * linux-aarch64-low.cc (the_low_target): Remove the op
1367 * linux-arm-low.cc (the_low_target): Ditto.
1368 * linux-bfin-low.cc (the_low_target): Ditto.
1369 * linux-crisv32-low.cc (the_low_target): Ditto.
1370 * linux-m32r-low.cc (the_low_target): Ditto.
1371 * linux-m68k-low.cc (the_low_target): Ditto.
1372 * linux-ppc-low.cc (the_low_target): Ditto.
1373 * linux-s390-low.cc (the_low_target): Ditto.
1374 * linux-sh-low.cc (the_low_target): Ditto.
1375 * linux-tic6x-low.cc (the_low_target): Ditto.
1376 * linux-tile-low.cc (the_low_target): Ditto.
1377 * linux-xtensa-low.cc (the_low_target): Ditto.
1379 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1381 Turn the 'prepare_to_resume' linux target op into a method of
1382 linux_process_target.
1384 * linux-low.h (struct linux_target_ops): Remove the op.
1385 (class linux_process_target) <low_prepare_to_resume>: Declare.
1386 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1389 Update the callers below:
1391 (linux_process_target::resume_one_lwp_throw)
1392 (linux_process_target::low_prepare_to_resume)
1394 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1396 (x86_target::low_prepare_to_resume): Define.
1397 (the_low_target): Remove the op field.
1398 * linux-aarch64-low.cc (class aarch64_target)
1399 <low_prepare_to_resume>: Declare.
1400 (aarch64_target::low_prepare_to_resume): Define.
1401 (the_low_target): Remove the op field.
1402 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1404 (arm_prepare_to_resume): Turn into...
1405 (arm_target::low_prepare_to_resume): ...this.
1406 (the_low_target): Remove the op field.
1407 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1409 (mips_linux_prepare_to_resume): Turn into...
1410 (mips_target::low_prepare_to_resume): ...this.
1411 (the_low_target): Remove the op field.
1412 * linux-bfin-low.cc (the_low_target): Remove the op field.
1413 * linux-crisv32-low.cc (the_low_target): Ditto.
1414 * linux-m32r-low.cc (the_low_target): Ditto.
1415 * linux-m68k-low.cc (the_low_target): Ditto.
1416 * linux-ppc-low.cc (the_low_target): Ditto.
1417 * linux-s390-low.cc (the_low_target): Ditto.
1418 * linux-sh-low.cc (the_low_target): Ditto.
1419 * linux-tic6x-low.cc (the_low_target): Ditto.
1420 * linux-tile-low.cc (the_low_target): Ditto.
1421 * linux-xtensa-low.cc (the_low_target): Ditto.
1423 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1425 Turn the 'new_process', 'delete_process', 'new_thread',
1426 'delete_thread', and 'new_fork' linux target ops into methods
1427 of linux_process_target.
1429 * linux-low.h (struct linux_target_ops): Remove the ops.
1430 (class linux_process_target) <add_linux_process>
1435 <check_zombie_leaders>
1438 <low_delete_process>
1441 <low_new_fork>: Declare.
1442 * linux-low.cc (delete_lwp): Turn into...
1443 (linux_process_target::delete_lwp): ...this.
1444 (linux_process_target::low_delete_thread): Define.
1445 (linux_add_process): Turn into...
1446 (linux_process_target::add_linux_process): ...this.
1447 (linux_process_target::low_new_process): Define.
1448 (linux_process_target::low_delete_process): Define.
1449 (linux_process_target::low_new_fork): Define.
1450 (add_lwp): Turn into...
1451 (linux_process_target::add_lwp): ...this.
1452 (linux_process_target::low_new_thread): Define.
1453 (linux_attach_lwp): Turn into...
1454 (linux_process_target::attach_lwp): ...this.
1455 (linux_detach_one_lwp): Turn into...
1456 (linux_process_target::detach_one_lwp): ...this.
1457 (linux_detach_lwp_callback): Remove and inline...
1458 (linux_process_target::detach): ...here.
1459 (check_zombie_leaders): Turn into...
1460 (linux_process_target::check_zombie_leaders): ...this.
1461 (filter_exit_event): Turn into...
1462 (linux_process_target::filter_exit_event): ...this.
1464 Update the callers below.
1466 (linux_process_target::handle_extended_wait)
1467 (linux_process_target::create_inferior)
1468 (attach_proc_task_lwp_callback)
1469 (linux_process_target::attach)
1470 (linux_process_target::detach)
1471 (linux_process_target::mourn)
1472 * thread-db.cc (attach_thread)
1474 * linux-x86-low.cc (class x86_target) <low_new_process>
1475 <low_delete_process>
1478 <low_new_fork>: Declare.
1479 (x86_linux_new_process): Turn into...
1480 (x86_target::low_new_process): ...this.
1481 (x86_linux_delete_process): Turn into...
1482 (x86_target::low_delete_process): ...this.
1483 (x86_target::low_new_thread): Define.
1484 (x86_target::low_delete_thread): Define.
1485 (x86_linux_new_fork): Turn into...
1486 (x86_target::low_new_fork): ...this.
1487 (the_low_target): Remove the op fields.
1488 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1489 <low_delete_process>
1492 <low_new_fork>: Declare.
1493 (aarch64_linux_new_process): Turn into...
1494 (aarch64_target::low_new_process): ...this.
1495 (aarch64_linux_delete_process): Turn into...
1496 (aarch64_target::low_delete_process): ...this.
1497 (aarch64_target::low_new_thread): Define.
1498 (aarch64_target::low_delete_thread): Define.
1499 (aarch64_linux_new_fork): Turn into...
1500 (aarch64_target::low_new_fork): ...this.
1501 (the_low_target): Remove the op fields.
1502 * linux-arm-low.cc (class arm_target) <low_new_process>
1503 <low_delete_process>
1506 <low_new_fork>: Declare.
1507 (arm_new_process): Turn into...
1508 (arm_target::low_new_process): ...this.
1509 (arm_delete_process): Turn into...
1510 (arm_target::low_delete_process): ...this.
1511 (arm_new_thread): Turn into...
1512 (arm_target::low_new_thread): ...this.
1513 (arm_delete_thread): Turn into...
1514 (arm_target::low_delete_thread): ...this.
1515 (arm_new_fork): Turn into...
1516 (arm_target::low_new_fork): ...this.
1517 (the_low_target): Remove the op fields.
1518 * linux-mips-low.cc (class mips_target) <low_new_process>
1519 <low_delete_process>
1522 <low_new_fork>: Declare.
1523 (mips_linux_new_process): Turn into...
1524 (mips_target::low_new_process): ...this.
1525 (mips_linux_delete_process): Turn into...
1526 (mips_target::low_delete_process): ...this.
1527 (mips_linux_new_thread): Turn into...
1528 (mips_target::low_new_thread): ...this.
1529 (mips_linux_delete_thread): Turn into...
1530 (mips_target::low_delete_thread): ...this.
1531 (mips_linux_new_fork): Turn into...
1532 (mips_target::low_new_fork): ...this.
1533 (the_low_target): Remove the op fields.
1534 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1535 * linux-crisv32-low.cc (the_low_target): Ditto.
1536 * linux-m32r-low.cc (the_low_target): Ditto.
1537 * linux-m68k-low.cc (the_low_target): Ditto.
1538 * linux-ppc-low.cc (the_low_target): Ditto.
1539 * linux-s390-low.cc (the_low_target): Ditto.
1540 * linux-sh-low.cc (the_low_target): Ditto.
1541 * linux-tic6x-low.cc (the_low_target): Ditto.
1542 * linux-tile-low.cc (the_low_target): Ditto.
1543 * linux-xtensa-low.cc (the_low_target): Ditto.
1545 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1547 Turn the 'siginfo_fixup' linux target op into a method of
1548 linux_process_target.
1550 * linux-low.h (struct linux_target_ops): Remove the op.
1551 (class linux_process_target) <siginfo_fixup>
1552 <low_siginfo_fixup>: Declare.
1553 * linux-low.cc (siginfo_fixup): Turn into...
1554 (linux_process_target::siginfo_fixup): ...this.
1555 (linux_process_target::low_siginfo_fixup): Define.
1556 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1557 (x86_siginfo_fixup): Turn into...
1558 (x86_target::low_siginfo_fixup): ...this.
1559 (the_low_target): Remove the op field.
1560 * linux-aarch64-low.cc (class aarch64_target):
1561 <low_siginfo_fixup>: Declare.
1562 (aarch64_linux_siginfo_fixup): Turn into...
1563 (aarch64_target::low_siginfo_fixup): ...this.
1564 (the_low_target): Remove the op field.
1565 * linux-arm-low.cc (the_low_target): Remove the op field.
1566 * linux-bfin-low.cc (the_low_target): Ditto.
1567 * linux-crisv32-low.cc (the_low_target): Ditto.
1568 * linux-m32r-low.cc (the_low_target): Ditto.
1569 * linux-m68k-low.cc (the_low_target): Ditto.
1570 * linux-mips-low.cc (the_low_target): Ditto.
1571 * linux-ppc-low.cc (the_low_target): Ditto.
1572 * linux-s390-low.cc (the_low_target): Ditto.
1573 * linux-sh-low.cc (the_low_target): Ditto.
1574 * linux-tic6x-low.cc (the_low_target): Ditto.
1575 * linux-tile-low.cc (the_low_target): Ditto.
1576 * linux-xtensa-low.cc (the_low_target): Ditto.
1578 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1580 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1581 linux target ops into methods of linux_process_target.
1583 * linux-low.h (struct linux_target_ops): Remove the ops.
1584 (class linux_process_target) <low_collect_ptrace_register>
1585 <low_store_ptrace_register>: Declare.
1586 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1587 (linux_process_target::low_supply_ptrace_register): Define.
1589 Update the callers below.
1591 (linux_process_target::fetch_register)
1592 (linux_process_target::store_register)
1594 * linux-x86-low.cc (the_low_target): Remove the op fields.
1595 * linux-aarch64-low.cc (the_low_target): Ditto.
1596 * linux-arm-low.cc (the_low_target): Ditto.
1597 * linux-bfin-low.cc (the_low_target): Ditto.
1598 * linux-crisv32-low.cc (the_low_target): Ditto.
1599 * linux-m32r-low.cc (the_low_target): Ditto.
1600 * linux-m68k-low.cc (the_low_target): Ditto.
1601 * linux-sh-low.cc (the_low_target): Ditto.
1602 * linux-sparc-low.cc (the_low_target): Ditto.
1603 * linux-tic6x-low.cc (the_low_target): Ditto.
1604 * linux-tile-low.cc (the_low_target): Ditto.
1605 * linux-xtensa-low.cc (the_low_target): Ditto.
1606 * linux-mips-low.cc (class mips_target)
1607 <low_collect_ptrace_register>
1608 <low_supply_ptrace_register>: Declare.
1609 (mips_collect_ptrace_register): Turn into ...
1610 (mips_target::low_collect_ptrace_register): ...this.
1611 (mips_supply_ptrace_register): Turn into...
1612 (mips_target::low_supply_ptrace_register): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-ppc-low.cc (class ppc_target)
1615 <low_collect_ptrace_register>
1616 <low_supply_ptrace_register>: Declare.
1617 (ppc_collect_ptrace_register): Turn into ...
1618 (ppc_target::low_collect_ptrace_register): ...this.
1619 (ppc_supply_ptrace_register): Turn into ...
1620 (ppc_target::low_supply_ptrace_register): ...this.
1621 (ppc_fill_gregset): Update for the calls to
1622 low_collect_ptrace_register.
1623 (the_low_target): Remove the op fields.
1624 * linux-s390-low.cc (class s390_target)
1625 <low_collect_ptrace_register>
1626 <low_supply_ptrace_register>: Declare.
1627 (s390_collect_ptrace_register): Turn into ...
1628 (s390_target::low_collect_ptrace_register): ...this.
1629 (s390_supply_ptrace_register): Turn into ...
1630 (s390_target::low_supply_ptrace_register): ...this.
1631 (s390_fill_gregset): Update for the calls to
1632 low_collect_ptrace_register.
1633 (the_low_target): Remove the op fields.
1635 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1637 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1638 target ops into methods of linux_process_target.
1640 * linux-low.h (struct linux_target_ops): Remove the ops.
1641 (class linux_process_target) <check_stopped_by_watchpoint>
1642 <low_stopped_by_watchpoint>
1643 <low_stopped_data_address>: Declare.
1644 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1645 (linux_process_target::check_stopped_by_watchpoint): ...this.
1646 (linux_process_target::low_stopped_by_watchpoint): Define.
1647 (linux_process_target::low_stopped_data_address): Define.
1648 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1649 <low_stopped_data_address>: Declare.
1650 (x86_stopped_by_watchpoint): Turn into...
1651 (x86_target::low_stopped_by_watchpoint): ...this.
1652 (x86_stopped_data_address): Turn into...
1653 (x86_target::low_stopped_data_address): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-aarch64-low.cc (class aarch64_target)
1656 <low_stopped_by_watchpoint>
1657 <low_stopped_data_address>: Declare.
1658 (aarch64_stopped_by_watchpoint): Turn into...
1659 (aarch64_target::low_stopped_by_watchpoint): ...this.
1660 (aarch64_stopped_data_address): Turn into...
1661 (aarch64_target::low_stopped_data_address): ...this.
1662 (the_low_target): Remove the op fields.
1663 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1664 <low_stopped_data_address>: Declare.
1665 (arm_stopped_by_watchpoint): Turn into...
1666 (arm_target::low_stopped_by_watchpoint): ...this.
1667 (arm_stopped_data_address): Turn into...
1668 (arm_target::low_stopped_data_address): ...this.
1669 (the_low_target): Remove the op fields.
1670 * linux-crisv32-low.cc (class crisv32_target)
1671 <low_stopped_by_watchpoint>
1672 <low_stopped_data_address>: Declare.
1673 (cris_stopped_by_watchpoint): Turn into...
1674 (crisv32_target::low_stopped_by_watchpoint): ...this.
1675 (cris_stopped_data_address): Turn into...
1676 (crisv32_target::low_stopped_data_address): ...this.
1677 (the_low_target): Remove the op fields.
1678 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1679 <low_stopped_data_address>: Declare.
1680 (mips_stopped_by_watchpoint): Turn into...
1681 (mips_target::low_stopped_by_watchpoint): ...this.
1682 (mips_stopped_data_address): Turn into...
1683 (mips_target::low_stopped_data_address): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1686 * linux-m32r-low.cc (the_low_target): Ditto.
1687 * linux-m68k-low.cc (the_low_target): Ditto.
1688 * linux-ppc-low.cc (the_low_target): Ditto.
1689 * linux-s390-low.cc (the_low_target): Ditto.
1690 * linux-sh-low.cc (the_low_target): Ditto.
1691 * linux-sparc-low.cc (the_low_target): Ditto.
1692 * linux-tic6x-low.cc (the_low_target): Ditto.
1693 * linux-tile-low.cc (the_low_target): Ditto.
1694 * linux-xtensa-low.cc (the_low_target): Ditto.
1696 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1698 Turn the 'insert_point' and 'remove_point' linux target ops into
1699 methods of linux_process_target.
1701 * linux-low.h (struct linux_target_ops): Remove the ops.
1702 (class linux_process_target) <low_insert_point>
1703 <low_remove_point>: Declare.
1704 * linux-low.cc (linux_process_target::low_insert_point)
1705 (linux_process_target::low_remove_point): Define.
1706 (linux_process_target::insert_point)
1707 (linux_process_target::remove_point): Update for calls to
1708 low_insert_point and low_remove_point.
1709 * linux-x86-low.cc (class x86_target) <low_insert_point>
1710 <low_remove_point>: Declare.
1711 (x86_insert_point): Turn into...
1712 (x86_target::low_insert_point): ...this.
1713 (x86_remove_point): Turn into...
1714 (x86_target::low_remove_point): ...this.
1715 (the_low_target): Remove the op fields.
1716 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1717 <low_remove_point>: Declare.
1718 (aarch64_insert_point): Turn into...
1719 (aarch64_target::low_insert_point): ...this.
1720 (aarch64_remove_point): Turn into...
1721 (aarch64_target::low_remove_point): ...this.
1722 (the_low_target): Remove the op fields.
1723 * linux-arm-low.cc (class arm_target) <low_insert_point>
1724 <low_remove_point>: Declare.
1725 (arm_insert_point): Turn into...
1726 (arm_target::low_insert_point): ...this.
1727 (arm_remove_point): Turn into...
1728 (arm_target::low_remove_point): ...this.
1729 (the_low_target): Remove the op fields.
1730 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1731 <low_remove_point>: Declare.
1732 (crisv32_insert_point): Turn into...
1733 (crisv32_target::low_insert_point): ...this.
1734 (crisv32_remove_point): Turn into...
1735 (crisv32_target::low_remove_point): ...this.
1736 (the_low_target): Remove the op fields.
1737 * linux-mips-low.cc (class mips_target) <low_insert_point>
1738 <low_remove_point>: Declare.
1739 (mips_insert_point): Turn into...
1740 (mips_target::low_insert_point): ...this.
1741 (mips_remove_point): Turn into...
1742 (mips_target::low_remove_point): ...this.
1743 (the_low_target): Remove the op fields.
1744 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1745 <low_remove_point>: Declare.
1746 (ppc_insert_point): Turn into...
1747 (ppc_target::low_insert_point): ...this.
1748 (ppc_remove_point): Turn into...
1749 (ppc_target::low_remove_point): ...this.
1750 (the_low_target): Remove the op fields.
1751 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1752 * linux-m32r-low.cc (the_low_target): Ditto.
1753 * linux-m68k-low.cc (the_low_target): Ditto.
1754 * linux-s390-low.cc (the_low_target): Ditto.
1755 * linux-sh-low.cc (the_low_target): Ditto.
1756 * linux-sparc-low.cc (the_low_target): Ditto.
1757 * linux-tic6x-low.cc (the_low_target): Ditto.
1758 * linux-tile-low.cc (the_low_target): Ditto.
1759 * linux-xtensa-low.cc (the_low_target): Ditto.
1761 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1763 Remove the 'supports_z_point_type' linux target op and let the
1764 concrete linux target define it by overriding the op declared in
1765 process_stratum_target.
1767 * linux-low.cc (linux_process_target::supports_z_point_type):
1769 * linux-low.h (struct linux_target_ops): Remove the op.
1770 (class linux_process_target) <supports_z_point_type>: Remove.
1771 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1773 (x86_supports_z_point_type): Turn into...
1774 (x86_target::supports_z_point_type): ...this.
1775 (the_low_target): Remove the op field.
1776 * linux-aarch64-low.cc (class aarch64_target)
1777 <supports_z_point_type>: Declare.
1778 (aarch64_supports_z_point_type): Turn into...
1779 (aarch64_target::supports_z_point_type): ...this.
1780 (the_low_target): Remove the op field.
1781 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1783 (arm_supports_z_point_type): Turn into...
1784 (arm_target::supports_z_point_type): ...this.
1785 (the_low_target): Remove the op field.
1786 * linux-crisv32-low.cc (class crisv32_target)
1787 <supports_z_point_type>: Declare.
1788 (cris_supports_z_point_type): Turn into...
1789 (crisv32_target::supports_z_point_type): ...this.
1790 (the_low_target): Remove the op field.
1791 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1793 (mips_supports_z_point_type): Turn into...
1794 (mips_target::supports_z_point_type): ...this.
1795 (the_low_target): Remove the op field.
1796 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1798 (ppc_supports_z_point_type): Turn into...
1799 (ppc_target::supports_z_point_type): ...this.
1800 (the_low_target): Remove the op field.
1801 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1803 (s390_supports_z_point_type): Turn into...
1804 (s390_target::supports_z_point_type): ...this.
1805 (the_low_target): Remove the op field.
1806 * linux-bfin-low.cc (the_low_target): Remove the op field.
1807 * linux-m32r-low.cc (the_low_target): Ditto.
1808 * linux-m68k-low.cc (the_low_target): Ditto.
1809 * linux-sh-low.cc (the_low_target): Ditto.
1810 * linux-sparc-low.cc (the_low_target): Ditto.
1811 * linux-tic6x-low.cc (the_low_target): Ditto.
1812 * linux-tile-low.cc (the_low_target): Ditto.
1813 * linux-xtensa-low.cc (the_low_target): Ditto.
1815 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1817 Turn the 'breakpoint_at' linux target op into a method of
1818 linux_process_target.
1820 * linux-low.h (struct linux_target_ops): Remove the op.
1821 (class linux_process_target) <low_breakpoint_at>: Declare.
1823 Update the callers below:
1825 * linux-low.cc (linux_process_target::save_stop_reason)
1826 (linux_process_target::thread_still_has_status_pending)
1827 (linux_process_target::wait_1)
1829 * linux-x86-low.cc (class x86_target)
1830 <low_breakpoint_at>: Declare.
1831 (x86_breakpoint_at): Turn into...
1832 (x86_target::low_breakpoint_at): ...this.
1833 (the_low_target): Remove the op field.
1834 * linux-aarch64-low.cc (class aarch64_target)
1835 <low_breakpoint_at>: Declare.
1836 (aarch64_breakpoint_at): Turn into...
1837 (aarch64_target::low_breakpoint_at): ...this.
1838 (the_low_target): Remove the op field.
1839 * linux-arm-low.cc (class arm_target)
1840 <low_breakpoint_at>: Declare.
1841 (arm_target::low_breakpoint_at): Define.
1842 (the_low_target): Remove the op field.
1843 * linux-bfin-low.cc (class bfin_target)
1844 <low_breakpoint_at>: Declare.
1845 (bfin_breakpoint_at): Turn into...
1846 (bfin_target::low_breakpoint_at): ...this.
1847 (the_low_target): Remove the op field.
1848 * linux-cris-low.cc (class cris_target)
1849 <low_breakpoint_at>: Declare.
1850 (cris_breakpoint_at): Turn into...
1851 (cris_target::low_breakpoint_at): ...this.
1852 (the_low_target): Remove the op field.
1853 * linux-crisv32-low.cc (class crisv32_target)
1854 <low_breakpoint_at>: Declare.
1855 (crisv32_breakpoint_at): Turn into...
1856 (crisv32_target::low_breakpoint_at): ...this.
1857 (the_low_target): Remove the op field.
1858 * linux-ia64-low.cc (class ia64_target)
1859 <low_breakpoint_at>: Declare.
1860 (ia64_target::low_breakpoint_at): Define.
1861 * linux-m32r-low.cc (class m32r_target)
1862 <low_breakpoint_at>: Declare.
1863 (m32r_breakpoint_at): Turn into...
1864 (m32r_target::low_breakpoint_at): ...this.
1865 (the_low_target): Remove the op field.
1866 * linux-m68k-low.cc (class m68k_target)
1867 <low_breakpoint_at>: Declare.
1868 (m68k_breakpoint_at): Turn into...
1869 (m68k_target::low_breakpoint_at): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-mips-low.cc (class mips_target)
1872 <low_breakpoint_at>: Declare.
1873 (mips_breakpoint_at): Turn into...
1874 (mips_target::low_breakpoint_at): ...this.
1875 (the_low_target): Remove the op field.
1876 * linux-nios2-low.cc (class nios2_target)
1877 <low_breakpoint_at>: Declare.
1878 (nios2_breakpoint_at): Turn into...
1879 (nios2_target::low_breakpoint_at): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-ppc-low.cc (class ppc_target)
1882 <low_breakpoint_at>: Declare.
1883 (ppc_breakpoint_at): Turn into...
1884 (ppc_target::low_breakpoint_at): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-riscv-low.cc (class riscv_target)
1887 <low_breakpoint_at>: Declare.
1888 (riscv_breakpoint_at): Turn into...
1889 (riscv_target::low_breakpoint_at): ...this.
1890 (the_low_target): Remove the op field.
1891 * linux-s390-low.cc (class s390_target)
1892 <low_breakpoint_at>: Declare.
1893 (s390_breakpoint_at): Turn into...
1894 (s390_target::low_breakpoint_at): ...this.
1895 (the_low_target): Remove the op field.
1896 * linux-sh-low.cc (class sh_target)
1897 <low_breakpoint_at>: Declare.
1898 (sh_breakpoint_at): Turn into...
1899 (sh_target::low_breakpoint_at): ...this.
1900 (the_low_target): Remove the op field.
1901 * linux-sparc-low.cc (class sparc_target)
1902 <low_breakpoint_at>: Declare.
1903 (sparc_breakpoint_at): Turn into...
1904 (sparc_target::low_breakpoint_at): ...this.
1905 (the_low_target): Remove the op field.
1906 * linux-tic6x-low.cc (class tic6x_target)
1907 <low_breakpoint_at>: Declare.
1908 (tic6x_breakpoint_at): Turn into...
1909 (tic6x_target::low_breakpoint_at): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-tile-low.cc (class tile_target)
1912 <low_breakpoint_at>: Declare.
1913 (tile_breakpoint_at): Turn into...
1914 (tile_target::low_breakpoint_at): ...this.
1915 (the_low_target): Remove the op field.
1916 * linux-xtensa-low.cc (class xtensa_target)
1917 <low_breakpoint_at>: Declare.
1918 (xtensa_breakpoint_at): Turn into...
1919 (xtensa_target::low_breakpoint_at): ...this.
1920 (the_low_target): Remove the op field.
1922 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1924 Turn the 'decr_pc_after_break' linux_target_ops field into
1925 a method of linux_process_target.
1927 * linux-low.h (struct linux_target_ops)
1928 <decr_pc_after_break>: Remove.
1929 (class linux_process_target) <low_decr_pc_after_break>: New method
1931 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1932 New method implementation.
1934 Update the users below.
1936 (linux_process_target::save_stop_reason)
1937 (linux_process_target::wait_1)
1938 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1940 (x86_target::low_decr_pc_after_break): New method implementation.
1941 (the_low_target): Remove the field.
1942 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1944 (bfin_target::low_decr_pc_after_break): New method implementation.
1945 (the_low_target): Remove the field.
1946 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1948 (m68k_target::low_decr_pc_after_break): New method implementation.
1949 (the_low_target): Remove the field.
1950 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1952 (s390_target::low_decr_pc_after_break): New method implementation.
1953 (the_low_target): Remove the field.
1954 * linux-aarch64-low.cc (the_low_target): Remove the field.
1955 * linux-arm-low.cc (the_low_target): Remove the field.
1956 * linux-cris-low.cc (the_low_target): Remove the field.
1957 * linux-crisv32-low.cc (the_low_target): Remove the field.
1958 * linux-m32r-low.cc (the_low_target): Remove the field.
1959 * linux-mips-low.cc (the_low_target): Remove the field.
1960 * linux-nios2-low.cc (the_low_target): Remove the field.
1961 * linux-ppc-low.cc (the_low_target): Remove the field.
1962 * linux-riscv-low.cc (the_low_target): Remove the field.
1963 * linux-sh-low.cc (the_low_target): Remove the field.
1964 * linux-sparc-low.cc (the_low_target): Remove the field.
1965 * linux-tic6x-low.cc (the_low_target): Remove the field.
1966 * linux-tile-low.cc (the_low_target): Remove the field.
1967 * linux-xtensa-low.cc (the_low_target): Remove the field.
1969 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971 Remove the 'supports_software_single_step' linux target op and let
1972 the concrete linux target define it by overriding the op in
1973 process_stratum_target.
1974 Turn the 'get_next_pcs' linux target op into a method of
1975 linux_process_target.
1977 * linux-low.h (struct linux_target_ops): Remove the ops.
1978 (class linux_process_target) <supports_software_single_step>:
1980 <low_get_next_pcs>: Declare.
1981 * linux-low.cc (can_software_single_step): Remove.
1982 (linux_process_target::low_get_next_pcs): Define.
1983 (linux_process_target::supports_software_single_step): Remove.
1985 Update the callers below.
1987 (linux_process_target::handle_extended_wait)
1988 (linux_process_target::wait_1)
1989 (linux_process_target::install_software_single_step_breakpoints)
1990 (linux_process_target::single_step)
1991 (linux_process_target::thread_needs_step_over)
1992 (linux_process_target::proceed_one_lwp)
1993 (linux_process_target::supports_range_stepping)
1995 * linux-x86-low.cc (the_low_target): Remove the op field.
1996 * linux-aarch64-low.cc (the_low_target): Ditto.
1997 * linux-bfin-low.cc (the_low_target): Ditto.
1998 * linux-cris-low.cc (the_low_target): Ditto.
1999 * linux-crisv32-low.cc (the_low_target): Ditto.
2000 * linux-m32r-low.cc (the_low_target): Ditto.
2001 * linux-m68k-low.cc (the_low_target): Ditto.
2002 * linux-mips-low.cc (the_low_target): Ditto.
2003 * linux-nios2-low.cc (the_low_target): Ditto.
2004 * linux-ppc-low.cc (the_low_target): Ditto.
2005 * linux-riscv-low.cc (the_low_target): Ditto.
2006 * linux-s390-low.cc (the_low_target): Ditto.
2007 * linux-sh-low.cc (the_low_target): Ditto.
2008 * linux-sparc-low.cc (the_low_target): Ditto.
2009 * linux-tic6x-low.cc (the_low_target): Ditto.
2010 * linux-tile-low.cc (the_low_target): Ditto.
2011 * linux-xtensa-low.cc (the_low_target): Ditto.
2012 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
2013 <supports_software_single_step>: Declare.
2014 (arm_target::supports_software_single_step): Define.
2015 (arm_gdbserver_get_next_pcs): Turn into...
2016 (arm_target::low_get_next_pcs): ...this.
2017 (the_low_target): Remove the op field.
2019 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2021 Remove the 'sw_breakpoint_from_kind' linux target op, and let
2022 the concrete linux target define it by overriding the op
2023 in process_stratum_target.
2025 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
2027 * linux-low.h (struct linux_target_ops): Remove the op.
2028 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
2029 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
2031 (x86_sw_breakpoint_from_kind): Turn into...
2032 (x86_target::sw_breakpoint_from_kind): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-aarch64-low.cc (class aarch64_target)
2035 <sw_breakpoint_from_kind>: Declare.
2036 (aarch64_sw_breakpoint_from_kind): Turn into...
2037 (aarch64_target::sw_breakpoint_from_kind): ...this.
2038 (the_low_target): Remove the op field.
2039 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
2041 (arm_target::sw_breakpoint_from_kind): Define.
2042 (the_low_target): Remove the op field.
2043 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
2045 (bfin_sw_breakpoint_from_kind): Turn into...
2046 (bfin_target::sw_breakpoint_from_kind): ...this.
2047 (the_low_target): Remove the op field.
2048 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2050 (cris_sw_breakpoint_from_kind): Turn into...
2051 (cris_target::sw_breakpoint_from_kind): ...this.
2052 (the_low_target): Remove the op field.
2053 * linux-crisv32-low.cc (class crisv32_target)
2054 <sw_breakpoint_from_kind>: Declare.
2055 (cris_sw_breakpoint_from_kind): Turn into...
2056 (crisv32_target::sw_breakpoint_from_kind): ...this.
2057 (the_low_target): Remove the op field.
2058 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2060 (ia64_target::sw_breakpoint_from_kind): Define.
2061 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2063 (m32r_sw_breakpoint_from_kind): Turn into...
2064 (m32r_target::sw_breakpoint_from_kind): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2068 (m68k_sw_breakpoint_from_kind): Turn into...
2069 (m68k_target::sw_breakpoint_from_kind): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2073 (mips_sw_breakpoint_from_kind): Turn into...
2074 (mips_target::sw_breakpoint_from_kind): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2078 (nios2_sw_breakpoint_from_kind): Turn into...
2079 (nios2_target::sw_breakpoint_from_kind): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2083 (ppc_sw_breakpoint_from_kind): Turn into...
2084 (ppc_target::sw_breakpoint_from_kind): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2088 (riscv_sw_breakpoint_from_kind): Turn into...
2089 (riscv_target::sw_breakpoint_from_kind): ...this.
2090 (the_low_target): Remove the op field.
2091 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2093 (s390_sw_breakpoint_from_kind): Turn into...
2094 (s390_target::sw_breakpoint_from_kind): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2098 (sh_sw_breakpoint_from_kind): Turn into...
2099 (sh_target::sw_breakpoint_from_kind): ...this.
2100 (the_low_target): Remove the op field.
2101 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2103 (sparc_sw_breakpoint_from_kind): Turn into...
2104 (sparc_target::sw_breakpoint_from_kind): ...this.
2105 (the_low_target): Remove the op field.
2106 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2108 (tic6x_sw_breakpoint_from_kind): Turn into...
2109 (tic6x_target::sw_breakpoint_from_kind): ...this.
2110 (the_low_target): Remove the op field.
2111 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2113 (tile_sw_breakpoint_from_kind): Turn into...
2114 (tile_target::sw_breakpoint_from_kind): ...this.
2115 (the_low_target): Remove the op field.
2116 * linux-xtensa-low.cc (class xtensa_target)
2117 <sw_breakpoint_from_kind>: Declare.
2118 (xtensa_sw_breakpoint_from_kind): Turn into...
2119 (xtensa_target::sw_breakpoint_from_kind): ...this.
2120 (the_low_target): Remove the op field.
2122 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2124 Remove the 'breakpoint_kind_from_pc' and
2125 'breakpoint_kind_from_current_state' linux target ops, and let the
2126 concrete linux target define them by overriding the ops of
2127 process_stratum_target.
2129 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2131 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2132 * linux-low.h (struct linux_target_ops): Remove ops.
2133 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2134 <breakpoint_kind_from_current_state>: Remove.
2135 * linux-x86-low.cc (the_low_target): Remove the op fields.
2136 * linux-bfin-low.cc (the_low_target): Ditto.
2137 * linux-cris-low.cc (the_low_target): Ditto.
2138 * linux-crisv32-low.cc (the_low_target): Ditto.
2139 * linux-m32r-low.cc (the_low_target): Ditto.
2140 * linux-m68k-low.cc (the_low_target): Ditto.
2141 * linux-mips-low.cc (the_low_target): Ditto.
2142 * linux-nios2-low.cc (the_low_target): Ditto.
2143 * linux-ppc-low.cc (the_low_target): Ditto.
2144 * linux-s390-low.cc (the_low_target): Ditto.
2145 * linux-sh-low.cc (the_low_target): Ditto.
2146 * linux-sparc-low.cc (the_low_target): Ditto.
2147 * linux-tic6x-low.cc (the_low_target): Ditto.
2148 * linux-tile-low.cc (the_low_target): Ditto.
2149 * linux-xtensa-low.cc (the_low_target): Ditto.
2150 * linux-aarch64-low.cc (class aarch64_target)
2151 <breakpoint_kind_from_pc>
2152 <breakpoint_kind_from_current_state>: Declare.
2153 (aarch64_breakpoint_kind_from_pc): Turn into...
2154 (aarch64_target::breakpoint_kind_from_pc): ...this.
2155 (aarch64_breakpoint_kind_from_current_state): Turn into...
2156 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2157 (the_low_target): Remove the op fields.
2158 * linux-arm-low.cc (class arm_target):
2159 <breakpoint_kind_from_pc>
2160 <breakpoint_kind_from_current_state>: Declare.
2161 (arm_target::breakpoint_kind_from_pc): Define.
2162 (arm_target::breakpoint_kind_from_current_state): Define.
2163 (the_low_target): Remove the op fields.
2164 * linux-riscv-low.cc (class riscv_target):
2165 <breakpoint_kind_from_pc>: Declare.
2166 (riscv_breakpoint_kind_from_pc): Turn into...
2167 (riscv_target::breakpoint_kind_from_pc): ...this.
2168 (the_low_target): Remove the op fields.
2170 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2172 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2173 of linux_process_target.
2175 * linux-low.h (struct linux_target_ops): Remove the ops.
2176 (class linux_process_target) <low_supports_breakpoints>
2178 <low_set_pc>: Declare.
2179 * linux-low.cc (supports_breakpoints): Turn into...
2180 (linux_process_target::low_supports_breakpoints): ...this.
2181 (linux_process_target::low_get_pc): Define.
2182 (linux_process_target::low_set_pc): Define.
2184 Update the callers below.
2186 (linux_process_target::get_pc)
2187 (linux_process_target::save_stop_reason)
2188 (linux_process_target::maybe_move_out_of_jump_pad)
2189 (linux_process_target::wait_1)
2190 (linux_process_target::resume_one_lwp_throw)
2191 (linux_process_target::resume)
2192 (linux_process_target::proceed_all_lwps)
2193 (linux_process_target::read_pc)
2194 (linux_process_target::write_pc)
2196 * linux-x86-low.cc (class linux_process_target)
2197 <low_supports_breakpoints>
2199 <low_set_pc>: Declare.
2200 (x86_target::low_supports_breakpoints): Define.
2201 (x86_get_pc): Turn into...
2202 (x86_target::low_get_pc): ...this.
2203 (x86_set_pc): Turn into...
2204 (x86_target::low_set_pc): ...this.
2205 (the_low_target): Remove the op fields.
2206 * linux-arm-low.cc (class arm_target)
2207 <low_supports_breakpoints>
2209 <low_set_pc>: Declare.
2210 (arm_target::low_supports_breakpoints)
2211 (arm_target::low_get_pc)
2212 (arm_target::low_set_pc): Define.
2213 (the_low_target): Remove the op fields.
2214 * linux-bfin-low.cc (class bfin_target)
2215 <low_supports_breakpoints>
2217 <low_set_pc>: Declare.
2218 (bfin_target::low_supports_breakpoints)
2219 (bfin_target::low_get_pc)
2220 (bfin_target::low_set_pc): Define.
2221 (the_low_target): Remove the op fields.
2222 * linux-cris-low.cc (class cris_target)
2223 <low_supports_breakpoints>
2225 <low_set_pc>: Declare.
2226 (cris_target::low_supports_breakpoints)
2227 (cris_target::low_get_pc)
2228 (cris_target::low_set_pc): Define.
2229 (the_low_target): Remove the op fields.
2230 * linux-crisv32-low.cc (class crisv32_target)
2231 <low_supports_breakpoints>
2233 <low_set_pc>: Declare.
2234 (crisv32_target::low_supports_breakpoints)
2235 (crisv32_target::low_get_pc)
2236 (crisv32_target::low_set_pc): Define.
2237 (the_low_target): Remove the op fields.
2238 * linux-m32r-low.cc (class m32r_target)
2239 <low_supports_breakpoints>
2241 <low_set_pc>: Declare.
2242 (m32r_target::low_supports_breakpoints)
2243 (m32r_target::low_get_pc)
2244 (m32r_target::low_set_pc): Define.
2245 (the_low_target): Remove the op fields.
2246 * linux-m68k-low.cc (class m68k_target)
2247 <low_supports_breakpoints>
2249 <low_set_pc>: Declare.
2250 (m68k_target::low_supports_breakpoints)
2251 (m68k_target::low_get_pc)
2252 (m68k_target::low_set_pc): Define.
2253 (the_low_target): Remove the op fields.
2254 * linux-nios2-low.cc (class nios2_target)
2255 <low_supports_breakpoints>
2257 <low_set_pc>: Declare.
2258 (nios2_target::low_supports_breakpoints)
2259 (nios2_target::low_get_pc)
2260 (nios2_target::low_set_pc): Define.
2261 (the_low_target): Remove the op fields.
2262 * linux-sh-low.cc (class sh_target)
2263 <low_supports_breakpoints>
2265 <low_set_pc>: Declare.
2266 (sh_target::low_supports_breakpoints)
2267 (sh_target::low_get_pc)
2268 (sh_target::low_set_pc): Define.
2269 (the_low_target): Remove the op fields.
2270 * linux-xtensa-low.cc (class xtensa_target)
2271 <low_supports_breakpoints>
2273 <low_set_pc>: Declare.
2274 (xtensa_target::low_supports_breakpoints)
2275 (xtensa_target::low_get_pc)
2276 (xtensa_target::low_set_pc): Define.
2277 (the_low_target): Remove the op fields.
2278 * linux-sparc-low.cc (class sparc_target)
2279 <low_supports_breakpoints>
2280 <low_get_pc>: Declare.
2281 (sparc_target::low_supports_breakpoints)
2282 (sparc_target::low_get_pc): Define.
2283 (the_low_target): Remove the op fields.
2284 * linux-tile-low.cc (class tile_target)
2285 <low_supports_breakpoints>
2287 <low_set_pc>: Declare.
2288 (tile_target::low_supports_breakpoints)
2289 (tile_target::low_get_pc)
2290 (tile_target::low_set_pc): Define.
2291 (the_low_target): Remove the op fields.
2292 * linux-aarch64-low.cc (class aarch64_target)
2293 <low_supports_breakpoints>
2295 <low_set_pc>: Declare.
2296 (aarch64_target::low_supports_breakpoints): Define.
2297 (aarch64_get_pc): Turn into...
2298 (aarch64_target::low_get_pc): ...this.
2299 (aarch64_set_pc): Turn into...
2300 (aarch64_target::low_set_pc): ...this.
2301 (the_low_target): Remove the op fields.
2302 * linux-mips-low.cc (class mips_target)
2303 <low_supports_breakpoints>
2305 <low_set_pc>: Declare.
2306 (mips_target::low_supports_breakpoints): Define.
2307 (mips_get_pc): Turn into...
2308 (mips_target::low_get_pc): ...this.
2309 (mips_set_pc): Turn into...
2310 (mips_target::low_set_pc): ...this.
2311 (the_low_target): Remove the op fields.
2312 * linux-ppc-low.cc (class ppc_target)
2313 <low_supports_breakpoints>
2315 <low_set_pc>: Declare.
2316 (ppc_target::low_supports_breakpoints): Define.
2317 (ppc_get_pc): Turn into...
2318 (ppc_target::low_get_pc): ...this.
2319 (ppc_set_pc): Turn into...
2320 (ppc_target::low_set_pc): ...this.
2321 (the_low_target): Remove the op fields.
2322 * linux-riscv-low.cc (class riscv_target)
2323 <low_supports_breakpoints>
2325 <low_set_pc>: Declare.
2326 (riscv_target::low_supports_breakpoints): Define.
2327 (riscv_get_pc): Turn into...
2328 (riscv_target::low_get_pc): ...this.
2329 (riscv_set_pc): Turn into...
2330 (riscv_target::low_set_pc): ...this.
2331 (the_low_target): Remove the op fields.
2332 * linux-s390-low.cc (class s390_target)
2333 <low_supports_breakpoints>
2335 <low_set_pc>: Declare.
2336 (s390_target::low_supports_breakpoints): Define.
2337 (s390_get_pc): Turn into...
2338 (s390_target::low_get_pc): ...this.
2339 (s390_set_pc): Turn into...
2340 (s390_target::low_set_pc): ...this.
2341 (the_low_target): Remove the op fields.
2342 * linux-tic6x-low.cc (class tic6x_target)
2343 <low_supports_breakpoints>
2345 <low_set_pc>: Declare.
2346 (tic6x_target::low_supports_breakpoints): Define.
2347 (tic6x_get_pc): Turn into...
2348 (tic6x_target::low_get_pc): ...this.
2349 (tic6x_set_pc): Turn into...
2350 (tic6x_target::low_set_pc): ...this.
2351 (the_low_target): Remove the op fields.
2353 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2355 Turn some more static methods in linux-low into private methods
2356 of linux_process_target.
2358 * linux-low.cc (get_pc): Turn into...
2359 (linux_process_target::get_pc): ...this.
2360 (save_stop_reason): Turn into...
2361 (linux_process_target::save_stop_reason): ...this.
2362 (thread_still_has_status_pending_p): Turn into...
2363 (linux_process_target::thread_still_has_status_pending): ...this.
2364 (status_pending_p_callback): Turn into...
2365 (linux_process_target::status_pending_p_callback): ...this.
2366 (resume_stopped_resumed_lwps): Turn into...
2367 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2368 (install_software_single_step_breakpoints): Turn into...
2369 (linux_process_target::install_software_single_step_breakpoints):
2371 (single_step): Turn into...
2372 (linux_process_target::single_step): ...this.
2373 (linux_resume_one_lwp_throw): Turn into...
2374 (linux_process_target::resume_one_lwp_throw): ...this.
2375 (linux_resume_one_lwp): Turn into...
2376 (linux_process_target::resume_one_lwp): ...this.
2377 (resume_status_pending_p): Turn into...
2378 (linux_process_target::resume_status_pending): ...this.
2379 (need_step_over_p): Turn into...
2380 (linux_process_target::thread_needs_step_over): ...this.
2381 (linux_resume_one_thread): Turn into...
2382 (linux_process_target::resume_one_thread): ...this.
2383 (proceed_one_lwp): Turn into...
2384 (linux_process_target::proceed_one_lwp): ...this.
2385 (unsuspend_and_proceed_one_lwp): Turn into...
2386 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2388 Update the calls/references to the above functions below.
2390 (linux_process_target::handle_extended_wait)
2391 (linux_process_target::filter_event)
2392 (linux_process_target::wait_for_event_filtered)
2393 (linux_process_target::wait_1)
2394 (linux_process_target::move_out_of_jump_pad)
2395 (linux_process_target::start_step_over)
2396 (linux_process_target::resume)
2397 (linux_process_target::proceed_all_lwps)
2398 (regsets_store_inferior_registers)
2399 (linux_process_target::store_register)
2401 * linux-low.h (class linux_process_target)
2404 <thread_still_has_status_pending>
2405 <status_pending_p_callback>
2406 <resume_stopped_resumed_lwps>
2407 <install_software_single_step_breakpoints>
2409 <resume_one_lwp_throw>
2411 <resume_status_pending>
2412 <thread_needs_step_over>
2415 <unsuspend_and_proceed_one_lwp>: Declare.
2417 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2419 Turn the 'fetch_register' linux target op into a method of
2420 linux_process_target.
2422 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2423 (class linux_process_target) <low_fetch_register>: Declare.
2424 * linux-x86-low.cc (the_low_target)
2425 * linux-aarch64-low.cc (the_low_target)
2426 * linux-arm-low.cc (the_low_target)
2427 * linux-bfin-low.cc (the_low_target)
2428 * linux-cris-low.cc (the_low_target)
2429 * linux-crisv32-low.cc (the_low_target)
2430 * linux-m32r-low.cc (the_low_target)
2431 * linux-m68k-low.cc (the_low_target)
2432 * linux-nios2-low.cc (the_low_target)
2433 * linux-ppc-low.cc (the_low_target)
2434 * linux-s390-low.cc (the_low_target)
2435 * linux-sh-low.cc (the_low_target)
2436 * linux-sparc-low.cc (the_low_target)
2437 * linux-tic6x-low.cc (the_low_target)
2438 * linux-tile-low.cc (the_low_target)
2439 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2440 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2442 (ia64_fetch_register): Turn into...
2443 (ia64_target::low_fetch_register): ...this.
2444 (the_low_target): Remove the op field.
2445 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2447 (mips_fetch_register): Turn into...
2448 (mips_target::low_fetch_register): ...this.
2449 (the_low_target): Remove the op field.
2450 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2452 (riscv_fetch_register): Turn into...
2453 (riscv_target::low_fetch_register): ...this.
2454 (the_low_target): Remove the op field.
2456 Update the callers below.
2458 * linux-low.cc (linux_process_target::fetch_registers)
2459 (linux_process_target::low_fetch_register)
2461 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2463 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2464 linux target ops into methods of linux_process_target.
2466 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2467 (class linux_process_target) <fetch_register>
2469 <usr_fetch_inferior_registers>
2470 <usr_store_inferior_registers>
2471 <low_cannot_fetch_register>
2472 <low_cannot_fetch_register> Declare.
2473 * linux-low.cc (fetch_register): Turn into...
2474 (linux_process_target::fetch_register): ...this.
2475 (store_register): Turn into ...
2476 (linux_process_target::store_register): ...this.
2477 (usr_fetch_inferior_registers): Turn into...
2478 (linux_process_target::usr_fetch_inferior_registers): ...this.
2479 (usr_store_inferior_registers): Turn into...
2480 (linux_process_target::usr_store_inferior_registers): ...this.
2481 * linux-x86-low.cc (class x86_target)
2482 <low_cannot_fetch_register>
2483 <low_cannot_store_register>: Declare.
2484 (x86_cannot_store_register): Turn into...
2485 (x86_target::low_cannot_store_register): ...this.
2486 (x86_cannot_fetch_register): Turn into...
2487 (x86_target::low_cannot_fetch_register): ...this.
2488 (the_low_target): Remove the target op fields.
2489 * linux-aarch64-low.cc (class aarch64_target)
2490 <low_cannot_fetch_register>
2491 <low_cannot_store_register>: Declare.
2492 (aarch64_target::low_cannot_fetch_register)
2493 (aarch64_target::low_cannot_store_register): Define.
2494 (the_low_target): Remove the op fields.
2495 * linux-arm-low.cc (class arm_target)
2496 <low_cannot_fetch_register>
2497 <low_cannot_store_register>: Declare.
2498 (arm_cannot_fetch_register): Turn into...
2499 (arm_target::low_cannot_fetch_register): ...this.
2500 (arm_cannot_store_register): Turn into...
2501 (arm_target::low_cannot_store_register): ...this.
2502 (the_low_target): Remove the op fields.
2503 * linux-bfin-low.cc (class bfin_target)
2504 <low_cannot_fetch_register>
2505 <low_cannot_store_register>: Declare.
2506 (bfin_cannot_fetch_register): Turn into...
2507 (bfin_target::low_cannot_fetch_register): ...this.
2508 (bfin_cannot_store_register): Turn into...
2509 (bfin_target::low_cannot_store_register): ...this.
2510 (the_low_target): Remove the op fields.
2511 * linux-cris-low.cc (class cris_target)
2512 <low_cannot_fetch_register>
2513 <low_cannot_store_register>: Declare.
2514 (cris_cannot_fetch_register): Turn into...
2515 (cris_target::low_cannot_fetch_register): ...this.
2516 (cris_cannot_store_register): Turn into...
2517 (cris_target::low_cannot_store_register): ...this.
2518 (the_low_target): Remove the op fields.
2519 * linux-crisv32-low.cc (class crisv32_target)
2520 <low_cannot_fetch_register>
2521 <low_cannot_store_register>: Declare.
2522 (crisv32_target::low_cannot_fetch_register)
2523 (crisv32_target::low_cannot_store_register): Define.
2524 (the_low_target): Remove the op fields.
2525 * linux-ia64-low.cc (class ia64_target)
2526 <low_cannot_fetch_register>
2527 <low_cannot_store_register>: Declare.
2528 (ia64_cannot_fetch_register): Turn into...
2529 (ia64_target::low_cannot_fetch_register): ...this.
2530 (ia64_cannot_store_register): Turn into...
2531 (ia64_target::low_cannot_store_register): ...this.
2532 (the_low_target): Remove the op fields.
2533 * linux-m32r-low.cc (class m32r_target)
2534 <low_cannot_fetch_register>
2535 <low_cannot_store_register>: Declare.
2536 (m32r_cannot_fetch_register): Turn into...
2537 (m32r_target::low_cannot_fetch_register): ...this.
2538 (m32r_cannot_store_register): Turn into...
2539 (m32r_target::low_cannot_store_register): ...this.
2540 (the_low_target): Remove the op fields.
2541 * linux-m68k-low.cc (class m68k_target)
2542 <low_cannot_fetch_register>
2543 <low_cannot_store_register>: Declare.
2544 (m68k_cannot_fetch_register): Turn into...
2545 (m68k_target::low_cannot_fetch_register): ...this.
2546 (m68k_cannot_store_register): Turn into...
2547 (m68k_target::low_cannot_store_register): ...this.
2548 (the_low_target): Remove the op fields.
2549 * linux-mips-low.cc (class mips_target)
2550 <low_cannot_fetch_register>
2551 <low_cannot_store_register>: Declare.
2552 (mips_cannot_fetch_register): Turn into...
2553 (mips_target::low_cannot_fetch_register): ...this.
2554 (mips_cannot_store_register): Turn into...
2555 (mips_target::low_cannot_store_register): ...this.
2556 (get_usrregs_info): Inline at the call sites in
2557 low_cannot_fetch_register and low_cannot_store_register,
2559 (the_low_target): Remove the op fields.
2560 * linux-nios2-low.cc (class nios2_target)
2561 <low_cannot_fetch_register>
2562 <low_cannot_store_register>: Declare.
2563 (nios2_cannot_fetch_register): Turn into...
2564 (nios2_target::low_cannot_fetch_register): ...this.
2565 (nios2_cannot_store_register): Turn into...
2566 (nios2_target::low_cannot_store_register): ...this.
2567 (the_low_target): Remove the op fields.
2568 * linux-ppc-low.cc (class ppc_target)
2569 <low_cannot_fetch_register>
2570 <low_cannot_store_register>: Declare.
2571 (ppc_cannot_fetch_register): Turn into...
2572 (ppc_target::low_cannot_fetch_register): ...this.
2573 (ppc_cannot_store_register): Turn into...
2574 (ppc_target::low_cannot_store_register): ...this.
2575 (the_low_target): Remove the op fields.
2576 * linux-riscv-low.cc (class riscv_target)
2577 <low_cannot_fetch_register>
2578 <low_cannot_store_register>: Declare.
2579 (riscv_target::low_cannot_fetch_register)
2580 (riscv_target::low_cannot_store_register): Define.
2581 (the_low_target): Remove the op fields.
2582 * linux-s390-low.cc (class s390_target)
2583 <low_cannot_fetch_register>
2584 <low_cannot_store_register>: Declare.
2585 (s390_cannot_fetch_register): Turn into...
2586 (s390_target::low_cannot_fetch_register): ...this.
2587 (s390_cannot_store_register): Turn into...
2588 (s390_target::low_cannot_store_register): ...this.
2589 (the_low_target): Remove the op fields.
2590 * linux-sh-low.cc (class sh_target)
2591 <low_cannot_fetch_register>
2592 <low_cannot_store_register>: Declare.
2593 (sh_cannot_fetch_register): Turn into...
2594 (sh_target::low_cannot_fetch_register): ...this.
2595 (sh_cannot_store_register): Turn into...
2596 (sh_target::low_cannot_store_register): ...this.
2597 (the_low_target): Remove the op fields.
2598 * linux-sparc-low.cc (class sparc_target)
2599 <low_cannot_fetch_register>
2600 <low_cannot_store_register>: Declare.
2601 (sparc_cannot_fetch_register): Turn into...
2602 (sparc_target::low_cannot_fetch_register): ...this.
2603 (sparc_cannot_store_register): Turn into...
2604 (sparc_target::low_cannot_store_register): ...this.
2605 (the_low_target): Remove the op fields.
2606 * linux-tic6x-low.cc (class tic6x_target)
2607 <low_cannot_fetch_register>
2608 <low_cannot_store_register>: Declare.
2609 (tic6x_cannot_fetch_register): Turn into...
2610 (tic6x_target::low_cannot_fetch_register): ...this.
2611 (tic6x_cannot_store_register): Turn into...
2612 (tic6x_target::low_cannot_store_register): ...this.
2613 (the_low_target): Remove the op fields.
2614 * linux-tile-low.cc (class tile_target)
2615 <low_cannot_fetch_register>
2616 <low_cannot_store_register>: Declare.
2617 (tile_cannot_fetch_register): Turn into...
2618 (tile_target::low_cannot_fetch_register): ...this.
2619 (tile_cannot_store_register): Turn into...
2620 (tile_target::low_cannot_store_register): ...this.
2621 (the_low_target): Remove the op fields.
2622 * linux-xtensa-low.cc (class xtensa_target)
2623 <low_cannot_fetch_register>
2624 <low_cannot_store_register>: Declare.
2625 (xtensa_target::low_cannot_fetch_register)
2626 (xtensa_target::low_cannot_store_register): Define.
2627 (the_low_target): Remove the op fields.
2629 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2631 Turn the 'regs_info' linux target op into a method of
2632 linux_process_target.
2634 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2635 (class linux_process_target) <get_regs_info>: Define.
2637 Update the callers below.
2639 * linux-low.cc (linux_process_target::fetch_registers)
2640 (linux_process_target::store_registers)
2641 * proc-service.cc (gregset_info)
2643 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2644 (x86_linux_regs_info): Turn into ...
2645 (x86_target::get_regs_info): ...this.
2646 (the_low_target): Remove the op field.
2647 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2649 (aarch64_regs_info): Turn into ...
2650 (aarch64_target::get_regs_info): ...this.
2651 (the_low_target): Remove the op field.
2652 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2653 (arm_regs_info): Turn into ...
2654 (arm_target::get_regs_info): ...this.
2655 (the_low_target): Remove the op field.
2656 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2657 (bfin_regs_info): Turn into ...
2658 (bfin_target::get_regs_info): ...this.
2659 (the_low_target): Remove the op field.
2660 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2661 (cris_regs_info): Turn into ...
2662 (cris_target::get_regs_info): ...this.
2663 (the_low_target): Remove the op field.
2664 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2666 (crisv32_regs_info): Turn into ...
2667 (crisv32_target::get_regs_info): ...this.
2668 (the_low_target): Remove the op field.
2669 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2670 (ia64_regs_info): Turn into ...
2671 (ia64_target::get_regs_info): ...this.
2672 (the_low_target): Remove the op field.
2673 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2674 (m32r_regs_info): Turn into ...
2675 (m32r_target::get_regs_info): ...this.
2676 (the_low_target): Remove the op field.
2677 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2678 (m68k_regs_info): Turn into ...
2679 (m68k_target::get_regs_info): ...this.
2680 (the_low_target): Remove the op field.
2681 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2682 (mips_regs_info): Turn into ...
2683 (mips_target::get_regs_info): ...this.
2684 (the_low_target): Remove the op field.
2685 (get_usrregs_info): Update the call to the op.
2686 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2687 (nios2_regs_info): Turn into ...
2688 (nios2_target::get_regs_info): ...this.
2689 (the_low_target): Remove the op field.
2690 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2691 (ppc_regs_info): Turn into ...
2692 (ppc_target::get_regs_info): ...this.
2693 (the_low_target): Remove the op field.
2694 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2695 (riscv_regs_info): Turn into ...
2696 (riscv_target::get_regs_info): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2699 (s390_regs_info): Turn into ...
2700 (s390_target::get_regs_info): ...this.
2701 (the_low_target): Remove the op field.
2702 (s390_collect_ptrace_register)
2703 (s390_supply_ptrace_register)
2704 (s390_fill_gregset): Update the call to the op.
2705 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2706 (sh_regs_info): Turn into ...
2707 (sh_target::get_regs_info): ...this.
2708 (the_low_target): Remove the op field.
2709 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2710 (sparc_regs_info): Turn into ...
2711 (sparc_target::get_regs_info): ...this.
2712 (the_low_target): Remove the op field.
2713 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2714 (tic6x_regs_info): Turn into ...
2715 (tic6x_target::get_regs_info): ...this.
2716 (the_low_target): Remove the op field.
2717 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2718 (tile_regs_info): Turn into ...
2719 (tile_target::get_regs_info): ...this.
2720 (the_low_target): Remove the op field.
2721 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2723 (xtensa_regs_info): Turn into ...
2724 (xtensa_target::get_regs_info): ...this.
2725 (the_low_target): Remove the op field.
2727 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2729 Turn the 'arch_setup' linux target op into a method of
2730 linux_process_target.
2732 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2733 (class linux_process_target) <arch_setup_thread>
2734 <low_arch_setup>: New declarations.
2735 * linux-low.cc (linux_arch_setup): Delete.
2736 (linux_arch_setup_thread): Turn into...
2737 (linux_process_target::arch_setup_thread): ... this.
2739 Update the callers below.
2741 (linux_process_target::handle_extended_wait)
2742 (linux_process_target::post_create_inferior)
2743 (linux_process_target::filter_event)
2745 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2747 (x86_linux_update_xmltarget): Turn into...
2748 (x86_target::update_xmltarget): ...this.
2749 (x86_linux_process_qsupported): Update the call to
2750 x86_linux_update_xmltarget.
2751 (x86_arch_setup): Turn into ...
2752 (x86_target::low_arch_setup): ...this.
2753 (the_low_target): Remove the op field.
2754 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2756 (aarch64_arch_setup): Turn into ...
2757 (aarch64_target::low_arch_setup): ...this.
2758 (the_low_target): Remove the op field.
2759 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2761 (arm_arch_setup): Turn into ...
2762 (arm_target::low_arch_setup): ...this.
2763 (the_low_target): Remove the op field.
2764 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2766 (bfin_arch_setup): Turn into ...
2767 (bfin_target::low_arch_setup): ...this.
2768 (the_low_target): Remove the op field.
2769 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2771 (cris_arch_setup): Turn into ...
2772 (cris_target::low_arch_setup): ...this.
2773 (the_low_target): Remove the op field.
2774 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2776 (crisv32_arch_setup): Turn into ...
2777 (crisv32_target::low_arch_setup): ...this.
2778 (the_low_target): Remove the op field.
2779 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2781 (ia64_arch_setup): Turn into ...
2782 (ia64_target::low_arch_setup): ...this.
2783 (the_low_target): Remove the op field.
2784 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2786 (m32r_arch_setup): Turn into ...
2787 (m32r_target::low_arch_setup): ...this.
2788 (the_low_target): Remove the op field.
2789 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2791 (m68k_arch_setup): Turn into ...
2792 (m68k_target::low_arch_setup): ...this.
2793 (the_low_target): Remove the op field.
2794 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2796 (mips_arch_setup): Turn into ...
2797 (mips_target::low_arch_setup): ...this.
2798 (the_low_target): Remove the op field.
2799 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2801 (nios2_arch_setup): Turn into ...
2802 (nios2_target::low_arch_setup): ...this.
2803 (the_low_target): Remove the op field.
2804 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2806 (ppc_arch_setup): Turn into ...
2807 (ppc_target::low_arch_setup): ...this.
2808 (the_low_target): Remove the op field.
2809 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2811 (riscv_arch_setup): Turn into ...
2812 (riscv_target::low_arch_setup): ...this.
2813 (the_low_target): Remove the op field.
2814 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2816 (s390_arch_setup): Turn into ...
2817 (s390_target::low_arch_setup): ...this.
2818 (the_low_target): Remove the op field.
2819 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2821 (sh_arch_setup): Turn into ...
2822 (sh_target::low_arch_setup): ...this.
2823 (the_low_target): Remove the op field.
2824 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2826 (sparc_arch_setup): Turn into ...
2827 (sparc_target::low_arch_setup): ...this.
2828 (the_low_target): Remove the op field.
2829 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2831 (tic6x_arch_setup): Turn into ...
2832 (tic6x_target::low_arch_setup): ...this.
2833 (the_low_target): Remove the op field.
2834 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2836 (tile_arch_setup): Turn into ...
2837 (tile_target::low_arch_setup): ...this.
2838 (the_low_target): Remove the op field.
2839 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2841 (xtensa_arch_setup): Turn into ...
2842 (xtensa_target::low_arch_setup): ...this.
2843 (the_low_target): Remove the op field.
2845 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2847 * linux-low.h (the_linux_target): New extern declaration.
2848 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2850 (the_linux_target): Remove.
2851 * linux-x86-low.cc (class x86_target): New class.
2852 (the_x86_target): New static object.
2853 (the_linux_target): Define as pointer to the_x86_target.
2854 * linux-aarch64-low.cc (class aarch64_target): New class.
2855 (the_aarch64_target): New static object.
2856 (the_linux_target): Define as pointer to the_aarch64_target.
2857 * linux-arm-low.cc (class arm_target): New class.
2858 (the_arm_target): New static object.
2859 (the_linux_target): Define as pointer to the_arm_target.
2860 * linux-bfin-low.cc (class bfin_target): New class.
2861 (the_bfin_target): New static object.
2862 (the_linux_target): Define as pointer to the_bfin_target.
2863 * linux-cris-low.cc (class cris_target): New class.
2864 (the_cris_target): New static object.
2865 (the_linux_target): Define as pointer to the_cris_target.
2866 * linux-crisv32-low.cc (class crisv32_target): New class.
2867 (the_crisv32_target): New static object.
2868 (the_linux_target): Define as pointer to the_crisv32_target.
2869 * linux-ia64-low.cc (class ia64_target): New class.
2870 (the_ia64_target): New static object.
2871 (the_linux_target): Define as pointer to the_ia64_target.
2872 * linux-m32r-low.cc (class m32r_target): New class.
2873 (the_m32r_target): New static object.
2874 (the_linux_target): Define as pointer to the_m32r_target.
2875 * linux-m68k-low.cc (class m68k_target): New class.
2876 (the_m68k_target): New static object.
2877 (the_linux_target): Define as pointer to the_m68k_target.
2878 * linux-mips-low.cc (class mips_target): New class.
2879 (the_mips_target): New static object.
2880 (the_linux_target): Define as pointer to the_mips_target.
2881 * linux-nios2-low.cc (class nios2_target): New class.
2882 (the_nios2_target): New static object.
2883 (the_linux_target): Define as pointer to the_nios2_target.
2884 * linux-ppc-low.cc (class ppc_target): New class.
2885 (the_ppc_target): New static object.
2886 (the_linux_target): Define as pointer to the_ppc_target.
2887 * linux-riscv-low.cc (class riscv_target): New class.
2888 (the_riscv_target): New static object.
2889 (the_linux_target): Define as pointer to the_riscv_target.
2890 * linux-s390-low.cc (class s390_target): New class.
2891 (the_s390_target): New static object.
2892 (the_linux_target): Define as pointer to the_s390_target.
2893 * linux-sh-low.cc (class sh_target): New class.
2894 (the_sh_target): New static object.
2895 (the_linux_target): Define as pointer to the_sh_target.
2896 * linux-sparc-low.cc (class sparc_target): New class.
2897 (the_sparc_target): New static object.
2898 (the_linux_target): Define as pointer to the_sparc_target.
2899 * linux-tic6x-low.cc (class tic6x_target): New class.
2900 (the_tic6x_target): New static object.
2901 (the_linux_target): Define as pointer to the_tic6x_target.
2902 * linux-tile-low.cc (class tile_target): New class.
2903 (the_tile_target): New static object.
2904 (the_linux_target): Define as pointer to the_tile_target.
2905 * linux-xtensa-low.cc (class xtensa_target): New class.
2906 (the_xtensa_target): New static object.
2907 (the_linux_target): Define as pointer to the_xtensa_target.
2909 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2911 Turn some static functions in linux-low.cc into private methods of
2912 linux_process_target.
2914 * linux-low.cc (handle_extended_wait): Turn into ...
2915 (linux_process_target::handle_extended_wait): ...this. Call
2916 'mourn' on 'this' object instead of 'the_target'.
2917 (maybe_move_out_of_jump_pad): Turn into...
2918 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2919 (linux_low_filter_event): Turn into...
2920 (linux_process_target::filter_event): ...this.
2921 (linux_wait_for_event_filtered): Turn into...
2922 (linux_process_target::wait_for_event_filtered): ...this.
2923 (linux_wait_for_event): Turn into...
2924 (linux_process_target::wait_for_event): ...this.
2925 (linux_wait_1): Turn into...
2926 (linux_process_target::wait_1): ...this.
2927 (wait_for_sigstop): Turn into...
2928 (linux_process_target::wait_for_sigstop): ...this.
2929 (move_out_of_jump_pad_callback): Turn into...
2930 (linux_process_target::move_out_of_jump_pad): ...this.
2931 (stop_all_lwps): Turn into...
2932 (linux_process_target::stop_all_lwps): ...this.
2933 (start_step_over): Turn into...
2934 (linux_process_target::start_step_over): ...this.
2935 (complete_ongoing_step_over): Turn into...
2936 (linux_process_target::complete_ongoing_step_over): ...this.
2937 (proceed_all_lwps): Turn into...
2938 (linux_process_target::proceed_all_lwps): ...this.
2939 (unstop_all_lwps): Turn into...
2940 (linux_process_target::unstop_all_lwps): ...this.
2942 * linux-low.h (class linux_process_target)
2943 <handle_extended_wait>
2944 <maybe_move_out_of_jump_pad>
2946 <wait_for_event_filtered>
2950 <move_out_of_jump_pad>
2953 <complete_ongoing_step_over>
2955 <unstop_all_lwps>: Declare.
2957 Update the callers below.
2959 * linux-low.cc (linux_process_target::attach): Update.
2960 (linux_process_target::stabilize_threads): Ditto.
2961 (linux_process_target::wait): Ditto.
2963 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965 * linux-low.h (struct linux_target_ops): Update the comment for
2966 'cannot_store_register' to return 0 or 1.
2967 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2970 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2972 * config.in: Re-generate.
2973 * configure: Re-generate.
2975 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2977 * regcache.cc (find_register_by_number): Update.
2978 * tdesc.cc (init_target_desc): Likewise.
2979 * tdesc.h (target_desc::reg_defs): Likewise.
2981 2020-03-12 Tom Tromey <tom@tromey.com>
2983 * configure: Rebuild.
2984 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2985 (WIN32APILIBS): New subst.
2986 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2988 (gdbsupport/%.o): Remove target.
2989 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2990 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2991 (WIN32APILIBS): New variable.
2992 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2993 (gdbreplay$(EXEEXT)): Likewise.
2995 2020-03-12 Tom Tromey <tom@tromey.com>
2997 * config.in, configure: Rebuild.
2998 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2999 * acinclude.m4: Include gettext-sister.m4.
3000 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
3002 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
3003 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
3005 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3007 * acinclude.m4: Update path to selftest.m4.
3009 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3011 * configure.ac: Don't source bfd/development.sh, move
3012 GDB_AC_COMMON higher.
3013 * configure: Re-generate.
3015 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3017 * configure: Re-generate.
3019 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
3021 * configure: Re-generate.
3023 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3025 * .dir-locals.el: New file.
3027 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3029 * .gitattributes: New file.
3031 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3033 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
3034 reply into an S reply.
3035 * server.cc (disable_packet_T): New global.
3036 (captured_main): Set new global when appropriate.
3037 * server.h (disable_packet_T): Declare.
3039 2020-02-21 Tom Tromey <tom@tromey.com>
3041 * Makefile.in (mostlyclean): New target.
3043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3045 * target.h (struct process_stratum_target): Remove.
3046 (class process_target): Rename to ...
3047 (class process_stratum_target): ... this.
3048 * linux-low.h (class linux_process_target): Derive from
3049 'process_stratum_target'.
3050 * linux-low.cc (linux_target_ops): Remove.
3051 (initialize_low): Set the_target to the singleton instance of
3052 linux_process_target.
3053 * lynx-low.h (class lynx_process_target): Derive from
3054 'process_stratum_target'.
3055 * lynx-low.cc (lynx_target_ops): Remove.
3056 (initialize_low): Set the_target to the singleton instance of
3057 lynx_process_target.
3058 * nto-low.h (class nto_process_target): Derive from
3059 'process_stratum_target'.
3060 * nto-low.cc (nto_target_ops): Remove.
3061 (initialize_low): Set the_target to the singleton instance of
3063 * win32-low.h (class win32_process_target): Derive from
3064 'process_stratum_target'.
3065 * win32-low.cc (win32_target_ops): Remove.
3066 (initialize_low): Set the_target to the singleton instance of
3067 win32_process_target.
3069 Replace 'the_target->pt' with 'the_target' in the uses below.
3071 * hostio.cc (hostio_error)
3076 * linux-aarch32-low.cc (arm_breakpoint_at)
3077 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3078 * linux-arm-low.cc (arm_sigreturn_next_pc)
3080 (arm_get_syscall_trapinfo)
3081 * linux-cris-low.cc (cris_breakpoint_at)
3082 * linux-crisv32-low.cc (cris_breakpoint_at)
3083 * linux-low.cc (handle_extended_wait)
3086 (linux_process_target::breakpoint_kind_from_pc)
3088 * linux-m32r-low.cc (m32r_breakpoint_at)
3089 * linux-mips-low.cc (mips_breakpoint_at)
3090 * linux-nios2-low.cc (nios2_breakpoint_at)
3091 * linux-ppc-low.cc (ppc_breakpoint_at)
3092 * linux-s390-low.cc (s390_get_hwcap)
3093 * linux-sh-low.cc (sh_breakpoint_at)
3094 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3095 (sparc_store_gregset_from_stack)
3096 (sparc_breakpoint_at)
3097 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3098 * linux-tile-low.cc (tile_breakpoint_at)
3099 * linux-x86-low.cc (x86_breakpoint_at)
3100 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3101 * mem-break.cc (bp_size)
3103 (insert_memory_breakpoint)
3104 (set_raw_breakpoint_at)
3105 (delete_raw_breakpoint)
3107 (uninsert_raw_breakpoint)
3108 (reinsert_raw_breakpoint)
3109 (validate_inserted_breakpoint)
3110 * regcache.cc (regcache_read_pc)
3112 * remote-utils.cc (putpkt_binary_1)
3115 (prepare_resume_reply)
3116 * server.cc (handle_general_set)
3119 (handle_qxfer_exec_file)
3120 (handle_qxfer_libraries_svr4)
3121 (handle_qxfer_osdata)
3122 (handle_qxfer_siginfo)
3123 (handle_qxfer_fdpic)
3127 (queue_stop_reply_callback)
3129 * target.cc (prepare_to_access_memory)
3130 (done_accessing_memory)
3131 (read_inferior_memory)
3132 (target_write_memory)
3133 (target_stop_and_wait)
3135 (target_mourn_inferior)
3136 (target_continue_no_signal)
3138 (target_supports_multi_process)
3141 (target_create_inferior)
3142 (target_post_create_inferior)
3144 (target_supports_fork_events)
3145 (target_supports_vfork_events)
3146 (target_supports_exec_events)
3147 (target_handle_new_gdb_connection)
3150 (fetch_inferior_registers)
3151 (store_inferior_registers)
3153 (target_supports_non_stop)
3155 (target_process_qsupported)
3156 (target_supports_catch_syscall)
3157 (target_get_ipa_tdesc_idx)
3158 (target_supports_tracepoints)
3159 (target_supports_fast_tracepoints)
3160 (target_get_min_fast_tracepoint_insn_len)
3161 (target_thread_stopped)
3163 (target_unpause_all)
3164 (target_stabilize_threads)
3165 (target_install_fast_tracepoint_jump_pad)
3167 (target_supports_disable_randomization)
3168 (target_supports_agent)
3169 (target_enable_btrace)
3170 (target_disable_btrace)
3171 (target_read_btrace)
3172 (target_read_btrace_conf)
3173 (target_supports_range_stepping)
3174 (target_supports_stopped_by_sw_breakpoint)
3175 (target_stopped_by_sw_breakpoint)
3176 (target_supports_stopped_by_hw_breakpoint)
3177 (target_supports_hardware_single_step)
3178 (target_stopped_by_hw_breakpoint)
3179 (target_breakpoint_kind_from_pc)
3180 (target_breakpoint_kind_from_current_state)
3181 (target_supports_software_single_step)
3182 (target_core_of_thread)
3183 (target_thread_name)
3184 (target_thread_handle)
3185 * win32-low.cc (do_initial_child_stuff)
3187 Rename target op default definitions listed below.
3189 * target.cc (process_target::post_create_inferior): Rename as ...
3190 (process_stratum_target::post_create_inferior): ... this.
3191 (process_target::prepare_to_access_memory): Rename as ...
3192 (process_stratum_target::prepare_to_access_memory): ... this.
3193 (process_target::done_accessing_memory): Rename as ...
3194 (process_stratum_target::done_accessing_memory): ... this.
3195 (process_target::look_up_symbols): Rename as ...
3196 (process_stratum_target::look_up_symbols): ... this.
3197 (process_target::supports_read_auxv): Rename as ...
3198 (process_stratum_target::supports_read_auxv): ... this.
3199 (process_target::read_auxv): Rename as ...
3200 (process_stratum_target::read_auxv): ... this.
3201 (process_target::supports_z_point_type): Rename as ...
3202 (process_stratum_target::supports_z_point_type): ... this.
3203 (process_target::insert_point): Rename as ...
3204 (process_stratum_target::insert_point): ... this.
3205 (process_target::remove_point): Rename as ...
3206 (process_stratum_target::remove_point): ... this.
3207 (process_target::stopped_by_sw_breakpoint): Rename as ...
3208 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3209 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3210 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3211 (process_target::stopped_by_hw_breakpoint): Rename as ...
3212 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3213 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3214 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3215 (process_target::supports_hardware_single_step): Rename as ...
3216 (process_stratum_target::supports_hardware_single_step): ... this.
3217 (process_target::stopped_by_watchpoint): Rename as ...
3218 (process_stratum_target::stopped_by_watchpoint): ... this.
3219 (process_target::stopped_data_address): Rename as ...
3220 (process_stratum_target::stopped_data_address): ... this.
3221 (process_target::supports_read_offsets): Rename as ...
3222 (process_stratum_target::supports_read_offsets): ... this.
3223 (process_target::read_offsets): Rename as ...
3224 (process_stratum_target::read_offsets): ... this.
3225 (process_target::supports_get_tls_address): Rename as ...
3226 (process_stratum_target::supports_get_tls_address): ... this.
3227 (process_target::get_tls_address): Rename as ...
3228 (process_stratum_target::get_tls_address): ... this.
3229 (process_target::hostio_last_error): Rename as ...
3230 (process_stratum_target::hostio_last_error): ... this.
3231 (process_target::supports_qxfer_osdata): Rename as ...
3232 (process_stratum_target::supports_qxfer_osdata): ... this.
3233 (process_target::qxfer_osdata): Rename as ...
3234 (process_stratum_target::qxfer_osdata): ... this.
3235 (process_target::supports_qxfer_siginfo): Rename as ...
3236 (process_stratum_target::supports_qxfer_siginfo): ... this.
3237 (process_target::qxfer_siginfo): Rename as ...
3238 (process_stratum_target::qxfer_siginfo): ... this.
3239 (process_target::supports_non_stop): Rename as ...
3240 (process_stratum_target::supports_non_stop): ... this.
3241 (process_target::async): Rename as ...
3242 (process_stratum_target::async): ... this.
3243 (process_target::start_non_stop): Rename as ...
3244 (process_stratum_target::start_non_stop): ... this.
3245 (process_target::supports_multi_process): Rename as ...
3246 (process_stratum_target::supports_multi_process): ... this.
3247 (process_target::supports_fork_events): Rename as ...
3248 (process_stratum_target::supports_fork_events): ... this.
3249 (process_target::supports_vfork_events): Rename as ...
3250 (process_stratum_target::supports_vfork_events): ... this.
3251 (process_target::supports_exec_events): Rename as ...
3252 (process_stratum_target::supports_exec_events): ... this.
3253 (process_target::handle_new_gdb_connection): Rename as ...
3254 (process_stratum_target::handle_new_gdb_connection): ... this.
3255 (process_target::handle_monitor_command): Rename as ...
3256 (process_stratum_target::handle_monitor_command): ... this.
3257 (process_target::core_of_thread): Rename as ...
3258 (process_stratum_target::core_of_thread): ... this.
3259 (process_target::supports_read_loadmap): Rename as ...
3260 (process_stratum_target::supports_read_loadmap): ... this.
3261 (process_target::read_loadmap): Rename as ...
3262 (process_stratum_target::read_loadmap): ... this.
3263 (process_target::process_qsupported): Rename as ...
3264 (process_stratum_target::process_qsupported): ... this.
3265 (process_target::supports_tracepoints): Rename as ...
3266 (process_stratum_target::supports_tracepoints): ... this.
3267 (process_target::read_pc): Rename as ...
3268 (process_stratum_target::read_pc): ... this.
3269 (process_target::write_pc): Rename as ...
3270 (process_stratum_target::write_pc): ... this.
3271 (process_target::supports_thread_stopped): Rename as ...
3272 (process_stratum_target::supports_thread_stopped): ... this.
3273 (process_target::thread_stopped): Rename as ...
3274 (process_stratum_target::thread_stopped): ... this.
3275 (process_target::supports_get_tib_address): Rename as ...
3276 (process_stratum_target::supports_get_tib_address): ... this.
3277 (process_target::get_tib_address): Rename as ...
3278 (process_stratum_target::get_tib_address): ... this.
3279 (process_target::pause_all): Rename as ...
3280 (process_stratum_target::pause_all): ... this.
3281 (process_target::unpause_all): Rename as ...
3282 (process_stratum_target::unpause_all): ... this.
3283 (process_target::stabilize_threads): Rename as ...
3284 (process_stratum_target::stabilize_threads): ... this.
3285 (process_target::supports_fast_tracepoints): Rename as ...
3286 (process_stratum_target::supports_fast_tracepoints): ... this.
3287 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3288 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3289 (process_target::emit_ops): Rename as ...
3290 (process_stratum_target::emit_ops): ... this.
3291 (process_target::supports_disable_randomization): Rename as ...
3292 (process_stratum_target::supports_disable_randomization): ... this.
3293 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3294 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3295 (process_target::qxfer_libraries_svr4): Rename as ...
3296 (process_stratum_target::qxfer_libraries_svr4): ... this.
3297 (process_target::supports_agent): Rename as ...
3298 (process_stratum_target::supports_agent): ... this.
3299 (process_target::enable_btrace): Rename as ...
3300 (process_stratum_target::enable_btrace): ... this.
3301 (process_target::disable_btrace): Rename as ...
3302 (process_stratum_target::disable_btrace): ... this.
3303 (process_target::read_btrace): Rename as ...
3304 (process_stratum_target::read_btrace): ... this.
3305 (process_target::read_btrace_conf): Rename as ...
3306 (process_stratum_target::read_btrace_conf): ... this.
3307 (process_target::supports_range_stepping): Rename as ...
3308 (process_stratum_target::supports_range_stepping): ... this.
3309 (process_target::supports_pid_to_exec_file): Rename as ...
3310 (process_stratum_target::supports_pid_to_exec_file): ... this.
3311 (process_target::pid_to_exec_file): Rename as ...
3312 (process_stratum_target::pid_to_exec_file): ... this.
3313 (process_target::supports_multifs): Rename as ...
3314 (process_stratum_target::supports_multifs): ... this.
3315 (process_target::multifs_open): Rename as ...
3316 (process_stratum_target::multifs_open): ... this.
3317 (process_target::multifs_unlink): Rename as ...
3318 (process_stratum_target::multifs_unlink): ... this.
3319 (process_target::multifs_readlink): Rename as ...
3320 (process_stratum_target::multifs_readlink): ... this.
3321 (process_target::breakpoint_kind_from_pc): Rename as ...
3322 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3323 (process_target::breakpoint_kind_from_current_state): Rename as ...
3324 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3325 (process_target::thread_name): Rename as ...
3326 (process_stratum_target::thread_name): ... this.
3327 (process_target::thread_handle): Rename as ...
3328 (process_stratum_target::thread_handle): ... this.
3329 (process_target::supports_software_single_step): Rename as ...
3330 (process_stratum_target::supports_software_single_step): ... this.
3331 (process_target::supports_catch_syscall): Rename as ...
3332 (process_stratum_target::supports_catch_syscall): ... this.
3333 (process_target::get_ipa_tdesc_idx): Rename as ...
3334 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3336 2020-02-20 Pedro Alves <palves@redhat.com>
3338 * target.cc (set_target_ops): Simply copy the given target pointer
3339 instead of creating a copy of the pointed object.
3341 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3343 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3346 * target.h (struct process_stratum_target): Remove the target op.
3347 (class process_target): Add the target op.
3348 (target_get_ipa_tdesc_idx): Update the macro.
3349 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3351 Update the derived classes and callers below.
3353 * linux-low.cc (linux_target_ops): Update.
3354 (linux_get_ipa_tdesc_idx): Turn into ...
3355 (linux_process_target::get_ipa_tdesc_idx): ... this.
3356 * linux-low.h (class linux_process_target): Update.
3357 * lynx-low.cc (lynx_target_ops): Update.
3358 * nto-low.cc (nto_target_ops): Update.
3359 * win32-low.cc (win32_target_ops): Update.
3361 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3363 Turn process_stratum_target's supports_catch_syscall op into a
3364 method of process_target.
3366 * target.h (struct process_stratum_target): Remove the target op.
3367 (class process_target): Add the target op.
3368 (target_supports_catch_syscall): Update the macro.
3369 * target.cc (process_target::supports_catch_syscall): Define.
3371 Update the derived classes and callers below.
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_supports_catch_syscall): Turn into ...
3375 (linux_process_target::supports_catch_syscall): ... this.
3376 * linux-low.h (class linux_process_target): Update.
3377 * lynx-low.cc (lynx_target_ops): Update.
3378 * nto-low.cc (nto_target_ops): Update.
3379 * win32-low.cc (win32_target_ops): Update.
3381 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3383 Turn process_stratum_target's supports_software_single_step op
3384 into a method of process_target.
3386 * target.h (struct process_stratum_target): Remove the target op.
3387 (class process_target): Add the target op.
3388 (target_supports_software_single_step): Update the macro.
3389 * target.cc (process_target::supports_software_single_step): Define.
3391 Update the derived classes and callers below.
3393 * linux-low.cc (linux_target_ops): Update.
3394 (linux_supports_software_single_step): Turn into ...
3395 (linux_process_target::supports_software_single_step): ... this.
3396 * linux-low.h (class linux_process_target): Update.
3397 * lynx-low.cc (lynx_target_ops): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 * win32-low.cc (win32_target_ops): Update.
3401 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3403 Turn process_stratum_target's thread_name and thread_handle ops
3404 into methods of process_target.
3406 * target.h (struct process_stratum_target): Remove the target ops.
3407 (class process_target): Add the target ops.
3408 (target_thread_name): Update the macro.
3409 (target_thread_handle): Update the macro.
3410 * target.cc (process_target::thread_name): Define.
3411 (process_target::thread_handle): Define.
3413 Update the derived classes and callers below.
3415 * linux-low.cc (linux_target_ops): Update.
3416 (linux_process_target::thread_name): Define.
3417 (linux_process_target::thread_handle): Define.
3418 * linux-low.h (class linux_process_target): Update.
3419 * lynx-low.cc (lynx_target_ops): Update.
3420 * nto-low.cc (nto_target_ops): Update.
3421 * win32-low.cc (win32_target_ops): Update.
3423 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3425 Turn process_stratum_target's breakpoint_kind_from_pc,
3426 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3427 ops into methods of process_target.
3429 * target.h (struct process_stratum_target): Remove the target op.
3430 (class process_target): Add the target op.
3431 (target_breakpoint_kind_from_pc): Update the macro.
3432 (target_breakpoint_kind_from_current_state): Update the macro.
3433 (default_breakpoint_kind_from_pc): Remove declaration.
3434 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3435 (process_target::breakpoint_kind_from_pc): ... this.
3436 (process_target::breakpoint_kind_from_current_state): Define.
3438 Update the derived classes and callers below.
3440 * mem-break.cc (bp_size): Update.
3441 (bp_opcode): Update.
3442 * linux-low.cc (linux_target_ops): Update.
3443 (linux_wait_1): Update.
3444 (linux_breakpoint_kind_from_pc): Turn into ...
3445 (linux_process_target::breakpoint_kind_from_pc): ... this.
3446 (linux_sw_breakpoint_from_kind): Turn into ...
3447 (linux_process_target::sw_breakpoint_from_kind): ... this.
3448 (linux_breakpoint_kind_from_current_state): Turn into ...
3449 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 (lynx_process_target::sw_breakpoint_from_kind): Define.
3453 * lynx-low.h (class lynx_process_target): Update.
3454 * nto-low.cc (nto_target_ops): Update.
3455 (nto_sw_breakpoint_from_kind): Turn into ...
3456 (nto_process_target::sw_breakpoint_from_kind): ... this.
3457 * nto-low.h (class nto_process_target): Update.
3458 * win32-low.cc (win32_target_ops): Update.
3459 (win32_sw_breakpoint_from_kind): Turn into ...
3460 (win32_process_target::sw_breakpoint_from_kind): ... this.
3461 * win32-low.h (class win32_process_target): Update.
3463 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3465 Turn process_stratum_target's multifs_open, multifs_readlink,
3466 multifs_unlink ops into methods of process_target.
3468 * target.h (struct process_stratum_target): Remove the target ops.
3469 (class process_target): Add the target ops. Also add
3471 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3473 (process_target::supports_multifs): Define.
3474 (process_target::multifs_open): Define.
3475 (process_target::multifs_readlink): Define.
3476 (process_target::multifs_unlink): Define.
3478 Update the derived classes and callers below.
3480 * hostio.cc (handle_setfs): Update.
3481 (handle_open): Update.
3482 (handle_unlink): Update.
3483 (handle_readlink): Update.
3484 * linux-low.cc (linux_target_ops): Update.
3485 (linux_process_target::supports_multifs): Define.
3486 (linux_process_target::multifs_open): Define.
3487 (linux_process_target::multifs_readlink): Define.
3488 (linux_process_target::multifs_unlink): Define.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 * nto-low.cc (nto_target_ops): Update.
3492 * win32-low.cc (win32_target_ops): Update.
3494 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3496 Turn process_stratum_target's pid_to_exec_file op into a method
3499 * target.h (struct process_stratum_target): Remove the target op.
3500 (class process_target): Add the target op. Also add
3501 'supports_pid_to_exec_file'.
3502 * target.cc (process_target::pid_to_exec_file): Define.
3503 (process_target::supports_pid_to_exec_file): Define.
3505 Update the derived classes and callers below.
3507 * server.cc (handle_qxfer_exec_file): Update.
3508 (handle_query): Update.
3509 * linux-low.cc (linux_target_ops): Update.
3510 (linux_process_target::supports_pid_to_exec_file): Define.
3511 (linux_process_target::pid_to_exec_file): Define.
3512 * linux-low.h (class linux_process_target): Update.
3513 * lynx-low.cc (lynx_target_ops): Update.
3514 * nto-low.cc (nto_target_ops): Update.
3515 * win32-low.cc (win32_target_ops): Update.
3517 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3519 Turn process_stratum_target's supports_range_stepping op into a
3520 method of process_target.
3522 * target.h (struct process_stratum_target): Remove the target op.
3523 (class process_target): Add the target op.
3524 (target_supports_range_stepping): Update the macro.
3525 * target.cc (process_target::supports_range_stepping): Define.
3527 Update the derived classes and callers below.
3529 * linux-low.cc (linux_target_ops): Update.
3530 (linux_supports_range_stepping): Turn into ...
3531 (linux_process_target::supports_range_stepping): ... this.
3532 * linux-low.h (class linux_process_target): Update.
3533 * lynx-low.cc (lynx_target_ops): Update.
3534 * nto-low.cc (nto_target_ops): Update.
3535 * win32-low.cc (win32_target_ops): Update.
3537 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3539 Turn process_stratum_target's btrace-related ops (enable_btrace,
3540 disable_btrace, read_btrace, read_btrace_conf) into methods of
3543 * target.h (struct process_stratum_target): Remove the target ops.
3544 (class process_target): Add the target ops.
3545 (target_enable_btrace): Update.
3546 (target_disable_btrace): Update.
3547 (target_read_btrace): Update.
3548 (target_read_btrace_conf): Update.
3549 * target.cc (process_target::enable_btrace): Define.
3550 (process_target::disable_btrace): Define.
3551 (process_target::read_btrace): Define.
3552 (process_target::read_btrace_conf): Define.
3554 Update the derived classes and callers below.
3556 * linux-low.cc (linux_target_ops): Update.
3557 (linux_process_target:enable_btrace): Define as a wrapper around
3558 linux_enable_btrace.
3559 (linux_low_disable_btrace): Turn into ...
3560 (linux_process_target::disable_btrace): ... this.
3561 (linux_low_read_btrace): Turn into ...
3562 (linux_process_target::read_btrace): ... this.
3563 (linux_low_btrace_conf): Turn into ...
3564 (linux_process_target::read_btrace_conf): ... this.
3565 * linux-low.h (class linux_process_target): Update.
3566 * lynx-low.cc (lynx_target_ops): Update.
3567 * nto-low.cc (nto_target_ops): Update.
3568 * win32-low.cc (win32_target_ops): Update.
3570 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3572 Turn process_stratum_target's supports_agent op into a method of
3575 * target.h (struct process_stratum_target): Remove the target op.
3576 (class process_target): Add the target op.
3577 (target_supports_agent): Update the macro.
3578 * target.cc (process_target::supports_agent): Define.
3580 Update the derived classes and callers below.
3582 * linux-low.cc (linux_target_ops): Update.
3583 (linux_supports_agent): Turn into ...
3584 (linux_process_target::supports_agent): ... this.
3585 * linux-low.h (class linux_process_target): Update.
3586 * lynx-low.cc (lynx_target_ops): Update.
3587 * nto-low.cc (nto_target_ops): Update.
3588 * win32-low.cc (win32_target_ops): Update.
3590 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3592 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3593 method of process_target.
3595 * target.h (struct process_stratum_target): Remove the target op.
3596 (class process_target): Add the target op. Also add
3597 'supports_qxfer_libraries_svr4'.
3598 * target.cc (process_target::qxfer_libraries_svr4): Define.
3599 (process_target::supports_qxfer_libraries_svr4): Define.
3601 Update the derived classes and callers below.
3603 * server.cc (handle_qxfer_libraries_svr4): Update.
3604 (handle_query): Update.
3605 * linux-low.cc (linux_target_ops): Update.
3606 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3607 (linux_qxfer_libraries_svr4): Turn into ...
3608 (linux_process_target::qxfer_libraries_svr4): ... this.
3609 * linux-low.h (class linux_process_target): Update.
3610 * lynx-low.cc (lynx_target_ops): Update.
3611 * nto-low.cc (nto_target_ops): Update.
3612 * win32-low.cc (win32_target_ops): Update.
3614 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3616 Turn process_stratum_target's supports_disable_randomization op
3617 into a method of process_target.
3619 * target.h (struct process_stratum_target): Remove the target op.
3620 (class process_target): Add the target op.
3621 (target_supports_disable_randomization): Update the macro.
3622 * target.cc (process_target::supports_disable_randomization): Define.
3624 Update the derived classes and callers below.
3626 * linux-low.cc (linux_target_ops): Update.
3627 (linux_supports_disable_randomization): Turn into ...
3628 (linux_process_target::supports_disable_randomization): ... this.
3629 * linux-low.h (class linux_process_target): Update.
3630 * lynx-low.cc (lynx_target_ops): Update.
3631 * nto-low.cc (nto_target_ops): Update.
3632 * win32-low.cc (win32_target_ops): Update.
3634 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3636 Turn process_stratum_target's emit_ops op into a method of
3639 * target.h (struct process_stratum_target): Remove the target op.
3640 (class process_target): Add the target op.
3641 (target_emit_ops): Update the macro.
3642 * target.cc (process_target::emit_ops): Define.
3644 Update the derived classes and callers below.
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_emit_ops): Turn into ...
3648 (linux_process_target::emit_ops): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 * win32-low.cc (win32_target_ops): Update.
3654 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3656 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3657 and get_min_fast_tracepoint_insn_len ops into methods of
3660 * target.h (struct process_stratum_target): Remove the target ops.
3661 (class process_target): Add the target ops. Also add
3662 'supports_fast_tracepoints'.
3663 (target_supports_fast_tracepoints): Update the macro.
3664 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3665 (install_fast_tracepoint_jump_pad): Update and rename the macro
3667 (target_install_fast_tracepoint_jump_pad): ... this.
3668 * target.cc (process_target::supports_fast_tracepoints): Define.
3669 (process_target::install_fast_tracepoint_jump_pad): Define.
3670 (process_target::get_min_fast_tracepoint_insn_len): Define.
3672 Update the derived classes and callers below.
3674 * tracepoint.cc (install_fast_tracepoint): Update.
3675 * linux-low.cc (linux_target_ops): Update.
3676 (linux_process_target::supports_fast_tracepoints): Define.
3677 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3678 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3679 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3680 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3681 * linux-low.h (class linux_process_target): Update.
3682 * lynx-low.cc (lynx_target_ops): Update.
3683 * nto-low.cc (nto_target_ops): Update.
3684 * win32-low.cc (win32_target_ops): Update.
3686 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3688 Turn process_stratum_target's stabilize_threads op into a
3689 method of process_target.
3691 * target.h (struct process_stratum_target): Remove the target op.
3692 (class process_target): Add the target op.
3693 (target_stabilize_threads): Update the macro.
3694 * target.cc (process_target::stabilize_threads): Define.
3696 Update the derived classes and callers below.
3698 * server.cc (handle_status): Update.
3699 * tracepoint.cc (cmd_qtdp): Update.
3700 (cmd_qtstart): Update.
3701 * linux-low.cc (linux_target_ops): Update.
3702 (linux_stabilize_threads): Turn into ...
3703 (linux_process_target::stabilize_threads): ... this.
3704 (linux_wait_1): Update.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 * nto-low.cc (nto_target_ops): Update.
3708 * win32-low.cc (win32_target_ops): Update.
3710 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3712 Turn process_stratum_target's pause_all and unpause_all ops
3713 into methods of process_target.
3715 * target.h (struct process_stratum_target): Remove the target ops.
3716 (class process_target): Add the target ops.
3717 (pause_all): Update the macro and rename to...
3718 (target_pause_all): ... this.
3719 (unpause_all): Update the macro and rename to...
3720 (target_unpause_all): ... this.
3721 * target.cc (process_target::pause_all): Define.
3722 (process_target::unpause_all): Define.
3724 Update the derived classes and callers below.
3726 * server.cc (handle_status): Update.
3727 * tracepoint.cc (clear_installed_tracepoints): Update.
3729 (cmd_qtstart): Update.
3730 (stop_tracing): Update.
3731 (cmd_qtstatus): Update.
3732 (upload_fast_traceframes): Update.
3733 (run_inferior_command): Update.
3734 * linux-low.cc (linux_target_ops): Update.
3735 (linux_pause_all): Turn into ...
3736 (linux_process_target::pause_all): ... this.
3737 (linux_unpause_all): Turn into ...
3738 (linux_process_target::unpause_all): ... this.
3739 (linux_process_target::prepare_to_access_memory): Update.
3740 (linux_process_target::done_accessing_memory): Update.
3741 * linux-low.h (class linux_process_target): Update.
3742 * lynx-low.cc (lynx_target_ops): Update.
3743 * nto-low.cc (nto_target_ops): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3746 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3748 Turn process_stratum_target's get_tib_address op into a method of
3751 * target.h (struct process_stratum_target): Remove the target op.
3752 (class process_target): Add the target op. Also add
3753 'supports_get_tib_address'.
3754 * target.cc (process_target::get_tib_address): Define.
3755 (process_target::supports_get_tib_address): Define.
3757 Update the derived classes and callers below.
3759 * server.cc (handle_query): Update.
3760 * linux-low.cc (win32_target_ops): Update.
3761 * lynx-low.cc (lynx_target_ops): Update.
3762 * nto-low.cc (nto_target_ops): Update.
3763 * win32-low.cc (win32_target_ops): Update.
3764 (win32_process_target::supports_get_tib_address): Define.
3765 (win32_get_tib_address): Turn into ...
3766 (win32_process_target::get_tib_address): ... this.
3767 * win32-low.h (class win32_process_target): Update.
3769 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771 Turn process_stratum_target's thread_stopped op into a method of
3774 * target.h (struct process_stratum_target): Remove the target op.
3775 (class process_target): Add the target op. Also add
3776 'supports_thread_stopped'.
3777 (target_thread_stopped): Update the macro.
3778 * target.cc (process_target::thread_stopped): Define.
3779 (process_target::supports_thread_stopped): Define.
3780 (prepare_to_access_memory): Update.
3782 Update the derived classes and callers below.
3784 * server.cc (queue_stop_reply_callback): Update.
3785 * linux-low.cc (linux_target_ops): Update.
3786 (linux_process_target::supports_thread_stopped): Define.
3787 (linux_thread_stopped): Turn into ...
3788 (linux_process_target::thread_stopped): ... this.
3789 * linux-low.h (class linux_process_target): Update.
3790 * lynx-low.cc (lynx_target_ops): Update.
3791 * nto-low.cc (nto_target_ops): Update.
3792 * win32-low.cc (win32_target_ops): Update.
3794 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796 Turn process_stratum_target's read_pc and write_pc ops into
3797 methods of process_target.
3799 * target.h (struct process_stratum_target): Remove the target ops.
3800 (class process_target): Add the target ops.
3801 * target.cc (process_target::read_pc): Define.
3802 (process_target::write_pc): Define.
3804 Update the derived classes and callers below.
3806 * regcache.cc (regcache_read_pc): Update.
3807 (regcache_write_pc): Update.
3808 * linux-low.cc (linux_target_ops): Update.
3809 (linux_read_pc): Turn into ...
3810 (linux_process_target::read_pc): ... this.
3811 (linux_write_pc): Turn into ...
3812 (linux_process_target::write_pc): ... this.
3813 * linux-low.h (class linux_process_target): Update.
3814 * lynx-low.cc (lynx_target_ops): Update.
3815 * nto-low.cc (nto_target_ops): Update.
3816 * win32-low.cc (win32_target_ops): Update.
3818 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820 Turn process_stratum_target's supports_tracepoints op into a
3821 method of process_target.
3823 * target.h (struct process_stratum_target): Remove the target op.
3824 (class process_target): Add the target op.
3825 (target_supports_tracepoints): Update the macro.
3826 * target.cc (process_target::supports_tracepoints): Define.
3828 Update the derived classes and callers below.
3830 * linux-low.cc (linux_target_ops): Update.
3831 (linux_supports_tracepoints): Turn into ...
3832 (linux_process_target::supports_tracepoints): ... this.
3833 * linux-low.h (class linux_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 * nto-low.cc (nto_target_ops): Update.
3836 * win32-low.cc (win32_target_ops): Update.
3838 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3840 Turn process_stratum_target's process_qsupported op into a method
3843 * target.h (struct process_stratum_target): Remove the target op.
3844 (class process_target): Add the target op.
3845 (target_process_qsupported): Update the macro.
3846 * target.cc (process_target::process_qsupported): Define.
3848 Update the derived classes and callers below.
3850 * linux-low.cc (linux_target_ops): Update.
3851 (linux_process_qsupported): Turn into ...
3852 (linux_process_target::process_qsupported): ... this.
3853 * linux-low.h (class linux_process_target): Update.
3854 * lynx-low.cc (lynx_target_ops): Update.
3855 * nto-low.cc (nto_target_ops): Update.
3856 * win32-low.cc (win32_target_ops): Update.
3858 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3860 Turn process_stratum_target's read_loadmap op into a method of
3863 * target.h (struct process_stratum_target): Remove the target op.
3864 (class process_target): Add the target op. Also add
3865 'supports_read_loadmap'.
3866 * target.cc (process_target::read_loadmap): Define.
3867 (process_target::supports_read_loadmap): Define.
3869 Update the derived classes and callers below.
3871 * server.cc (handle_qxfer_fdpic): Update.
3872 (handle_query): Update.
3873 * linux-low.cc (linux_target_ops): Update.
3874 (linux_process_target::supports_read_loadmap): Define.
3875 (linux_read_loadmap): Turn into ...
3876 (linux_process_target::read_loadmap): ... this.
3877 * linux-low.h (class linux_process_target): Update.
3878 * lynx-low.cc (lynx_target_ops): Update.
3879 * nto-low.cc (nto_target_ops): Update.
3880 * win32-low.cc (win32_target_ops): Update.
3882 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3884 Turn process_stratum_target's core_of_thread op into a method of
3887 * target.h (struct process_stratum_target): Remove the target op.
3888 (class process_target): Add the target op.
3889 (target_core_of_thread): Update the macro.
3890 * target.cc (process_target::core_of_thread): Define.
3892 Update the derived classes and callers below.
3894 * linux-low.cc (linux_target_ops): Update.
3895 (linux_process_target::core_of_thread): Define.
3896 * linux-low.h (class linux_process_target): Update.
3897 * lynx-low.cc (lynx_target_ops): Update.
3898 * nto-low.cc (nto_target_ops): Update.
3899 * win32-low.cc (win32_target_ops): Update.
3901 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903 Turn process_stratum_target's handle_monitor_command op into a
3904 method of process_target.
3906 * target.h (struct process_stratum_target): Remove the target op.
3907 (class process_target): Add the target op.
3908 (target_handle_monitor_command): Update the macro.
3909 * target.cc (process_target::handle_monitor_command): Define.
3911 Update the derived classes and callers below.
3913 * server.cc (handle_query): Update.
3914 * linux-low.cc (linux_target_ops): Update.
3915 (linux_process_target::handle_monitor_command): Define.
3916 * linux-low.h (class linux_process_target): Update.
3917 * lynx-low.cc (lynx_target_ops): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 * win32-low.cc (win32_target_ops): Update.
3921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923 Turn process_stratum_target's handle_new_gdb_connection op into a
3924 method of process_target.
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928 (target_handle_new_gdb_connection): Update the macro.
3929 * target.cc (process_target::handle_new_gdb_connection): Define.
3931 Update the derived classes and callers below.
3933 * linux-low.cc (linux_target_ops): Update.
3934 (linux_handle_new_gdb_connection): Turn into ...
3935 (linux_process_target::handle_new_gdb_connection): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3941 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943 Turn process_stratum_target's supports_fork_events,
3944 supports_vfork_events, and supports_exec_events ops into methods
3947 * target.h (struct process_stratum_target): Remove the target ops.
3948 (class process_target): Add the target ops.
3949 (target_supports_fork_events): Update the macro.
3950 (target_supports_vfork_events): Update the macro.
3951 (target_supports_exec_events): Update the macro.
3952 * target.cc (process_target::supports_fork_events): Define.
3953 (process_target::supports_vfork_events): Define.
3954 (process_target::supports_exec_events): Define.
3956 Update the derived classes and callers below.
3958 * linux-low.cc (linux_target_ops): Update.
3959 (linux_supports_fork_events): Turn into ...
3960 (linux_process_target::supports_fork_events): ... this.
3961 (linux_supports_vfork_events): Turn into ...
3962 (linux_process_target::supports_vfork_events): ... this.
3963 (linux_supports_exec_events): Turn into ...
3964 (linux_process_target::supports_exec_events): ... this.
3965 * linux-low.h (class linux_process_target): Update.
3966 * lynx-low.cc (lynx_target_ops): Update.
3967 * nto-low.cc (nto_target_ops): Update.
3968 * win32-low.cc (win32_target_ops): Update.
3970 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3972 Turn process_stratum_target's supports_multi_process op into a
3973 method of process_target.
3975 * target.h (struct process_stratum_target): Remove the target op.
3976 (class process_target): Add the target op.
3977 * target.cc (process_target::supports_multi_process): Define.
3978 (target_supports_multi_process): Update.
3980 Update the derived classes and callers below.
3982 * linux-low.cc (linux_target_ops): Update.
3983 (linux_supports_multi_process): Turn into ...
3984 (linux_process_target::supports_multi_process): ... this.
3985 * linux-low.h (class linux_process_target): Update.
3986 * lynx-low.cc (lynx_target_ops): Update.
3987 * nto-low.cc (nto_target_ops): Update.
3988 * win32-low.cc (win32_target_ops): Update.
3990 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3992 Turn process_stratum_target's supports_non_stop, async, and
3993 start_non_stop ops into methods of process_target.
3995 * target.h (struct process_stratum_target): Remove the target ops.
3996 (class process_target): Add the target ops.
3997 (target_supports_non_stop): Update the macro.
3998 (target_async): Update the macro.
3999 (start_non_stop): Remove declaration.
4000 * target.cc (process_target::supports_non_stop): Define.
4001 (process_target::async): Define.
4002 (process_target::start_non_stop): Define.
4003 (start_non_stop): Remove.
4005 Update the derived classes and callers below.
4007 * server.cc (handle_qxfer_siginfo): Update.
4008 (handle_query): Update.
4009 * linux-low.cc (linux_target_ops): Update.
4010 (linux_supports_non_stop): Turn into ...
4011 (linux_process_target::supports_non_stop): ... this.
4012 (linux_async): Turn into ...
4013 (linux_process_target::async): ... this.
4014 (linux_start_non_stop): Turn into ...
4015 (linux_process_target::start_non_stop): ... this.
4016 * linux-low.h (class linux_process_target): Update.
4017 * lynx-low.cc (lynx_target_ops): Update.
4018 * nto-low.cc (nto_target_ops): Update.
4019 (nto_supports_non_stop): Remove; rely on the default behavior
4021 * win32-low.cc (win32_target_ops): Update.
4023 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4025 Turn process_stratum_target's qxfer_siginfo op into a method of
4028 * target.h (struct process_stratum_target): Remove the target op.
4029 (class process_target): Add the target op. Also add
4030 'supports_qxfer_siginfo'.
4031 * target.cc (process_target::qxfer_siginfo): Define.
4032 (process_target::supports_qxfer_siginfo): Define.
4034 Update the derived classes and callers below.
4036 * server.cc (handle_qxfer_siginfo): Update.
4037 (handle_query): Update.
4038 * linux-low.cc (linux_target_ops): Update.
4039 (linux_process_target::supports_qxfer_siginfo): Define.
4040 (linux_xfer_siginfo): Turn into ...
4041 (linux_process_target::qxfer_siginfo): ... this.
4042 * linux-low.h (class linux_process_target): Update.
4043 * lynx-low.cc (lynx_target_ops): Update.
4044 * nto-low.cc (nto_target_ops): Update.
4045 * win32-low.cc (win32_target_ops): Update.
4047 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4049 Turn process_stratum_target's qxfer_osdata op into a method of
4052 * target.h (struct process_stratum_target): Remove the target op.
4053 (class process_target): Add the target op. Also add
4054 'supports_qxfer_osdata'.
4055 * target.cc (process_target::qxfer_osdata): Define.
4056 (process_target::supports_qxfer_osdata): Define.
4058 Update the derived classes and callers below.
4060 * server.cc (handle_qxfer_osdata): Update.
4061 (handle_query): Update.
4062 * linux-low.cc (linux_target_ops): Update.
4063 (linux_process_target::supports_qxfer_osdata): Define.
4064 (linux_qxfer_osdata): Turn into ...
4065 (linux_process_target::qxfer_osdata): ... this.
4066 * linux-low.h (class linux_process_target): Update.
4067 * lynx-low.cc (lynx_target_ops): Update.
4068 * nto-low.cc (nto_target_ops): Update.
4069 * win32-low.cc (win32_target_ops): Update.
4071 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4073 Turn process_stratum_target's hostio_last_error op into a
4074 method of process_target.
4076 * target.h (struct process_stratum_target): Remove the target op.
4077 (class process_target): Add the target op.
4078 * target.cc: Add "hostio.h" to includes.
4079 (process_target::hostio_last_error): Define.
4081 Update the derived classes and callers below.
4083 * hostio.cc (hostio_error): Update.
4084 * linux-low.cc: Remove "hostio.h" from includes.
4085 (linux_target_ops): Update.
4086 * lynx-low.cc (lynx_target_ops): Update.
4087 * nto-low.cc (nto_target_ops): Update.
4088 * win32-low.h (class win32_process_target): Update.
4089 * win32-low.cc (win32_target_ops): Update.
4090 (wince_hostio_last_error): Turn into ...
4091 (win32_process_target::hostio_last_error): ... this.
4093 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4095 Turn process_stratum_target's get_tls_address op into a method of
4098 * target.h (struct process_stratum_target): Remove the target op.
4099 (class process_target): Add the target op. Also add
4100 'supports_get_tls_address'.
4101 * target.cc (process_target::get_tls_address): Define.
4102 (process_target::supports_get_tls_address): Define.
4104 Update the derived classes and callers below.
4106 * server.cc (handle_query): Update.
4107 * linux-low.cc (linux_target_ops): Update.
4108 (linux_process_target::supports_get_tls_address): Define.
4109 (linux_process_target::get_tls_address): Define.
4110 * linux-low.h (class linux_process_target): Update.
4111 * lynx-low.cc (lynx_target_ops): Update.
4112 * nto-low.cc (nto_target_ops): Update.
4113 * win32-low.cc (win32_target_ops): Update.
4115 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4117 Turn process_stratum_target's read_offsets op into a method of
4120 * target.h (struct process_stratum_target): Remove the target op.
4121 (class process_target): Add the target op. Also add
4122 'supports_read_offsets'.
4123 * target.cc (process_target::read_offsets): Define.
4124 (process_target::supports_read_offsets): Define.
4126 Update the derived classes and callers below.
4128 * server.cc (handle_query): Update.
4129 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4130 (linux_target_ops): Update.
4131 (linux_process_target::supports_read_offsets): Define.
4132 (linux_read_offsets): Turn into ...
4133 (linux_process_target::read_offsets): ... this.
4134 * linux-low.h (class linux_process_target): Update.
4135 * lynx-low.cc (lynx_target_ops): Update.
4136 * nto-low.cc (nto_target_ops): Update.
4137 * win32-low.cc (win32_target_ops): Update.
4139 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4141 Turn process_stratum_target's stopped_by_watchpoint and
4142 stopped_data_address ops into methods of process_target.
4144 * target.h (struct process_stratum_target): Remove the target ops.
4145 (class process_target): Add the target ops.
4146 * target.cc (process_target::stopped_by_watchpoint): Define.
4147 (process_target::stopped_data_address): Define.
4149 Update the derived classes and callers below.
4151 * remote-utils.cc (prepare_resume_reply): Update.
4152 * linux-low.cc (linux_target_ops): Update.
4153 (linux_stopped_by_watchpoint): Turn into ...
4154 (linux_process_target::stopped_by_watchpoint): ... this.
4155 (linux_stopped_data_address): Turn into ...
4156 (linux_process_target::stopped_data_address): ... this.
4157 * linux-low.h (class linux_process_target): Update.
4158 * lynx-low.cc (lynx_target_ops): Update.
4159 * nto-low.cc (nto_target_ops): Update.
4160 (nto_stopped_by_watchpoint): Turn into ...
4161 (nto_process_target::stopped_by_watchpoint): ... this.
4162 (nto_stopped_data_address): Turn into ...
4163 (nto_process_target::stopped_data_address): ... this.
4164 * nto-low.h (class nto_process_target): Update.
4165 * win32-low.cc (win32_target_ops): Update.
4166 (win32_stopped_by_watchpoint): Turn into ...
4167 (win32_process_target::stopped_by_watchpoint): ... this.
4168 (win32_stopped_data_address): Turn into ...
4169 (win32_process_target::stopped_data_address): ... this.
4170 * win32-low.h (class win32_process_target): Update.
4172 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4174 Turn process_stratum_target's supports_hardware_single_step op into
4175 a method of process_target.
4177 * target.h (struct process_stratum_target): Remove the target op.
4178 (class process_target): Add the target op.
4179 (target_supports_hardware_single_step): Update the macro.
4180 (target_can_do_hardware_single_step): Remove declaration.
4181 * target.cc (process_target::supports_hardware_single_step): Define.
4182 (target_can_do_hardware_single_step): Remove.
4184 Update the derived classes and callers below.
4186 * linux-low.h (class linux_process_target): Update.
4187 * linux-low.cc (linux_target_ops): Update.
4188 (linux_supports_hardware_single_step): Turn into ...
4189 (linux_process_target::supports_hardware_single_step): ... this.
4190 * lynx-low.h (class lynx_process_target): Update.
4191 * lynx-low.cc (lynx_target_ops): Update.
4192 (lynx_process_target::supports_hardware_single_step): Define.
4193 * nto-low.h (class nto_process_target): Update.
4194 * nto-low.cc (nto_target_ops): Update.
4195 (nto_process_target::supports_hardware_single_step): Define.
4196 * win32-low.h (class win32_process_target): Update.
4197 * win32-low.cc (win32_target_ops): Update.
4198 (win32_process_target::supports_hardware_single_step): Define.
4200 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4202 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4203 ops into methods of process_target.
4205 * target.h (struct process_stratum_target): Remove the target ops.
4206 (class process_target): Add the target ops.
4207 (target_stopped_by_hw_breakpoint): Update the macro.
4208 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4209 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4210 (process_target::supports_stopped_by_hw_breakpoint): Define.
4212 Update the derived classes and callers below.
4214 * linux-low.cc (linux_target_ops): Update.
4215 (linux_stopped_by_hw_breakpoint): Turn into ...
4216 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4217 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4218 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4219 * linux-low.h (class linux_process_target): Update.
4220 * lynx-low.cc (lynx_target_ops): Update.
4221 * nto-low.cc (nto_target_ops): Update.
4222 * win32-low.cc (win32_target_ops): Update.
4224 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4226 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4227 ops into methods of process_target.
4229 * target.h (struct process_stratum_target): Remove the target ops.
4230 (class process_target): Add the target ops.
4231 (target_stopped_by_sw_breakpoint): Update the macro.
4232 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4233 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4234 (process_target::supports_stopped_by_sw_breakpoint): Define.
4236 Update the derived classes and callers below.
4238 * linux-low.cc (linux_target_ops): Update.
4239 (linux_stopped_by_sw_breakpoint): Turn into ...
4240 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4241 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4242 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4243 * linux-low.h (class linux_process_target): Update.
4244 * lynx-low.cc (lynx_target_ops): Update.
4245 * nto-low.cc (nto_target_ops): Update.
4246 * win32-low.cc (win32_target_ops): Update.
4248 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4250 Turn process_stratum_target's insert_point and remove_point ops
4251 into methods of process_target.
4253 * target.h (struct process_stratum_target): Remove the target ops.
4254 (class process_target): Add the target ops.
4255 * target.cc (process_target::insert_point): Define.
4256 (process_target::remove_point): Define.
4258 Update the derived classes and callers below.
4260 * mem-break.cc (set_raw_breakpoint_at): Update.
4261 (delete_raw_breakpoint): Update.
4262 (uninsert_raw_breakpoint): Update.
4263 (reinsert_raw_breakpoint): Update.
4264 * linux-low.cc (linux_target_ops): Update.
4265 (linux_insert_point): Turn into ...
4266 (linux_process_target::insert_point): ... this.
4267 (linux_remove_point): Turn into ...
4268 (linux_process_target::remove_point): ... this.
4269 * linux-low.h (class linux_process_target): Update.
4270 * lynx-low.cc (lynx_target_ops): Update.
4271 * nto-low.cc (nto_target_ops): Update.
4272 (nto_insert_point): Turn into ...
4273 (nto_process_target::insert_point): ... this.
4274 (nto_remove_point): Turn into ...
4275 (nto_process_target::remove_point): ... this.
4276 * nto-low.h (class nto_process_target): Update.
4277 * win32-low.cc (win32_target_ops): Update.
4278 (win32_insert_point): Turn into ...
4279 (win32_process_target::insert_point): ... this.
4280 (win32_remove_point): Turn into ...
4281 (win32_process_target::remove_point): ... this.
4282 * win32-low.h (class win32_process_target): Update.
4284 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4286 Turn process_stratum_target's supports_z_point_type op into a
4287 method of process_target.
4289 * target.h (struct process_stratum_target): Remove the target op.
4290 (class process_target): Add the target op.
4291 * target.cc (process_target::supports_z_point_type): Define.
4293 Update the derived classes and callers below.
4295 * mem-break.cc (z_type_supported): Update.
4296 * linux-low.cc (linux_target_ops): Update.
4297 (linux_supports_z_point_type): Turn into ...
4298 (linux_process_target::supports_z_point_type): ... this.
4299 * linux-low.h (class linux_process_target): Update.
4300 * lynx-low.cc (lynx_target_ops): Update.
4301 * nto-low.cc (nto_target_ops): Update.
4302 (nto_supports_z_point_type): Turn into ...
4303 (nto_process_target::supports_z_point_type): ... this.
4304 * nto-low.h (class nto_process_target): Update.
4305 * win32-low.cc (win32_target_ops): Update.
4306 (win32_supports_z_point_type): Turn into ...
4307 (win32_process_target::supports_z_point_type): ... this.
4308 * win32-low.h (class win32_process_target): Update.
4310 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4312 Turn process_stratum_target's read_auxv op into a method of
4315 * target.h (class process_stratum_target): Remove the target op.
4316 (struct process_target): Add the target op. Also add
4317 'supports_read_auxv'.
4318 * target.cc (process_target::read_auxv): Define.
4319 (process_target::supports_read_auxv): Define.
4321 Update the derived classes and callers below.
4323 * server.cc (handle_qxfer_auxv): Update.
4324 (handle_query): Update.
4325 * linux-low.cc (linux_target_ops): Update.
4326 (linux_process_target::supports_read_auxv): Define.
4327 (linux_read_auxv): Turn into ...
4328 (linux_process_target::read_auxv): ... this.
4329 * linux-low.h (class linux_process_target): Update.
4330 * lynx-low.cc (lynx_target_ops): Update.
4331 * nto-low.cc (nto_target_ops): Update.
4332 (nto_process_target::supports_read_auxv): Define.
4333 (nto_read_auxv): Turn into ...
4334 (nto_process_target::read_auxv): ... this.
4335 * nto-low.h (class nto_process_target): Update.
4336 * win32-low.cc (win32_target_ops): Update.
4338 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4340 Turn process_stratum_target's request_interrupt op into a method of
4343 * target.h (struct process_stratum_target): Remove the target op.
4344 (class process_target): Add the target op.
4346 Update the derived classes and callers below.
4348 * remote-utils.cc (putpkt_binary_1): Update.
4349 (input_interrupt): Update.
4351 * server.cc (handle_v_requests): Update.
4352 * linux-low.cc (linux_target_ops): Update.
4353 (linux_request_interrupt): Turn into ...
4354 (linux_process_target::request_interrupt): ... this.
4355 * linux-low.h (class linux_process_target): Update.
4356 * lynx-low.cc (lynx_target_ops): Update.
4357 (lynx_request_interrupt): Turn into ...
4358 (lynx_process_target::request_interrupt): ... this.
4359 * lynx-low.h (class lynx_process_target): Update.
4360 * nto-low.cc (nto_target_ops): Update.
4361 (nto_request_interrupt): Turn into ...
4362 (nto_process_target::request_interrupt): ... this.
4363 * nto-low.h (class nto_process_target): Update.
4364 * win32-low.cc (win32_target_ops): Update.
4365 (win32_request_interrupt): Turn into ...
4366 (win32_process_target::request_interrupt): ... this.
4367 * win32-low.h (class win32_process_target): Update.
4369 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4371 Turn process_stratum_target's look_up_symbols op into a method of
4374 * target.h (struct process_stratum_target): Remove the target op.
4375 (class process_target): Add the target op.
4376 * target.cc (process_target::look_up_symbols): Define.
4378 Update the derived classes and callers below.
4380 * server.cc (handle_query): Update.
4381 * linux-low.cc (linux_target_ops): Update.
4382 (linux_look_up_symbols): Turn into ...
4383 (linux_process_target::look_up_symbols): ... this.
4384 * linux-low.h (class linux_process_target): Update.
4385 * lynx-low.cc (lynx_target_ops): Update.
4386 * nto-low.cc (nto_target_ops): Update.
4387 * win32-low.cc (win32_target_ops): Update.
4389 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4391 Turn process_stratum_target's read_memory and write_memory
4392 ops into methods of process_target.
4394 * target.h (struct process_stratum_target): Remove the target ops.
4395 (class process_target): Add the target ops.
4397 Update the derived classes and callers below.
4399 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4400 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4401 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4402 (arm_get_syscall_trapinfo): Update.
4403 * linux-cris-low.cc (cris_breakpoint_at): Update.
4404 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4405 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4406 * linux-mips-low.cc (mips_breakpoint_at): Update.
4407 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4408 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4409 * linux-sh-low.cc (sh_breakpoint_at): Update.
4410 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4411 (sparc_store_gregset_from_stack): Update.
4412 (sparc_breakpoint_at): Update.
4413 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4414 * linux-tile-low.cc (tile_breakpoint_at): Update.
4415 * linux-x86-low.cc (x86_breakpoint_at): Update.
4416 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4417 * mem-brea.cc (insert_memory_breakpoint): Update.
4418 (validate_inserted_breakpoint): Update.
4419 * target.cc (read_inferior_memory): Update.
4420 (target_write_memory): Update.
4421 * linux-low.cc (linux_target_ops): Update.
4422 (linux_read_memory): Make a wrapper around the read_memory target
4424 (linux_process_target::read_memory): Rename from linux_read_memory.
4425 (linux_write_memory): Turn into ...
4426 (linux_process_target::write_memory): ... this.
4427 * linux-low.h (class linux_process_target): Update.
4428 * lynx-low.cc (lynx_target_ops): Update.
4429 (lynx_read_memory): Turn into ...
4430 (lynx_process_target::read_memory): ... this.
4431 (lynx_write_memory): Turn into ...
4432 (lynx_process_target::write_memory): ... this.
4433 * lynx-low.h (class lynx_process_target): Update.
4434 * nto-low.cc (nto_target_ops): Update.
4435 (nto_read_memory): Turn into ...
4436 (nto_process_target::read_memory): ... this.
4437 (nto_write_memory): Turn into ...
4438 (nto_process_target::write_memory): ... this.
4439 * nto-low.h (class nto_process_target): Update.
4440 * win32-low.cc (win32_target_ops): Update.
4441 (win32_read_inferior_memory): Turn into ...
4442 (win32_process_target::read_memory): ... this.
4443 (win32_write_inferior_memory): Turn into ...
4444 (win32_process_target::write_memory): ... this.
4445 * win32-low.h (class win32_process_target): Update.
4447 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4449 Turn process_stratum_target's prepare_to_access_memory and
4450 done_accessing_memory ops into methods of process_target.
4452 * target.h (struct process_stratum_target): Remove the target ops.
4453 (class process_target): Add the target ops.
4454 * target.cc (process_target::prepare_to_access_memory): Define.
4455 (process_target::done_accessing_memory): Define.
4456 (prepare_to_access_memory): Update.
4457 (done_accessing_memory): Update.
4459 Update the derived classes and callers below.
4461 * linux-low.cc (linux_target_ops): Update.
4462 (linux_prepare_to_access_memory): Turn into ...
4463 (linux_process_target::prepare_to_access_memory): ... this.
4464 (linux_done_accessing_memory): Turn into ...
4465 (linux_process_target::done_accessing_memory): ... this.
4466 * linux-low.h (class linux_process_target): Update.
4467 * lynx-low.cc (lynx_target_ops): Update.
4468 * nto-low.cc (nto_target_ops): Update.
4469 * win32-low.cc (win32_target_ops): Update.
4471 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4473 Turn process_stratum_target's fetch_registers and store_registers
4474 ops into methods of process_target.
4476 * target.h (struct process_stratum_target): Remove the target ops.
4477 (class process_target): Add the target ops.
4478 (fetch_inferior_registers): Update the macro.
4479 (store_inferior_registers): Update the macro.
4481 Update the derived classes and callers below.
4483 * linux-low.cc (linux_target_ops): Update.
4484 (linux_fetch_registers): Turn into ...
4485 (linux_process_target::fetch_registers): ... this.
4486 (linux_store_registers): Turn into ...
4487 (linux_process_target::store_registers): ... this.
4488 * linux-low.h (class linux_process_target): Update.
4489 * lynx-low.cc (lynx_target_ops): Update.
4490 (lynx_fetch_registers): Turn into ...
4491 (lynx_process_target::fetch_registers): ... this.
4492 (lynx_store_registers): Turn into ...
4493 (lynx_process_target::store_registers): ... this.
4494 * lynx-low.h (class lynx_process_target): Update.
4495 * nto-low.cc (nto_target_ops): Update.
4496 (nto_fetch_registers): Turn into ...
4497 (nto_process_target::fetch_registers): ... this.
4498 (nto_store_registers): Turn into ...
4499 (nto_process_target::store_registers): ... this.
4500 * nto-low.h (class nto_process_target): Update.
4501 * win32-low.cc (win32_target_ops): Update.
4502 (win32_fetch_inferior_registers): Turn into ...
4503 (win32_process_target::fetch_registers): ... this.
4504 (win32_store_inferior_registers): Turn into ...
4505 (win32_process_target::store_registers): ... this.
4506 * win32-low.h (class win32_process_target): Update.
4508 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4510 Turn process_stratum_target's wait op into a method of
4513 * target.h (struct process_stratum_target): Remove the target op.
4514 (class process_target): Add the target op.
4516 Update the derived classes and callers below.
4518 * target.cc (target_wait): Update.
4519 * linux-low.cc (linux_target_ops): Update.
4520 (linux_wait): Turn into ...
4521 (linux_process_target::wait): ... this.
4522 * linux-low.h (class linux_process_target): Update.
4523 * lynx-low.cc (lynx_target_ops): Update.
4524 (lynx_wait): Turn into ...
4525 (lynx_process_target::wait): ... this.
4526 * lynx-low.h (class lynx_process_target): Update.
4527 * nto-low.cc (nto_target_ops): Update.
4528 (nto_wait): Turn into ...
4529 (nto_process_target::wait): ... this.
4530 * nto-low.h (class nto_process_target): Update.
4531 * win32-low.cc (win32_target_ops): Update.
4532 (win32_wait): Turn into ...
4533 (win32_process_target::wait): ... this.
4534 (do_initial_child_stuff): Update.
4535 * win32-low.h (class win32_process_target): Update.
4537 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4539 Turn process_stratum_target's resume op into a method of
4542 * target.h (struct process_stratum_target): Remove the target op.
4543 (class process_target): Add the target op.
4545 Update the derived classes and callers below.
4547 * server.cc (resume): Update.
4548 * target.cc (target_stop_and_wait): Update.
4549 (target_continue_no_signal): Update.
4550 (target_continue): Update.
4551 * linux-low.cc (linux_target_ops): Update.
4552 (linux_resume): Turn into ...
4553 (linux_process_target::resume): ... this.
4554 * linux-low.h (class linux_process_target): Update.
4555 * lynx-low.cc (lynx_target_ops): Update.
4556 (lynx_resume): Turn into ...
4557 (lynx_process_target::resume): ... this.
4558 * lynx-low.h (class lynx_process_target): Update.
4559 * nto-low.cc (nto_target_ops): Update.
4560 (nto_resume): Turn into ...
4561 (nto_process_target::resume): ... this.
4562 * nto-low.h (class nto_process_target): Update.
4563 * win32-low.cc (win32_target_ops): Update.
4564 (win32_resume): Turn into ...
4565 (win32_process_target::resume): ... this.
4566 (win32_process_target::detach): Update.
4567 (do_initial_child_stuff): Update.
4568 * win32-low.h (class win32_process_target): Update.
4570 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4572 Turn process_stratum_target's thread_alive op into a method of
4575 * target.h (struct process_stratum_target): Remove the target op.
4576 (class process_target): Add the target op.
4577 (mythread_alive): Update the macro.
4579 Update the derived classes and callers below.
4581 * linux-low.cc (linux_target_ops): Update.
4582 (linux_thread_alive): Turn into ...
4583 (linux_process_target::thread_alive): ... this.
4584 (wait_for_sigstop): Update.
4585 * linux-low.h (class linux_process_target): Update.
4586 * lynx-low.cc (lynx_target_ops): Update.
4587 (lynx_thread_alive): Turn into ...
4588 (lynx_process_target::thread_alive): ... this.
4589 * lynx-low.h (class lynx_process_target): Update.
4590 * nto-low.cc (nto_target_ops): Update.
4591 (nto_thread_alive): Turn into ...
4592 (nto_process_target::thread_alive): ... this.
4593 * nto-low.h (class nto_process_target): Update.
4594 * win32-low.cc (win32_target_ops): Update.
4595 (win32_thread_alive): Turn into ...
4596 (win32_process_target::thread_alive): ... this.
4597 * win32-low.h (class win32_process_target): Update.
4599 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4601 Turn process_stratum_target's join op into a method of
4604 * target.h (struct process_stratum_target): Remove the target op.
4605 (class process_target): Add the target op.
4606 (join_inferior): Update the macro.
4608 Update the derived classes and callers below.
4610 * linux-low.cc (linux_target_ops): Update.
4611 (linux_join): Turn into ...
4612 (linux_process_target::join): ... this.
4613 * linux-low.h (class linux_process_target): Update.
4614 * lynx-low.cc (lynx_target_ops): Update.
4615 (lynx_join): Turn into ...
4616 (lynx_process_target::join): ... this.
4617 * lynx-low.h (class lynx_process_target): Update.
4618 * nto-low.cc (nto_target_ops): Update.
4619 (nto_process_target::join): Define.
4620 * nto-low.h (class nto_process_target): Update.
4621 * win32-low.cc (win32_target_ops): Update.
4622 (win32_join): Turn into ...
4623 (win32_process_target::join): ... this.
4624 * win32-low.h (class win32_process_target): Update.
4626 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4628 Turn process_stratum_target's mourn op into a method of
4631 * target.h (struct process_stratum_target): Remove the target op.
4632 (class process_target): Add the target op.
4634 Update the derived classes and callers below.
4636 * target.cc (target_mourn_inferior): Update.
4637 * linux-low.cc (linux_target_ops): Update.
4638 (linux_mourn): Turn into ...
4639 (linux_process_target::mourn): ... this.
4640 (handle_extended_wait): Update.
4641 (linux_process_target::kill): Update.
4642 (linux_process_target::detach): Update.
4643 * linux-low.h (class linux_process_target): Update.
4644 * lynx-low.cc (lynx_target_ops): Update.
4645 (lynx_mourn): Turn into ...
4646 (lynx_process_target::mourn): ... this.
4647 * lynx-low.h (class lynx_process_target): Update.
4648 * nto-low.cc (nto_target_ops): Update.
4649 (nto_mourn): Turn into ...
4650 (nto_process_target::mourn): ... this.
4651 * nto-low.h (class nto_process_target): Update.
4652 * win32-low.cc (win32_target_ops): Update.
4653 (win32_mourn): Turn into ...
4654 (win32_process_target::mourn): ... this.
4655 * win32-low.h (class win32_process_target): Update.
4657 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4659 Turn process_stratum_target's detach op into a method of
4662 * target.h (struct process_stratum_target): Remove the target op.
4663 (class process_target): Add the target op.
4664 (detach_inferior): Update the macro.
4666 Update the derived classes and callers below.
4668 * linux-low.cc (linux_target_ops): Update.
4669 (linux_detach): Turn into ...
4670 (linux_process_target::detach): ... this.
4671 * linux-low.h (class linux_process_target): Update.
4672 * lynx-low.cc (lynx_target_ops): Update.
4673 (lynx_detach): Turn into ...
4674 (lynx_process_target::detach): ... this.
4675 * lynx-low.h (class lynx_process_target): Update.
4676 * nto-low.cc (nto_target_ops): Update.
4677 (nto_detach): Turn into ...
4678 (nto_process_target::detach): ... this.
4679 * nto-low.h (class nto_process_target): Update.
4680 * win32-low.cc (win32_target_ops): Update.
4681 (win32_detach): Turn into ...
4682 (win32_process_target::detach): ... this.
4683 * win32-low.h (class win32_process_target): Update.
4685 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4687 Turn process_stratum_target's kill op into a method of
4690 * target.h (struct process_stratum_target): Remove the target op.
4691 (class process_target): Add the target op.
4693 Update the derived classes and callers below.
4695 * target.cc (kill_inferior): Update.
4696 * linux-low.cc (linux_target_ops): Update.
4697 (linux_kill): Turn into ...
4698 (linux_process_target::kill): ... this.
4699 * linux-low.h (class linux_process_target): Update.
4700 * lynx-low.cc (lynx_target_ops): Update.
4701 (lynx_kill): Turn into ...
4702 (lynx_process_target::kill): ... this.
4703 * lynx-low.h (class lynx_process_target): Update.
4704 * nto-low.cc (nto_target_ops): Update.
4705 (nto_kill): Turn into ...
4706 (nto_process_target::kill): ... this.
4707 * nto-low.h (class nto_process_target): Update.
4708 * win32-low.cc (win32_target_ops): Update.
4709 (win32_kill): Turn into ...
4710 (win32_process_target::kill): ... this.
4711 * win32-low.h (class win32_process_target): Update.
4713 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4715 Turn process_stratum_target's attach op into a method of
4718 * target.h (struct process_stratum_target): Remove the target op.
4719 (class process_target): Add the target op.
4720 (myattach): Update the macro.
4722 Update the derived classes and callers below.
4724 * linux-low.cc (linux_target_ops): Update.
4725 (linux_attach): Turn into ...
4726 (linux_process_target::attach): ... this.
4727 * linux-low.h (class linux_process_target): Update.
4728 * lynx-low.cc (lynx_target_ops): Update.
4729 (lynx_attach): Turn into ...
4730 (lynx_process_target::attach): ... this.
4731 * lynx-low.h (class lynx_process_target): Update.
4732 * nto-low.cc (nto_target_ops): Update.
4733 (nto_attach): Turn into ...
4734 (nto_process_target::attach): ... this.
4735 * nto-low.h (class nto_process_target): Update.
4736 * win32-low.cc (win32_target_ops): Update.
4737 (win32_attach): Turn into ...
4738 (win32_process_target::attach): ... this.
4739 * win32-low.h (class win32_process_target): Update.
4741 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4743 Turn process_stratum_target's post_create_inferior op into a method
4746 * target.h (struct process_stratum_target): Remove the target op.
4747 (class process_target): Add the target op.
4748 (target_post_create_inferior): Update the macro.
4749 * target.cc (process_target::post_create_inferior): Define.
4751 Update the derived classes and callers below.
4753 * linux-low.cc (linux_target_ops): Update.
4754 (linux_post_create_inferior): Turn into ...
4755 (linux_process_target::post_create_inferior): ... this.
4756 * linux-low.h (class linux_process_target): Update.
4757 * lynx-low.cc (lynx_target_ops): Update.
4758 * nto-low.cc (nto_target_ops): Update.
4759 * win32-low.cc (win32_target_ops): Update.
4761 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4763 Turn process_stratum_target's create_inferior op into a method of
4766 * target.h (struct process_stratum_target): Remove the target op.
4767 (class process_target): Add the target op.
4768 (create_inferior): Rename the macro to ...
4769 (target_create_inferior): ... this.
4771 Update the derived classes and callers below.
4773 * server.cc (handle_v_run): Update.
4774 (captured_main): Update.
4775 (process_serial_event): Update.
4776 * linux-low.cc (linux_target_ops): Update.
4777 (linux_create_inferior): Turn into ...
4778 (linux_process_target::create_inferior): ... this.
4779 * linux-low.h (class linux_process_target): Update.
4780 * lynx-low.cc (lynx_target_ops): Update.
4781 (lynx_create_inferior): Turn into ...
4782 (lynx_process_target::create_inferior): ... this.
4783 * lynx-low.h (class lynx_process_target): Update.
4784 * nto-low.cc (nto_target_ops): Update.
4785 (nto_create_inferior): Turn into ...
4786 (nto_process_target::create_inferior): ... this.
4787 * nto-low.h (class nto_process_target): Update.
4788 * win32-low.cc (win32_target_ops): Update.
4789 (win32_create_inferior): Turn into ...
4790 (win32_process_target::create_inferior): ... this.
4791 * win32-low.h (class win32_process_target): Update.
4793 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4795 * target.h (class process_target): New class definition.
4796 (struct process_stratum_target) <pt>: New field with type
4798 * linux-low.h (class linux_process_target): Define as a derived
4799 class of 'process_target'.
4800 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4802 * lynx-low.h (class lynx_process_target): Define as a derived
4803 class of 'process_target'.
4804 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4806 * nto-low.h (class nto_process_target): Define as a derived
4807 class of 'process_target'.
4808 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4810 * win32-low.h (class win32_process_target): Define as a derived
4811 class of 'process_target'.
4812 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4815 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4817 * configure: Regenerate.
4819 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4820 Andrew Burgess <andrew.burgess@embecosm.com>
4822 * linux-riscv-low.cc: New file.
4823 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4824 and nat/riscv-linux-tdesc.c.
4825 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4826 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4829 2020-02-14 Tom Tromey <tom@tromey.com>
4831 * acinclude.m4: Don't include acx_configure_dir.m4.
4832 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4833 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4834 (all, install-only, uninstall, clean-info, clean)
4835 (maintainer-clean): Don't recurse.
4836 (subdir_do, all-lib): Remove.
4837 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4839 (generated_files): Update.
4840 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4841 * configure: Rebuild.
4842 * configure.ac: Don't configure gnulib or libiberty.
4845 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4847 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4848 preparing the command line for CreateProcess.
4849 (win32_create_inferior): Reflect the program name in debugging
4850 output that shows the process and its command line.
4852 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4854 * Makefile.in: Rename source files from .c to .cc.
4855 * %.c: Rename to %.cc.
4856 * configure.ac: Rename server.c to server.cc.
4857 * configure: Re-generate.
4859 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4861 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4863 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4865 * win32-low.c (win32_create_inferior): Set signal_pid.
4867 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4868 Pedro Alves <palves@redhat.com>
4870 Skip building gdbserver in a cross-configuration.
4871 * configure.srv: Set $gdbserver_host depending on whether $target
4872 is $host. Use $gdbserver_host instead of $host.
4874 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4876 * configure: Re-generate.
4878 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4880 * configure: Re-generate.
4882 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4884 * acinclude.m4: Update warning.m4 path.
4886 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4888 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4889 (handle_exception): Set siginfo_er.
4890 (win32_xfer_siginfo): New function.
4892 2020-02-07 Tom Tromey <tom@tromey.com>
4893 Pedro Alves <palves@redhat.com>
4895 * README: Update build documentation.
4896 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4898 * configure.ac: Update paths.
4899 * configure: Rebuild.
4900 * acinclude.m4: Update paths.
4901 * Makefile.in: Update include paths.
4902 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4903 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4904 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4905 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4906 (%-generated.c): Update paths.
4907 * Move entire directory from ../gdb/gdbserver.
4909 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4911 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4913 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4915 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4916 assignment instead of srv_linux_obj.
4918 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4920 * server.c (handle_qxfer_libraries): Write segment-address with
4923 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4925 * Makefile.in (install-strip): New target.
4926 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4927 * aclocal.m4: Regenerate.
4928 * configure: Regenerate.
4929 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4931 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4933 * Makefile.in (SFILES): Adjust paths to point to real files.
4934 (OBS): Move waitstatus.o to target/waitstatus.o.
4935 (TAGS): Transform paths appropriately.
4937 (nat/%.o): ... this pattern rule.
4939 (target/%.o): ... this pattern rule.
4940 * configure.srv: Adjust paths throughout to include nat/ prefix
4941 with the revant files.
4942 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4943 * configure: Regenerate.
4945 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4947 * Makefile.in (TAGS): Remove config files from the recipe.
4949 2020-01-14 Tom Tromey <tom@tromey.com>
4951 * configure: Rebuild.
4952 * configure.ac: Remove any checks that were added to common.m4.
4953 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4956 2020-01-14 Tom Tromey <tom@tromey.com>
4958 * server.h: Include config.h.
4959 * gdbreplay.c: Include config.h.
4960 * configure: Rebuild.
4961 * configure.ac: Don't source common.host.
4962 * acinclude.m4: Update path.
4963 * Makefile.in (INCSUPPORT): New variable.
4964 (INCLUDE_CFLAGS): Add INCSUPPORT.
4965 (SFILES): Update paths.
4966 (version-generated.c): Update path to create-version.sh.
4967 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4969 2020-01-14 Tom Tromey <tom@tromey.com>
4971 * configure.ac (LIBS): Use WIN32APILIBS.
4972 (USE_WIN32API): Don't define.
4973 * configure: Rebuild.
4975 2020-01-14 Tom Tromey <tom@tromey.com>
4977 * configure: Rebuild.
4979 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4981 * Makefile.in (%-generated.c): Remove rule for files from
4984 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4986 * configure: Re-generate.
4988 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4990 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4992 * tracepoint.c (stop_tracing, flush_trace_buffer,
4993 about_to_request_buffer_space, get_trace_state_variable_value,
4994 set_trace_state_variable_value, gdb_collect): Add declaration.
4996 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4998 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4999 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
5000 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
5001 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
5002 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
5005 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5007 * inferiors.c: Include gdbsupport/common-inferior.h.
5009 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5011 * hostio-errno.c: Include hostio.h.
5013 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5015 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
5018 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5020 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
5021 * linux-arm-tdesc.h: Include arch/arm.h.
5023 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5025 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
5027 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5029 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
5030 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
5032 2020-01-10 Pedro Alves <palves@redhat.com>
5034 * fork-child.c (post_fork_inferior): Pass target down to
5036 * inferiors.c (switch_to_thread): Add process_stratum_target
5038 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
5039 * nto-low.c (nto_target_ops): Now a process_stratum_target.
5040 * linux-low.c (linux_target_ops): Now a process_stratum_target.
5041 * remote-utils.c (prepare_resume_reply): Pass the target to
5043 * target.c (the_target): Now a process_stratum_target.
5044 (done_accessing_memory): Pass the target to switch_to_thread.
5045 (set_target_ops): Ajust to use process_stratum_target.
5046 * target.h (struct target_ops): Rename to ...
5047 (struct process_stratum_target): ... this.
5048 (the_target, set_target_ops): Adjust.
5049 (prepare_to_access_memory): Adjust comment.
5050 * win32-low.c (child_xfer_memory): Adjust to use
5051 process_stratum_target.
5052 (win32_target_ops): Now a process_stratum_target.
5054 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5055 Pedro Alves <palves@redhat.com>
5057 * win32-low.c (get_child_debug_event): Extract the fatal exception
5058 from the exit status and convert to the equivalent Posix signal
5060 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5061 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5063 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5065 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5067 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5069 * server.c (gdbserver_version): Change copyright year to 2020.
5070 * gdbreplay.c (gdbreplay_version): Likewise.
5072 2019-12-19 Christian Biesinger <cbiesinger@google.com>
5074 * configure: Regenerate.
5075 * configure.ac: Quote variable arguments of test.
5077 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5079 * Makefile.in: Fix build with GNU Make 3.81
5081 2019-12-16 Tom Tromey <tromey@adacore.com>
5083 * server.c (get_exec_file): Constify result.
5085 2019-12-10 Christian Biesinger <cbiesinger@google.com>
5087 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5088 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5089 * config.in: Regenerate.
5090 * configure: Regenerate.
5091 * configure.ac: Don't check for strerror.
5092 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5093 Call safe_strerror instead of strerror.
5094 * server.h (strerror): Remove this now-unnecessary declaration.
5095 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5097 (gdb_agent_helper_thread): Likewise.
5098 * utils.c (perror_with_name): Likewise.
5100 2019-11-26 Tom Tromey <tom@tromey.com>
5102 * configure, config.in: Rebuild.
5104 2019-11-26 Tom Tromey <tom@tromey.com>
5106 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5107 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5109 * configure, config.in: Rebuild.
5111 2019-11-26 Tom Tromey <tom@tromey.com>
5113 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5114 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5115 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5116 * acinclude.m4: Include ax_pthread.m4.
5117 * config.in, configure: Rebuild.
5119 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5121 * debug.c (debug_set_output): Call safe_strerror instead of
5123 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5124 (linux_kill_one_lwp): Likewise.
5125 (linux_detach_one_lwp): Likewise.
5126 (linux_wait_for_event_filtered): Likewise.
5127 (store_register): Likewise.
5128 * lynx-low.c (lynx_attach): Likewise.
5129 * mem-break.c (insert_memory_breakpoint): Likewise.
5130 (remove_memory_breakpoint): Likewise.
5131 (delete_fast_tracepoint_jump): Likewise.
5132 (set_fast_tracepoint_jump): Likewise.
5133 (uninsert_fast_tracepoint_jumps_at): Likewise.
5134 (reinsert_fast_tracepoint_jumps_at): Likewise.
5135 * nto-low.c (nto_xfer_memory): Likewise.
5136 (nto_resume): Likewise.
5138 2019-11-20 Luis Machado <luis.machado@linaro.org>
5140 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5141 instead of register count.
5142 * tdesc.c (tdesc_contains_feature): New function.
5143 * tdesc.h (tdesc_contains_feature): New prototype.
5145 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5147 * Makefile.in: Add safe-strerror.c.
5148 * configure: Regenerate.
5149 * configure.ac: Don't source common.host.
5151 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5153 * config.in: Regenerate.
5154 * configure: Regenerate.
5156 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5158 * ax.c (ax_printf): Handle size_t_arg.
5160 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5162 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5163 * mi/mi-main.c (output_cores): Likewise.
5164 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5165 (linux_xfer_osdata_modules): Likewise.
5166 * remote.c (register_remote_support_xml): Likewise.
5167 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5168 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5170 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5172 * configure: Regenerate.
5173 * configure.ac: Remove check for strerror_r.
5175 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5177 * config.in: Regenerate.
5178 * configure: Regenerate.
5179 * configure.ac: Also check for strerror_r.
5181 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5183 * ax.h (debug_agent): Remove duplicate declaration.
5185 2019-10-26 Tom de Vries <tdevries@suse.de>
5187 * linux-aarch64-low.c: Fix typos in comments.
5188 * linux-arm-low.c: Same.
5189 * linux-low.c: Same.
5190 * linux-ppc-low.c: Same.
5191 * proc-service.c: Same.
5194 * tracepoint.c: Same.
5195 * win32-low.c: Same.
5197 2019-10-25 Tom Tromey <tromey@adacore.com>
5199 * utils.c (xstrdup): Remove.
5201 2019-10-23 Tom Tromey <tom@tromey.com>
5203 * configure, config.in: Rebuild.
5205 2019-10-23 Tom Tromey <tom@tromey.com>
5207 * configure: Rebuild.
5208 * acinclude.m4: Use m4_include, not sinclude.
5210 2019-10-17 Tom Tromey <tromey@adacore.com>
5212 * configure: Rebuild.
5213 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5214 in AC_CONFIG_FILES invocation.
5215 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5218 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5220 * server.c: Include xml-builtin.h.
5221 (get_xml_features): Don't declare xml_builtins here.
5223 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5225 * Makefile.in: Remove references to vec-ipa.o.
5227 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5229 * Makefile.in: Remove references to vec.c.
5231 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5233 * server.c (server_waiting): Change to bool.
5234 (extended_protocol): Likewise.
5235 (response_needed): Likewise.
5236 (exit_requested): Likewise.
5237 (run_once): Likewise.
5238 (report_no_resumed): Likewise.
5239 (non_stop): Likewise.
5240 (disable_packet_vCont): Likewise.
5241 (disable_packet_Tthread): Likewise.
5242 (disable_packet_qC): Likewise.
5243 (disable_packet_qfThreadInfo): Likewise.
5244 (handle_general_set): Update.
5245 (handle_detach): Update.
5246 (handle_monitor_command): Update.
5247 (handle_query): Update.
5248 (captured_main): Update.
5249 (process_serial_event): Update.
5250 * server.h (server_waiting): Change to bool.
5251 (disable_packet_vCont): Likewise.
5252 (disable_packet_Tthread): Likewise.
5253 (disable_packet_qC): Likewise.
5254 (disable_packet_qfThreadInfo): Likewise.
5255 (run_once): Likewise.
5256 (non_stop): Likewise.
5257 * target.c (target_stop_and_wait): Update.
5259 2019-10-02 Tom Tromey <tromey@adacore.com>
5261 * Makefile.in (SFILES): Add common-inferior.c.
5262 (OBS): Add common-inferior.o.
5263 * server.c (startup_with_shell): Don't define.
5265 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5267 * linux-low.c (linux_low_read_btrace): Update for change to
5270 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5272 * debug.c (debug_threads): Remove comment in favor of the header.
5273 * debug.h (using_threads): Add declaration.
5274 (debug_threads): Add comment.
5275 * linux-aarch64-low.c: Include debug.h and remove declaration of
5277 * nto-low.c: Likewise.
5278 * remote-utils.c: Likewise.
5279 * thread-db.c: Likewise.
5281 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5283 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5284 and powerpc-cell64l-ipa.o.
5285 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5286 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5287 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5290 * spu-low.c: Remove file.
5292 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5293 (parse_spufs_run): Remove.
5294 (ppc_get_pc): Remove Cell/B.E. support.
5295 (ppc_set_pc): Likewise.
5296 (ppc_breakpoint_at): Likewise.
5297 (ppc_arch_setup): Likewise.
5298 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5299 tdesc_powerpc_cell32l.
5300 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5301 or init_registers_powerpc_cell32l.
5302 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5303 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5304 or init_registers_powerpc_cell32l.
5305 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5306 (init_registers_powerpc_cell32l): Remove prototype.
5307 (init_registers_powerpc_cell64l): Likewise.
5309 * target.h (struct target_ops): Remove qxfer_spu member.
5310 * server.c (handle_qxfer_spu): Remove.
5311 (qxfer_packets): Remove entry for "spu".
5312 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5313 * linux-low.c (SPUFS_MAGIC): Remove.
5314 (spu_enumerate_spu_ids): Remove.
5315 (linux_qxfer_spu): Remove.
5316 (linux_target_ops): Remove qxfer_spu member.
5317 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5318 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5319 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5321 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5323 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5324 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5325 * config.in: Regenerate.
5326 * configure: Regenerate.
5328 2019-08-15 Tom Tromey <tromey@adacore.com>
5330 * target.c (target_write_memory): Use gdb::byte_vector.
5332 2019-08-15 Tom Tromey <tromey@adacore.com>
5334 * tracepoint.c (write_inferior_data_pointer)
5335 (write_inferior_integer, write_inferior_int8)
5336 (write_inferior_uinteger, m_tracepoint_action_download)
5337 (r_tracepoint_action_download, x_tracepoint_action_download)
5338 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5339 (download_agent_expr, download_tracepoint_1)
5340 (download_trace_state_variables, upload_fast_traceframes): Update.
5341 * server.c (gdb_write_memory): Update.
5342 * remote-utils.c (relocate_instruction): Update.
5343 * proc-service.c (ps_pdwrite): Update.
5344 * mem-break.c (remove_memory_breakpoint)
5345 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5346 (uninsert_fast_tracepoint_jumps_at)
5347 (reinsert_fast_tracepoint_jumps_at): Update.
5348 * linux-x86-low.c (append_insns)
5349 (i386_install_fast_tracepoint_jump_pad)
5350 (amd64_write_goto_address, i386_write_goto_address): Update.
5351 * linux-s390-low.c (append_insns, s390_write_goto_address):
5353 * linux-ppc-low.c (ppc_relocate_instruction)
5354 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5355 (ppc_write_goto_address): Update.
5356 * linux-aarch64-low.c (append_insns): Update.
5357 * target.h (struct target_ops): Update.
5358 (write_inferior_memory): Don't declare.
5359 * target.c (target_write_memory): Rename from
5360 write_inferior_memory. Remove old target_write_memory.
5362 2019-08-15 Tom Tromey <tromey@adacore.com>
5364 * target.c (write_inferior_memory): Use std::vector.
5366 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5369 * configure.ac: Drop enable-libmcheck support.
5370 * configure, config.in: Rebuild.
5371 * acinclude.m4: Don't include it.
5373 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5375 * configure.srv: Remove Arm xml files.
5377 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5379 * configure.srv: Add new files. Remove xml generated files.
5380 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5382 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5383 * linux-aarch32-tdesc.c: New file.
5384 * linux-aarch32-tdesc.h: New file.
5385 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5386 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5387 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5388 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5389 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5390 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5391 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5392 (arm_read_description): Call arm_linux_read_description.
5393 (initialize_low_arch): Don't init registers.
5394 * linux-arm-tdesc.c: New file.
5395 * linux-arm-tdesc.h: New file.
5397 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5399 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5400 Move counter inside for.
5401 (arm_read_description): Check ptrace earlier.
5402 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5404 2019-07-09 Tom Tromey <tom@tromey.com>
5406 * configure: Rebuild.
5407 * configure.ac: Change common to gdbsupport.
5408 * acinclude.m4: Change common to gdbsupport.
5409 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5410 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5411 common to gdbsupport.
5412 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5413 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5414 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5415 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5416 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5417 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5418 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5419 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5420 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5421 common to gdbsupport.
5423 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5425 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5427 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5429 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5431 * configure.srv: Remove legacy xml.
5432 * linux-aarch64-low.c (initialize_low_arch): Remove
5433 initialize_low_tdesc call.
5434 * linux-aarch64-tdesc-selftest.c: Remove file.
5435 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5436 * linux-x86-low.c (initialize_low_arch): Remove
5437 initialize_low_tdesc call.
5438 * linux-x86-tdesc-selftest.c: Remove file.
5439 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5441 2019-06-20 Tom de Vries <tdevries@suse.de>
5443 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5444 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5446 2019-06-19 Tom de Vries <tdevries@suse.de>
5448 * debug.h (debug_write): Change return type to ssize_t.
5449 * debug.c (debug_write): Same.
5451 2019-06-14 Tom Tromey <tom@tromey.com>
5453 * configure.ac: Use new path to gnulib.
5454 * configure: Rebuild.
5455 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5458 2019-06-11 Tom Tromey <tom@tromey.com>
5460 * Makefile.in (SFILES): Add alloc.c.
5462 (IPA_OBJS): Add alloc-ipa.o.
5463 (alloc-ipa.o): New target.
5464 (%.o: ../%.c): New pattern rule.
5466 2019-06-10 Tom Tromey <tromey@adacore.com>
5468 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5469 end warning with a newline.
5470 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5472 * thread-db.c (attach_thread): Don't end warning with a newline.
5473 (thread_db_notice_clone): Likewise.
5474 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5476 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5477 end warning with a newline.
5479 2019-06-04 Pedro Alves <palves@redhat.com>
5481 * server.c (captured_main): Use make_unique_xstrdup.
5483 2019-06-02 Tom Tromey <tom@tromey.com>
5485 * gdbreplay.c (fromhex): Remove.
5486 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5488 2019-05-29 Tom Tromey <tromey@adacore.com>
5490 * configure: Rebuild.
5492 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5494 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5495 sign extension code on 32-bit builds.
5497 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5500 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5502 2019-04-19 Tom Tromey <tom@tromey.com>
5504 * server.c (struct vstop_notif): Derive from notif_event.
5506 (queue_stop_reply): Update.
5507 (remove_all_on_match_ptid): Change type. Rewrite.
5508 (discard_queued_stop_replies): Rewrite.
5509 (in_queued_stop_replies_ptid): Change type.
5510 (in_queued_stop_replies): Rewrite.
5511 (notif_stop): Update.
5512 (queue_stop_reply_callback): Update.
5513 (captured_main): Don't call initialize_notif.
5514 (push_stop_notification): Update.
5515 * notif.c (notif_write_event, handle_notif_ack)
5516 (notif_event_enque, notif_push): Update.
5517 (notif_event_xfree, initialize_notif): Remove.
5518 * notif.h (struct notif_event): Include <list>, not
5520 (struct notif_server) <queue>: Now a std::list.
5521 (notif_event_p): Remove typedef.
5522 (initialize_notif): Don't declare.
5523 (struct notif_event): Add virtual destructor.
5525 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5527 * ax.c (ax_vdebug): Call debug_printf.
5528 * debug.c (debug_write): New function.
5529 * debug.h (debug_write): New declaration.
5530 * linux-low.c (sigchld_handler): Call debug_write.
5532 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5534 * debug.c (debug_set_output): New function.
5535 (debug_vprintf): Send output to debug_file.
5536 (debug_flush): Likewise.
5537 * debug.h (debug_set_output): New declaration.
5538 * server.c (handle_monitor_command): Add debug-file option.
5539 (captured_main): Likewise.
5541 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5543 * debug.c (remote_debug): Add definition.
5544 * debug.h (remote_debug): Add declaration.
5545 * hostio.c (remote_debug): Remove declaration.
5546 * remote-utils.c (struct ui_file): Likewise.
5547 (remote_debug): Likewise.
5548 * remote-utils.h (remote_debug): Likewise,
5549 * server.c (remote_debug): Remove definition.
5551 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5553 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5554 when using a 64-bit gdbserver.
5556 2019-04-09 Tom Tromey <tromey@adacore.com>
5558 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5560 2019-04-08 Tom Tromey <tom@tromey.com>
5562 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5564 (linux_resume_one_lwp): Likewise.
5566 2019-04-08 Tom Tromey <tom@tromey.com>
5568 * gdbreplay.c: Update.
5569 * linux-low.c: Update.
5572 2019-04-08 Tom Tromey <tom@tromey.com>
5574 * server.c: Use C++ exception handling.
5575 * linux-low.c: Use C++ exception handling.
5576 * gdbreplay.c: Use C++ exception handling.
5578 2019-04-08 Tom Tromey <tom@tromey.com>
5580 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5581 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5582 (captured_main, main): Update.
5583 * gdbreplay.c (main): Update.
5585 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5587 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5588 value in argument pointer, return 1 if the entry is found and 0
5589 otherwise. Move comment.
5590 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5591 * linux-low.h (linux_get_auxv): Declare.
5592 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5594 2019-04-05 Tom Tromey <tromey@adacore.com>
5596 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5599 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5601 * linux-low.c (AT_HWCAP2): Add define if not already included.
5603 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5605 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5606 (aarch64_arch_setup): Call linux_get_hwcap.
5607 * linux-arm-low.c (arm_get_hwcap): Remove function.
5608 (arm_read_description): Call linux_get_hwcap.
5609 * linux-low.c (linux_get_auxv): New function.
5610 (linux_get_hwcap): Likewise.
5611 (linux_get_hwcap2): Likewise.
5612 * linux-low.h (linux_get_hwcap): New declaration.
5613 (linux_get_hwcap2): Likewise.
5614 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5615 (ppc_arch_setup): Call linux_get_hwcap.
5616 * linux-s390-low.c (s390_get_hwcap): Remove function.
5617 (s390_arch_setup): Call linux_get_hwcap.
5619 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5620 Jiong Wang <jiong.wang@arm.com>
5622 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5623 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5625 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5627 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5628 Jiong Wang <jiong.wang@arm.com>
5630 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5631 (aarch64_get_hwcap): New function.
5632 (aarch64_arch_setup): Read APIA hwcap.
5634 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5635 Jiong Wang <jiong.wang@arm.com>
5637 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5638 (initialize_low_tracepoint): Likewise.
5639 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5640 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5641 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5642 (aarch64_linux_read_description): Likewise.
5643 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5645 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5647 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5648 i386_create_target_description for 'segments' parameter.
5649 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5650 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5651 * win32-i386-low.c (i386_arch_setup): Likewise.
5653 2019-03-12 Tom Tromey <tromey@adacore.com>
5655 * linux-low.c (iterate_over_lwps): Update.
5657 2019-03-06 Tom Tromey <tom@tromey.com>
5659 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5660 (captured_main): Use SCOPE_EXIT.
5662 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5664 * configure.srv: Use '$enable_unittest' instead of '$development'
5665 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5668 2019-02-27 Tom Tromey <tromey@adacore.com>
5670 * gdbreplay.c (logchar): Handle \r\n.
5672 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5674 * linux-low.c (linux_attach): Add process before lwp.
5675 * server.c (attach_inferior): Check if already attached.
5677 2019-02-07 Tom Tromey <tom@tromey.com>
5679 * x86-tdesc.h: Rename include guard.
5680 * x86-low.h: Add include guard.
5681 * wincecompat.h: Rename include guard.
5682 * win32-low.h: Add include guard.
5683 * utils.h: Rename include guard.
5684 * tracepoint.h: Rename include guard.
5685 * tdesc.h: Rename include guard.
5686 * target.h: Rename include guard.
5687 * server.h: Rename include guard.
5688 * remote-utils.h: Rename include guard.
5689 * regcache.h: Rename include guard.
5690 * nto-low.h: Rename include guard.
5691 * notif.h: Add include guard.
5692 * mem-break.h: Rename include guard.
5693 * lynx-low.h: Add include guard.
5694 * linux-x86-tdesc.h: Add include guard.
5695 * linux-s390-tdesc.h: Add include guard.
5696 * linux-ppc-tdesc-init.h: Add include guard.
5697 * linux-low.h: Add include guard.
5698 * linux-aarch64-tdesc.h: Add include guard.
5699 * linux-aarch32-low.h: Add include guard.
5700 * inferiors.h: Rename include guard.
5701 * i387-fp.h: Rename include guard.
5702 * hostio.h: Rename include guard.
5703 * gdbthread.h: Rename include guard.
5704 * gdb_proc_service.h: Rename include guard.
5705 * event-loop.h: Rename include guard.
5706 * dll.h: Rename include guard.
5707 * debug.h: Rename include guard.
5708 * ax.h: Rename include guard.
5710 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5713 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5714 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5716 2019-01-25 Tom Tromey <tom@tromey.com>
5718 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5720 2019-01-25 Tom Tromey <tom@tromey.com>
5722 * win32-low.c: Fix common/ includes.
5723 * win32-i386-low.c: Fix common/ includes.
5724 * tracepoint.c: Fix common/ includes.
5725 * thread-db.c: Fix common/ includes.
5726 * target.h: Fix common/ includes.
5727 * symbol.c: Fix common/ includes.
5728 * spu-low.c: Fix common/ includes.
5729 * server.h: Fix common/ includes.
5730 * server.c: Fix common/ includes.
5731 * remote-utils.c: Fix common/ includes.
5732 * regcache.h: Fix common/ includes.
5733 * regcache.c: Fix common/ includes.
5734 * nto-x86-low.c: Fix common/ includes.
5735 * notif.h: Fix common/ includes.
5736 * mem-break.h: Fix common/ includes.
5737 * lynx-low.c: Fix common/ includes.
5738 * lynx-i386-low.c: Fix common/ includes.
5739 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5740 * linux-x86-low.c: Fix common/ includes.
5741 * linux-low.c: Fix common/ includes.
5742 * inferiors.h: Fix common/ includes.
5743 * i387-fp.c: Fix common/ includes.
5744 * hostio.c: Fix common/ includes.
5745 * hostio-errno.c: Fix common/ includes.
5746 * gdbthread.h: Fix common/ includes.
5747 * gdbreplay.c: Fix common/ includes.
5748 * fork-child.c: Fix common/ includes.
5749 * event-loop.c: Fix common/ includes.
5750 * ax.c (enum gdb_agent_op): Fix common/ includes.
5752 2019-01-21 Tom Tromey <tom@tromey.com>
5754 * tracepoint.c: Fix includes.
5755 * remote-utils.c: Fix includes.
5756 * linux-x86-low.c: Fix includes.
5758 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5760 * gdbreplay.c (gdbreplay_version): Update copyright year in
5762 * server.c (gdbserver_version): Likewise.
5764 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5766 * linux-low.c (add_lwp): Switch ordering.
5768 2018-11-29 Tom Tromey <tom@tromey.com>
5770 * win32-low.c (win32_join): Take pid, not process.
5771 * target.h (struct target_ops) <join>: Change argument type.
5772 (join_inferior): Change argument name.
5773 * spu-low.c (spu_join): Take pid, not process.
5774 * server.c (handle_detach): Preserve pid before destroying
5776 * lynx-low.c (lynx_join): Take pid, not process.
5777 * linux-low.c (linux_join): Take pid, not process.
5779 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5781 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5782 (aarch64_cannot_fetch_register): Likewise.
5783 (struct linux_target_ops): Update references.
5785 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5787 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5789 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5791 * configure.srv (ipa_ppc_linux_regobj): Add
5792 powerpc-isa207-htm-vsx32l-ipa.o and
5793 powerpc-isa207-htm-vsx64l-ipa.o.
5794 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5795 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5796 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5797 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5798 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5799 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5800 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5801 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5802 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5803 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5804 (init_registers_powerpc_isa207_htm_vsx32l)
5805 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5806 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5807 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5808 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5809 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5810 (ppc_store_tm_ctarregset): New functions.
5811 (ppc_regsets): Add entries for HTM regsets.
5812 (ppc_arch_setup): Set htm in features struct when needed. Set
5813 sizes for the HTM regsets.
5814 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5815 (initialize_low_arch): Call
5816 init_registers_powerpc_isa207_htm_vsx32l and
5817 init_registers_powerpc_isa207_htm_vsx64l.
5818 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5819 PPC_TDESC_ISA207_HTM_VSX.
5820 (initialize_low_tracepoint): Call
5821 init_registers_powerpc_isa207_htm_vsx32l and
5822 init_registers_powerpc_isa207_htm_vsx64l.
5824 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5826 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5827 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5828 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5829 (ppc_store_pmuregset): New functions.
5830 (ppc_regsets): Add entries for ebb and pmu regsets.
5831 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5832 pmu regsets are available. Set sizes for these regsets.
5834 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5836 * configure.srv (ipa_ppc_linux_regobj): Add
5837 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5838 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5839 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5840 rs6000/powerpc-isa207-vsx32l.xml, and
5841 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5842 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5843 <PPC_TDESC_ISA207_VSX>: New enum value.
5844 (init_registers_powerpc_isa207_vsx32l): Declare.
5845 (init_registers_powerpc_isa207_vsx64l): Declare.
5846 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5847 (ppc_store_tarregset): New function.
5848 (ppc_regsets): Add entry for the TAR regset.
5849 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5850 size for the TAR regsets.
5851 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5852 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5853 and init_registers_powerpc_isa207_vsx64l.
5854 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5855 (initialize_low_tracepoint): Call
5856 init_registers_powerpc_isa207_vsx32l and
5857 init_registers_powerpc_isa207_vsx64l.
5859 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5860 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5862 * configure.srv (ipa_ppc_linux_regobj): Add
5863 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5864 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5865 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5866 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5867 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5868 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5869 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5870 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5871 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5872 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5873 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5874 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5875 (ppc_hwcap): Add comment.
5876 (ppc_hwcap2): New global.
5877 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5878 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5879 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5880 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5881 when needed. Set sizes for the the DSCR and PPR regsets.
5882 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5883 (initialize_low_arch): Call
5884 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5885 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5886 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5887 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5888 (initialize_low_tracepoint): Call
5889 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5890 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5892 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5894 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5896 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5897 Simon Marchi <simark@simark.ca>
5899 * acinclude.m4: Include "../selftest.m4".
5900 * configure: Regenerate.
5901 * configure.ac: Use "GDB_AC_SELFTEST".
5902 * configure.srv: Use "$enable_unittests" instead of
5903 "$development" when checking whether unit tests have been
5905 * server.c (captured_main): Update message informing that
5906 selftests have been disabled.
5908 2018-10-04 Tom Tromey <tom@tromey.com>
5910 * configure: Rebuild.
5912 2018-10-04 Tom Tromey <tom@tromey.com>
5914 * server.c (handle_status): Rename inner "thread".
5915 (process_serial_event): Declare "res" in 'm' case.
5916 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5917 (iterate_over_lwps): Rename inner "thread".
5918 (linux_qxfer_libraries_svr4): Rename inner "len".
5919 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5921 2018-10-01 Gary Benson <gbenson@redhat.com>
5923 * gdb_proc_service.h: Moved common code to
5924 common/gdb_proc_service.h.
5926 2018-10-01 Gary Benson <gbenson@redhat.com>
5928 * gdb_proc_service.h: Synchronize comments and whitespace with
5929 GDB's version of this file.
5931 2018-09-25 Tom Tromey <tom@tromey.com>
5933 * configure: Rebuild.
5934 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5936 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5938 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5939 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5940 ($(IPA_LIB)): Sort IPA_OBJS.
5942 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5944 * Makefile.in: Remove references to $(ADD_DEPS).
5946 2018-09-16 Tom Tromey <tom@tromey.com>
5948 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5950 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5953 2018-09-05 Tom Tromey <tom@tromey.com>
5955 * configure: Rebuild.
5957 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5960 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5962 2018-08-27 Tom Tromey <tom@tromey.com>
5965 * configure: Rebuild.
5967 2018-08-27 Tom Tromey <tom@tromey.com>
5969 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5970 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5971 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5972 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5973 (s390x_emit_stack_adjust): Add casts to unsigned char.
5975 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5979 * server.h (struct client_state) <disable_randomization>:
5982 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5984 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5986 (mips_supply_ptrace_register): Likewise.
5988 2018-07-22 Tom Tromey <tom@tromey.com>
5990 * configure: Rebuild.
5992 2018-07-22 Tom Tromey <tom@tromey.com>
5994 * win32-low.c (win32_create_inferior): Remove unused variables.
5995 * gdbreplay.c (remote_open): Remove unused variable.
5996 * remote-utils.c (remote_prepare): Remove unused variable.
5997 * x86-tdesc.h (X86_TDESC_H): Define.
5998 (amd64_expedite_regs): Define conditionally.
5999 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
6000 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
6001 * remote-utils.c (readchar): Remove unused variable.
6003 2018-07-13 Pedro Alves <palves@redhat.com>
6005 * linux-low.c (linux_kill): Change parameter to process_info
6006 pointer instead of pid. Adjust.
6007 * lynx-low.c (lynx_kill): Likewise.
6008 * nto-low.c (nto_kill): Likewise.
6009 * spu-low.c (spu_kill): Likewise.
6010 * win32-low.c (win32_kill): Likewise.
6011 * server.c (handle_v_kill, kill_inferior_callback)
6012 (detach_or_kill_for_exit): Adjust.
6013 * target.c (kill_inferior): Change parameter to process_info
6014 pointer instead of pid. Adjust.
6015 * target.h (struct target_ops) <kill>: Change parameter to
6016 process_info pointer instead of pid. Adjust all implementations
6018 (kill_inferior): Likewise.
6020 2018-07-13 Pedro Alves <palves@redhat.com>
6022 * linux-low.c (linux_detach, linux_join): Change parameter to
6023 process_info pointer instead of pid. Adjust.
6024 * lynx-low.c (lynx_detach, lynx_join): Likewise.
6025 * nto-low.c (nto_detach): Likewise.
6026 * spu-low.c (spu_detach, spu_join): Likewise.
6027 * win32-low.c (win32_detach, win32_join): Likewise.
6028 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
6029 * target.h (struct target_ops) <detach, join>: Change parameter to
6030 process_info pointer instead of pid. Adjust all implementations
6032 (detach_inferior, join_inferior): Rename 'pid' parameter to
6035 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6036 Jan Kratochvil <jan.kratochvil@redhat.com>
6037 Paul Fertser <fercerpav@gmail.com>
6038 Tsutomu Seki <sekiriki@gmail.com>
6040 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
6041 (OBS): Add 'common/netstuff.o'.
6042 (GDBREPLAY_OBS): Likewise.
6043 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
6044 (remote_open): Implement support for IPv6
6046 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6048 (handle_accept_event): Accept connections from IPv6 sources.
6049 (remote_prepare): Handle IPv6-style hostnames; implement
6050 support for IPv6 connections.
6051 (remote_open): Implement support for printing connections from
6054 2018-07-11 Pedro Alves <palves@redhat.com>
6057 * mem-break.c (any_persistent_commands): Add process_info
6058 parameter and use it instead of relying on the current process.
6059 Change return type to bool.
6060 * mem-break.h (any_persistent_commands): Add process_info
6061 parameter and change return type to bool.
6062 * server.c (handle_detach): Remove require_running_or_return call.
6063 Look up the process_info for the process we're about to detach.
6064 If not found, return back error to GDB. Adjust
6065 any_persistent_commands call to pass down a process pointer.
6067 2018-07-11 Pedro Alves <palves@redhat.com>
6069 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6070 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6071 instead of collect_register_by_name.
6072 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6073 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6075 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6076 Pedro Alves <palves@redhat.com>
6078 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6080 2018-07-03 Tom Tromey <tom@tromey.com>
6082 * linux-low.c: Update.
6083 * lynx-low.c: Update.
6084 * mem-break.c: Update.
6085 * nto-low.c: Update.
6086 * remote-utils.c: Update.
6088 * spu-low.c: Update.
6090 * win32-low.c: Update.
6092 2018-07-03 Tom Tromey <tom@tromey.com>
6096 2018-07-03 Tom Tromey <tom@tromey.com>
6098 * linux-low.c: Update.
6100 2018-07-03 Tom Tromey <tom@tromey.com>
6104 2018-07-03 Tom Tromey <tom@tromey.com>
6106 * linux-low.c: Update.
6107 * linux-mips-low.c: Update.
6108 * lynx-low.c: Update.
6109 * nto-low.c: Update.
6110 * remote-utils.c: Update.
6112 * spu-low.c: Update.
6114 * thread-db.c: Update.
6116 2018-07-03 Tom Tromey <tom@tromey.com>
6118 * linux-low.c: Update.
6119 * linux-mips-low.c: Update.
6120 * lynx-low.c: Update.
6121 * mem-break.c: Update.
6122 * nto-low.c: Update.
6123 * remote-utils.c: Update.
6125 * spu-low.c: Update.
6127 * tracepoint.c: Update.
6129 2018-07-03 Tom Tromey <tom@tromey.com>
6131 * linux-low.c: Update.
6132 * linux-ppc-low.c: Update.
6133 * linux-x86-low.c: Update.
6134 * proc-service.c: Update.
6136 * spu-low.c: Update.
6137 * thread-db.c: Update.
6138 * win32-low.c: Update.
6140 2018-07-03 Tom Tromey <tom@tromey.com>
6142 * linux-low.c: Update.
6143 * lynx-low.c: Update.
6144 * nto-low.c: Update.
6145 * remote-utils.c: Update.
6146 * spu-low.c: Update.
6147 * thread-db.c: Update.
6148 * win32-low.c: Update.
6150 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6152 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6153 parameter in call to 'amd64_create_target_description'.
6155 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6157 * x86-tdesc.h: Remove executable permission flag.
6159 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6161 * configure.ac: Remove AC_PREREQ, add missing quoting.
6162 * configure: Re-generate.
6163 * config.in: Re-generate.
6164 * aclocal.m4: Re-generate.
6166 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6168 * tracepoint.h (current_traceframe): Remove declaration.
6170 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6172 * linux-aarch64-low.c (is_sve_tdesc): New function.
6173 (aarch64_sve_regs_copy_to_regcache): Likewise.
6174 (aarch64_sve_regs_copy_from_regcache): Likewise.
6175 (aarch64_regs_info): Add SVE checks.
6176 (initialize_low_arch): Initialize SVE.
6178 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6180 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6182 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6184 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6185 (initialize_low_tracepoint): Likewise
6186 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6187 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6189 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6191 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6193 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6195 * server.h (PBUFSIZ): Increase size
6197 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6199 * regcache.c (regcache::raw_compare): New function.
6200 * regcache.h (regcache::raw_compare): New declaration.
6202 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6204 * regcache.c (new_register_cache): Use new.
6205 (free_register_cache): Use delete.
6206 (register_data): Use const.
6207 (supply_register): Move body inside regcache.
6208 (regcache::raw_supply): New override function.
6209 (collect_register): Move body inside regcache.
6210 (regcache::raw_collect): New override function.
6211 (regcache::get_register_status): New override function.
6212 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6214 2018-06-09 Tom Tromey <tom@tromey.com>
6216 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6218 (event_queue): Use std::queue.
6219 (gdb_event_xfree): Remove.
6220 (initialize_event_loop, process_event, wait_for_event): Update.
6222 2018-06-08 Stan Cox <scox@redhat.com>
6224 * win32-low.c (win32_create_inferior): last_ptid and last_status
6225 moved to client_state.
6227 2018-06-08 Pedro Alves <palves@redhat.com>
6229 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6230 common/common-exceptions.o, common/common-utils.o,
6231 common/errors.o, common/print-utils.o and utils.o.
6232 * gdbreplay.c: Include "common-defs.h" instead of the two
6233 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6234 string.h or alloca.h.
6235 (perror_with_name): Delete.
6236 (remote_open): Use xstrdup instead of strdup.
6237 (main): Rename to ...
6238 (captured_main): ... this.
6241 2018-06-08 Tom Tromey <tom@tromey.com>
6243 * linux-low.c (linux_low_read_btrace): Update.
6245 2018-06-04 Stan Cox <scox@redhat.com>
6247 * server.h (struct client_state): New.
6248 * server.c (cont_thread, general_thread, multi_process)
6249 (report_fork_events, report_vfork_events, report_exec_events)
6250 (report_thread_events, swbreak_feature, hwbreak_feature)
6251 (vCont_supported, disable_randomization, pass_signals)
6252 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6253 Moved to client_state.
6254 * remote-utils.c (remote_debug, noack_mode)
6255 (transport_is_reliable): Moved to client_state.
6256 * tracepoint.c (current_traceframe): Moved to client_state.
6259 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6260 linux-low.c, remote-utils.h, target.c: Use client_state.
6262 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6264 * configure.srv: Add new c/h file.
6266 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6268 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6271 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6273 * gdb.arch/mips-fpregset-core.exp: New test.
6274 * gdb.arch/mips-fpregset-core.c: New test source.
6276 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6279 * hostio.c (require_int): Do not report overflow for integers
6280 between 0xfffffff and 0x7fffffff.
6282 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6284 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6285 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6286 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6288 (the_low_target): Wire them.
6290 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6292 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6293 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6294 mode. Call collect_register_by_name with vscr using
6295 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6296 (ppc_store_vrregset): Add and set vscr_offset variable as in
6297 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6300 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6302 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6303 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6304 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6306 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6308 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6309 (ppc_store_vsxregset): Likewise.
6310 (ppc_fill_vrregset): Likewise.
6311 (ppc_store_vrregset): Likewise.
6312 (ppc_fill_evrregset): Likewise.
6313 (ppc_store_evrregset): Likewise.
6314 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6315 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6318 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6320 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6321 wordsize of the inferior. Call ppc_linux_target_wordsize.
6323 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6325 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6326 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6327 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6328 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6329 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6330 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6331 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6332 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6333 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6334 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6335 (tdesc_powerpc_e500l): Remove.
6336 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6337 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6338 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6339 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6341 (ppc_arch_setup): Remove target description matching code. Fill a
6342 ppc_linux_features struct and call ppc_linux_match_description
6345 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6347 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6348 width of the requested register exceeds the width of the
6350 (mips_cannot_store_register): Likewise.
6352 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6354 * linux-mips-low.c (mips_fetch_register): New function. Update
6356 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6357 (the_low_target): Wire `mips_fetch_register'.
6359 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6361 * lynx-i386-low.c (LYNXOS_178): New macro.
6362 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6363 the layout on LynxOS-178.
6364 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6365 handle floating point registers that are not supported by
6368 2018-05-10 Tom Tromey <tom@tromey.com>
6370 * configure: Rebuild.
6372 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6375 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6376 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6377 Use it to set the expedite_regs field in the given tdesc.
6378 * x86-tdesc.h: New file.
6379 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6380 Adjust following the addition of the new expedite_regs parameter
6381 to init_target_desc.
6382 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6383 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6384 (i386_linux_read_description, amd64_linux_read_description):
6385 Adjust following the addition of the new expedite_regs parameter
6386 to init_target_desc.
6387 * lynx-i386-low.c: #include "x86-tdesc.h".
6388 (lynx_i386_arch_setup): Adjust following the addition of the new
6389 expedite_regs parameter to init_target_desc.
6390 * nto-x86-low.c: #include "x86-tdesc.h".
6391 (nto_x86_arch_setup): Adjust following the addition of the new
6392 expedite_regs parameter to init_target_desc.
6393 * win32-i386-low.c: #include "x86-tdesc.h".
6394 (i386_arch_setup): Adjust following the addition of the new
6395 expedite_regs parameter to init_target_desc.
6397 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6400 * win32-low.c (win32_create_inferior): Add call to my_wait
6401 setting last_status global.
6403 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6406 * win32-low.c (create_process): Only call gdb_tilde_expand if
6407 inferior_cwd is not NULL.
6409 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6411 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6412 registers to the cache if their values have changed.
6413 (i387_xsave_to_cache): Provide default values for x87 control
6414 registers when these features are available, but disabled.
6415 * regcache.c (supply_register_by_name_zeroed): New function.
6416 * regcache.h (supply_register_by_name_zeroed): Declare new
6419 2018-05-07 Tom Tromey <tom@tromey.com>
6421 * configure: Rebuild.
6423 2018-05-04 Tom Tromey <tom@tromey.com>
6425 * configure: Rebuild.
6427 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6428 Pedro Alves <palves@redhat.com>
6430 * linux-aarch64-low.c (aarch64_stopped_data_address):
6433 2018-04-27 Tom Tromey <tom@tromey.com>
6435 * configure: Rebuild.
6437 2018-04-23 Tom Tromey <tom@tromey.com>
6439 * configure: Rebuild.
6441 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6443 * Makefile.in (depcomp): Add "..".
6444 (all_deps_files): New and use it.
6446 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6448 * configure.srv (aarch64*-*-linux*): Don't include xml.
6449 (i[34567]86-*-cygwin*): Likewise.
6450 (i[34567]86-*-linux*): Likewise.
6451 (i[34567]86-*-lynxos*): Likewise.
6452 (i[34567]86-*-mingw32ce*): Likewise.
6453 (i[34567]86-*-mingw*): Likewise.
6454 (i[34567]86-*-nto*): Likewise.
6455 (tic6x-*-uclinux): Likewise.
6456 (x86_64-*-linux*): Likewise.
6457 (x86_64-*-mingw*): Likewise.
6458 (x86_64-*-cygwin*): Likewise.
6460 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6462 * tdesc.c: Remove xml parameter.
6464 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6466 * server.c (get_features_xml): Remove cast.
6467 * tdesc.c (void target_desc::accept): Fill in function.
6468 (tdesc_get_features_xml): Remove old xml creation.
6469 (print_xml_feature::visit_pre): Add xml vistor.
6470 * tdesc.h (struct target_desc): Make xmltarget mutable.
6471 (tdesc_get_features_xml): Remove declaration.
6473 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6475 * tdesc.c (tdesc_architecture_name): Add new function.
6476 (tdesc_osabi_name): Likewise.
6477 (tdesc_get_features_xml): Use new functions.
6479 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6481 * tdesc.c (tdesc_create_flags): Remove.
6482 (tdesc_add_flag): Likewise.
6483 (tdesc_named_type): Likewise.
6484 (tdesc_create_union): Likewise.
6485 (tdesc_create_struct): Likewise.
6486 (tdesc_create_vector): Likewise.
6487 (tdesc_add_bitfield): Likewise.
6488 (tdesc_add_field): Likewise.
6489 (tdesc_set_struct_size): Likewise.
6491 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6493 * tdesc.c (~target_desc): Remove implictly deleted items.
6494 (init_target_desc): Iterate all features.
6495 (tdesc_get_features_xml): Use vector.
6496 (tdesc_create_feature): Create feature.
6497 * tdesc.h (tdesc_feature) Remove
6498 (target_desc): Add features.
6500 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6502 * Makefile.in: Add common/tdesc.c
6503 * tdesc.c (init_target_desc): init all reg_defs from register
6505 (tdesc_create_reg): Create tdesc_reg.
6506 * tdesc.h (tdesc_feature): Add register vector.
6508 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6510 * tdesc.h (struct target_desc) <features>: Change type to
6511 std::vector<std::string>.
6512 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6514 (tdesc_get_features_xml): Likewise.
6515 (tdesc_create_feature): Likewise.
6517 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6519 * regcache.c (find_register_by_number): Return a ref.
6520 (find_regno): Use references.
6521 (register_size): Likewise.
6522 (register_data): Likewise.
6523 * tdesc.c (target_desc::~target_desc): Remove free calls.
6524 (target_desc::operator==): Use std::vector compare.
6525 (init_target_desc): Use reference.
6526 (tdesc_create_reg): Use reg constructors.
6527 * tdesc.h (struct target_desc): Replace pointer with object.
6529 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6531 * regcache.c (find_register_by_number): Make static.
6532 (find_regno): Use find_register_by_number
6533 * regcache.h (struct reg): Remove declaration.
6535 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6537 * tdesc.c (target_desc::~target_desc): Move to here.
6538 (target_desc::operator==): Likewise.
6539 * tdesc.h (target_desc::~target_desc): Move from here.
6540 (target_desc::operator==): Likewise.
6542 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6544 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6546 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6548 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6550 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6551 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6552 and init_registers_s390_gs_linux64.
6554 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6556 * linux-s390-low.c (s390_fill_gs): Remove function.
6557 (s390_fill_gsbc): Remove function.
6558 (s390_regsets): Set fill functions for the guarded storage regsets
6561 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6563 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6564 the word size. Add comment.
6565 (s390_get_wordsize): New function.
6566 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6567 pswm with it. Instead, use s390_get_wordsize to determine the
6568 word size first and derive the correct tdesc from that directly.
6570 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6572 * Makefile.in: Include silent-rules.mk.
6573 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6574 (COMPILE): Add ECHO_CXX.
6575 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6576 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6577 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6578 (version-generated.c): Add ECHO_GEN.
6579 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6580 (IPAGENT_COMPILE): Add ECHO_CXX.
6581 (%-generated.c): Add ECHO_REGDAT.
6583 2018-03-14 Tom Tromey <tom@tromey.com>
6586 * ax.c (ax_printf): Special case for NULL.
6588 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6590 * linux-low.c (linux_qxfer_libraries_svr4): Use
6591 xml_escape_text_append.
6593 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6595 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6597 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6599 * server.c (handle_general_set): Remove unnecessary xstrdup.
6601 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6603 * server.c (parse_debug_format_options): Adjust to
6604 delim_string_to_char_ptr_vec changes.
6605 * thread-db.c (thread_db_load_search): Adjust to
6606 dirnames_to_char_ptr_vec changes.
6608 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6610 * target.h (target_enable_btrace, target_disable_btrace)
6611 (target_read_btrace, target_read_btrace_conf): Turn macro into
6612 inline function. Throw error if target method is not defined.
6613 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6614 check for btrace target method. Be prepared to handle exceptions
6615 from btrace target methods.
6617 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6619 * server.c (captured_main): Change order of error message printed
6620 when the current working directory cannot be found.
6622 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6624 * server.c: Include "filenames.h" and "pathstuff.h".
6625 (program_name): Delete variable.
6626 (program_path): New anonymous class.
6627 (get_exec_wrapper): Use "program_path" instead of
6629 (handle_v_run): Likewise.
6630 (captured_main): Likewise.
6631 (process_serial_event): Likewise.
6633 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6635 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6636 (OBJS): Add "pathstuff.o".
6637 * server.c (current_directory): New global variable.
6638 (captured_main): Initialize "current_directory".
6640 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6642 * tdesc.c: Use common/tdesc.h.
6643 * tdesc.h: Likewise.
6645 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6646 Simon Marchi <simon.marchi@ericsson.com>
6648 * Makefile.in: Switch order of make rules.
6650 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6652 * Makefile.in: Add common directory in build.
6653 * configure.ac: Add common reference.
6654 * configure: Regenerate.
6656 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6658 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6659 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6660 * spu-low.c (spu_target_ops): Likewise.
6661 * win32-low.c (win32_target_ops): Likewise.
6662 * server.c (supported_btrace_packets): Report packets unconditionally.
6663 * target.h (target_ops) <supports_btrace>: Remove.
6664 (target_supports_btrace): Remove.
6666 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6668 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6669 (handle_btrace_disable): Change return type to void. Use exceptions
6671 (handle_btrace_general_set): Catch exception and copy message to
6674 2018-02-08 Tom Tromey <tom@tromey.com>
6676 * linux-low.c (install_software_single_step_breakpoints): Use
6677 make_scoped_restore.
6678 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6679 (do_restore_current_thread_cleanup): Remove.
6680 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6683 2018-02-08 Tom Tromey <tom@tromey.com>
6685 * mem-break.c (set_raw_breakpoint_at): Use
6686 gdb::unique_xmalloc_ptr.
6688 2018-01-30 Pedro Alves <palves@redhat.com>
6691 * target.c (target_terminal::terminal_state): Rename to ...
6692 (target_terminal::m_terminal_state): ... this.
6694 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6696 * linux-low.c (handle_extended_wait): Surround call to
6697 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6699 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6701 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6702 linux_ptrace_attach_fail_reason_string now returning an
6704 (linux_attach): Likewise.
6705 * thread-db.c (attach_thread): Likewise.
6707 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6710 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6711 checking for fs_base/gs_base fields in struct user_regs_struct.
6712 * configure: Regenerate.
6714 2018-01-16 Yao Qi <yao.qi@linaro.org>
6717 * linux-low.c (fetch_register): Call supply_register instead of
6720 2018-01-08 Yao Qi <yao.qi@linaro.org>
6721 Simon Marchi <simon.marchi@ericsson.com>
6723 * Makefile.in (OBS): Remove selftest.o.
6724 * configure.ac: Set srv_selftest_objs if $development is true.
6725 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6726 * configure: Re-generated.
6727 * server.c (captured_main): Wrap variable selftest_filter with
6730 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6732 * server.c (parse_debug_format_options): Return std::string.
6733 (handle_monitor_command, captured_main): Adjust.
6735 2018-01-05 Pedro Alves <palves@redhat.com>
6738 * server.c (captured_main): Pass quiet=false to
6739 save_original_signals_state.
6741 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6743 * gdbreplay.c (gdbreplay_version): Update copyright year in
6745 * server.c (gdbserver_version): Likewise.
6747 2017-12-08 Tom Tromey <tom@tromey.com>
6749 * ax.c (ax_printf): Update.
6751 2017-12-07 Yao Qi <yao.qi@linaro.org>
6753 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6754 aarch64_linux_read_description.
6755 * linux-amd64-ipa.c (idx2mask): New array.
6756 (get_ipa_tdesc): Move idx2mask out.
6757 (initialize_low_tracepoint): Initialize target descriptions.
6758 * linux-i386-ipa.c (idx2mask): New array.
6759 (get_ipa_tdesc): Move idx2mask out.
6760 (initialize_low_tracepoint): Initialize target descriptions.
6762 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6764 * tdesc.c (struct tdesc_type): Change return type.
6765 (tdesc_add_flag): Change parameter type.
6766 (tdesc_add_bitfield): Likewise.
6767 (tdesc_add_field): Likewise.
6768 (tdesc_set_struct_size): Likewise.
6770 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6772 * regcache.c (registers_to_string): Remove unused variable.
6774 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6776 * inferiors.c (for_each_inferior_with_data): Remove.
6777 * inferiors.h (for_each_inferior_with_data): Remove.
6778 * server.c (handle_qxfer_threads_worker): Change parameter type.
6779 (handle_qxfer_threads_proper): Use for_each_thread.
6781 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6783 * inferiors.c (for_each_inferior): Remove.
6784 (clear_inferiors): Use for_each_thread.
6785 * inferiors.h (for_each_inferior): Remove.
6786 * linux-low.c (linux_wait_for_event_filtered): Use
6788 (linux_stabilize_threads): Likewise.
6789 * regcache.c (regcache_release): Likewise.
6790 * server.c (gdb_wants_all_threads_stopped): Likewise.
6791 (clear_pending_status_callback): Remove.
6792 (handle_status): Use for_each_thread.
6793 (captured_main): Likewise.
6794 * win32-low.c (child_init_thread_list): Likewise.
6795 (win32_clear_inferiors): Likewise.
6796 (fake_breakpoint_event): Likewise.
6798 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6800 * inferiors.h (find_inferior): Remove.
6801 * inferiors.c (find_inferior): Remove.
6803 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6805 * linux-low.c (resume_status_pending_p): Update comment.
6806 (need_step_over_p): Update comment.
6808 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6810 * linux-low.c (proceed_one_lwp): Return void, change parameter
6812 (unsuspend_and_proceed_one_lwp): Likewise.
6813 (proceed_all_lwps): Use for_each_thread.
6814 (unstop_all_lwps): Likewise.
6816 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6818 * linux-low.c (linux_resume_one_thread): Return void, take
6820 (linux_resume): Use for_each_thread.
6822 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6824 * linux-low.c (send_sigstop_callback): Return void, change
6825 parameter type. Rename to...
6826 (send_sigstop): ... this.
6827 (suspend_and_send_sigstop_callback): Return void, change parameter
6829 (suspend_and_send_sigstop): ... this.
6830 (stop_all_lwps): Use for_each_thread.
6832 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6834 * linux-low.c (lwp_running): Return bool, remove unused
6836 (linux_stabilize_threads): Use find_thread.
6838 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6840 * linux-low.c (select_singlestep_lwp_callback): Remove.
6841 (count_events_callback): Remove.
6842 (select_event_lwp_callback): Remove.
6843 (select_event_lwp): Use find_thread/for_each_thread.
6845 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6847 * linux-low.c (not_stopped_callback): Return bool, take filter
6849 (linux_wait_for_event_filtered): Use find_thread.
6850 (linux_wait_1): Likewise.
6852 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6854 * linux-low.c (same_lwp): Remove.
6855 (find_lwp_pid): Use find_thread.
6857 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6859 * linux-low.c (delete_lwp_callback): Remove.
6860 (linux_mourn): Use for_each_thread.
6862 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6864 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6865 args parameter, don't check for pid.
6866 (linux_detach): Use for_each_thread.
6868 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6870 * linux-low.c (struct counter): Remove.
6871 (second_thread_of_pid_p): Remove.
6872 (last_thread_of_process_p): Use find_thread.
6874 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6876 * inferiors.c (find_inferior_in_random): Remove.
6877 * inferiors.h (find_inferior_in_random): Remove.
6878 * linux-low.c (status_pending_p_callback): Return bool, accept
6879 parameter ptid directly.
6880 (linux_wait_for_event_filtered): Use find_thread_in_random.
6881 (linux_wait_1): Likewise.
6883 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6885 * inferiors.c (find_inferior_id): Remove.
6886 (find_thread_ptid): Move implemention from find_inferior_id to
6888 * inferiors.h (find_inferior_id): Remove.
6889 * server.c (handle_status): Use find_thread_ptid.
6890 (process_serial_event): Likewise.
6891 * thread-db.c (find_one_thread): Likewise.
6892 (thread_db_thread_handle): Likewise.
6893 * win32-low.c (thread_rec): Likewise.
6894 (child_delete_thread): Likewise.
6895 (win32_thread_alive): Likewise.
6896 (get_child_debug_event): Likewise.
6898 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6900 * linux-mips-low.c (update_watch_registers_callback): Return
6901 void, remove pid_p parameter, don't check for pid.
6902 (mips_insert_point, mips_remove_point): Use for_each_thread.
6904 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6906 * lynx.low (lynx_delete_thread_callback): Remove.
6907 (lynx_mourn): Use for_each_thread.
6909 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6911 * regcache.c (regcache_invalidate_one): Remove.
6912 (regcache_invalidate_pid): use for_each_thread.
6914 2017-11-26 Tom Tromey <tom@tromey.com>
6916 * linux-low.c (linux_create_inferior): Update.
6918 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6920 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6922 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6924 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6925 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6926 * linux-aarch64-tdesc-selftest.c: New file.
6927 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6929 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6931 * configure.srv: Add new file.
6932 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6933 * linux-aarch64-tdesc-selftest.c: New file.
6934 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6936 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6938 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6939 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6940 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6942 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6944 * configure.srv: Add new files.
6945 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6946 aarch64_linux_read_description.
6947 * linux-aarch64-low.c (aarch64_linux_read_description):
6948 Merge with aarch64_arch_setup.
6949 (aarch64_arch_setup): Call aarch64_linux_read_description.
6950 * linux-aarch64-tdesc.c: New file.
6951 * linux-aarch64-tdesc.h: New file.
6953 2017-11-24 Yao Qi <yao.qi@linaro.org>
6955 * configure.srv: Set $srv_regobj for tic6x-linux.
6956 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6957 (tic6x_read_description): Move some code to tic6x_arch_setup.
6958 (tic6x_tdesc_test): New function.
6959 (initialize_low_arch): Call selftests::register_test.
6961 2017-11-22 Yao Qi <yao.qi@linaro.org>
6963 * remote-utils.c (prepare_resume_reply): Use memcpy.
6965 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6967 * linux-low.c (kill_one_lwp_callback): Return void, take
6968 argument directly, don't filter on pid.
6969 (linux_kill): Use for_each_thread.
6971 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6973 * linux-low.c (need_step_over_p): Return bool, remove dummy
6975 (linux_resume, proceed_all_lwps): Use find_thread.
6977 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6979 * linux-low.c (resume_status_pending_p): Return bool, remove
6981 (linux_resume): Use find_thread.
6983 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6985 * linux-low.c (struct thread_resume_array): Remove.
6986 (linux_set_resume_request): Return void, take arguments
6988 (linux_resume): Use for_each_thread.
6990 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6992 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6993 return bool, remove data argument.
6994 (linux_stabilize_threads): Use find_thread.
6996 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6998 * linux-low.c (unsuspend_one_lwp): Remove.
6999 (unsuspend_all_lwps): Use for_each_thread, inline code from
7002 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7004 * gdbthread.h (find_thread): Add overload with ptid_t filter.
7005 * linux-low.c (struct iterate_over_lwps_args): Remove.
7006 (iterate_over_lwps_filter): Remove.
7007 (iterate_over_lwps): Use find_thread.
7009 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7011 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
7012 (linux_handle_new_gdb_connection): Use for_each_thread, inline
7013 code from reset_lwp_ptrace_options_callback.
7015 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7017 * linux-arm-low.c (struct update_registers_data): Remove.
7018 (update_registers_callback): Return void, take arguments
7019 directly, don't check thread's pid.
7020 (arm_insert_point, arm_remove_point): Use for_each_thread.
7022 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7024 * win32-low.c (continue_one_thread): Return void, take argument
7026 (child_continue): Use for_each_thread.
7028 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
7030 * win32-i386-low.c (update_debug_registers_callback): Rename
7032 (update_debug_registers): ... this, return void, remove pid_p arg.
7033 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
7035 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7037 * inferiors.h (struct process_info): Add constructor, initialize
7039 <syscalls_to_catch>: Change type to std::vector<int>.
7040 * inferiors.c (add_process): Allocate process_info with new.
7041 (remove_process): Free process_info with delete.
7042 * linux-low.c (handle_extended_wait): Adjust.
7043 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
7044 * server.c (handle_general_set): Adjust.
7046 2017-11-16 Pedro Alves <palves@redhat.com>
7048 * remote-utils.c (remote_close): Block SIGIO signals instead of
7049 uninstalling the SIGIO handler.
7051 2017-11-16 Alan Hayward <alan.hayward@arm.com>
7053 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7055 2017-11-16 Yao Qi <yao.qi@linaro.org>
7057 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7058 (tic6x_store_gregset): Likewise.
7059 (tic6x_usrregs_info): Move it up.
7061 2017-11-15 Alan Hayward <alan.hayward@arm.com>
7063 * Makefile.in: Update arch rules.
7064 * configure.srv: Explicitly mark arch/ files.
7066 2017-11-13 Andreas Schwab <schwab@suse.de>
7068 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7070 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7072 2017-11-06 Pedro Alves <palves@redhat.com>
7074 * config.in, configure: Regenerate.
7076 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7078 * target.c (struct thread_search): Remove.
7079 (thread_search_callback): Remove.
7080 (prepare_to_access_memory): Use for_each_thread instead of
7081 find_inferior. Inline code from thread_search_callback.
7083 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7085 * server.c (struct visit_actioned_threads_data): Remove.
7086 (visit_actioned_threads): Change prototype to take arguments
7088 (resume): Use find_thread instead of find_inferior.
7090 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7092 * server.c (queue_stop_reply_callback): Change prototype, return
7094 (find_status_pending_thread_callback): Remove.
7095 (handle_status): Replace find_inferior with find_thread and
7098 2017-10-25 Alan Hayward <alan.hayward@arm.com>
7100 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7102 (aarch64_store_gregset): Likewise.
7103 (aarch64_fill_fpregset): Likewise.
7104 (aarch64_store_fpregset): Likewise.
7106 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7108 * gdbthread.h (find_thread, for_each_thread): New functions.
7109 * inferiors.c (thread_of_pid): Remove.
7110 (find_any_thread_of_pid): Use find_thread.
7111 * linux-low.c (num_lwps): Use for_each_thread.
7113 2017-10-17 Yao Qi <yao.qi@linaro.org>
7115 * Makefile.in: Remove one rule.
7116 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7118 2017-10-17 Yao Qi <yao.qi@linaro.org>
7120 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7121 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7123 2017-10-17 Yao Qi <yao.qi@linaro.org>
7125 * configure.srv: Rename arm.o with arch/arm.o.
7127 2017-10-17 Yao Qi <yao.qi@linaro.org>
7129 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7130 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7131 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7132 (arch-i386.o, arch-amd64.o): Remove rules.
7133 (arch/%.o): New rule.
7134 Update POSTCOMPILE and COMPILE.pre.
7135 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7136 * configure: Re-generated.
7137 * configure.srv: Replace arch-i386.o with arch/i386.o.
7138 Replace arch-amd64.o with arch/amd64.o.
7140 2017-10-16 Yao Qi <yao.qi@linaro.org>
7142 * configure: Regenerated.
7144 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7146 * inferiors.h: (struct inferior_list): Remove.
7147 (struct inferior_list_entry); Remove.
7148 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7149 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7150 get_first_inferior): Remove.
7151 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7152 find_inferior_id, find_inferior_in_random): Change signature.
7153 * inferiors.c (all_threads): Change type to
7154 std::list<thread_info *>.
7155 (get_thread): Remove macro.
7156 (find_inferior, find_inferior_id): Change signature, implement
7158 (find_inferior_in_random): Change signature, implement using
7159 find_thread_in_random.
7160 (for_each_inferior, for_each_inferior_with_data): Change
7161 signature, implement using for_each_thread.
7162 (add_inferior_to_list, remove_inferior): Remove.
7163 (add_thread, get_first_thread, thread_of_pid,
7164 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7165 (get_first_inferior, one_inferior_p, clear_inferior_list):
7167 (clear_inferiors, get_thread_process): Update.
7168 * gdbthread.h: Include <list>.
7169 (struct thread_info) <entry>: Remove field.
7171 (all_threads): Change type to std::list<thread_info *>.
7172 (get_first_inferior): Add doc.
7173 (find_thread, for_each_thread, find_thread_in_random): New
7175 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7176 * linux-arm-low.c (update_registers_callback): Update.
7177 * linux-low.c (second_thread_of_pid_p): Update.
7178 (kill_one_lwp_callback, linux_detach_lwp_callback,
7179 delete_lwp_callback, status_pending_p_callback, same_lwp,
7180 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7181 iterate_over_lwps, not_stopped_callback,
7182 resume_stopped_resumed_lwps, count_events_callback,
7183 select_singlestep_lwp_callback, select_event_lwp_callback,
7184 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7185 suspend_and_send_sigstop_callback, wait_for_sigstop,
7186 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7187 lwp_running, linux_set_resume_request, resume_status_pending_p,
7188 need_step_over_p, start_step_over, linux_resume_one_thread,
7189 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7190 reset_lwp_ptrace_options_callback): Update.
7191 * linux-mips-low.c (update_watch_registers_callback): Update.
7192 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7194 (free_register_cache_thread_one): Remove.
7195 (regcache_release): Update.
7196 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7197 handle_qxfer_threads_worker): Update.
7198 (handle_query): Update, use list iterator.
7199 (visit_actioned_threads, handle_pending_status,
7200 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7201 clear_pending_status_callback, set_pending_status_callback,
7202 find_status_pending_thread_callback, handle_status,
7203 process_serial_event): Update.
7204 * target.c (thread_search_callback): Update.
7205 * thread-db.c (thread_db_get_tls_address): Update.
7206 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7208 * win32-i386-low.c (update_debug_registers_callback): Update.
7209 * win32-low.c (delete_thread_info, child_delete_thread,
7210 continue_one_thread, suspend_one_thread,
7211 get_child_debug_event): Adjust.
7213 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7215 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7216 * inferiors.h: Include <list>.
7217 (struct process_info) <entry>: Remove field.
7219 (pid_of): Change macro to function.
7220 (ptid_of, lwpid_of): Remove macro.
7221 (all_processes): Change type to std::list<process_info *>.
7222 (ALL_PROCESSES): Remove macro.
7223 (for_each_process, find_process): New function.
7224 * inferiors.c (all_processes): Change type to
7225 std::list<process_info *>.
7226 (find_thread_process): Adjust.
7227 (add_process): Likewise.
7228 (remove_process): Likewise.
7229 (find_process_pid): Likewise.
7230 (get_first_process): Likewise.
7231 (started_inferior_callback): Remove.
7232 (have_started_inferiors_p): Adjust.
7233 (attached_inferior_callback): Remove.
7234 (have_attached_inferiors_p): Adjust.
7235 * linux-low.c (check_zombie_leaders): Likewise.
7236 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7237 (x86_linux_update_xmltarget): Adjust.
7238 * server.c (handle_query): Likewise.
7239 (gdb_reattached_process): Remove.
7240 (handle_status): Adjust.
7241 (kill_inferior_callback): Likewise.
7242 (detach_or_kill_inferior): Remove.
7243 (print_started_pid): Likewise.
7244 (print_attached_pid): Likewise.
7245 (detach_or_kill_for_exit): Update.
7246 (process_serial_event): Likewise.
7247 * linux-arm-low.c (arm_new_fork): Likewise.
7249 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7251 * dll.h: Include <list>.
7252 (struct dll_info): Add constructor.
7253 <entry>: Remove field.
7254 (all_dlls): Change type to std::list<dll_info>.
7255 * dll.c: Include <algorithm>.
7256 (get_dll): Remove macro.
7257 (all_dlls): Change type to std::list<dll_info *>.
7258 (free_one_dll): Remove.
7259 (match_dll): Likewise.
7260 (loaded_dll): Adjust.
7261 (unloaded_dll): Adjust to all_dlls type change, use
7262 std::find_if. Inline code from match_dll.
7263 (clear_dlls): Adjust to all_dlls type change.
7264 * server.c (emit_dll_description): Remove.
7265 (handle_qxfer_libraries): Adjust to all_dlls type change,
7266 integrate emit_dll_description's functionality.
7268 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7270 * linux-low.h (struct linux_target_ops) <delete_process>: New
7272 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7273 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7274 (struct linux_target_ops): Add delete_process callback.
7275 * linux-arm-low.c (arm_delete_process): New.
7276 (struct linux_target_ops): Add delete_process callback.
7277 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7278 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7279 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7280 * linux-mips-low.c (mips_linux_delete_process): New.
7281 (struct linux_target_ops): Add delete_process callback.
7282 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7283 * linux-s390-low.c (struct linux_target_ops): Likewise.
7284 * linux-sh-low.c (struct linux_target_ops): Likewise.
7285 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7286 * linux-tile-low.c (struct linux_target_ops): Likewise.
7287 * linux-x86-low.c (x86_linux_delete_process): New.
7288 (struct linux_target_ops): Add delete_process callback.
7289 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7291 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7293 * linux-aarch64-low.c (the_low_target): Add thread delete
7295 * linux-arm-low.c (arm_delete_thread): New function.
7296 (the_low_target): Add thread delete callback.
7297 * linux-bfin-low.c (the_low_target): Likewise.
7298 * linux-crisv32-low.c (the_low_target): Likewise.
7299 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7301 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7303 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7304 * linux-mips-low.c (mips_linux_delete_thread): New function.
7305 (the_low_target): Add thread delete callback.
7306 * linux-ppc-low.c (the_low_target): Likewise.
7307 * linux-s390-low.c (the_low_target): Likewise.
7308 * linux-sh-low.c (the_low_target): Likewise.
7309 * linux-tic6x-low.c (the_low_target): Likewise.
7310 * linux-tile-low.c (the_low_target): Likewise.
7311 * linux-x86-low.c (the_low_target): Likewise.
7312 * linux-xtensa-low.c (the_low_target): Likewise.
7314 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7316 * win32-low.c: Include "common-inferior.h".
7318 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7320 * inferiors.c (set_inferior_cwd): New function.
7321 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7322 (handle_query): Inform that QSetWorkingDir is supported.
7323 * win32-low.c (create_process): Pass the inferior's cwd to
7326 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7328 * inferiors.c (current_inferior_cwd): New global variable.
7329 (get_inferior_cwd): New function.
7330 * inferiors.h (struct process_info) <cwd>: New field.
7332 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7334 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7335 (OBS): Add gdb_tilde_expand.o.
7337 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7339 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7340 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7342 2017-09-29 Pedro Alves <palves@redhat.com>
7344 * ax.c (gdb_parse_agent_expr): Constify.
7345 * ax.h (gdb_parse_agent_expr): Constify.
7346 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7348 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7349 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7350 * remote-utils.h (read_ptid): Constify.
7351 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7352 (process_point_options, process_serial_event): Constify.
7353 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7354 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7355 (cmd_qtbuffer): Constify.
7357 2017-09-29 Pedro Alves <palves@redhat.com>
7359 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7362 2017-09-29 Pedro Alves <palves@redhat.com>
7364 * linux-low.c (handle_extended_wait): Pass parent thread instead
7365 of process to thread_db_notice_clone.
7366 * linux-low.h (thread_db_notice_clone): Replace parent process
7367 parameter with parent thread parameter.
7368 * thread-db.c (find_one_thread): Add comment.
7369 (thread_db_notice_clone): Replace parent process parameter with
7370 parent thread parameter. Temporarily switch to the parent thread.
7372 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7374 * gdbthread.h: Include "common-gdbthread.h".
7375 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7376 "if" when validating the ptid.
7377 * remote-utils.c: Include "gdbthread.h".
7378 (prepare_resume_reply): Use "switch_to_thread".
7379 * target.c (done_accessing_memory): Likewise.
7381 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7383 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7384 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7385 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7386 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7387 s390x-gs-linux64-ipa.o to ipa_obj.
7388 * linux-s390-low.c (HWCAP_S390_GS): New define.
7389 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7391 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7392 (s390_arch_setup): Check for guarded-storage support and choose
7394 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7395 init_registers_s390x_gs_linux64.
7396 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7398 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7399 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7401 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7403 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7405 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7407 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7408 (thread_db_thread_handle): Declare.
7409 * linux-low.c (linux_target_ops): Initialize thread_handle.
7410 * server.c (handle_qxfer_threads_worker): Add support for
7412 * target.h (struct target_ops): Add new function pointer,
7414 (target_thread_handle): Define.
7415 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7417 (thread_db_thread_handle): New function.
7419 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7421 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7422 * linux-low.h (thread_db_notice_clone): Declare.
7423 * thread-db.c (thread_db_notice_clone): New function.
7425 2017-09-21 Pedro Alves <palves@redhat.com>
7427 * server.c (gdb_read_memory, handle_status, process_serial_event)
7428 (handle_serial_event, handle_target_event): Adjust to
7429 set_desired_thread prototype change.
7430 * target.c (set_desired_thread): Remove 'use_general' parameter
7432 * target.h (set_desired_thread): Remove 'use_general' parameter.
7434 2017-09-20 Tom Tromey <tom@tromey.com>
7436 * target.c (target_terminal::terminal_state): Define.
7437 (target_terminal::init): Rename from target_terminal_init.
7438 (target_terminal::inferior): Rename from
7439 target_terminal_inferior.
7440 (target_terminal::ours): Rename from target_terminal_ours.
7441 (target_terminal::ours_for_output, target_terminal::info): New.
7443 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7445 * server.c (accumulate_file_name_length): Remove.
7446 (emit_dll_description): Adjust to std::string change.
7447 (handle_qxfer_libraries): Use std::string to hold document.
7449 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7451 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7452 return type of xml_escape_text.
7453 * server.c (emit_dll_description): Likewise.
7455 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7457 * server.c (captured_main): Accept argument for --selftest.
7458 Update run_tests call.
7459 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7460 when registering selftests.
7462 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7464 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7465 instead of "VEC" for "target_desc.reg_defs".
7466 (regcache_cpy): Likewise.
7467 (registers_to_string): Likewise.
7468 (registers_from_string): Likewise.
7469 (find_regno): Likewise.
7470 (supply_regblock): Likewise.
7471 (regcache_raw_read_unsigned): Likewise.
7472 * tdesc.c (init_target_desc): Likewise.
7473 (tdesc_create_reg): Likewise.
7474 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7475 (struct target_desc) <reg_defs>: Convert to "std::vector".
7476 (target_desc): Do not initialize "reg_defs".
7477 (~target_desc): Update code to use "std::vector" instead of "VEC"
7478 for "target_desc.reg_defs".
7479 (operator==): Likewise.
7481 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7483 * inferiors.h (thread_to_gdb_id): Remove.
7484 * inferiors.c (thread_to_gdb_id): Remove.
7485 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7486 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7487 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7489 * nto-low.c (nto_fetch_registers, nto_store_registers,
7490 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7492 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7494 * inferiors.h (gdb_id_to_thread_id): Remove.
7495 * inferiors.c (gdb_id_to_thread_id): Remove.
7496 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7497 removal. Move pid declaration closer to where it's used.
7499 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7501 * server.c (handle_detach): New function.
7502 (process_serial_event): Move code out, call handle_detach.
7504 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7506 * server.c (require_running): Rename to ...
7507 (require_running_or_return): ... this ...
7508 (require_running_or_break): ... and this.
7509 (handle_query, process_serial_event): Adjust.
7511 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7513 * linux-low.c (linux_set_resume_request): Remove unused
7516 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7518 * server.c (first_thread_of): Remove.
7519 (process_serial_event): Replace usage of first_thread_of with
7520 find_any_thread_of_pid.
7521 * tracepoint.c (same_process_p): Remove.
7522 (gdb_agent_about_to_close): Replace usage of same_process_p with
7523 find_any_thread_of_pid.
7524 * linux-x86-low.c (same_process_callback): Remove.
7525 (x86_arch_setup_process_callback): Replace usage of
7526 same_process_callback with find_any_thread_of_pid.
7527 * thread-db.c (any_thread_of): Remove.
7528 (switch_to_process): Replace usage of any_thread_of with
7529 find_any_thread_of_pid.
7530 * inferiors.c (thread_pid_matches_callback): Remove.
7531 (find_thread_process): Adjust to use find_any_thread_of_pid.
7533 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7535 * regcache.c (get_thread_regcache): Guard calls to "memset"
7538 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7540 * linux-low.c (handle_extended_wait): Use
7541 "allocate_target_description" instead of "XNEW".
7542 * linux-x86-low.c (initialize_low_arch): Likewise.
7544 2017-09-05 Yao Qi <yao.qi@linaro.org>
7546 * configure.srv (srv_i386_regobj): Remove.
7547 (srv_amd64_regobj): Remove.
7548 (srv_regobj): Set it to "" for x86 non-linux targets.
7549 * linux-x86-tdesc.c (i386_linux_read_description):
7550 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7551 (init_registers_i386): Remove the declaration.
7552 (tdesc_i386): Remove the declaration.
7553 (lynx_i386_arch_setup): Call i386_create_target_description.
7554 * nto-x86-low.c: Likewise.
7555 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7556 [!__x86_64__]: include arch/i386.h.
7557 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7559 2017-09-05 Yao Qi <yao.qi@linaro.org>
7561 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7562 i386/amd64-XXX-linux from it.
7564 2017-09-05 Yao Qi <yao.qi@linaro.org>
7566 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7568 (ipa_amd64_linux_regobj): Remove.
7569 (ipa_x32_linux_regobj): Remove.
7571 2017-09-05 Yao Qi <yao.qi@linaro.org>
7573 * Makefile.in (arch-amd64.o): New rule.
7574 * configure.srv: Append arch-amd64.o.
7575 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7576 (get_ipa_tdesc): Call amd64_linux_read_description.
7577 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7578 and init_registers_amd64_XXX.
7579 * linux-x86-low.c (x86_linux_read_description): Call
7580 amd64_linux_read_description.
7581 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7582 (initialize_low_arch): Don't call init_registers_x32_XXX and
7583 init_registers_amd64_XXX.
7584 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7585 and tdesc_amd64_XXX.
7586 [__x86_64__] (amd64_tdesc_test): New function.
7587 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7588 and init_registers_amd64_XXX.
7589 * linux-x86-tdesc.c: Include arch/amd64.h.
7590 (xcr0_to_tdesc_idx): New function.
7591 (i386_linux_read_description): New function.
7592 (amd64_get_ipa_tdesc_idx): New function.
7593 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7594 (amd64_get_ipa_tdesc): Declare.
7596 2017-09-05 Yao Qi <yao.qi@linaro.org>
7598 * configure.srv (srv_i386_linux_xmlfiles): Remove
7599 i386/i386-XXX-linux.xml from it.
7601 2017-09-05 Yao Qi <yao.qi@linaro.org>
7603 * configure.srv: Set srv_i386_linux_regobj empty if $development
7605 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7606 initialize_low_tdesc.
7607 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7608 with #if initialize_low_tdesc.
7609 * linux-x86-tdesc-selftest.c: New file.
7610 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7612 2017-09-05 Yao Qi <yao.qi@linaro.org>
7614 * Makefile.in (arch-i386.o): New rule.
7615 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7616 (x86_64-*-linux*): Likewise.
7617 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7618 include arch/i386.h.
7619 (i386_linux_read_description): Remove code and call
7620 i386_create_target_description.
7621 * tdesc.c (allocate_target_description): New function.
7622 * tdesc.h (set_tdesc_architecture): Remove declaration.
7623 (set_tdesc_osabi): Likewise.
7625 2017-09-05 Yao Qi <yao.qi@linaro.org>
7627 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7628 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7629 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7631 * server.c (get_features_xml): Call tdesc_get_features_xml.
7632 * tdesc.c (set_tdesc_architecture): New function.
7633 (set_tdesc_osabi): New function.
7634 (tdesc_get_features_xml): New function.
7635 (tdesc_create_feature): Add an argument.
7636 * tdesc.h (struct target_desc) <features>: New field.
7637 <arch, osabi>: New field.
7638 (~target_desc): xfree features, arch, and osabi.
7639 (target_desc::oerator==): Don't compare .xmltarget.
7640 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7641 (set_tdesc_osabi): Likewise.
7642 (tdesc_get_features_xml): Likewise.
7644 2017-09-05 Yao Qi <yao.qi@linaro.org>
7646 * linux-x86-tdesc.c: Include selftest.h.
7647 (i386_tdesc_test): New function.
7648 (initialize_low_tdesc): Call selftests::register_test.
7649 * tdesc.h: Include regdef.h.
7650 (target_desc): Override operator == and !=.
7652 2017-09-05 Yao Qi <yao.qi@linaro.org>
7654 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7655 (ipa_obj): Likewise.
7656 * linux-i386-ipa.c: Include common/x86-xstate.h
7657 (get_ipa_tdesc): Call i386_linux_read_description.
7658 (initialize_low_tracepoint): Don't call init_registers_XXX
7659 functions, call initialize_low_tdesc instead.
7660 * linux-x86-low.c (x86_linux_read_description): Call
7661 i386_linux_read_description.
7662 (initialize_low_arch): Don't call init_registers_i386_XXX
7663 functions, call initialize_low_tdesc.
7664 * linux-x86-tdesc.c: New file.
7665 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7666 (i386_get_ipa_tdesc_idx): Declare.
7667 (i386_get_ipa_tdesc): Declare.
7668 (initialize_low_tdesc): Declare.
7670 2017-09-05 Yao Qi <yao.qi@linaro.org>
7672 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7675 2017-09-05 Yao Qi <yao.qi@linaro.org>
7677 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7678 * regcache.c (get_thread_regcache): Use VEC_length.
7679 (init_register_cache): Likewise.
7680 (regcache_cpy): Likewise.
7681 (registers_to_string): Iterate reg_defs via VEC_iterate.
7682 (find_regno): Likewise.
7683 (find_register_by_number): Use VEC_index.
7684 (register_size): Call find_register_by_number.
7685 (register_data): Call find_register_by_number.
7686 (supply_regblock): Use VEC_length.
7687 (regcache_raw_read_unsigned): Likewise.
7688 * tdesc.c (init_target_desc): Iterate reg_defs via
7690 (default_description): Update initializer.
7691 (copy_target_description): Don't update field num_registers.
7692 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7693 <num_registers>: Remove.
7695 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7697 * Makefile.in (.SECONDARY): Define target.
7699 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7701 * linux-low.c (linux_wait_1): Adjust.
7702 * server.c (queue_stop_reply_callback): Adjust.
7704 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7706 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7707 QEnvironmentUnset and QEnvironmentReset packets.
7708 (handle_query): Inform remote that QEnvironmentHexEncoded,
7709 QEnvironmentUnset and QEnvironmentReset are supported.
7711 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7713 * inferiors.h (inferior_target_data): Rename to ...
7714 (thread_target_data): ... this.
7715 (inferior_regcache_data): Rename to ...
7716 (thread_regcache_data): ... this.
7717 (set_inferior_regcache_data): Rename to ...
7718 (set_thread_regcache_data): ... this.
7719 * inferiors.c (inferior_target_data): Rename to ...
7720 (thread_target_data): ... this.
7721 (inferior_regcache_data): Rename to ...
7722 (thread_regcache_data): ... this.
7723 (set_inferior_regcache_data): Rename to ...
7724 (set_thread_regcache_data): ... this.
7725 (free_one_thread): Update.
7726 * linux-low.h (get_thread_lwp): Update.
7727 * regcache.c (get_thread_regcache): Update.
7728 (regcache_invalidate_thread): Update.
7729 (free_register_cache_thread): Update.
7730 * win32-i386-low.c (update_debug_registers_callback): Update.
7731 (win32_get_current_dr): Update.
7732 * win32-low.c (thread_rec): Update.
7733 (delete_thread_info): Update.
7734 (continue_one_thread): Update.
7735 (suspend_one_thread): Update.
7737 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7739 * inferiors.c (set_inferior_target_data): Remove.
7740 * inferiors.h (set_inferior_target_data): Remove.
7742 2017-08-18 Yao Qi <yao.qi@linaro.org>
7744 * Makefile.in (OBS): Add selftest.o.
7745 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7746 * configure, config.in: Re-generated.
7747 * server.c: Include common/sefltest.h.
7748 (captured_main): Handle option --selftest.
7750 2017-08-09 Yao Qi <yao.qi@linaro.org>
7752 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7753 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7754 i386-avx-mpx.o and i386-mmx.o.
7755 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7756 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7757 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7758 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7759 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7760 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7761 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7762 i386/amd64-avx-mpx.xml.
7764 2017-08-09 Yao Qi <yao.qi@linaro.org>
7766 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7767 and x32-avx-avx512.o.
7768 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7769 i386/x32-avx-avx512.xml.
7771 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7773 * tracepoint.h (enum class fast_tpoint_collect_result): New
7775 (fast_tracepoint_collecting): Change return type to
7776 fast_tpoint_collect_result.
7777 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7778 * linux-low.h: Include tracepoint.h.
7779 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7780 fast_tpoint_collect_result.
7781 * linux-low.c (handle_tracepoints): Adjust.
7782 (linux_fast_tracepoint_collecting): Change return type to
7783 fast_tpoint_collect_result.
7784 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7785 linux_wait_1, stuck_in_jump_pad_callback,
7786 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7787 proceed_one_lwp): Adjust to type change.
7789 2017-07-10 Yao Qi <yao.qi@linaro.org>
7791 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7793 2017-06-29 Yao Qi <yao.qi@linaro.org>
7795 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7797 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7799 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7801 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7803 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7805 * linux-low.c (linux_create_inferior): Adjust code to access the
7806 environment information via 'gdb_environ' class.
7807 * lynx-low.c (lynx_create_inferior): Likewise.
7808 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7809 (get_environ): Return a pointer to 'our_environ'.
7810 (captured_main): Initialize 'our_environ'.
7811 * server.h (get_environ): Adjust prototype.
7812 * spu-low.c (spu_create_inferior): Adjust code to access the
7813 environment information via 'gdb_environ' class.
7815 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7817 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7818 usage of "register" keyword.
7820 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7822 * configure: Re-generate.
7824 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7826 * configure: Re-generate.
7828 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7830 * Makefile.in (COMPILE.pre): Add "-x c++".
7832 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7834 * fork-child.c: Conditionally include <signal.h>.
7836 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7838 * server.c (handle_general_set): Handle new packet
7839 "QStartupWithShell".
7840 (handle_query): Add "QStartupWithShell" to the list of supported
7842 (gdbserver_usage): Add help text explaining the
7843 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7845 (captured_main): Recognize and act upon the presence of the new
7848 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7849 Pedro Alves <palves@redhat.com>
7851 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7852 * configure: Regenerate.
7853 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7855 (i[34567]86-*-lynxos*): Likewise.
7856 (spu*-*-*): Likewise.
7857 * fork-child.c: New file.
7858 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7860 (linux_ptrace_fun): New function.
7861 (linux_create_inferior): Adjust function prototype to reflect
7862 change on "target.h". Adjust function code to use
7864 (linux_request_interrupt): Delete "signal_pid".
7865 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7866 (lynx_ptrace_fun): New function.
7867 (lynx_create_inferior): Adjust function prototype to reflect
7868 change on "target.h". Adjust function code to use
7870 * nto-low.c (nto_create_inferior): Adjust function prototype and
7871 code to reflect change on "target.h". Update comments.
7872 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7873 "common-terminal.h" and "environ.h".
7874 (terminal_fd): Moved to fork-child.c.
7875 (old_foreground_pgrp): Likewise.
7876 (restore_old_foreground_pgrp): Likewise.
7877 (last_status): Make it global.
7878 (last_ptid): Likewise.
7879 (our_environ): New variable.
7880 (startup_with_shell): Likewise.
7881 (program_name): Likewise.
7882 (program_argv): Rename to...
7883 (program_args): ...this.
7884 (wrapper_argv): New variable.
7885 (start_inferior): Delete function.
7886 (get_exec_wrapper): New function.
7887 (get_exec_file): Likewise.
7888 (get_environ): Likewise.
7889 (prefork_hook): Likewise.
7890 (post_fork_inferior): Likewise.
7891 (postfork_hook): Likewise.
7892 (postfork_child_hook): Likewise.
7893 (handle_v_run): Update code to deal with arguments coming from the
7894 remote host. Update calls from "start_inferior" to
7896 (captured_main): Likewise. Initialize environment variable. Call
7898 * server.h (post_fork_inferior): New prototype.
7899 (get_environ): Likewise.
7900 (last_status): Declare.
7901 (last_ptid): Likewise.
7902 (signal_pid): Likewise.
7903 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7904 (spu_ptrace_fun): New function.
7905 (spu_create_inferior): Adjust function prototype to reflect change
7906 on "target.h". Adjust function code to use "fork_inferior".
7907 * target.c (target_terminal_init): New function.
7908 (target_terminal_inferior): Likewise.
7909 (target_terminal_ours): Likewise.
7910 * target.h: Include <vector>.
7911 (struct target_ops) <create_inferior>: Update prototype.
7912 (create_inferior): Update macro.
7913 * utils.c (gdb_flush_out_err): New function.
7914 * win32-low.c (win32_create_inferior): Adjust function prototype
7915 and code to reflect change on "target.h".
7917 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7919 * inferiors.c (switch_to_thread): New function.
7921 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7923 * Makefile.in (SFILE): Add "common/job-control.c".
7924 (OBS): Add "job-control.o".
7926 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7928 * Makefile: Remove "@host_makefile_frag@".
7930 2017-05-05 Pedro Alves <palves@redhat.com>
7932 * configure: Regenerate.
7934 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7936 * configure: Regenerate.
7938 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7940 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7941 software_single_step change of return type to
7942 std::vector<CORE_ADDR>.
7943 * linux-low.c (install_software_single_step_breakpoints):
7945 * linux-low.h (install_software_single_step_breakpoints):
7948 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7950 * remote-utils.c: Include "gdb_termios.h" instead of
7952 * terminal.h: Delete file.
7954 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7956 * server.c: Include <vector>.
7957 <program_argv, wrapper_argv>: Convert to std::vector.
7958 (start_inferior): Rewrite function to use C++.
7959 (handle_v_run): Likewise. Update code that calculates the argv
7960 based on the vRun packet; use C++.
7961 (captured_main): Likewise.
7963 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7965 * server.c (handle_v_cont): Initialize thread_resume::thread
7968 2017-04-05 Pedro Alves <palves@redhat.com>
7970 * configure: Regenerate.
7972 2017-04-05 Pedro Alves <palves@redhat.com>
7974 * gdbreplay.c (sync_error): Constify.
7975 * linux-x86-low.c (push_opcode): Constify.
7977 2017-04-05 Pedro Alves <palves@redhat.com>
7979 * win32-low.c (get_child_debug_event)
7980 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7981 Report TARGET_WAITKIND_SPURIOUS instead.
7983 2017-04-05 Pedro Alves <palves@redhat.com>
7985 * remote-utils.c (remote_prepare, remote_open): Constify.
7986 * remote-utils.h (remote_prepare, remote_open): Constify.
7987 * server.c (captured_main): Constify 'port' handling.
7989 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7991 * Makefile.in (clean): Clear .deps.
7993 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7995 * .gitignore: Remove generated files, replace with wildcard.
7996 * (clean): Replace removal of generated files with wildcard.
7997 (version.c): Replace with...
7998 (version-generated.c): ...this.
7999 (xml-builtin.c): Replace with...
8000 (xml-builtin-generated.c): ...this.
8001 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
8002 (%.c: *regformats*): Replace with...
8003 (%-generated.c: *regformats*): ...this.
8005 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8007 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
8008 (xtensa_fill_gregset): Call collect_register_by_name for
8010 (xtensa_store_gregset): Call supply_register_by_name for
8013 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8015 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
8016 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
8017 (xtensa_store_gregset): Call supply_register for all registers in
8018 a0_regnum..a0_regnum + C0_NREGS range.
8020 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8022 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
8023 (ax-ipa.o: ax.c): Remove.
8024 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
8025 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
8026 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
8027 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
8028 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
8030 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8032 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
8033 (print-utils-ipa.o: ../common/print-utils.c): Remove.
8034 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
8035 (errors-ipa.o: ../common/errors.c): Remove.
8036 (format-ipa.o: ../common/format.c): Remove.
8037 (common-utils-ipa.o: ../common/common-utils.c): Remove.
8039 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8041 * Makefile.in (%-ipa.o: %.c): New rule.
8042 (tracepoint-ipa.o: tracepoint.c): Remove.
8043 (utils-ipa.o: utils.c): Remove.
8044 (remote-utils-ipa.o: remote-utils.c): Remove.
8045 (regcache-ipa.o: regcache.c): Remove.
8046 (i386-linux-ipa.o: i386-linux.c): Remove.
8047 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8048 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8049 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8050 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8051 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8052 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8053 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8054 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8055 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8056 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8057 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8058 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8059 (aarch64-ipa.o: aarch64.c): Remove.
8060 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8061 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8062 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8063 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8064 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8065 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8066 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8067 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8068 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8069 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8070 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8071 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8072 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8073 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8074 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8075 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8076 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8077 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8078 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8079 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8080 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8081 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8082 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8083 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8084 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8085 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8086 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8087 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8088 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8089 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8090 (tdesc-ipa.o: tdesc.c): Remove.
8091 (x32-linux-ipa.o: x32-linux.c): Remove.
8092 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8093 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8095 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8097 * Makefile.in (%.o: ../arch/%.c): New rule.
8098 (arm.o: ../arch/arm.c): Remove.
8099 (arm-linux.o: ../arch/arm-linux.c): Remove.
8100 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8101 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8103 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8105 * Makefile.in (%.o: ../nat/%.c): New rule.
8106 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8107 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8108 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8109 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8110 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8111 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8112 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8113 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8114 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8115 (linux-personality.o: ../nat/linux-personality.c): Remove.
8116 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8117 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8118 (x86-linux.o: ../nat/x86-linux.c): Remove.
8119 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8120 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8122 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8124 * Makefile.in (%.o: ../common/%.c): New rule.
8125 (signals.o: ../common/signals.c): Remove.
8126 (print-utils.o: ../common/print-utils.c): Remove.
8127 (rsp-low.o: ../common/rsp-low.c): Remove.
8128 (common-utils.o: ../common/common-utils.c): Remove.
8129 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8130 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8131 (vec.o: ../common/vec.c): Remove.
8132 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8133 (xml-utils.o: ../common/xml-utils.c): Remove.
8134 (ptid.o: ../common/ptid.c): Remove.
8135 (buffer.o: ../common/buffer.c): Remove.
8136 (format.o: ../common/format.c): Remove.
8137 (filestuff.o: ../common/filestuff.c): Remove.
8138 (agent.o: ../common/agent.c): Remove.
8139 (errors.o: ../common/errors.c): Remove.
8140 (environ.o: ../common/environ.c): Remove.
8141 (common-debug.o: ../common/common-debug.c): Remove.
8142 (cleanups.o: ../common/cleanups.c): Remove.
8143 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8144 (fileio.o: ../common/fileio.c): Remove.
8145 (common-regcache.o: ../common/common-regcache.c): Remove.
8146 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8147 (new-op.o: ../common/new-op.c): Remove.
8148 (btrace-common.o: ../common/btrace-common.c): Remove.
8150 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8152 * Makefile.in (%.o: ../target/%.c): New rule.
8153 (waitstatus.o: ../target/waitstatus.c): Remove.
8155 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8158 (%.c: ../regformats/%.dat,
8159 (%.c: ../regformats/arm/%.dat,
8160 (%.c: ../regformats/i386/%.dat,
8161 (%.c: ../regformats/rs6000/%.dat): New rules.
8162 (aarch64.c): Remove.
8163 (reg-arm.c): Remove.
8164 (arm-with-iwmmxt.c): Remove.
8165 (arm-with-vfpv2.c): Remove.
8166 (arm-with-vfpv3.c): Remove.
8167 (arm-with-neon.c): Remove.
8168 (reg-bfin.c): Remove.
8169 (reg-cris.c): Remove.
8170 (reg-crisv32.c): Remove.
8172 (i386-linux.c): Remove.
8173 (i386-avx.c): Remove.
8174 (i386-avx-linux.c): Remove.
8175 (i386-avx-avx512.c): Remove.
8176 (i386-avx-avx512-linux.c): Remove.
8177 (i386-mpx.c): Remove.
8178 (i386-mpx-linux.c): Remove.
8179 (i386-avx-mpx-avx512-pku.c): Remove.
8180 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8181 (i386-avx-mpx.c): Remove.
8182 (i386-avx-mpx-linux.c): Remove.
8183 (i386-mmx.c): Remove.
8184 (i386-mmx-linux.c): Remove.
8185 (reg-ia64.c): Remove.
8186 (reg-m32r.c): Remove.
8187 (reg-m68k.c): Remove.
8189 (mips-linux.c): Remove.
8190 (mips-dsp-linux.c): Remove.
8191 (mips64-linux.c): Remove.
8192 (mips64-dsp-linux.c): Remove.
8193 (nios2-linux.c): Remove.
8194 (powerpc-32.c): Remove.
8195 (powerpc-32l.c): Remove.
8196 (powerpc-altivec32l.c): Remove.
8197 (powerpc-cell32l.c): Remove.
8198 (powerpc-vsx32l.c): Remove.
8199 (powerpc-isa205-32l.c): Remove.
8200 (powerpc-isa205-altivec32l.c): Remove.
8201 (powerpc-isa205-vsx32l.c): Remove.
8202 (powerpc-e500l.c): Remove.
8203 (powerpc-64l.c): Remove.
8204 (powerpc-altivec64l.c): Remove.
8205 (powerpc-cell64l.c): Remove.
8206 (powerpc-vsx64l.c): Remove.
8207 (powerpc-isa205-64l.c): Remove.
8208 (powerpc-isa205-altivec64l.c): Remove.
8209 (powerpc-isa205-vsx64l.c): Remove.
8210 (s390-linux32.c): Remove.
8211 (s390-linux32v1.c): Remove.
8212 (s390-linux32v2.c): Remove.
8213 (s390-linux64.c): Remove.
8214 (s390-linux64v1.c): Remove.
8215 (s390-linux64v2.c): Remove.
8216 (s390-te-linux64.c): Remove.
8217 (s390-vx-linux64.c): Remove.
8218 (s390-tevx-linux64.c): Remove.
8219 (s390x-linux64.c): Remove.
8220 (s390x-linux64v1.c): Remove.
8221 (s390x-linux64v2.c): Remove.
8222 (s390x-te-linux64.c): Remove.
8223 (s390x-vx-linux64.c): Remove.
8224 (s390x-tevx-linux64.c): Remove.
8225 (tic6x-c64xp-linux.c): Remove.
8226 (tic6x-c64x-linux.c): Remove.
8227 (tic6x-c62x-linux.c): Remove.
8229 (reg-sparc64.c): Remove.
8230 (reg-spu.c): Remove.
8232 (amd64-linux.c): Remove.
8233 (amd64-avx.c): Remove.
8234 (amd64-avx-linux.c): Remove.
8235 (amd64-avx-avx512.c): Remove.
8236 (amd64-avx-avx512-linux.c): Remove.
8237 (amd64-mpx.c): Remove.
8238 (amd64-mpx-linux.c): Remove.
8239 (amd64-avx-mpx-avx512-pku.c): Remove.
8240 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8241 (amd64-avx-mpx.c): Remove.
8242 (amd64-avx-mpx-linux.c): Remove.
8244 (x32-linux.c): Remove.
8245 (x32-avx.c): Remove.
8246 (x32-avx-linux.c): Remove.
8247 (x32-avx-avx512.c): Remove.
8248 (x32-avx-avx512-linux.c): Remove.
8249 (reg-xtensa.c): Remove.
8250 (reg-tilegx.c): Remove.
8251 (reg-tilegx32.c): Remove.
8253 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8255 * Makefile.in (SFILES): Add "common/environ.c".
8256 (OBJS): Add "common/environ.h".
8258 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8260 * configure.ac: Check if the fs_base and gs_base members of
8261 `struct user_regs_struct' exist.
8262 * config.in: Regenerated.
8263 * configure: Likewise.
8265 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8267 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8269 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8270 (get_next_pcs_syscall_next_pc): Likewise.
8272 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8274 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8275 * nto-x86-low.c: Likewise.
8277 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8279 * Makefile.in: Include disable-implicit-rules.mk.
8281 2016-11-23 Pedro Alves <palves@redhat.com>
8283 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8284 (debug_vprintf): Use std::chrono::steady_clock instead of
8285 gettimeofday. Use '.' instead of ':'.
8286 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8287 (get_timestamp): Use std::chrono::steady_clock instead of
8290 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8292 * Makefile.in: Fix whitespace formatting.
8294 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8296 * Makefile.in (SFILES, OBS): Flatten list and order
8299 2016-11-23 Pedro Alves <palves@redhat.com>
8301 * event-loop.c (handle_file_event): Use warning.
8302 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8303 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8306 2016-11-23 Pedro Alves <palves@redhat.com>
8308 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8310 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8311 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8312 debug_printf and debug_flush for debug output.
8313 * server.c (handle_general_set): Likewise.
8314 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8317 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8319 * Makefile.in (.c.o): Replace rule with ...
8320 (%.o: %.c): ... this one.
8322 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8324 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8325 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8327 * configure.ac: Remove checks for the make program.
8328 * configure: Re-generate.
8330 2016-10-28 Pedro Alves <palves@redhat.com>
8332 * Makefile.in (CXX_DIALECT): Get from configure.
8333 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8334 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8335 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8336 * config.in: Regenerate.
8337 * configure: Regenerate.
8339 2016-10-27 Yao Qi <yao.qi@linaro.org>
8341 * linux-low.c (linux_supports_range_stepping): Return true if
8342 can_software_single_step return true.
8344 2016-10-27 Yao Qi <yao.qi@linaro.org>
8346 * inferiors.c (find_inferior_in_random): New function.
8347 * inferiors.h (find_inferior_in_random): Declare.
8348 * linux-low.c (linux_wait_for_event_filtered): Call
8349 find_inferior_in_random instead of find_inferior.
8351 2016-10-27 Yao Qi <yao.qi@linaro.org>
8353 * linux-low.c (linux_wait_1): If single-step breakpoints are
8354 inserted, remove them.
8356 2016-10-26 Pedro Alves <palves@redhat.com>
8358 * linux-low.c (handle_extended_wait): Link parent/child fork
8360 (linux_wait_1): Unlink them.
8361 (linux_set_resume_request): Ignore resume requests for
8362 already-resumed and unhandled fork child threads.
8363 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8364 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8366 (handle_v_requests) <vCont>: Don't call require_running.
8367 * server.h (in_queued_stop_replies): New declaration.
8369 2016-10-24 Yao Qi <yao.qi@linaro.org>
8372 * linux-aarch64-low.c (append_insns): Cast the return value to
8375 2016-10-10 Yao Qi <yao.qi@linaro.org>
8377 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8379 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8381 * target.c (target_supports_multi_process): New function, moved
8383 * target.h (target_supports_multi_process): ... here. Remove
8386 2016-10-05 Tom Tromey <tom@tromey.com>
8389 * tracepoint.c (handle_tracepoint_bkpts): Check
8390 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8392 2016-10-05 Yao Qi <yao.qi@linaro.org>
8394 * configure.srv: Update the path of arm-*.xml files.
8396 2016-10-05 Terry Guo <terry.guo@arm.com>
8397 Yao Qi <yao.qi@linaro.org>
8399 * Makefile.in: Adjust the path of rules.
8400 * configure.srv: Update the path of xml files.
8401 * regformats/arm-with-iwmmxt.dat: Regenerated.
8402 * regformats/arm-with-neon.dat: Likewise.
8403 * regformats/arm-with-vfpv2.dat: Likewise.
8404 * regformats/arm-with-vfpv3.dat Likewise.
8406 2016-09-30 Yao Qi <yao.qi@linaro.org>
8409 * target.c (target_stop_and_wait): Don't call
8410 target_continue_no_signal, use resume_stop instead.
8412 2016-09-26 Yao Qi <yao.qi@linaro.org>
8414 * linux-low.c (linux_wait_1): Call debug_exit.
8416 2016-09-23 Pedro Alves <palves@redhat.com>
8418 * Makefile.in (SFILES): Add common/new-op.c.
8419 (OBS): Add common/new-op.o.
8420 (new-op.o): New rule.
8422 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8424 * .gitinore: Ignore more files.
8426 2016-09-21 Yao Qi <yao.qi@linaro.org>
8428 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8431 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8433 * server.c (start_inferior): Call target_mourn_inferior instead of
8434 mourn_inferior; pass ptid_t argument to it.
8436 (handle_target_event): Likewise.
8437 * target.c (target_mourn_inferior): New function.
8438 * target.h (mourn_inferior): Delete macro.
8440 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8442 * linux-low.c (lwp_is_stepping): New function.
8444 2016-09-06 Carl Love <cel@us.ibm.com>
8446 * server.c (start_inferior): Fixed comment, requested comment change
8447 didn't get updated correctly. Removed reference to ptrace () call as
8448 it is only true on Linux systems.
8450 2016-09-06 Carl Love <cel@us.ibm.com>
8452 * server.c (start_inferior): Do not call
8453 function target_post_create_inferior () if the
8454 inferior process has already exited.
8456 2016-09-05 Pedro Alves <palves@redhat.com>
8458 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8459 (COMPILE.pre, CC_LD): Use CXX directly.
8460 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8461 * acinclude.m4: Don't include build-with-cxx.m4.
8462 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8463 * configure: Regenerate.
8465 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8468 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8469 call writing data to own_buf.
8471 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8473 * target.c (mywait): Call target_wait instead of
8475 (target_wait): New function.
8477 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8479 * server.c (start_inferior): New variable 'ptid'. Replace calls
8480 to the_target->resume by target_continue{,_no_signal}, depending
8482 * target.c (target_stop_and_wait): Call target_continue_no_signal
8483 instead of the_target->resume.
8484 (target_continue): New function.
8486 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8488 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8490 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8493 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8495 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8496 * linux-arm-low.c (ps_get_thread_area): Likewise.
8497 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8498 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8499 * linux-mips-low.c (ps_get_thread_area): Likewise.
8500 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8501 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8502 * linux-x86-low.c (ps_get_thread_area): Likewise.
8503 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8505 2016-08-19 Pedro Alves <palves@redhat.com>
8507 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8509 2016-08-19 Pedro Alves <palves@redhat.com>
8511 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8512 comment. Use memcpy instead of casting through unsigned long.
8514 2016-08-19 Pedro Alves <palves@redhat.com>
8516 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8517 allocating around 0x80000000.
8519 2016-08-19 Pedro Alves <palves@redhat.com>
8522 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8523 (x32-avx512-linux-ipa.o): New rules.
8524 * configure.ac (x86_64-*-linux*): New x32 check.
8525 * configure.srv (ipa_x32_linux_regobj): New.
8526 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8527 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8529 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8531 * configure: Regenerate.
8533 2016-08-09 Pedro Alves <palves@redhat.com>
8536 * Makefile.in (OBS): Add signals-state-save-restore.o.
8537 (signals-state-save-restore.o): New rule.
8538 * config.in: Regenerate.
8539 * configure: Regenerate.
8540 * linux-low.c: Include "signals-state-save-restore.h".
8541 (linux_create_inferior): Call
8542 restore_original_signals_state.
8543 * server.c: Include "dispositions-save-restore.h".
8544 (captured_main): Call save_original_signals_state.
8546 2016-08-05 Pedro Alves <palves@redhat.com>
8548 * configure: Regenerate.
8550 2016-08-04 Yao Qi <yao.qi@linaro.org>
8552 * linux-low.c (regsets_fetch_inferior_registers): Check
8553 errno is ESRCH or not.
8555 2016-08-02 Yao Qi <yao.qi@linaro.org>
8557 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8558 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8559 (thread_db_load_search): Update.
8560 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8561 td_ta_set_event and td_ta_event_getmsg.
8563 2016-07-26 Pedro Alves <palves@redhat.com>
8566 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8567 of unsigned long for 64-bit registers and use uint32_t instead of
8568 unsigned int for 32-bit registers.
8570 2016-07-26 Pedro Alves <palves@redhat.com>
8572 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8575 2016-07-21 Tom Tromey <tom@tromey.com>
8577 * configure: Rebuild.
8579 2016-07-21 Yao Qi <yao.qi@linaro.org>
8581 * mem-break.c (find_gdb_breakpoint): Cast bp to
8582 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8584 2016-07-21 Yao Qi <yao.qi@linaro.org>
8586 * server.c (handle_v_requests): Support s and S actions
8587 if target_supports_software_single_step return true.
8589 2016-07-21 Yao Qi <yao.qi@linaro.org>
8591 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8592 is resume_step, call maybe_hw_step.
8593 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8595 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8597 (proceed_one_lwp): If resume request is resume_step, install
8598 reinsert breakpoints and call maybe_hw_step.
8600 2016-07-21 Yao Qi <yao.qi@linaro.org>
8602 * linux-low.c (proceed_one_lwp): Declare.
8603 (linux_resume_one_thread): Remove local variable 'step'.
8604 Lift code enqueue signal. Call proceed_one_lwp instead of
8605 linux_resume_one_lwp.
8607 2016-07-21 Yao Qi <yao.qi@linaro.org>
8609 * linux-low.c (linux_resume_one_thread): Call
8610 enqueue_pending_signal.
8612 2016-07-21 Yao Qi <yao.qi@linaro.org>
8614 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8615 * inferiors.c (do_restore_current_thread_cleanup): New function.
8616 (make_cleanup_restore_current_thread): Likewise.
8617 * linux-low.c (install_software_single_step_breakpoints): Call
8618 make_cleanup_restore_current_thread. Switch current_thread to
8621 2016-07-21 Yao Qi <yao.qi@linaro.org>
8623 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8624 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8625 (clone_one_breakpoint): Likewise.
8626 (delete_reinsert_breakpoints): Change parameter to thread.
8628 (has_reinsert_breakpoints): Likewise.
8629 (uninsert_reinsert_breakpoints): Likewise.
8630 (reinsert_reinsert_breakpoints): Likewise.
8631 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8632 (delete_reinsert_breakpoints): Likewise.
8633 (reinsert_reinsert_breakpoints): Likewise.
8634 (uninsert_reinsert_breakpoints): Likewise.
8635 (has_reinsert_breakpoints): Likewise.
8637 2016-07-21 Yao Qi <yao.qi@linaro.org>
8639 * inferiors.c (get_thread_process): Make parameter const.
8640 * inferiors.h (get_thread_process): Update declaration.
8641 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8642 Add new parameters child_thread and parent_thread. Callers
8644 * mem-break.h (clone_all_breakpoints): Update declaration.
8646 2016-07-21 Yao Qi <yao.qi@linaro.org>
8648 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8649 <command_list, handler>: Remove.
8650 (struct gdb_breakpoint): New.
8651 (struct other_breakpoint): New.
8652 (struct reinsert_breakpoint): New.
8653 (is_gdb_breakpoint): New function.
8654 (any_persistent_commands): Update command_list if
8655 is_gdb_breakpoint returns true.
8656 (set_breakpoint): Create breakpoints according to their types.
8657 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8658 (set_gdb_breakpoint_1): Likewise.
8659 (set_gdb_breakpoint): Likewise.
8660 (clear_breakpoint_conditions): Change parameter type to
8661 'struct gdb_breakpoint *'.
8662 (clear_breakpoint_commands): Likewise.
8663 (clear_breakpoint_conditions_and_commands): Likewise.
8664 (add_condition_to_breakpoint): Likewise.
8665 (add_breakpoint_condition): Likewise.
8666 (add_commands_to_breakpoint): Likewise.
8667 (check_breakpoints): Check other_breakpoint.
8668 (clone_one_breakpoint): Clone breakpopint according to its type.
8669 * mem-break.h (struct gdb_breakpoint): Declare.
8670 (set_gdb_breakpoint): Update declaration.
8671 (clear_breakpoint_conditions_and_commands): Likewise.
8672 (add_breakpoint_condition): Likewise.
8673 (add_breakpoint_commands): Likewise.
8674 * server.c (process_point_options): Change parameter type to
8675 'struct gdb_breakpoint *'.
8677 2016-07-21 Yao Qi <yao.qi@linaro.org>
8679 * mem-break.c (set_breakpoint_at): Rename it to ...
8680 (set_breakpoint_type_at): ... it.
8681 (set_breakpoint_at): Call set_breakpoint_type_at.
8682 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8683 * mem-break.h (set_breakpoint_at): Update comments.
8685 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8687 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8689 (nios2_store_gregset): Likewise.
8691 2016-07-01 Pedro Alves <palves@redhat.com>
8692 Antoine Tremblay <antoine.tremblay@ericsson.com>
8694 * linux-low.c: Change interface to take the target lwp_info
8695 pointer directly and return void. Handle detaching from a zombie
8697 (linux_detach_lwp_callback): New function.
8698 (linux_detach): Detach from the leader thread after detaching from
8701 2016-06-28 Yao Qi <yao.qi@linaro.org>
8703 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8704 for variable new_offset.
8705 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8706 (aarch64_ftrace_insn_reloc_cb): Likewise.
8707 (aarch64_ftrace_insn_reloc_tb): Likewise.
8708 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8709 PRIx64 instead of PRIx32.
8711 2016-06-28 Yao Qi <yao.qi@linaro.org>
8713 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8714 (the_low_target): Install arm_get_syscall_trapinfo.
8716 2016-06-28 Yao Qi <yao.qi@linaro.org>
8718 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8720 (the_low_target): Install aarch64_get_syscall_trapinfo.
8722 2016-06-28 Yao Qi <yao.qi@linaro.org>
8724 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8726 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8727 Remove parameter sysno.
8728 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8731 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8733 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8734 (s390_emit_ne_goto): Likewise.
8735 (s390_emit_lt_goto): Likewise.
8736 (s390_emit_le_goto): Likewise.
8737 (s390_emit_gt_goto): Likewise.
8738 (s390_emit_ge_goto): Likewise.
8739 (s390x_emit_eq_goto): Likewise.
8740 (s390x_emit_ne_goto): Likewise.
8741 (s390x_emit_lt_goto): Likewise.
8742 (s390x_emit_le_goto): Likewise.
8743 (s390x_emit_gt_goto): Likewise.
8744 (s390x_emit_ge_goto): Likewise.
8745 (s390_emit_ops_impl): Mark variable static.
8746 (s390x_emit_ops): Likewise.
8748 2016-06-17 Yao Qi <yao.qi@linaro.org>
8750 * linux-low.c (handle_extended_wait): Call
8751 uninsert_reinsert_breakpoints for the parent process. Remove
8752 reinsert breakpoints from the child process. Reinsert them to
8753 the parent process when vfork is done.
8754 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8755 (reinsert_reinsert_breakpoints): New function.
8756 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8757 (reinsert_reinsert_breakpoints): Declare.
8759 2016-06-17 Yao Qi <yao.qi@linaro.org>
8761 * linux-low.c (handle_extended_wait): If the parent is doing
8762 step-over, remove the reinsert breakpoints from the forked child.
8764 2016-06-17 Yao Qi <yao.qi@linaro.org>
8766 * linux-low.c (unsuspend_all_lwps): Declare.
8767 (linux_low_filter_event): If thread exited, call finish_step_over.
8768 If step-over is finished, unsuspend other threads.
8770 2016-06-17 Yao Qi <yao.qi@linaro.org>
8772 * linux-low.c (linux_resume_one_lwp_throw): Assert
8773 has_reinsert_breakpoints returns false.
8774 * mem-break.c (delete_disabled_breakpoints): Assert
8775 bp type isn't reinsert_breakpoint.
8777 2016-06-17 Yao Qi <yao.qi@linaro.org>
8779 * linux-low.c (maybe_hw_step): New function.
8780 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8781 (finish_step_over): Switch current_thread to lwp temporarily,
8782 and assert has_reinsert_breakpoints returns true.
8783 (proceed_one_lwp): Call maybe_hw_step.
8784 * mem-break.c (has_reinsert_breakpoints): New function.
8785 * mem-break.h (has_reinsert_breakpoints): Declare.
8787 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8789 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8791 2016-05-17 Yao Qi <yao.qi@linaro.org>
8793 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8794 instead of find_inferior.
8796 2016-05-05 Yao Qi <yao.qi@linaro.org>
8798 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8799 Initialize res to zero.
8801 2016-05-05 Yao Qi <yao.qi@linaro.org>
8803 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8806 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8808 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8809 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8810 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8812 2016-04-28 Par Olsson <par.olsson@windriver.com>
8813 Simon Marchi <simon.marchi@ericsson.com>
8815 * tracepoint.c (write_inferior_int8): New function.
8816 (cmd_qtenable_disable): Write enable flag using
8817 write_inferior_int8.
8819 2016-04-25 Yao Qi <yao.qi@linaro.org>
8821 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8822 (need_step_over_p): Return zero if the LWP has pending signals
8823 can be delivered on software single step target.
8825 2016-04-25 Yao Qi <yao.qi@linaro.org>
8827 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8828 return instead of error.
8830 2016-04-22 Yao Qi <yao.qi@linaro.org>
8832 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8835 2016-04-22 Yao Qi <yao.qi@linaro.org>
8837 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8838 signal when stepping over breakpoint with software single
8841 2016-04-21 Pedro Alves <palves@redhat.com>
8843 * linux-s390-low.c (s390_collect_ptrace_register)
8844 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8846 (s390_check_regset): Use void * instead of gdb_byte *.
8848 2016-04-20 Pedro Alves <palves@redhat.com>
8850 * configure: Renegerate.
8852 2016-04-20 Yao Qi <yao.qi@linaro.org>
8854 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8855 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8857 (arm_store_gregset): Likewise.
8859 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8861 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8862 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8863 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8864 (amd64-avx-mpx-linux.c): New rules.
8865 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8866 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8867 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8868 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8869 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8870 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8871 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8872 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8873 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8874 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8875 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8876 * linux-x86-low.c (x86_linux_read_description): Add case for
8877 X86_XSTATE_AVX_MPX_MASK.
8878 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8879 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8880 init_registers_i386_avx_mpx_linux.
8881 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8882 (initialize_low_tracepoint): Call
8883 init_registers_i386_avx_mpx_linux.
8884 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8885 (initialize_low_tracepoint): Call
8886 init_registers_amd64_avx_mpx_linux.
8887 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8888 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8889 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8892 2016-04-18 Pedro Alves <palves@redhat.com>
8894 * configure: Regenerate.
8896 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8898 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8899 (aarch64_emit_sub): Likewise.
8901 2016-04-12 Pedro Alves <palves@redhat.com>
8903 * utils.c (prepare_to_throw_exception): Delete.
8905 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8907 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8909 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8911 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8913 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8915 * linux-aarch64-ipa.c: Add <elf.h> include.
8916 * linux-ppc-ipa.c: Add <elf.h> include.
8917 * linux-s390-ipa.c: Add <elf.h> include.
8919 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8921 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8922 (get_raw_reg_ptr): Likewise.
8923 (get_trace_state_variable_value_ptr): Likewise.
8924 (set_trace_state_variable_value_ptr): Likewise.
8925 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8928 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8929 Marcin Kościelnicki <koriakin@0x04.net>
8932 * linux-ppc-low.c (emit_insns): New function.
8933 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8934 (ppc_emit_prologue): New function.
8935 (ppc_emit_epilogue): New function.
8936 (ppc_emit_add): New function.
8937 (ppc_emit_sub): New function.
8938 (ppc_emit_mul): New function.
8939 (ppc_emit_lsh): New function.
8940 (ppc_emit_rsh_signed): New function.
8941 (ppc_emit_rsh_unsigned): New function.
8942 (ppc_emit_ext): New function.
8943 (ppc_emit_zero_ext): New function.
8944 (ppc_emit_log_not): New function.
8945 (ppc_emit_bit_and): New function.
8946 (ppc_emit_bit_or): New function.
8947 (ppc_emit_bit_xor): New function.
8948 (ppc_emit_bit_not): New function.
8949 (ppc_emit_equal): New function.
8950 (ppc_emit_less_signed): New function.
8951 (ppc_emit_less_unsigned): New function.
8952 (ppc_emit_ref): New function.
8953 (ppc_emit_const): New function.
8954 (ppc_emit_reg): New function.
8955 (ppc_emit_pop): New function.
8956 (ppc_emit_stack_flush): New function.
8957 (ppc_emit_swap): New function.
8958 (ppc_emit_stack_adjust): New function.
8959 (ppc_emit_call): New function.
8960 (ppc_emit_int_call_1): New function.
8961 (ppc_emit_void_call_2): New function.
8962 (ppc_emit_if_goto): New function.
8963 (ppc_emit_goto): New function.
8964 (ppc_emit_eq_goto): New function.
8965 (ppc_emit_ne_goto): New function.
8966 (ppc_emit_lt_goto): New function.
8967 (ppc_emit_le_goto): New function.
8968 (ppc_emit_gt_goto): New function.
8969 (ppc_emit_ge_goto): New function.
8970 (ppc_write_goto_address): New function.
8971 (ppc_emit_ops_impl): New static variable.
8972 (ppc64v1_emit_prologue): New function.
8973 (ppc64v2_emit_prologue): New function.
8974 (ppc64_emit_epilogue): New function.
8975 (ppc64_emit_add): New function.
8976 (ppc64_emit_sub): New function.
8977 (ppc64_emit_mul): New function.
8978 (ppc64_emit_lsh): New function.
8979 (ppc64_emit_rsh_signed): New function.
8980 (ppc64_emit_rsh_unsigned): New function.
8981 (ppc64_emit_ext): New function.
8982 (ppc64_emit_zero_ext): New function.
8983 (ppc64_emit_log_not): New function.
8984 (ppc64_emit_bit_and): New function.
8985 (ppc64_emit_bit_or): New function.
8986 (ppc64_emit_bit_xor): New function.
8987 (ppc64_emit_bit_not): New function.
8988 (ppc64_emit_equal): New function.
8989 (ppc64_emit_less_signed): New function.
8990 (ppc64_emit_less_unsigned): New function.
8991 (ppc64_emit_ref): New function.
8992 (ppc64_emit_const): New function.
8993 (ppc64v1_emit_reg): New function.
8994 (ppc64v2_emit_reg): New function.
8995 (ppc64_emit_pop): New function.
8996 (ppc64_emit_stack_flush): New function.
8997 (ppc64_emit_swap): New function.
8998 (ppc64v1_emit_call): New function.
8999 (ppc64v2_emit_call): New function.
9000 (ppc64v1_emit_int_call_1): New function.
9001 (ppc64v2_emit_int_call_1): New function.
9002 (ppc64v1_emit_void_call_2): New function.
9003 (ppc64v2_emit_void_call_2): New function.
9004 (ppc64_emit_if_goto): New function.
9005 (ppc64_emit_eq_goto): New function.
9006 (ppc64_emit_ne_goto): New function.
9007 (ppc64_emit_lt_goto): New function.
9008 (ppc64_emit_le_goto): New function.
9009 (ppc64_emit_gt_goto): New function.
9010 (ppc64_emit_ge_goto): New function.
9011 (ppc64v1_emit_ops_impl): New static variable.
9012 (ppc64v2_emit_ops_impl): New static variable.
9013 (ppc_emit_ops): New function.
9014 (linux_low_target): Wire in ppc_emit_ops.
9016 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
9017 Marcin Kościelnicki <koriakin@0x04.net>
9020 * Makefile.in: Add powerpc-*-ipa.o
9021 * configure.srv: Add ipa_obj for powerpc*-linux.
9022 * linux-ppc-ipa.c: New file.
9023 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
9025 (PPC_FIELD): New macro.
9026 (PPC_SEXT): New macro.
9027 (PPC_OP6): New macro.
9028 (PPC_BO): New macro.
9029 (PPC_LI): New macro.
9030 (PPC_BD): New macro.
9031 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
9032 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
9033 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
9034 (ppc_get_thread_area): New function.
9035 (is_elfv2_inferior): New function.
9036 (gen_ds_form): New function.
9037 (GEN_STD): New macro.
9038 (GEN_STDU): New macro.
9039 (GEN_LD): New macro.
9040 (GEN_LDU): New macro.
9041 (gen_d_form): New function.
9042 (GEN_ADDI): New macro.
9043 (GEN_ADDIS): New macro.
9044 (GEN_LI): New macro.
9045 (GEN_LIS): New macro.
9046 (GEN_ORI): New macro.
9047 (GEN_ORIS): New macro.
9048 (GEN_LWZ): New macro.
9049 (GEN_STW): New macro.
9050 (GEN_STWU): New macro.
9051 (gen_xfx_form): New function.
9052 (GEN_MFSPR): New macro.
9053 (GEN_MTSPR): New macro.
9054 (GEN_MFCR): New macro.
9055 (GEN_MTCR): New macro.
9056 (GEN_SYNC): New macro.
9057 (GEN_LWSYNC): New macro.
9058 (gen_x_form): New function.
9059 (GEN_OR): New macro.
9060 (GEN_MR): New macro.
9061 (GEN_LWARX): New macro.
9062 (GEN_STWCX): New macro.
9063 (GEN_CMPW): New macro.
9064 (gen_md_form): New function.
9065 (GEN_RLDICL): New macro.
9066 (GEN_RLDICR): New macro.
9067 (gen_i_form): New function.
9069 (GEN_BL): New macro.
9070 (gen_b_form): New function.
9071 (GEN_BNE): New macro.
9072 (GEN_LOAD): New macro.
9073 (GEN_STORE): New macro.
9074 (gen_limm): New function.
9075 (gen_atomic_xchg): New function.
9076 (gen_call): New function.
9077 (ppc_relocate_instruction): New function.
9078 (ppc_install_fast_tracepoint_jump_pad): New function.
9079 (ppc_get_min_fast_tracepoint_insn_len): New function.
9080 (ppc_get_ipa_tdesc_idx): New function.
9081 (the_low_target): Wire in the new functions.
9082 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9084 * linux-ppc-tdesc.h: New file.
9086 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9088 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9089 (alloc_jump_pad_buffer): New function.
9090 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9091 (alloc_jump_pad_buffer): New function.
9092 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9093 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9094 (alloc_jump_pad_buffer): New function.
9095 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9096 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9097 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9098 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9100 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9102 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9103 * linux-amd64-ipa.c: Likewise.
9104 * linux-i386-ipa.c: Likewise.
9105 * linux-s390-ipa.c: Likewise.
9106 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9107 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9108 set_trace_state_variable_value_ptr.
9109 (struct ipa_sym_addresses): Likewise.
9110 (symbol_list): Likewise.
9111 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9112 accessing gdb_collect directly.
9113 (gdb_collect_ptr_type): New typedef.
9114 (get_raw_reg_ptr_type): New typedef.
9115 (get_trace_state_variable_value_ptr_type): New typedef.
9116 (set_trace_state_variable_value_ptr_type): New typedef.
9117 (gdb_collect_ptr): New global.
9118 (get_raw_reg_ptr): New global.
9119 (get_trace_state_variable_value_ptr): New global.
9120 (set_trace_state_variable_value_ptr): New global.
9121 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9122 accessing get_raw_reg directly.
9123 (get_get_tsv_func_addr): Likewise for
9124 get_trace_state_variable_value_ptr.
9125 (get_set_tsv_func_addr): Likewise for
9126 set_trace_state_variable_value_ptr.
9127 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9129 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9131 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9133 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9135 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9137 (relocate_instruction): Remove own_buf.
9138 * server.c (own_buf): Make global.
9139 (handle_v_requests): Make global.
9140 * server.h (own_buf): New declaration.
9141 (handle_v_requests): New prototype.
9143 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9146 * linux-s390-low.c (add_insns): New function.
9147 (s390_emit_prologue): New function.
9148 (s390_emit_epilogue): New function.
9149 (s390_emit_add): New function.
9150 (s390_emit_sub): New function.
9151 (s390_emit_mul): New function.
9152 (s390_emit_lsh): New function.
9153 (s390_emit_rsh_signed): New function.
9154 (s390_emit_rsh_unsigned): New function.
9155 (s390_emit_ext): New function.
9156 (s390_emit_log_not): New function.
9157 (s390_emit_bit_and): New function.
9158 (s390_emit_bit_or): New function.
9159 (s390_emit_bit_xor): New function.
9160 (s390_emit_bit_not): New function.
9161 (s390_emit_equal): New function.
9162 (s390_emit_less_signed): New function.
9163 (s390_emit_less_unsigned): New function.
9164 (s390_emit_ref): New function.
9165 (s390_emit_if_goto): New function.
9166 (s390_emit_goto): New function.
9167 (s390_write_goto_address): New function.
9168 (s390_emit_litpool): New function.
9169 (s390_emit_const): New function.
9170 (s390_emit_call): New function.
9171 (s390_emit_reg): New function.
9172 (s390_emit_pop): New function.
9173 (s390_emit_stack_flush): New function.
9174 (s390_emit_zero_ext): New function.
9175 (s390_emit_swap): New function.
9176 (s390_emit_stack_adjust): New function.
9177 (s390_emit_set_r2): New function.
9178 (s390_emit_int_call_1): New function.
9179 (s390_emit_void_call_2): New function.
9180 (s390_emit_eq_goto): New function.
9181 (s390_emit_ne_goto): New function.
9182 (s390_emit_lt_goto): New function.
9183 (s390_emit_le_goto): New function.
9184 (s390_emit_gt_goto): New function.
9185 (s390_emit_ge_goto): New function.
9186 (s390x_emit_prologue): New function.
9187 (s390x_emit_epilogue): New function.
9188 (s390x_emit_add): New function.
9189 (s390x_emit_sub): New function.
9190 (s390x_emit_mul): New function.
9191 (s390x_emit_lsh): New function.
9192 (s390x_emit_rsh_signed): New function.
9193 (s390x_emit_rsh_unsigned): New function.
9194 (s390x_emit_ext): New function.
9195 (s390x_emit_log_not): New function.
9196 (s390x_emit_bit_and): New function.
9197 (s390x_emit_bit_or): New function.
9198 (s390x_emit_bit_xor): New function.
9199 (s390x_emit_bit_not): New function.
9200 (s390x_emit_equal): New function.
9201 (s390x_emit_less_signed): New function.
9202 (s390x_emit_less_unsigned): New function.
9203 (s390x_emit_ref): New function.
9204 (s390x_emit_if_goto): New function.
9205 (s390x_emit_const): New function.
9206 (s390x_emit_call): New function.
9207 (s390x_emit_reg): New function.
9208 (s390x_emit_pop): New function.
9209 (s390x_emit_stack_flush): New function.
9210 (s390x_emit_zero_ext): New function.
9211 (s390x_emit_swap): New function.
9212 (s390x_emit_stack_adjust): New function.
9213 (s390x_emit_int_call_1): New function.
9214 (s390x_emit_void_call_2): New function.
9215 (s390x_emit_eq_goto): New function.
9216 (s390x_emit_ne_goto): New function.
9217 (s390x_emit_lt_goto): New function.
9218 (s390x_emit_le_goto): New function.
9219 (s390x_emit_gt_goto): New function.
9220 (s390x_emit_ge_goto): New function.
9221 (s390_emit_ops): New function.
9222 (struct linux_target_ops): Fill in emit_ops hook.
9224 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9227 * Makefile.in: Add s390 IPA files.
9228 * configure.srv: Build IPA for s390.
9229 * linux-s390-ipa.c: New file.
9230 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9231 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9232 (tdesc_s390_linux32): Likewise.
9233 (init_registers_s390_linux32v1): Likewise.
9234 (tdesc_s390_linux32v1): Likewise.
9235 (init_registers_s390_linux32v2): Likewise.
9236 (tdesc_s390_linux32v2): Likewise.
9237 (init_registers_s390_linux64): Likewise.
9238 (tdesc_s390_linux64): Likewise.
9239 (init_registers_s390_linux64v1): Likewise.
9240 (tdesc_s390_linux64v1): Likewise.
9241 (init_registers_s390_linux64v2): Likewise.
9242 (tdesc_s390_linux64v2): Likewise.
9243 (init_registers_s390_te_linux64): Likewise.
9244 (tdesc_s390_te_linux64): Likewise.
9245 (init_registers_s390_vx_linux64): Likewise.
9246 (tdesc_s390_vx_linux64): Likewise.
9247 (init_registers_s390_tevx_linux64): Likewise.
9248 (tdesc_s390_tevx_linux64): Likewise.
9249 (init_registers_s390x_linux64): Likewise.
9250 (tdesc_s390x_linux64): Likewise.
9251 (init_registers_s390x_linux64v1): Likewise.
9252 (tdesc_s390x_linux64v1): Likewise.
9253 (init_registers_s390x_linux64v2): Likewise.
9254 (tdesc_s390x_linux64v2): Likewise.
9255 (init_registers_s390x_te_linux64): Likewise.
9256 (tdesc_s390x_te_linux64): Likewise.
9257 (init_registers_s390x_vx_linux64): Likewise.
9258 (tdesc_s390x_vx_linux64): Likewise.
9259 (init_registers_s390x_tevx_linux64): Likewise.
9260 (tdesc_s390x_tevx_linux64): Likewise.
9261 (have_hwcap_s390_vx): New static variable.
9262 (s390_arch_setup): Fill have_hwcap_s390_vx.
9263 (s390_get_thread_area): New function.
9264 (s390_ft_entry_gpr_esa): New const.
9265 (s390_ft_entry_gpr_zarch): New const.
9266 (s390_ft_entry_misc): New const.
9267 (s390_ft_entry_fr): New const.
9268 (s390_ft_entry_vr): New const.
9269 (s390_ft_main_31): New const.
9270 (s390_ft_main_64): New const.
9271 (s390_ft_exit_fr): New const.
9272 (s390_ft_exit_vr): New const.
9273 (s390_ft_exit_misc): New const.
9274 (s390_ft_exit_gpr_esa): New const.
9275 (s390_ft_exit_gpr_zarch): New const.
9276 (append_insns): New function.
9277 (s390_relocate_instruction): New function.
9278 (s390_install_fast_tracepoint_jump_pad): New function.
9279 (s390_get_min_fast_tracepoint_insn_len): New function.
9280 (s390_get_ipa_tdesc_idx): New function.
9281 (struct linux_target_ops): Wire in the above functions.
9282 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9283 * linux-s390-tdesc.h: New file.
9285 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9287 * linux-s390-low.c (s390_supports_tracepoints): New function.
9288 (struct linux_target_ops): Fill supports_tracepoints hook.
9290 2016-03-18 Yao Qi <yao.qi@linaro.org>
9292 * linux-low.c (lwp_signal_can_be_delivered): New function.
9293 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9295 2016-03-18 Yao Qi <yao.qi@linaro.org>
9297 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9298 0 if signal is enqueued. Remove 'signal' from one debugging
9299 message. Move one debugging message to some lines below.
9300 Remove code setting 'signal' to 0.
9302 2016-03-18 Yao Qi <yao.qi@linaro.org>
9304 * linux-low.c (linux_low_filter_event): Remove redundant
9305 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9307 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9309 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9310 (struct linux_target_ops): Wire in the above.
9312 2016-03-03 Yao Qi <yao.qi@linaro.org>
9314 * linux-low.c: Update comments to start_step_over.
9316 2016-03-03 Yao Qi <yao.qi@linaro.org>
9319 * linux-low.c (handle_extended_wait): Set child suspended
9320 if event_lwp->bp_reinsert isn't zero.
9322 2016-03-02 Yao Qi <yao.qi@linaro.org>
9324 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9325 enqueue_pending_signal.
9327 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9329 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9332 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9334 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9335 (s390_regmap_3264) [!__s390x__]: New global.
9336 (s390_collect_ptrace_register): Skip map entries containing -1.
9337 (s390_supply_ptrace_register): Ditto.
9338 (s390_fill_gprs_high): New function.
9339 (s390_store_gprs_high): New function.
9340 (s390_regsets): Add NT_S390_HIGH_GPRS.
9341 (s390_get_hwcap): Enable on 31-bit.
9342 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9343 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9344 Detect NT_S390_HIGH_GPRS.
9345 (s390_usrregs_info_3264): Enable on 31-bit.
9346 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9347 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9349 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9352 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9353 * configure.srv: Ditto.
9354 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9355 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9356 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9357 (init_registers_amd64_linux): Remove prototype.
9358 (tdesc_amd64_linux): Remove declaration.
9359 (get_ipa_tdesc): New function.
9360 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9361 initialize remaining tdescs.
9362 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9363 (init_registers_i386_linux): Remove prototype.
9364 (tdesc_i386_linux): Remove declaration.
9365 (get_ipa_tdesc): New function.
9366 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9367 initialize remaining tdescs.
9368 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9369 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9370 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9371 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9372 (x86_get_ipa_tdesc_idx): New function.
9373 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9374 * linux-x86-tdesc.h: New file.
9375 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9376 (target_get_ipa_tdesc_idx): New macro.
9377 * tracepoint.c (ipa_tdesc_idx): New macro.
9378 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9379 (symbol_list): Add ipa_tdesc_idx.
9380 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9381 (ipa_tdesc): Remove.
9382 (ipa_tdesc_idx): New variable.
9383 (get_context_regcache): Use get_ipa_tdesc.
9384 (gdb_collect): Ditto.
9386 * tracepoint.h (get_ipa_tdesc): New prototype.
9387 (ipa_tdesc): Remove.
9389 2016-02-24 Pedro Alves <palves@redhat.com>
9391 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9392 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9393 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9394 Factor out common code between the USE_SIGTRAP_SIGINFO and
9395 !USE_SIGTRAP_SIGINFO blocks.
9396 (linux_low_filter_event): Call save_stop_reason instead of
9397 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9399 (linux_wait_1): Update comments.
9401 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9403 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9404 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9405 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9406 ppc_insert_point, ppc_remove_point.
9408 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9410 * linux-s390-low.c (s390_supports_z_point_type): New function.
9411 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9413 2016-02-16 Yao Qi <yao.qi@linaro.org>
9415 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9416 PC. Get pc from regcache_read_pc.
9418 2016-02-12 Yao Qi <yao.qi@linaro.org>
9420 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9421 or linux_get_pc_32bit.
9422 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9424 2016-02-12 Yao Qi <yao.qi@linaro.org>
9426 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9427 arm_linux_get_next_pcs_fixup.
9429 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9431 * tracepoint.c (x_tracepoint_action_download): Change
9432 write_inferior_data_ptr to write_inferior_data_pointer.
9433 (cmd_qtstart): Likewise.
9434 (write_inferior_data_ptr): Remove.
9435 (download_agent_expr): Change write_inferior_data_ptr to
9436 write_inferior_data_pointer.
9437 (download_tracepoint_1): Likewise.
9438 (download_tracepoint): Likewise.
9439 (download_trace_state_variables): Likewise.
9441 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9442 Marcin Kościelnicki <koriakin@0x04.net>
9444 * tracepoint.c (struct tracepoint_action_ops): Remove.
9445 (struct tracepoint_action): Remove ops.
9446 (m_tracepoint_action_download, r_tracepoint_action_download)
9447 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9448 size and offset accordingly.
9449 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9450 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9451 (tracepoint_action_send, tracepoint_action_download): New functions.
9452 Helpers for trace action handlers.
9453 (add_tracepoint_action): Remove setup actions ops.
9454 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9456 2016-02-10 Yao Qi <yao.qi@linaro.org>
9458 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9460 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9462 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9464 * configure: Regenerate.
9466 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9468 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9469 void * to gdb_byte *.
9470 * linux-low.c (siginfo_fixup): Likewise.
9471 (linux_xfer_siginfo): Likewise.
9472 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9474 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9476 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9478 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9480 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9482 * linux-x86-low.c [__x86_64__]: Include
9483 "nat/amd64-linux-siginfo.h".
9484 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9485 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9486 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9487 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9488 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9489 (cpt_si_fd, si_timerid, si_overrun): Move from
9490 nat/amd64-linux-siginfo.c.
9491 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9493 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9495 * server.c (skip_to_semicolon): Remove.
9496 (process_point_options): Use strchrnul instead of
9499 2016-01-26 Yao Qi <yao.qi@linaro.org>
9501 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9502 * linux-low.c (install_software_single_step_breakpoints): Don't
9503 call regcache_read_pc.
9504 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9507 2016-01-26 Yao Qi <yao.qi@linaro.org>
9509 * linux-low.c (install_software_single_step_breakpoints): Call
9510 regcache_read_pc instead of get_pc.
9512 2016-01-26 Yao Qi <yao.qi@linaro.org>
9514 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9515 (unblock_async_io): Rename to ...
9516 (block_unblock_async_io): ... it. New function.
9517 (enable_async_io): Don't install SIGIO handler. Unblock it
9519 (disable_async_io): Don't ignore SIGIO. Block it instead.
9520 (initialize_async_io): Install SIGIO handler. Don't call
9523 2016-01-26 Yao Qi <yao.qi@linaro.org>
9525 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9526 first character is '\003', call *the_target->request_interrupt.
9528 2016-01-25 Yao Qi <yao.qi@linaro.org>
9530 * remote-utils.c (new_thread_notify): Remove.
9531 (dead_thread_notify): Likewise.
9532 * remote-utils.h (new_thread_notify): Remove declaration.
9533 (dead_thread_notify): Likewise.
9535 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9537 * gdb.trace/pending.exp: Fix expected message on continue.
9539 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9541 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9542 it works properly on big-endian machines where sizeof (CORE_ADDR)
9545 2016-01-21 Pedro Alves <palves@redhat.com>
9547 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9548 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9549 * configure: Regenerate.
9551 2016-01-21 Yao Qi <yao.qi@linaro.org>
9553 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9554 is_thumb and set it according to CPSR saved on the stack.
9555 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9556 arm_sigreturn_next_pc.
9558 2016-01-18 Yao Qi <yao.qi@linaro.org>
9560 * linux-low.c (linux_set_pc_64bit): New function.
9561 (linux_get_pc_64bit): New function.
9562 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9564 * linux-sparc-low.c (debug_threads): Remove declaration.
9565 (sparc_get_pc): Remove.
9566 (the_low_target): Use linux_get_pc_64bit instead of
9568 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9569 (the_low_target): Use linux_get_pc_64bit and
9572 2016-01-18 Yao Qi <yao.qi@linaro.org>
9574 * linux-arm-low.c (debug_threads): Remove declaration.
9575 (arm_get_pc, arm_set_pc): Remove.
9576 (the_low_target): Use linux_get_pc_32bit and
9578 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9579 (the_low_target): Use linux_get_pc_32bit and
9581 * linux-cris-low.c (debug_threads): Remove declaration.
9582 (cris_get_pc, cris_set_pc,): Remove.
9583 (the_low_target): Use linux_get_pc_32bit and
9585 * linux-crisv32-low.c (debug_threads): Remove declaration.
9586 (cris_get_pc, cris_set_pc): Remove.
9587 (the_low_target): Use linux_get_pc_32bit and
9589 * linux-low.c: Include inttypes.h.
9590 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9591 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9592 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9593 (the_low_target): Use linux_get_pc_32bit and
9595 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9596 (the_low_target): Use linux_get_pc_32bit and
9598 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9599 (the_low_target): Use linux_get_pc_32bit and
9601 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9602 (the_low_target): Use linux_get_pc_32bit and
9604 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9605 (the_low_target): Use linux_get_pc_32bit and
9608 2016-01-18 Gary Benson <gbenson@redhat.com>
9610 * configure.ac (AC_FUNC_FORK): New check.
9611 * config.in: Regenerate.
9612 * configure: Likewise.
9614 2016-01-14 Yao Qi <yao.qi@linaro.org>
9616 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9617 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9618 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9619 arm_get_next_pcs_ctor.
9621 2016-01-12 Josh Stone <jistone@redhat.com>
9622 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9624 * inferiors.h: Include "gdb_vecs.h".
9625 (struct process_info): Add syscalls_to_catch.
9626 * inferiors.c (remove_process): Free syscalls_to_catch.
9627 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9628 syscall_return stops.
9629 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9630 * server.c (handle_general_set): Handle QCatchSyscalls.
9631 (handle_query): Report support for QCatchSyscalls.
9632 * target.h (struct target_ops): Add supports_catch_syscall.
9633 (target_supports_catch_syscall): New macro.
9634 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9635 (struct lwp_info): Add syscall_state.
9636 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9637 Maintain syscall_state and syscalls_to_catch across exec.
9638 (get_syscall_trapinfo): New function, proxy to the_low_target.
9639 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9640 (linux_low_filter_event): Toggle syscall_state entry/return for
9641 syscall traps, and set it ignored for all others.
9642 (gdb_catching_syscalls_p): New function.
9643 (gdb_catch_this_syscall_p): New function.
9644 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9645 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9646 (linux_supports_catch_syscall): New function.
9647 (linux_target_ops): Install it.
9648 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9649 (the_low_target): Install it.
9651 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9653 * acinclude.m4: Include new ../warning.m4 file.
9654 * configure: Regenerated.
9655 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9657 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9659 * ax.c (is_goto_target): Mark static.
9660 * linux-low.c (register_addr): Likewise.
9661 (linux_fetch_registers, linux_store_registers): Likewise.
9662 * mem-break.c (any_persistent_commands): Fix old prototype.
9663 (add_commands_to_breakpoint): Mark static.
9664 * regcache.c (find_register_by_name): Delete unused func.
9665 * remote-utils.c (hex_or_minus_one): Mark static.
9666 * server.c (monitor_show_help): Mark static.
9667 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9668 handle_v_requests): Likewise.
9670 2016-01-12 Pedro Alves <palves@redhat.com>
9672 Remove use of the registered trademark symbol throughout.
9674 2016-01-08 Yao Qi <yao.qi@linaro.org>
9676 * remote-utils.c (getpkt): If c is '\003', call target hook
9679 2016-01-06 Yao Qi <yao.qi@linaro.org>
9681 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9682 linux-aarch32-low.c.
9683 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9684 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9685 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9686 (thumb2_breakpoint): Declare.
9687 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9688 linux-aarch32-low.h.
9689 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9690 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9691 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9693 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9695 * gdbreplay.c (gdbreplay_version): Change copyright year in
9697 * server.c (gdbserver_version): Likewise.
9699 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9701 * server.c (crc32_table): Delete.
9702 (crc32): Use libiberty's xcrc32 function.
9704 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9706 * lynx-low.c (lynx_delete_thread_callback): New function.
9707 (lynx_mourn): Properly delete our process and all of its
9708 threads. Remove call to clear_inferiors.
9710 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9712 * target.c (thread_search_callback): Add check that
9713 the thread_stopped target callback is not NULL before
9716 2015-12-21 Yao Qi <yao.qi@linaro.org>
9718 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9721 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9723 * server.c (handle_query): Call target_supports_software_single_step.
9725 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9727 * linux-low.c (single_step): New function.
9728 (linux_resume_one_lwp_throw): Call single_step.
9729 (start_step_over): Likewise.
9731 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9733 * Makefile.in (SFILES): Append arch/arm-linux.c,
9734 arch/arm-get-next-pcs.c.
9735 (arm-linux.o): New rule.
9736 (arm-get-next-pcs.o): New rule.
9737 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9739 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9740 to linux-aarch32-low.c.
9741 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9742 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9743 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9744 (thumb2_breakpoint_len): Likewise.
9745 (arm_is_thumb_mode): Make non-static.
9746 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9747 from linux-aarch32-low.c.
9748 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9749 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9750 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9751 (thumb2_breakpoint_len): Likewise.
9752 (arm_is_thumb_mode): New declaration.
9753 * linux-arm-low.c: Include arch/arm-linux.h
9754 aarch/arm-get-next-pcs.h, sys/syscall.h.
9755 (get_next_pcs_ops): New struct.
9756 (get_next_pcs_addr_bits_remove): New function.
9757 (get_next_pcs_is_thumb): New function.
9758 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9759 (arm_sigreturn_next_pc): Likewise.
9760 (get_next_pcs_syscall_next_pc): Likewise.
9761 (arm_gdbserver_get_next_pcs): Likewise.
9762 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9764 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9765 * server.h: Include gdb_vecs.h.
9767 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9769 * Makefile.in (SFILES): Append common/common-regcache.c.
9770 (OBS): Append common-regcache.o.
9771 (common-regcache.o): New rule.
9772 * regcache.c (init_register_cache): Initialize cache to
9774 (regcache_raw_read_unsigned): New function.
9775 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9776 register_status enum.
9778 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9780 * linux-aarch64-low.c (the_low_targets): Rename
9781 breakpoint_reinsert_addr to get_next_pcs.
9782 * linux-arm-low.c (the_low_targets): Likewise.
9783 * linux-bfin-low.c (the_low_targets): Likewise.
9784 * linux-cris-low.c (the_low_targets): Likewise.
9785 * linux-crisv32-low.c (the_low_targets): Likewise.
9786 * linux-low.c (can_software_single_step): Likewise.
9787 (install_software_single_step_breakpoints): New function.
9788 (start_step_over): Use install_software_single_step_breakpoints.
9789 * linux-low.h: New CORE_ADDR vector.
9790 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9792 * linux-mips-low.c (the_low_targets): Likewise.
9793 * linux-nios2-low.c (the_low_targets): Likewise.
9794 * linux-sparc-low.c (the_low_targets): Likewise.
9796 2015-12-17 Pedro Alves <palves@redhat.com>
9798 * linux-low.c (linux_kill_one_lwp): Remove references to
9800 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9802 (linux_init_signals): Delete.
9803 (initialize_low): Adjust.
9804 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9806 2015-12-16 Pedro Alves <palves@redhat.com>
9808 * configure.ac (compiler warning flags): When testing a
9809 -Wno-foo option, check whether -Wfoo works instead.
9810 * configure: Regenerate.
9812 2015-12-11 Don Breazeal <donb@codesourcery.com>
9814 * server.c (process_serial_event): Don't exit from gdbserver
9815 in remote mode if there are still active inferiors.
9817 2015-12-11 Yao Qi <yao.qi@linaro.org>
9819 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9820 arm_breakpoint_at if the process is 32-bit.
9822 2015-12-11 Yao Qi <yao.qi@linaro.org>
9824 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9827 2015-12-07 Yao Qi <yao.qi@linaro.org>
9829 * configure.srv: Append arm.o to srv_tgtobj for
9830 aarch64*-*-linux* target.
9831 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9832 from linux-arm-low.c.
9833 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9834 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9835 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9836 (thumb2_breakpoint_len): Likewise.
9837 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9838 (arm_breakpoint_kinds): Likewise.
9839 (arm_breakpoint_kind_from_pc): Likewise.
9840 (arm_sw_breakpoint_from_kind): Likewise.
9841 (arm_breakpoint_kind_from_current_state): Likewise.
9842 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9843 (arm_sw_breakpoint_from_kind): Declare.
9844 (arm_breakpoint_kind_from_current_state): Declare.
9845 (arm_breakpoint_at): Declare.
9846 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9847 arm_sw_breakpoint_from_kind if process is 32-bit.
9848 (aarch64_breakpoint_kind_from_pc): New function.
9849 (aarch64_breakpoint_kind_from_current_state): New function.
9850 (the_low_target): Initialize fields breakpoint_kind_from_pc
9851 and breakpoint_kind_from_current_state.
9852 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9853 linux-aarch32-low.c.
9854 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9855 (arm_breakpoint, arm_breakpoint_len): Likewise.
9856 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9857 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9858 (arm_is_thumb_mode): Likewise.
9859 (arm_breakpoint_at): Likewise.
9860 (arm_breakpoint_kind_from_pc): Likewise.
9861 (arm_sw_breakpoint_from_kind): Likewise.
9862 (arm_breakpoint_kind_from_current_state): Likewise.
9865 2015-08-04 Yao Qi <yao.qi@linaro.org>
9867 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9868 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9869 * server.c (extended_protocol): Remove "static".
9870 * server.h (extended_protocol): Declare it.
9872 2015-12-04 Josh Stone <jistone@redhat.com>
9874 * target.h (struct target_ops) <arch_setup>: Rename to ...
9875 (struct target_ops) <post_create_inferior>: ... this.
9876 (target_arch_setup): Rename to ...
9877 (target_post_create_inferior): ... this, calling post_create_inferior.
9878 * server.c (start_inferior): Update target_arch_setup calls to
9879 target_post_create_inferior.
9880 * linux-low.c (linux_low_ptrace_options): Forward declare.
9881 (linux_arch_setup): Update its comment for general use.
9882 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9883 (struct linux_target_ops): Use linux_post_create_inferior.
9884 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9885 to post_create_inferior.
9886 * nto-low.c (struct nto_target_ops): Likewise.
9887 * spu-low.c (struct spu_target_ops): Likewise.
9888 * win32-low.c (struct win32_target_ops): Likewise.
9890 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9892 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9894 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9896 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9897 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9898 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9899 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9900 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9901 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9902 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9903 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9904 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9905 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9906 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9907 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9909 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9911 * linux-low.c (linux_look_up_symbols): Don't call
9912 linux_supports_traceclone.
9913 * linux-low.h (thread_db_init): Remove use_events argument.
9914 * thread-db.c (thread_db_use_event): Remove global variable.
9915 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9916 (struct thread_db) <td_create_bp>: Remove field.
9917 (thread_db_create_event): Remove function.
9918 (thread_db_enable_reporting): Likewise.
9919 (find_one_thread): Don't check for thread_db_use_events.
9920 (attach_thread): Likewise.
9921 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9922 (try_thread_db_load_1): Don't check for thread_db_use_events.
9923 (thread_db_init): Remove use_events argument and thread events
9925 (remove_thread_event_breakpoints): Remove function.
9926 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9928 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9930 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9932 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9933 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9934 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9935 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9936 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9938 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9940 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9941 * linux-low.c (can_hardware_single_step): Use
9942 supports_hardware_single_step.
9943 (can_software_single_step): New function.
9944 (start_step_over): Call can_software_single_step.
9945 (linux_supports_hardware_single_step): New function.
9946 (struct target_ops) <supports_software_single_step>: Initialize.
9947 * linux-low.h (struct linux_target_ops)
9948 <supports_hardware_single_step>: Initialize.
9949 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9950 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9951 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9952 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9953 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9954 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9955 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9956 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9957 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9958 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9960 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9961 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9963 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9964 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9965 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9967 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9968 * target.h (struct target_ops): <supports_software_single_step>:
9970 (target_supports_software_single_step): New macro.
9972 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9974 * linux-low.c (linux_wait_1): Fix pc advance condition.
9975 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9976 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9978 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9980 * linux-arm-low.c (arm_is_thumb_mode): New function.
9981 (arm_breakpoint_at): Use arm_is_thumb_mode.
9982 (arm_breakpoint_kind_from_current_state): New function.
9983 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9985 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9986 (linux_breakpoint_kind_from_current_state): New function.
9987 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9988 * linux-low.h (struct linux_target_ops)
9989 <breakpoint_kind_from_current_state>: New field.
9990 * target.h (struct target_ops): Likewise.
9991 (target_breakpoint_kind_from_current_state): New macro.
9993 2015-11-30 Pedro Alves <palves@redhat.com>
9995 * linux-low.c (linux_resume): Wake up the event loop before
9998 2015-11-30 Pedro Alves <palves@redhat.com>
10000 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
10002 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
10004 * target.c (struct thread_search): New structure.
10005 (thread_search_callback): New function.
10006 (prev_general_thread): New global.
10007 (prepare_to_access_memory, done_accessing_memory): New functions.
10008 * target.h (prepare_to_access_memory, done_accessing_memory):
10009 Replace macros with function declarations.
10011 2015-11-30 Pedro Alves <palves@redhat.com>
10014 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
10015 report TARGET_WAITKIND_NO_RESUMED.
10016 * remote-utils.c (prepare_resume_reply): Handle
10017 TARGET_WAITKIND_NO_RESUMED.
10018 * server.c (report_no_resumed): New global.
10019 (handle_query) <qSupported>: Handle "no-resumed+". Report
10020 "no-resumed+" support.
10021 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
10022 return error if the client doesn't support no-resumed events.
10023 (push_stop_notification): New function.
10024 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
10025 events if the client supports them.
10027 2015-11-30 Pedro Alves <palves@redhat.com>
10029 * linux-low.c (thread_still_has_status_pending_p): Don't check
10031 (lwp_resumed): New function.
10032 (status_pending_p_callback): Return early if the LWP is not
10033 supposed to be resumed.
10035 2015-11-30 Pedro Alves <palves@redhat.com>
10037 * linux-low.c (handle_extended_wait): Assert that the LWP's
10038 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
10039 thread create events, leave the new child's status pending.
10040 (linux_low_filter_event): If GDB wants to hear about thread exit
10041 events, leave the LWP marked dead and don't delete it.
10042 (linux_wait_for_event_filtered): Don't check for thread exit.
10043 (filter_exit_event): New function.
10044 (linux_wait_1): Use it, when returning an exit event.
10045 (linux_resume_one_lwp_throw): Assert that the LWP's
10046 waitstatus is TARGET_WAITKIND_IGNORE.
10047 * remote-utils.c (prepare_resume_reply): Handle
10048 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10049 * server.c (report_thread_events): New global.
10050 (handle_general_set): Handle QThreadEvents.
10051 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10052 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10053 TARGET_WAITKIND_THREAD_EXITED.
10054 * server.h (report_thread_events): Declare.
10056 2015-11-30 Pedro Alves <palves@redhat.com>
10058 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10059 the thread's last_resume_kind was resume_stop.
10061 2015-11-30 Pedro Alves <palves@redhat.com>
10063 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10066 2015-11-30 Pedro Alves <palves@redhat.com>
10068 * server.c (handle_v_requests): Handle vCtrlC.
10070 2015-11-30 Pedro Alves <palves@redhat.com>
10072 * gdbthread.h (find_any_thread_of_pid): Declare.
10073 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10075 * server.c (handle_query): If current_thread is NULL, look for
10076 another thread of the selected process.
10078 2015-11-26 Daniel Colascione <dancol@dancol.org>
10079 Simon Marchi <simon.marchi@ericsson.com>
10081 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10082 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10084 * target.h (struct target_ops) <thread_name>: New field.
10085 (target_thread_name): New macro.
10087 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10089 * regcache.h (regcache_invalidate_pid): Add declaration.
10090 * regcache.c (regcache_invalidate_pid): New function, extracted
10091 from regcache_invalidate.
10092 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10093 Add trivial documentation comment.
10094 * lynx-low.c: Use regcache_invalidate_pid instead of
10095 regcache_invalidate.
10097 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10099 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10100 and Elf64_auxv_t if the target is Android.
10102 2015-11-22 Doug Evans <xdje42@gmail.com>
10104 * target.h: #include <sys/types.h>.
10106 2015-11-19 Pedro Alves <palves@redhat.com>
10108 * linux-low.c (linux_process_qsupported): Change prototype.
10110 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10112 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10113 and adjust to loop over all features.
10114 * server.c (handle_query) <qSupported>: Adjust to call
10115 target_process_qsupported once, passing it a vector of unprocessed
10117 * target.h (struct target_ops) <process_qsupported>: Change
10119 (target_process_qsupported): Adjust.
10121 2015-11-19 Pedro Alves <palves@redhat.com>
10123 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10125 * configure: Regenerate.
10127 2015-11-19 Pedro Alves <palves@redhat.com>
10129 * configure: Regenerate.
10131 2015-11-19 Yao Qi <yao.qi@linaro.org>
10133 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10136 2015-11-19 Yao Qi <yao.qi@linaro.org>
10138 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10139 (struct aarch64_operand): Move enum out.
10141 2015-11-19 Yao Qi <yao.qi@linaro.org>
10143 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10144 struct user_fpsimd_state *.
10145 (aarch64_store_fpregset): Likewise.
10147 2015-11-19 Yao Qi <yao.qi@linaro.org>
10149 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10150 struct user_pt_regs *.
10151 (aarch64_store_gregset): Likewise.
10153 2015-11-18 Pedro Alves <palves@redhat.com>
10155 * Makefile.in (all_object_files): Add $IPA_OBJS.
10157 2015-11-17 Pedro Alves <palves@redhat.com>
10159 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10160 GDB_SIGNAL_0 and gdb_signal_to_string.
10162 2015-11-17 Pedro Alves <palves@redhat.com>
10164 * win32-low.c (handle_output_debug_string): Remove parameter.
10165 (win32_kill): Remove our_status local and adjust call to
10166 handle_output_debug_string.
10167 (get_child_debug_event): Adjust call to
10168 handle_output_debug_string.
10170 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10172 * linux-mips-low.c (mips_fill_gregset): Add cast.
10173 (mips_store_gregset): Likewise.
10174 (mips_fill_fpregset): Likewise.
10175 (mips_store_fpregset): Likewise.
10177 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10179 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10182 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10184 * linux-mips-low.c (mips_linux_new_thread): Change type of
10185 watch_type to enum target_hw_bp_type.
10187 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10189 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10190 Change return type to arm_hwbp_type.
10192 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10194 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10195 (arm_store_gregset): Likewise.
10196 * linux-arm-low.c (arm_get_hwcap): Likewise.
10197 (arm_read_description): Likewise.
10199 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10201 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10203 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10205 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10206 (ppc_fill_vsxregset): Likewise.
10207 (ppc_store_vsxregset): Likewise.
10208 (ppc_fill_vrregset): Likewise.
10209 (ppc_store_vrregset): Likewise.
10210 (ppc_fill_evrregset): Likewise.
10211 (ppc_store_evrregset): Likewise.
10213 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10215 * linux-ppc-low.c (ppc_usrregs_info): Remove
10216 forward-declaration.
10217 (ppc_arch_setup): Move lower in file.
10219 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10221 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10222 (ps_pdwrite): Likewise.
10224 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10226 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10227 to after assert checks.
10229 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10231 * proc-service.c (ps_pdread): Add/adjust casts.
10232 (ps_pdwrite): Add/adjust casts.
10234 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10236 * server.c (handle_search_memory_1): Cast return value of
10239 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10241 * server.c (write_qxfer_response): Change type of data to
10244 2015-10-29 Pedro Alves <palves@redhat.com>
10246 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10248 2015-10-29 Pedro Alves <palves@redhat.com>
10250 * tracepoint.c (clear_installed_tracepoints): Add casts.
10252 2015-10-29 Pedro Alves <palves@redhat.com>
10254 * server.c (handle_v_cont, process_serial_event): Add enum
10255 gdb_signal casts to signal parsing code.
10257 2015-10-29 Pedro Alves <palves@redhat.com>
10259 * linux-low.h (NULL_REGSET): Define.
10260 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10261 * linux-arm-low.c (arm_regsets): Likewise.
10262 * linux-crisv32-low.c (cris_regsets): Likewise.
10263 * linux-m68k-low.c (m68k_regsets): Likewise.
10264 * linux-mips-low.c (mips_regsets): Likewise.
10265 * linux-nios2-low.c (nios2_regsets): Likewise.
10266 * linux-ppc-low.c (ppc_regsets): Likewise.
10267 * linux-s390-low.c (s390_regsets): Likewise.
10268 * linux-sh-low.c (sh_regsets): Likewise.
10269 * linux-sparc-low.c (sparc_regsets): Likewise.
10270 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10271 * linux-tile-low.c (tile_regsets): Likewise.
10272 * linux-x86-low.c (x86_regsets): Likewise.
10273 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10275 2015-10-29 Pedro Alves <palves@redhat.com>
10277 * linux-low.h (NULL_REGSET): Define.
10278 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10279 * linux-arm-low.c (arm_regsets): Likewise.
10280 * linux-crisv32-low.c (cris_regsets): Likewise.
10281 * linux-m68k-low.c (m68k_regsets): Likewise.
10282 * linux-mips-low.c (mips_regsets): Likewise.
10283 * linux-nios2-low.c (nios2_regsets): Likewise.
10284 * linux-ppc-low.c (ppc_regsets): Likewise.
10285 * linux-s390-low.c (s390_regsets): Likewise.
10286 * linux-sh-low.c (sh_regsets): Likewise.
10287 * linux-sparc-low.c (sparc_regsets): Likewise.
10288 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10289 * linux-tile-low.c (tile_regsets): Likewise.
10290 * linux-x86-low.c (x86_regsets): Likewise.
10291 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10293 2015-10-26 Doug Evans <dje@google.com>
10295 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10297 2015-10-26 Doug Evans <dje@google.com>
10299 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10301 2015-10-26 Doug Evans <dje@google.com>
10303 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10305 (attach_thread, find_new_threads_callback): Ditto.
10307 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10309 * mem-break.h (set_breakpoint_data): Remove.
10311 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10313 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10314 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10315 (initialize_low): Remove set_breakpoint_data call.
10316 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10317 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10318 (initialize_low): Remove set_breakpoint_data call.
10319 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10320 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10321 (initialize_low): Remove set_breakpoint_data call.
10323 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10325 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10326 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10327 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10328 * target.h (target_breakpoint_kind_from_pc): New macro.
10330 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10332 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10333 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10334 the default breakpoint kind.
10336 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10338 * linux-arm-low.c (arm_supports_z_point_type): Add software
10339 breakpoint support.
10341 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10343 * linux-arm-low.c: Refactor breakpoint definitions.
10344 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10345 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10347 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10349 * Makefile.in: Add arm.c/o.
10350 * configure.srv: Likewise.
10351 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10352 (arm_breakpoint_kind_from_pc): New function.
10353 (arm_sw_breakpoint_from_kind): Return proper kind.
10354 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10356 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10358 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10360 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10361 (struct raw_breakpoint) <size>: Remove.
10362 (struct raw_breakpoint) <kind>: Add.
10363 (bp_size): New function.
10364 (bp_opcode): Likewise.
10365 (find_raw_breakpoint_at): Adjust for kind.
10366 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10367 (remove_memory_breakpoint): Adjust for kind call bp_size.
10368 (set_raw_breakpoint_at): Adjust for kind.
10369 (set_breakpoint): Likewise.
10370 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10371 (delete_raw_breakpoint): Adjust for kind.
10372 (delete_breakpoint): Likewise.
10373 (find_gdb_breakpoint): Likewise.
10374 (set_gdb_breakpoint_1): Likewise.
10375 (set_gdb_breakpoint): Likewise.
10376 (delete_gdb_breakpoint_1): Likewise.
10377 (delete_gdb_breakpoint): Likewise.
10378 (uninsert_raw_breakpoint): Likewise.
10379 (reinsert_raw_breakpoint): Likewise.
10380 (set_breakpoint_data): Remove.
10381 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10382 (check_mem_read): Adjust for kind call bp_size.
10383 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10384 (clone_one_breakpoint): Adjust for kind.
10385 * mem-break.h (set_gdb_breakpoint): Likewise.
10386 (delete_gdb_breakpoint): Likewise.
10387 * server.c (process_serial_event): Likewise.
10389 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10391 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10392 (struct linux_target_ops) <breakpoint>: Remove.
10393 (struct linux_target_ops) <breakpoint_len>: Remove.
10394 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10395 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10396 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10397 (arm_sw_breakpoint_from_kind): New function.
10398 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10399 (struct linux_target_ops) <breakpoint>: Remove.
10400 (struct linux_target_ops) <breakpoint_len>: Remove.
10401 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10402 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10403 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10404 (struct linux_target_ops) <breakpoint>: Remove.
10405 (struct linux_target_ops) <breakpoint_len>: Remove.
10406 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10407 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10408 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10409 (struct linux_target_ops) <breakpoint>: Remove.
10410 (struct linux_target_ops) <breakpoint_len>: Remove.
10411 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10412 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10413 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10414 and sw_breakpoint_from_kind to increment the pc.
10415 (linux_breakpoint_kind_from_pc): New function.
10416 (linux_sw_breakpoint_from_kind): New function.
10417 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10418 (initialize_low): Call breakpoint_kind_from_pc and
10419 sw_breakpoint_from_kind to replace breakpoint_data/len.
10420 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10422 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10423 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10424 (struct linux_target_ops) <breakpoint>: Remove.
10425 (struct linux_target_ops) <breakpoint_len>: Remove.
10426 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10427 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10428 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10429 (struct linux_target_ops) <breakpoint>: Remove.
10430 (struct linux_target_ops) <breakpoint_len>: Remove.
10431 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10432 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10433 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10434 (struct linux_target_ops) <breakpoint>: Remove.
10435 (struct linux_target_ops) <breakpoint_len>: Remove.
10436 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10437 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10438 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10439 (struct linux_target_ops) <breakpoint>: Remove.
10440 (struct linux_target_ops) <breakpoint_len>: Remove.
10441 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10442 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10443 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10444 (struct linux_target_ops) <breakpoint>: Remove.
10445 (struct linux_target_ops) <breakpoint_len>: Remove.
10446 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10447 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10448 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10449 (struct linux_target_ops) <breakpoint>: Remove.
10450 (struct linux_target_ops) <breakpoint_len>: Remove.
10451 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10452 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10453 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10454 (struct linux_target_ops) <breakpoint>: Remove.
10455 (struct linux_target_ops) <breakpoint_len>: Remove.
10456 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10457 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10458 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10459 (struct linux_target_ops) <breakpoint>: Remove.
10460 (struct linux_target_ops) <breakpoint_len>: Remove.
10461 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10462 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10463 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10464 (struct linux_target_ops) <breakpoint>: Remove.
10465 (struct linux_target_ops) <breakpoint_len>: Remove.
10466 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10467 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10468 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10469 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10470 (struct linux_target_ops) <breakpoint>: Remove.
10471 (struct linux_target_ops) <breakpoint_len>: Remove.
10472 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10473 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10474 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10475 (struct linux_target_ops) <breakpoint>: Remove.
10476 (struct linux_target_ops) <breakpoint_len>: Remove.
10477 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10478 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10480 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10482 * linux-cris-low.c (cris_get_pc): Remove void arg.
10484 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10486 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10489 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10491 * inferiors.c (thread_pid_matches_callback): New function.
10492 (find_thread_process): New function.
10493 (remove_thread): Reset current_thread.
10494 (remove_process): Assert threads have been removed first.
10496 2015-10-15 Yao Qi <yao.qi@linaro.org>
10498 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10500 (aarch64_remove_point): Likewise.
10501 * regcache.c (regcache_register_size): New function.
10503 2015-10-12 Yao Qi <yao.qi@linaro.org>
10505 * linux-aarch64-low.c: Update all callers as emit_load_store
10506 is renamed to aarch64_emit_load_store.
10508 2015-10-12 Yao Qi <yao.qi@linaro.org>
10510 * linux-aarch64-low.c: Update all callers of function renaming
10511 from emit_insn to aarch64_emit_insn.
10513 2015-10-12 Yao Qi <yao.qi@linaro.org>
10515 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10516 arch/aarch64-insn.h.
10517 (struct aarch64_memory_operand): Likewise.
10518 (ENCODE): Likewise.
10519 (emit_insn): Move to arch/aarch64-insn.c.
10520 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10521 (emit_load_store): Move to arch/aarch64-insn.c.
10522 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10523 (can_encode_int32): Remove.
10525 2015-10-12 Yao Qi <yao.qi@linaro.org>
10527 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10528 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10529 (aarch64_relocate_instruction): Likewise.
10530 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10531 (struct aarch64_insn_visitor): Likewise.
10533 2015-10-12 Yao Qi <yao.qi@linaro.org>
10535 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10536 (struct aarch64_insn_visitor): New.
10537 (struct aarch64_insn_relocation_data): New.
10538 (aarch64_ftrace_insn_reloc_b): New function.
10539 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10540 (aarch64_ftrace_insn_reloc_cb): Likewise.
10541 (aarch64_ftrace_insn_reloc_tb): Likewise.
10542 (aarch64_ftrace_insn_reloc_adr): Likewise.
10543 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10544 (aarch64_ftrace_insn_reloc_others): Likewise.
10546 (aarch64_relocate_instruction): Use visitor.
10548 2015-10-12 Yao Qi <yao.qi@linaro.org>
10550 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10551 int. Add argument buf.
10552 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10553 aarch64_relocate_instruction.
10555 2015-10-12 Yao Qi <yao.qi@linaro.org>
10557 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10558 argument insn. Remove local variable insn. Don't call
10559 target_read_uint32.
10560 (aarch64_install_fast_tracepoint_jump_pad): Call
10561 target_read_uint32.
10563 2015-09-30 Yao Qi <yao.qi@linaro.org>
10565 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10566 (emit_load_store_pair): Likewise.
10568 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10570 * dll.c (match_dll): Add cast(s).
10571 (unloaded_dll): Likewise.
10572 * linux-low.c (second_thread_of_pid_p): Likewise.
10573 (delete_lwp_callback): Likewise.
10574 (count_events_callback): Likewise.
10575 (select_event_lwp_callback): Likewise.
10576 (linux_set_resume_request): Likewise.
10577 * server.c (accumulate_file_name_length): Likewise.
10578 (emit_dll_description): Likewise.
10579 (handle_qxfer_threads_worker): Likewise.
10580 (visit_actioned_threads): Likewise.
10581 * thread-db.c (any_thread_of): Likewise.
10582 * tracepoint.c (same_process_p): Likewise.
10583 (match_blocktype): Likewise.
10584 (build_traceframe_info_xml): Likewise.
10586 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10588 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10590 (gdb_unparse_agent_expr): Likewise.
10591 * hostio.c (require_data): Likewise.
10592 (handle_pread): Likewise.
10593 * linux-low.c (disable_regset): Likewise.
10594 (fetch_register): Likewise.
10595 (store_register): Likewise.
10596 (get_dynamic): Likewise.
10597 (linux_qxfer_libraries_svr4): Likewise.
10598 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10599 (set_fast_tracepoint_jump): Likewise.
10600 (uninsert_fast_tracepoint_jumps_at): Likewise.
10601 (reinsert_fast_tracepoint_jumps_at): Likewise.
10602 (validate_inserted_breakpoint): Likewise.
10603 (clone_agent_expr): Likewise.
10604 * regcache.c (init_register_cache): Likewise.
10605 * remote-utils.c (putpkt_binary_1): Likewise.
10606 (decode_M_packet): Likewise.
10607 (decode_X_packet): Likewise.
10608 (look_up_one_symbol): Likewise.
10609 (relocate_instruction): Likewise.
10610 (monitor_output): Likewise.
10611 * server.c (handle_search_memory): Likewise.
10612 (handle_qxfer_exec_file): Likewise.
10613 (handle_qxfer_libraries): Likewise.
10614 (handle_qxfer): Likewise.
10615 (handle_query): Likewise.
10616 (handle_v_cont): Likewise.
10617 (handle_v_run): Likewise.
10618 (captured_main): Likewise.
10619 * target.c (write_inferior_memory): Likewise.
10620 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10621 * tracepoint.c (init_trace_buffer): Likewise.
10622 (add_tracepoint_action): Likewise.
10623 (add_traceframe): Likewise.
10624 (add_traceframe_block): Likewise.
10625 (cmd_qtdpsrc): Likewise.
10626 (cmd_qtdv): Likewise.
10627 (cmd_qtstatus): Likewise.
10628 (response_source): Likewise.
10629 (response_tsv): Likewise.
10630 (cmd_qtnotes): Likewise.
10631 (gdb_collect): Likewise.
10632 (initialize_tracepoint): Likewise.
10634 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10636 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10637 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10638 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10640 (enum aarch64_condition_codes): New enum.
10641 (w0): New static global.
10644 (struct aarch64_memory_operand) <type>: New
10645 MEMORY_OPERAND_POSTINDEX type.
10646 (postindex_memory_operand): New helper function.
10647 (emit_ret): New function.
10648 (emit_load_store_pair): New function, factored out of emit_stp
10649 with support for MEMORY_OPERAND_POSTINDEX.
10650 (emit_stp): Rewrite using emit_load_store_pair.
10651 (emit_ldp): New function.
10652 (emit_load_store): Likewise.
10653 (emit_ldr): Mention post-index instruction in comment.
10654 (emit_ldrh): New function.
10655 (emit_ldrb): New function.
10656 (emit_ldrsw): Mention post-index instruction in comment.
10657 (emit_str): Likewise.
10658 (emit_subs): New function.
10659 (emit_cmp): Likewise.
10660 (emit_and): Likewise.
10661 (emit_orr): Likewise.
10662 (emit_orn): Likewise.
10663 (emit_eor): Likewise.
10664 (emit_mvn): Likewise.
10665 (emit_lslv): Likewise.
10666 (emit_lsrv): Likewise.
10667 (emit_asrv): Likewise.
10668 (emit_mul): Likewise.
10669 (emit_sbfm): Likewise.
10670 (emit_sbfx): Likewise.
10671 (emit_ubfm): Likewise.
10672 (emit_ubfx): Likewise.
10673 (emit_csinc): Likewise.
10674 (emit_cset): Likewise.
10675 (emit_nop): Likewise.
10676 (emit_ops_insns): New helper function.
10677 (emit_pop): Likewise.
10678 (emit_push): Likewise.
10679 (aarch64_emit_prologue): New function.
10680 (aarch64_emit_epilogue): Likewise.
10681 (aarch64_emit_add): Likewise.
10682 (aarch64_emit_sub): Likewise.
10683 (aarch64_emit_mul): Likewise.
10684 (aarch64_emit_lsh): Likewise.
10685 (aarch64_emit_rsh_signed): Likewise.
10686 (aarch64_emit_rsh_unsigned): Likewise.
10687 (aarch64_emit_ext): Likewise.
10688 (aarch64_emit_log_not): Likewise.
10689 (aarch64_emit_bit_and): Likewise.
10690 (aarch64_emit_bit_or): Likewise.
10691 (aarch64_emit_bit_xor): Likewise.
10692 (aarch64_emit_bit_not): Likewise.
10693 (aarch64_emit_equal): Likewise.
10694 (aarch64_emit_less_signed): Likewise.
10695 (aarch64_emit_less_unsigned): Likewise.
10696 (aarch64_emit_ref): Likewise.
10697 (aarch64_emit_if_goto): Likewise.
10698 (aarch64_emit_goto): Likewise.
10699 (aarch64_write_goto_address): Likewise.
10700 (aarch64_emit_const): Likewise.
10701 (aarch64_emit_call): Likewise.
10702 (aarch64_emit_reg): Likewise.
10703 (aarch64_emit_pop): Likewise.
10704 (aarch64_emit_stack_flush): Likewise.
10705 (aarch64_emit_zero_ext): Likewise.
10706 (aarch64_emit_swap): Likewise.
10707 (aarch64_emit_stack_adjust): Likewise.
10708 (aarch64_emit_int_call_1): Likewise.
10709 (aarch64_emit_void_call_2): Likewise.
10710 (aarch64_emit_eq_goto): Likewise.
10711 (aarch64_emit_ne_goto): Likewise.
10712 (aarch64_emit_lt_goto): Likewise.
10713 (aarch64_emit_le_goto): Likewise.
10714 (aarch64_emit_gt_goto): Likewise.
10715 (aarch64_emit_ge_got): Likewise.
10716 (aarch64_emit_ops_impl): New static global variable.
10717 (aarch64_emit_ops): New target function, return
10718 &aarch64_emit_ops_impl.
10719 (struct linux_target_ops): Install it.
10721 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10723 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10724 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10726 * linux-aarch64-ipa.c: New file.
10727 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10729 (aarch64_get_thread_area): New target method.
10730 (extract_signed_bitfield): New helper function.
10731 (aarch64_decode_ldr_literal): New function.
10732 (enum aarch64_opcodes): New enum.
10733 (struct aarch64_register): New struct.
10734 (struct aarch64_operand): New struct.
10735 (x0): New static global.
10744 (aarch64_register): New helper function.
10745 (register_operand): Likewise.
10746 (immediate_operand): Likewise.
10747 (struct aarch64_memory_operand): New struct.
10748 (offset_memory_operand): New helper function.
10749 (preindex_memory_operand): Likewise.
10750 (enum aarch64_system_control_registers): New enum.
10751 (ENCODE): New macro.
10752 (emit_insn): New helper function.
10753 (emit_b): New function.
10754 (emit_bcond): Likewise.
10755 (emit_cb): Likewise.
10756 (emit_tb): Likewise.
10757 (emit_blr): Likewise.
10758 (emit_stp): Likewise.
10759 (emit_ldp_q_offset): Likewise.
10760 (emit_stp_q_offset): Likewise.
10761 (emit_load_store): Likewise.
10762 (emit_ldr): Likewise.
10763 (emit_ldrsw): Likewise.
10764 (emit_str): Likewise.
10765 (emit_ldaxr): Likewise.
10766 (emit_stxr): Likewise.
10767 (emit_stlr): Likewise.
10768 (emit_data_processing_reg): Likewise.
10769 (emit_data_processing): Likewise.
10770 (emit_add): Likewise.
10771 (emit_sub): Likewise.
10772 (emit_mov): Likewise.
10773 (emit_movk): Likewise.
10774 (emit_mov_addr): Likewise.
10775 (emit_mrs): Likewise.
10776 (emit_msr): Likewise.
10777 (emit_sevl): Likewise.
10778 (emit_wfe): Likewise.
10779 (append_insns): Likewise.
10780 (can_encode_int32_in): New helper function.
10781 (aarch64_relocate_instruction): New function.
10782 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10783 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10784 (struct linux_target_ops): Install aarch64_get_thread_area,
10785 aarch64_install_fast_tracepoint_jump_pad and
10786 aarch64_get_min_fast_tracepoint_insn_len.
10788 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10790 * Makefile.in (aarch64-insn.o): New rule.
10791 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10793 2015-09-21 Yao Qi <yao.qi@linaro.org>
10795 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10797 2015-09-21 Yao Qi <yao.qi@linaro.org>
10799 * tracepoint.c (max_jump_pad_size): Remove.
10801 2015-09-18 Yao Qi <yao.qi@linaro.org>
10803 * linux-aarch64-low.c: Don't include sys/uio.h.
10804 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10806 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10808 * tracepoint.c (eval_result_type): Change prototype.
10809 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10811 2015-09-15 Pedro Alves <palves@redhat.com>
10813 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10814 Check whether to report exec events instead of checking whether
10815 multiprocess is enabled.
10817 2015-09-15 Pedro Alves <palves@redhat.com>
10820 * remote-utils.c (prepare_resume_reply): Merge
10821 TARGET_WAITKIND_VFORK_DONE switch case with the
10822 TARGET_WAITKIND_FORKED case.
10824 2015-09-15 Yao Qi <yao.qi@linaro.org>
10826 * server.c (handle_query): Check string comparison using
10827 "else if" instead of "if".
10829 2015-09-15 Yao Qi <yao.qi@linaro.org>
10831 * server.c (vCont_supported): New global variable.
10832 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10833 matches. Append ";vContSupported+" to own_buf.
10834 (handle_v_requests): Append ";s;S" to own_buf if target supports
10835 hardware single step or vCont_supported is false.
10836 (capture_main): Set vCont_supported to zero.
10838 2015-09-15 Yao Qi <yao.qi@linaro.org>
10840 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10842 (linux_supports_hardware_single_step): ... New function.
10843 (linux_target_ops): Update.
10844 * lynx-low.c (lynx_target_ops): Set field
10845 supports_hardware_single_step to target_can_do_hardware_single_step.
10846 * nto-low.c (nto_target_ops): Likewise.
10847 * spu-low.c (spu_target_ops): Likewise.
10848 * win32-low.c (win32_target_ops): Likewise.
10849 * target.c (target_can_do_hardware_single_step): New function.
10850 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10851 Remove. <supports_hardware_single_step>: New field.
10852 (target_supports_conditional_breakpoints): Remove.
10853 (target_supports_hardware_single_step): New macro.
10854 (target_can_do_hardware_single_step): Declare.
10855 * server.c (handle_query): Use target_supports_hardware_single_step
10856 instead of target_supports_conditional_breakpoints.
10858 2015-09-15 Yao Qi <yao.qi@linaro.org>
10860 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10862 (struct linux_target_ops the_low_target): Install
10863 aarch64_linux_siginfo_fixup.
10865 2015-09-11 Don Breazeal <donb@codesourcery.com>
10866 Luis Machado <lgustavo@codesourcery.com>
10868 * linux-low.c (linux_mourn): Static declaration.
10869 (linux_arch_setup): Move in front of
10870 handle_extended_wait.
10871 (linux_arch_setup_thread): New function.
10872 (handle_extended_wait): Handle exec events. Call
10873 linux_arch_setup_thread. Make event_lwp argument a
10874 pointer-to-a-pointer.
10875 (check_zombie_leaders): Do not check stopped threads.
10876 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10877 (linux_low_filter_event): Add lwp and thread for exec'ing
10878 non-leader thread if leader thread has been deleted.
10879 Refactor code into linux_arch_setup_thread and call it.
10880 Pass child lwp pointer by reference to handle_extended_wait.
10881 (linux_wait_for_event_filtered): Update comment.
10882 (linux_wait_1): Prevent clobbering exec event status.
10883 (linux_supports_exec_events): New function.
10884 (linux_target_ops) <supports_exec_events>: Initialize new member.
10885 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10887 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10888 * server.c (report_exec_events): New global variable.
10889 (handle_query): Handle qSupported query for exec-events feature.
10890 (captured_main): Initialize report_exec_events.
10891 * server.h (report_exec_events): Declare new global variable.
10892 * target.h (struct target_ops) <supports_exec_events>: New
10894 (target_supports_exec_events): New macro.
10895 * win32-low.c (win32_target_ops) <supports_exec_events>:
10896 Initialize new member.
10898 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10900 * linux-low.c (linux_low_enable_btrace): Remove.
10901 (linux_target_ops): Replace linux_low_enable_btrace with
10902 linux_enable_btrace.
10904 2015-09-03 Yao Qi <yao.qi@linaro.org>
10906 * linux-aarch64-low.c (aarch64_insert_point): Call
10907 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10910 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10912 * linux-low.c (check_stopped_by_breakpoint): Use
10913 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10915 2015-08-27 Pedro Alves <palves@redhat.com>
10917 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10919 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10921 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10922 the XNEW-family equivalent.
10923 (compile_bytecodes): Likewise.
10924 * dll.c (loaded_dll): Likewise.
10925 * event-loop.c (append_callback_event): Likewise.
10926 (create_file_handler): Likewise.
10927 (create_file_event): Likewise.
10928 * hostio.c (handle_open): Likewise.
10929 * inferiors.c (add_thread): Likewise.
10930 (add_process): Likewise.
10931 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10932 * linux-arm-low.c (arm_new_process): Likewise.
10933 (arm_new_thread): Likewise.
10934 * linux-low.c (add_to_pid_list): Likewise.
10935 (linux_add_process): Likewise.
10936 (handle_extended_wait): Likewise.
10937 (add_lwp): Likewise.
10938 (enqueue_one_deferred_signal): Likewise.
10939 (enqueue_pending_signal): Likewise.
10940 (linux_resume_one_lwp_throw): Likewise.
10941 (linux_resume_one_thread): Likewise.
10942 (linux_read_memory): Likewise.
10943 (linux_write_memory): Likewise.
10944 * linux-mips-low.c (mips_linux_new_process): Likewise.
10945 (mips_linux_new_thread): Likewise.
10946 (mips_add_watchpoint): Likewise.
10947 * linux-x86-low.c (initialize_low_arch): Likewise.
10948 * lynx-low.c (lynx_add_process): Likewise.
10949 * mem-break.c (set_raw_breakpoint_at): Likewise.
10950 (set_breakpoint): Likewise.
10951 (add_condition_to_breakpoint): Likewise.
10952 (add_commands_to_breakpoint): Likewise.
10953 (clone_agent_expr): Likewise.
10954 (clone_one_breakpoint): Likewise.
10955 * regcache.c (new_register_cache): Likewise.
10956 * remote-utils.c (look_up_one_symbol): Likewise.
10957 * server.c (queue_stop_reply): Likewise.
10958 (start_inferior): Likewise.
10959 (queue_stop_reply_callback): Likewise.
10960 (handle_target_event): Likewise.
10961 * spu-low.c (fetch_ppc_memory): Likewise.
10962 (store_ppc_memory): Likewise.
10963 * target.c (set_target_ops): Likewise.
10964 * thread-db.c (thread_db_load_search): Likewise.
10965 (try_thread_db_load_1): Likewise.
10966 * tracepoint.c (add_tracepoint): Likewise.
10967 (add_tracepoint_action): Likewise.
10968 (create_trace_state_variable): Likewise.
10969 (cmd_qtdpsrc): Likewise.
10970 (cmd_qtro): Likewise.
10971 (add_while_stepping_state): Likewise.
10972 * win32-low.c (child_add_thread): Likewise.
10973 (get_image_name): Likewise.
10975 2015-08-25 Yao Qi <yao.qi@linaro.org>
10977 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10979 2015-08-25 Yao Qi <yao.qi@linaro.org>
10981 * Makefile.in (aarch64-linux.o): New rule.
10982 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10984 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10985 (aarch64_init_debug_reg_state): Make it extern.
10986 (aarch64_linux_prepare_to_resume): Remove.
10988 2015-08-25 Yao Qi <yao.qi@linaro.org>
10990 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10991 lwp_arch_private_info and ptid_of_lwp.
10993 2015-08-25 Yao Qi <yao.qi@linaro.org>
10995 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10996 Find proc_info by find_process_pid. All callers updated.
10998 2015-08-25 Yao Qi <yao.qi@linaro.org>
11000 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
11002 (debug_reg_change_callback): Remove.
11003 (aarch64_notify_debug_reg_change): Remove.
11005 2015-08-25 Yao Qi <yao.qi@linaro.org>
11007 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
11008 Call current_lwp_ptid.
11010 2015-08-25 Yao Qi <yao.qi@linaro.org>
11012 * linux-aarch64-low.c (debug_reg_change_callback): Use
11015 2015-08-25 Yao Qi <yao.qi@linaro.org>
11017 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
11019 2015-08-25 Yao Qi <yao.qi@linaro.org>
11021 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
11023 2015-08-25 Yao Qi <yao.qi@linaro.org>
11025 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
11028 2015-08-25 Yao Qi <yao.qi@linaro.org>
11030 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
11032 (debug_reg_change_callback): Remove argument entry and add argument
11033 lwp. Remove local variable thread. Don't print thread id in the
11034 debugging output. Don't check whether pid of thread equals to pid.
11035 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
11036 iterate_over_lwps instead find_inferior.
11038 2015-08-24 Pedro Alves <palves@redhat.com>
11040 * inferiors.c (get_first_process): New function.
11041 * inferiors.h (get_first_process): New declaration.
11042 * remote-utils.c (read_ptid): Default to the first process in the
11043 list, instead of to the current thread's process.
11045 2015-08-24 Pedro Alves <palves@redhat.com>
11047 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11048 * event-loop.c: Likewise.
11049 * remote-utils.c: Likewise.
11050 * tracepoint.c: Likewise.
11052 2015-08-24 Pedro Alves <palves@redhat.com>
11054 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11057 2015-08-21 Pedro Alves <palves@redhat.com>
11059 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11060 instead of literal 1.
11062 2015-08-21 Pedro Alves <palves@redhat.com>
11064 * tdesc.c (default_description): Explicitly zero-initialize.
11066 2015-08-21 Pedro Alves <palves@redhat.com>
11069 * inferiors.c (remove_thread): Discard any pending stop reply for
11071 * server.c (remove_all_on_match_pid): Rename to ...
11072 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11074 (discard_queued_stop_replies): Change parameter to a ptid. Now
11076 (handle_v_kill, kill_inferior_callback, captured_main)
11077 (process_serial_event): Adjust.
11078 * server.h (discard_queued_stop_replies): Declare.
11080 2015-08-21 Pedro Alves <palves@redhat.com>
11082 * linux-low.c (wait_for_sigstop): Always switch to no thread
11083 selected if the previously current thread dies.
11084 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11085 process instead of the current thread's.
11086 * remote-utils.c (input_interrupt): Don't check if there's no
11088 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11089 current thread to the general thread fails, error out.
11090 (handle_qxfer_auxv, handle_qxfer_libraries)
11091 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11092 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11093 (handle_query): Check if there's a thread selected instead of
11094 checking whether there's any thread in the thread list.
11095 (handle_qxfer_threads, handle_qxfer_btrace)
11096 (handle_qxfer_btrace_conf): Don't error out early if there's no
11097 thread in the thread list.
11098 (handle_v_cont, myresume): Don't set the current thread to the
11100 (process_serial_event) <Hg handling>: Also set thread_id if the
11101 previous general thread is still alive.
11102 (process_serial_event) <g/G handling>: If setting the current
11103 thread to the general thread fails, error out.
11104 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11105 thread's lwp instead of the current thread's.
11106 * target.c (set_desired_thread): If the desired thread was not
11107 found, leave the current thread pointing to NULL. Return an int
11108 (boolean) indicating success.
11109 * target.h (set_desired_thread): Change return type to int.
11111 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11113 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11114 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11116 (ps_get_thread_area): New function.
11118 2015-08-19 Gary Benson <gbenson@redhat.com>
11120 * hostio.c (handle_pread): Do not attempt to read more data
11121 than hostio_reply_with_data can fit in a packet.
11123 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11125 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11127 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11129 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11131 2015-08-06 Pedro Alves <palves@redhat.com>
11133 * tracepoint.c (expr_eval_result): Now an int.
11135 2015-08-06 Pedro Alves <palves@redhat.com>
11137 * gdbthread.h (struct regcache): Forward declare.
11138 (struct thread_info) <regcache_data>: Now a struct regcache
11140 * inferiors.c (inferior_regcache_data)
11141 (set_inferior_regcache_data): Now work with struct regcache
11143 * inferiors.h (struct regcache): Forward declare.
11144 (inferior_regcache_data, set_inferior_regcache_data): Now work
11145 with struct regcache pointers.
11146 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11147 (free_register_cache_thread): Remove struct regcache pointer
11150 2015-08-06 Pedro Alves <palves@redhat.com>
11152 * server.c (captured_main): On error, print the exception message
11153 to stderr, and if run_once is set, throw a quit.
11155 2015-08-06 Pedro Alves <palves@redhat.com>
11157 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11158 the current thread.
11160 2015-08-06 Pedro Alves <palves@redhat.com>
11162 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11163 reading beyond the passed in buffer length.
11165 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11167 * tracepoint.c (symbol_list) <required>: Remove.
11169 2015-08-06 Pedro Alves <palves@redhat.com>
11171 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11172 count if stopping and suspending threads.
11173 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11174 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11175 (linux_detach): Complete an ongoing step-over.
11176 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11178 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11179 (linux_wait_1): If passing a signal to the inferior after
11180 finishing a step-over, unsuspend and re-resume all lwps. If we
11181 see a single-step event but the thread should be continuing, don't
11182 pass the trap to gdb.
11183 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11184 internal_error instead of gdb_assert.
11185 (enqueue_pending_signal): New function.
11186 (check_ptrace_stopped_lwp_gone): Add debug output.
11187 (start_step_over): Use internal_error instead of gdb_assert.
11188 (complete_ongoing_step_over): New function.
11189 (linux_resume_one_thread): Don't resume a suspended thread.
11190 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11193 2015-08-06 Pedro Alves <palves@redhat.com>
11195 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11196 (linux_thread_alive): Use lwp_is_marked_dead.
11197 (extended_event_reported): Delete.
11198 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11199 instead of extended_event_reported.
11200 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11202 (lwp_is_marked_dead): New function.
11203 (lwp_running): Use lwp_is_marked_dead.
11204 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11207 2015-08-06 Pedro Alves <palves@redhat.com>
11209 * linux-low.c (linux_wait_1): Move fork event output out of the
11210 !report_to_gdb check. Pass event_child->waitstatus to
11211 target_waitstatus_to_string instead of ourstatus.
11213 2015-08-04 Yao Qi <yao.qi@linaro.org>
11215 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11216 if current_thread is 32 bit.
11218 2015-08-04 Yao Qi <yao.qi@linaro.org>
11220 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11221 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11222 * server.c (extended_protocol): Remove "static".
11223 * server.h (extended_protocol): Declare it.
11225 2015-08-04 Yao Qi <yao.qi@linaro.org>
11227 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11228 both aarch64 and aarch32.
11229 (aarch64_set_pc): Likewise.
11231 2015-08-04 Yao Qi <yao.qi@linaro.org>
11233 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11234 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11235 arm-with-neon.xml to srv_xmlfiles.
11236 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11237 (is_64bit_tdesc): New function.
11238 (aarch64_linux_read_description): New function.
11239 (aarch64_arch_setup): Call aarch64_linux_read_description.
11240 (regs_info): Rename to regs_info_aarch64.
11241 (aarch64_regs_info): Return right regs_info.
11242 (initialize_low_arch): Call initialize_low_arch_aarch32.
11244 2015-08-04 Yao Qi <yao.qi@linaro.org>
11246 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11247 * linux-aarch32-low.c: New file.
11248 * linux-aarch32-low.h: New file.
11249 * linux-arm-low.c (arm_fill_gregset): Move it to
11250 linux-aarch32-low.c.
11251 (arm_store_gregset): Likewise.
11252 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11253 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11254 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11255 (regs_info): Rename to regs_info_arm.
11256 (arm_regs_info): Return regs_info_aarch32 if
11257 have_ptrace_getregset is 1 and target description is
11258 arm_with_neon or arm_with_vfpv3.
11259 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11260 Call initialize_low_arch_aarch32 instead.
11262 2015-08-04 Yao Qi <yao.qi@linaro.org>
11264 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11265 * linux-low.c: ... here.
11266 * linux-low.h (have_ptrace_getregset): Declare it.
11268 2015-08-04 Pedro Alves <palves@redhat.com>
11270 * thread-db.c (struct thread_db): Use new typedefs.
11271 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11273 (disable_thread_event_reporting): Cast result of dlsym to
11274 destination function pointer type.
11275 (thread_db_mourn): Use td_ta_delete_ftype.
11277 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11279 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11281 (CDX_BREAKPOINT): Define for R2.
11282 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11283 (the_low_target): Add comments.
11285 2015-07-30 Yao Qi <yao.qi@linaro.org>
11287 * linux-arm-low.c (arm_hwcap): Remove it.
11288 (arm_read_description): New local variable arm_hwcap. Don't
11289 set arm_hwcap to zero.
11291 2015-07-30 Yao Qi <yao.qi@linaro.org>
11293 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11294 Use regcache->tdesc instead.
11295 (arm_store_wmmxregset): Likewise.
11296 (arm_fill_vfpregset): Likewise.
11297 (arm_store_vfpregset): Likewise.
11299 2015-07-30 Yao Qi <yao.qi@linaro.org>
11301 * linux-arm-low.c: Include arch/arm.h.
11302 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11303 (arm_store_gregset): Likewise.
11305 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11307 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11308 ptrace's 4th parameter.
11310 2015-07-27 Yao Qi <yao.qi@linaro.org>
11312 * configure.srv (case aarch64*-*-linux*): Don't set
11315 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11317 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11319 * linux-arm-low.c: Likewise.
11320 * linux-cris-low.c: Likewise.
11321 * linux-crisv32-low.c: Likewise.
11322 * linux-low.c: Likewise.
11323 * linux-m68k-low.c: Likewise.
11324 * linux-mips-low.c: Likewise.
11325 * linux-nios2-low.c: Likewise.
11326 * linux-s390-low.c: Likewise.
11327 * linux-sparc-low.c: Likewise.
11328 * linux-tic6x-low.c: Likewise.
11329 * linux-tile-low.c: Likewise.
11330 * linux-x86-low.c: Likewise.
11332 2015-07-24 Pedro Alves <palves@redhat.com>
11334 * config.in: Regenerate.
11335 * configure: Regenerate.
11337 2015-07-24 Pedro Alves <palves@redhat.com>
11339 * acinclude.m4: Include ../ptrace.m4.
11340 * configure.ac: Call GDB_AC_PTRACE.
11341 * config.in, configure: Regenerate.
11343 2015-07-24 Yao Qi <yao.qi@linaro.org>
11345 * linux-low.c (linux_create_inferior): Remove setting to
11346 proc->priv->new_inferior.
11347 (linux_attach): Likewise.
11348 (linux_low_filter_event): Likewise.
11349 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11351 2015-07-24 Yao Qi <yao.qi@linaro.org>
11353 * linux-low.c (linux_arch_setup): New function.
11354 (linux_low_filter_event): If proc->tdesc is NULL and
11355 proc->attached is true, call the_low_target.arch_setup.
11356 Otherwise, keep status pending, and return.
11357 (linux_resume_one_lwp_throw): Don't call get_pc if
11358 thread->while_stepping isn't NULL. Don't call
11359 get_thread_regcache if proc->tdesc is NULL.
11360 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11361 (linux_target_ops): Install arch_setup.
11362 * server.c (start_inferior): Call the_target->arch_setup.
11363 * target.h (struct target_ops) <arch_setup>: New field.
11364 (target_arch_setup): New marco.
11365 * lynx-low.c (lynx_target_ops): Update.
11366 * nto-low.c (nto_target_ops): Update.
11367 * spu-low.c (spu_target_ops): Update.
11368 * win32-low.c (win32_target_ops): Update.
11370 2015-07-24 Yao Qi <yao.qi@linaro.org>
11372 * linux-low.c (linux_add_process): Don't set
11373 proc->priv->new_inferior.
11374 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11375 (linux_attach): Likewise.
11377 2015-07-24 Yao Qi <yao.qi@linaro.org>
11379 * server.c (start_inferior): Code refactor.
11381 2015-07-24 Yao Qi <yao.qi@linaro.org>
11383 * server.c (process_serial_event): Set general_thread.
11385 2015-07-21 Yao Qi <yao.qi@linaro.org>
11387 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11388 aarch64_linux_get_debug_reg_capacity.
11390 2015-07-17 Yao Qi <yao.qi@linaro.org>
11392 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11393 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11394 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11395 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11396 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11397 (AARCH64_HWP_ALIGNMENT): Likewise.
11398 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11399 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11400 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11401 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11402 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11403 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11404 (struct aarch64_debug_reg_state): Likewise.
11405 (struct arch_lwp_info): Likewise.
11406 (aarch64_align_watchpoint): Likewise.
11407 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11408 (aarch64_watchpoint_length): Likewise.
11409 (aarch64_point_encode_ctrl_reg): Likewise
11410 (aarch64_point_is_aligned): Likewise.
11411 (aarch64_align_watchpoint): Likewise.
11412 (aarch64_linux_set_debug_regs):
11413 (aarch64_dr_state_insert_one_point): Likewise.
11414 (aarch64_dr_state_remove_one_point): Likewise.
11415 (aarch64_handle_breakpoint): Likewise.
11416 (aarch64_handle_aligned_watchpoint): Likewise.
11417 (aarch64_handle_unaligned_watchpoint): Likewise.
11418 (aarch64_handle_watchpoint): Likewise.
11420 2015-07-17 Yao Qi <yao.qi@linaro.org>
11422 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11423 and don't aarch64_get_debug_reg_state. All callers update.
11424 (aarch64_handle_aligned_watchpoint): Likewise.
11425 (aarch64_handle_unaligned_watchpoint): Likewise.
11426 (aarch64_handle_watchpoint): Likewise.
11427 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11428 (aarch64_remove_point): Likewise.
11430 2015-07-17 Yao Qi <yao.qi@linaro.org>
11432 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11434 (aarch64_handle_unaligned_watchpoint): Likewise.
11436 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11438 Revert the previous 3 commits:
11439 Move gdb_regex* to common/
11440 Move linux_find_memory_regions_full & co.
11441 gdbserver build-id attribute generator
11443 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11444 Jan Kratochvil <jan.kratochvil@redhat.com>
11446 gdbserver build-id attribute generator.
11447 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11448 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11449 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11451 (get_dynamic): Use find_pdhr to traverse program headers.
11452 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11453 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11454 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11455 (get_hex_build_id): New.
11456 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11457 to reply XML document.
11459 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11460 Jan Kratochvil <jan.kratochvil@redhat.com>
11462 * target.c: Include target/target-utils.h and fcntl.h.
11463 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11464 (target_fileio_read_stralloc): New functions.
11466 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11468 * Makefile.in (OBS): Add gdb_regex.o.
11469 (gdb_regex.o): New.
11470 * config.in: Rebuilt.
11471 * configure: Rebuilt.
11473 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11474 Jan Kratochvil <jan.kratochvil@redhat.com>
11476 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11477 * Makefile.in (OBS): Add target-utils.o.
11478 (linux-maps.o, target-utils.o): New.
11479 * configure.srv (srv_linux_obj): Add linux-maps.o.
11481 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11483 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11484 function, return 1.
11485 (the_low_target): Install it.
11487 2015-07-14 Pedro Alves <palves@redhat.com>
11489 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11490 Instead, ignore ECHILD, and throw an error for other errnos.
11492 2015-07-10 Pedro Alves <palves@redhat.com>
11494 * event-loop.c (struct callback_event) <data>: Change type to
11495 gdb_client_data instance instead of gdb_client_data pointer.
11496 (append_callback_event): Adjust.
11498 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11500 * linux-aarch64-low.c: Add comments for each linux_target_ops
11501 method. Remove comments already covered in target_ops and
11502 linux_target_ops definitions.
11503 (the_low_target): Add comments for each unimplemented method.
11505 2015-07-09 Yao Qi <yao.qi@linaro.org>
11507 * linux-aarch64-low.c (aarch64_regmap): Remove.
11508 (aarch64_usrregs_info): Remove.
11509 (regs_info): Set field usrregs to NULL.
11511 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11513 * linux-low.c: Include "rsp-low.h"
11514 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11515 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11516 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11517 (handle_btrace_enable_pt): New.
11518 (handle_btrace_general_set): Support "pt".
11519 (handle_btrace_conf_general_set): Support "pt:size".
11521 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11523 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11526 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11528 * linux-aarch64-low.c: Remove comment about endianness.
11529 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11530 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11533 2015-06-24 Gary Benson <gbenson@redhat.com>
11535 * linux-i386-ipa.c (stdint.h): Do not include.
11536 * lynx-i386-low.c (stdint.h): Likewise.
11537 * lynx-ppc-low.c (stdint.h): Likewise.
11538 * mem-break.c (stdint.h): Likewise.
11539 * thread-db.c (stdint.h): Likewise.
11540 * tracepoint.c (stdint.h): Likewise.
11541 * win32-low.c (stdint.h): Likewise.
11543 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11545 * server.c (write_qxfer_response): Update call to
11546 remote_escape_output.
11548 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11549 Jan Kratochvil <jan.kratochvil@redhat.com>
11551 Merge multiple hex conversions.
11552 * gdbreplay.c (tohex): Rename to 'fromhex'.
11553 (logchar): Use fromhex.
11555 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11557 * server.c (handle_qxfer_libraries): Set `version' attribute for
11560 2015-06-10 Gary Benson <gbenson@redhat.com>
11562 * target.h (struct target_ops) <multifs_open>: New field.
11563 <multifs_unlink>: Likewise.
11564 <multifs_readlink>: Likewise.
11565 * linux-low.c (nat/linux-namespaces.h): New include.
11566 (linux_target_ops): Initialize the_target->multifs_open,
11567 the_target->multifs_unlink and the_target->multifs_readlink.
11568 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11569 * hostio.c (hostio_fs_pid): New static variable.
11570 (hostio_handle_new_gdb_connection): New function.
11571 (handle_setfs): Likewise.
11572 (handle_open): Use the_target->multifs_open as appropriate.
11573 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11574 (handle_readlink): Use the_target->multifs_readlink as
11576 (handle_vFile): Handle vFile:setfs packets.
11577 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11578 after target_handle_new_gdb_connection.
11580 2015-06-10 Gary Benson <gbenson@redhat.com>
11582 * configure.ac (AC_CHECK_FUNCS): Add setns.
11583 * config.in: Regenerate.
11584 * configure: Likewise.
11585 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11586 (linux-namespaces.o): New rule.
11587 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11589 2015-06-09 Gary Benson <gbenson@redhat.com>
11591 * hostio.c (handle_open): Process mode argument with
11592 fileio_to_host_mode.
11594 2015-06-01 Yao Qi <yao.qi@linaro.org>
11596 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11597 * linux-x86-low.c: Likewise.
11599 2015-05-28 Don Breazeal <donb@codesourcery.com>
11601 * linux-low.c (handle_extended_wait): Initialize
11602 thread_info.last_resume_kind for new fork children.
11604 2015-05-15 Pedro Alves <palves@redhat.com>
11606 * target.h (target_handle_new_gdb_connection): Rewrite using if
11607 wrapped in do/while.
11609 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11611 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11612 * configure, config.in: Regenerate.
11613 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11616 2015-05-12 Don Breazeal <donb@codesourcery.com>
11618 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11619 PTRACE_EVENT_VFORK_DONE.
11620 (linux_low_ptrace_options, extended_event_reported): Add vfork
11622 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11623 and "vforkdone" for RSP 'T' Stop Reply Packet.
11624 * server.h (report_vfork_events): Declare
11627 2015-05-12 Don Breazeal <donb@codesourcery.com>
11629 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11630 (the_low_target) <new_fork>: Initialize new member.
11631 * linux-arm-low.c (arm_new_fork): New function.
11632 (the_low_target) <new_fork>: Initialize new member.
11633 * linux-low.c (handle_extended_wait): Call new target function
11635 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11636 * linux-mips-low.c (mips_add_watchpoint): New function
11637 extracted from mips_insert_point.
11638 (the_low_target) <new_fork>: Initialize new member.
11639 (mips_linux_new_fork): New function.
11640 (mips_insert_point): Call mips_add_watchpoint.
11641 * linux-x86-low.c (x86_linux_new_fork): New function.
11642 (the_low_target) <new_fork>: Initialize new member.
11644 2015-05-12 Don Breazeal <donb@codesourcery.com>
11646 * linux-low.c (handle_extended_wait): Implement return value,
11647 rename argument 'event_child' to 'event_lwp', handle
11648 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11649 (linux_low_ptrace_options): New function.
11650 (linux_low_filter_event): Call linux_low_ptrace_options,
11651 use different argument fo linux_enable_event_reporting,
11652 use return value from handle_extended_wait.
11653 (extended_event_reported): New function.
11654 (linux_wait_1): Call extended_event_reported and set
11655 status to report fork events.
11656 (linux_write_memory): Add pid to debug message.
11657 (reset_lwp_ptrace_options_callback): New function.
11658 (linux_handle_new_gdb_connection): New function.
11659 (linux_target_ops): Initialize new structure member.
11660 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11661 * lynx-low.c: Initialize new structure member.
11662 * remote-utils.c (prepare_resume_reply): Implement stop reason
11663 "fork" for "T" stop message.
11664 * server.c (handle_query): Call handle_new_gdb_connection.
11665 * server.h (report_fork_events): Declare global flag.
11666 * target.h (struct target_ops) <handle_new_gdb_connection>:
11668 (target_handle_new_gdb_connection): New macro.
11669 * win32-low.c: Initialize new structure member.
11671 2015-05-12 Don Breazeal <donb@codesourcery.com>
11673 * mem-break.c (APPEND_TO_LIST): Define macro.
11674 (clone_agent_expr): New function.
11675 (clone_one_breakpoint): New function.
11676 (clone_all_breakpoints): New function.
11677 * mem-break.h: Declare new functions.
11679 2015-05-12 Don Breazeal <donb@codesourcery.com>
11681 * linux-low.c (linux_supports_fork_events): New function.
11682 (linux_supports_vfork_events): New function.
11683 (linux_target_ops): Initialize new structure members.
11684 (initialize_low): Call linux_check_ptrace_features.
11685 * lynx-low.c (lynx_target_ops): Initialize new structure
11687 * server.c (report_fork_events, report_vfork_events):
11689 (handle_query): Add new features to qSupported packet and
11691 (captured_main): Initialize new global variables.
11692 * target.h (struct target_ops) <supports_fork_events>:
11694 <supports_vfork_events>: New member.
11695 (target_supports_fork_events): New macro.
11696 (target_supports_vfork_events): New macro.
11697 * win32-low.c (win32_target_ops): Initialize new structure
11700 2015-05-12 Gary Benson <gbenson@redhat.com>
11702 * server.c (handle_qxfer_exec_file): Use current process
11705 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11707 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11708 Remove HAVE_PTRACE_GETREGS conditionals.
11709 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11710 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11712 2015-05-08 Yao Qi <yao.qi@linaro.org>
11714 * linux-low.c (linux_supports_conditional_breakpoints): New
11716 (linux_target_ops): Install new target method.
11717 * lynx-low.c (lynx_target_ops): Install NULL hook for
11718 supports_conditional_breakpoints.
11719 * nto-low.c (nto_target_ops): Likewise.
11720 * spu-low.c (spu_target_ops): Likewise.
11721 * win32-low.c (win32_target_ops): Likewise.
11722 * server.c (handle_query): Check
11723 target_supports_conditional_breakpoints.
11724 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11726 (target_supports_conditional_breakpoints): New macro.
11728 2015-05-06 Pedro Alves <palves@redhat.com>
11731 * server.c (start_inferior): If the process exits, mourn it.
11733 2015-04-21 Gary Benson <gbenson@redhat.com>
11735 * hostio.c (fileio_open_flags_to_host): Factored out to
11736 fileio_to_host_openflags in common/fileio.c. Single use
11739 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11741 * linux-xtensa-low.c (xtensa_fill_gregset)
11742 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11745 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11747 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11748 (regs_info): Replace usrregs pointer with NULL.
11750 2015-04-17 Gary Benson <gbenson@redhat.com>
11752 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11753 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11754 * server.c (handle_qxfer_exec_file): New function.
11755 (qxfer_packets): Add exec-file entry.
11756 (handle_query): Report qXfer:exec-file:read as supported packet.
11758 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11760 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11762 2015-04-09 Gary Benson <gbenson@redhat.com>
11764 * hostio-errno.c (errno_to_fileio_error): Remove function.
11765 Update caller to use remote_fileio_to_fio_error.
11767 2015-04-09 Yao Qi <yao.qi@linaro.org>
11769 * linux-low.c (linux_insert_point): Call
11770 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11771 (linux_remove_point): Call remove_memory_breakpoint if type is
11773 * linux-x86-low.c (x86_insert_point): Don't call
11774 insert_memory_breakpoint.
11775 (x86_remove_point): Don't call remove_memory_breakpoint.
11777 2015-04-01 Pedro Alves <palves@redhat.com>
11778 Cleber Rosa <crosa@redhat.com>
11780 * server.c (gdbserver_usage): Reorganize and extend the usage
11783 2015-03-24 Pedro Alves <palves@redhat.com>
11785 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11786 output. Also dump TRAP_TRACE.
11787 (linux_low_filter_event): In debug output, distinguish a
11788 resume_stop SIGSTOP from a delayed SIGSTOP.
11790 2015-03-24 Gary Benson <gbenson@redhat.com>
11792 * linux-x86-low.c (x86_linux_new_thread): Moved to
11794 (x86_linux_prepare_to_resume): Likewise.
11796 2015-03-24 Gary Benson <gbenson@redhat.com>
11798 * Makefile.in (x86-linux-dregs.o): New rule.
11799 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11800 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11801 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11802 (x86_linux_dr_get): Likewise.
11803 (x86_linux_dr_set): Likewise.
11804 (update_debug_registers_callback): Likewise.
11805 (x86_linux_dr_set_addr): Likewise.
11806 (x86_linux_dr_get_addr): Likewise.
11807 (x86_linux_dr_set_control): Likewise.
11808 (x86_linux_dr_get_control): Likewise.
11809 (x86_linux_dr_get_status): Likewise.
11810 (x86_linux_update_debug_registers): Likewise.
11812 2015-03-24 Gary Benson <gbenson@redhat.com>
11814 * linux-x86-low.c (x86_linux_update_debug_registers):
11815 New function, factored out from...
11816 (x86_linux_prepare_to_resume): ...this.
11818 2015-03-24 Gary Benson <gbenson@redhat.com>
11820 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11821 (x86_linux_dr_set): Likewise.
11822 (update_debug_registers_callback): Likewise.
11823 (x86_linux_dr_set_addr): Likewise.
11824 (x86_linux_dr_get_addr): Likewise.
11825 (x86_linux_dr_set_control): Likewise.
11826 (x86_linux_dr_get_control): Likewise.
11827 (x86_linux_dr_get_status): Likewise.
11828 (x86_linux_prepare_to_resume): Likewise.
11830 2015-03-24 Gary Benson <gbenson@redhat.com>
11832 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11833 Use perror_with_name. Pass string through gettext.
11834 (x86_linux_dr_set): Likewise.
11836 2015-03-24 Gary Benson <gbenson@redhat.com>
11838 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11839 (x86_linux_dr_set_addr): ...this.
11840 (x86_dr_low_get_addr): Rename to...
11841 (x86_linux_dr_get_addr): ...this.
11842 (x86_dr_low_set_control): Rename to...
11843 (x86_linux_dr_set_control): ...this.
11844 (x86_dr_low_get_control): Rename to...
11845 (x86_linux_dr_get_control): ...this.
11846 (x86_dr_low_get_status): Rename to...
11847 (x86_linux_dr_get_status): ...this.
11848 (x86_dr_low): Update with new function names.
11850 2015-03-24 Gary Benson <gbenson@redhat.com>
11852 * Makefile.in (x86-linux.o): New rule.
11853 * configure.srv: Add x86-linux.o to relevant targets.
11854 * linux-low.c (lwp_set_arch_private_info): New function.
11855 (lwp_arch_private_info): Likewise.
11856 * linux-x86-low.c: Include nat/x86-linux.h.
11857 (arch_lwp_info): Removed structure.
11858 (update_debug_registers_callback):
11859 Use lwp_set_debug_registers_changed.
11860 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11861 and lwp_set_debug_registers_changed.
11862 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11864 2015-03-24 Gary Benson <gbenson@redhat.com>
11866 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11867 * linux-arm-low.c (arm_new_thread): Likewise.
11868 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11869 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11870 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11871 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11873 2015-03-24 Gary Benson <gbenson@redhat.com>
11875 * linux-low.c (ptid_of_lwp): New function.
11876 (lwp_is_stopped): Likewise.
11877 (lwp_stop_reason): Likewise.
11878 * linux-x86-low.c (update_debug_registers_callback):
11879 Use lwp_is_stopped.
11880 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11883 2015-03-24 Gary Benson <gbenson@redhat.com>
11885 * linux-low.h (linux_stop_lwp): Remove declaration.
11887 2015-03-24 Gary Benson <gbenson@redhat.com>
11889 * linux-low.h: Include nat/linux-nat.h.
11890 * linux-low.c (iterate_over_lwps_args): New structure.
11891 (iterate_over_lwps_filter): New function.
11892 (iterate_over_lwps): Likewise.
11893 * linux-x86-low.c (update_debug_registers_callback):
11894 Update signature to what iterate_over_lwps expects.
11895 Remove PID check that iterate_over_lwps now performs.
11896 (x86_dr_low_set_addr): Use iterate_over_lwps.
11897 (x86_dr_low_set_control): Likewise.
11899 2015-03-24 Gary Benson <gbenson@redhat.com>
11901 * linux-x86-low.c (x86_debug_reg_state): New function.
11902 (x86_linux_prepare_to_resume): Use the above.
11904 2015-03-24 Gary Benson <gbenson@redhat.com>
11906 * linux-low.c (current_lwp_ptid): New function.
11907 * linux-x86-low.c: Include nat/linux-nat.h.
11908 (x86_dr_low_get_addr): Use current_lwp_ptid.
11909 (x86_dr_low_get_control): Likewise.
11910 (x86_dr_low_get_status): Likewise.
11912 2015-03-20 Pedro Alves <palves@redhat.com>
11914 * tracepoint.c (cmd_qtstatus): Make "str" const.
11916 2015-03-20 Pedro Alves <palves@redhat.com>
11918 * server.c (handle_general_set): Make "req_str" const.
11920 2015-03-19 Pedro Alves <palves@redhat.com>
11922 * linux-low.c (linux_resume_one_lwp): Rename to ...
11923 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11924 instead call perror_with_name.
11925 (check_ptrace_stopped_lwp_gone): New function.
11926 (linux_resume_one_lwp): Reimplement as wrapper around
11927 linux_resume_one_lwp_throw that swallows errors if the LWP is
11930 2015-03-19 Pedro Alves <palves@redhat.com>
11932 * linux-low.c (count_events_callback, select_event_lwp_callback):
11933 No longer check whether the thread has resume_stop as last resume
11936 2015-03-19 Pedro Alves <palves@redhat.com>
11938 * linux-low.c (count_events_callback, select_event_lwp_callback):
11939 Use the lwp's status_pending_p field, not the thread's.
11941 2015-03-19 Pedro Alves <palves@redhat.com>
11943 * linux-low.c (select_event_lwp_callback): Update comments to
11944 no longer mention SIGTRAP.
11946 2015-03-18 Gary Benson <gbenson@redhat.com>
11948 * server.c (handle_query): Do not report vFile:fstat as supported.
11950 2015-03-11 Gary Benson <gbenson@redhat.com>
11952 * hostio.c (sys/types.h): New include.
11953 (sys/stat.h): Likewise.
11954 (common-remote-fileio.h): Likewise.
11955 (handle_fstat): New function.
11956 (handle_vFile): Handle vFile:fstat packets.
11958 2015-03-11 Gary Benson <gbenson@redhat.com>
11960 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11961 struct stat.st_blocks and struct stat.st_blksize.
11962 * configure: Regenerate.
11963 * config.in: Likewise.
11964 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11965 (OBS): Add common-remote-fileio.o.
11966 (common-remote-fileio.o): New rule.
11968 2015-03-09 Pedro Alves <palves@redhat.com>
11970 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11971 'struct sockaddr' pointer in 'accept' call.
11973 2015-03-09 Pedro Alves <palves@redhat.com>
11976 2015-03-07 Pedro Alves <palves@redhat.com>
11977 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11978 or <winsock2.h> here. Instead include "gdb_socket.h".
11979 (remote_open): Use union gdb_sockaddr_u.
11980 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11981 or <winsock2.h> here. Instead include "gdb_socket.h".
11982 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11983 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11985 (init_named_socket, gdb_agent_helper_thread): Use union
11988 2015-03-07 Pedro Alves <palves@redhat.com>
11990 * configure.ac (build_warnings): Move
11991 -Wdeclaration-after-statement to the C-specific set.
11992 * configure: Regenerate.
11994 2015-03-07 Pedro Alves <palves@redhat.com>
11996 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11997 or <winsock2.h> here. Instead include "gdb_socket.h".
11998 (remote_open): Use union gdb_sockaddr_u.
11999 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
12000 or <winsock2.h> here. Instead include "gdb_socket.h".
12001 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
12002 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
12004 (init_named_socket, gdb_agent_helper_thread): Use union
12007 2015-03-07 Pedro Alves <palves@redhat.com>
12009 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
12012 2015-03-06 Yao Qi <yao.qi@linaro.org>
12014 * linux-aarch64-low.c (aarch64_insert_point): Use
12015 show_debug_regs as a boolean.
12016 (aarch64_remove_point): Likewise.
12018 2015-03-05 Pedro Alves <palves@redhat.com>
12020 * lynx-low.c (lynx_target_ops): Install NULL hooks for
12021 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
12022 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
12023 * nto-low.c (nto_target_ops): Likewise.
12024 * spu-low.c (spu_target_ops): Likewise.
12025 * win32-low.c (win32_target_ops): Likewise.
12027 2015-03-04 Pedro Alves <palves@redhat.com>
12029 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
12030 Decide whether a breakpoint triggered based on the SIGTRAP's
12032 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
12033 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
12034 (linux_low_filter_event): Check for breakpoints before checking
12036 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
12038 (linux_stopped_by_sw_breakpoint)
12039 (linux_supports_stopped_by_sw_breakpoint)
12040 (linux_stopped_by_hw_breakpoint)
12041 (linux_supports_stopped_by_hw_breakpoint): New functions.
12042 (linux_target_ops): Install new target methods.
12044 2015-03-04 Pedro Alves <palves@redhat.com>
12046 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
12047 * server.c (swbreak_feature, hwbreak_feature): New globals.
12048 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12049 (captured_main): Clear swbreak_feature and hwbreak_feature.
12050 * server.h (swbreak_feature, hwbreak_feature): Declare.
12051 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12052 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12053 supports_stopped_by_hw_breakpoint>: New fields.
12054 (target_supports_stopped_by_sw_breakpoint)
12055 (target_stopped_by_sw_breakpoint)
12056 (target_supports_stopped_by_hw_breakpoint)
12057 (target_stopped_by_hw_breakpoint): Declare.
12059 2015-03-04 Pedro Alves <palves@redhat.com>
12061 enum lwp_stop_reason -> enum target_stop_reason
12062 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12063 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12064 (linux_wait_1, stuck_in_jump_pad_callback)
12065 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12066 (linux_stopped_by_watchpoint):
12067 * linux-low.h (enum lwp_stop_reason): Delete.
12068 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12069 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12071 2015-03-04 Yao Qi <yao.qi@linaro.org>
12073 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12075 2015-03-03 Gary Benson <gbenson@redhat.com>
12077 * hostio.c (handle_vFile): Fix prefix lengths.
12079 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12081 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12084 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12086 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12087 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12088 (clean): Add "rm -f" for above C files.
12089 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12090 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12091 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12092 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12093 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12094 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12095 (init_registers_s390x_vx_linux64)
12096 (init_registers_s390x_tevx_linux64)
12097 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12098 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12100 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12101 (s390_store_vxrs_high): New functions.
12102 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12104 (s390_arch_setup): Add logic for selecting one of the new target
12105 descriptions. Activate the new vector regsets if applicable.
12106 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12107 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12108 and init_registers_s390x_tevx_linux64.
12110 2015-03-01 Pedro Alves <palves@redhat.com>
12112 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12115 2015-02-27 Pedro Alves <palves@redhat.com>
12117 * linux-x86-low.c (u_debugreg_offset): New function.
12118 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12120 2015-02-27 Pedro Alves <palves@redhat.com>
12122 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12123 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12124 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12125 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12126 (ps_lsetfpregs, ps_getpid)
12127 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12128 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12129 (ps_lsetxregs, ps_plog): Declare.
12131 2015-02-27 Pedro Alves <palves@redhat.com>
12133 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12134 IP_AGENT_EXPORT_FUNC.
12135 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12136 IP_AGENT_EXPORT_FUNC.
12137 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12138 (IP_AGENT_EXPORT): Delete.
12139 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12140 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12141 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12142 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12143 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12144 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12145 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12146 (traceframe_read_count, traceframe_write_count)
12147 (traceframes_created, trace_state_variables, get_raw_reg)
12148 (get_trace_state_variable_value, set_trace_state_variable_value)
12149 (ust_loaded, helper_thread_id, cmd_buf): Use
12150 IPA_SYM_EXPORTED_NAME.
12151 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12152 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12153 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12154 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12155 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12156 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12157 EXTERN_C_PUSH/EXTERN_C_POP.
12158 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12159 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12160 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12161 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12162 (traceframe_write_count, traceframe_read_count)
12163 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12164 (about_to_request_buffer_space, get_trace_state_variable_value)
12165 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12166 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12167 EXTERN_C_PUSH/EXTERN_C_POP.
12168 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12169 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12170 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12171 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12172 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12173 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12174 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12175 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12177 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12178 (IP_AGENT_EXPORT_VAR_DECL): Define.
12179 (tracing): Declare.
12180 (gdb_agent_get_raw_reg): Declare.
12182 2015-02-27 Tom Tromey <tromey@redhat.com>
12183 Pedro Alves <palves@redhat.com>
12185 Rename symbols whose names are reserved C++ keywords throughout.
12187 2015-02-27 Pedro Alves <palves@redhat.com>
12189 * Makefile.in (COMPILER): New, get it from autoconf.
12190 (CXX): Get from autoconf instead.
12191 (COMPILE.pre): Use COMPILER.
12192 (CC-LD): Rename to ...
12193 (CC_LD): ... this. Use COMPILER.
12194 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12195 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12196 * acinclude.m4: Include build-with-cxx.m4.
12197 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12198 Disable -Werror by default if building in C++ mode.
12199 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12200 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12201 the C++ compiler. Save/restore CXXFLAGS too.
12202 * configure: Regenerate.
12204 2015-02-27 Pedro Alves <palves@redhat.com>
12206 * acinclude.m4: Include libiberty.m4.
12207 * configure.ac: Call libiberty_INIT.
12208 * config.in, configure: Regenerate.
12210 2015-02-26 Pedro Alves <palves@redhat.com>
12212 * linux-low.c (linux_wait_1): When incrementing the PC past a
12213 program breakpoint always use the_low_target.breakpoint_len as
12214 increment, rather than the maximum between that and
12215 the_low_target.decr_pc_after_break.
12217 2015-02-23 Pedro Alves <palves@redhat.com>
12219 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12220 thread was doing a step-over; always adjust the PC if
12221 we stepped over a permanent breakpoint.
12222 (linux_wait_1): If we stepped over breakpoint that was on top of a
12223 permanent breakpoint, manually advance the PC past it.
12225 2015-02-23 Pedro Alves <palves@redhat.com>
12227 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12229 (x86_fill_gregset, x86_store_gregset): Use it when handling
12232 2015-02-20 Pedro Alves <palves@redhat.com>
12234 * thread-db.c: Include "nat/linux-procfs.h".
12235 (thread_db_init): Skip listing new threads if the kernel supports
12236 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12238 2015-02-20 Pedro Alves <palves@redhat.com>
12240 * linux-low.c (status_pending_p_callback): Use ptid_match.
12242 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12244 PR breakpoints/16812
12245 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12246 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12247 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12249 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12251 PR breakpoints/15956
12252 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12254 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12256 * linux-low.c (linux_low_btrace_conf): Print size.
12257 * server.c (handle_btrace_conf_general_set): New.
12258 (hanle_general_set): Call handle_btrace_conf_general_set.
12259 (handle_query): Report Qbtrace-conf:bts:size as supported.
12261 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12263 * linux-low.c (linux_low_enable_btrace): Update parameters.
12264 (linux_low_btrace_conf): New.
12265 (linux_target_ops)<to_btrace_conf>: Initialize.
12266 * server.c (current_btrace_conf): New.
12267 (handle_btrace_enable): Rename to ...
12268 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12269 to target_enable_btrace. Update comment. Update users.
12270 (handle_qxfer_btrace_conf): New.
12271 (qxfer_packets): Add btrace-conf entry.
12272 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12273 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12274 (target_ops)<read_btrace_conf>: New.
12275 (target_enable_btrace): Update parameters.
12276 (target_read_btrace_conf): New.
12278 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12280 * server.c (handle_btrace_general_set): Remove call to
12281 target_supports_btrace.
12282 (supported_btrace_packets): New.
12283 (handle_query): Call supported_btrace_packets.
12284 * target.h: include btrace-common.h.
12285 (btrace_target_info): Removed.
12286 (supports_btrace, target_supports_btrace): Update parameters.
12288 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12290 * Makefile.in (SFILES): Add common/btrace-common.c.
12291 (OBS): Add common/btrace-common.o.
12292 (btrace-common.o): Add build rules.
12293 * linux-low: Include btrace-common.h.
12294 (linux_low_read_btrace): Use struct btrace_data. Call
12295 btrace_data_init and btrace_data_fini.
12297 2015-02-06 Pedro Alves <palves@redhat.com>
12299 * thread-db.c (find_new_threads_callback): Add debug output.
12301 2015-02-04 Pedro Alves <palves@redhat.com>
12303 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12304 (resume_stopped_resumed_lwps): New function.
12305 (linux_wait_for_event_filtered): Use it.
12307 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12309 * Makefile.in (SFILES): Add linux-personality.c.
12310 (linux-personality.o): New rule.
12311 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12312 list of objects to be built.
12313 * linux-low.c: Include nat/linux-personality.h.
12314 (linux_create_inferior): Remove code to disable address space
12315 randomization (moved to ../nat/linux-personality.c). Create
12316 cleanup to disable address space randomization.
12318 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12320 * Makefile.in (posix-strerror.o): New rule.
12321 (mingw-strerror.o): Likewise.
12322 * configure: Regenerated.
12323 * configure.ac: Source file ../common/common.host. Initialize new
12324 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12326 2015-01-14 Yao Qi <yao@codesourcery.com>
12328 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12329 (ppc-linux.o): New rule.
12330 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12331 * configure.ac: AC_CHECK_FUNCS(getauxval).
12332 * config.in: Re-generated.
12333 * configure: Re-generated.
12334 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12335 ppc64_64bit_inferior_p
12337 2015-01-14 Yao Qi <yao@codesourcery.com>
12339 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12340 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12341 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12342 (PT_ORIG_R3, PT_TRAP): Likewise.
12343 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12344 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12345 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12347 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12349 * i387-fp.c (i387_cache_to_xsave): In look over
12350 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12351 zmmh_low_space field by use of zmmh_high_space.
12353 2015-01-09 Pedro Alves <palves@redhat.com>
12355 * linux-low.c (step_over_bkpt): Move higher up in the file.
12356 (handle_extended_wait): Don't store the stop_pc here.
12357 (get_stop_pc): Adjust comments and rename to ...
12358 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12359 stopped for a software breakpoint or hardware breakpoint.
12360 (thread_still_has_status_pending_p): New function.
12361 (status_pending_p_callback): Use
12362 thread_still_has_status_pending_p. If the event is no longer
12363 interesting, resume the LWP.
12364 (handle_tracepoints): Add assert.
12365 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12366 (wstatus_maybe_breakpoint): New function.
12367 (cancel_breakpoint): Delete function.
12368 (check_stopped_by_watchpoint): New function, factored out from
12369 linux_low_filter_event.
12370 (lp_status_maybe_breakpoint): Delete function.
12371 (linux_low_filter_event): Remove filter_ptid argument.
12372 Leave thread group exits pending here. Store the LWP's stop PC.
12373 Always leave events pending.
12374 (linux_wait_for_event_filtered): Pull all events out of the
12375 kernel, and leave them all pending.
12376 (count_events_callback, select_event_lwp_callback): Consider all
12378 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12379 (select_event_lwp): Only give preference to the stepping LWP in
12380 all-stop mode. Adjust comments.
12381 (ignore_event): New function.
12382 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12383 references to cancel_breakpoints. Adjust to renames. Also give
12384 equal priority to all LWPs that have had events in non-stop mode.
12385 If reporting a software breakpoint event, unadjust the LWP's PC.
12386 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12387 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12389 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12390 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12391 (linux_stopped_by_watchpoint): Adjust.
12392 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12393 * linux-low.h (enum lwp_stop_reason): New.
12394 (struct lwp_info) <stop_pc>: Adjust comment.
12395 <stopped_by_watchpoint>: Delete field.
12396 <stop_reason>: New field.
12397 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12398 * mem-break.c (software_breakpoint_inserted_here)
12399 (hardware_breakpoint_inserted_here): New function.
12400 * mem-break.h (software_breakpoint_inserted_here)
12401 (hardware_breakpoint_inserted_here): Declare.
12402 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12403 (cancel_breakpoints): Delete.
12404 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12405 (upload_fast_traceframes): Remove references to
12406 cancel_breakpoints.
12408 2015-01-09 Pedro Alves <palves@redhat.com>
12410 * thread-db.c (find_new_threads_callback): Ignore thread if the
12411 kernel thread ID is -1.
12413 2015-01-09 Pedro Alves <palves@redhat.com>
12415 * linux-low.c (linux_attach_fail_reason_string): Move to
12416 nat/linux-ptrace.c, and rename.
12417 (linux_attach_lwp): Update comment.
12418 (attach_proc_task_lwp_callback): New function.
12419 (linux_attach): Adjust to rename and use
12420 linux_proc_attach_tgid_threads.
12421 (linux_attach_fail_reason_string): Delete declaration.
12423 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12425 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12426 * server.c (gdbserver_version): Likewise.
12428 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12430 * remote-utils.c: Include ctype.h.
12431 (input_interrupt): Explicitly handle the case when the char
12432 received is the NUL byte. Improve the printing of non-ASCII
12435 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12437 * linux-low.c (linux_low_filter_event): Update call to
12438 linux_enable_event_reporting following the addition of
12439 a new parameter to that function.
12441 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12444 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12445 (AARCH64_FPCR_REGNO): Likewise.
12446 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12447 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12448 (aarch64_store_fpregset): Likewise.
12450 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12452 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12453 Remove FIXME comment about assumption about N.
12455 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12457 * configure.ac: If large-file support is disabled in GDBserver,
12458 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12459 * configure: Regenerate.
12461 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12463 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12464 warning upon ENODATA from ptrace.
12465 * linux-s390-low.c (s390_store_tdb): New.
12466 (s390_regsets): Add regset for NT_S390_TDB.
12468 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12470 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12471 without a fill_function.
12472 * linux-s390-low.c (s390_fill_last_break): Remove.
12473 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12474 (s390_arch_setup): Use regset's size instead of fill_function for
12475 loop end condition.
12477 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12479 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12480 the regset's store function when ptrace returned an error.
12481 * regcache.c (get_thread_regcache): Invalidate register cache
12482 before fetching inferior's registers.
12484 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12486 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12487 while-loop as for-loop.
12488 (regsets_store_inferior_registers): Likewise.
12490 2014-11-28 Yao Qi <yao@codesourcery.com>
12492 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12493 * config.in, configure: Re-generate.
12494 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12497 2014-11-21 Yao Qi <yao@codesourcery.com>
12499 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12500 (AC_CHECK_HEADERS): Remove malloc.h.
12501 * configure: Re-generated.
12502 * config.in: Re-generated.
12503 * server.h: Don't include alloca.h and malloc.h.
12504 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12505 Don't include malloc.h.
12507 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12509 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12510 corresponding ERRNO check in same block.
12512 2014-11-12 Pedro Alves <palves@redhat.com>
12514 * server.c (cont_thread): Update comment.
12515 (start_inferior, attach_inferior): No longer clear cont_thread.
12516 (handle_v_cont): No longer set cont_thread.
12517 (captured_main): Clear cont_thread each time a GDB connects.
12519 2014-11-12 Pedro Alves <palves@redhat.com>
12521 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12522 thread, and don't resume all threads if the Hc thread has exited.
12524 2014-11-12 Pedro Alves <palves@redhat.com>
12526 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12527 the process group instead of to a specific LWP.
12529 2014-10-15 Pedro Alves <palves@redhat.com>
12532 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12534 (arm_set_thread_context): Delete.
12535 (the_low_target): Adjust.
12536 * win32-i386-low.c (debug_registers_changed)
12537 (debug_registers_used): Delete.
12538 (update_debug_registers_callback): New function.
12539 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12540 needing to update their debug registers.
12541 (win32_get_current_dr): New function.
12542 (x86_dr_low_get_addr, x86_dr_low_get_control)
12543 (x86_dr_low_get_status): Fetch the debug register from the thread
12545 (i386_initial_stuff): Adjust.
12546 (i386_get_thread_context): Remove current_event parameter. Don't
12547 clear debug_registers_changed nor copy DR values to
12549 (i386_set_thread_context): Delete.
12550 (i386_prepare_to_resume): New function.
12551 (i386_thread_added): Mark the thread as needing to update irs
12553 (the_low_target): Remove i386_set_thread_context and install
12554 i386_prepare_to_resume.
12555 * win32-low.c (win32_get_thread_context): Adjust.
12556 (win32_set_thread_context): Use SetThreadContext
12558 (win32_prepare_to_resume): New function.
12559 (win32_require_context): New function, factored out from ...
12560 (thread_rec): ... this.
12561 (continue_one_thread): Call win32_prepare_to_resume on each thread
12562 we're about to continue.
12563 (win32_resume): Call win32_prepare_to_resume on the event thread.
12564 * win32-low.h (struct win32_thread_info)
12565 <debug_registers_changed>: New field.
12566 (struct win32_target_ops): Change prototype of set_thread_context,
12567 delete set_thread_context and add prepare_to_resume.
12568 (win32_require_context): New declaration.
12570 2014-10-08 Gary Benson <gbenson@redhat.com>
12572 * server.h: Do not include common-exceptions.h.
12574 2014-10-08 Gary Benson <gbenson@redhat.com>
12576 * server.h: Do not include cleanups.h.
12578 2014-09-30 James Hogan <james.hogan@imgtec.com>
12580 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12581 mips64-dsp-linux.c.
12583 2014-09-23 Yao Qi <yao@codesourcery.com>
12585 * linux-low.c (lp_status_maybe_breakpoint): New function.
12586 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12587 (count_events_callback): Likewise.
12588 (select_event_lwp_callback): Likewise.
12589 (cancel_breakpoints_callback): Likewise.
12591 2014-09-19 Don Breazeal <donb@codesourcery.com>
12593 * linux-low.c (handle_extended_wait): Call
12594 linux_ptrace_get_extended_event.
12595 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12596 linux_is_extended_waitstatus.
12598 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12600 * Makefile.in (CPPFLAGS): Define.
12601 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12602 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12604 2014-09-16 Gary Benson <gbenson@redhat.com>
12606 * inferiors.h (current_inferior): Renamed as...
12607 (current_thread): New variable. All uses updated.
12608 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12609 (maybe_move_out_of_jump_pad): Likewise.
12610 (cancel_breakpoint): Likewise.
12611 (linux_low_filter_event): Likewise.
12612 (wait_for_sigstop): Likewise.
12613 (linux_resume_one_lwp): Likewise.
12614 (need_step_over_p): Likewise.
12615 (start_step_over): Likewise.
12616 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12617 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12618 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12619 and save_inferior as saved_thread.
12620 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12622 (regcache_invalidate_thread): Likewise.
12623 * remote-utils.c (prepare_resume_reply): Likewise.
12624 * thread-db.c (thread_db_get_tls_address): Likewise.
12625 (disable_thread_event_reporting): Likewise.
12626 (remove_thread_event_breakpoints): Likewise.
12627 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12629 * target.h (set_desired_inferior): Renamed as...
12630 (set_desired_thread): New declaration. All uses updated.
12631 * server.c (myresume): Updated comment to reference thread instead
12633 (handle_serial_event): Likewise.
12634 (handle_target_event): Likewise.
12636 2014-09-12 Tom Tromey <tromey@redhat.com>
12637 Gary Benson <gbenson@redhat.com>
12639 * regcache.h: Include common-regcache.h.
12640 (regcache_read_pc): Don't declare.
12641 * regcache.c (get_thread_regcache_for_ptid): New function.
12643 2014-09-11 Tom Tromey <tromey@redhat.com>
12644 Gary Benson <gbenson@redhat.com>
12646 * symbol.c: New file.
12647 * Makefile.in (SFILES): Add symbol.c.
12648 (OBS): Add symbol.o.
12650 2014-09-11 Gary Benson <gbenson@redhat.com>
12652 * target.c (target_stop_ptid, target_continue_ptid): New
12655 2014-09-11 Tom Tromey <tromey@redhat.com>
12656 Gary Benson <gbenson@redhat.com>
12658 * target.h: Include target/target.h.
12659 * target.c (target_read_memory, target_read_uint32)
12660 (target_write_memory): New functions.
12662 2014-09-11 Gary Benson <gbenson@redhat.com>
12664 * server.h (debug_hw_points): Don't declare.
12665 * server.c (debug_hw_points): Don't define. Replace all uses
12666 with show_debug_regs.
12667 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12668 all uses with show_debug_regs.
12670 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12672 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12673 endianness into account.
12674 (ppc_supply_ptrace_register): Likewise.
12676 2014-09-03 James Hogan <james.hogan@imgtec.com>
12678 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12679 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12681 2014-09-03 Gary Benson <gbenson@redhat.com>
12683 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12684 ALL_DEBUG_ADDRESS_REGISTERS.
12686 2014-09-02 Gary Benson <gbenson@redhat.com>
12688 * i386-low.h: Renamed as...
12689 * x86-low.h: New file. All type, function and variable name
12690 prefixes changed from "i386_" to "x86_". All references updated.
12691 * i386-low.c: Renamed as...
12692 * x86-low.c: New file. All type, function and variable name
12693 prefixes changed from "i386_" to "x86_". All references updated.
12695 2014-09-02 Gary Benson <gbenson@redhat.com>
12697 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12698 (x86_linux_new_thread): Likewise.
12700 2014-08-29 Gary Benson <gbenson@redhat.com>
12702 * server.h (setjmp.h): Do not include.
12703 (toplevel): Do not declare.
12704 (common-exceptions.h): Include.
12705 (cleanups.h): Likewise.
12706 * server.c (toplevel): Do not define.
12707 (exit_code): New static global.
12708 (detach_or_kill_for_exit_cleanup): New function.
12709 (main): New function. Original main renamed to...
12710 (captured_main): New function.
12711 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12713 2014-08-29 Gary Benson <gbenson@redhat.com>
12715 * Makefile.in (SFILES): Add common/common-exceptions.c.
12716 (OBS): Add common-exceptions.o.
12717 (common-exceptions.o): New rule.
12718 * utils.c (prepare_to_throw_exception): New function.
12720 2014-08-29 Gary Benson <gbenson@redhat.com>
12722 * config.in: Regenerate.
12723 * configure: Likewise.
12725 2014-08-29 Gary Benson <gbenson@redhat.com>
12727 * Makefile.in (SFILES): Add common/cleanups.c.
12729 (cleanups.o): New rule.
12731 2014-08-29 Gary Benson <gbenson@redhat.com>
12733 * utils.c (internal_vwarning): New function.
12735 2014-08-28 Gary Benson <gbenson@redhat.com>
12737 * utils.h (fatal): Remove declaration.
12738 * utils.c (fatal): Remove function.
12740 2014-08-28 Gary Benson <gbenson@redhat.com>
12742 * tracepoint.c (gdb_agent_init): Replace fatal with
12744 (initialize_tracepoint): Likewise.
12746 2014-08-28 Gary Benson <gbenson@redhat.com>
12748 * remote-utils.c (remote_prepare): Replace fatal with error.
12750 2014-08-28 Gary Benson <gbenson@redhat.com>
12752 * linux-low.c (linux_async): Replace fatal with warning.
12753 Tidy up and return.
12754 (linux_start_non_stop): Return -1 if linux_async failed.
12756 2014-08-28 Gary Benson <gbenson@redhat.com>
12758 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12760 (i386_dr_low_get_addr): Remove vague comment.
12761 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12764 2014-08-28 Gary Benson <gbenson@redhat.com>
12766 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12767 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12769 (linux_resume_one_lwp): Likewise.
12770 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12772 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12773 with internal_error.
12774 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12775 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12776 (find_register_by_name): Replace fatal with internal_error.
12777 (find_regno): Likewise.
12778 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12779 * thread-db.c (thread_db_create_event): Likewise.
12780 (thread_db_load_search): Likewise.
12781 (try_thread_db_load_1): Likewise.
12782 * tracepoint.c (get_jump_space_head): Replace fatal with
12784 (claim_trampoline_space): Likewise.
12785 (have_fast_tracepoint_trampoline_buffer): Likewise.
12786 (cmd_qtstart): Likewise.
12787 (stop_tracing): Likewise.
12788 (fast_tracepoint_collecting): Likewise.
12789 (target_malloc): Likewise.
12790 (download_tracepoint): Likewise.
12791 (download_trace_state_variables): Replace check with gdb_assert.
12792 (upload_fast_traceframes): Replace fatal with internal_error.
12794 2014-08-19 Tom Tromey <tromey@redhat.com>
12795 Gary Benson <gbenson@redhat.com>
12797 * Makefile.in (SFILES): Add common/common-debug.c.
12798 (OBS): Add common-debug.o.
12799 (common-debug.o): New rule.
12800 * debug.h (debug_printf): Don't declare.
12801 * debug.c (debug_printf): Renamed and rewritten as...
12802 (debug_vprintf): New function.
12804 2014-08-19 Gary Benson <gbenson@redhat.com>
12806 * utils.h: Do not include print-utils.h.
12808 2014-08-19 Tom Tromey <tromey@redhat.com>
12809 Gary Benson <gbenson@redhat.com>
12811 * server.h: Add static assertion.
12812 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12814 2014-08-19 Tom Tromey <tromey@redhat.com>
12815 Gary Benson <gbenson@redhat.com>
12817 * Makefile.in (SFILES): Add common/errors.c.
12818 (OBS): Add errors.o.
12819 (IPA_OBS): Add errors-ipa.o.
12820 (errors.o): New rule.
12821 (errors-ipa.o): Likewise.
12822 * utils.h (perror_with_name, error, warning): Don't declare.
12823 * utils.c (warning): Renamed and rewritten as...
12824 (vwarning): New function.
12825 (error): Renamed and rewritten as...
12826 (verror): New function.
12827 (internal_error): Renamed and rewritten as...
12828 (internal_verror): New function.
12830 2014-08-07 Gary Benson <gbenson@redhat.com>
12832 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12833 * configure: Regenerate.
12834 * config.in: Likewise.
12835 * server.h: Do not include errno.h.
12836 * event-loop.c: Likewise.
12837 * hostio-errno.c: Likewise.
12838 * linux-low.c: Likewise.
12839 * remote-utils.c: Likewise.
12840 * spu-low.c: Likewise.
12841 * utils.c: Likewise.
12842 * gdbreplay.c: Unconditionally include errno.h.
12844 2014-08-07 Gary Benson <gbenson@redhat.com>
12846 * server.h: Do not include string.h.
12847 * event-loop.c: Likewise.
12848 * linux-low.c: Likewise.
12849 * regcache.c: Likewise.
12850 * remote-utils.c: Likewise.
12851 * spu-low.c: Likewise.
12852 * utils.c: Likewise.
12854 2014-08-07 Gary Benson <gbenson@redhat.com>
12856 * server.h: Do not include gdb_assert.h.
12858 2014-08-07 Gary Benson <gbenson@redhat.com>
12860 * server.h: Do not include common-utils.h.
12862 2014-08-07 Gary Benson <gbenson@redhat.com>
12864 * server.h: Do not include ptid.h.
12865 * notif.h: Likewise.
12867 2014-08-07 Gary Benson <gbenson@redhat.com>
12869 * server.h: Do not include gdb_locale.h.
12871 2014-08-07 Gary Benson <gbenson@redhat.com>
12873 * server.h: Do not include gdb/signals.h.
12874 * win32-low.c: Likewise.
12876 2014-08-07 Gary Benson <gbenson@redhat.com>
12878 * server.h: Do not include pathmax.h.
12880 2014-08-07 Gary Benson <gbenson@redhat.com>
12882 * server.h: Do not include libiberty.h.
12883 * linux-bfin-low.c: Likewise.
12885 2014-08-07 Gary Benson <gbenson@redhat.com>
12887 * server.h: Do not include ansidecl.h.
12889 2014-08-07 Gary Benson <gbenson@redhat.com>
12891 * linux-x86-low.c: Do not include stddef.h.
12892 * lynx-ppc-low.c: Likewise.
12893 * tracepoint.c: Likewise.
12895 2014-08-07 Gary Benson <gbenson@redhat.com>
12897 * server.h: Do not include stdarg.h.
12898 * nto-low.c: Likewise.
12900 2014-08-07 Gary Benson <gbenson@redhat.com>
12902 * server.h: Do not include stdlib.h.
12903 * inferiors.c: Likewise.
12904 * linux-low.c: Likewise.
12905 * regcache.c: Likewise.
12906 * spu-low.c: Likewise.
12907 * tracepoint.c: Likewise.
12908 * utils.c: Likewise.
12910 2014-08-07 Gary Benson <gbenson@redhat.com>
12912 * server.h: Do not include stdio.h.
12913 * linux-low.c: Likewise.
12914 * remote-utils.c: Likewise.
12915 * spu-low.c: Likewise.
12916 * utils.c: Likewise.
12917 * wincecompat.c: Likewise.
12919 2014-08-06 Gary Benson <gbenson@redhat.com>
12921 * regcache.c (init_register_cache): Move conditionals inside if.
12923 2014-08-06 Gary Benson <gbenson@redhat.com>
12925 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12927 2014-07-31 Gary Benson <gbenson@redhat.com>
12929 * ax.h: Do not include server.h.
12930 * gdbthread.h: Likewise.
12931 * lynx-low.h: Likewise.
12932 * notif.h: Likewise.
12934 2014-07-30 Gary Benson <gbenson@redhat.com>
12936 * server.h: Include common-defs.h.
12937 Do not include config.h or build-gnulib-gdbserver/config.h.
12939 2014-07-30 Gary Benson <gbenson@redhat.com>
12941 * hostio-errno.c: Move server.h to top of includes list.
12942 * inferiors.c: Likewise.
12943 * linux-x86-low.c: Likewise.
12944 * notif.c: Include server.h.
12946 2014-07-24 Tom Tromey <tromey@redhat.com>
12947 Gary Benson <gbenson@redhat.com>
12949 * server.h (CORE_ADDR): Now unsigned.
12951 2014-07-16 Pedro Alves <palves@redhat.com>
12953 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12955 2014-07-15 Pedro Alves <palves@redhat.com>
12957 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12960 2014-07-11 Pedro Alves <palves@redhat.com>
12962 * linux-low.c (kill_wait_lwp): New function, based on
12963 kill_one_lwp_callback, but use my_waitpid directly.
12964 (kill_one_lwp_callback, linux_kill): Use it.
12966 2014-06-23 Pedro Alves <palves@redhat.com>
12968 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12969 before setting DR0..DR3.
12971 2014-06-20 Gary Benson <gbenson@redhat.com>
12973 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12974 * configure: Regenerated.
12975 * config.in: Likewise.
12977 2014-06-20 Gary Benson <gbenson@redhat.com>
12979 * Makefile.in (SFILES): Update locations for files moved
12980 from common to nat.
12981 (object file files): Reordered.
12983 2014-06-20 Gary Benson <gbenson@redhat.com>
12985 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12986 (i386_dr_low_set_addr): Likewise.
12987 (i386_dr_low_get_addr): Likewise.
12988 (i386_dr_low_can_set_control): Likewise.
12989 (i386_dr_low_set_control): Likewise.
12990 (i386_dr_low_get_control): Likewise.
12991 (i386_dr_low_get_status): Likewise.
12992 (i386_get_debug_register_length): Likewise.
12993 * linux-x86-low.c (i386_dr_low_set_addr):
12994 Changed signature. Made static.
12995 (i386_dr_low_get_addr): Likewise.
12996 (i386_dr_low_set_control): Likewise.
12997 (i386_dr_low_get_control): Likewise.
12998 (i386_dr_low_get_status): Likewise.
12999 (i386_dr_low): New global variable.
13000 * win32-i386-low.c (i386_dr_low_set_addr):
13001 Changed signature. Made static.
13002 (i386_dr_low_get_addr): Likewise.
13003 (i386_dr_low_set_control): Likewise.
13004 (i386_dr_low_get_control): Likewise.
13005 (i386_dr_low_get_status): Likewise.
13006 (i386_dr_low): New global variable.
13008 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
13010 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
13011 * Makefile.in (AR, AR_FLAGS): Define.
13012 * configure: Regenerate.
13014 2014-06-19 Gary Benson <gbenson@redhat.com>
13016 * Makefile.in (i386-dregs.o): New rule.
13017 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
13018 * i386-low.c (target.h): Remove include.
13019 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
13020 (DR_CONTROL_SHIFT): Likewise.
13021 (DR_CONTROL_SIZE): Likewise.
13022 (DR_RW_EXECUTE): Likewise.
13023 (DR_RW_WRITE): Likewise.
13024 (DR_RW_READ): Likewise.
13025 (DR_RW_IORW): Likewise.
13026 (DR_LEN_1): Likewise.
13027 (DR_LEN_2): Likewise.
13028 (DR_LEN_4): Likewise.
13029 (DR_LEN_8): Likewise.
13030 (DR_LOCAL_ENABLE_SHIFT): Likewise.
13031 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
13032 (DR_ENABLE_SIZE): Likewise.
13033 (DR_LOCAL_SLOWDOWN): Likewise.
13034 (DR_GLOBAL_SLOWDOWN): Likewise.
13035 (DR_CONTROL_RESERVED): Likewise.
13036 (I386_DR_CONTROL_MASK): Likewise.
13037 (I386_DR_VACANT): Likewise.
13038 (I386_DR_LOCAL_ENABLE): Likewise.
13039 (I386_DR_GLOBAL_ENABLE): Likewise.
13040 (I386_DR_DISABLE): Likewise.
13041 (I386_DR_SET_RW_LEN): Likewise.
13042 (I386_DR_GET_RW_LEN): Likewise.
13043 (I386_DR_WATCH_HIT): Likewise.
13044 (i386_wp_op_t): Likewise.
13045 (i386_show_dr): Likewise.
13046 (i386_length_and_rw_bits): Likewise.
13047 (i386_insert_aligned_watchpoint): Likewise.
13048 (i386_remove_aligned_watchpoint): Likewise.
13049 (i386_handle_nonaligned_watchpoint): Likewise.
13050 i386_update_inferior_debug_regs(): Likewise.
13051 (i386_dr_insert_watchpoint): Likewise.
13052 (i386_dr_remove_watchpoint): Likewise.
13053 (i386_dr_region_ok_for_watchpoint): Likewise.
13054 (i386_dr_stopped_data_address): Likewise.
13055 (i386_dr_stopped_by_watchpoint): Likewise.
13057 2014-06-19 Gary Benson <gbenson@redhat.com>
13059 * i386-low.c (i386_dr_show): Renamed to
13060 i386_show_dr and made static. All uses updated.
13061 (i386_dr_length_and_rw_bits): Renamed to
13062 i386_length_and_rw_bits and made static.
13064 (i386_dr_insert_aligned_watchpoint): Renamed to
13065 i386_insert_aligned_watchpoint and made static.
13067 (i386_dr_remove_aligned_watchpoint): Renamed to
13068 i386_remove_aligned_watchpoint and made static.
13070 (i386_dr_update_inferior_debug_regs): Renamed to
13071 i386_update_inferior_debug_regs and made static.
13074 2014-06-18 Gary Benson <gbenson@redhat.com>
13076 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13077 (i386_dr_low_can_set_control): Likewise.
13078 (i386_get_debug_register_length): Likewise.
13079 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13080 (i386_dr_low_can_set_control): Likewise.
13081 (i386_get_debug_register_length): Likewise.
13083 2014-06-17 Gary Benson <gbenson@redhat.com>
13085 * i386-low.h (i386-dregs.h): New include.
13086 (DR_FIRSTADDR): Now in i386-dregs.h.
13087 (DR_LASTADDR): Likewise.
13088 (DR_NADDR): Likewise.
13089 (DR_STATUS): Likewise.
13090 (DR_CONTROL): Likewise.
13091 (i386_debug_reg_state): Likewise.
13092 (i386_dr_insert_watchpoint): Likewise.
13093 (i386_dr_remove_watchpoint): Likewise.
13094 (i386_dr_region_ok_for_watchpoint): Likewise.
13095 (i386_dr_stopped_data_address): Likewise.
13096 (i386_dr_stopped_by_watchpoint): Likewise.
13097 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13099 2014-06-18 Gary Benson <gbenson@redhat.com>
13101 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13102 i386_dr_insert_watchpoint.
13103 (i386_low_remove_watchpoint): Renamed to
13104 i386_dr_remove_watchpoint.
13105 (i386_low_region_ok_for_watchpoint): Renamed to
13106 i386_dr_region_ok_for_watchpoint.
13107 (i386_low_stopped_data_address): Renamed to
13108 i386_dr_stopped_data_address.
13109 (i386_low_stopped_by_watchpoint): Renamed to
13110 i386_dr_stopped_by_watchpoint.
13111 * i386-low.c (i386_show_dr): Renamed to
13112 i386_dr_show and made nonstatic. All uses updated.
13113 (i386_length_and_rw_bits): Renamed to
13114 i386_dr_length_and_rw_bits and made nonstatic.
13116 (i386_insert_aligned_watchpoint): Renamed to
13117 i386_dr_insert_aligned_watchpoint and made nonstatic.
13119 (i386_remove_aligned_watchpoint): Renamed to
13120 i386_dr_remove_aligned_watchpoint and made nonstatic.
13122 (i386_update_inferior_debug_regs): Renamed to
13123 i386_dr_update_inferior_debug_regs and made nonstatic.
13125 (i386_low_insert_watchpoint): Renamed to
13126 i386_dr_insert_watchpoint. All uses updated.
13127 (i386_low_remove_watchpoint): Renamed to
13128 i386_dr_remove_watchpoint. All uses updated.
13129 (i386_low_region_ok_for_watchpoint): Renamed to
13130 i386_dr_region_ok_for_watchpoint. All uses updated.
13131 (i386_low_stopped_data_address): Renamed to
13132 i386_dr_stopped_data_address. All uses updated.
13133 (i386_low_stopped_by_watchpoint): Renamed to
13134 i386_dr_stopped_by_watchpoint. All uses updated.
13136 2014-06-18 Gary Benson <gbenson@redhat.com>
13138 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13139 (i386_dr_low_can_set_control): Likewise.
13140 (i386_insert_aligned_watchpoint): New check.
13142 2014-06-18 Gary Benson <gbenson@redhat.com>
13144 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13147 2014-06-18 Gary Benson <gbenson@redhat.com>
13149 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13150 instead of fatal and error.
13151 (i386_handle_nonaligned_watchpoint): Likewise.
13153 2014-06-18 Gary Benson <gbenson@redhat.com>
13155 * i386-low.c (i386_get_debug_register_length): New macro.
13156 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13157 (i386_show_dr): Use debug_printf instead of fprintf. Use
13158 phex to format values.
13160 2014-06-18 Gary Benson <gbenson@redhat.com>
13162 * i386-low.h: Comment changes.
13163 * i386-low.c: Likewise.
13165 2014-06-18 Gary Benson <gbenson@redhat.com>
13167 * i386-low.c: Whitespace changes.
13169 2014-06-12 Tom Tromey <tromey@redhat.com>
13171 * utils.c (freeargv): Remove.
13173 2014-06-12 Tom Tromey <tromey@redhat.com>
13175 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13176 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13177 (parse_debug_format_options): Likewise.
13178 (gdbserver_usage): Likewise.
13179 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13180 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13181 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13183 ($(LIBGNU)): Depend on libiberty.
13184 (all-lib): Recurse into all subdirs.
13185 (install-only): Invoke "install" target in subdirs.
13186 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13188 * configure: Rebuild.
13189 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13190 for vasprintf, vsnprintf, or gettimeofday.
13191 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13194 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13196 * development.sh: Delete.
13197 * Makefile.in (config.status): Adjust dependency on development.sh.
13198 * configure.ac: Adjust development.sh source call.
13199 * configure: Regenerate.
13201 2014-06-02 Pedro Alves <palves@redhat.com>
13203 * ax.c (gdb_free_agent_expr): New function.
13204 * ax.h (gdb_free_agent_expr): New declaration.
13205 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13207 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13209 (clear_breakpoint_conditions_and_commands): New function.
13210 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13211 (clear_breakpoint_conditions_and_commands): New declaration.
13213 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13215 * linux-aarch64-low.c (asm/ptrace.h): Include.
13217 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13219 Fix TLS access for -static -pthread.
13220 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13221 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13222 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13224 2014-05-20 Pedro Alves <palves@redhat.com>
13226 * linux-aarch64-low.c (aarch64_insert_point)
13227 (aarch64_remove_point): No longer check whether the type is
13228 supported here. Adjust to new interface.
13229 (the_low_target): Install aarch64_supports_z_point_type as
13230 supports_z_point_type method.
13231 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13232 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13233 instead of a Z packet char. Adjust.
13234 (arm_supports_z_point_type): New function.
13235 (arm_insert_point, arm_remove_point): Adjust to new interface.
13236 (the_low_target): Install arm_supports_z_point_type.
13237 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13238 (cris_insert_point, cris_remove_point): Adjust to new interface.
13239 Don't check whether the type is supported here.
13240 (the_low_target): Install cris_supports_z_point_type.
13241 * linux-low.c (linux_supports_z_point_type): New function.
13242 (linux_insert_point, linux_remove_point): Adjust to new interface.
13243 * linux-low.h (struct linux_target_ops) <insert_point,
13244 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13245 raw_breakpoint pointer parameter.
13246 <supports_z_point_type>: New method.
13247 * linux-mips-low.c (mips_supports_z_point_type): New function.
13248 (mips_insert_point, mips_remove_point): Adjust to new interface.
13249 Use mips_supports_z_point_type.
13250 (the_low_target): Install mips_supports_z_point_type.
13251 * linux-ppc-low.c (the_low_target): Install NULL as
13252 supports_z_point_type method.
13253 * linux-s390-low.c (the_low_target): Install NULL as
13254 supports_z_point_type method.
13255 * linux-sparc-low.c (the_low_target): Install NULL as
13256 supports_z_point_type method.
13257 * linux-x86-low.c (x86_supports_z_point_type): New function.
13258 (x86_insert_point): Adjust to new insert_point interface. Use
13259 insert_memory_breakpoint. Adjust to new
13260 i386_low_insert_watchpoint interface.
13261 (x86_remove_point): Adjust to remove_point interface. Use
13262 remove_memory_breakpoint. Adjust to new
13263 i386_low_remove_watchpoint interface.
13264 (the_low_target): Install x86_supports_z_point_type.
13265 * lynx-low.c (lynx_target_ops): Install NULL as
13266 supports_z_point_type callback.
13267 * nto-low.c (nto_supports_z_point_type): New.
13268 (nto_insert_point, nto_remove_point): Adjust to new interface.
13269 (nto_target_ops): Install nto_supports_z_point_type.
13270 * mem-break.c: Adjust intro comment.
13271 (struct raw_breakpoint) <raw_type, size>: New fields.
13272 <inserted>: Update comment.
13273 <shlib_disabled>: Delete field.
13274 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13275 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13276 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13277 (raw_bkpt_type_to_target_hw_bp_type): New function.
13278 (find_enabled_raw_code_breakpoint_at): New function.
13279 (find_raw_breakpoint_at): New type and size parameters. Use them.
13280 (insert_memory_breakpoint): New function, based off
13281 set_raw_breakpoint_at.
13282 (remove_memory_breakpoint): New function.
13283 (set_raw_breakpoint_at): Reimplement.
13284 (set_breakpoint): New, based on set_breakpoint_at.
13285 (set_breakpoint_at): Reimplement.
13286 (delete_raw_breakpoint): Go through the_target->remove_point
13287 instead of assuming memory breakpoints.
13288 (find_gdb_breakpoint_at): Delete.
13289 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13290 (find_gdb_breakpoint): New function.
13291 (set_gdb_breakpoint_at): Delete.
13292 (z_type_supported): New function.
13293 (set_gdb_breakpoint_1): New function, loosely based off
13294 set_gdb_breakpoint_at.
13295 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13296 (delete_gdb_breakpoint_at): Delete.
13297 (delete_gdb_breakpoint_1): New function, loosely based off
13298 delete_gdb_breakpoint_at.
13299 (delete_gdb_breakpoint): New function.
13300 (clear_gdb_breakpoint_conditions): Rename to ...
13301 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13303 (add_condition_to_breakpoint): Make static.
13304 (add_breakpoint_condition): Take a struct breakpoint pointer
13305 instead of an address. Adjust.
13306 (gdb_condition_true_at_breakpoint): Rename to ...
13307 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13309 (gdb_condition_true_at_breakpoint): Reimplement.
13310 (add_breakpoint_commands): Take a struct breakpoint pointer
13311 instead of an address. Adjust.
13312 (gdb_no_commands_at_breakpoint): Rename to ...
13313 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13314 parameter. Return true if no breakpoint was found. Change debug
13316 (gdb_no_commands_at_breakpoint): Reimplement.
13317 (run_breakpoint_commands): Rename to ...
13318 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13319 and change return type to boolean.
13320 (run_breakpoint_commands): New function.
13321 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13322 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13323 breakpoint. Go through the_target->remove_point instead of
13324 assuming memory breakpoint.
13325 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13326 software and hardware breakpoints.
13327 (reinsert_raw_breakpoint): Go through the_target->insert_point
13328 instead of assuming memory breakpoint.
13329 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13330 software and hardware breakpoints.
13331 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13332 Check both software and hardware breakpoints.
13333 (validate_inserted_breakpoint): Assert the breakpoint is a
13334 software breakpoint. Set the inserted flag to -1 instead of
13335 setting shlib_disabled.
13336 (delete_disabled_breakpoints): Adjust.
13337 (validate_breakpoints): Only validate software breakpoints.
13338 Adjust to inserted flag change.
13339 (check_mem_read, check_mem_write): Skip breakpoint types other
13340 than software breakpoints. Adjust to inserted flag change.
13341 * mem-break.h (enum raw_bkpt_type): New enum.
13342 (raw_breakpoint, struct process_info): Forward declare.
13343 (Z_packet_to_target_hw_bp_type): Delete declaration.
13344 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13345 (set_gdb_breakpoint, delete_gdb_breakpoint)
13346 (clear_breakpoint_conditions): New declarations.
13347 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13348 (breakpoint_inserted_here): Update comment.
13349 (add_breakpoint_condition, add_breakpoint_commands): Replace
13350 address parameter with a breakpoint pointer parameter.
13351 (gdb_breakpoint_here): Update comment.
13352 (delete_gdb_breakpoint_at): Delete.
13353 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13354 * server.c (process_point_options): Take a struct breakpoint
13355 pointer instead of an address. Adjust.
13356 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13357 delete_gdb_breakpoint.
13358 * spu-low.c (spu_target_ops): Install NULL as
13359 supports_z_point_type method.
13360 * target.h: Include mem-break.h.
13361 (struct target_ops) <prepare_to_access_memory>: Update comment.
13362 <supports_z_point_type>: New field.
13363 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13364 instead of a char. Also take a raw breakpoint pointer.
13365 * win32-arm-low.c (the_low_target): Install NULL as
13366 supports_z_point_type.
13367 * win32-i386-low.c (i386_supports_z_point_type): New function.
13368 (i386_insert_point, i386_remove_point): Adjust to new interface.
13369 (the_low_target): Install i386_supports_z_point_type.
13370 * win32-low.c (win32_supports_z_point_type): New function.
13371 (win32_insert_point, win32_remove_point): Adjust to new interface.
13372 (win32_target_ops): Install win32_supports_z_point_type.
13373 * win32-low.h (struct win32_target_ops):
13374 <supports_z_point_type>: New method.
13375 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13376 instead of a char. Also take a raw breakpoint pointer.
13378 2014-05-20 Pedro Alves <palves@redhat.com>
13380 * mem-break.h: Include break-common.h.
13381 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13382 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13383 (Z_packet_to_target_hw_bp_type): New declaration.
13384 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13385 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13386 (Z_PACKET_ACCESS_WP): Delete macros.
13387 (Z_packet_to_hw_type): Delete function.
13388 * i386-low.h: Don't include break-common.h here.
13389 (Z_packet_to_hw_type): Delete declaration.
13390 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13391 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13392 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13393 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13394 * linux-aarch64-low.c: Don't include break-common.h here.
13395 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13396 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13397 (Z_packet_to_target_hw_bp_type): Delete function.
13398 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13400 (mips_insert_point, mips_remove_point): Use
13401 Z_packet_to_target_hw_bp_type.
13403 2014-05-20 Pedro Alves <palves@redhat.com>
13405 * linux-aarch64-low.c: Include break-common.h.
13406 (enum target_point_type): Delete.
13407 (Z_packet_to_point_type): Rename to ...
13408 (Z_packet_to_target_hw_bp_type): ... this, and return a
13409 target_hw_bp_type instead.
13410 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13411 instead of an enum target_point_type.
13412 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13414 (aarch64_dr_state_insert_one_point)
13415 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13416 (aarch64_handle_aligned_watchpoint)
13417 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13418 Take an enum target_hw_bp_type instead of an enum
13420 (aarch64_supports_z_point_type): New function.
13421 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13422 use Z_packet_to_target_hw_bp_type.
13424 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13426 * configure.ac: Only use -Werror by default when DEVELOPMENT
13428 * configure: Regenerate.
13430 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13432 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13433 * linux-x86-low.c (X86_64_USER_REGS): New.
13434 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13436 2014-04-28 Yao Qi <yao@codesourcery.com>
13438 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13441 2014-04-25 Pedro Alves <palves@redhat.com>
13444 * linux-low.c (linux_attach_fail_reason_string): New function.
13445 (linux_attach_lwp): Delete.
13446 (linux_attach_lwp_1): Rename to ...
13447 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13448 argument. Remove "initial" parameter. Return int instead of
13449 void. Don't error or warn here.
13450 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13451 failure to attach to the tgid. Call warning when failing to
13453 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13454 argument. Remove "initial" parameter. Return int instead of
13455 void. Don't error or warn here.
13456 (linux_attach_fail_reason_string): New declaration.
13457 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13458 interface change. Use linux_attach_fail_reason_string.
13460 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13461 Walfred Tedeschi <walfred.tedeschi@intel.com>
13463 * Makefile.in: Added rules to handle new files
13464 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13465 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13466 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13467 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13468 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13469 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13470 x32-avx512-linux.o.
13471 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13472 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13473 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13474 i386/x32-avx512.xml.
13475 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13476 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13477 i386/x32-avx512-linux.xml.
13478 * i387-fp.c (num_avx512_k_registers): New constant for number
13480 (num_avx512_zmmh_low_registers): New constant for number of
13481 lower ZMM registers (0-15).
13482 (num_avx512_zmmh_high_registers): New constant for number of
13483 higher ZMM registers (16-31).
13484 (num_avx512_ymmh_registers): New contant for number of higher
13485 YMM registers (ymm16-31 added by avx521 on x86_64).
13486 (num_avx512_xmm_registers): New constant for number of higher
13487 XMM registers (xmm16-31 added by AVX512 on x86_64).
13488 (struct i387_xsave): Add space for AVX512 registers.
13489 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13490 Add code to handle AVX512 registers.
13491 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13492 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13493 prototypei from generated file.
13494 (tdesc_amd64_avx512_linux): Likewise.
13495 (init_registers_x32_avx512_linux): Likewise.
13496 (tdesc_x32_avx512_linux): Likewise.
13497 (init_registers_i386_avx512_linux): Likewise.
13498 (tdesc_i386_avx512_linux): Likewise.
13499 (x86_64_regmap): Add AVX512 registers.
13500 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13502 (initialize_low_arch): Add code to initialize AVX512 registers.
13504 2014-04-23 Pedro Alves <palves@redhat.com>
13506 * mem-break.c (find_gdb_breakpoint_at): Make static.
13507 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13509 2014-04-23 Pedro Alves <palves@redhat.com>
13511 * i386-low.c: Don't include break-common.h here.
13512 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13513 prototype to take target_hw_bp_type as argument instead of a Z
13515 * i386-low.h: Include break-common.h here.
13516 (Z_packet_to_hw_type): Declare.
13517 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13519 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13520 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13521 (x86_remove_point): Convert the packet number to a
13522 target_hw_bp_type before calling i386_low_remove_watchpoint.
13523 * win32-i386-low.c (i386_insert_point): Convert the packet number
13524 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13525 (i386_remove_point): Convert the packet number to a
13526 target_hw_bp_type before calling i386_low_remove_watchpoint.
13528 2014-04-23 Pedro Alves <palves@redhat.com>
13530 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13532 2014-04-10 Pedro Alves <palves@redhat.com>
13534 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13535 Check if the condition or command is NULL before checking if the
13536 breakpoint is known. On success, return true.
13537 * mem-break.h (add_breakpoint_condition): Document return.
13538 (add_breakpoint_commands): Add describing comment.
13539 * server.c (skip_to_semicolon): New function.
13540 (process_point_options): Use it.
13542 2014-04-09 Pedro Alves <palves@redhat.com>
13544 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13547 2014-02-27 Pedro Alves <palves@redhat.com>
13550 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13552 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13554 (last_thread_of_process_p): Take a PID argument instead of a
13556 (linux_wait_for_lwp): Delete.
13557 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13559 (linux_low_filter_event): New function, party factored out from
13560 linux_wait_for_event.
13561 (linux_wait_for_event): Rename to ...
13562 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13563 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13564 sigsuspend. Check for zombie leaders.
13565 (linux_wait_for_event): Reimplement as wrapper around
13566 linux_wait_for_event_filtered.
13567 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13568 a normal or signal exit is seen, it's the whole process exiting.
13569 (wait_for_sigstop): No longer a for_each_inferior callback.
13570 Rewrite on top of linux_wait_for_event_filtered.
13571 (stop_all_lwps): Call wait_for_sigstop directly.
13572 * server.c (resume, handle_target_event): Handle
13573 TARGET_WAITKIND_NO_RESUMED.
13575 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13577 * win32-low.c (psapi_get_dll_name,
13578 * win32_CreateToolhelp32Snapshot): Delete.
13579 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13580 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13582 (handle_load_dll): Add function description.
13583 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13585 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13587 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13589 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13590 base address when calling win32_add_one_solib.
13591 (handle_load_dll): Delete local variable load_addr.
13592 Remove 0x1000 offset applied to DLL base address when calling
13593 win32_add_one_solib.
13594 (handle_unload_dll): Add comment.
13596 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13598 * win32-low.c (win32_add_all_dlls): Renames
13599 win32_ensure_ntdll_loaded. Rewrite function documentation.
13600 Adjust implementation to always load all DLLs.
13601 Add 0x1000 offset to DLL base address when calling
13602 win32_add_one_solib.
13603 (child_initialization_done): New static global.
13604 (do_initial_child_stuff): Set child_initialization_done to
13605 zero during child initialization, and 1 after. Replace call
13606 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13608 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13609 (handle_unload_dll): Add function documentation.
13610 (get_child_debug_event): Ignore load and unload DLL events
13611 during child initialization.
13613 2014-02-20 Doug Evans <dje@google.com>
13615 Remove global all_lwps.
13616 * inferiors.h (ptid_of): Move here from linux-low.h.
13617 (pid_of, lwpid_of): Ditto.
13618 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13619 parameter is a struct thread_info * now.
13620 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13621 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13622 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13624 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13625 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13626 * linux-arm-low.c (update_registers_callback): Update, "entry"
13627 parameter is a struct thread_info * now.
13628 Fetch lwpid from current_inferior directly.
13629 (arm_insert_point): Pass &all_threads to find_inferior instead of
13631 (arm_remove_point): Ditto.
13632 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13633 (arm_prepare_to_resume): Fetch pid from thread.
13634 (arm_read_description): Fetch lwpid from current_inferior directly.
13635 * linux-low.c (all_lwps): Delete.
13636 (delete_lwp): Delete call to remove_inferior.
13637 (handle_extended_wait): Fetch lwpid from thread.
13638 (add_lwp): Don't set lwp->entry.id. Remove call to
13639 add_inferior_to_list.
13640 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13641 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13642 (kill_one_lwp_callback): Ditto.
13643 (linux_kill): Don't dereference NULL pointer.
13644 Fetch ptid,lwpid from thread.
13645 (get_detach_signal): Fetch ptid from thread.
13646 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13647 Simplify call to regcache_invalidate_thread.
13648 (delete_lwp_callback): Update, "entry" parameter is a
13649 struct thread_info * now. Fetch pid from thread.
13650 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13651 (status_pending_p_callback): Update, "entry" parameter is a
13652 struct thread_info * now. Fetch ptid from thread.
13653 (find_lwp_pid): Update, "entry" parameter is a
13654 struct thread_info * now.
13655 (linux_wait_for_lwp): Fetch pid from thread.
13656 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13657 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13658 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13659 (dequeue_one_deferred_signal): Ditto.
13660 (cancel_breakpoint): Fetch ptid from current_inferior.
13661 (linux_wait_for_event): Pass &all_threads to find_inferior,
13662 not &all_lwps. Fetch ptid, lwpid from thread.
13663 (count_events_callback): Update, "entry" parameter is a
13664 struct thread_info * now.
13665 (select_singlestep_lwp_callback): Ditto.
13666 (select_event_lwp_callback): Ditto.
13667 (cancel_breakpoints_callback): Ditto.
13668 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13670 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13671 (unsuspend_one_lwp): Update, "entry" parameter is a
13672 struct thread_info * now.
13673 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13675 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13676 Fetch lwpid from thread, not lwp.
13677 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13678 Pass &all_threads to find_inferior, not &all_lwps.
13679 (send_sigstop): Fetch lwpid from thread, not lwp.
13680 (send_sigstop_callback): Update, "entry" parameter is a
13681 struct thread_info * now.
13682 (suspend_and_send_sigstop_callback): Ditto.
13683 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13684 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13685 struct thread_info * now.
13686 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13688 (lwp_running): Update, "entry" parameter is a
13689 struct thread_info * now.
13690 (stop_all_lwps): Fetch ptid from thread.
13691 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13692 (linux_resume_one_lwp): Fetch lwpid from thread.
13693 (linux_set_resume_request): Update, "entry" parameter is a
13694 struct thread_info * now. Fetch pid, lwpid from thread.
13695 (resume_status_pending_p): Update, "entry" parameter is a
13696 struct thread_info * now.
13697 (need_step_over_p): Ditto. Fetch lwpid from thread.
13698 (start_step_over): Fetch lwpid from thread.
13699 (linux_resume_one_thread): Update, "entry" parameter is a
13700 struct thread_info * now. Fetch lwpid from thread.
13701 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13702 (proceed_one_lwp): Update, "entry" parameter is a
13703 struct thread_info * now. Fetch lwpid from thread.
13704 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13705 struct thread_info * now.
13706 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13707 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13708 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13710 (regsets_store_inferior_registers): Ditto.
13711 (fetch_register, store_register): Ditto.
13712 (linux_read_memory, linux_write_memory): Ditto.
13713 (linux_request_interrupt): Ditto.
13714 (linux_read_auxv): Ditto.
13715 (linux_xfer_siginfo): Ditto.
13716 (linux_qxfer_spu): Ditto.
13717 (linux_qxfer_libraries_svr4): Ditto.
13718 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13719 moved to inferiors.h.
13721 (get_thread_lwp): Update.
13722 (struct lwp_info): Delete member "entry". Simplify comment for
13724 (all_lwps): Delete.
13725 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13726 current_inferior directly.
13727 (update_watch_registers_callback): Update, "entry" parameter is a
13728 struct thread_info * now. Fetch pid from thread.
13729 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13730 (mips_insert_point): Fetch lwpid from current_inferior.
13731 Pass &all_threads to find_inferior, not &all_lwps.
13732 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13733 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13735 (mips_stopped_data_address): Ditto.
13736 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13738 * linux-tile-low.c (tile_arch_setup): Ditto.
13739 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13740 (update_debug_registers_callback): Update, "entry" parameter is a
13741 struct thread_info * now. Fetch pid from thread.
13742 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13743 Pass &all_threads to find_inferior, not &all_lwps.
13744 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13745 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13746 Pass &all_threads to find_inferior, not &all_lwps.
13747 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13748 (i386_dr_low_get_status): Ditto.
13749 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13750 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13751 (x86_linux_read_description): Ditto.
13752 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13754 2014-02-20 Doug Evans <dje@google.com>
13756 * inferiors.c (get_first_inferior): Fix buglet.
13758 2014-02-19 Doug Evans <dje@google.com>
13760 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13761 * inferiors.c (add_thread): Change result type to struct thread_info *.
13762 All callers updated.
13763 (add_lwp): Call add_thread here instead of in callers.
13764 All callers updated.
13765 * linux-low.h (get_lwp_thread): Rewrite.
13766 (struct lwp_info): New member "thread".
13768 2014-02-19 Doug Evans <dje@google.com>
13770 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13771 All callers updated.
13773 2014-02-19 Doug Evans <dje@google.com>
13775 * inferiors.c (add_thread): Fix whitespace.
13777 2014-02-19 Doug Evans <dje@google.com>
13779 * dll.c (clear_dlls): Replace accessing list implemention details
13781 * gdbthread.h (get_first_thread): Declare.
13782 * inferiors.c (for_each_inferior_with_data): New function.
13783 (get_first_thread): New function.
13784 (find_thread_ptid): Simplify.
13785 (get_first_inferior): New function.
13786 (clear_list): Delete.
13787 (one_inferior_p): New function.
13788 (clear_inferior_list): New function.
13789 (clear_inferiors): Update.
13790 * inferiors.h (for_each_inferior_with_data): Declare.
13791 (clear_inferior_list): Declare.
13792 (one_inferior_p): Declare.
13793 (get_first_inferior): Declare.
13794 * linux-low.c (linux_wait_for_event): Replace accessing list
13795 implemention details with API function.
13796 * server.c (target_running): Ditto.
13797 (accumulate_file_name_length): New function.
13798 (emit_dll_description): New function.
13799 (handle_qxfer_libraries): Replace accessing list implemention
13800 details with API function.
13801 (handle_qxfer_threads_worker): New function.
13802 (handle_qxfer_threads_proper): Replace accessing list implemention
13803 details with API function.
13804 (handle_query): Ditto.
13805 (visit_actioned_threads_callback_ftype): New typedef.
13806 (visit_actioned_threads_data): New struct.
13807 (visit_actioned_threads): Rewrite to be find_inferior callback.
13808 (resume): Call find_inferior.
13809 (handle_status): Replace accessing list implemention
13810 details with API function.
13811 (process_serial_event): Replace accessing list implemention details
13813 * target.c (set_desired_inferior): Replace accessing list implemention
13814 details with API function.
13815 * tracepoint.c (same_process_p): New function.
13816 (gdb_agent_about_to_close): Replace accessing list implemention
13817 details with API function.
13818 * win32-low.c (child_delete_thread): Replace accessing list
13819 implemention details with API function.
13820 (match_dll_by_basename): New function.
13821 (dll_is_loaded_by_basename): New function.
13822 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13823 details call to dll_is_loaded_by_basename.
13825 2014-02-19 Doug Evans <dje@google.com>
13827 * dll.h (struct dll_info): Add comment.
13828 * gdbthread.h (struct thread_info): Add comment.
13829 (current_ptid): Simplify.
13830 * inferiors.c (add_process): Update.
13831 (remove_process): Update.
13832 * inferiors.h (struct process_info): Rename member "head" to "entry".
13833 * linux-low.c (delete_lwp): Update.
13835 (last_thread_of_process_p): Update.
13836 (kill_one_lwp_callback, linux_kill): Update.
13837 (status_pending_p_callback): Update.
13838 (wait_for_sigstop): Update. Simplify read of ptid.
13839 (start_step_over): Update.
13840 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13841 (get_lwp_thread): Update.
13842 (struct lwp_info): Rename member "head" to "entry".
13843 * regcache.h (inferior_list_entry): Delete.
13844 * server.c (kill_inferior_callback): Update.
13845 (detach_or_kill_inferior_callback): Update.
13846 (print_started_pid): Update.
13847 (print_attached_pid): Update.
13848 (process_serial_event): Simplify read of ptid.
13849 * thread-db.c (thread_db_create_event): Update.
13850 (thread_db_get_tls_address): Update.
13851 * win32-low.c (current_inferior_ptid): Simplify.
13853 2014-02-19 Tom Tromey <tromey@redhat.com>
13855 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13857 (target_supports_btrace): Update.
13859 2014-02-14 Yao Qi <yao@codesourcery.com>
13861 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13862 (rsp-low-ipa.o): New target.
13864 2014-02-12 Tom Tromey <tromey@redhat.com>
13866 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13867 convert_ascii_to_int.
13868 * regcache.c (registers_to_string): Likewise.
13869 * remote-utils.c (decode_M_packet): Likewise.
13870 * server.c (process_serial_event): Likewise.
13872 2014-02-12 Tom Tromey <tromey@redhat.com>
13874 * server.c (handle_query, handle_v_run): Use hex2bin, not
13876 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13878 2014-02-12 Tom Tromey <tromey@redhat.com>
13880 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13881 convert_int_to_ascii.
13882 * regcache.c (registers_to_string, collect_register_as_string):
13884 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13886 * server.c (process_serial_event): Likewise.
13887 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13888 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13890 2014-02-12 Tom Tromey <tromey@redhat.com>
13892 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13893 bin2hex, not hexify.
13894 * tracepoint.c (cmd_qtstatus): Likewise.
13896 2014-02-12 Tom Tromey <tromey@redhat.com>
13898 * remote-utils.c (monitor_output): Pass explicit length to
13901 2014-02-12 Tom Tromey <tromey@redhat.com>
13903 * tracepoint.c: Include rsp-low.h.
13904 * server.c: Include rsp-low.h.
13905 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13906 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13908 * remote-utils.c: Include rsp-low.h.
13909 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13910 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13911 (convert_int_to_ascii, convert_ascii_to_int): Move to
13913 * regcache.c: Include rsp-low.h.
13914 * ax.c: Include rsp-low.h.
13915 * Makefile.in (SFILES): Add common/rsp-low.c.
13916 (OBS): Add rsp-low.o.
13917 (rsp-low.o): New target.
13919 2014-02-12 Tom Tromey <tromey@redhat.com>
13921 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13922 Include print-utils.h.
13923 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13924 (plongest, thirty_two, phex_nz): Remove.
13925 * Makefile.in (SFILES): Add common/print-utils.c.
13926 (OBS): Add print-utils.o.
13927 (print-utils-ipa.o): New target.
13928 (print-utils.o): New target.
13929 (IPA_OBJS): Add print-utils-ipa.o.
13931 2014-02-06 Tom Tromey <tromey@redhat.com>
13933 * Makefile.in (SFILES): Fix indentation.
13935 2014-02-05 Doug Evans <dje@google.com>
13937 * linux-low.c (linux_wait_for_event): Improve comment.
13938 (linux_wait_1): Keep current_inferior in sync with event_child.
13940 2014-01-22 Doug Evans <dje@google.com>
13942 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13944 2014-01-22 Doug Evans <dje@google.com>
13946 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13947 * configure: Regenerate.
13948 * config.in: Regenerate.
13949 * Makefile.in (SFILES): Add debug.c.
13950 (OBS): Add debug.o.
13951 * debug.c: New file.
13952 * debug.h: New file.
13953 * linux-aarch64-low.c (*): Update all debugging printfs to use
13954 debug_printf instead of fprintf.
13955 * linux-arm-low.c (*): Ditto.
13956 * linux-cris-low.c (*): Ditto.
13957 * linux-crisv32-low.c (*): Ditto.
13958 * linux-m32r-low.c (*): Ditto.
13959 * linux-sparc-low.c (*): Ditto.
13960 * linux-x86.c (*): Ditto.
13961 * linux-low.c (*): Ditto.
13962 (linux_wait_1): Add calls to debug_enter, debug_exit.
13963 (linux_wait): Remove redundant debugging printf.
13964 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13965 (linux_resume, unstop_all_lwps): Ditto.
13966 * mem-break.c (*): Update all debugging printfs to use
13967 debug_printf instead of fprintf.
13968 * remote-utils.c (*): Ditto.
13969 * thread-db.c (*): Ditto.
13970 * server.c #include <ctype.h>, "gdb_vecs.h".
13971 (debug_threads): Moved to debug.c.
13972 (*): Update all debugging printfs to use debug_printf instead of
13974 (start_inferior): Replace call to fflush with call to debug_flush.
13975 (monitor_show_help): Mention set debug-format.
13976 (parse_debug_format_options): New function.
13977 (handle_monitor_command): Handle "monitor set debug-format".
13978 (gdbserver_usage): Mention --debug-format.
13979 (main): Parse --debug-format.
13980 * server.h (debug_threads): Declaration moved to debug.h.
13981 #include "debug.h".
13982 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13983 trace_debug_1 that uses debug_printf.
13984 (tracepoint_look_up_symbols): Update all debugging printfs to use
13985 debug_printf instead of fprintf.
13987 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13989 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13992 2014-01-17 Pedro Alves <palves@redhat.com>
13995 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13996 defined after including gdb_proc_service.h.
13998 2014-01-16 Doug Evans <dje@google.com>
14000 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
14001 (match_dll): Use it.
14003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14005 * target.h (target_ops) <read_btrace>: Change parameters and
14006 return type to allow error reporting.
14007 * server.c (handle_qxfer_btrace): Support delta reads. Pass
14008 trace reading errors on.
14009 * linux-low.c (linux_low_read_btrace): Pass trace reading
14011 (linux_low_disable_btrace): New.
14013 2014-01-15 Doug Evans <dje@google.com>
14015 * inferiors.c (thread_id_to_gdb_id): Delete.
14016 * inferiors.h (thread_id_to_gdb_id): Delete.
14018 2014-01-13 Eli Zaretskii <eliz@gnu.org>
14020 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
14021 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
14024 2014-01-08 Pedro Alves <palves@redhat.com>
14026 * server.c (handle_status): Don't discard previous queued stop
14027 replies or thread's pending status here.
14028 (main) <disconnection>: Do it here instead.
14030 2014-01-08 Pedro Alves <palves@redhat.com>
14032 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
14033 * server.c (visit_actioned_threads, handle_pending_status): New
14035 (handle_v_cont): Factor out parts to ...
14036 (resume): ... this new function. If in all-stop, and a thread
14037 being resumed has a pending status, report it without actually
14039 (myresume): Adjust to use the new 'resume' function.
14040 (clear_pending_status_callback, set_pending_status_callback)
14041 (find_status_pending_thread_callback): New functions.
14042 (handle_status): Handle the case of multiple threads having
14043 interesting statuses to report. Report threads' real last signal
14044 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
14045 with an interesting thread to report the status for, instead of
14046 always reporting the status of the first thread.
14048 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14050 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14051 * gdbreplay.c (gdbreplay_version): Likewise.
14053 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14055 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14056 iov.iov_len with the real length in use.
14058 2013-12-13 Joel Brobecker <brobecker@adacore.com>
14060 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14061 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14062 for all targets that use win32-low.c.
14063 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14064 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14066 2013-12-13 Pedro Alves <palves@redhat.com>
14068 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14069 if equal to TARGET_WAITKIND_LOADED.
14070 * win32-low.c (cached_status): New static global.
14071 (win32_wait): Add declaration.
14072 (do_initial_child_stuff): Flush all initial pending debug events
14073 up to the initial breakpoint.
14074 (win32_wait): If CACHED_STATUS was set, return that instead
14075 of doing a real wait. Remove the code resuming the execution
14076 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14077 during the initial phase. Also remove the code changing
14078 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14079 TARGET_WAITKIND_STOPPED.
14081 2013-12-11 Yao Qi <yao@codesourcery.com>
14083 * notif.c (handle_notif_ack): Return 0 if no notification
14086 2013-11-20 Doug Evans <dje@google.com>
14088 * linux-low.c (linux_set_resume_request): Fix comment.
14090 2013-11-20 Doug Evans <dje@google.com>
14092 * linux-low.c (resume_status_pending_p): Tweak comment.
14094 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14096 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14097 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14098 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14099 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14100 (srv_amd64_regobj): Add amd64-mpx.o.
14101 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14102 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14103 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14104 * i387-fp.c (num_pl_bnd_register) Added constant.
14105 (num_pl_bnd_cfg_registers) Added constant.
14106 (struct i387_xsave) Added reserved area and MPX fields.
14107 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14108 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14110 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14111 (init_registers_amd64_mpx_linux): Declare new function.
14112 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14113 (x86_64_regmap): Add MPX registers.
14114 (x86_linux_read_description): Add MPX case.
14115 (initialize_low_arch): Initialize MPX targets.
14117 2013-11-18 Tom Tromey <tromey@redhat.com>
14119 * configure: Rebuild.
14120 * configure.ac: Don't check for stdlib.h.
14121 * gdbreplay.c: Unconditionally include stdlib.h.
14123 2013-11-18 Tom Tromey <tromey@redhat.com>
14125 * config.in: Rebuild.
14126 * configure: Rebuild.
14127 * configure.ac: Don't use AC_HEADER_DIRENT.
14129 2013-11-18 Tom Tromey <tromey@redhat.com>
14131 * server.h: Don't check HAVE_STRING_H.
14132 * gdbreplay.c: Don't check HAVE_STRING_H.
14133 * configure: Rebuild.
14135 2013-11-18 Tom Tromey <tromey@redhat.com>
14137 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14140 2013-11-08 Tom Tromey <tromey@redhat.com>
14142 * configure, config.in: Rebuild.
14143 * configure.ac: Remove unused configury.
14145 2013-11-08 Tom Tromey <tromey@redhat.com>
14147 * acinclude.m4: Include common.m4, codeset.m4.
14148 * configure, config.in: Rebuild.
14149 * configure.ac: Use GDB_AC_COMMON.
14151 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14153 * linux-s390-low.c (HWCAP_S390_TE): New define.
14154 (s390_arch_setup): Consider the TE field in the HWCAP for
14155 determining 'have_regset_tdb'.
14157 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14160 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14163 2013-10-02 Pedro Alves <palves@redhat.com>
14165 * server.c (process_serial_event): Don't output "GDBserver
14166 exiting" if GDB is connected through stdio.
14167 * target.c (mywait): Likewise, be silent if GDB is connected
14170 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14172 * lynx-low.c (lynx_add_threads_after_attach): New function.
14173 (lynx_attach): Remove call to add_thread. Add call to
14174 lynx_add_threads_after_attach instead.
14176 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14178 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14179 * config.in, configure: Regenerated.
14181 2013-09-18 Yao Qi <yao@codesourcery.com>
14184 * server.c (start_inferior): Clear 'resume_info'.
14186 2013-09-16 Jiong Wang <jiwang@tilera.com>
14188 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14191 2013-09-16 Jiong Wang <jiwang@tilera.com>
14193 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14194 linux-tile-low.o to srv_tgtobj.
14196 2013-09-16 Will Newton <will.newton@linaro.org>
14198 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14201 2013-09-06 Pedro Alves <palves@redhat.com>
14203 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14204 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14205 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14206 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14207 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14208 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14210 2013-09-06 Pedro Alves <palves@redhat.com>
14212 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14213 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14215 2013-09-06 Pedro Alves <palves@redhat.com>
14217 * linux-amd64-ipa.c: Include tracepoint.h.
14218 * linux-i386-ipa.c: Include tracepoint.h.
14220 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14222 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14223 (ps_get_thread_area): New function.
14225 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14227 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14228 (initialize_low_arch): Call init_registers_crisv32 rather than
14229 init_register_crisv32.
14231 2013-09-05 Pedro Alves <palves@redhat.com>
14233 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14235 * hostio.h: ... this new file.
14236 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14237 win32-low.c: Include hostio.h.
14239 2013-09-05 Pedro Alves <palves@redhat.com>
14241 * server.h (gdb_client_data, handler_func, callback_handler_func)
14242 (delete_file_handler, add_file_handler, append_callback_event)
14243 (delete_callback_event, start_event_loop, initialize_event_loop):
14244 Move to event-loop.h and include it.
14245 * event-loop.h: New file.
14247 2013-09-05 Pedro Alves <palves@redhat.com>
14249 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14250 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14251 (loaded_dll, unloaded_dll): Move to ...
14252 * dll.h: ... this new file.
14253 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14255 2013-09-05 Pedro Alves <palves@redhat.com>
14257 * server.h (current_process, get_thread_process, all_processes)
14258 (add_inferior_to_list, for_each_inferior, current_inferior)
14259 (remove_inferior, add_process, remove_process, find_process_pid)
14260 (have_started_inferiors_p, have_attached_inferiors_p)
14261 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14262 (clear_inferiors, find_inferior, find_inferior_id)
14263 (inferior_target_data, set_inferior_target_data)
14264 (inferior_regcache_data, set_inferior_regcache_data): Move to
14265 inferiors.h, and include it.
14266 * inferiors.h: New file.
14268 2013-09-05 Pedro Alves <palves@redhat.com>
14270 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14274 2013-09-05 Pedro Alves <palves@redhat.com>
14276 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14278 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14279 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14280 (handle_tracepoint_general_set, handle_tracepoint_query)
14281 (tracepoint_finished_step, tracepoint_was_hit)
14282 (release_while_stepping_state_list, current_traceframe)
14283 (in_readonly_region, traceframe_read_mem)
14284 (fetch_traceframe_registers, traceframe_read_sdata)
14285 (traceframe_read_info, struct fast_tpoint_collect_status)
14286 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14287 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14288 (supply_fast_tracepoint_registers)
14289 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14290 (ipa_tdesc, claim_trampoline_space)
14291 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14292 (agent_mem_read, agent_get_trace_state_variable_value)
14293 (agent_set_trace_state_variable_value, agent_tsv_read)
14294 (agent_mem_read_string, get_raw_reg_func_addr)
14295 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14296 * tracepoint.h: ... this new file.
14298 2013-09-05 Pedro Alves <palves@redhat.com>
14300 * server.h (perror_with_name, error, fatal, warning, paddress)
14301 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14303 * utils.h: New file.
14305 2013-09-05 Pedro Alves <palves@redhat.com>
14307 * server.h (remote_debug, noack_mode, transport_is_reliable)
14308 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14309 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14310 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14311 (write_enn, initialize_async_io, enable_async_io)
14312 (disable_async_io, check_remote_input_interrupt_request)
14313 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14314 (dead_thread_notify, prepare_resume_reply)
14315 (decode_address_to_semicolon, decode_address, decode_m_packet)
14316 (decode_M_packet, decode_X_packet, decode_xfer_write)
14317 (decode_search_memory_packet, unhexify, hexify)
14318 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14319 (look_up_one_symbol, relocate_instruction)
14320 (monitor_output): Move to remote-utils.h, and include it.
14321 * remote-utils.h: New file.
14323 2013-09-05 Pedro Alves <palves@redhat.com>
14325 * server.h (_): Delete.
14327 2013-09-02 Pedro Alves <palves@redhat.com>
14329 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14330 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14332 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14334 2013-09-02 Pierre Muller <muller@sourceware.org>
14336 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14337 or WriteProcessMemory complete successfully and handle
14338 ERROR_PARTIAL_COPY error.
14340 2013-09-02 Pedro Alves <palves@redhat.com>
14342 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14343 error instead of EIO.
14345 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14348 * linux-low.c: Include filestuff.h.
14349 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14350 * lynx-low.c: Include filestuff.h.
14351 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14352 * server.c: Include filestuff.h.
14353 (main): Call notice_open_fds.
14354 * spu-low.c: Include filestuff.h.
14355 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14357 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14359 * Makefile.in: Explain why ../target and ../nat are not
14360 listed as include file search paths.
14361 (linux-waitpid.o): New object file rule.
14362 * configure.srv (srv_native_linux_obj): New variable.
14363 Replace all occurrences of linux native object files with
14364 $srv_native_linux_obj.
14365 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14366 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14367 (linux_enable_event_reporting): Remove declaration.
14368 (my_waitpid): Moved to common/linux-waitpid.c.
14369 (linux_wait_for_event): Pass ptid when calling
14370 linux_enable_event_reporting.
14371 (linux_supports_tracefork_flag): Remove.
14372 (linux_enable_event_reporting): Likewise.
14373 (linux_tracefork_grandchild): Remove.
14374 (STACK_SIZE): Moved to common/linux-ptrace.c.
14375 (linux_tracefork_child): Remove.
14376 (linux_test_for_tracefork): Remove.
14377 (linux_look_up_symbols): Call linux_supports_traceclone.
14378 (initialize_low): Remove call to linux_test_for_tracefork.
14379 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14380 common/linux-ptrace.h.
14381 (PTRACE_TYPE_ARG4): Likewise.
14382 Include linux-ptrace.h.
14384 2013-08-21 Pedro Alves <palves@redhat.com>
14386 * config.in: Renegerate.
14388 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14390 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14391 (SFILES): Remove $(srcdir)/common/target-common.c and
14392 add $(srcdir)/target/waitstatus.c.
14393 (OBS): Remove target-common.o and add waitstatus.o.
14394 (server_h): Remove $(srcdir)/../common/target-common.h and
14395 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14396 and $(srcdir)/../target/waitstatus.h.
14397 (target-common.o): Remove.
14398 (waitstatus.o): New target object file.
14399 * target.h: Do not include target-common.h and
14400 include target/resume.h, target/wait.h and
14401 target/waitstatus.h.
14403 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14405 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14406 to PTRACE_TYPE_ARG3.
14407 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14408 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14410 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14411 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14413 2013-07-27 Jie Zhang <jie@codesourcery.com>
14414 Daniel Jacobowitz <dan@codesourcery.com>
14415 Yao Qi <yao@codesourcery.com>
14417 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14418 (mips-linux-watch.o): New rule.
14419 (mips_linux_watch_h): New variable.
14420 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14422 * linux-mips-low.c: Include mips-linux-watch.h.
14423 (struct arch_process_info, struct arch_lwp_info): New.
14424 (update_watch_registers_callback): New function.
14425 (mips_linux_new_process, mips_linux_new_thread) New functions.
14426 (mips_linux_prepare_to_resume, mips_insert_point): New
14428 (mips_remove_point, mips_stopped_by_watchpoint): New
14430 (rsp_bp_type_to_target_hw_bp_type): New function.
14431 (mips_stopped_data_address): New function.
14432 (the_low_target): Add watchpoint support functions.
14434 2013-07-27 Yao Qi <yao@codesourcery.com>
14436 * i386-low.c: Include break-common.h.
14437 (enum target_hw_bp_type): Remove.
14439 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14441 * Makefile.in (SFILES): /common/target-common.c.
14442 (OBS): Add target-common.o.
14443 (server_h): Add $(srcdir)/../common/target-common.h.
14444 (target-common.o): New target.
14445 * server.c (queue_stop_reply_callback): Free
14446 status string after use.
14447 * target.c (target_waitstatus_to_string): Remove.
14448 * target.h: Include target-common.h.
14449 (resume_kind): Likewise.
14450 (target_waitkind): Likewise.
14451 (target_waitstatus): Likewise.
14452 (TARGET_WNOHANG): Likewise.
14454 2013-07-04 Yao Qi <yao@codesourcery.com>
14456 * Makefile.in (host_alias): Use @host_noncanonical@.
14457 (target_alias): Use @target_noncanonical@.
14458 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14459 ACX_NONCANONICAL_HOST.
14460 * configure: Regenerated.
14463 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14465 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14466 * configure: Rebuild.
14467 * Makefile.in (version_host, version_target): Get from configure.
14468 (version.c): Use $(version_host) and $(version_target).
14470 2013-07-03 Pedro Alves <palves@redhat.com>
14472 * Makefile.in (config.status): Depend on development.sh.
14473 * acinclude.m4: Include libmcheck.m4.
14474 * configure: Regenerate.
14476 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14478 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14479 attribute inside the parentheses.
14480 (winapi_DebugSetProcessKillOnExit): Ditto.
14481 (winapi_DebugBreakProcess): Ditto.
14482 (winapi_GenerateConsoleCtrlEvent): Ditto.
14484 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14486 * notif.h (notif_event): Add a dummy member to avoid compiler
14489 2013-07-01 Pedro Alves <palves@redhat.com>
14491 * hostio.c (HOSTIO_PATH_MAX): Define.
14492 (require_filename, handle_open, handle_unlink, handle_readlink):
14495 2013-07-01 Pedro Alves <palves@redhat.com>
14497 * server.h: Include "pathmax.h".
14498 * linux-low.c: Don't include sys/param.h.
14499 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14501 * win32-low.c: Don't include sys/param.h.
14502 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14504 2013-07-01 Pedro Alves <palves@redhat.com>
14506 * event-loop.c: Don't check HAVE_UNISTD_H before including
14508 * gdbreplay.c: Likewise.
14509 * remote-utils.c: Likewise.
14510 * server.c: Likewise.
14511 * configure.ac: Don't check for unistd.h.
14512 * configure: Regenerate.
14514 2013-06-28 Tom Tromey <tromey@redhat.com>
14516 * Makefile.in (version.c): Use version.in, not
14519 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14521 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14522 * configure: Rebuild.
14523 * Makefile.in (version_host, version_target): Get from configure.
14524 (version.c): Use $(version_host) and $(version_target).
14526 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14528 Fix trace-status to output user name without trailing colon.
14529 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14531 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14533 Fix trace-status to output proper start-time and stop-time.
14534 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14535 output start time and stop time in hex as gdb expects.
14537 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14539 * tracepoint.c (build_traceframe_info_xml): Output trace state
14540 variables present in the trace buffer.
14542 2013-06-24 Tom Tromey <tromey@redhat.com>
14544 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14546 (version.o): Remove.
14547 * gdbreplay.c: Include version.h.
14548 (version, host_name): Don't declare.
14549 * server.h: Include version.h.
14550 (version, host_name): Don't declare.
14552 2013-06-12 Pedro Alves <palves@redhat.com>
14554 * linux-x86-low.c (linux_is_elf64): Delete global.
14555 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14556 with local linux_pid_exe_is_elf_64_file use.
14558 2013-06-11 Pedro Alves <palves@redhat.com>
14560 * linux-low.c (regset_disabled, disable_regset): New functions.
14561 (regsets_fetch_inferior_registers)
14562 (regsets_store_inferior_registers): Use them.
14563 (initialize_regsets_info); Don't allocate the disabled_regsets
14565 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14568 2013-06-11 Pedro Alves <palves@redhat.com>
14570 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14573 2013-06-11 Pedro Alves <palves@redhat.com>
14575 * linux-x86-low.c (initialize_low_arch): Call
14576 init_registers_x32_avx_linux.
14578 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14580 Fix compatibility with Android Bionic.
14581 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14584 2013-06-07 Pedro Alves <palves@redhat.com>
14587 * Makefile.in (OBS): Add tdesc.o.
14588 (IPA_OBJS): Add tdesc-ipa.o.
14589 (tdesc-ipa.o): New rule.
14590 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14592 * linux-low.c (new_inferior): Delete.
14593 (disabled_regsets, num_regsets): Delete.
14594 (linux_add_process): Adjust to set the new per-process
14596 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14597 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14598 was a stop. When calling arch_setup, switch the current inferior
14599 to the thread that got an event.
14600 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14601 (regsets_fetch_inferior_registers)
14602 (regsets_store_inferior_registers): New regsets_info parameter.
14604 (linux_register_in_regsets): New regs_info parameter. Adjust to
14606 (register_addr, fetch_register, store_register): New usrregs_info
14607 parameter. Adjust to use it.
14608 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14609 parameter regs_info. Adjust to use it.
14610 (linux_fetch_registers): Get the current inferior's regs_info, and
14612 (linux_store_registers): Ditto.
14613 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14614 (initialize_low): Don't initialize the target_regsets here. Call
14615 initialize_low_arch.
14616 * linux-low.h (target_regsets): Delete declaration.
14617 (struct regsets_info): New.
14618 (struct usrregs_info): New.
14619 (struct regs_info): New.
14620 (struct process_info_private) <new_inferior>: New field.
14621 (struct linux_target_ops): Delete the num_regs, regmap, and
14622 regset_bitmap fields. New field regs_info.
14623 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14624 * i387-fp.c (num_xmm_registers): Delete.
14625 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14626 calls to new interface.
14627 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14628 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14629 Infer the number of xmm registers from the regcache's target
14631 * i387-fp.h (num_xmm_registers): Delete.
14632 * inferiors.c (add_thread): Don't install the thread's regcache
14634 * proc-service.c (gregset_info): Fetch the current inferior's
14635 regs_info. Adjust to use it.
14636 * regcache.c: Include tdesc.h.
14637 (register_bytes, reg_defs, num_registers)
14638 (gdbserver_expedite_regs): Delete.
14639 (get_thread_regcache): If the thread doesn't have a regcache yet,
14640 create one, instead of aborting gdbserver.
14641 (regcache_invalidate_one): Rename to ...
14642 (regcache_invalidate_thread): ... this.
14643 (regcache_invalidate_one): New.
14644 (regcache_invalidate): Only invalidate registers of the current
14646 (init_register_cache): Add target_desc parameter, and use it.
14647 (new_register_cache): Ditto. Assert the target description has a
14648 non zero registers_size.
14649 (regcache_cpy): Add assertions. Adjust.
14650 (realloc_register_cache, set_register_cache): Delete.
14651 (registers_to_string, registers_from_string): Adjust.
14652 (find_register_by_name, find_regno, find_register_by_number)
14653 (register_cache_size): Add target_desc parameter, and use it.
14654 (free_register_cache_thread, free_register_cache_thread_one)
14655 (regcache_release, register_cache_size): New.
14656 (register_size): Add target_desc parameter, and use it.
14657 (register_data, supply_register, supply_register_zeroed)
14658 (supply_regblock, supply_register_by_name, collect_register)
14659 (collect_register_as_string, collect_register_by_name): Adjust.
14660 * regcache.h (struct target_desc): Forward declare.
14661 (struct regcache) <tdesc>: New field.
14662 (init_register_cache, new_register_cache): Add target_desc
14664 (regcache_invalidate_thread): Declare.
14665 (regcache_invalidate_one): Delete declaration.
14666 (regcache_release): Declare.
14667 (find_register_by_number, register_cache_size, register_size)
14668 (find_regno): Add target_desc parameter.
14669 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14671 * remote-utils.c: Include tdesc.h.
14672 (outreg, prepare_resume_reply): Adjust.
14673 * server.c: Include tdesc.h.
14674 (gdbserver_xmltarget): Delete declaration.
14675 (get_features_xml, process_serial_event): Adjust.
14676 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14678 (struct process_info) <tdesc>: New field.
14679 (ipa_tdesc): Declare.
14680 * tdesc.c: New file.
14681 * tdesc.h: New file.
14682 * tracepoint.c: Include tdesc.h.
14683 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14684 (get_context_regcache): Adjust to pass ipa_tdesc down.
14685 (do_action_at_tracepoint): Adjust to get the register cache size
14686 from the context regcache's description.
14687 (traceframe_walk_blocks): Adjust to get the register cache size
14688 from the current trace frame's description.
14689 (traceframe_get_pc): Adjust to get current trace frame's
14690 description and pass it down.
14691 (gdb_collect): Adjust to get the register cache size from the
14693 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14694 (gdbserver_xmltarget): Delete.
14695 (initialize_low_tracepoint): Set the ipa's target description.
14696 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14697 (initialize_low_tracepoint): Set the ipa's target description.
14698 * linux-x86-low.c: Include tdesc.h.
14699 [__x86_64__] (is_64bit_tdesc): New.
14700 (ps_get_thread_area, x86_get_thread_area): Use it.
14701 (i386_cannot_store_register): Rename to ...
14702 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14703 (i386_cannot_fetch_register): Rename to ...
14704 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14705 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14707 (target_regsets): Rename to ...
14708 (x86_regsets): ... this.
14709 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14711 (x86_siginfo_fixup): Use is_64bit_tdesc.
14712 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14713 (tdesc_x32_avx_linux, tdesc_x32_linux)
14714 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14716 (x86_linux_update_xmltarget): Delete.
14717 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14718 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14719 (AMD64_LINUX_USER64_CS): New.
14720 (x86_linux_read_description): New, based on
14721 x86_linux_update_xmltarget.
14722 (same_process_callback): New.
14723 (x86_arch_setup_process_callback): New.
14724 (x86_linux_update_xmltarget): New.
14725 (x86_regsets_info): New.
14726 (amd64_linux_regs_info): New.
14727 (i386_linux_usrregs_info): New.
14728 (i386_linux_regs_info): New.
14729 (x86_linux_regs_info): New.
14730 (x86_arch_setup): Reimplement.
14731 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14732 (x86_emit_ops): Ditto.
14733 (the_low_target): Adjust. Install x86_linux_regs_info,
14734 x86_cannot_fetch_register, and x86_cannot_store_register.
14735 (initialize_low_arch): New.
14736 * linux-ia64-low.c (tdesc_ia64): Declare.
14737 (ia64_fetch_register): Adjust.
14738 (ia64_usrregs_info, regs_info): New globals.
14739 (ia64_regs_info): New function.
14740 (the_low_target): Adjust.
14741 (initialize_low_arch): New function.
14742 * linux-sparc-low.c (tdesc_sparc64): Declare.
14743 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14745 (sparc_arch_setup): New function.
14746 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14747 (the_low_target): Adjust.
14748 (initialize_low_arch): New function.
14749 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14750 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14751 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14752 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14753 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14754 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14755 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14756 (tdesc_powerpc_isa205_vsx64l): Declare.
14757 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14758 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14759 (ppc_set_pc, ppc_get_hwcap): Adjust.
14760 (ppc_usrregs_info): Forward declare.
14761 (!__powerpc64__) ppc_regmap_adjusted: New global.
14762 (ppc_arch_setup): Adjust to the current process'es target
14764 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14765 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14766 (ppc_store_evrregset): Adjust.
14767 (target_regsets): Rename to ...
14768 (ppc_regsets): ... this, and make static.
14769 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14770 (ppc_regs_info): New function.
14771 (the_low_target): Adjust.
14772 (initialize_low_arch): New function.
14773 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14774 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14775 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14776 (tdesc_s390x_linux64v2): Declare.
14777 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14778 (s390_fill_gregset, s390_store_last_break): Adjust.
14779 (target_regsets): Rename to ...
14780 (s390_regsets): ... this, and make static.
14781 (s390_get_pc, s390_set_pc): Adjust.
14782 (s390_get_hwcap): New target_desc parameter, and use it.
14783 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14784 (s390_arch_setup): Adjust to set the current process'es target
14785 description. Don't adjust the regmap.
14786 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14787 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14788 (regs_info_3264): New globals.
14789 (s390_regs_info): New function.
14790 (the_low_target): Adjust.
14791 (initialize_low_arch): New function.
14792 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14793 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14794 [__mips64] (init_registers_mips_linux)
14795 (init_registers_mips_dsp_linux): Delete defines.
14796 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14797 (have_dsp): New global.
14798 (mips_read_description): New, based on mips_arch_setup.
14799 (mips_arch_setup): Reimplement.
14800 (get_usrregs_info): New function.
14801 (mips_cannot_fetch_register, mips_cannot_store_register)
14802 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14803 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14804 (target_regsets): Rename to ...
14805 (mips_regsets): ... this, and make static.
14806 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14807 (dsp_regs_info, regs_info): New globals.
14808 (mips_regs_info): New function.
14809 (the_low_target): Adjust.
14810 (initialize_low_arch): New function.
14811 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14812 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14814 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14815 (arm_read_description): New, with bits factored from
14817 (arm_arch_setup): Reimplement.
14818 (target_regsets): Rename to ...
14819 (arm_regsets): ... this, and make static.
14820 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14821 (arm_regs_info): New function.
14822 (the_low_target): Adjust.
14823 (initialize_low_arch): New function.
14824 * linux-m68k-low.c (tdesc_m68k): Declare.
14825 (target_regsets): Rename to ...
14826 (m68k_regsets): ... this, and make static.
14827 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14828 (m68k_regs_info): New function.
14829 (m68k_arch_setup): New function.
14830 (the_low_target): Adjust.
14831 (initialize_low_arch): New function.
14832 * linux-sh-low.c (tdesc_sharch): Declare.
14833 (target_regsets): Rename to ...
14834 (sh_regsets): ... this, and make static.
14835 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14836 (sh_regs_info, sh_arch_setup): New functions.
14837 (the_low_target): Adjust.
14838 (initialize_low_arch): New function.
14839 * linux-bfin-low.c (tdesc_bfin): Declare.
14840 (bfin_arch_setup): New function.
14841 (bfin_usrregs_info, regs_info): New globals.
14842 (bfin_regs_info): New function.
14843 (the_low_target): Adjust.
14844 (initialize_low_arch): New function.
14845 * linux-cris-low.c (tdesc_cris): Declare.
14846 (cris_arch_setup): New function.
14847 (cris_usrregs_info, regs_info): New globals.
14848 (cris_regs_info): New function.
14849 (the_low_target): Adjust.
14850 (initialize_low_arch): New function.
14851 * linux-cris-low.c (tdesc_crisv32): Declare.
14852 (cris_arch_setup): New function.
14853 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14854 (cris_regs_info): New function.
14855 (the_low_target): Adjust.
14856 (initialize_low_arch): New function.
14857 * linux-m32r-low.c (tdesc_m32r): Declare.
14858 (m32r_arch_setup): New function.
14859 (m32r_usrregs_info, regs_info): New globals.
14860 (m32r_regs_info): Adjust.
14861 (initialize_low_arch): New function.
14862 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14863 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14864 (tic6x_usrregs_info): Forward declare.
14865 (tic6x_read_description): New function, based on ...
14866 (tic6x_arch_setup): ... this. Reimplement.
14867 (target_regsets): Rename to ...
14868 (tic6x_regsets): ... this, and make static.
14869 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14870 (tic6x_regs_info): New function.
14871 (the_low_target): Adjust.
14872 (initialize_low_arch): New function.
14873 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14874 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14875 (target_regsets): Rename to ...
14876 (xtensa_regsets): ... this, and make static.
14877 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14879 (xtensa_arch_setup, xtensa_regs_info): New functions.
14880 (the_low_target): Adjust.
14881 (initialize_low_arch): New function.
14882 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14883 (nios2_arch_setup): Set the current process'es tdesc.
14884 (target_regsets): Rename to ...
14885 (nios2_regsets): ... this.
14886 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14887 (nios2_regs_info): New function.
14888 (the_low_target): Adjust.
14889 (initialize_low_arch): New function.
14890 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14891 (aarch64_arch_setup): Set the current process'es tdesc.
14892 (target_regsets): Rename to ...
14893 (aarch64_regsets): ... this.
14894 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14895 (aarch64_regs_info): New function.
14896 (the_low_target): Adjust.
14897 (initialize_low_arch): New function.
14898 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14900 (target_regsets): Rename to ...
14901 (tile_regsets): ... this.
14902 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14903 (tile_regs_info): New function.
14904 (tile_arch_setup): Set the current process'es tdesc.
14905 (the_low_target): Adjust.
14906 (initialize_low_arch): New function.
14907 * spu-low.c (tdesc_spu): Declare.
14908 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14909 * win32-arm-low.c (tdesc_arm): Declare.
14910 (arm_arch_setup): New function.
14911 (the_low_target): Install arm_arch_setup instead of
14912 init_registers_arm.
14913 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14914 (init_windows_x86): Rename to ...
14915 (i386_arch_setup): ... this. Set `win32_tdesc'.
14916 (the_low_target): Adjust.
14917 * win32-low.c (win32_tdesc): New global.
14918 (child_add_thread): Don't create the thread cache here.
14919 (do_initial_child_stuff): Set the new process'es tdesc.
14920 * win32-low.h (struct target_desc): Forward declare.
14921 (win32_tdesc): Declare.
14922 * lynx-i386-low.c (tdesc_i386): Declare global.
14923 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14924 * lynx-low.c (lynx_tdesc): New global.
14925 (lynx_add_process): Set the new process'es tdesc.
14926 * lynx-low.h (struct target_desc): Forward declare.
14927 (lynx_tdesc): Declare global.
14928 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14929 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14930 * nto-low.c (nto_tdesc): New global.
14931 (do_attach): Set the new process'es tdesc.
14932 * nto-low.h (struct target_desc): Forward declare.
14933 (nto_tdesc): Declare.
14934 * nto-x86-low.c (tdesc_i386): Declare.
14935 (nto_x86_arch_setup): Set `nto_tdesc'.
14937 2013-06-04 Gary Benson <gbenson@redhat.com>
14939 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14940 to qSupported response when appropriate.
14941 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14942 with nonzero-length annex.
14943 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14944 arguments supplied in annex.
14946 2013-05-31 Doug Evans <dje@google.com>
14949 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14950 64 bits in 64-cross-32 environment.
14952 2013-05-28 Pedro Alves <palves@redhat.com>
14954 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14955 (aarch64-without-fpu.c): Delete rule.
14956 * configure.srv (aarch64*-*-linux*): Remove references to
14957 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14958 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14961 2013-05-24 Pedro Alves <palves@redhat.com>
14963 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14964 instead of strchr/decode_address. Error if the range isn't split
14965 with a ','. Don't assume there's be a ':' in the action.
14967 2013-05-23 Yao Qi <yao@codesourcery.com>
14968 Pedro Alves <palves@redhat.com>
14970 * linux-low.c (lwp_in_step_range): New function.
14971 (linux_wait_1): If the thread was range stepping and stopped
14972 outside the stepping range, report the stop to GDB. Otherwise,
14973 continue stepping. Add range stepping debug output.
14974 (linux_set_resume_request): Copy the step range from the resume
14975 request to the lwp.
14976 (linux_supports_range_stepping): New.
14977 (linux_target_ops) <supports_range_stepping>: Set to
14978 linux_supports_range_stepping.
14979 * linux-low.h (struct linux_target_ops)
14980 <supports_range_stepping>: New field.
14981 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14982 * linux-x86-low.c (x86_supports_range_stepping): New.
14983 (the_low_target) <supports_range_stepping>: Set to
14984 x86_supports_range_stepping.
14985 * server.c (handle_v_cont): Handle 'r' action.
14986 (handle_v_requests): Append ";r" if the target supports range
14988 * target.h (struct thread_resume) <step_range_start,
14989 step_range_end>: New fields.
14990 (struct target_ops) <supports_range_stepping>:
14992 (target_supports_range_stepping): New macro.
14994 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14996 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14997 confusion in comment.
14999 2013-05-17 Joel Brobecker <brobecker@adacore.com>
15001 * lynx-low.c (struct process_info_private): New type.
15002 (lynx_add_process): New function.
15003 (lynx_create_inferior, lynx_attach): Replace calls to
15004 add_process by calls to lynx_add_process.
15005 (lynx_resume): If PTID is null, then try using
15006 current_process()->private->last_wait_event_ptid.
15008 (lynx_clear_inferiors): Delete. The contents of that function
15009 has been inlined in lynx_mourn;
15010 (lynx_wait_1): Save the ptid in the process's private data.
15011 (lynx_mourn): Free the process' private data. Replace call
15012 to lynx_clear_inferiors by call to clear_inferiors.
15014 2013-05-17 Yao Qi <yao@codesourcery.com>
15016 * i386-low.c (i386_length_and_rw_bits): Move the comment to
15019 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
15021 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
15022 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
15023 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
15024 PT_TEXT_END_ADDR guards. Update comments.
15025 (linux_target_op) <read_offsets>: Conditionally define to
15026 linux_read_offsets if the target is UCLIBC and if it defines
15027 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
15029 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
15030 Andrew Jenner <andrew@codesourcery.com>
15032 * Makefile.in (SFILES): Add linux-nios2-low.c.
15033 (clean): Add action to delete nios2-linux.c.
15034 (nios2-linux.c): New rule.
15035 * configure.srv: Add nios2*-*-linux*.
15036 * linux-nios2-low.c: New.
15038 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
15040 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
15042 2013-04-25 Hui Zhu <hui@codesourcery.com>
15045 * ax.c (ax_printf): Add fflush.
15047 2013-04-22 Tom Tromey <tromey@redhat.com>
15049 * Makefile.in (SFILES): Add filestuff.c.
15050 (OBS): Add filestuff.o.
15051 (filestuff.o): New target.
15052 * config.in, configure: Rebuild.
15053 * configure.ac: Check for fdwalk, pipe2.
15055 2013-04-17 Pedro Alves <palves@redhat.com>
15057 * configure.ac (USE_THREAD_DB): Delete variable.
15058 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15059 Don't AC_SUBST USE_THREAD_DB.
15060 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15061 * config.in, configure: Regenerate.
15063 2013-04-16 Pedro Alves <palves@redhat.com>
15065 * linux-low.h (struct lwp_info) <thread_known>: Move under
15066 the USE_THREAD_DB #ifdef.
15068 2013-04-16 Pedro Alves <palves@redhat.com>
15070 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15071 (linux-low.o): Delete rule.
15072 * linux-low.h: Always include "gdb_thread_db.h" instead of
15073 conditionally including thread_db.h.
15074 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15077 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15079 * Makefile.in (install-only): Fix make install regression.
15081 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15083 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15084 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15086 * gdbserver.1: Remove.
15088 2013-03-22 Pedro Alves <palves@redhat.com>
15090 * linux-low.c (handle_extended_wait): Don't call
15091 linux_enable_event_reporting.
15093 2013-03-15 Tony Theodore <tonyt@logyst.com>
15096 * Makefile.in (SHELL): Use @SHELL@.
15098 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15100 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15103 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15105 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15106 Remove extraneous NULL element.
15108 2013-03-13 Yao Qi <yao@codesourcery.com>
15110 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15111 'V' block in trace frame.
15113 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15115 * target.h (struct target_ops): Add btrace ops.
15116 (target_supports_btrace): New macro.
15117 (target_enable_btrace): New macro.
15118 (target_disable_btrace): New macro.
15119 (target_read_btrace): New macro.
15120 * gdbthread.h (struct thread_info): Add btrace field.
15121 * server.c: Include btrace-common.h.
15122 (handle_btrace_general_set): New function.
15123 (handle_btrace_enable): New function.
15124 (handle_btrace_disable): New function.
15125 (handle_general_set): Call handle_btrace_general_set.
15126 (handle_qxfer_btrace): New function.
15127 (struct qxfer qxfer_packets[]): Add btrace entry.
15128 * inferiors.c (remove_thread): Disable btrace.
15129 * linux-low: Include linux-btrace.h.
15130 (linux_low_enable_btrace): New function.
15131 (linux_low_read_btrace): New function.
15132 (linux_target_ops): Add btrace ops.
15133 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15134 Add srv_linux_btrace=yes.
15135 (x86_64-*-linux*): Add linux-btrace.o.
15136 Add srv_linux_btrace=yes.
15137 * configure.ac: Define HAVE_LINUX_BTRACE.
15138 * config.in: Regenerated.
15139 * configure: Regenerated.
15141 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15143 * server.c (handle_qxfer): Preserve error message if -3 is
15145 (qxfer): Document the -3 return value.
15147 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15149 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15150 (linux_btrace_h): New variable.
15151 (linux-btrace.o): New rule.
15153 2013-03-08 Stan Shebs <stan@codesourcery.com>
15154 Hafiz Abid Qadeer <abidh@codesourcery.com>
15156 * tracepoint.c (trace_buffer_size): New global.
15157 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15158 (init_trace_buffer): Change to one-argument function. Allocate
15159 trace buffer memory.
15160 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15161 handle QTBuffer:size packet.
15162 (cmd_bigqtbuffer_size): New function.
15163 (initialize_tracepoint): Call init_trace_buffer with
15164 DEFAULT_TRACE_BUFFER_SIZE.
15165 * server.c (handle_query): Add QTBuffer:size in the
15168 2013-03-07 Yao Qi <yao@codesourcery.com>
15170 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15171 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15173 (cmd_qtsp): Adjust condition. Do post increment.
15174 Set cur_action and cur_step_action back to 0.
15176 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15179 * linux-low.c (linux_write_memory): Return early success if LEN is
15182 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15184 * configure.srv: Add x86_64-*-cygwin* as target.
15186 2013-02-28 Tom Tromey <tromey@redhat.com>
15188 * configure.ac: Invoke AC_SYS_LARGEFILE.
15189 * configure, config.in: Rebuild.
15191 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15193 * win32-low.c: Throughout, fix format strings and casts of
15194 printf-like functions to avoid type related warnings on all
15196 (get_child_debug_event): Print dwDebugEventCode as hex since
15197 that's how it's usually documented.
15199 2013-02-28 Yao Qi <yao@codesourcery.com>
15201 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15204 2013-02-27 Jiong Wang <jiwang@tilera.com>
15206 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15207 (reg-tilegx32.c): New rule.
15208 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15209 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15210 different register info initializer according to elf class.
15211 (init_registers_tilgx32): New function. The tilegx32 register info
15213 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15214 (tile_store_gregset): Likewise.
15216 2013-02-27 Yao Qi <yao@codesourcery.com>
15218 * server.c (process_point_options): Print debug message when
15219 debug_threads is true.
15221 2013-02-26 Yao Qi <yao@codesourcery.com>
15223 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15225 2013-02-19 Pedro Alves <palves@redhat.com>
15226 Kai Tietz <ktietz@redhat.com>
15230 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15231 instead of strtoul to extract address from packet.
15232 (process_serial_event) <'z'>: Likewise.
15234 2013-02-18 Yao Qi <yao@codesourcery.com>
15236 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15238 2013-02-14 Pedro Alves <palves@redhat.com>
15242 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15243 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15245 2013-02-14 Pedro Alves <palves@redhat.com>
15247 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15249 2013-02-14 Pedro Alves <palves@redhat.com>
15251 * tracepoint.c (save_string): Delete.
15252 (add_tracepoint_action): Use savestring instead of save_string.
15254 2013-02-12 Pedro Alves <palves@redhat.com>
15256 * linux-xtensa-low.c: Ditto.
15257 * xtensa-xtregs.c: Ditto.
15259 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15261 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15264 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15266 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15267 aarch64_num_wp_regs and aarch64_num_bp_regs to
15268 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15270 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15272 * linux-aarch64-low.c (ps_get_thread_area): Replace
15273 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15275 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15276 Marcus Shawcroft <marcus.shawcroft@arm.com>
15277 Nigel Stephens <nigel.stephens@arm.com>
15278 Yufeng Zhang <yufeng.zhang@arm.com>
15280 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15281 (aarch64.c, aarch64-without-fpu.c): New targets.
15282 * configure.srv (aarch64*-*-linux*): New.
15283 * linux-aarch64-low.c: New file.
15285 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15287 * linux-low.c (handle_extended_wait, linux_create_inferior)
15288 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15289 (dequeue_one_deferred_signal, linux_resume_one_thread)
15290 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15291 (linux_tracefork_grandchild, linux_test_for_tracefork)
15292 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15293 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15294 where the argument is 0.
15296 2013-01-25 Yao Qi <yao@codesourcery.com>
15298 * event-loop.c: Include "queue.h".
15299 (gdb_event_p): New typedef.
15300 (struct gdb_event) <next_event>: Remove.
15301 (event_queue): Change to QUEUE(gdb_event_p).
15302 (async_queue_event): Remove.
15303 (gdb_event_xfree): New.
15304 (initialize_event_loop): New.
15305 (process_event): Use API from QUEUE.
15306 (wait_for_event): Likewise.
15307 * server.c (main): Call initialize_event_loop.
15308 * server.h (initialize_event_loop): Declare.
15310 2013-01-18 Yao Qi <yao@codesourcery.com>
15312 * ax.h (struct eval_agent_expr_context): New.
15313 (gdb_eval_agent_expr): Update declaration.
15314 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15315 TFRAME. Add new argument CTX.
15316 * server.h (struct eval_agent_expr_context): Declare.
15317 (agent_mem_read, agent_tsv_read): Update declaration.
15318 (agent_mem_read_string): Likewise.
15319 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15320 (add_traceframe_block): Add new argument TPOINT.
15321 Increase TPOINT->traceframe_usage.
15322 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15323 eval_tracepoint_agent_expr.
15324 (condition_true_at_tracepoint): Likewise.
15325 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15326 (agent_mem_read_string, agent_tsv_read): Likewise.
15328 2013-01-16 Yao Qi <yao@codesourcery.com>
15330 * linux-low.c (linux_resume_one_lwp): Don't check
15331 'lwp->bp_reinsert != 0'.
15333 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15334 Pedro Alves <palves@redhat.com>
15336 * lynx-low.c (ptrace_request_to_str): Define a temporary
15337 macro and use it to simplify this function's implementation.
15339 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15341 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15344 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15346 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15348 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15350 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15352 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15354 * lynx-low.c (lynx_resume): Use the resume_info parameter
15355 to determine the ptid for the lynx_ptrace call, unless
15356 it is equal to minus_one_ptid, in which case we use the
15357 ptid of the current_inferior.
15358 (lynx_wait_1): After having received a thread create/exit
15359 event, resume the inferior's execution using the signaling
15360 thread's ptid, rather than the old ptid.
15362 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15364 * lynx-low.c (lynx_resume): Delete variable ret.
15366 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15368 * gdbreplay.c (gdbreplay_version): Update copyright year.
15369 * server.c (gdbserver_version): Likewise.
15371 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15373 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15376 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15378 * lynx-low.c (ptrace_request_to_str): Add handling for
15379 PTRACE_GETTRACESIG.
15381 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15383 * lynx-low.c (lynx_attach): Delete variable new_process.
15385 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15387 * lynx-low.c (lynx_create_inferior): Delete variable
15390 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15392 * lynx-low.c (ptrace_request_to_str): Do not handle
15393 PTRACE_GETTHREADLIST if this macro does not exist.
15395 2012-12-15 Yao Qi <yao@codesourcery.com>
15397 * Makefile.in (OBS): Add notif.o.
15398 * notif.c, notif.h: New.
15399 * server.c: Include "notif.h".
15400 (struct vstop_notif) <next>: Remove.
15402 (queue_stop_reply): Update.
15403 (push_event, send_next_stop_reply): Remove.
15404 (discard_queued_stop_replies): Update.
15405 (notif_stop): New variable.
15406 (handle_v_stopped): Remove.
15407 (handle_v_requests): Don't call handle_v_stopped. Call
15408 handle_ack_notif instead.
15409 (queue_stop_reply_callback): Call notif_event_enque instead
15410 of queue_stop_reply.
15411 (handle_status): Don't call send_next_stop_reply, call
15412 notif_write_event instead.
15413 (kill_inferior_callback): Likewise.
15414 (detach_or_kill_inferior_callback): Likewise.
15415 (main): Call initialize_notif.
15416 (process_serial_event): Call QUEUE_is_empty.
15417 (handle_target_event): Call notif_push instead of push event.
15418 * server.h (push_event): Remove declaration.
15420 2012-12-10 Tom Tromey <tromey@redhat.com>
15422 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15423 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15426 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15427 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15428 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15429 (amd64-linux-ipa.o, ax.o): Rewrite.
15430 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15431 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15432 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15433 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15434 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15435 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15436 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15437 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15438 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15439 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15440 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15441 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15442 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15443 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15444 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15445 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15446 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15447 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15448 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15449 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15450 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15451 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15452 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15453 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15454 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15455 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15456 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15457 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15458 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15459 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15460 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15461 (reg-tilegx.o): Remove.
15462 (all_object_files): New macro.
15463 Include .deps files.
15464 * aclocal.m4, configure: Rebuild.
15465 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15466 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15467 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15469 2012-12-05 Tom Tromey <tromey@redhat.com>
15472 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15474 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15476 * configure.ac: Check for linux/perf_event.h.
15477 * config.in: Regenerated.
15478 * configure: Regenerated.
15480 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15482 * hostio.c (handle_readlink): Decrease buffer size
15483 parameter passed to readlink by one byte.
15485 2012-11-26 Yao Qi <yao@codesourcery.com>
15487 * configure.ac (build_warnings): Append '-Wempty-body'.
15488 * configure: Regenerated.
15489 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15492 2012-11-15 Pierre Muller <muller@sourceware.org>
15494 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15495 * config.in: Regenerate.
15496 * configure: Regenerate.
15497 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15498 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15499 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15500 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15502 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15503 instead of <sys/wait.h> header.
15504 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15506 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15508 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15509 (various make rules): Remove -DGDBSERVER
15511 2012-11-09 Yao Qi <yao@codesourcery.com>
15513 * spu-low.c (current_ptid): Move it to ..
15514 * gdbthread.h: ... here. New.
15515 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15516 * server.c (myresume, process_serial_event): Likewise.
15517 * thread-db.c (thread_db_find_new_threads): Likewise.
15518 * tracepoint.c (run_inferior_command): Likewise.
15520 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15522 * server.c (handle_search_memory_1): Include access length in
15525 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15527 * linux-crisv32-low.c: Fix compile errors.
15529 2012-09-04 Yao Qi <yao@codesourcery.com>
15531 * tracepoint.c (cmd_qtsv): Adjust debug message.
15532 Don't check CUR_TPOINT.
15534 2012-08-28 Yao Qi <yao@codesourcery.com>
15536 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15537 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15538 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15539 Remove declarations of xmalloc, xreallloc, xstrdup and
15541 * Makefile.in (libiberty_h): New.
15542 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15543 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15545 2012-08-23 Yao Qi <yao@codesourcery.com>
15547 * server.h: Remove declaration of 'xsnprintf'.
15549 2012-08-22 Keith Seitz <keiths@redhat.com>
15551 * server.h: Include build-gnulib-gbserver/config.h.
15552 * gdbreplay.c: Likewise.
15554 2012-08-08 Doug Evans <dje@google.com>
15556 * Makefile.in (SFILES): Add gdb_vecs.c.
15557 (OBS): Add gdb_vecs.o.
15558 (gdb_vecs_h, host_defs_h): New variables.
15559 (thread-db.o): Add $(gdb_vecs_h) dependency.
15560 (gdb_vecs.o): New rule.
15561 * thread-db.c: #include "gdb_vecs.h".
15562 (thread_db_load_search): Use a vector to iterate over path elements.
15563 Handle text appearing after "$pdir".
15565 * configure.ac: Add check for strstr.
15566 * config.in: Regenerate.
15567 * configure: Regenerate.
15569 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15571 * hostio.c (handle_pread): If pread fails, fall back to attempting
15573 (handle_pwrite): Likewise for pwrite.
15575 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15577 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15578 between unsupported TYPE and unimplementable ADDR/LEN combination.
15579 (arm_insert_point): Act on new return value.
15581 2012-07-31 Pedro Alves <palves@redhat.com>
15583 * server.c (process_point_options): Only skip tokens if we find
15584 one that is unrecognized. Don't treat 'X' specially while
15585 skipping unrecognized tokens.
15587 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15589 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15590 to 4-byte-align HW breakpoint addresses for Thumb.
15592 2012-07-27 Yao Qi <yao@codesourcery.com>
15596 * server.h: Declare gdb_agent_about_to_close.
15597 * target.c (kill_inferior): Include "agent.h".
15598 New. Send command 'kill'.
15599 * target.h (kill_inferior): Removed macro.
15600 * tracepoint.c (gdb_agent_about_to_close): New.
15601 (gdb_agent_helper_thread): Handle command 'close'.
15602 Wait endlessly until the inferior stops.
15603 Install gdb_agent_remove_socket to atexit hook.
15604 (agent_socket_name): New static variable.
15605 (gdb_agent_socket_init): Replace local variable 'name' with
15606 'agent_socket_name'.
15607 (gdb_agent_remove_socket): New.
15609 2012-07-27 Yao Qi <yao@codesourcery.com>
15611 * server.c (process_point_options): Stop at 'X' when parsing.
15613 2012-07-19 Michael Eager <eager@eagercon.com>
15615 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15617 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15618 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15619 hardware breakpoint.
15621 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15623 * gdbserver/linux-low.c (initialize_low): Call
15624 linux_ptrace_init_warnings.
15626 2012-07-02 Doug Evans <dje@google.com>
15628 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15631 2012-07-02 Stan Shebs <stan@codesourcery.com>
15633 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15634 (ax.o): Add it to build rule.
15636 (OBS): Add format.o.
15637 (IPA_OBS): Add format.o.
15638 * server.c (handle_query): Claim support for breakpoint commands.
15639 (process_point_options): Add command case.
15640 (process_serial_event): Leave running if there are printfs in
15642 * mem-break.h (any_persistent_commands): Declare.
15643 (add_breakpoint_commands): Declare.
15644 (gdb_no_commands_at_breakpoint): Declare.
15645 (run_breakpoint_commands): Declare.
15646 * mem-break.c (struct point_command_list): New struct.
15647 (struct breakpoint): New field command_list.
15648 (any_persistent_commands): New function.
15649 (add_commands_to_breakpoint): New function.
15650 (add_breakpoint_commands): New function.
15651 (gdb_no_commands_at_breakpoint): New function.
15652 (run_breakpoint_commands): New function.
15653 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15655 * ax.c: Include format.h.
15656 (ax_printf): New function.
15657 (gdb_eval_agent_expr): Add printf opcode.
15659 2012-06-13 Yao Qi <yao@codesourcery.com>
15661 * server.c (start_inferior): Remove duplicated writes to fields
15662 'last_resume_kind' and 'last_status' of 'current_inferior'.
15664 2012-06-12 Yao Qi <yao@codesourcery.com>
15665 Pedro Alves <palves@redhat.com>
15667 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15669 * server.c (handle_v_cont): Extend comment.
15671 2012-06-11 Yao Qi <yao@codesourcery.com>
15673 * linux-low.c (linux_attach): Add 'static'.
15675 2012-06-06 Yao Qi <yao@codesourcery.com>
15677 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15679 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15681 Fix gcc -flto compilation warning.
15682 * server.c (main): Make variable multi_mode and attach volatile.
15684 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15686 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15687 if the platform doesn't know about it.
15689 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15691 * Makefile.in (SFILES): Add linux-tile-low.c.
15692 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15693 * configure.srv: Handle tilegx-*-linux*.
15694 * linux-tile-low.c: New file.
15696 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15698 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15700 2012-05-24 Pedro Alves <palves@redhat.com>
15704 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15706 2012-05-24 Pedro Alves <palves@redhat.com>
15710 Replace target_signal with gdb_signal throughout.
15712 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15714 * linux-low.c (linux_store_registers): Avoid the copying sequence
15715 when no data has been retrieved by ptrace.
15717 2012-05-22 Will Deacon <will.deacon@arm.com>
15719 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15720 Include asm/ptrace.h.
15721 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15724 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15726 * linux-low.c (linux_store_registers): Don't re-retrieve data
15727 with ptrace that has already been obtained from /proc. Always
15728 copy any data retrieved with ptrace to the buffer supplied.
15730 2012-05-11 Yao Qi <yao@codesourcery.com>
15731 Pedro Alves <palves@redhat.com>
15733 * linux-low.c (enum stopping_threads_kind): New.
15734 (stopping_threads): Change type to `enum stopping_threads_kind'.
15735 (handle_extended_wait): If stopping and suspending threads, leave
15736 the new_lwp suspended too.
15737 (linux_wait_for_event): Adjust.
15738 (stop_all_lwps): Set `stopping_threads' to
15739 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15740 whether we're suspending threads or just stopping them. Assert no
15743 2012-04-29 Yao Qi <yao@codesourcery.com>
15745 * server.h: Move some code to ...
15746 * gdbthread.h: ... here. New.
15747 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15748 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15749 (nto-low.o, win32-low.o): Likewise.
15750 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15751 * regcache.c, remote-utils.c, server.c: Likewise.
15752 * target.c, tracepoint.c, win32-low.c: Likewise.
15754 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15756 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15757 (PTRACE_ARG4_TYPE): Likewise.
15758 (PTRACE_XFER_TYPE): Likewise.
15759 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15760 ptrace to PTRACE_ARG3_TYPE.
15761 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15762 (PTRACE_ARG4_TYPE): Likewise.
15763 (PTRACE_XFER_TYPE): Likewise.
15764 (linux_detach_one_lwp): Cast fourth argument of
15765 ptrace to long then PTRACE_ARG4_TYPE.
15766 (regsets_fetch_inferior_registers): Cast third argument of
15767 ptrace to long then PTRACE_ARG3_TYPE.
15768 (regsets_store_inferior_registers): Likewise.
15770 2012-04-20 Pedro Alves <palves@redhat.com>
15772 * configure: Regenerate.
15774 2012-04-19 Pedro Alves <palves@redhat.com>
15776 * Makefile.in (GNULIB_BUILDDIR): New.
15777 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15778 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15779 (all, install-only, uninstall, clean-info, all-lib, clean): No
15780 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15781 (maintainer-clean realclean distclean): Use subdir_do.
15783 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15784 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15785 * acinclude.m4: Include acx_configure_dir.m4.
15786 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15787 calls. Call AC_PROG_RANLIB. Configure gnulib using
15790 (GNULIB_STDINT_H): Adjust.
15791 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15792 * gdbreplay.c: Include build-gnulib/config.h.
15793 * server.h: Likewise.
15794 * aclocal.m4: Regenerate.
15795 * config.in: Regenerate.
15796 * configure: Regenerate.
15798 2012-04-19 Pedro Alves <palves@redhat.com>
15800 * Makefile.in (LIBGNU, INCGNU): Adjust.
15801 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15802 (all, install-only, uninstall, clean-info, all-lib, clean)
15803 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15804 * configure.ac: Adjust AC_OUTPUT output.
15805 * aclocal.m4: Regenerate.
15806 * configure: Regenerate.
15808 2012-04-19 Pedro Alves <palves@redhat.com>
15810 * Makefile.in (generated_files): New.
15811 (server_h): Remove the explicit dependency on config.h, and depend
15812 on $generated_files.
15814 2012-04-19 Pedro Alves <palves@redhat.com>
15816 * Makefile.in (INCGNU): Add -Ignulib.
15818 2012-04-19 Pedro Alves <palves@redhat.com>
15820 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15821 (INCGNU): ... this, and spell out -I here.
15822 (GNULIB_LIB): Rename to ...
15823 (LIBGNU): ... this.
15824 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15826 2012-04-19 Pedro Alves <palves@redhat.com>
15828 * config.in: Regenerate.
15830 2012-04-19 Pedro Alves <palves@redhat.com>
15832 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15833 * server.h (memmem): Remove declaration.
15834 * config.in: Regenerate.
15835 * configure: Regenerate.
15837 2012-04-19 Yao Qi <yao@codesourcery.com>
15839 * Makefile.in (SFILES): Add common/vec.c.
15843 2012-04-19 Yao Qi <yao@codesourcery.com>
15845 * remote-utils.c (prepare_resume_reply): Replace with macro
15846 target_core_of_thread.
15847 * server.c (handle_qxfer_threads_proper): Likewise.
15848 * target.h (traget_core_of_thread): New macro.
15850 2012-04-18 Pedro Alves <palves@redhat.com>
15852 * aclocal.m4: Regenerate.
15853 * configure: Regenerate.
15855 2012-04-16 Yao Qi <yao@codesourcery.com>
15857 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15858 duplicated on address.
15860 2012-04-16 Yao Qi <yao@codesourcery.com>
15862 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15863 (struct tracepoint_action_ops) <send>: New field.
15864 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15865 (agent_expr_send, x_tracepoint_action_send): New.
15866 (l_tracepoint_action_send): New.
15867 (cmd_qtdp): Download and install tracepoint
15868 according to `use_agent'.
15869 (run_inferior_command): Add one more parameter `len'.
15871 (tracepoint_send_agent): New.
15872 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15874 2012-04-16 Yao Qi <yao@codesourcery.com>
15876 * tracepoint.c (download_tracepoints): Moved to ...
15877 (cmd_qtstart): ... here.
15879 2012-04-14 Yao Qi <yao@codesourcery.com>
15881 * tracepoint.c: Include inttypes.h.
15882 (struct collect_memory_action): Use sized types.
15883 (struct tracepoint): Likewise.
15884 (cmd_qtdp, stop_tracing): Update print specifiers.
15885 (cmd_qtp, response_tracepoint): Likewise.
15886 (collect_data_at_tracepoint): Likewise.
15887 (collect_data_at_step): Likewise.
15889 2012-04-14 Yao Qi <yao@codesourcery.com>
15891 Import gnulib module inttypes.
15892 * aclocal.m4, config.in, configure: Regenerated.
15894 2012-04-14 Yao Qi <yao@codesourcery.com>
15896 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15897 Makefile and config.status at last.
15899 2012-04-13 Yao Qi <yao@codesourcery.com>
15901 * tracepoint.c: Include stdint.h unconditionally.
15903 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15905 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15906 on BFD_HAVE_SYS_PROCFS_TYPE.
15907 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15908 * configure: Regenerate.
15909 * config.in: Likewise.
15911 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15913 * Makefile.in (clean): Also remove x32.c x32-linux.c
15914 x32-avx.c x32-avx-linux.c.
15915 (x32.o): New target.
15917 (x32-linux.o): Likewise.
15918 (x32-linux.c): Likewise.
15919 (x32-avx.o): Likewise.
15920 (x32-avx.c): Likewise.
15921 (x32-avx-linux.o): Likewise.
15922 (x32-avx-linux.c): Likewise.
15924 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15925 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15926 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15927 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15928 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15929 i386/x32-avx-linux.xml.
15931 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15932 (init_registers_x32_avx_linux): Likwise.
15933 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15934 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15936 2012-04-13 Pedro Alves <palves@redhat.com>
15938 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15939 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15940 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15941 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15944 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15946 * linux-x86-low.c (compat_x32_clock_t): New.
15947 (compat_x32_siginfo_t): Likewise.
15948 (compat_x32_siginfo_from_siginfo): Likewise.
15949 (siginfo_from_compat_x32_siginfo): Likewise.
15950 (linux_is_elf64): Likewise.
15951 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15952 and siginfo_from_compat_x32_siginfo for x32.
15953 (x86_arch_setup): Set linux_is_elf64.
15955 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15958 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15960 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15961 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15962 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15963 compatible with process.
15965 2012-04-12 Yao Qi <yao@codesourcery.com>
15967 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15968 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15969 (install-only, install-info, clean): Handle sub dir gnulib.
15970 (all-lib, am--refresh): New targets.
15971 (memmem.o): Remove target.
15972 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15973 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15974 (AC_REPLACE_FUNCS): Remove memmem.
15975 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15976 (AC_OUTPUT): Generate Makefile in gnulib/.
15977 * aclocal.m4, config.in, configure: Regenerated.
15979 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15981 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15983 2012-04-05 Pedro Alves <palves@redhat.com>
15985 -Werror=strict-aliasing
15987 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15990 2012-04-04 Pedro Alves <palves@redhat.com>
15992 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15993 (sparc_store_gregset_from_stack, sparc_store_gregset)
15994 (sparc_breakpoint_at): Fix formatting.
15996 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15998 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
16000 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
16001 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
16002 * config.in: Regenerate.
16003 * configure: Likewise.
16005 2012-03-29 Pedro Alves <palves@redhat.com>
16007 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
16008 Correct ptrace arguments.
16010 2012-03-28 Pedro Alves <palves@redhat.com>
16012 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
16013 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
16014 (IA64_FR1_REGNUM): New defines.
16015 (ia64_fetch_register): New.
16016 (the_low_target): Install it.
16017 * linux-low.h (struct linux_target_ops) <fetch_register>: New
16019 * linux-low.c (linux_fetch_registers): Try the
16020 the_low_target.fetch_register hook first.
16022 * linux-arm-low.c (the_low_target): Adjust.
16023 * linux-bfin-low.c (the_low_target): Adjust.
16024 * linux-cris-low.c (the_low_target): Adjust.
16025 * linux-crisv32-low.c (the_low_target): Adjust.
16026 * linux-m32r-low.c (the_low_target): Adjust.
16027 * linux-m68k-low.c (the_low_target): Adjust.
16028 * linux-mips-low.c (the_low_target): Adjust.
16029 * linux-ppc-low.c (the_low_target): Adjust.
16030 * linux-s390-low.c (the_low_target): Adjust.
16031 * linux-sh-low.c (the_low_target): Adjust.
16032 * linux-sparc-low.c (the_low_target): Adjust.
16033 * linux-tic6x-low.c (the_low_target): Adjust.
16034 * linux-x86-low.c (the_low_target): Adjust.
16035 * linux-xtensa-low.c (the_low_target): Adjust.
16037 2012-03-26 Pedro Alves <palves@redhat.com>
16039 * server.c (handle_qxfer_libraries): Don't bail early if
16040 the_target->qxfer_libraries_svr4 is not NULL.
16042 2012-03-26 Pedro Alves <palves@redhat.com>
16044 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
16046 2012-03-23 Pedro Alves <palves@redhat.com>
16048 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16049 "library-list-svr4" element's start tag when the the DSO list is
16052 2012-03-23 Pedro Alves <palves@redhat.com>
16054 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16055 a variable whose type size is the same as the inferior's pointer
16058 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16060 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16062 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16063 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16064 * linux-low.h: Include <signal.h>.
16065 (struct siginfo): Remove forward declaration.
16066 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16069 2012-03-21 Mike Frysinger <vapier@gentoo.org>
16071 * .gitignore: Ignore more files.
16073 2012-03-19 Pedro Alves <palves@redhat.com>
16074 Jan Kratochvil <jan.kratochvil@redhat.com>
16076 * server.c (cont_thread, general_thread): Add describing comments.
16077 (start_inferior): Clear `cont_thread'.
16078 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16081 2012-03-15 Yao Qi <yao@codesourcery.com>
16083 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16085 (cmd_qtdp): ... here.
16087 2012-03-15 Yao Qi <yao@codesourcery.com>
16089 * tracepoint.c (struct tracepoint_action_ops): New.
16090 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16091 (m_tracepoint_action_download): New.
16092 (r_tracepoint_action_download): New.
16093 (x_tracepoint_action_download): New.
16094 (l_tracepoint_action_download): New.
16095 (add_tracepoint_action): Install `action->ops' according type.
16096 (download_tracepoint_1): Move code `download' function pointer
16097 of various tracepoint_action_ops.
16099 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16101 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16102 linux_ptrace_attach_warnings.
16104 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16106 * Makefile.in (linux-ptrace.o): New.
16107 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16108 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16109 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16110 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16111 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16113 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16115 2012-03-08 Yao Qi <yao@codesourcery.com>
16116 Pedro Alves <palves@redhat.com>
16118 Fix PR server/13392.
16119 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16120 offset of JMP insn.
16121 * tracepoint.c (remove_tracepoint): New.
16122 (cmd_qtdp): Call remove_tracepoint when failed to install.
16124 2012-03-07 Pedro Alves <palves@redhat.com>
16126 * linux-low.c (get_detach_signal): New.
16127 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16128 Pass on pending signals to PTRACE_DETACH. Check the result of the
16130 * server.c (program_signals, program_signals_p): New.
16131 (handle_general_set): Handle QProgramSignals.
16132 * server.h (program_signals, program_signals_p): Declare.
16134 2012-03-05 Pedro Alves <palves@redhat.com>
16135 Jan Kratochvil <jan.kratochvil@redhat.com>
16137 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16140 2012-03-03 Yao Qi <yao@codesourcery.com>
16142 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16143 agent_look_up_symbols.
16145 2012-03-03 Yao Qi <yao@codesourcery.com>
16147 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16148 (linux-x86-low.o): Likewise.
16149 * server.h: Remove in_process_agent_loaded.
16150 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16154 2012-03-03 Yao Qi <yao@codesourcery.com>
16156 * tracepoint.c (gdb_agent_capability): New global.
16157 (in_process_agent_loaded_ust): Renamed to
16158 `in_process_agent_supports_ust'.
16160 (in_process_agent_supports_ust): Call agent_capability_check.
16161 (clear_installed_tracepoints): Assert that agent supports
16164 2012-03-03 Yao Qi <yao@codesourcery.com>
16166 * linux-low.c (linux_supports_agent): New.
16167 (linux_target_ops): Initialize field `supports_agent' with
16168 linux_supports_agent.
16169 * target.h (struct target_ops) <supports_agent>: New.
16170 (target_supports_agent): New macro.
16171 * server.c (handle_general_set): Handle packet 'QAgent'.
16172 (handle_query): Send `QAgent+'.
16173 * Makefile.in (server.o): Depends on agent.h.
16175 2012-03-03 Yao Qi <yao@codesourcery.com>
16177 * Makefile.in (OBS): Add agent.o.
16178 Add new rule for agent.o.
16179 Track dependence of tracepoint.c on agent.h.
16180 * tracepoint.c (run_inferior_command_1):
16181 (run_inferior_command): Call agent_run_command.
16182 (gdb_ust_connect_sync_socket): Deleted. Move it to
16184 (resume_thread, stop_thread): Likewise.
16185 (gdb_ust_socket_init): Renamed to ...
16186 (gdb_agent_socket_init): ... New.
16187 (gdb_ust_thread): Renamed to ...
16188 (gdb_agent_helper_thread): ... New.
16189 (gdb_ust_init): Move some code to ...
16190 (gdb_agent_init): ... here. New.
16191 [HAVE_UST]: Call gdb_ust_init.
16192 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16193 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16194 * config.in, configure: Regenerated.
16196 2012-03-02 Pedro Alves <palves@redhat.com>
16198 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16199 * linux-low.c (struct simple_pid_list): New.
16200 (stopped_pids): New a struct simple_pid_list pointer.
16201 (add_to_pid_list, pull_pid_from_list): New.
16202 (handle_extended_wait): Don't assume the first signal new children
16203 report is SIGSTOP. Adjust call to pull_pid_from_list.
16204 (linux_wait_for_lwp): Adjust.
16206 2012-03-02 Yao Qi <yao@codesourcery.com>
16208 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16211 2012-03-02 Yao Qi <yao@codesourcery.com>
16213 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16214 `stop_pc' and `tpoint'. Update caller.
16216 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16218 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16219 * linux-low.c (use_linux_regsets): New macro.
16220 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16221 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16222 (linux_register_in_regsets): New function.
16223 (usr_fetch_inferior_registers): Skip registers covered by
16225 (usr_store_inferior_registers): Likewise.
16226 (usr_fetch_inferior_registers): New macro.
16227 (usr_store_inferior_registers): Likewise.
16228 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16229 (linux_store_registers): Likewise.
16230 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16232 (init_registers_mips64_dsp_linux): Likewise.
16233 (init_registers_mips_linux): New macro.
16234 (init_registers_mips_dsp_linux): Likewise.
16235 (mips_dsp_num_regs): Likewise.
16236 (DSP_BASE, DSP_CONTROL): New fallback macros.
16237 (mips_base_regs): New macro.
16238 (mips_regmap): Use it. Fix the size.
16239 (mips_dsp_regmap): New variable.
16240 (mips_dsp_regset_bitmap): Likewise.
16241 (mips_arch_setup): New function.
16242 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16244 (mips_cannot_store_register): Likewise.
16245 (the_low_target): Update .arch_setup, .num_regs and .regmap
16246 initializers. Add .regset_bitmap initializer.
16247 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16249 * linux-bfin-low.c (the_low_target): Likewise.
16250 * linux-cris-low.c (the_low_target): Likewise.
16251 * linux-crisv32-low.c (the_low_target): Likewise.
16252 * linux-ia64-low.c (the_low_target): Likewise.
16253 * linux-m32r-low.c (the_low_target): Likewise.
16254 * linux-m68k-low.c (the_low_target): Likewise.
16255 * linux-ppc-low.c (the_low_target): Likewise.
16256 * linux-s390-low.c (the_low_target): Likewise.
16257 * linux-sh-low.c (the_low_target): Likewise.
16258 * linux-sparc-low.c (the_low_target): Likewise.
16259 * linux-tic6x-low.c (the_low_target): Likewise.
16260 * linux-x86-low.c (the_low_target): Likewise.
16261 * linux-xtensa-low.c (the_low_target): Likewise.
16262 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16263 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16264 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16266 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16267 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16269 2012-02-29 Yao Qi <yao@codesourcery.com>
16270 Pedro Alves <palves@redhat.com>
16272 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16273 `step_over_finished' is true.
16275 2012-02-27 Pedro Alves <palves@redhat.com>
16277 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16278 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16280 2012-02-27 Pedro Alves <palves@redhat.com>
16283 * linux-low.c (pid_is_stopped): New.
16284 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16286 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16288 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16291 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16293 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16295 2012-02-24 Luis Machado <lgustavo@codesourcery>
16297 * server.c (handle_query): Advertise support for target-side
16298 breakpoint condition evaluation.
16299 (process_point_options): New function.
16300 (process_serial_event): When inserting a breakpoint, check for
16301 a target-side condition that should be evaluated.
16303 * mem-break.c: Include regcache.h and ax.h.
16304 (point_cond_list_t): New data structure.
16305 (breakpoint) <cond_list>: New field.
16306 (find_gdb_breakpoint_at): Make non-static.
16307 (delete_gdb_breakpoint_at): Clear any target-side
16309 (clear_gdb_breakpoint_conditions): New function.
16310 (add_condition_to_breakpoint): Likewise.
16311 (add_breakpoint_condition): Likewise.
16312 (gdb_condition_true_at_breakpoint): Likewise.
16313 (gdb_breakpoint_here): Return result directly instead
16314 of going through a local variable.
16316 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16317 (clear_gdb_breakpoint_conditions): Likewise.
16318 (add_breakpoint_condition): Likewise.
16319 (gdb_condition_true_at_breakpoint): Likewise.
16321 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16322 (need_step_over_p): Take target-side breakpoint condition into
16325 2012-02-24 Luis Machado <lgustavo@codesourcery>
16327 * server.h: Include tracepoint.h.
16328 (agent_mem_read, agent_get_trace_state_variable_value,
16329 agent_set_trace_state_variable_value,
16330 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16331 get_set_tsv_func_addr): New prototypes.
16333 * ax.h: New include file.
16334 * ax.c: New source file.
16336 * tracepoint.c: Include ax.h.
16337 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16338 agent_expr, eval_result_type): Move to ax.h.
16339 (parse_agent_expr): Rename to ...
16340 (gdb_parse_agent_expr): ... this, make it non-static and move
16342 (unparse_agent_expr) Rename to ...
16343 (gdb_unparse_agent_expr): ... this, make it non-static and move
16345 (eval_agent_expr): Rename to ...
16346 (eval_tracepoint_agent_expr): ... this.
16347 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16348 forward declarations.
16349 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16350 (agent_get_trace_state_variable_value): New function.
16351 (agent_set_trace_state_variable_value): New function.
16352 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16353 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16354 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16355 (condition_true_at_tracepoint): Likewise.
16356 (parse_agent_expr): Rename to ...
16357 (gdb_parse_agent_expr): ... this and move to ax.c.
16358 (unparse_agent_expr): Rename to ...
16359 (gdb_unparse_agent_expr): ... this and move to ax.c.
16360 (gdb_agent_op_name): Move to ax.c.
16361 (eval_agent_expr): Rename to ...
16362 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16364 (eval_tracepoint_agent_expr): New function.
16365 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16367 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16369 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16370 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16371 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16372 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16373 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16374 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16375 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16376 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16377 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16378 (compile_bytecodes): Remove forward declaration.
16379 (is_goto_target): Move to ax.c.
16380 (compile_bytecodes): Move to ax.c and call
16381 agent_get_trace_state_variable_value (...) and
16382 agent_set_trace_state_variable_value (...).
16384 * Makefile.in: Update ax.c and IPA dependencies.
16386 2012-02-24 Pedro Alves <palves@redhat.com>
16388 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16389 (cmd_bigqtbuffer_circular): ... this. Only handle
16390 'QTBuffer:circular:'.
16391 (handle_tracepoint_general_set): Adjust.
16393 2012-02-16 Yao Qi <yao@codesourcery.com>
16395 * inferiors.c: Move code to ...
16396 * dll.c: .... here. New.
16397 * server.h: Declare clear_dlls.
16398 * Makefile.in (SFILES): Add dll.c.
16402 2012-02-11 Yao Qi <yao@codesourcery.com>
16404 * server.c: (handle_monitor_command): Add a new parameter
16406 (handle_query): Update caller.
16408 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16410 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16411 * configure, config.in: Regenerate.
16412 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16415 2012-02-02 Pedro Alves <palves@redhat.com>
16417 Try SIGKILL first, then PTRACE_KILL.
16418 * linux-low.c (linux_kill_one_lwp): New.
16419 (linux_kill_one_lwp): Rename to ...
16420 (kill_one_lwp_callback): ... this. Use the new
16421 linux_kill_one_lwp.
16423 2012-02-02 Pedro Alves <palves@redhat.com>
16425 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16428 2012-01-27 Pedro Alves <palves@redhat.com>
16430 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16431 (elf_64_file_p): Make static.
16432 (linux_pid_exe_is_elf_64_file): New.
16433 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16434 Delete declarations.
16435 (linux_pid_exe_is_elf_64_file): Declare.
16436 * linux-x86-low.c (x86_arch_setup): Use
16437 linux_pid_exe_is_elf_64_file.
16439 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16441 * linux-low.c (linux_wait_for_event_1): Rename to ...
16442 (linux_wait_for_event): ... here and merge it with former
16443 linux_wait_for_event - new variable wait_ptid, use it.
16444 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16446 2012-01-23 Pedro Alves <palves@redhat.com>
16448 * server.c (main): Avoid yet another case of infinite loop while
16449 detaching/killing after a longjmp.
16451 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16454 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16456 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16458 * hostio.c (handle_readlink): New function.
16459 (handle_vFile): Call it to handle "vFile:readlink" packets.
16461 2012-01-20 Pedro Alves <palves@redhat.com>
16462 Ulrich Weigand <ulrich.weigand@linaro.org>
16464 * server.c (handle_v_requests): Only support vAttach and vRun to
16465 start multiple processes when in extended protocol mode.
16467 2012-01-17 Pedro Alves <palves@redhat.com>
16469 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16470 memalign plus mprotect to allocate the scratch buffer.
16472 2012-01-13 Pedro Alves <palves@redhat.com>
16474 * server.c (attach_inferior): Clear `cont_thread'.
16476 2012-01-13 Pedro Alves <palves@redhat.com>
16478 * server.c (main): Avoid infinite loop while detaching/killing
16481 2012-01-09 Doug Evans <dje@google.com>
16483 * server.c (start_inferior): Set last_ptid in --wrapper case.
16485 2012-01-06 Yao Qi <yao@codesourcery.com>
16487 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16489 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16491 2012-01-04 Yao Qi <yao@codesourcery.com>
16493 * tracepoint.c (cmd_qtdp): Print debug message
16494 for static tracepoint.
16496 2012-01-04 Yao Qi <yao@codesourcery.com>
16498 * tracepoint.c (trace_vdebug): Differentiate debug message
16499 between gdbserver and IPA.
16501 2012-01-03 Yao Qi <yao@codesourcery.com>
16503 * tracepoint.c (tracepoint_was_hit): Don't collect for
16506 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16508 * terminal.h: Reformat copyright header.
16510 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16512 * server.c (gdbserver_version): Update copyright year.
16513 * gdbreplay.c (gdbreplay_version): Likewise.
16515 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16517 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16520 2011-12-18 Hui Zhu <teawater@gmail.com>
16521 * linux-low.c (linux_create_inferior): Save return value to ret.
16523 2011-12-18 Hui Zhu <teawater@gmail.com>
16525 * linux-low.c (linux_create_inferior): Save return value to ret.
16527 2011-12-16 Doug Evans <dje@google.com>
16529 * linux-low.c (linux_create_inferior): If stdio connection,
16530 redirect stdin from /dev/null, stdout to stderr.
16531 * remote-utils.c (remote_is_stdio): New static global.
16532 (remote_connection_is_stdio): New function.
16533 (remote_prepare): Handle stdio connection.
16534 (remote_open): Ditto.
16535 (remote_close): Don't close stdin for stdio connections.
16536 (read_prim,write_prim): New functions. Replace all calls to
16537 read/write to these.
16538 * server.c (main): Watch for "-" argument. Move call to
16539 remote_prepare before start_inferior.
16540 * server.h (STDIO_CONNECTION_NAME): New macro.
16541 (remote_connection_is_stdio): Declare.
16543 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16544 in debugging output.
16546 2011-12-15 Yao Qi <yao@codesourcery.com>
16548 * tracepoint.c: Include sys/syscall.h.
16549 (gdb_ust_thread): Remove preprocessor conditional.
16551 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16553 * linux-low.c (linux_detach_one_lwp): Call
16554 the_low_target.prepare_to_resume before detaching.
16556 2011-12-14 Yao Qi <yao@codesourcery.com>
16558 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16561 2011-12-14 Yao Qi <yao@codesourcery.com>
16563 * i386-low.c (i386_low_stopped_data_address): Initialize local
16564 variable `control'.
16566 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16570 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16571 DR_CONTROL unless necessary. Extend comments.
16572 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16573 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16575 2011-12-13 Yao Qi <yao@codesourcery.com>
16577 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16579 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16581 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16583 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16584 Print new debug message for such case.
16586 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16588 Fix overlapping memcpy.
16589 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16590 the read_inferior_memory transfer.
16591 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16592 write_inferior_memory transfer.
16593 (set_fast_tracepoint_jump): New variable buf. Use it for the
16594 read_inferior_memory and write_inferior_memory transfers.
16595 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16596 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16597 Use it for the write_inferior_memory transfer.
16598 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16601 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16603 * linux-low.c (fetch_register, store_register): Make code
16604 consistent, fix formatting.
16606 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16608 * linux-low.c (usr_store_inferior_registers): Factor out code
16609 to handle individual registers into...
16610 (store_register): ... this new function.
16612 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16614 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16615 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16616 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16617 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16618 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16619 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16620 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16621 (srv_xmlfiles): Add new XML files.
16623 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16625 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16626 (init_registers_s390_linux32v1): Add prototype.
16627 (init_registers_s390_linux32v2): Likewise.
16628 (init_registers_s390_linux64v1): Likewise.
16629 (init_registers_s390_linux64v2): Likewise.
16630 (init_registers_s390x_linux64v1): Likewise.
16631 (init_registers_s390x_linux64v2): Likewise.
16632 (s390_num_regs): Increment to 52.
16633 (s390_regmap): Add orig_r2 register.
16634 (s390_num_regs_3264): Increment to 68.
16635 (s390_regmap_3264): Add orig_r2 register.
16636 (s390_collect_ptrace_register): Handle orig_r2 register.
16637 (s390_supply_ptrace_register): Likewise.
16638 (s390_fill_last_break): New function.
16639 (s390_store_last_break): Likewise.
16640 (s390_fill_system_call): New function.
16641 (s390_store_system_call): Likewise.
16642 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16644 (s390_check_regset): New function.
16645 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16646 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16647 Update target_regsets for available register sets.
16649 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16650 Jan Kratochvil <jan.kratochvil@redhat.com>
16652 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16653 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16655 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16656 * linux-low.h (struct process_info_private): New member r_debug.
16657 * server.c (handle_qxfer_libraries): Call
16658 the_target->qxfer_libraries_svr4.
16659 (handle_qxfer_libraries_svr4): New function.
16660 (qxfer_packets): New entry "libraries-svr4".
16661 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16662 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16663 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16664 PACKET_qXfer_libraries_svr4.
16666 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16668 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16669 PSW address/mask between 8-byte and 16-byte formats.
16670 (s390_supply_ptrace_register): Likewise.
16671 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16672 basic addressing mode bit.
16674 2011-11-24 Stan Shebs <stan@codesourcery.com>
16676 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16678 2011-11-17 Stan Shebs <stan@codesourcery.com>
16680 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16681 (tracing_start_time): New global.
16682 (tracing_stop_time): New global.
16683 (tracing_user_name): New global.
16684 (tracing_notes): New global.
16685 (tracing_stop_note): New global.
16686 (cmd_qtstart): Set traceframe_usage, start_time.
16687 (stop_tracing): Set stop_time.
16688 (cmd_qtstatus): Report additional status.
16689 (cmd_qtp): New function.
16690 (handle_tracepoint_query): Call it.
16691 (cmd_qtnotes): New function.
16692 (handle_tracepoint_general_set): Call it.
16693 (get_timestamp): Rename from tsv_get_timestamp.
16695 2011-11-14 Stan Shebs <stan@codesourcery.com>
16696 Kwok Cheung Yeung <kcy@codesourcery.com>
16698 * linux-x86-low.c (small_jump_insn): New.
16699 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16700 trampoline and error message, build a trampoline and issue a small
16701 jump instruction to it.
16702 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16703 trampoline and error message.
16704 (x86_get_min_fast_tracepoint_insn_len): New.
16705 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16706 * linux-low.h (struct linux_target_ops): Add arguments to
16707 install_fast_tracepoint_jump_pad operation, add new operation.
16708 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16710 (linux_get_min_fast_tracepoint_insn_len): New function.
16711 (linux_target_op): Add new operation.
16712 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16713 (gdb_trampoline_buffer_end): Ditto.
16714 (gdb_trampoline_buffer_error): Ditto.
16715 (struct ipa_sym_addresses): Add fields for new IPA variables.
16716 (symbol_list): Add entries for new IPA variables.
16717 (struct tracepoint): Add fields to hold the address range of the
16718 trampoline used by the tracepoint.
16719 (trampoline_buffer_head): New static variable.
16720 (trampoline_buffer_tail): Ditto.
16721 (claim_trampoline_space): New function.
16722 (have_fast_tracepoint_trampoline_buffer): New function.
16723 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16725 (install_fast_tracepoint): Ditto, also add error buffer argument.
16726 (cmd_qtminftpilen): New function.
16727 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16728 (fast_tracepoint_from_trampoline_address): New function.
16729 (fast_tracepoint_collecting): Handle trampoline as part of jump
16731 (set_trampoline_buffer_space): New function.
16732 (initialize_tracepoint): Initialize new IPA variables.
16733 * target.h (struct target_ops): Add arguments to
16734 install_fast_tracepoint_jump_pad operation, add new
16735 get_min_fast_tracepoint_insn_len operation.
16736 (target_get_min_fast_tracepoint_insn_len): New.
16737 (install_fast_tracepoint_jump_pad): Add arguments.
16738 * server.h (IPA_BUFSIZ): Define.
16739 * linux-i386-ipa.c: Include extra header files.
16740 (initialize_fast_tracepoint_trampoline_buffer): New function.
16741 (initialize_low_tracepoint): Call it.
16742 * server.h (set_trampoline_buffer_space): Declare.
16743 (claim_trampoline_space): Ditto.
16744 (have_fast_tracepoint_trampoline_buffer): Ditto.
16746 2011-11-14 Yao Qi <yao@codesourcery.com>
16748 * server.c (handle_query): Handle InstallInTrace for qSupported.
16749 * tracepoint.c (add_tracepoint): Sort list.
16750 (install_tracepoint, download_tracepoint): New.
16751 (cmd_qtdp): Call them to install and download tracepoints.
16752 (sort_tracepoints): Removed.
16753 (cmd_qtstart): Update.
16755 2011-11-14 Yao Qi <yao@codesourcery.com>
16757 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16758 * mem-break.h: Declare.
16759 * tracepoint.c (cmd_qtstart): Move some code to ...
16760 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16762 (download_tracepoints): Move some code to ...
16763 (download_tracepoint_1): ... here. New.
16765 2011-11-08 Yao Qi <yao@codesourcery.com>
16767 * remote-utils.c (relocate_instruction): A comment fix.
16769 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16771 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16772 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16773 dr_status_mirror and dr_control_mirror from debug_reg_state.
16774 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16775 (i386_initial_stuff): Remove use of deleted globals.
16776 (i386_get_thread_context, i386_set_thread_context,
16777 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16778 from debug_reg_state.
16780 2011-11-05 Yao Qi <yao@codesourcery.com>
16782 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16783 address as TPOINT's.
16785 2011-11-02 Stan Shebs <stan@codesourcery.com>
16787 * tracepoint.c (agent_mem_read_string): New function.
16788 (eval_agent_expr): Call it for tracenz.
16789 * server.c (handle_query): Report support for tracenz.
16791 2011-11-02 Yao Qi <yao@codesourcery.com>
16793 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16795 2011-11-02 Yao Qi <yao@codesourcery.com>
16797 * target.h: Fix a typo in comment.
16799 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16801 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16802 clobber the breakpoints' shadows with fast tracepoint jumps.
16803 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16804 * target.c (write_inferior_memory): Also pass MYADDR down to
16807 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16809 * configure.ac: Check support for personality routine.
16810 * configure: Regenerate.
16811 * config.in: Likewise.
16812 * linux-low.c: Include <sys/personality.h>.
16813 Define ADDR_NO_RANDOMIZE if necessary.
16814 (linux_create_inferior): Disable address space randomization when
16815 forking inferior, if requested.
16816 (linux_supports_disable_randomization): New function.
16817 (linux_target_ops): Install it.
16818 * server.h (disable_randomization): Declare.
16819 * server.c (disable_randomization): New global variable.
16820 (handle_general_set): Handle QDisableRandomization.
16821 (handle_query): Likewise for qSupported.
16822 (main): Support --disable-randomization and --no-disable-randomization
16823 command line arguments.
16824 * target.h (struct target_ops): Add supports_disable_randomization.
16825 (target_supports_disable_randomization): New macro.
16827 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16829 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16831 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16832 [!PT_GETDSBT] (target_loadmap): New definition.
16833 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16834 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16835 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16836 and PT_GETDSBT to LINUX_LOADMAP.
16837 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16838 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16840 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16842 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16843 (arm_linux_hwbp_cap): New static variable.
16844 (arm_linux_get_hwbp_cap): Replace by ...
16845 (arm_linux_init_hwbp_cap): ... this new function.
16846 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16847 (arm_linux_get_hw_watchpoint_count): Likewise.
16848 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16849 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16850 (arm_prepare_to_resume): Use perror_with_name instead of error.
16852 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16854 * linux-arm-low.c: Include <signal.h>.
16855 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16856 (struct arm_linux_hwbp_cap): New data type.
16857 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16858 (struct arm_linux_hw_breakpoint): New data type.
16859 (MAX_BPTS, MAX_WPTS): Define.
16860 (struct arch_process_info, struct arch_lwp_info): New data types.
16861 (arm_linux_get_hwbp_cap): New function.
16862 (arm_linux_get_hw_breakpoint_count): Likewise.
16863 (arm_linux_get_hw_watchpoint_count): Likewise.
16864 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16865 (arm_hwbp_control_initialize): Likewise.
16866 (arm_hwbp_control_is_enabled): Likewise.
16867 (arm_hwbp_control_is_initialized): Likewise.
16868 (arm_hwbp_control_disable): Likewise.
16869 (arm_linux_hw_breakpoint_equal): Likewise.
16870 (arm_linux_hw_point_initialize): Likewise.
16871 (struct update_registers_data): New data structure.
16872 (update_registers_callback: New function.
16873 (arm_insert_point): Likewise.
16874 (arm_remove_point): Likewise.
16875 (arm_stopped_by_watchpoint): Likewise.
16876 (arm_stopped_data_address): Likewise.
16877 (arm_new_process): Likewise.
16878 (arm_new_thread): Likewise.
16879 (arm_prepare_to_resume): Likewise.
16880 (the_low_target): Register arm_insert_point, arm_remove_point,
16881 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16882 arm_new_thread, and arm_prepare_to_resume.
16884 2011-09-15 Stan Shebs <stan@codesourcery.com>
16886 * server.h (struct emit_ops): Add compare-goto fields.
16887 * tracepoint.c (gdb_agent_op_sizes): New table.
16888 (emit_eq_goto): New function.
16889 (emit_ne_goto): New function.
16890 (emit_lt_goto): New function.
16891 (emit_le_goto): New function.
16892 (emit_gt_goto): New function.
16893 (emit_ge_goto): New function.
16894 (is_goto_target): New function.
16895 (compile_bytecodes): Recognize special cases of compare-goto
16896 combinations and call specialized emitters for them.
16897 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16898 (amd64_emit_ne_goto): New function.
16899 (amd64_emit_lt_goto): New function.
16900 (amd64_emit_le_goto): New function.
16901 (amd64_emit_gt_goto): New function.
16902 (amd64_emit_ge_goto): New function.
16903 (amd64_emit_ops): Add the new functions.
16904 (i386_emit_eq_goto): New function.
16905 (i386_emit_ne_goto): New function.
16906 (i386_emit_lt_goto): New function.
16907 (i386_emit_le_goto): New function.
16908 (i386_emit_gt_goto): New function.
16909 (i386_emit_ge_goto): New function.
16910 (i386_emit_ops): Add the new functions.
16912 2011-09-08 Stan Shebs <stan@codesourcery.com>
16914 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16915 (i386_emit_epilogue): Restore %ebx.
16917 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16919 * server.c (step_thread): Remove definition.
16920 (process_serial_event): Don't handle Hs.
16921 * server.h (step_thread): Remove declaration.
16922 * target.c (set_desired_inferior): Remove use of step_thread.
16924 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16926 * linux-low.c: Include linux-procfs.h.
16927 (linux_attach_lwp_1): Update comments.
16928 (linux_attach): Scan for existing threads when attaching to a
16929 process that is the tgid.
16930 * Makefile.in: Update dependencies.
16932 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16934 * configure.srv: Add linux-procfs.o dependencies.
16936 2011-08-14 Yao Qi <yao@codesourcery.com>
16938 * target.h (struct target_ops): Fix indent.
16939 * win32-low.c (win32_target_ops): Fix comment.
16941 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16942 Yao Qi <yao@codesourcery.com>
16944 * Makefile.in (clean): Remove tic6x-*.c files.
16945 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16946 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16947 (tic6x-c64xp-linux.c): Likewise.
16948 * configure.srv: Add support for tic6x-*-uclinux.
16949 * linux-tic6x-low.c: New.
16950 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16952 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16953 Yao Qi <yao@codesourcery.com>
16955 * target.h (struct target_ops): Add read_loadmap.
16956 * linux-low.c (struct target_loadseg): New type.
16957 (struct target_loadmap): New type.
16958 (linux_read_loadmap): New function.
16959 (linux_target_ops): Add linux_read_loadmap.
16960 * server.c (handle_query): Support qXfer:fdpic:read packet.
16961 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16964 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16966 * win32-low.c: Include <stdint.h>.
16968 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16970 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16971 to the inferior here.
16972 (i386_remove_aligned_watchpoint): Ditto.
16973 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16974 fit part of the watchpoint in the debug registers.
16975 (i386_update_inferior_debug_regs): New.
16976 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16977 registers, and only update the inferior on success.
16978 (i386_low_remove_watchpoint): Ditto.
16980 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16982 * linux-low.c (compare_ints, unique, list_threads, show_process,
16983 linux_core_of_thread): Delete.
16984 (linux_target_ops): Change linux_core_of_thread to
16985 linux_common_core_of_thread.
16986 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16987 * utils.c (malloc_failure): Change type of argument.
16988 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16989 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16990 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16991 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16992 (IPA_OBJS): Add common-utils-ipa.o.
16993 (ptid_h, linux_osdata_h): New macros.
16994 (server_h): Add common/common-utils.h, common/xml-utils.h,
16995 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16997 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16998 ptid.o, buffer.o): New rules.
16999 (linux-low.o): Add common/linux-osdata.h as a dependency.
17000 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
17001 * configure.ac: Add AC_HEADER_DIRENT check.
17002 * config.in: Regenerate.
17003 * configure: Regenerate.
17004 * remote-utils.c (xml_escape_text): Delete.
17005 (buffer_grow, buffer_free, buffer_init, buffer_finish,
17006 buffer_xml_printf): Move to common/buffer.c.
17007 * server.c (main): Remove call to initialize_inferiors.
17008 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
17009 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
17010 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
17011 internal_error, gdb_assert, gdb_assert_fail): Delete.
17012 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
17013 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
17015 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
17016 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
17017 initialize_inferiors): Delete.
17019 2011-07-20 Pedro Alves <pedro@codesourcery.com>
17021 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
17024 2011-05-31 Pedro Alves <pedro@codesourcery.com>
17026 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
17028 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
17030 2011-05-26 Yao Qi <yao@codesourcery.com>
17032 * Makefile.in (thread-db.o): Track dependence to
17033 common/gdb_thread_db.h.
17034 * thread-db.c: include gdb_thread_db.h from right place.
17036 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
17038 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
17039 __FILE__ and __LINE__ to internal_error.
17041 2011-05-13 Doug Evans <dje@google.com>
17043 * thread-db.c (try_thread_db_load_from_sdir): New function.
17044 (try_thread_db_load_from_dir): New function.
17045 (thread_db_load_search): Handle $sdir, ignore $pdir.
17046 Remove trying of system directories if search of
17047 libthread-db-search-path fails, that is now done via $sdir.
17049 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17051 * server.c (handle_query): Add EnableDisableTracepoints to the list
17052 of supported features.
17053 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
17055 (cmd_qtenable_disable): New.
17056 (cmd_qtstart): Install tracepoints even if disabled.
17057 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17058 receiving a QTEnable or QTDisable packet.
17059 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17060 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17062 (gdb_probe): Skip data collection if static tracepoint is disabled.
17064 2011-05-10 Doug Evans <dje@google.com>
17066 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17068 2011-05-04 Doug Evans <dje@google.com>
17070 * linux-low.c (linux_join): Skip process lookup.
17071 * spu-low.c (spu_join): Ditto.
17072 * server.c (join_inferiors_callback): Delete.
17073 (process_serial_event): For 'D' packet (detach) call join_inferior
17076 2011-05-04 Joseph Myers <joseph@codesourcery.com>
17078 * README: Don't mention xscale*-*-linux*.
17079 * configure.srv (xscale*-*-linux*): Don't handle target.
17081 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17083 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17085 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17086 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17087 (i386_emit_void_call_2): Likewise.
17089 2011-04-26 Yao Qi <yao@codesourcery.com>
17091 * linux-low.c: Move common macros to linux-ptrace.h.
17092 Include linux-ptrace.h.
17093 * Makefile.in (linux_ptrace_h): New.
17094 (linux-low.o): Depends on linux-ptrace.h.
17096 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17098 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17099 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17100 (remote_prepare): New function with most of the TCP code from ...
17101 (remote_open): ... here. Detect PORT here unconditionally. Move also
17102 setting transport_is_reliable.
17103 * server.c (run_once): New variable.
17104 (gdbserver_usage): Document it.
17105 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17106 the first run if RUN_ONCE.
17107 * server.h (run_once, remote_prepare): New declarations.
17109 2011-04-19 Tom Tromey <tromey@redhat.com>
17111 * win32-low.c (handle_load_dll): Remove duplicate "the".
17113 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17115 Remove support for old Cygwin 1.5 versions.
17116 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17117 function to avoid warning.
17118 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17121 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17123 * gdbserver/server.h (Macro _): Define it if not available.
17125 2011-03-14 Michael Snyder <msnyder@vmware.com>
17127 * hostio.c (handle_close): Remove unnecessary null test.
17129 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17131 * Makefile.in (maintainer-clean realclean distclean): Remove
17132 "make ... subdir_do" command.
17134 2011-03-10 Michael Snyder <msnyder@vmware.com>
17136 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17138 * server.c (handle_v_run): Free alloced buffer on early return.
17140 2011-03-09 Yao Qi <yao@codesourcery.com>
17143 2011-03-04 Yao Qi <yao@codesourcery.com>
17145 * Makefile.in: Remove GNU make feature --directory.
17147 2011-03-05 Yao Qi <yao@codesourcery.com>
17149 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17150 (subdir_do): New make target. Copied from gdb/Makefile.
17151 (maintainer-clean, realclean, distclean, clean): Call corresponding
17152 make targets in common/Makefile.
17154 2011-02-11 Yao Qi <yao@codesourcery.com>
17156 * configure.ac: Call AC_PROG_RANLIB.
17157 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17158 * configure: Regenerate.
17160 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17162 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17164 2011-03-06 Yao Qi <yao@codesourcery.com>
17166 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17168 2011-03-05 Yao Qi <yao@codesourcery.com>
17170 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17171 (subdir_do): New make target. Copied from gdb/Makefile.
17172 (maintainer-clean, realclean, distclean, clean): Call corresponding
17173 make targets in common/Makefile.
17175 2011-03-04 Yao Qi <yao@codesourcery.com>
17177 * Makefile.in: Remove GNU make feature --directory.
17179 2011-03-04 Michael Snyder <msnyder@vmware.com>
17181 * server.c (queue_stop_reply): Call xmalloc not malloc.
17183 2011-03-02 Michael Snyder <msnyder@vmware.com>
17185 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17187 2011-02-28 Michael Snyder <msnyder@vmware.com>
17189 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17190 (cmd_qtframe): Ditto.
17191 (cmd_qtbuffer): Ditto.
17192 (cmd_bigqtbuffer): Ditto.
17194 * utils.c (decimal2str): Initialize 'width' to nine, then
17195 don't mess with it.
17197 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17199 * hostio.c (require_data): Free *data, not data.
17201 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17203 * hostio.c (require_data): Use free, not xfree.
17205 2011-02-27 Michael Snyder <msnyder@vmware.com>
17207 * server.c (handle_query): Discard unused value.
17209 * hostio.c (require_data): Free malloc memory before returning
17212 2011-02-26 Michael Snyder <msnyder@vmware.com>
17214 * linux-low.c (list_threads): Call closedir for dirent.
17216 2011-02-27 Michael Snyder <msnyder@vmware.com>
17218 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17219 a case statement falls through.
17221 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17223 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17226 2011-02-26 Michael Snyder <msnyder@vmware.com>
17228 * utils.c (decimal2str): Eliminate dead code and dead param.
17229 (pulongest): Drop dead param from call to decimal2str.
17232 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17234 Revert the following patch (not approved yet):
17235 2011-02-21 Hui Zhu <teawater@gmail.com>
17236 * tracepoint.c (tp_printf): New function.
17237 (eval_agent_expr): Handle gdb_agent_op_printf.
17239 2011-02-21 Hui Zhu <teawater@gmail.com>
17241 * tracepoint.c (tp_printf): New function.
17242 (eval_agent_expr): Handle gdb_agent_op_printf.
17244 2011-02-18 Tom Tromey <tromey@redhat.com>
17246 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17247 (tracepoint.o): Likewise.
17248 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17249 (gdb_agent_op_names): Likewise.
17251 2011-02-18 Tom Tromey <tromey@redhat.com>
17253 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17254 gdb_agent_op_rot>: New constants.
17255 (gdb_agent_op_names): Add pick and roll.
17256 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17259 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17261 * aclocal.m4: Regenerated with aclocal-1.11.1.
17263 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17265 * server.c (handle_qxfer_traceframe_info): New.
17266 (qxfer_packets): Register "traceframe-info".
17267 (handle_query): Report support for qXfer:traceframe-info:read+.
17268 * tracepoint.c (match_blocktype): New.
17269 (traceframe_find_block_type): Rename to ...
17270 (traceframe_walk_blocks): ... this. Add callback filter argument,
17272 (traceframe_find_block_type): New, reimplemented on top of
17273 traceframe_walk_blocks.
17274 (build_traceframe_info_xml): New.
17275 (traceframe_read_info): New.
17276 * server.h (traceframe_read_info): Declare.
17278 2011-02-11 Yao Qi <yao@codesourcery.com>
17280 * configure.ac: Call AC_PROG_RANLIB.
17281 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17282 * configure: Regenerate.
17284 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17286 * server.c (gdb_read_memory): Change return semantics to allow
17288 (handle_search_memory_1): Adjust.
17289 (process_serial_event) <'m' packet>: Handle partial transfers.
17290 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17292 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17294 * regcache.c (init_register_cache): Initialize
17295 regcache->register_status.
17296 (free_register_cache): Release regcache->register_status.
17297 (regcache_cpy): Copy register_status.
17298 (registers_to_string): Print 'x's for unavailable registers.
17299 (supply_register): Mark the register's status valid or
17300 unavailable, depending on whether a buffer was passed in or not.
17301 (supply_register_zeroed): New.
17302 (supply_regblock): Mark the registers' status valid or
17303 unavailable, depending on whether a buffer was passed in or not.
17304 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17305 (struct regcache): New `register_status' field.
17306 (supply_register_zeroed): Declare.
17307 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17308 supply_register_zeroed, rather than passing a NULL buffer to
17310 * tracepoint.c (fetch_traceframe_registers): Update comment.
17312 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17314 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17317 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17319 * server.h (decode_xfer_write): Change prototype.
17320 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17321 and don't extract the annex here.
17322 * server.c (decode_xfer_read): Remove `annex' parameter,
17323 and don't extract the annex here.
17324 (decode_xfer): New.
17325 (struct qxfer): New.
17326 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17327 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17328 (handle_qxfer_statictrace): New functions, abstracted out from
17329 handle_query, and made to use the struct qxfer interface.
17330 (handle_threads_qxfer_proper): Rename to ...
17331 (handle_qxfer_threads_proper): ... this.
17332 (handle_threads_qxfer): Rename to ...
17333 (handle_qxfer_threads): ... this. Adjust.
17334 (qxfer_packets): New array.
17335 (handle_qxfer): New function.
17336 (handle_query): Use handle_qxfer.
17338 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17340 * gdbreplay.c: Shorten lines of >= 80 columns.
17341 * linux-low.c: Ditto.
17342 * linux-ppc-low.c: Ditto.
17343 * linux-s390-low.c: Ditto.
17344 * linux-sparc-low.c: Ditto.
17345 * linux-x86-low.c: Ditto.
17346 * linux-xtensa-low.c: Ditto.
17347 * mem-break.c: Ditto.
17348 * nto-low.c: Ditto.
17349 * regcache.h: Ditto.
17350 * remote-utils.c: Ditto.
17353 * thread-db.c: Ditto.
17354 * tracepoint.c: Ditto.
17356 * win32-low.h: Ditto.
17358 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17360 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17363 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17365 * server.c (gdbserver_version): Update copyright year in version
17367 * gdbreplay.c (gdbreplay_version): Ditto.
17369 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17371 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17372 * linux-bfin-low.c: New file.
17373 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17374 PT_DATA_ADDR for BFIN targets.
17375 * Makefile.in (SFILES): Add linux-bfin-low.c.
17376 (clean): Remove reg-bfin.c.
17377 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17378 * README: Mention supported Blackfin targets.
17380 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17382 * .gitignore: New file.
17384 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17386 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17388 2010-10-22 Jie Zhang <jie@codesourcery.com>
17390 * Makefile.in: Add FLAGS_TO_PASS variable.
17391 (install): Remove dependency of install-only and recursively
17392 invoke make for install-only.
17394 2010-10-04 Doug Evans <dje@google.com>
17396 * Makefile.in (uninstall): Use $(DESTDIR).
17398 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17402 * linux-x86-low.c (compat_siginfo_from_siginfo)
17403 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17404 si_code is < 0. Check for si_code == SI_TIMER before checking for
17407 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17409 * lynx-i386-low.c: New file.
17410 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17412 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17414 * lynx-low.c (ptrace_request_to_str): Remove handling for
17415 request values that have been removed in LynxOS 5.x.
17417 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17419 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17422 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17424 * configure.ac: Add --enable-inprocess-agent option.
17425 * configure: Rebuilt.
17427 2010-09-06 Yao Qi <yao@codesourcery.com>
17429 * linux-low.c (linux_kill): Remove unused variable.
17430 (linux_stabilize_threads): Likewise.
17431 * server.c (start_inferior): Likewise.
17432 (queue_stop_reply_callback): Likewise.
17433 * tracepoint.c (do_action_at_tracepoint): Likewise.
17435 2010-09-06 Yao Qi <yao@codesourcery.com>
17437 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17440 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17442 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17444 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17446 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17449 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17451 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17452 gdbserver/lynx-ppc-low.c: New files.
17453 * Makefile.in (lynx_low_h): New variable.
17454 (lynx-low.o, lynx-ppc-low.o): New rules.
17455 * configure.ac: On LynxOS, link with -lnetinet.
17456 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17457 * configure: regenerate.
17459 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17461 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17462 * configure.ac: Add check for vasprintf and vsnprintf.
17463 * configure, config.in: Regenerate.
17464 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17466 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17468 * gdbreplay.c: Move include of alloca.h up, next to include of
17470 * server.h: Add include of malloc.h.
17471 * mem-break.c: Remove include of malloc.h.
17472 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17474 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17476 * Makefile.in (memmem.o): Build with -Wno-error.
17478 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17480 * utils.c (xsnprintf): Make non-static.
17481 * server.h: Add xsnprintf declaration.
17482 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17483 replace calls to snprintf by calls to xsnprintf throughout.
17485 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17487 * configure.ac: Add configure check for alloca.
17488 * configure, config.in: Regenerate.
17489 * server.h: Include alloca.h if it exists.
17490 * gdbreplay.c: Include alloca.h if it exists.
17492 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17494 * linux-low.c (__SIGRTMIN): Define if not already defined.
17495 (linux_create_inferior): Check for __ANDROID__ rather than
17497 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17498 are already deferred.
17499 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17500 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17501 stopped and already has a pending signal to report.
17502 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17503 a pending signal to report or is moving out of a jump pad.
17504 (linux_init_signals): Check for __ANDROID__ rather than
17507 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17509 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17510 debug_threads check. Avoid a linear search when not doing debug
17513 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17515 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17516 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17517 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17518 (process_event): Change local fd's type to gdb_fildes_t.
17519 (create_file_handler): Adjust prototype.
17520 (delete_file_handler): Adjust prototype.
17521 (handle_file_event): Adjust prototype. Use pfildes.
17522 (create_file_event): Adjsut prototype.
17523 * remote-utils.c (remote_desc, listen_desc): Change type to
17525 * server.h: New gdb_fildes_t typedef.
17526 [USE_WIN32API]: Include winsock2.h.
17527 (delete_file_handler, add_file_handler): Adjust prototypes.
17528 (pfildes): Declare.
17529 * utils.c (pfildes): New.
17531 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17533 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17534 * configure: Regenerate.
17536 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17538 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17539 (linux_done_accessing_memory): ... this.
17540 (linux_target_ops): Adjust.
17541 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17542 * nto-low.c (nto_target_ops): Adjust comment.
17543 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17544 * spu-low.c (spu_target_ops): Adjust comment.
17545 * target.h (target_ops): Rename unprepare_to_access_memory field
17546 to done_accessing_memory.
17547 (unprepare_to_access_memory): Rename to ...
17548 (done_accessing_memory): ... this.
17550 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17552 * linux-low.c (linux_prepare_to_access_memory): New.
17553 (linux_unprepare_to_access_memory): New.
17554 (linux_target_ops): Install them.
17555 * server.c (read_memory): Rename to ...
17556 (gdb_read_memory): ... this. Use
17557 prepare_to_access_memory/prepare_to_access_memory.
17558 (write_memory): Rename to ...
17559 (gdb_write_memory): ... this. Use
17560 prepare_to_access_memory/prepare_to_access_memory.
17561 (handle_search_memory_1): Adjust.
17562 (process_serial_event): Adjust.
17563 * target.h (struct target_ops): New fields
17564 prepare_to_access_memory and unprepare_to_access_memory.
17565 (prepare_to_access_memory, unprepare_to_access_memory): New.
17566 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17567 prepare_to_access_memory/prepare_to_access_memory.
17568 * nto-low.c (nto_target_ops): Adjust.
17569 * spu-low.c (spu_target_ops): Adjust.
17570 * win32-low.c (win32_target_ops): Adjust.
17572 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17574 * Makefile.in (WARN_CFLAGS): Get it from configure.
17575 (WERROR_CFLAGS): New.
17576 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17577 * configure.ac: Introduce --enable-werror, which adds -Werror to
17578 the compiler command line. Enabled by default. Disable with
17579 --disable-werror. Add -Wdeclaration-after-statement
17580 Wpointer-arith and -Wformat-nonliteral to warning flags.
17581 * configure: Regenerate.
17583 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17585 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17587 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17589 * gdbreplay.c (remote_error): New.
17591 (expect): Use gdbchar. Check for error reading from GDB.
17592 Clarify sync error output.
17593 (play): Check for errors writing to GDB.
17594 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17595 * remote-utils.c (getpkt): Check for errors writing to the remote
17598 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17600 * linux-low.c (linux_wait_1): Move non-debugging code out of
17601 `debug_threads' control.
17603 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17605 * linux-low.c (linux_wait_1): Don't set last_status here.
17606 * server.c (push_event, queue_stop_reply_callback): Assert we're
17607 not pushing a TARGET_WAITKIND_IGNORE event.
17608 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17609 (myresume, handle_target_event): Set the thread's last_resume_kind
17610 and last_status from the target returned status.
17612 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17616 * linux-x86-low.c (update_debug_registers_callback): New.
17617 (i386_dr_low_set_addr): Use it.
17618 (i386_dr_low_get_addr): New.
17619 (i386_dr_low_set_control): Use update_debug_registers_callback.
17620 (i386_dr_low_get_control): New.
17621 (i386_dr_low_get_status): Adjust.
17622 * linux-low.c (linux_stop_lwp): New.
17623 * linux-low.h (linux_stop_lwp): Declare.
17625 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17626 argument instead of a i386_debug_reg_state.
17627 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17628 a i386_debug_reg_state.
17629 (i386_insert_aligned_watchpoint): Adjust.
17630 (i386_remove_aligned_watchpoint): Adjust.
17631 (i386_low_stopped_data_address): Read the debug registers from the
17632 inferior instead of from the mirrors.
17633 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17634 (i386_dr_low_get_addr): Declare.
17635 (i386_dr_low_get_control): Declare.
17636 (i386_dr_low_get_status): Change prototype.
17638 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17639 (i386_dr_low_get_addr): New.
17640 (i386_dr_low_get_control): New.
17641 (i386_dr_low_get_status): Adjust prototype. Return
17643 (i386_initial_stuff): Clear dr_status_mirror and
17645 (i386_get_thread_context): Adjust.
17646 (i386_set_thread_context): Adjust.
17647 (i386_thread_added): Adjust.
17649 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17651 * linux-low.h (linux_thread_area): Delete declaration.
17653 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17655 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17656 after its termination.
17658 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17660 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17661 (gdb_wants_all_stopped): Delete.
17662 (linux_wait_1): Don't call them.
17663 * server.c (handle_v_cont): Tag all threads as want-stopped.
17664 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17665 stopped as "client-wants-stopped".
17667 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17669 * Makefile.in (signals_h): New.
17670 (server_h): Depend on it.
17671 (server.o): Don't depend on $(signals_def).
17672 (signals.o): Depend on $(signals_def).
17674 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17676 * Makefile.in (signals_def): New.
17677 (server_h): Append include/gdb/signals.h and signals_def.
17678 (server.o): Append signals_def.
17680 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17682 * server.c (handle_target_event): Use target_signal_to_host for
17683 resume_info.sig initialization.
17684 * target.h (struct thread_resume) <sig>: New comment.
17686 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17688 * server.c (handle_query): strcpy() the returned string from paddress()
17689 instead of sprintf().
17690 * utils.c (paddress): Return phex_nz().
17692 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17694 * server.c (handle_v_cont): Call mourn_inferior if process
17696 (myresume): Likewise.
17698 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17700 Static tracepoints, and integration with UST.
17702 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17703 * mem-break.c (uninsert_all_breakpoints)
17704 (reinsert_all_breakpoints): New.
17705 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17706 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17707 (gdb_agent_ust_loaded, helper_thread_id)
17708 (gdb_agent_helper_thread_id): New macros.
17709 (struct ipa_sym_addresses): Add addr_ust_loaded,
17710 addr_helper_thread_id, addr_cmd_buf.
17711 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17712 (in_process_agent_loaded_ust): New.
17713 (write_e_ust_not_loaded): New.
17714 (maybe_write_ipa_ust_not_loaded): New.
17715 (struct collect_static_trace_data_action): New.
17716 (enum tracepoint_type) <static_tracepoint>: New.
17717 (struct tracepoint) <handle>: Mention static tracepoints.
17718 (struct static_tracepoint_ctx): New.
17719 (CMD_BUF_SIZE): New.
17720 (add_tracepoint_action): Handle static tracepoint actions.
17721 (unprobe_marker_at): New.
17722 (clear_installed_tracepoints): Handle static tracepoints.
17723 (cmd_qtdp): Handle static tracepoints.
17724 (probe_marker_at): New.
17725 (cmd_qtstart): Handle static tracepoints.
17726 (response_tracepoint): Handle static tracepoints.
17727 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17728 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17729 (get_context_regcache): Handle static tracepoints.
17730 (do_action_at_tracepoint): Handle static tracepoint actions.
17731 (traceframe_find_block_type): Handle static trace data blocks.
17732 (traceframe_read_sdata): New.
17733 (download_tracepoints): Download static tracepoint actions.
17734 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17735 (GDB_PROBE_NAME): New.
17737 (GET_UST_SYM): New.
17740 (ust_marker_to_static_tracepoint): New.
17742 (collect_ust_data_at_tracepoint): New.
17743 (gdb_ust_probe): New.
17744 (UNIX_PATH_MAX, SOCK_DIR): New.
17745 (gdb_ust_connect_sync_socket): New.
17746 (resume_thread, stop_thread): New.
17747 (run_inferior_command): New.
17748 (init_named_socket): New.
17749 (gdb_ust_socket_init): New.
17750 (cstr_to_hexstr): New.
17752 (first_marker, next_marker): New.
17753 (response_ust_marker): New.
17754 (cmd_qtfstm, cmd_qtsstm): New.
17755 (unprobe_marker_at, probe_marker_at): New.
17756 (cmd_qtstmat, gdb_ust_thread): New.
17757 (gdb_ust_init): New.
17758 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17759 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17760 (ST_REGENTRY): New.
17761 (x86_64_st_collect_regmap): New.
17762 (X86_64_NUM_ST_COLLECT_GREGS): New.
17763 (AMD64_RIP_REGNUM): New.
17764 (supply_static_tracepoint_registers): New.
17765 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17766 (ST_REGENTRY): New.
17767 (i386_st_collect_regmap): New.
17768 (i386_NUM_ST_COLLECT_GREGS): New.
17769 (supply_static_tracepoint_registers): New.
17770 * server.c (handle_query): Handle qXfer:statictrace:read.
17771 <qSupported>: Report support for StaticTracepoints, and
17772 qXfer:statictrace:read features.
17773 * server.h (traceframe_read_sdata)
17774 (supply_static_tracepoint_registers): Declare.
17775 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17776 (unpack_varlen_hex): Include in IPA build.
17777 * Makefile.in (ustlibs, ustinc): New.
17778 (IPA_OBJS): Add remote-utils-ipa.o.
17779 ($(IPA_LIB)): Link -ldl and -lpthread.
17781 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17782 * config.in, configure: Regenerate.
17784 2010-06-20 Ian Lance Taylor <iant@google.com>
17785 Pedro Alves <pedro@codesourcery.com>
17787 * linux-x86-low.c (always_true): Delete.
17788 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17789 trying to fool the compiler with always_true.
17791 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17793 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17794 conditions in gdbserver.
17796 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17798 * spu-low.c (spu_read_memory): Wrap around local store limit.
17799 (spu_write_memory): Likewise.
17801 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17803 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17804 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17806 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17808 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17809 uses with LONGEST uses.
17811 2010-06-14 Stan Shebs <stan@codesourcery.com>
17812 Pedro Alves <pedro@codesourcery.com>
17816 * linux-x86-low.c: Include limits.h.
17818 (always_true): New.
17821 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17822 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17823 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17824 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17825 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17826 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17827 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17828 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17829 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17830 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17831 (amd64_emit_void_call_2): New.
17832 (amd64_emit_ops): New.
17833 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17834 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17835 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17836 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17837 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17838 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17839 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17840 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17841 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17842 (i386_emit_stack_adjust, i386_emit_int_call_1)
17843 (i386_emit_void_call_2): New.
17844 (i386_emit_ops): New.
17845 (x86_emit_ops): New.
17846 (the_low_target): Install x86_emit_ops.
17847 * server.h (struct emit_ops): New.
17848 (get_raw_reg_func_addr): Declare.
17849 (current_insn_ptr, emit_error): Declare.
17850 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17851 (set_trace_state_variable_value): New defines.
17852 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17853 addr_get_trace_state_variable_value and
17854 addr_set_trace_state_variable_value.
17855 (symbol_list): New fields for get_raw_reg,
17856 get_trace_state_variable_value and set_trace_state_variable_value.
17857 (condfn): New typedef.
17858 (struct tracepoint): New field `compiled_cond'.
17859 (do_action_at_tracepoint): Clear compiled_cond.
17860 (get_trace_state_variable_value, set_trace_state_variable_value):
17862 (condition_true_at_tracepoint): If there's a compiled condition,
17864 (current_insn_ptr, emit_error): New globals.
17865 (struct bytecode_address): New.
17866 (get_raw_reg_func_addr): New.
17867 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17868 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17869 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17870 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17871 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17872 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17873 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17874 (compile_tracepoint_condition, compile_bytecodes): New.
17875 * target.h (emit_ops): Forward declare.
17876 (struct target_ops): New field emit_ops.
17877 (target_emit_ops): New.
17878 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17879 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17880 * linux-low.c (linux_emit_ops): New.
17881 (linux_target_ops): Install it.
17882 * linux-low.h (struct linux_target_ops): New field emit_ops.
17884 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17886 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17887 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17889 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17890 Stan Shebs <stan@codesourcery.com>
17892 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17893 (all): Depend on $(extra_libraries).
17894 (install-only): Install the IPA.
17895 (IPA_OBJS, IPA_LIB): New.
17896 (clean): Remove the IPA lib.
17897 (IPAGENT_CFLAGS): New.
17898 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17899 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17900 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17901 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17902 * configure.ac: Check for atomic builtins support in the compiler.
17903 (IPA_DEPFILES, extra_libraries): Define.
17904 * configure.srv (ipa_obj): Add description.
17905 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17906 (i[34567]86-*-linux*): Set ipa_obj.
17907 (x86_64-*-linux*): Set ipa_obj.
17908 * linux-low.c (stabilizing_threads): New.
17909 (supports_fast_tracepoints): New.
17910 (linux_detach): Stabilize threads before detaching.
17911 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17912 the lwp is either not stabilizing, or is moving out of a jump pad.
17913 (linux_fast_tracepoint_collecting): New.
17914 (maybe_move_out_of_jump_pad): New.
17915 (enqueue_one_deferred_signal): New.
17916 (dequeue_one_deferred_signal): New.
17917 (linux_wait_for_event_1): If moving out of a jump pad, defer
17918 pending signals to later.
17919 (linux_stabilize_threads): New.
17920 (linux_wait_1): Check if threads need moving out of jump pads, and
17922 (stuck_in_jump_pad_callback): New.
17923 (move_out_of_jump_pad_callback): New.
17924 (lwp_running): New.
17925 (linux_resume_one_lwp): Handle moving out of jump pads.
17926 (linux_set_resume_request): Dequeue deferred signals.
17927 (need_step_over_p): Also step over fast tracepoint jumps.
17928 (start_step_over): Also uninsert fast tracepoint jumps.
17929 (finish_step_over): Also reinsert fast tracepoint jumps.
17930 (linux_install_fast_tracepoint_jump): New.
17931 (linux_target_ops): Install linux_stabilize_threads and
17932 linux_install_fast_tracepoint_jump_pad.
17933 * linux-low.h (linux_target_ops) <get_thread_area,
17934 install_fast_tracepoint_jump_pad>: New fields.
17935 (struct lwp_info) <collecting_fast_tracepoint,
17936 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17937 (linux_get_thread_area): Declare.
17938 * linux-x86-low.c (jump_insn): New.
17939 (x86_get_thread_area): New.
17940 (append_insns): New.
17941 (push_opcode): New.
17942 (amd64_install_fast_tracepoint_jump_pad): New.
17943 (i386_install_fast_tracepoint_jump_pad): New.
17944 (x86_install_fast_tracepoint_jump_pad): New.
17945 (the_low_target): Install x86_get_thread_area and
17946 x86_install_fast_tracepoint_jump_pad.
17947 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17948 (struct fast_tracepoint_jump): New.
17949 (fast_tracepoint_jump_insn): New.
17950 (fast_tracepoint_jump_shadow): New.
17951 (find_fast_tracepoint_jump_at): New.
17952 (fast_tracepoint_jump_here): New.
17953 (delete_fast_tracepoint_jump): New.
17954 (set_fast_tracepoint_jump): New.
17955 (uninsert_fast_tracepoint_jumps_at): New.
17956 (reinsert_fast_tracepoint_jumps_at): New.
17957 (set_breakpoint_at): Use write_inferior_memory.
17958 (uninsert_raw_breakpoint): Use write_inferior_memory.
17959 (check_mem_read): Mask out fast tracepoint jumps.
17960 (check_mem_write): Mask out fast tracepoint jumps.
17961 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17962 (set_fast_tracepoint_jump): Declare.
17963 (delete_fast_tracepoint_jump)
17964 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17965 (reinsert_fast_tracepoint_jumps_at): Declare.
17966 * regcache.c: Don't compile many functions when building the
17967 in-process agent library.
17968 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17969 the register buffer in the heap.
17970 (free_register_cache): If the register buffer isn't owned by the
17971 regcache, don't free it.
17972 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17973 pre-existing register caches.
17974 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17976 (convert_ascii_to_int): : Constify `from' parameter type.
17977 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17978 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17979 the needed buffer in-place.
17980 (relocate_instruction): New.
17981 * server.c (handle_query) <qSymbols>: If the target supports
17982 tracepoints, give it a chance of looking up symbols. Report
17983 support for fast tracepoints.
17984 (handle_status): Stabilize threads.
17985 (process_serial_event): Adjust.
17986 * server.h (struct fast_tracepoint_jump): Forward declare.
17987 (struct process_info) <fast_tracepoint_jumps>: New field.
17988 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17989 (decode_X_packet, decode_M_packet): Adjust.
17990 (relocate_instruction): Declare.
17991 (in_process_agent_loaded): Declare.
17992 (tracepoint_look_up_symbols): Declare.
17993 (struct fast_tpoint_collect_status): Declare.
17994 (fast_tracepoint_collecting): Declare.
17995 (force_unlock_trace_buffer): Declare.
17996 (handle_tracepoint_bkpts): Declare.
17997 (initialize_low_tracepoint)
17998 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17999 * target.h (struct target_ops) <stabilize_threads,
18000 install_fast_tracepoint_jump_pad>: New fields.
18001 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
18002 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
18003 [HAVE_STDINT_H]: Include stdint.h.
18004 (trace_debug_1): Rename to ...
18005 (trace_vdebug): ... this.
18006 (trace_debug): Rename to ...
18007 (trace_debug_1): ... this. Add `level' parameter.
18008 (trace_debug): New.
18009 (ATTR_USED, ATTR_NOINLINE): New.
18010 (IP_AGENT_EXPORT): New.
18011 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
18012 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
18013 (about_to_request_buffer_space, trace_buffer_is_full)
18014 (stopping_tracepoint, expr_eval_result, error_tracepoint)
18015 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
18016 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
18017 (traceframe_write_count, traceframes_created)
18018 (trace_state_variables)
18019 New renaming defines.
18020 (struct ipa_sym_addresses): New.
18021 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
18022 (symbol_list): New.
18023 (ipa_sym_addrs): New.
18024 (all_tracepoint_symbols_looked_up): New.
18025 (in_process_agent_loaded): New.
18026 (write_e_ipa_not_loaded): New.
18027 (maybe_write_ipa_not_loaded): New.
18028 (tracepoint_look_up_symbols): New.
18029 (debug_threads) [IN_PROCESS_AGENT]: New.
18030 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
18031 (UNKNOWN_SIDE_EFFECTS): New.
18032 (stop_tracing): New.
18033 (flush_trace_buffer): New.
18034 (stop_tracing_bkpt): New.
18035 (flush_trace_buffer_bkpt): New.
18036 (read_inferior_integer): New.
18037 (read_inferior_uinteger): New.
18038 (read_inferior_data_pointer): New.
18039 (write_inferior_data_pointer): New.
18040 (write_inferior_integer): New.
18041 (write_inferior_uinteger): New.
18042 (struct collect_static_trace_data_action): Delete.
18043 (enum tracepoint_type): New.
18044 (struct tracepoint) <type>: New field `type'.
18045 <actions_str, step_actions, step_actions_str>: Only include in
18047 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18048 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18049 (tracepoints): Use IP_AGENT_EXPORT.
18050 (last_tracepoint): Don't include in the IPA.
18051 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18052 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18053 (alloced_trace_state_variables): New.
18054 (trace_state_variables): Use IP_AGENT_EXPORT.
18055 (traceframe_t): Delete unused variable.
18056 (circular_trace_buffer): Don't include in the IPA.
18057 (trace_buffer_start): Delete.
18058 (struct trace_buffer_control): New.
18059 (trace_buffer_free): Delete.
18060 (struct ipa_trace_buffer_control): New.
18061 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18062 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18064 (trace_buffer_ctrl): New.
18065 (TRACE_BUFFER_CTRL_CURR): New.
18066 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18067 Reimplement as macros.
18068 (trace_buffer_wrap): Delete.
18069 (traceframe_write_count, traceframe_read_count)
18070 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18071 (struct tracepoint_hit_ctx) <type>: New field.
18072 (struct fast_tracepoint_ctx): New.
18073 (memory_barrier): New.
18075 (record_tracepoint_error): Update atomically in the IPA.
18076 (clear_inferior_trace_buffer): New.
18077 (about_to_request_buffer_space): New.
18078 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18079 updating the same buffer.
18080 (add_tracepoint): Default the tracepoint's type to trap
18081 tracepoint, and orig_size to -1.
18082 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18083 internal variables.
18084 (create_trace_state_variable): New parameter `gdb'. Handle it.
18085 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18086 (cmd_qtdp): Handle fast tracepoints.
18087 (cmd_qtdv): Adjust.
18088 (max_jump_pad_size): New.
18089 (gdb_jump_pad_head): New.
18090 (get_jump_space_head): New.
18091 (claim_jump_space): New.
18092 (sort_tracepoints): New.
18093 (MAX_JUMP_SIZE): New.
18094 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18096 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18097 support. Upload fast traceframes, and delete internal IPA
18099 (stop_tracing_handler): New.
18100 (flush_trace_buffer_handler): New.
18101 (cmd_qtstop): Upload fast tracepoints.
18102 (response_tracepoint): Handle fast tracepoints.
18103 (tracepoint_finished_step): Upload fast traceframes. Set the
18104 tracepoint hit context's tracepoint type.
18105 (handle_tracepoint_bkpts): New.
18106 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18107 type. Add comment about fast tracepoints.
18108 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18109 non-existing action_str field.
18110 (get_context_regcache): Handle fast tracepoints.
18111 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18113 (fast_tracepoint_from_jump_pad_address): New.
18114 (fast_tracepoint_from_ipa_tpoint_address): New.
18115 (collecting_t): New.
18116 (force_unlock_trace_buffer): New.
18117 (fast_tracepoint_collecting): New.
18119 (gdb_collect): New.
18120 (write_inferior_data_ptr): New.
18121 (target_tp_heap): New.
18122 (target_malloc): New.
18123 (download_agent_expr): New.
18125 (download_tracepoints): New.
18126 (download_trace_state_variables): New.
18127 (upload_fast_traceframes): New.
18128 (IPA_FIRST_TRACEFRAME): New.
18129 (IPA_NEXT_TRACEFRAME_1): New.
18130 (IPA_NEXT_TRACEFRAME): New.
18131 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18132 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18133 (gdb_jump_pad_buffer_end): New.
18134 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18135 (initialize_tracepoint): Adjust.
18136 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18137 buffer. Initialize the low module.
18138 * utils.c (PREFIX, TOOLNAME): New.
18139 (malloc_failure): Use PREFIX.
18140 (error): In the IPA, an error causes an exit.
18141 (fatal, warning): Use PREFIX.
18142 (internal_error): Use TOOLNAME.
18143 (NUMCELLS): Increase to 10.
18144 * configure, config.in: Regenerate.
18146 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18148 * server.c (handle_query) <qSupported>: Do two passes over the
18149 qSupported string to avoid nesting strtok.
18151 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18153 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18155 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18156 -Wl,--dynamic-list.
18157 * configure: Regenerate.
18158 * proc-service.list: New.
18160 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18162 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18165 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18167 * gdbreplay.c (remote_open): Check error return from socket() call by
18168 its equality to -1 not by it being negative.
18169 * remote-utils.c (remote_open): Likewise.
18171 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18173 * config.h: Regenerate.
18175 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18177 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18178 doesn't provide PTRACE_GET_THREAD_AREA.
18180 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18182 * linux-m68k-low.c: Include <asm/ptrace.h>
18183 (ps_get_thread_area): Implement.
18185 2010-05-03 Doug Evans <dje@google.com>
18187 * event-loop.c (struct callback_event): New struct.
18188 (callback_list): New global.
18189 (append_callback_event, delete_callback_event): New functions.
18190 (process_callback): New function.
18191 (start_event_loop): Call it.
18192 * remote-utils.c (NOT_SCHEDULED): Define.
18193 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18194 moved out of readchar.
18195 (readchar): Rewrite. Call reschedule before returning.
18196 (reset_readchar): New function.
18197 (remote_close): Call it.
18198 (process_remaining, reschedule): New functions.
18199 * server.h (callback_handler_func): New typedef.
18200 (append_callback_event, delete_callback_event): Declare.
18202 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18204 * proc-service.c (ps_pglobal_lookup): Use
18205 thread_db_look_up_one_symbol.
18206 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18207 parameter. Use it instead of all_symbols_looked_up.
18208 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18210 (all_symbols_looked_up): Don't declare.
18211 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18212 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18214 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18215 Set all_symbols_looked_up here.
18216 (thread_db_look_up_one_symbol): New.
18217 (thread_db_get_tls_address): Adjust.
18218 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18219 thread_db object on the heap, and tentatively set it in the
18221 (thread_db_init): Don't set all_symbols_looked_up here.
18222 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18224 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18226 * linux-low.c (linux_kill, linux_detach): Adjust.
18227 (status_pending_p_callback): Remove redundant statement. Check
18228 for !TARGET_WAITIKIND_IGNORE, instead of
18229 TARGET_WAITKIND_STOPPED.
18230 (handle_tracepoints): Make sure LWP is locked. Adjust.
18231 (linux_wait_for_event_1): Adjust.
18232 (linux_cancel_breakpoints): New.
18233 (unsuspend_one_lwp): New.
18234 (unsuspend_all_lwps): New.
18235 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18236 (send_sigstop_callback): Change return type to int, add new
18237 `except' parameter and handle it.
18238 (suspend_and_send_sigstop_callback): New.
18239 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18240 pass them down. If SUSPEND, also increment the lwp's suspend
18242 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18243 (need_step_over_p): Don't consider suspended LWPs.
18244 (start_step_over): Adjust.
18245 (proceed_one_lwp): Change return type to int, add new `except'
18246 parameter and handle it.
18247 (unsuspend_and_proceed_one_lwp): New.
18248 (proceed_all_lwps): Use find_inferior instead of
18250 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18251 also decrement the suspend count of LWPs. Pass `except' down,
18252 instead of hacking its suspend count.
18253 (linux_pause_all): Add `freeze' parameter. Adjust.
18254 (linux_unpause_all): New.
18255 (linux_target_ops): Install linux_unpause_all.
18256 * server.c (handle_status): Adjust.
18257 * target.h (struct target_ops): New fields `unpause_all' and
18258 `cancel_breakpoints'. Add new parameter to `pause_all'.
18259 (pause_all): Add new `freeze' parameter.
18260 (unpause_all): New.
18261 (cancel_breakpoints): New.
18262 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18263 cancel breakpoints.
18264 (cmd_qtstart): Pause threads.
18265 (stop_tracing): Pause threads, and cancel breakpoints.
18266 * win32-low.c (win32_target_ops): Adjust.
18268 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18270 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18271 the inferior right away from here...
18272 (linux_wait_1): ... to here, and adjust to check the thread's
18273 last_resume_kind instead of the lwp's step or stop_expected flags.
18275 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18277 * README: Use consistent `GDB' and `GDBserver' spellings.
18279 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18281 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18282 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18283 (linux_detach_one_lwp): Assume the lwp is stopped.
18284 (any_thread_of): Delete.
18285 (linux_detach): Stop all lwps here. Don't blindly delete all
18287 (delete_lwp_callback): New.
18288 (linux_mourn): Delete all lwps of the process that is gone.
18289 (linux_wait_1): Don't delete the last lwp of the process here.
18290 * mem-break.h (mark_breakpoints_out): Declare.
18291 * mem-break.c (mark_breakpoints_out): New.
18292 (free_all_breakpoints): Use it.
18293 * server.c (handle_target_event): If the process is gone, mark
18295 * thread-db.c (struct thread_db) <create_bp>: New field.
18296 (thread_db_enable_reporting): Fix prototype. Store a thread event
18297 breakpoint reference in the thread_db struct.
18298 (thread_db_load_search): Clear the thread_db object.
18299 (try_thread_db_load_1): Ditto.
18300 (switch_to_process): New.
18301 (disable_thread_event_reporting): Use it.
18302 (remove_thread_event_breakpoints): New.
18303 (thread_db_detach, thread_db_mourn): Use it.
18305 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18307 * linux-low.c (linux_enable_event_reporting): New.
18308 (linux_wait_for_event_1, handle_extended_wait): Use it.
18310 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18312 * linux-low.c (linux_kill_one_lwp, linux_kill)
18313 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18314 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18315 SIGSTOP even if the LWP is stopped.
18316 (send_sigstop_callback): New.
18317 (stop_all_lwps): Use send_sigstop_callback instead.
18318 (linux_resume_one_thread): Adjust.
18319 (proceed_one_lwp): Still proceed an LWP that the client has
18320 requested to stop, if we haven't reported it as stopped yet. Make
18321 sure that LWPs the client want stopped, have a pending SIGSTOP.
18323 2010-04-26 Doug Evans <dje@google.com>
18325 * server.c (handle_general_set): Make static.
18327 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18328 Print received char after testing for error/eof instead of before.
18329 (input_interrupt): Tweak comment.
18331 2010-04-23 Doug Evans <dje@google.com>
18333 * server.c (start_inferior): Print inferior argv if --debug.
18335 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18337 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18338 * nto-x86-low.c: Include server.h
18340 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18342 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18343 be consistent with other sources of this directory.
18344 (init_registers_amd64): Correct name of source file of this function
18347 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18349 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18350 64-bit executables.
18352 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18354 * win32-i386-low.c: Add 64-bit support.
18355 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18356 (init_registers_amd64): Declare.
18357 (mappings): Add 64-bit version of array.
18358 (init_windows_x86): New function.
18359 (the_low_target): Change init_arch field to init_windows_x86.
18361 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18363 * win32-low.c: Adapt to support also 64-bit architecture.
18364 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18365 (get_image_name): Use SIZE_T type for local variable `done'.
18366 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18367 (toolhelp_get_dll_name): Idem.
18368 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18369 Use uintptr_t typecast to avoid warning.
18370 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18371 (handle_exception): Use phex_nz to avoid warning.
18372 (win32_wait): Remove unused local variable `process'.
18374 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18376 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18379 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18381 * configure.ac: Use `ws2_32' library for srv_mingw.
18382 * configure: Regenerate.
18383 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18384 * remote-utils.c: Likewise.
18386 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18388 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18389 if __x86_64__ is defined.
18391 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18393 * configure: Regenerate.
18395 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18397 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18398 * target.h (target_ops): New get_tib_address field.
18399 * win32-low.h (win32_thread_info): Add thread_local_base field.
18400 * win32-low.c (child_add_thread): Add tlb argument.
18401 Set thread_local_base field to TLB.
18402 (get_child_debug_event): Adapt to child_add_thread change.
18403 (win32_get_tib_address): New function.
18404 (win32_target_ops): Set get_tib_address field to
18405 win32_get_tib_address.
18406 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18408 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18410 * linux-low.c (linux_mourn): Also remove the process.
18411 * server.c (handle_target_event): Don't remove the process here.
18412 * nto-low.c (nto_mourn): New.
18413 (nto_target_ops): Install it.
18414 * spu-low.c (spu_mourn): New.
18415 (spu_target_ops): Install it.
18416 * win32-low.c (win32_mourn): New.
18417 (win32_target_ops): Install it.
18419 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18421 * server.h (buffer_xml_printf): Remove redundant `;'.
18423 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18425 * regcache.c (set_register_cache): Invalidate regcaches before
18426 changing the register cache layout.
18427 (regcache_invalidate_one): Allow a NULL regcache.
18428 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18429 regcaches before changing the register cache layout or the target
18432 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18434 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18435 variable warning on Linux/x86-64.
18437 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18439 GDBserver disconnected tracing support.
18441 * linux-low.c (linux_remove_process): Delete.
18442 (add_lwp): Don't set last_resume_kind here.
18443 (linux_kill): Use `mourn'.
18444 (linux_detach): Use `thread_db_detach', and `mourn'.
18445 (linux_mourn): New.
18446 (linux_attach_lwp_1): Adjust comment.
18447 (linux_attach): last_resume_kind moved the thread_info; adjust.
18448 (status_pending_p_callback): Adjust.
18449 (linux_wait_for_event_1): Adjust.
18450 (count_events_callback, select_singlestep_lwp_callback)
18451 (select_event_lwp_callback, cancel_breakpoints_callback)
18452 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18453 (proceed_one_lwp): Adjust.
18454 (linux_async): Add debug output.
18455 (linux_thread_stopped): New.
18456 (linux_pause_all): New.
18457 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18459 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18460 (thread_db_free): Delete declaration.
18461 (thread_db_detach, thread_db_mourn): Declare.
18462 * thread-db.c (thread_db_init): Use thread_db_mourn.
18463 (thread_db_free): Delete, split in two.
18464 (disable_thread_event_reporting): New.
18465 (thread_db_detach): New.
18466 (thread_db_mourn): New.
18468 * server.h (struct thread_info) <last_resume_kind>: New field.
18469 <attached>: Add comment.
18470 <gdb_detached>: New field.
18471 (handler_func): Change return type to int.
18472 (handle_serial_event, handle_target_event): Ditto.
18473 (gdb_connected): Declare.
18475 (disconnected_tracing): Declare.
18476 (stop_tracing): Declare.
18478 * server.c (handle_query) <qSupported>: Report support for
18479 disconnected tracing.
18480 (queue_stop_reply_callback): Account for running threads.
18481 (gdb_wants_thread_stopped): New.
18482 (gdb_wants_all_threads_stopped): New.
18483 (gdb_reattached_process): New.
18484 (handle_status): Clear the `gdb_detached' flag of all processes.
18485 In all-stop, stop all threads.
18486 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18487 (process_serial_event): If the remote connection breaks, or if an
18488 exit was forced with "monitor exit", force an event loop exit.
18489 Handle disconnected tracing on detach.
18490 (handle_serial_event): Adjust.
18491 (handle_target_event): If GDB isn't connected, forward events back
18492 to the inferior, unless the last process exited, in which case,
18493 exit gdbserver. Adjust interface.
18495 * remote-utils.c (remote_open): Don't block in accept. Instead
18496 register an event loop source on the listen socket file
18497 descriptor. Refactor bits into ...
18498 (listen_desc): ... this new global.
18499 (gdb_connected): ... this new function.
18500 (enable_async_notification): ... this new function.
18501 (handle_accept_event): ... this new function.
18502 (remote_close): Clear remote_desc.
18504 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18506 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18508 (mourn_inferior): Define.
18509 (target_process_qsupported): Avoid the dangling else problem.
18510 (thread_stopped): Define.
18511 (pause_all): Define.
18512 (target_waitstatus_to_string): Declare.
18513 * target.c (target_waitstatus_to_string): New.
18515 * tracepoint.c (tracing): Make extern.
18516 (disconnected_tracing): New.
18517 (stop_tracing): Make extern. Handle tracing stops due to GDB
18519 (cmd_qtdisconnected): New.
18520 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18521 (handle_tracepoint_general_set): Handle QTDisconnected.
18523 * event-loop.c (event_handler_func): Change return type to int.
18524 (process_event): Bail out if the event handler wants the event
18526 (handle_file_event): Ditto.
18527 (start_event_loop): Bail out if the event handler wants the event
18530 * nto-low.c (nto_target_ops): Adjust.
18531 * spu-low.c (spu_wait): Don't remove the process here.
18532 (spu_target_ops): Adjust.
18533 * win32-low.c (win32_wait): Don't remove the process here.
18534 (win32_target_ops): Adjust.
18536 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18538 * regcache.c (realloc_register_cache): Invalidate inferior's
18539 regcache before recreating it.
18541 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18543 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18545 2010-04-09 Stan Shebs <stan@codesourcery.com>
18546 Pedro Alves <pedro@codesourcery.com>
18548 * server.h (LONGEST): New.
18549 (struct thread_info) <while_stepping>: New field.
18550 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18552 (initialize_tracepoint, handle_tracepoint_general_set)
18553 (handle_tracepoint_query, tracepoint_finished_step)
18554 (tracepoint_was_hit, release_while_stepping_state_list):
18555 (current_traceframe): Declare.
18556 * server.c (handle_general_set): Handle tracepoint packets.
18557 (read_memory): New.
18558 (write_memory): New.
18559 (handle_search_memory_1): Use read_memory.
18560 (handle_query): Report support for conditional tracepoints, trace
18561 state variables, and tracepoint sources. Handle tracepoint
18563 (main): Initialize the tracepoints module.
18564 (process_serial_event): Handle traceframe reads/writes.
18566 * linux-low.c (handle_tracepoints): New.
18567 (linux_wait_1): Call it.
18568 (linux_resume_one_lwp): Handle while-stepping.
18569 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18570 (linux_target_ops): Install them.
18571 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18573 * linux-x86-low.c (x86_supports_tracepoints): New.
18574 (the_low_target). Install it.
18576 * mem-break.h (delete_breakpoint): Declare.
18577 * mem-break.c (delete_breakpoint): Make external.
18579 * target.h (struct target_ops): Add `supports_tracepoints',
18580 `read_pc', and `write_pc' fields.
18581 (target_supports_tracepoints): Define.
18582 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18585 * regcache.h (struct regcache) <registers_owned>: New field.
18586 (init_register_cache, regcache_cpy): Declare.
18587 (regcache_read_pc, regcache_write_pc): Declare.
18588 (register_cache_size): Declare.
18589 (supply_regblock): Declare.
18590 * regcache.c (init_register_cache): New.
18591 (new_register_cache): Use it.
18592 (regcache_cpy): New.
18593 (register_cache_size): New.
18594 (supply_regblock): New.
18595 (regcache_read_pc, regcache_write_pc): New.
18597 * tracepoint.c: New.
18599 * Makefile.in (OBS): Add tracepoint.o.
18600 (tracepoint.o): New rule.
18602 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18604 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18606 (i386-mmx.c): Likewise.
18607 (i386-mmx-linux.o): Likewise.
18608 (i386-mmx-linux.c): Likewise.
18610 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18611 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18612 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18613 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18615 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18616 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18617 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18619 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18621 * Makefile.in (clean): Updated.
18623 (i386-avx.c): Likewise.
18624 (i386-avx-linux.o): Likewise.
18625 (i386-avx-linux.c): Likewise.
18626 (amd64-avx.o): Likewise.
18627 (amd64-avx.c): Likewise.
18628 (amd64-avx-linux.o): Likewise.
18629 (amd64-avx-linux.c): Likewise.
18631 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18632 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18633 (srv_amd64_regobj): Add amd64-avx.o.
18634 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18635 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18636 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18637 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18638 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18639 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18640 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18642 * i387-fp.c: Include "i386-xstate.h".
18644 (i387_cache_to_xsave): Likewise.
18645 (i387_xsave_to_cache): Likewise.
18646 (x86_xcr0): Likewise.
18648 * i387-fp.h (i387_cache_to_xsave): Likewise.
18649 (i387_xsave_to_cache): Likewise.
18650 (x86_xcr0): Likewise.
18652 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18653 * linux-crisv32-low.c (target_regsets): Likewise.
18654 * linux-m68k-low.c (target_regsets): Likewise.
18655 * linux-mips-low.c (target_regsets): Likewise.
18656 * linux-ppc-low.c (target_regsets): Likewise.
18657 * linux-s390-low.c (target_regsets): Likewise.
18658 * linux-sh-low.c (target_regsets): Likewise.
18659 * linux-sparc-low.c (target_regsets): Likewise.
18660 * linux-xtensa-low.c (target_regsets): Likewise.
18662 * linux-low.c: Include <sys/uio.h>.
18663 (regsets_fetch_inferior_registers): Support nt_type.
18664 (regsets_store_inferior_registers): Likewise.
18665 (linux_process_qsupported): New.
18666 (linux_target_ops): Add linux_process_qsupported.
18668 * linux-low.h (regset_info): Add nt_type.
18669 (linux_target_ops): Add process_qsupported.
18671 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18673 (init_registers_i386_avx_linux): New.
18674 (init_registers_amd64_avx_linux): Likewise.
18675 (xmltarget_i386_linux_no_xml): Likewise.
18676 (xmltarget_amd64_linux_no_xml): Likewise.
18677 (PTRACE_GETREGSET): Likewise.
18678 (PTRACE_SETREGSET): Likewise.
18679 (x86_fill_xstateregset): Likewise.
18680 (x86_store_xstateregset): Likewise.
18681 (use_xml): Likewise.
18682 (x86_linux_update_xmltarget): Likewise.
18683 (x86_linux_process_qsupported): Likewise.
18684 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18685 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18686 init_registers_i386_linux here. Call
18687 x86_linux_update_xmltarget.
18688 (the_low_target): Add x86_linux_process_qsupported.
18690 * server.c (handle_query): Call target_process_qsupported.
18692 * target.h (target_ops): Add process_qsupported.
18693 (target_process_qsupported): New.
18695 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18697 * inferiors.c (add_thread): Set last_status kind to
18698 TARGET_WAITKIND_IGNORE.
18699 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18700 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18701 (linux_wait_1): Move `thread' local definition to block that uses
18702 it. Don't NULL initialize `event_child'.
18703 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18704 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18705 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18707 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18709 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18710 an extended waitstatus, or by a watchpoint.
18711 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18712 thread was stepping or has been stopped by a watchpoint.
18714 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18716 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18717 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18718 of another, then delete the previous, and validate all
18720 (validate_inserted_breakpoint): New.
18721 (delete_disabled_breakpoints): New.
18722 (validate_breakpoints): New.
18723 (check_mem_read): Validate breakpoints before trusting their
18724 shadow. Delete disabled breakpoints.
18725 (check_mem_write): Validate breakpoints before trusting they
18726 should be inserted. Delete disabled breakpoints.
18727 * mem-break.h (validate_breakpoints):
18728 * server.c (handle_query): Validate breakpoints when we see a
18731 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18733 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18734 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18735 if we could tell there's a GDB breakpoint at stop_pc.
18736 (need_step_over_p): Don't do a step over if we find a GDB
18737 breakpoint at the resume PC.
18739 * mem-break.c (struct raw_breakpoint): New.
18740 (enum bkpt_type): New type `gdb_breakpoint'.
18741 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18742 fields. New field `raw'.
18743 (find_raw_breakpoint_at): New.
18744 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18745 breakpoint instead.
18746 (set_breakpoint_at): Adjust.
18747 (delete_raw_breakpoint): New.
18748 (release_breakpoint): New.
18749 (delete_breakpoint): Rename to...
18750 (delete_breakpoint_1): ... this. Add proc parameter. Use
18751 release_breakpoint. Return ENOENT.
18752 (delete_breakpoint): Reimplement.
18753 (find_breakpoint_at): Delete.
18754 (find_gdb_breakpoint_at): New.
18755 (delete_breakpoint_at): Delete.
18756 (set_gdb_breakpoint_at): New.
18757 (delete_gdb_breakpoint_at): New.
18758 (gdb_breakpoint_here): New.
18759 (set_reinsert_breakpoint): Use release_breakpoint.
18760 (uninsert_breakpoint): Rename to ...
18761 (uninsert_raw_breakpoint): ... this.
18762 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18763 (reinsert_raw_breakpoint): Change parameter type to
18765 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18767 (check_breakpoints): Adjust. Use release_breakpoint.
18768 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18769 (breakpoint_inserted_here): Ditto.
18770 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18771 Don't trust the breakpoint's shadow if it is not inserted.
18772 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18773 (delete_all_breakpoints): Adjust.
18774 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18775 use delete_breakpoint_1.
18777 * mem-break.h (breakpoints_supported): Delete declaration.
18778 (set_gdb_breakpoint_at): Declare.
18779 (gdb_breakpoint_here): Declare.
18780 (delete_breakpoint_at): Delete.
18781 (delete_gdb_breakpoint_at): Declare.
18783 * server.h (struct raw_breakpoint): Forward declare.
18784 (struct process_info): New field `raw_breakpoints'.
18786 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18789 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18791 * linux-low.c (status_pending_p_callback): Fix comment.
18792 (linux_wait_for_event_1): Move most of the internal breakpoint
18793 handling from here...
18794 (linux_wait_1): ... to here.
18795 (count_events_callback): New.
18796 (select_singlestep_lwp_callback): New.
18797 (select_event_lwp_callback): New.
18798 (cancel_breakpoints_callback): New.
18799 (select_event_lwp): New.
18800 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18801 priority to all LWPs that have had events that should be reported
18802 to the client. Cancel breakpoints when about to reporting the
18803 event to the client, not while stopping lwps. No longer cancel
18804 finished single-steps here.
18805 (cancel_finished_single_step): Delete.
18806 (cancel_finished_single_steps): Delete.
18808 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18810 * mem-break.c (enum bkpt_type): New.
18811 (struct breakpoint): New field `type'.
18812 (set_breakpoint_at): Change return type to struct breakpoint
18813 pointer. Set type to `other_breakpoint' by default.
18814 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18815 in the breakpoint list.
18816 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18817 (reinsert_breakpoint): Rename to ...
18818 (reinsert_raw_breakpoint): ... this.
18819 (reinsert_breakpoints_at): Adjust.
18820 * mem-break.h (struct breakpoint): Declare.
18821 (set_breakpoint_at): Change return type to struct breakpoint
18824 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18826 * server.c (handle_query): Assign, not compare.
18828 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18830 Teach linux gdbserver to step-over-breakpoints.
18832 * linux-low.c (can_hardware_single_step): New.
18833 (supports_breakpoints): New.
18834 (handle_extended_wait): If stopping threads, read the stop pc of
18835 the new cloned LWP.
18837 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18838 low target doesn't support retrieving the PC.
18839 (add_lwp): Set last_resume_kind to resume_continue.
18840 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18841 (linux_attach): Don't clear stop_expected. Set the lwp's
18842 last_resume_kind to resume_stop.
18843 (linux_detach_one_lwp): Don't check for removed breakpoints.
18844 (check_removed_breakpoint): Delete.
18845 (status_pending_p): Rename to ...
18846 (status_pending_p_callback): ... this. Don't check for removed
18847 breakpoints. Don't consider threads that are stopped from GDB's
18849 (linux_wait_for_lwp): Always read the stop_pc here.
18850 (cancel_breakpoint): New.
18851 (step_over_bkpt): New global.
18852 (linux_wait_for_event_1): Implement stepping over breakpoints.
18853 (gdb_wants_lwp_stopped): New.
18854 (gdb_wants_all_stopped): New.
18855 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18856 single-step traps here. Store the thread's last reported target
18858 (send_sigstop): Don't clear stop_expected. Always set it,
18860 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18861 (cancel_finished_single_step): New.
18862 (cancel_finished_single_steps): New.
18863 (wait_for_sigstop): Don't cancel finished single-step traps here.
18864 (linux_resume_one_lwp): Don't check for removed breakpoints.
18865 Don't set `step' on non-hardware step archs.
18866 (linux_set_resume_request): Ignore resume_stop requests if already
18867 stopping or stopped. Set the lwp's last_resume_kind.
18868 (resume_status_pending_p): Don't check for removed breakpoints.
18869 (need_step_over_p): New.
18870 (start_step_over): New.
18871 (finish_step_over): New.
18872 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18873 requests. Clear the thread's last reported target waitstatus.
18874 Don't use the `suspended' flag. Don't consider pending breakpoints.
18875 (linux_resume): Start a step-over if necessary.
18876 (proceed_one_lwp): New.
18877 (proceed_all_lwps): New.
18878 (unstop_all_lwps): New.
18879 * linux-low.h (struct lwp_info): Rewrite comment for the
18880 `suspended' flag. Add the `stop_pc' field. Delete the
18881 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18882 Add `'last_resume_kind' and `need_step_over' fields.
18883 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18884 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18885 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18886 (set_raw_breakpoint_at): New.
18887 (set_breakpoint_at): Rewrite to use it.
18888 (reinsert_breakpoint_handler): Delete.
18889 (set_reinsert_breakpoint): New.
18890 (reinsert_breakpoint_by_bp): Delete.
18891 (delete_reinsert_breakpoints): New.
18892 (uninsert_breakpoint): Rewrite.
18893 (uninsert_breakpoints_at): New.
18894 (reinsert_breakpoint): Rewrite.
18895 (reinsert_breakpoints_at): New.
18896 (check_breakpoints): Rewrite.
18897 (breakpoint_here): New.
18898 (breakpoint_inserted_here): New.
18899 (check_mem_read): Adjust.
18900 * mem-break.h (breakpoints_supported, breakpoint_here)
18901 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18902 (reinsert_breakpoint_by_bp): Delete declaration.
18903 (delete_reinsert_breakpoints): Declare.
18904 (reinsert_breakpoint): Delete declaration.
18905 (reinsert_breakpoints_at): Declare.
18906 (uninsert_breakpoint): Delete declaration.
18907 (uninsert_breakpoints_at): Declare.
18908 (check_breakpoints): Adjust prototype.
18909 * server.h: Adjust include order.
18910 (struct thread_info): Declare here. Add a `last_status' field.
18912 2010-03-23 Michael Snyder <msnyder@vmware.com>
18914 * server.c (crc32): New function.
18915 (handle_query): Add handling for 'qCRC:' request.
18917 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18919 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18920 lwp had been stopped by a watchpoint.
18922 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18924 * server.h (internal_error): Declare.
18925 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18926 * utils.c (internal_error): New function.
18928 2010-03-15 Andreas Schwab <schwab@redhat.com>
18930 * configure.srv: Fix typo setting srv_regobj.
18932 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18934 * linux-low.c (fetch_register): Avoid passing a non string literal
18936 (usr_store_inferior_registers): Ditto.
18938 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18940 * linux-low.c (linux_write_memory): Bail out early if peeking
18943 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18945 * linux-low.h (struct lwp_info): New fields
18946 `stopped_by_watchpoint' and `stopped_data_address'.
18947 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18948 here, and cache them in the lwp object.
18949 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18951 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18953 (linux_stopped_by_watchpoint): Rewrite.
18954 (linux_stopped_data_address): Rewrite.
18956 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18958 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18959 switching the current inferior, not before.
18961 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18963 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18964 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18965 i386-linux.c and amd64-linux.c.
18966 (reg-i386.o): Removed.
18967 (reg-i386.c): Likewise.
18968 (reg-i386-linux.o): Likewise.
18969 (reg-i386-linux.c): Likewise.
18970 (reg-x86-64.o): Likewise.
18971 (reg-x86-64.c): Likewise.
18972 (reg-x86-64-linux.o): Likewise.
18973 (reg-x86-64-linux.c): Likewise.
18975 (i386.c): Likewise.
18976 (i386-linux.o): Likewise.
18977 (i386-linux.c): Likewise.
18978 (amd64.o): Likewise.
18979 (amd64.c): Likewise.
18980 (amd64-linux.o): Likewise.
18981 (amd64-linux.c): Likewise.
18983 * configure.srv (srv_i386_regobj): New.
18984 (srv_i386_linux_regobj): Likewise.
18985 (srv_amd64_regobj): Likewise.
18986 (srv_amd64_linux_regobj): Likewise.
18987 (srv_i386_32bit_xmlfiles): Likewise.
18988 (srv_i386_64bit_xmlfiles): Likewise.
18989 (srv_i386_xmlfiles): Likewise.
18990 (srv_amd64_xmlfiles): Likewise.
18991 (srv_i386_linux_xmlfiles): Likewise.
18992 (srv_amd64_linux_xmlfiles): Likewise.
18993 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18994 srv_xmlfiles to $srv_i386_xmlfiles.
18995 (i[34567]86-*-mingw32ce*): Likewise.
18996 (i[34567]86-*-mingw*): Likewise.
18997 (i[34567]86-*-nto*): Likewise.
18998 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18999 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
19000 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
19001 (x86_64-*-linux*): Likewise.
19003 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
19004 (init_registers_amd64_linux): New.
19005 (x86_arch_setup): Replace init_registers_x86_64_linux with
19006 init_registers_amd64_linux.
19008 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
19010 * configure.ac: Check for libdl. If it is not available link against
19011 static libthread_db.
19012 * configure: Regenerate.
19014 2010-02-22 Pedro Alves <pedro@codesourcery.com>
19018 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
19019 handing a read watchpoint.
19020 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
19022 2010-02-12 Doug Evans <dje@google.com>
19024 * linux-low.c (linux_supports_tracefork_flag): Document.
19025 (linux_look_up_symbols): Add comment.
19027 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
19029 * regcache.c (supply_register): Clear regcache if buf is NULL.
19031 2010-02-02 Nicolas Roche <roche@sourceware.org>
19032 Joel Brobecker <brobecker@adacore.com>
19034 * inferiors.c (find_inferior): Add function documentation.
19035 (unloaded_dll): Handle the case where the unloaded dll has not
19036 been previously registered in the dll list.
19038 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19040 * linux-arm-low.c (thumb_breakpoint_len): Delete.
19041 (thumb2_breakpoint): New.
19042 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
19044 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19046 * linux-low.c (get_stop_pc): Check for SIGTRAP.
19047 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19050 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19052 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19054 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19056 * linux-s390-low.c (s390_collect_ptrace_register)
19057 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19059 2010-01-21 Doug Evans <dje@google.com>
19061 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19062 (PTRACE_ARG4_TYPE): New macro.
19063 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19064 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19065 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19066 (usr_store_inferior_registers): Ditto.
19067 (linux_read_memory, linux_write_memory): Ditto.
19068 (linux_test_for_tracefork): Ditto.
19070 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19071 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19073 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19075 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19078 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19080 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19081 prototype to take a regcache. Adjust.
19083 2010-01-20 Pedro Alves <pedro@codesourcery.com>
19085 * regcache.h (struct thread_info): Forward declare.
19086 (struct regcache): New.
19087 (new_register_cache): Adjust prototype.
19088 (get_thread_regcache): Declare.
19089 (free_register_cache): Adjust prototype.
19090 (registers_to_string, registers_from_string): Ditto.
19091 (supply_register, supply_register_by_name, collect_register)
19092 (collect_register_as_string, collect_register_by_name): Ditto.
19093 * regcache.c (struct inferior_regcache_data): Delete.
19094 (get_regcache): Rename to ...
19095 (get_thread_regcache): ... this. Adjust. Switch inferior before
19096 fetching registers.
19097 (regcache_invalidate_one): Adjust.
19098 (regcache_invalidate): Fix prototype.
19099 (new_register_cache): Return the new register cache.
19100 (free_register_cache): Change prototype.
19101 (realloc_register_cache): Adjust.
19102 (registers_to_string): Change prototype to take a regcache. Adjust.
19103 (registers_from_string): Ditto.
19104 (register_data): Ditto.
19105 (supply_register): Ditto.
19106 (supply_register_by_name): Ditto.
19107 (collect_register): Ditto.
19108 (collect_register_as_string): Ditto.
19109 (collect_register_by_name): Ditto.
19110 * server.c (process_serial_event): Adjust.
19111 * linux-low.h (regset_fill_func, regset_store_func): Change
19113 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19115 * linux-low.c (get_stop_pc): Adjust.
19116 (check_removed_breakpoint): Adjust.
19117 (linux_wait_for_event): Adjust.
19118 (linux_resume_one_lwp): Adjust.
19119 (fetch_register): Add regcache parameter. Adjust.
19120 (usr_store_inferior_registers): Ditto.
19121 (regsets_fetch_inferior_registers): Ditto.
19122 (regsets_store_inferior_registers): Ditto.
19123 (linux_fetch_registers, linux_store_registers): Ditto.
19124 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19126 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19128 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19129 prototype to take a regcache.
19130 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19131 * remote-utils.c (convert_ascii_to_int, outreg)
19132 (prepare_resume_reply): Change prototype to take a regcache.
19134 * target.h (struct target_ops) <fetch_registers, store_registers>:
19135 Change prototype to take a regcache.
19136 (fetch_inferior_registers, store_inferior_registers): Change
19137 prototype to take a regcache. Adjust.
19138 * proc-service.c (ps_lgetregs): Adjust.
19139 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19140 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19141 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19142 take a regcache. Adjust.
19143 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19144 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19145 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19146 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19147 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19148 (cris_cannot_fetch_register):
19149 (cris_breakpoint_at): Change prototype to take a regcache.
19151 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19152 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19153 to take a regcache. Adjust.
19154 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19156 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19157 take a regcache. Adjust.
19158 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19159 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19160 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19161 * linux-mips-low.c (mips_get_pc):
19162 (mips_set_pc): Change prototype to take a regcache. Adjust.
19163 (mips_reinsert_addr): Adjust.
19164 (mips_collect_register): Change prototype to take a regcache.
19166 (mips_supply_register):
19167 (mips_collect_register_32bit, mips_supply_register_32bit)
19168 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19169 (mips_store_fpregset): Ditto.
19170 * linux-ppc-low.c (ppc_supply_ptrace_register)
19171 (ppc_supply_ptrace_register): Ditto.
19172 (parse_spufs_run): Adjust.
19173 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19174 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19175 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19176 take a regcache. Adjust.
19177 * linux-s390-low.c (s390_collect_ptrace_register)
19178 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19179 (s390_set_pc): Change prototype to take a regcache. Adjust.
19180 (s390_arch_setup): Adjust.
19181 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19182 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19183 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19184 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19185 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19187 (sparc_breakpoint_at): Adjust.
19188 * linux-xtensa-low.c (xtensa_fill_gregset):
19189 (xtensa_store_gregset):
19190 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19191 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19192 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19193 prototype to take a regcache. Adjust.
19194 * win32-arm-low.c (arm_fetch_inferior_register)
19195 (arm_store_inferior_register): Change prototype to take a
19197 * win32-i386-low.c (i386_fetch_inferior_register)
19198 (i386_store_inferior_register): Change prototype to take a
19200 * win32-low.c (child_fetch_inferior_registers)
19201 (child_store_inferior_registers): Change prototype to take a
19203 (win32_wait): Adjust.
19204 (win32_fetch_inferior_registers): Change prototype to take a
19206 (win32_store_inferior_registers): Adjust.
19207 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19208 store_inferior_register>: Change prototype to take a regcache.
19210 2010-01-20 Doug Evans <dje@google.com>
19212 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19214 (linux_wait_for_event1, linux_init_signals): Ditto.
19215 (W_STOPCODE): Provide definition if missing.
19217 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19219 * linux-low.c (linux_core_of_thread): New.
19220 (compare_ints, show_process, list_threads): New.
19221 (linux_qxfer_osdata): Report threads and cores.
19222 (linux_target_op): Register linux_core_of_thread.
19223 * remote-utils.c (prepare_resume_reply): Report the core.
19224 (buffer_xml_printf): Support %d specifier.
19225 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19227 (handle_query): Handle qXfer:threads. Announce availability
19229 * target.h (struct target_ops): New field core_of_thread.
19231 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19233 * Makefile.in (clean): Remove new generated files.
19234 (reg-s390.o, reg-s390.c): Remove rules.
19235 (reg-s390x.o, reg-s390x.c): Likewise.
19236 (s390-linux32.o, s390-linux32.c): Add rules.
19237 (s390-linux64.o, s390-linux64.c): Likewise.
19238 (s390x-linux64.o, s390x-linux64.c): Likewise.
19239 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19240 * linux-s390-low.c: Include <elf.h>.
19241 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19242 (init_registers_s390): Remove prototype.
19243 (init_registers_s390x): Likewise.
19244 (init_registers_s390_linux32): Add prototype.
19245 (init_registers_s390_linux64): Likewise.
19246 (init_registers_s390x_linux64): Likewise.
19247 (s390_num_regs_3264): New define.
19248 (s390_regmap_3264): New global variable.
19249 (s390_cannot_fetch_register): Remove obsolete check.
19250 (s390_cannot_store_register): Likewise.
19251 (s390_collect_ptrace_register): Handle upper/lower register halves.
19252 (s390_supply_ptrace_register): Likewise.
19253 (s390_fill_gregset): Update to register number changes.
19254 (s390_get_hwcap): New routine.
19255 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19256 Install appropriate regmap and register set.
19258 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19260 * server.c (gdbserver_version): Update copyright year to 2010.
19261 * gdbreplay.c (gdbreplay_version): Likewise.
19263 2009-12-28 Doug Evans <dje@google.com>
19265 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19266 elf/external.h. Include <elf.h> instead but only if necessary.
19268 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19270 * linux-low.c (linux_remove_process): Remove `detaching'
19271 parameter. Don't release/detach from thread_db here.
19272 (linux_kill): Release/detach from thread_db here, ...
19273 (linux_detach): ... and here, before actually detaching.
19274 (linux_wait_1): ... and here, when a process exits.
19275 * thread-db.c (any_thread_of): New.
19276 (thread_db_free): Switch the current inferior to a thread of the
19279 2009-12-21 Doug Evans <dje@google.com>
19281 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19283 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19284 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19285 warning ifndef __NR_tkill. Move setting of errno there too.
19286 Delete unnecessary resetting of errno after syscall.
19287 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19289 * configure.ac: Check for dladdr.
19290 * config.in: Regenerate.
19291 * configure: Regenerate.
19292 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19293 (try_thread_db_load): Update.
19295 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19297 2009-12-18 Doug Evans <dje@google.com>
19299 * event-loop.c: Include unistd.h if it exists.
19301 * linux-low.c (my_waitpid): Move definition away from being in
19302 between linux_tracefork_child/linux_test_for_tracefork.
19304 * gdb_proc_service.h (psaddr_t): Fix type.
19305 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19306 signature to match glibc.
19308 2009-12-16 Doug Evans <dje@google.com>
19310 * linux-low.c (linux_read_memory): Fix argument to read.
19312 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19314 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19315 events, don't leave current_inferior pointing at null.
19317 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19319 * win32-low.c (LOG): Delete.
19320 (OUTMSG): Output to stderr.
19321 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19322 on compile time LOG macro.
19323 (win32_wait): Fix debug output.
19325 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19327 * win32-low.c (win32_add_one_solib): If the dll name is
19328 "ntdll.dll", prepend the system directory to the dll path.
19330 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19332 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19334 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19335 Vladimir Prus <vladimir@codesourcery.com>
19337 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19338 * configure.ac: Check for __mcoldfire__ and set
19339 gdb_cv_m68k_is_coldfire.
19340 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19341 reg-cf.o and reg-m68k.o.
19342 * configure: Regenerated.
19344 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19346 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19347 Pass it to thread_db_free.
19348 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19349 proper `detaching' argument to linux_remove_process.
19350 * linux-low.h (thread_db_free): Add `detaching' parameter.
19351 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19353 (thread_db_free): Add `detaching' parameter. Only
19354 call td_ta_clear_event if detaching from process.
19356 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19358 * thread-db.c (thread_db_free): Fix typo.
19360 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19363 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19365 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19367 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19368 with an i686 compiler.
19369 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19371 * configure: Rebuilt.
19373 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19377 * server.c (handle_search_memory_1): Correct read_addr initialization
19378 in loop for searching subsequent chunks.
19380 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19382 * configure.ac: New --with-libthread-db option.
19383 * thread-db.c: Allow direct dependence on libthread_db.
19384 (thread_db_free): Adjust.
19385 * config.in: Regenerate.
19386 * configure: Likewise.
19388 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19391 * thread-db.c (attach_thread): New function.
19392 (maybe_attach_thread): Return success/failure.
19393 (find_new_threads_callback): Adjust.
19394 (thread_db_find_new_threads): Loop until no new threads.
19396 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19398 * proc-service.c (ps_lgetregs): Formatting.
19400 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19402 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19403 * configure.ac: Adjust.
19404 * linux-low.h (struct process_info_private): Move members to struct
19406 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19407 * linux-low.c (linux_remove_process): Adjust.
19408 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19409 * server.c (handle_query): Move code ...
19410 (handle_monitor_command): ... here. New function.
19411 * target.h (struct target_ops): New member.
19412 * thread-db.c (struct thread_db): New.
19413 (libthread_db_search_path): New variable.
19414 (thread_db_create_event, thread_db_enable_reporting)
19415 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19416 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19417 (try_thread_db_load_1, dladdr_to_soname): New functions.
19418 (try_thread_db_load, thread_db_load_search): New functions.
19419 (thread_db_init): Search for libthread_db.
19420 (thread_db_free): New function.
19421 (thread_db_handle_monitor_command): Likewise.
19422 * config.in: Regenerate.
19423 * configure: Regenerate.
19425 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19427 * spu-low.c (spu_kill): Wait for inferior to terminate.
19428 Call clear_inferiors.
19429 (spu_detach): Call clear_inferiors.
19431 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19433 * aclocal.m4: Regenerate.
19434 * config.in: Likewise.
19435 * configure: Likewise.
19437 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19439 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19440 (parse_spufs_run): New function.
19441 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19442 (ppc_breakpoint_at): Handle SPU breakpoints.
19444 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19446 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19447 (SPUFS_MAGIC): Define.
19448 (spu_enumerate_spu_ids): New function.
19449 (linux_qxfer_spu): New function.
19450 (linux_target_ops): Install linux_qxfer_spu.
19452 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19454 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19455 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19456 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19457 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19458 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19459 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19460 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19461 (init_registers_powerpc_cell32l): Add prototype.
19462 (init_registers_powerpc_cell64l): Likewise.
19463 (ppc_arch_setup): Detect Cell/B.E. architecture.
19465 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19467 * Makefile.in (datarootdir): New variable.
19469 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19471 * linux-low.c (linux_write_memory): Update debugging output.
19472 * Makefile.in (clean): Add new descriptions.
19473 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19474 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19475 * configure.srv: Add new files for arm*-*-linux*.
19476 * linux-arm-low.c: Add new declarations.
19477 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19478 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19479 (HWCAP_VFPv3D16): New.
19480 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19481 instead of __IWMMXT__.
19482 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19483 (arm_arch_setup): New.
19484 (target_regsets): Remove #ifdef. Add VFP regset.
19485 (the_low_target): Use arm_arch_setup.
19487 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19489 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19490 the main thread again.
19492 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19494 Adding Neutrino gdbserver.
19495 * configure: Regenerated.
19496 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19497 * configure.srv (i[34567]86-*-nto*): New target.
19498 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19499 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19500 (nto_comctrl) [__QNX__]: New function.
19501 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19503 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19505 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19508 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19509 Pedro Alves <pedro@codesourcery.com>
19511 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19512 don't support CONTEXT_EXTENDED_REGISTERS.
19513 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19514 (the_low_target): Install them.
19515 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19516 failing with ERROR_PIPE_NOT_CONNECTED.
19518 2009-06-30 Doug Evans <dje@google.com>
19519 Pierre Muller <muller@ics.u-strasbg.fr>
19521 Add h/w watchpoint support to x86-linux, win32-i386.
19522 * Makefile.in (SFILES): Add i386-low.c
19523 (i386_low_h): Define.
19524 (i386-low.o): Add dependencies.
19525 (linux-x86-low.o): Add i386-low.h dependency.
19526 (win32-i386-low.o): Ditto.
19527 * i386-low.c: New file.
19528 * i386-low.h: New file.
19529 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19530 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19531 * linux-low.c (linux_add_process): Initialize arch_private.
19532 (linux_remove_process): Free arch_private.
19533 (add_lwp): Initialize arch_private.
19534 (delete_lwp): Free arch_private.
19535 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19537 * linux-low.h (process_info_private): New member arch_private.
19538 (lwp_info): New member arch_private.
19539 (linux_target_ops): New members new_process, new_thread,
19541 (ptid_of): New macro.
19542 * linux-x86-low.c: Include stddef.h, i386-low.h.
19543 (arch_process_info): New struct.
19544 (arch_lwp_info): New struct.
19545 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19546 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19547 (i386_dr_low_get_status): New function.
19548 (x86_insert_point, x86_remove_point): New functions.
19549 (x86_stopped_by_watchpoint): New function.
19550 (x86_stopped_data_address): New function.
19551 (x86_linux_new_process, x86_linux_new_thread): New functions.
19552 (x86_linux_prepare_to_resume): New function.
19553 (the_low_target): Add entries for insert_point, remove_point,
19554 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19556 * server.c (debug_hw_points): New global.
19557 (monitor_show_help): Document set debug-hw-points.
19558 (handle_query): Process "set debug-hw-points".
19559 * server.h (debug_hw_points): Declare.
19560 (paddress): Declare.
19561 * utils.c (NUMCELLS, CELLSIZE): New macros.
19562 (get_sell, xsnprintf, paddress): New functions.
19563 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19564 remove_point, stopped_by_watchpoint, stopped_data_address.
19565 * win32-i386-low.c: Include i386-low.h.
19566 (debug_reg_state): Replaces dr.
19567 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19568 (i386_dr_low_get_status): New function.
19569 (i386_insert_point, i386_remove_point): New functions.
19570 (i386_stopped_by_watchpoint): New function.
19571 (i386_stopped_data_address): New function.
19572 (i386_initial_stuff): Update.
19573 (get_thread_context,set_thread_context,i386_thread_added): Update.
19574 (the_low_target): Add entries for insert_point,
19575 remove_point, stopped_by_watchpoint, stopped_data_address.
19576 * win32-low.c (win32_insert_watchpoint): New function.
19577 (win32_remove_watchpoint): New function.
19578 (win32_stopped_by_watchpoint): New function.
19579 (win32_stopped_data_address): New function.
19580 (win32_target_ops): Add entries for insert_watchpoint,
19581 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19582 * win32-low.h (win32_target_ops): New members insert_point,
19583 remove_point, stopped_by_watchpoint, stopped_data_address.
19585 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19587 * server.c (process_serial_event): Re-return unsupported, not
19588 error, if the type isn't recognized. Re-allow supporting only
19589 insert or remove packets. Also call require_running for
19590 breakpoints. Add missing break statement to default case. Tidy.
19591 * target.h (struct target_ops): Rename insert_watchpoint to
19592 insert_point, and remove_watchpoint to remove_point.
19594 * linux-low.h (struct linux_target_ops): Likewise.
19595 * linux-low.c (linux_insert_watchpoint): Rename to ...
19596 (linux_insert_point): ... this. Adjust.
19597 (linux_remove_watchpoint): Rename to ...
19598 (linux_remove_point): ... this. Adjust.
19599 (linux_target_ops): Adjust.
19600 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19601 (cris_insert_point): ... this.
19602 (cris_remove_watchpoint): Rename to ...
19603 (cris_remove_point): ... this.
19604 (the_low_target): Adjust.
19606 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19608 * server.c (handle_v_kill): Pass signal_pid to
19609 kill_inferior if multi_process is zero.
19611 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19613 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19614 * target.h (target_ops): Comment for *_watchpoint to make it clear
19615 the functions can get types '0' and '1'.
19617 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19619 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19620 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19621 * regcache.c (get_regcache): Likewise.
19622 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19623 * win32-low.c (child_fetch_inferior_registers): Remove check for
19626 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19627 Pedro Alves <pedro@codesourcery.com>
19629 * target.h (struct target_ops) <supports_multi_process>: New
19631 (target_supports_multi_process): New.
19632 * server.c (handle_query): Even if GDB reports support, only
19633 enable multi-process if the target also supports it. Report
19634 multi-process support only if the target backend supports it.
19635 * linux-low.c (linux_supports_multi_process): New function.
19636 (linux_target_ops): Install it as target_supports_multi_process
19639 2009-05-24 Doug Evans <dje@google.com>
19641 Global renaming of find_thread_pid to find_thread_ptid.
19642 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19643 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19644 All callers updated.
19646 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19647 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19650 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19651 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19652 (linux_resume_one_lwp): Ditto.
19654 2009-05-23 Doug Evans <dje@google.com>
19656 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19657 from struct inferior_list_entry * to struct lwp_info *.
19658 All callers updated.
19660 2009-05-13 Doug Evans <dje@google.com>
19662 * linux-x86-low.c: Don't include assert.h.
19663 (x86_siginfo_fixup): Use fatal, not assert.
19664 (x86_arch_setup): Fix comment.
19666 2009-05-12 Doug Evans <dje@google.com>
19668 Biarch support for i386/amd64 gdbserver.
19669 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19670 Add linux-x86-low.c.
19671 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19672 (linux-x86-low.o): Add.
19673 * linux-x86-64-low.c: Delete.
19674 * linux-i386-low.c: Delete.
19675 * linux-x86-low.c: New file.
19676 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19678 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19680 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19681 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19682 (linux_child_pid_to_exec_file): New function.
19683 (elf_64_header_p, elf_64_file_p): New functions.
19684 (siginfo_fixup): New function.
19685 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19686 give target a chance to convert layout.
19687 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19688 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19690 2009-05-07 Doug Evans <dje@google.com>
19692 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19693 (regsets_store_inferior_registers): Ditto.
19695 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19699 * linux-low.c (must_set_ptrace_flags): Delete.
19700 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19702 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19703 `lwp->must_set_ptrace_flags' instead.
19704 (linux_wait_for_event_1): Set ptrace options here.
19705 (linux_wait_1): ... not here.
19707 2009-04-30 Doug Evans <dje@google.com>
19709 * inferiors.c (started_inferior_callback): New function.
19710 (attached_inferior_callback): New function.
19711 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19712 * server.c (print_started_pid, print_attached_pid): New functions.
19713 (detach_or_kill_for_exit): New function.
19714 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19715 * server.h (have_started_inferiors_p): Declare.
19716 (have_attached_inferiors_p): Declare.
19718 * inferiors.c (remove_process): Fix memory leak, free process.
19719 * linux-low.c (linux_remove_process): New function.
19720 (linux_kill): Call it instead of remove_process.
19721 (linux_detach, linux_wait_1): Ditto.
19723 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19725 * configure.srv: Add x86 Windows CE target.
19727 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19729 * inferiors.c (get_thread_process): Make global.
19730 * server.h (get_thread_process): Add prototype.
19731 * thread-db.c (find_one_thread): Use get_thread_process
19732 instead of current_process.
19733 (thread_db_get_tls_address): Do not crash if called when
19734 thread layer is not yet initialized.
19736 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19738 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19739 * spu-low.c (current_tid): Rename to ...
19740 (current_ptid): ... this.
19741 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19742 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19743 ptid_get_lwp (current_ptid) instead of current_tid.
19744 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19745 instead of current_tid. Use find_process_pid to verify pid
19746 argument is valid. Pass proper argument to remove_process.
19747 (spu_thread_alive): Compare current_ptid instead of current_tid.
19748 (spu_resume): Likewise.
19750 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19752 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19755 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19757 Implement the multiprocess extensions, and add linux multiprocess
19760 * server.h (ULONGEST): Declare.
19761 (struct ptid, ptid_t): New.
19762 (minus_one_ptid, null_ptid): Declare.
19763 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19764 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19765 (struct inferior_list_entry): Change `id' type from unsigned from
19767 (struct sym_cache, struct breakpoint, struct
19768 process_info_private): Forward declare.
19769 (struct process_info): Declare.
19770 (current_process): Declare.
19771 (all_processes): Declare.
19772 (initialize_inferiors): Declare.
19773 (add_thread): Adjust to use ptid_t.
19774 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19775 (add_process, remove_process, find_thread_pid): Declare.
19776 (find_inferior_id): Adjust to use ptid_t.
19777 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19778 (multi_process): Declare.
19779 (push_event): Adjust to use ptid_t.
19780 (read_ptid, write_ptid): Declare.
19781 (prepare_resume_reply): Adjust to use ptid_t.
19782 (clear_symbol_cache): Declare.
19783 * inferiors.c (all_processes): New.
19784 (null_ptid, minus_one_ptid): New.
19785 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19786 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19787 (add_thread): Change unsigned long to ptid. Remove gdb_id
19789 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19790 (gdb_id_to_thread): Rename to ...
19791 (find_thread_pid): ... this. Change unsigned long to ptid.
19792 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19793 (loaded_dll, pull_pid_from_list): Adjust.
19794 (add_process, remove_process, find_process_pid)
19795 (get_thread_process, current_process, initialize_inferiors): New.
19796 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19797 (struct target_waitstatus) <related_pid>: Ditto.
19798 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19799 return type to int.
19800 (struct target_ops) <join>: Add `pid' argument.
19801 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19802 (struct target_ops) <wait>: Add `ptid' field. Change return type
19804 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19805 (mywait): Add `ptid' argument. Change return type to ptid_t.
19806 (target_pid_to_str): Declare.
19807 * target.c (set_desired_inferior): Adjust to use ptids.
19808 (mywait): Add new `ptid' argument. Adjust.
19809 (target_pid_to_str): New.
19810 * mem-break.h (free_all_breakpoints): Declare.
19811 * mem-break.c (breakpoints): Delelete.
19812 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19813 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19814 to use per-process breakpoint list.
19815 (free_all_breakpoints): New.
19816 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19817 (symbol_cache, all_symbols_looked_up): Delete.
19819 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19821 (prepare_resume_reply): Change ptid argument's type from unsigned
19822 long to ptid_t. Adjust. Implement W;process and X;process.
19823 (free_sym_cache, clear_symbol_cache): New.
19824 (look_up_one_symbol): Adjust to per-process symbol cache. *
19825 * server.c (cont_thread, general_thread, step_thread): Change type
19827 (attached): Delete.
19828 (multi_process): New.
19829 (last_ptid): Change type to ptid_t.
19830 (struct vstop_notif) <ptid>: Change type to ptid_t.
19831 (queue_stop_reply, push_event): Change `ptid' argument's type to
19833 (discard_queued_stop_replies): Add `pid' argument.
19834 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19835 changes. Don't reference the `attached' global.
19836 (attach_inferior): Adjust to mywait interface changes.
19837 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19838 features. Handle and report "multiprocess+". Handle
19840 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19842 (handle_v_kill): New.
19843 (handle_v_stopped): Adjust to use target_pid_to_str.
19844 (handle_v_requests): Allow multiple attaches and runs when
19845 multiprocess extensions are in effect. Handle "vKill".
19846 (myresume): Adjust to use ptids.
19847 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19848 (handle_status): Adjust to discard_queued_stop_replies interface
19850 (first_thread_of, kill_inferior_callback)
19851 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19852 (main): Call initialize_inferiors. Adjust to use ptids, killing
19853 and detaching from all inferiors. Handle multiprocess packet
19855 * linux-low.h: Include gdb_proc_service.h.
19856 (struct process_info_private): New.
19857 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19858 <lwpid_of>: Use ptid_get_lwp.
19859 (get_lwp_thread): Adjust.
19860 (struct lwp_info): Add `dead' member.
19861 (find_lwp_pid): Declare.
19862 * linux-low.c (thread_db_active): Delete.
19863 (new_inferior): Adjust comment.
19864 (inferior_pid): Delete.
19865 (linux_add_process): New.
19866 (handle_extended_wait): Adjust.
19867 (add_lwp): Change unsigned long to ptid.
19868 (linux_create_inferior): Add process to processes table. Adjust
19869 to use ptids. Don't set new_inferior here.
19870 (linux_attach_lwp): Rename to ...
19871 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19872 it. Adjust to use ptids.
19873 (linux_attach_lwp): New.
19874 (linux_attach): Add process to processes table. Don't set
19876 (struct counter): New.
19877 (second_thread_of_pid_p, last_thread_of_process_p): New.
19878 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19879 multiple processes.
19880 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19881 processes. Remove process from process table.
19882 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19883 to multiple processes.
19884 (any_thread_of): New.
19885 (linux_detach): Add `pid' argument, and handle it. Remove process
19886 from processes table.
19887 (linux_join): Add `pid' argument. Handle it.
19888 (linux_thread_alive): Change unsighed long argument to ptid_t.
19889 Consider dead lwps as not being alive.
19890 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19891 threads we're not interested in.
19892 (same_lwp, find_lwp_pid): New.
19893 (linux_wait_for_lwp): Change `pid' argument's type from int to
19895 (linux_wait_for_event): Rename to ...
19896 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19897 from int to ptid_t. Adjust.
19898 (linux_wait_for_event): New.
19899 (linux_wait_1): Add `ptid' argument. Change return type to
19900 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19901 that exit from the process table.
19902 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19904 (mark_lwp_dead): New.
19905 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19906 stopping all threads, mark its main lwp as dead.
19907 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19909 (fetch_register, usr_store_inferior_registers)
19910 (regsets_fetch_inferior_registers)
19911 (regsets_store_inferior_registers, linux_read_memory)
19912 (linux_write_memory): Inline `inferior_pid'.
19913 (linux_look_up_symbols): Adjust to use per-process
19914 `thread_db_active'.
19915 (linux_request_interrupt): Adjust to use ptids.
19916 (linux_read_auxv): Inline `inferior_pid'.
19917 (initialize_low): Don't reference thread_db_active.
19918 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19919 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19920 (ps_getpid): Return the pid of the current inferior.
19921 * thread-db.c (proc_handle, thread_agent): Delete.
19922 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19924 (find_one_thread): Change argument type to ptid_t. Adjust to
19926 (maybe_attach_thread): Adjust to per-process data and ptids.
19927 (thread_db_find_new_threads): Ditto.
19928 (thread_db_init): Ditto.
19929 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19930 processes table. Adjust to use ptids.
19931 (spu_kill, spu_detach): Adjust interface. Remove process from
19933 (spu_join, spu_thread_alive): Adjust interface.
19934 (spu_wait): Adjust interface. Remove process from processes
19935 table. Adjust to use ptids.
19936 * win32-low.c (current_inferior_tid): Delete.
19937 (current_inferior_ptid): New.
19938 (debug_event_ptid): New.
19939 (thread_rec): Take a ptid. Adjust.
19940 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19941 (child_delete_thread): Ditto.
19942 (do_initial_child_stuff): Add `attached' argument. Add process to
19944 (child_fetch_inferior_registers, child_store_inferior_registers):
19946 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19947 (win32_attach): Pass 1 to do_initial_child_stuff.
19948 (win32_kill): Adjust interface. Remove process from processes
19950 (win32_detach): Ditto.
19951 (win32_join): Adjust interface.
19952 (win32_thread_alive): Take a ptid.
19953 (win32_resume): Adjust to use ptids.
19954 (get_child_debug_event): Ditto.
19955 (win32_wait): Adjust interface. Remove exiting process from
19958 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19960 Non-stop mode support.
19962 * server.h (non_stop): Declare.
19963 (gdb_client_data, handler_func): Declare.
19964 (delete_file_handler, add_file_handler, start_event_loop):
19966 (handle_serial_event, handle_target_event, push_event)
19967 (putpkt_notif): Declare.
19968 * target.h (enum resume_kind): New.
19969 (struct thread_resume): Replace `step' field by `kind' field.
19970 (TARGET_WNOHANG): Define.
19971 (struct target_ops) <wait>: Add `options' argument.
19972 <supports_non_stop, async, start_non_stop>: New fields.
19973 (target_supports_non_stop, target_async): New.
19974 (start_non_stop): Declare.
19975 (mywait): Add `options' argument.
19976 * target.c (mywait): Add `options' argument. Print child exit
19977 notifications here.
19978 (start_non_stop): New.
19979 * server.c (non_stop, own_buf, mem_buf): New globals.
19980 (struct vstop_notif): New.
19981 (notif_queue): New global.
19982 (queue_stop_reply, push_event, discard_queued_stop_replies)
19983 (send_next_stop_reply): New.
19984 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19986 (attach_inferior): In non-stop mode, don't wait for the target
19988 (handle_general_set): Handle QNonStop.
19989 (handle_query): When handling qC, return the current general
19990 thread, instead of the first thread of the list.
19991 (handle_query): If the backend supports non-stop mode, include
19992 QNonStop+ in the qSupported query response.
19993 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19995 (handle_v_attach, handle_v_run): Handle non-stop mode.
19996 (handle_v_stopped): New.
19997 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19998 (myresume): Adjust to use resume_kind. Handle non-stop.
19999 (queue_stop_reply_callback): New.
20000 (handle_status): Handle non-stop mode.
20001 (main): Clear non_stop flag on reconnection. Use the event-loop.
20002 Refactor serial protocol handling from here ...
20003 (process_serial_event): ... to this new function. When GDB
20004 selects any thread, select one here. In non-stop mode, wait until
20005 GDB acks all pending events before exiting.
20006 (handle_serial_event, handle_target_event): New.
20007 * remote-utils.c (remote_open): Install remote_desc in the event
20009 (remote_close): Remove remote_desc from the event loop.
20010 (putpkt_binary): Rename to...
20011 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
20012 (putpkt_binary): New as wrapper around putpkt_binary_1.
20013 (putpkt_notif): New.
20014 (prepare_resume_reply): In non-stop mode, don't change the
20016 * event-loop.c: New.
20017 * Makefile.in (OBJ): Add event-loop.o.
20018 (event-loop.o): New rule.
20020 * linux-low.h (pid_of): Moved here.
20022 (get_lwp_thread): Use lwpid_of.
20023 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
20024 * linux-low.c (pid_of): Delete.
20025 (inferior_pid): Use lwpid_of.
20026 (linux_event_pipe): New.
20027 (target_is_async_p): New.
20029 (handle_extended_wait): Use lwpid_of.
20030 (add_lwp): Don't set lwpid field.
20031 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
20032 (linux_kill_one_lwp): If killing a running lwp, stop it first.
20033 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
20034 (linux_detach_one_lwp): If detaching from a running lwp, stop it
20035 first. Adjust to linux_wait_for_event interface changes. Use
20037 (linux_detach): Don't delete the main lwp here.
20038 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
20039 (status_pending_p): Don't consider explicitly suspended lwps.
20040 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
20041 pointer. Add OPTIONS argument. Change return type to int. Use
20042 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
20043 (linux_wait_for_event): Take an integer pid instead of a lwp_info
20044 pointer. Add status pointer argument. Return a pid instead of a
20045 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
20046 changes. In non-stop mode, don't switch to a random thread.
20047 (linux_wait): Rename to...
20048 (linux_wait_1): ... this. Add target_options argument, and handle
20049 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20050 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20051 clean exit and signal exit code. Don't stop all threads in
20052 non-stop mode. In all-stop mode, only stop all threads when
20053 reporting a stop to GDB. Handle explicit thread stop requests.
20054 (async_file_flush, async_file_mark): New.
20056 (send_sigstop): Use lwpid_of.
20057 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20058 interface changes. In non-stop mode, don't switch to a random
20060 (linux_resume_one_lwp): Use lwpid_of.
20061 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20062 (linux_resume_one_thread): ... this. Handle resume_stop. In
20063 non-stop mode, don't look for pending flag in all threads.
20064 (resume_status_pending_p): Don't consider explicitly suspended
20066 (my_waitpid): Reimplement. Emulate __WALL.
20067 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20069 (sigchld_handler, linux_supports_non_stop, linux_async)
20070 (linux_start_non_stop): New.
20071 (linux_target_ops): Register linux_supports_non_stop, linux_async
20072 and linux_start_non_stop.
20073 (initialize_low): Install SIGCHLD handler.
20074 * thread-db.c (thread_db_create_event, find_one_thread)
20075 (thread_db_get_tls_address): Use lwpid_of.
20076 * win32-low.c (win32_detach): Adjust to use resume_kind.
20077 (win32_wait): Add `options' argument.
20078 * spu-low.c (spu_resume): Adjust to use resume_kind.
20079 (spu_wait): Add `options' argument.
20081 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20083 Decouple target code from remote protocol.
20085 * target.h (enum target_waitkind): New.
20086 (struct target_waitstatus): New.
20087 (struct target_ops) <wait>: Return an unsigned long. Take a
20088 target_waitstatus pointer instead of a char pointer.
20089 (mywait): Likewise.
20090 * target.c (mywait): Change prototype to return an unsigned long.
20091 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20092 * server.h (thread_from_wait, old_thread_from_wait): Delete
20094 (prepare_resume_reply): Change prototype to take a
20096 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20097 (last_status, last_ptid): New.
20098 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20099 pid instead of a signal.
20100 (attach_inferior): Remove "status" and "signal" parameters.
20102 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20104 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20105 (handle_v_requests, myresume): Remove "status" and "signal"
20106 parameters. Adjust.
20107 (handle_status): New.
20108 (main): Delete local `status'. Adjust.
20109 * remote-utils.c: Include target.h.
20110 (prepare_resume_reply): Change prototype to take a
20111 target_waitstatus. Adjust.
20113 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20115 * spu-low.c (spu_wait): Adjust.
20116 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20118 (win32_wait): Adjust.
20120 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20122 * target.h (struct thread_resume): Delete leave_stopped member.
20123 (struct target_ops): Add a `n' argument to the `resume' callback.
20124 * server.c (start_inferior): Adjust.
20125 (handle_v_cont, myresume): Adjust.
20126 * linux-low.c (check_removed_breakpoint): Adjust to resume
20127 interface change, and to removed leave_stopped field.
20128 (resume_ptr): Delete.
20129 (struct thread_resume_array): New.
20130 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20131 resume interface change.
20132 (linux_continue_one_thread, linux_queue_one_thread)
20133 (resume_status_pending_p): Check if the resume field is NULL
20134 instead of checking the leave_stopped member.
20135 (linux_resume): Adjust to the target resume interface change.
20136 * spu-low.c (spu_resume): Adjust to the target resume interface
20138 * win32-low.c (win32_detach, win32_resume): Ditto.
20140 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20142 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20144 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20146 (linux_continue_one_thread): Only preserve the stepping flag if
20147 there's a pending breakpoint.
20149 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20151 * server.c (main): After the inferior having exited, call
20152 remote_close before exiting gdbserver.
20154 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20156 Fix size of FPSCR in Power 7 processors.
20157 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20158 (PPC_FEATURE_HAS_DFP): New #define.
20159 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20162 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20164 * server.c (handle_query) Whitespace and formatting.
20166 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20168 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20169 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20170 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20171 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20172 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20173 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20174 Makefile.in, configure.ac: Fix whitespace throughout.
20175 * configure: Regenerate.
20177 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20179 * inferiors.c (find_inferior): Make it safe for the callback
20180 function to delete the currently iterated inferior.
20182 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20184 * Makefile.in (linuw_low_h): Move higher.
20185 (thread-db.o): Depend on $(linux_low_h).
20187 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20189 Rename "process" to "lwp" throughout.
20191 * linux-low.c (all_processes): Rename to...
20192 (all_lwps): ... this.
20193 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20194 (add_process): Rename to ...
20195 (add_lwp): ... this. Adjust.
20196 (linux_create_inferior): Adjust.
20197 (linux_attach_lwp): Adjust.
20198 (linux_attach): Adjust.
20199 (linux_kill_one_process): Rename to ...
20200 (linux_kill_one_lwp): ... this. Adjust.
20201 (linux_kill): Adjust.
20202 (linux_detach_one_process): Rename to ...
20203 (linux_detach_one_lwp): ... this. Adjust.
20204 (linux_detach): Adjust.
20205 (check_removed_breakpoint): Adjust.
20206 (status_pending_p): Adjust.
20207 (linux_wait_for_process): Rename to ...
20208 (linux_wait_for_lwp): ... this. Adjust.
20209 (linux_wait_for_event): Adjust.
20210 (send_sigstop): Adjust.
20211 (wait_for_sigstop): Adjust.
20212 (stop_all_processes): Rename to ...
20213 (stop_all_lwps): ... this.
20214 (linux_resume_one_process): Rename to ...
20215 (linux_resume_one_lwp): ... this. Adjust.
20216 (linux_set_resume_request, linux_continue_one_thread)
20217 (linux_queue_one_thread, resume_status_pending_p)
20218 (usr_store_inferior_registers, regsets_store_inferior_registers)
20219 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20221 * linux-low.h (get_process): Rename to ...
20222 (get_lwp): ... this. Adjust.
20223 (get_thread_process): Rename to ...
20224 (get_thread_lwp): ... this. Adjust.
20225 (get_process_thread): Rename to ...
20226 (get_lwp_thread): ... this. Adjust.
20227 (struct process_info): Rename to ...
20228 (struct lwp_info): ... this.
20229 (all_processes): Rename to ...
20230 (all_lwps): ... this.
20231 * proc-service.c (ps_lgetregs): Adjust.
20232 * thread-db.c (thread_db_create_event, find_one_thread)
20233 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20235 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20237 * server.c (handle_query): Handle "qAttached".
20239 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20241 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20242 GPLv3, update license URL.
20244 2009-03-01 Doug Evans <dje@google.com>
20246 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20247 (server_h): Add gdb_signals.h.
20248 (signals.o): Update.
20249 * server.h (target_signal_from_host,target_signal_to_host_p)
20250 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20252 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20254 * remote-utils.c (getpkt): Also generate remote-debug
20255 information if noack_mode is set.
20257 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20259 * server.c (handle_query): Report qXfer:siginfo:read and
20260 qXfer:siginfo:write as supported and handle them.
20261 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20262 * linux-low.c (linux_xfer_siginfo): New.
20263 (linux_target_ops): Set it.
20265 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20267 * server.c (gdbserver_usage): Mention --remote-debug.
20268 (main): Accept '--remote-debug' switch.
20270 2009-01-18 Doug Evans <dje@google.com>
20272 * regcache.c (new_register_cache): No need to check result of xcalloc.
20273 * server.c (handle_search_memory): Back out calls to xmalloc,
20274 result is checked and error is returned to user upon failure.
20275 (handle_query): Ditto. Add more checks for result of malloc.
20276 (handle_v_cont): Check result of malloc, report error back to
20278 (handle_v_run): Ditto. Call freeargv.
20279 * server.h (freeargv): Declare.
20280 * utils.c (freeargv): New fn.
20282 2009-01-15 Doug Evans <dje@google.com>
20284 * gdbreplay.c (perror_with_name): Make arg const char *.
20285 * server.h (target_signal_to_name): Make return type const char *.
20286 * thread-db.c (thread_db_err_str): Make return type const char *.
20287 * utils.c (perror_with_name): Make arg const char *.
20289 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20291 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20292 when handling a EXIT_PROCESS_DEBUG_EVENT.
20294 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20296 * gdbreplay.c (gdbreplay_version): Update copyright year.
20297 * server.c (gdbserver_version): Likewise.
20299 2009-01-05 Doug Evans <dje@google.com>
20301 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20302 (handle_extended_wait): Improve comment.
20304 2008-12-13 Doug Evans <dje@google.com>
20306 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20307 * server.h (ATTR_MALLOC): New macro.
20308 (xmalloc,xcalloc,xstrdup): Declare.
20309 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20310 * inferiors.c: Ditto.
20311 * linux-low.c: Ditto.
20312 * mem-break.c: Ditto.
20313 * regcache.c: Ditto.
20314 * remote-utils.c: Ditto.
20317 * win32-low.c: Ditto.
20319 2008-12-12 Doug Evans <dje@google.com>
20321 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20322 in debugging printf.
20324 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20326 2008-12-09 Doug Evans <dje@google.com>
20328 * linux-low.h (struct process_info): Delete member tid, unused.
20329 * thread-db.c (find_one_thread): Update.
20330 (maybe_attach_thread): Update.
20332 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20334 * target.h (struct target_ops): Add qxfer_osdata member.
20335 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20337 (linux_qxfer_osdata): New functions.
20338 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20340 * server.c (handle_query): Handle "qXfer:osdata:read:".
20341 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20342 (buffer_xml_printf): New functions.
20343 * server.h (struct buffer): New.
20344 (buffer_grow_str, buffer_grow_str0): New macros.
20345 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20346 (buffer_xml_printf): Declare.
20348 2008-11-24 Doug Evans <dje@google.com>
20350 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20352 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20354 * server.c (handle_v_run): Always use the supplied argument list.
20356 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20358 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20359 (xtensa_regmap_table): Add entry for scompare1.
20361 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20363 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20364 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20365 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20366 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20367 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20368 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20369 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20370 XML target descriptions.
20371 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20372 when inferior is running on an ISA 2.05 or later processor. Add
20373 special case to return offset for full 64-bit slot of FPSCR when
20376 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20378 * Makefile.in (SFILES, clean): Added sparc64 files.
20379 (reg-sparc64.o, reg-sparc64.c): New.
20380 * configure.srv (sparc*-*-linux*): New configuration.
20381 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20382 syscall arguments for SPARC.
20383 (regsets_store_inferior_registers): Likewise.
20384 * linux-sparc-low.c: New file.
20386 2008-10-21 Doug Evans <dje@google.com>
20388 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20389 (READLINE_DIR,READLINE_DEP): Delete.
20390 (INTERNAL_CFLAGS): Update.
20391 (LINTFLAGS): Update.
20393 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20395 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20396 whole argv from the last run, not just argv[0].
20398 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20400 * regcache.c (new_register_cache): Return NULL if the register
20401 cache size isn't known yet.
20402 (free_register_cache): Avoid dereferencing a NULL regcache.
20404 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20406 * configure.srv: Merge MIPS and MIPS64.
20408 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20410 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20412 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20414 * Makefile.in: Add required vsx dependencies.
20416 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20417 Declare init_registers_powerpc_vsx32l.
20418 Declare init_registers_powerpc_vsx64l.
20419 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20420 (ppc_arch_setup): Check for VSX in hwcap.
20421 (ppc_fill_vsxregset): New function.
20422 (ppc_store_vsxregset): New function.
20423 Add new VSX entry in regset_info target_regsets.
20425 * configure.srv: Add new VSX dependencies.
20427 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20429 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20430 (remote_open): Set or clear transport_is_reliable.
20431 (putpkt_binary): Don't expect acks in noack mode.
20432 (getpkt): Don't send ack/nac in noack mode.
20433 * server.c (handle_general_set): Handle QStartNoAckMode.
20434 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20436 (main): Reset noack_mode on every connection.
20437 * server.h (noack_mode): Declare.
20439 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20441 * Makefile.in (GDBREPLAY_OBS): New variable.
20442 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20444 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20445 Daniel Jacobowitz <dan@codesourcery.com>
20447 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20448 (usr_store_inferior_registers): Likewise.
20449 (regsets_store_inferior_registers): Likewise.
20451 2008-07-31 Rolf Jansen <rj@surtec.com>
20452 Pedro Alves <pedro@codesourcery.com>
20454 * configure.ac: Check for memmem declaration.
20455 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20456 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20457 (disable_packet_qfThreadInfo): Unconditionally compile.
20458 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20459 * configure, config.in: Regenerate.
20461 2008-07-28 Doug Kwan <dougkwan@google.com>
20463 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20464 (linux_write_memory): Remove declaration of errno.
20466 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20468 * linux-low.c (handle_extended_wait): Do not use "status"
20469 variable uninitialized.
20471 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20473 * server.c (handle_v_attach): Inhibit reporting dll changes.
20475 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20477 * remote-utils.c (prepare_resume_reply): If requested, don't
20478 output "thread:TID" in the T stop reply.
20480 * server.c (disable_packet_vCont, disable_packet_Tthread)
20481 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20482 (handle_query): If requested, disable support for qC, qfThreadInfo
20484 (handle_v_requests): If requested, disable support for vCont.
20485 (gdbserver_show_disableable): New.
20486 (main): Handle --disable-packet and --disable-packet=LIST.
20488 * server.h (disable_packet_vCont, disable_packet_Tthread)
20489 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20491 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20493 * server.c (gdbserver_usage): Mention --version.
20495 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20497 * Makefile.in (gdbreplay.o): New rule.
20499 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20501 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20502 message, not gdbserver.
20504 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20505 Nathan Sidwell <nathan@codesourcery.com>
20506 Joseph Myers <joseph@codesourcery.com>
20508 * acinclude.m4: Include ../../config/acx.m4.
20509 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20510 * configure, config.in: Regenerate.
20511 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20512 * server.c (gdbserver_version): Print PKGVERSION.
20513 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20514 (main): Adjust gdbserver_usage calls.
20515 * gdbreplay.c (version, host_name): Add declarations.
20516 (gdbreplay_version, gdbreplay_usage): New.
20517 (main): Accept --version and --help options.
20519 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20521 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20522 (arm_breakpoint_at): Handle Thumb.
20523 (the_low_target): Add comment.
20525 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20527 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20529 2008-05-09 Doug Evans <dje@google.com>
20531 * server.h (decode_search_memory_packet): Declare.
20532 * remote-utils.c (decode_search_memory_packet): New fn.
20533 * server.c (handle_search_memory_1): New fn.
20534 (handle_search_memory): New fn.
20535 (handle_query): Process qSearch:memory packets.
20537 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20539 * regcache.c (registers_length): Remove.
20540 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20541 full register packet.
20542 * regcache.h (registers_length): Remove prototype.
20543 * server.h (PBUFSIZ): Define to 16384.
20545 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20547 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20548 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20549 powerpc-64l.o, and powerpc-altivec64l.o.
20550 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20551 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20552 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20553 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20554 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20557 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20558 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20559 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20560 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20561 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20562 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20563 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20564 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20565 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20566 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20569 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20570 (init_registers_powerpc_32l): ... this new prototype.
20571 (init_registers_powerpc_32): Remove, replace by ...
20572 (init_registers_powerpc_altivec32l): ... this new prototype.
20573 (init_registers_powerpc_e500): Remove, replace by ...
20574 (init_registers_powerpc_e500l): ... this new prototype.
20575 (init_registers_ppc64): Remove, replace by ...
20576 (init_registers_powerpc_64l): ... this new prototype.
20577 (init_registers_powerpc_64): Remove, replace by ...
20578 (init_registers_powerpc_altivec64l): ... this new prototype.
20579 (ppc_num_regs): Set to 73.
20580 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20581 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20582 (ppc_cannot_store_register): Handle orig_r3 and trap.
20583 (ppc_arch_setup): Update init_registers_... calls.
20584 (ppc_fill_gregset): Handle orig_r3 and trap.
20586 * inferiors.c (clear_inferiors): Reset current_inferior.
20588 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20590 * acinclude.m4: Add override.m4.
20591 * configure: Regenerate.
20593 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20595 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20596 initial call to init_register_ppc64.
20598 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20600 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20601 single powerpc*-*-linux* case.
20602 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20604 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20606 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20607 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20609 * linux-ppc-low.c: Include <elf.h>.
20610 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20611 (ppc_hwcap): New global variable.
20612 (ppc_regmap): Remove __SPE__ #ifdef sections.
20613 (ppc_regmap_e500): New global variable.
20614 (ppc_cannot_store_register): Update __SPE__ special case.
20615 (ppc_get_hwcap): New function.
20616 (ppc_arch_setup): Use it to determine whether inferior supports
20617 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20618 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20619 Do not access registers if target does not support AltiVec.
20620 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20621 Do not access registers if target does not support SPE.
20622 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20624 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20626 * linux-low.c (disabled_regsets, num_regsets): New.
20627 (use_regsets_p): Delete.
20628 (linux_wait_for_process): Clear disabled_regsets.
20629 (regsets_fetch_inferior_registers): Check and set it.
20630 (regsets_store_inferior_registers): Likewise.
20631 (linux_fetch_registers, linux_store_registers): Do not use
20633 (initialize_low): Allocate disabled_regsets.
20635 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20637 * Makefile.in (LIBOBJS): New.
20638 (OBS): Use LIBOBJS.
20639 (memmem.o): New rule.
20640 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20641 * configure: Regenerated.
20643 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20645 * server.c (handle_query): Never return "unsupported" for
20646 qXfer:features:read queries.
20648 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20650 * server.c (get_features_xml): Fix inverted condition.
20651 (handle_query): Always support qXfer:feature:read.
20653 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20655 * server.c (wrapper_argv): New.
20656 (start_inferior): Handle wrapper_argv. If set, expect an extra
20658 (gdbserver_usage): Document --wrapper.
20659 (main): Parse --wrapper.
20661 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20663 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20664 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20665 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20666 (ppc_set_pc): Likewise.
20667 (ppc_arch_setup): New function.
20668 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20669 of collect_register.
20670 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20672 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20674 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20675 instead of linux-ppc64-low.o.
20676 * linux-ppc64-low.c: Remove file.
20677 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20678 (linux-ppc64-low.o): Remove rule.
20680 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20681 (init_registers_powerpc_64): Likewise.
20682 (ppc_regmap): Conditionally define depending on __powerpc64__.
20683 (ppc_cannot_store_register): Do not special-case "fpscr" when
20684 compiled on __powerpc64__.
20685 (ppc_collect_ptrace_register): New function.
20686 (ppc_supply_ptrace_register): New function.
20687 (ppc_breakpoint): Change type to "unsigned int".
20688 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20689 (the_low_target): Conditionally provide initializers for the
20690 arch_setup member depending on __powerpc64__. Install
20691 collect_ptrace_register and supply_ptrace_register members.
20693 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20695 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20696 * server.c (gdbserver_xmltarget): Define.
20697 (get_features_xml): Use it to replace "target.xml" and arch_string.
20699 * configure.srv: Remove srv_xmltarget. Add XML files that were
20700 mentioned there to srv_xmlfiles instead. Remove conditional tests
20701 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20702 srv_xmlfiles and srv_regobj to include all possible choices.
20703 * configure.ac (srv_xmltarget): Remove.
20704 (srv_xmlfiles): Do not add "target.xml".
20705 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20706 checks for supplementary target information.
20707 * configure: Regenerate.
20708 * Makefile.in (XML_TARGET): Remove.
20709 (target.xml): Remove rule.
20710 (clean): Do not clean up target.xml.
20711 (.PRECIOUS): Do not mention target.xml.
20713 * target.h (struct target_ops): Remove arch_string member.
20714 * linux-low.c (linux_arch_string): Remove.
20715 (linux_target_ops): Remove arch_string initializer.
20716 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20717 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20718 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20719 * spu-low.c (spu_arch_string): Remove.
20720 (spu_target_ops): Remove arch_string initializer.
20721 * win32-low.c (win32_arch_string): Remove.
20722 (win32_target_ops): Remove arch_string initializer.
20723 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20724 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20725 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20727 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20729 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20730 by collect_ptrace_register and supply_ptrace_register hooks.
20731 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20732 instead of checking for the_low_target.left_pad_xfer.
20733 (usr_store_inferior_registers): Use collect_ptrace_register callback
20734 instead of checking for the_low_target.left_pad_xfer.
20736 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20737 (s390_supply_ptrace_register): Likewise.
20738 (s390_fill_gregset): Call s390_collect_ptrace_register.
20739 (the_low_target): Update.
20741 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20742 (ppc_supply_ptrace_register): Likewise.
20743 (the_low_target): Update.
20745 * linux-i386-low.c (the_low_target): Update.
20746 * linux-x86-64-low.c (the_low_target): Update.
20748 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20750 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20751 reg-s390.o and reg-s390x.o.
20753 * linux-low.c (new_inferior): New global variable.
20754 (linux_create_inferior, linux_attach): Set it.
20755 (linux_wait_for_process): Call the_low_target.arch_setup after the
20756 target has stopped for the first time.
20757 (initialize_low): Do not call the_low_target.arch_setup.
20759 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20760 (s390_set_pc): Likewise.
20761 (s390_arch_setup): New function.
20762 (the_low_target): Use s390_arch_setup as arch_setup routine.
20764 * regcache.c (realloc_register_cache): New function.
20765 (set_register_cache): Call it for each existing regcache.
20767 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20769 * server.h (init_registers): Remove prototype.
20771 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20772 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20773 instead of init_registers ().
20774 * linux-arm-low.c (init_registers_arm): Add prototype.
20775 (init_registers_arm_with_iwmmxt): Likewise.
20776 (the_low_target): Add initializer for arch_setup field.
20777 * linux-cris-low.c (init_registers_cris): Add prototype.
20778 (the_low_target): Add initializer for arch_setup field.
20779 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20780 (the_low_target): Add initializer for arch_setup field.
20781 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20782 (the_low_target): Add initializer for arch_setup field.
20783 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20784 (the_low_target): Add initializer for arch_setup field.
20785 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20786 (the_low_target): Add initializer for arch_setup field.
20787 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20788 (the_low_target): Add initializer for arch_setup field.
20789 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20790 (init_registers_mips64_linux): Likewise.
20791 (the_low_target): Add initializer for arch_setup field.
20792 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20793 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20794 (the_low_target): Add initializer for arch_setup field.
20795 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20796 (init_registers_powerpc_64): Likewise.
20797 (the_low_target): Add initializer for arch_setup field.
20798 * linux-s390-low.c (init_registers_s390): Add prototype.
20799 (init_registers_s390x): Likewise.
20800 (the_low_target): Add initializer for arch_setup field.
20801 * linux-sh-low.c (init_registers_sh): Add prototype.
20802 (the_low_target): Add initializer for arch_setup field.
20803 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20804 (the_low_target): Add initializer for arch_setup field.
20805 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20806 (the_low_target): Add initializer for arch_setup field.
20808 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20809 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20810 instead of init_registers ().
20811 * win32-arm-low.c (init_registers_arm): Add prototype.
20812 (the_low_target): Add initializer for arch_setup field.
20813 * win32-i386-low.c (init_registers_i386): Add prototype.
20814 (the_low_target): Add initializer for arch_setup field.
20816 * spu-low.c (init_registers_spu): Add prototype.
20817 (initialize_low): Call initialie_registers_spu () instead of
20818 initialize_registers ().
20820 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20822 * server.c (handle_v_requests): When handling the vRun and vAttach
20823 packets, if already debugging a process, don't kill it. Return an
20826 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20828 * server.c (handle_query): Correct length check.
20830 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20832 * win32-low.c (do_initial_child_stuff): Add process handle
20833 parameter. Set current_process_handle and current_process_id from the
20834 parameters. Clear globals.
20835 (win32_create_inferior): Don't set current_process_handle and
20836 current_process_id here. Instead pass them on the call to
20837 do_initial_child_stuff.
20838 (win32_attach): Likewise.
20839 (win32_clear_inferiors): New.
20840 (win32_kill): Don't close the current process handle or the
20841 current thread handle here. Instead call win32_clear_inferiors.
20842 (win32_detach): Don't open a new handle to the process. Call
20843 win32_clear_inferiors.
20844 (win32_join): Don't rely on current_process_handle; open a new
20845 handle using the process id.
20846 (win32_wait): Call win32_clear_inferiors when the inferior process
20849 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20851 * server.c (monitor_show_help): Add "exit".
20853 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20855 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20856 (clean): Add reg-xtensa.c.
20857 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20858 * configure.srv (xtensa*-*-linux*) New target.
20859 * linux-xtensa-low.c: New.
20860 * xtensa-xtregs.c: New.
20862 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20864 * hostio.c: Don't include errno.h.
20865 (errno_to_fileio_errno): Move to hostio-errno.
20866 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20867 error number outputting to the target->hostio_last_error callback.
20868 (hostio_packet_error): Use FILEIO_EINVAL directly.
20869 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20870 calls to hostio_error.
20871 * hostio-errno.c: New.
20872 * server.h (hostio_last_error_from_errno): Declare.
20873 * target.h (target_ops): Add hostio_last_error member.
20874 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20875 as hostio_last_error handler.
20876 * spu-low.c (spu_target_ops): Likewise.
20877 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20878 (wince_hostio_last_error): New functions.
20879 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20880 as hostio_last_error handler.
20881 (win32_target_ops) [!_WIN32_WCE]: Register
20882 hostio_last_error_from_errno as hostio_last_error handler.
20883 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20884 (hostio-errno.o): New rule.
20885 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20886 * configure.srv (srv_hostio_err_objs): New variable. Default to
20888 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20889 * configure: Regenerate.
20891 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20893 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20894 (linux_kill, linux_detach): Clean up the process list.
20895 * remote-utils.c (remote_open): Improve port number parsing.
20896 (putpkt_binary, input_interrupt): Only send interrupts if the target
20898 * server.c (extended_protocol): Make static.
20899 (attached): Define earlier.
20900 (exit_requested, response_needed, program_argv): New variables.
20901 (target_running): New.
20902 (start_inferior): Clear attached here.
20903 (attach_inferior): Set attached here.
20904 (require_running): Define.
20905 (handle_query): Use require_running and target_running. Implement
20907 (handle_v_attach, handle_v_run): New.
20908 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20909 (gdbserver_usage): Update.
20910 (main): Redo argument parsing. Handle --debug and --multi. Handle
20911 --attach along with other options or after the port. Save
20912 program_argv. Support no initial program. Resynchronize
20913 communication with GDB after an error. Handle "monitor exit".
20914 Use require_running and target_running. Always allow the extended
20915 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20916 restart in extended mode.
20917 * README: Refer to the GDB manual. Update --attach usage.
20919 2007-12-20 Andreas Schwab <schwab@suse.de>
20921 * linux-low.c (STACK_SIZE): Define.
20922 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20923 (linux_test_for_tracefork): Likewise.
20925 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20927 * linux-low.c (linux_wait_for_event): Update messages. Do not
20928 reinsert auto-delete breakpoints.
20929 * mem-break.c (struct breakpoint): Change return type of handler to
20931 (set_breakpoint_at): Update handler type.
20932 (reinsert_breakpoint_handler): Return 1 instead of calling
20934 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20936 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20937 * mem-break.h (set_breakpoint_at): Update handler type.
20938 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20939 * win32-low.c (auto_delete_breakpoint): New.
20940 (get_child_debug_event): Use it.
20942 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20944 * configure.ac: Check for pread and pwrite.
20945 * hostio.c (handle_pread): Fall back to lseek and read.
20946 (handle_pwrite): Fall back to lseek and write.
20947 * config.in, configure: Regenerated.
20949 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20951 * server.c (myresume): Add own_buf argument.
20952 (main): Update calls.
20954 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20956 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20957 * remote-utils.c (remote_open): Do not call disable_async_io.
20958 (block_async_io): Delete.
20959 (unblock_async_io): Make static.
20960 (initialize_async_io): New.
20961 * server.c (handle_v_cont): Handle async I/O here.
20962 (myresume): Likewise. Move other common resume tasks here...
20963 (main): ... from here. Call initialize_async_io. Disable async
20964 I/O before the main loop.
20965 * server.h (initialize_async_io): Declare.
20966 (block_async_io, unblock_async_io): Delete prototypes.
20967 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20969 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20971 * remote-utils.c (readchar): Allow binary data in received messages.
20973 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20975 * win32-low.c (attaching): New global.
20976 (win32_create_inferior): Clear the `attaching' global.
20977 (win32_attach): Set the `attaching' global.
20978 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20979 attaching. Only set a breakpoint at the entry point if not
20982 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20984 * server.c (main): Don't report dll events on the initial
20985 connection on attaches.
20987 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20989 * server.c (main): Relax numerical bases supported for the pid of
20990 the --attach command line argument.
20992 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20994 * win32-low.c (win32_attach): Call OpenProcess before
20995 DebugActiveProcess, not after. Add last error output to error
20998 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
21000 * win32-low.c (win32_get_thread_context)
21001 (win32_set_thread_context): New functions.
21002 (thread_rec): Use win32_get_thread_context.
21003 (continue_one_thread, win32_resume): Use win32_set_thread_context.
21004 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
21007 2007-12-03 Leo Zayas
21008 Pedro Alves <pedro_alves@portugalmail.pt>
21010 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
21012 (child_add_thread): Minor cleanup.
21013 (child_continue): Resume artificially suspended threads before
21014 calling ContinueDebugEvent.
21015 (suspend_one_thread): New.
21016 (fake_breakpoint_event): New.
21017 (get_child_debug_event): Change return type to int. Check here if
21018 gdb sent an interrupt request. If a soft interrupt was requested,
21019 fake a breakpoint event. Return 0 if there is no event to handle,
21021 (win32_wait): Don't check here if gdb sent an interrupt request.
21022 Ensure there is a valid event to handle.
21023 (win32_request_interrupt): Add soft interruption method as last
21026 2007-12-03 Leo Zayas
21027 Pedro Alves <pedro_alves@portugalmail.pt>
21029 * win32-low.h (win32_thread_info): Add descriptions to the
21030 structure members. Replace `suspend_count' counter by a
21032 * win32-low.c (thread_rec): Update condition of when to get the
21033 context from the inferior. Rely on ContextFlags being set if it
21034 has already been retrieved. Only suspend the inferior thread if
21035 we haven't already. Warn if that fails.
21036 (continue_one_thread): s/suspend_count/suspended/. Only call
21037 ResumeThread once. Warn if that fails.
21039 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21041 * win32-low.c (win32_wait): Don't read from the inferior when it
21042 has already exited.
21044 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
21046 * Makefile.in (win32_low_h): New variable.
21047 (win32-low.o): Add dependency on $(win32_low_h).
21048 (win32-arm-low.o, win32-i386-low.o): New rules.
21050 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21052 * hostio.c: Correct copyright year.
21054 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21056 * Makefile.in (OBS): Add hostio.o.
21057 (hostio.o): New rule.
21058 * server.h (handle_vFile): Declare.
21059 * hostio.c: New file.
21060 * server.c (handle_v_requests): Take packet_len and new_packet_len
21061 for binary packets. Call handle_vFile.
21062 (main): Update call to handle_v_requests.
21064 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21066 * linux-low.c: Include <sched.h>.
21068 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21070 * linux-low.c (linux_tracefork_grandchild): New.
21071 (linux_tracefork_child): Use clone.
21072 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21074 2007-10-31 Joel Brobecker <brobecker@adacore.com>
21076 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21078 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21080 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21082 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21084 * inferiors.c (change_inferior_id): Delete.
21085 (add_pid_to_list, pull_pid_from_list): New.
21086 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21087 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21088 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21089 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21090 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21091 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21092 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21093 (using_threads): Always set to 1.
21094 (handle_extended_wait): New.
21095 (add_process): Do not set TID.
21096 (linux_create_inferior): Set must_set_ptrace_flags.
21097 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21098 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21099 (linux_thread_alive): Rename TID argument to LWPID.
21100 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21101 (linux_wait_for_event): Do not use TID or check using_threads. Update
21102 call to dead_thread_notify. Call handle_extended_wait.
21103 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21104 (send_sigstop): Delete sigstop_sent.
21105 (wait_for_sigstop): Avoid TID.
21106 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21107 (linux_test_for_tracefork): New.
21108 (linux_lookup_signals): Use thread_db_active and
21109 linux_supports_tracefork_flag.
21110 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21111 * linux-low.h (get_process_thread): Avoid TID.
21112 (struct process_ifo): Move thread_known and tid to the end. Remove
21114 (linux_attach_lwp, thread_db_init): Update prototypes.
21115 * server.h (change_inferior_id): Delete prototype.
21116 (add_pid_to_list, pull_pid_from_list): New prototypes.
21117 * thread-db.c (thread_db_use_events): New.
21118 (find_first_thread): Rename to...
21119 (find_one_thread): ...this. Update callers and messages. Do not
21120 call fatal. Check thread_db_use_events. Do not call
21121 change_inferior_id or new_thread_notify.
21122 (maybe_attach_thread): Update. Do not call new_thread_notify.
21123 (thread_db_init): Set thread_db_use_events. Check use_events.
21124 * utils.c (fatal, warning): Correct message prefix.
21126 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21128 * Makefile.in (clean): Remove new files.
21129 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21130 (powerpc-64.o, powerpc-64.c): New rules.
21131 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21132 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21134 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21136 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21137 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21138 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21139 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21140 (target_regsets): Add AltiVec and SPE register sets.
21141 * configure.ac: Check for AltiVec and SPE.
21142 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21143 (ppc_fill_vrregset, ppc_store_vrregset): New.
21144 (target_regsets): Add AltiVec register set.
21145 * configure: Regenerated.
21147 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21149 * linux-low.c (O_LARGEFILE): Define.
21150 (linux_read_memory): Use /proc/PID/mem.
21151 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21152 * configure, config.in: Regenerated.
21154 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21156 * linux-low.c (linux_wait_for_event): Do not pass signals while
21159 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21161 * win32-low.c (create_process): New.
21162 (win32_create_inferior): Use create_process instead of
21163 CreateProcess. If create_process failed retry appending an ".exe"
21164 suffix. Store the GetLastError result immediatelly after
21165 create_process calls and use it on the call to error.
21167 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21169 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21171 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21173 * configure.ac: Switch license to GPLv3.
21175 2007-08-01 Michael Snyder <msnyder@access-company.com>
21177 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21179 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21181 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21183 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21184 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21185 CloseToolhelp32Snapshot.
21186 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21187 CloseToolhelp32Snapshot.
21189 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21191 * server.c (main): Check for inferior exit before main loop.
21193 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21195 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21196 instead of on tmp_desc.
21198 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21199 Daniel Jacobowitz <dan@codesourcery.com>
21201 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21202 (add_thread): Minor cleanups.
21203 (clear_inferiors): Move lower in the file. Clear the DLL
21205 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21206 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21207 (xml_escape_text): New.
21208 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21210 (handle_v_cont): Report errors.
21211 (gdbserver_version): Update.
21212 (main): Correct size of own_buf. Do not report initial DLL events.
21213 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21214 (unloaded_dll, xml_escape_text): New.
21215 * win32-low.c (enum target_waitkind): Update comments.
21216 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21217 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21218 (win32_EnumProcessModules, win32_GetModuleInformation)
21219 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21220 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21221 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21222 (win32_Module32First, win32_Module32Next, load_toolhelp)
21223 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21224 (get_child_debug_event): Handle DLL events.
21225 (win32_wait): Likewise.
21227 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21229 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21230 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21232 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21234 * win32-low.c (handle_output_debug_string): Ignore event if not
21237 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21239 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21241 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21243 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21245 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21247 * inferiors.c (change_inferior_id): Add comment.
21248 * linux-low.c (check_removed_breakpoint): Add an early
21249 prototype. Improve debug output.
21250 (linux_attach): Doc update.
21251 (linux_detach_one_process, linux_detach): Clean up before releasing
21253 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21254 * linux-low.h (struct process_info): Doc improvement.
21255 * mem-break.c (delete_all_breakpoints): New.
21256 * mem-break.h (delete_all_breakpoints): New prototype.
21257 * thread-db.c (find_first_thread): New.
21258 (thread_db_create_event): Call it instead of
21259 thread_db_find_new_threads. Clean up unused variables.
21260 (maybe_attach_thread): Remove first thread handling.
21261 (thread_db_find_new_threads): Use find_first_thread.
21262 (thread_db_get_tls_address): Likewise.
21264 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21266 * thread-db.c (thread_db_find_new_threads): Add prototype.
21267 (thread_db_create_event): Check for the main thread before adding
21269 (maybe_attach_thread): Only enable event reporting if TID == 0.
21270 (thread_db_get_tls_address): Check for new threads.
21272 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21274 * linux-low.c (linux_create_inferior): Try execv before execvp.
21275 * spu-low.c (spu_create_inferior): Likewise.
21277 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21279 * linux-low.c (linux_create_inferior): Change execv to execvp.
21280 * spu-low.c (spu_create_inferior): Likewies.
21282 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21284 * Makefile.in (clean): Clean new files instead of deleted ones.
21285 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21286 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21288 * configure.srv: Specify XML files and new regformats for MIPS and
21290 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21291 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21292 an entry for the restart register.
21293 (mips_cannot_fetch_register, mips_cannot_store_register)
21294 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21295 register names to match the XML descriptions.
21296 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21297 restart register instead of $0.
21299 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21300 Markus Deuling <deuling@de.ibm.com>
21302 * remote-utils.c (decode_xfer_write): New function.
21303 * server.h (decode_xfer_write): Add prototype.
21304 * server.c (handle_query): Add PACKET_LEN argument. Support
21305 qXfer:spu:read and qXfer:spu:write packets.
21306 (main): Pass packet_len to handle_query.
21307 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21308 * target.h (target_ops): Add qxfer_spu.
21310 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21312 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21313 accessing non-seekable spufs files.
21315 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21317 * server.c (handle_query): Add reply for qC packet.
21319 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21320 Leo Zayas <lerele@champenstudios@com>
21322 * server.h (check_remote_input_interrupt_request): New function.
21323 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21324 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21325 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21326 (check_remote_input_interrupt_request): New function.
21327 * server.h (check_remote_input_interrupt_request): Declare.
21328 * win32-low.c (winapi_DebugBreakProcess,
21329 winapi_GenerateConsoleCtrlEvent): New typedefs.
21330 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21332 (win32_wait): Check for remote interrupt request
21333 with check_remote_input_interrupt_request.
21334 (win32_request_interrupt): New function.
21335 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21337 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21339 * win32-low.c (debug_registers_changed,
21340 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21341 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21342 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21343 (thread_rec): Get context using the low target.
21344 (child_add_thread): Call thread_added on the low target,
21345 which does the same thing.
21347 (do_initial_child_stuff): Remove debug registers references.
21348 Set context using the low target. Resume threads after
21349 setting the contexts.
21350 (child_continue): Remove dead variable. Remove debug
21351 registers references.
21352 (child_fetch_inferior_registers): Go through the low target.
21353 (do_child_store_inferior_registers): Remove.
21354 (child_store_inferior_registers): Go through the low target.
21355 (win32_resume): Remove debug registers references.
21356 Set context using the low target.
21357 (handle_exception): Change return type to void. Don't record
21358 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21359 first chance exception.
21360 (get_child_debug_event): Change return type to void. Remove
21361 goto loop. Always return after waiting for debug event.
21362 (win32_wait): Convert to switch statement. Handle spurious
21365 * win32-i386-low.c (debug_registers_changed,
21366 debug_registers_used): New.
21367 (initial_stuff): Rename to ...
21368 (i386_initial_stuff): ... this. Clear debug registers
21370 (store_debug_registers): Delete.
21371 (i386_get_thread_context): New.
21372 (load_debug_registers): Delete.
21373 (i386_set_thread_context): New.
21374 (i386_thread_added): New.
21375 (single_step): Rename to ...
21376 (i386_single_step): ... this.
21377 (do_fetch_inferior_registers): Rename to ...
21378 (i386_fetch_inferior_register): ... this.
21379 (i386_store_inferior_register): New.
21380 (the_low_target): Adapt to new interface.
21382 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21383 (arm_get_thread_context): New.
21384 (arm_set_thread_context): New.
21386 (do_fetch_inferior_registers): Rename to ...
21387 (arm_fetch_inferior_register): ... this.
21388 (arm_store_inferior_register): New.
21389 (arm_wince_breakpoint): Reimplement as unsigned long.
21390 (arm_wince_breakpoint_len): Define.
21391 (the_low_target): Adapt to new interface.
21393 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21394 load_debug_registers. Add get_thread_context, set_thread_context,
21395 thread_added and store_inferior_register. Rename
21396 fetch_inferior_registers to fetch_inferior_register.
21397 (regptr): Remove declaration.
21399 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21401 * linux-low.c (linux_detach): Change return type to int. Return 0.
21402 * spu-low.c (spu_detach): Likewise.
21404 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21406 * target.h (target_ops): Change return type of detach to int.
21408 (join_inferior): New.
21409 * server.c (main): Don't skip detach support on mingw32.
21410 If the inferior doesn't support detaching return error.
21411 Call join_inferior instead of using waitpid.
21412 * linux-low.c (linux_join): New.
21413 (linux_target_op): Add linux_join.
21414 * spu-low.c (spu_join): New.
21415 (spu_target_ops): Add spu_join.
21416 * win32-low.c (win32_detach): Adapt to new interface.
21417 Reopen current_process_handle before detaching. Issue a child
21418 resume before detaching.
21420 (win32_target_op): Add win32_join.
21422 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21424 * win32-low.c (win32-attach): Fix return value.
21425 * target.h (target_ops): Describe ATTACH return values.
21427 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21429 * win32-low.c (GETPROCADDRESS): Define.
21430 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21431 (winapi_DebugSetProcessKillOnExit): Likewise.
21432 (win32_create_inferior): Force usage of ansi CreateProcessA.
21433 (win32_attach): Use GETPROCADDRESS.
21434 (win32_detach): Likewise.
21436 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21438 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21440 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21442 * win32-low.c: Commit leftover changes from 2007-03-29.
21444 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21446 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21447 fields short instead of int. Add explicit padding.
21448 (i387_cache_to_fsave): Remove unnecessary casts.
21449 (i387_fsave_to_cache): Doc fix.
21450 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21452 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21454 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21455 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21457 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21459 * configure.srv (arm*-*-mingw32ce*): Move near the other
21462 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21464 * configure.ac: Add errno checking.
21465 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21466 sys/file.h and malloc.h.
21467 (AC_CHECK_DECLS): Add perror.
21468 (srv_mingwce): Handle.
21469 * configure.srv (i[34567]86-*-cygwin*): Add
21470 win32-i386-low.o to srv_tgtobj.
21471 (i[34567]86-*-mingw*): Likewise.
21472 (arm*-*-mingw32ce*): Add case.
21473 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21474 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21475 [__MINGW32CE__] (strerror): New function.
21476 [__MINGW32CE__] (errno): Define to GetLastError.
21477 [__MINGW32CE__] (COUNTOF): New macro.
21478 (remote_open): Remove extra close call.
21479 * mem-break.c (delete_breakpoint_at): New function.
21480 * mem-break.h (delete_breakpoint_at): Declare.
21481 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21482 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21483 [USE_WIN32API] (read, write): Add char* casts.
21484 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21485 * server.h: Include wincecompat.h on Windows CE.
21486 [HAVE_ERRNO_H]: Check.
21487 (perror): Declare if not declared.
21488 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21489 (perror_with_name): Remove errno declaration.
21490 * wincecompat.h: New.
21491 * wincecompat.c: New.
21492 * win32-low.h: New.
21493 * win32-arm-low.c: New.
21494 * win32-i386-low.c: New.
21495 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21496 (OUTMSG2): Make it safe.
21498 (COUNTOF): New macro.
21499 (NUM_REGS): Get it from the low target.
21500 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21501 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21502 (thread_rec): Let low target handle debug registers.
21503 (child_add_thread): Likewise.
21504 (child_init_thread_list): Likewise.
21505 (continue_one_thread): Likewise.
21507 (do_child_fetch_inferior_registers): Move to ...
21508 * win32-i386-low.c: ... here, and rename to ...
21509 (do_fetch_inferior_registers): ... this.
21510 * win32-low.c (child_fetch_inferior_registers):
21511 Go through the low target.
21512 (do_child_store_inferior_registers): Use regptr.
21513 (strwinerror): New function.
21514 (win32_create_inferior): Handle Windows CE.
21515 Use strwinerror instead of strerror on Windows error
21516 codes. Add program to the error output.
21517 Don't close the main thread handle on Windows CE.
21518 (win32_attach): Use coredll.dll on Windows CE.
21519 (win32_kill): Close current process and current
21521 (win32_detach): Use coredll.dll on Windows CE.
21522 (win32_resume): Let low target handle debug registers, and
21524 (handle_exception): Add/Remove initial breakpoint. Avoid
21525 non-existant WSTOPSIG on Windows CE.
21526 (win32_read_inferior_memory): Cast to remove warning.
21527 (win32_arch_string): Go through the low target.
21528 (initialize_low): Call set_breakpoint_data with the low
21529 target's breakpoint.
21530 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21531 FOP_REGNUM, mappings): Move to ...
21532 * win32-i386-low.c: ... here.
21533 * win32-low.c (win32_thread_info): Move to ...
21534 * win32-low.h: ... here.
21535 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21536 win32-arm-low.c and wincecompat.c.
21537 (all:): Add $EXEEXT.
21538 (install-only:): Likewise.
21539 (gdbserver:): Likewise.
21540 (gdbreplay:): Likewise.
21541 * config.in: Regenerate.
21542 * configure: Regenerate.
21544 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21546 * win32-low.c: Rename typedef thread_info to
21547 win32_thread_info throughout.
21549 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21551 * win32-i386-low.c: Rename to ...
21552 * win32-low.c: ... this.
21553 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21554 * Makefile.in: Likewise.
21556 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21558 * remote-utils.c (monitor_output): Constify msg parameter.
21559 * server.h (monitor_output): Likewise.
21560 * win32-i386-low.c (handle_output_debug_string): New.
21561 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21562 handle_output_debug_string.
21563 (get_child_debug_event): Likewise.
21565 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21567 * server.c (main): Correct strtoul check.
21569 2007-03-27 Jon Ringle <jon@ringle.org>
21571 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21573 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21575 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21577 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21579 * terminal.h: Check HAVE_SGTTY_H.
21581 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21583 * remote-utils.c (remote_open): Print out the assigned port number.
21585 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21587 * remote-utils.c (monitor_output): New function.
21588 * server.c (debug_threads): Define here.
21589 (monitor_show_help): New function.
21590 (handle_query): Handle qRcmd.
21591 (main): Do not handle 'd' packet.
21592 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21593 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21596 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21598 * Makefile.in (EXEEXT): New.
21599 (clean): Use $(EXEEXT).
21601 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21603 * target.h (target_ops): Rename send_signal to request_interrupt,
21604 and remove enum target_signal parameter.
21605 * linux-low.c (linux_request_interrupt): Rename from
21606 linux_send_signal, and always send SIGINT.
21607 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21608 and always send SIGINT.
21609 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21611 (input_interrupt): Likewise.
21613 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21615 * server.c (get_features_xml): Check if target implemented
21617 * win32-i386-low.c (win32_arch_string): New.
21618 (win32_target_ops): Add win32_arch_string as arch_string member.
21620 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21622 * spu-low.c (spu_arch_string): New.
21623 (spu_target_ops): Add spu_arch_string.
21625 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21627 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21628 * configure.ac: Do not check for terminal.h.
21629 * configure, config.in: Regenerated.
21631 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21633 * Makefile.in (OBS): Add $(XML_BUILTIN).
21634 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21636 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21637 (arm-with-iwmmxt.c): New.
21638 * config.in, configure: Regenerate.
21639 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21640 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21641 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21642 (arm*-*-linux*): Add iWMMXt and regset support.
21643 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21644 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21645 (arm_store_wmmxregset, target_regsets): New.
21646 * server.c (get_features_xml): Take annex argument. Check builtin
21648 (handle_query): Handle multiple annexes.
21650 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21652 * remote-utils.c [USE_WIN32API] (read, write): Define.
21653 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21656 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21658 * linux-i386-low.c (the_low_target): Set arch_string.
21659 * linux-x86-64-low.c (the_low_target): Likewise.
21660 * linux-low.c (linux_arch_string): New.
21661 (linux_target_ops): Add it.
21662 * linux-low.h (struct linux_target_ops): Add arch_string.
21663 * server.c (write_qxfer_response): Use const void * for DATA.
21664 (get_features_xml): New.
21665 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21666 * target.h (struct target_ops): Add arch_string method.
21668 2007-01-03 Denis Pilat <denis.pilat@st.com>
21669 Daniel Jacobowitz <dan@codesourcery.com>
21671 * linux-low.c (linux_kill): Handle being called with no threads.
21672 * win32-i386-low.c (win32_kill): Likewise.
21673 (get_child_debug_event): Clear current_process_handle.
21675 2006-12-30 Denis PILAT <denis.pilat@st.com>
21676 Daniel Jacobowitz <dan@codesourcery.com>
21678 * remote-utils.c (remote_open): Check the type of specified
21679 serial port devices before opening them.
21680 * server.c (main): Kill the inferior if an error occurs during
21681 the first remote_open.
21683 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21685 * README: Update supported targets.
21687 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21689 * Makefile.in (clean): Remove reg-mips64.c.
21690 (reg-mips64.c, reg-mips64.o): New rules.
21691 * configure.srv: Handle mips64. Include regset support for mips.
21692 * linux-mips-low.c (union mips_register): New.
21693 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21694 (mips_breakpoint, mips_breakpoint_at): Use int.
21695 (mips_collect_register, mips_supply_register)
21696 (mips_collect_register_32bit, mips_supply_register_32bit)
21697 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21698 (mips_store_fpregset, target_regsets): New.
21699 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21701 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21703 * configure.srv: Add target "spu*-*-*".
21704 * Makefile.in (clean): Remove reg-spu.c.
21705 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21706 * spu-low.c: New file.
21708 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21710 * configure.ac: Correct td_thr_tls_get_addr test.
21711 * configure: Regenerated.
21713 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21715 * linux-low.c (linux_wait_for_event): Reformat. Use the
21716 pass_signals array.
21717 * remote-utils.c (decode_address_to_semicolon): New.
21718 * server.c (pass_signals, handle_general_set): New.
21719 (handle_query): Mention QPassSignals for qSupported.
21720 (main): Call handle_general_set.
21721 * server.h (pass_signals, decode_address_to_semicolon): New.
21723 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21725 * server.c (handle_query): Correct error handling for read_auxv.
21727 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21729 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21730 and srv_linux_thread_db to yes.
21731 * linux-s390-low.c (s390_fill_gregset): New function.
21732 (target_regsets): Define data structure.
21734 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21736 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21737 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21738 * config.in, configure: Regenerated.
21739 * inferiors.c (gdb_id_to_thread): New function.
21740 (gdb_id_to_thread_id): Use it.
21741 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21742 * linux-low.h (struct process_info): Add th member.
21743 (thread_db_get_tls_address): New prototype.
21744 * remote-utils.c (decode_address): Make non-static.
21745 * server.c (handle_query): Handle qGetTLSAddr.
21746 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21747 * target.h (struct target_ops): Add get_tls_address.
21748 * thread-db.c (maybe_attach_thread): Save the thread handle.
21749 (thread_db_get_tls_address): New.
21751 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21753 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21754 (linux_resume_one_process): Take a siginfo_t *. Update all
21755 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21756 (struct pending_signals): Add a siginfo_t.
21757 (linux_wait_for_process): Always set last_status.
21758 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21759 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21760 * linux-low.h (struct process_info): Add last_status.
21762 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21764 * remote-utils.c (try_rle): New function.
21765 (putpkt_binary): Use it.
21767 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21769 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21770 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21771 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21772 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21773 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21776 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21778 * server.c (terminal_fd): New variable.
21779 (old_foreground_pgrp): Likewise.
21780 (restore_old_foreground_pgrp): New function.
21781 (start_inferior): Record the terminal file descriptor in terminal_fd
21782 and its original foreground group in old_foreground_pgrp. Register
21783 restore_old_foreground_pgrp with atexit().
21785 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21787 * server.c (handle_query): Correct qPart to qXfer.
21789 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21791 * configure.ac: Check for more headers which are missing on
21792 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21793 * configure.srv: Add Cygwin and mingw32.
21794 * remote-utils.c: Don't include headers unconditionally which
21795 are missing on mingw32. Include <winsock.h> for mingw32.
21796 (remote_open): Adjust for mingw32 support. Flush
21797 standard error after writing to it.
21798 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21799 (unblock_async_io, enable_async_io, disable_async_io)
21800 (readchar, getpkt): Update for Winsock support.
21801 (prepare_resume_reply): Expect a protocol signal number.
21802 * server.c: Disable <sys/wait.h> on mingw32.
21803 (start_inferior): Adjust for mingw32 support. Flush
21804 standard error after writing to it.
21805 (attach_inferior): Likewise. Use protocol signal
21807 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21809 * win32-i386-low.c: New file.
21810 * Makefile.in (XM_CLIBS): Set.
21811 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21812 (win32-i386-low.o): New dependency rule.
21813 * linux-low.c (linux_wait): Use target signal numbers.
21814 * target.h (struct target_ops): Doc fix.
21815 * server.h (target_signal_to_name): New prototype.
21816 * gdbreplay.c: Don't include headers unconditionally which
21817 are missing on mingw32. Include <winsock.h> for mingw32.
21818 (remote_close, remote_open): Adjust for Winsock support.
21819 * configure, config.in: Regenerated.
21821 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21823 * server.c (decode_xfer_read, write_qxfer_response): New.
21824 (handle_query): Take a packet length argument. Handle
21825 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21826 the qSupported response.
21827 (main): Update call to handle_query.
21829 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21831 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21832 (putpkt_binary): Renamed from putpkt and adjusted for binary
21834 (putpkt): New wrapper for putpkt_binary.
21835 (readchar): Don't mask off the high bit.
21836 (decode_X_packet): New function.
21837 * server.c (main): Call putpkt_binary if a handler sets the packet
21838 length. Save the length of the incoming packet. Handle 'X'.
21839 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21841 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21843 * server.c (handle_query): Handle qSupported.
21845 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21847 * remote-utils.c (all_symbols_looked_up): New variable.
21848 (look_up_one_symbol): Check it.
21849 * server.h (look_up_one_symbol): New declaration.
21850 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21852 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21854 * Makefile.in (linux-arm-low.o): Update dependencies.
21855 * linux-arm-low.c: Include "gdb_proc_service.h".
21856 (PTRACE_GET_THREAD_AREA): Define.
21857 (ps_get_thread_area): New function.
21859 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21861 * configure.srv (m68k*-*-uclinux*): New target.
21862 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21863 (linux_resume_one_process): Remove extraneous cast.
21864 (linux_read_offsets): New.
21865 (linux_target_op): Add linux_read_offsets on mmuless systems.
21866 * server.c (handle_query): Add qOffsets logic.
21867 * target.h (struct target_ops): Add read_offsets.
21869 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21871 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21872 (PTRACE_GET_THREAD_AREA): Define.
21873 (ps_get_thread_area): New function.
21874 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21875 (linux-x86-64-low.o): Update.
21877 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21879 * configure.ac: Remove checks for prfpregset_t.
21880 * gdb_proc_service.h: New file.
21881 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21882 new "gdb_proc_service.h".
21883 * proc-service.c: Likewise.
21884 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21885 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21886 * Makefile.in (gdb_proc_service_h): Updated.
21887 * configure, config.in: Regenerated.
21889 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21891 * remote-utils.c (prepare_resume_reply): Move declaration
21892 of gdb_id_from_wait to the top of the block.
21894 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21896 * linux-low.c (regsets_store_inferior_registers): Read the regset
21897 from the target before filling it.
21899 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21901 * server.c (attach_inferior): Return SIGTRAP for a successful
21904 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21906 * Makefile.in (OBS): Add version.o.
21907 (STAGESTUFF): Delete.
21908 (version.o): Add dependencies.
21909 (version.c): Replace rule.
21910 (clean): Remove version.c.
21911 * server.c (gdbserver_version): New.
21912 (gdbserver_usage): Use printf.
21913 (main): Handle --version and --help.
21914 * server.h (version, host_name): Add declarations.
21916 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21928 * linux-x86-64-low.c:
21930 * linux-s390-low.c:
21931 * linux-ppc64-low.c:
21933 * linux-mips-low.c:
21934 * linux-m68k-low.c:
21935 * linux-m32r-low.c:
21938 * linux-ia64-low.c:
21939 * linux-i386-low.c:
21940 * linux-crisv32-low.c:
21952 * gdbserver.1: Add (C) after Copyright. Update the FSF
21955 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21957 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21958 (arm_breakpoint_at): Recognize both breakpoints.
21959 (the_low_target): Use the correct breakpoint instruction.
21961 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21963 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21964 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21965 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21966 (the_low_target): Update.
21968 2005-10-25 Andreas Schwab <schwab@suse.de>
21970 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21972 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21973 (ia64_num_regs): Reduce to 462.
21975 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21977 * acinclude.m4: Correct quoting.
21978 * aclocal.m4: Regenerated.
21980 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21981 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21982 (thread_db_init): Call thread_db_err_str.
21983 * configure.ac: Check for TD_VERSION.
21984 * config.in, configure: Regenerated.
21986 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21988 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21990 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21992 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21993 is not available. Define HAVE_PTRACE_GETREGS if it is.
21994 * config.in, configure: Regenerated.
21995 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21996 * linux-i386-low.c, linux-m68k-low.c: Update to use
21997 HAVE_PTRACE_GETREGS.
21998 * linux-low.c (regsets_fetch_inferior_registers)
21999 (regsets_store_inferior_registers): Only return 0 if we processed
22001 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
22002 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
22004 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22006 * inferiors.c (struct thread_info): Add gdb_id.
22007 (add_thread): Add gdb_id argument.
22008 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
22009 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
22010 calls to add_thread.
22011 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
22012 * server.c (handle_query): Use thread_to_gdb_id.
22013 (handle_v_cont, main): Use gdb_id_to_thread_id.
22014 * server.h (add_thread): Update prototype.
22015 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
22018 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
22020 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
22021 left-padded registers.
22022 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
22023 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
22025 2005-07-01 Steve Ellcey <sje@cup.hp.com>
22027 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
22028 * configure: Regenerate.
22029 * config.in: Regenerate.
22030 * server.h (NEED_DECLARATION_STRERROR):
22031 Replace with !HAVE_DECL_STRERROR.
22033 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
22035 * linux-low.c (linux_wait, linux_send_signal): Don't test
22036 an unsigned long variable for > 0 if it could be MAX_ULONG.
22037 * server.c (myresume): Likewise.
22038 * target.c (set_desired_inferior): Likewise.
22040 2005-06-13 Mark Kettenis <kettenis@gnu.org>
22042 * configure.ac: Simplify and improve check for socklen_t.
22043 * configure, config.in: Regenerate.
22045 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
22047 * acconfig.h: Remove.
22048 * configure.ac: Add a test for socklen_t. Use three-argument
22049 AC_DEFINE throughout.
22050 * config.in: Regenerated using autoheader 2.59.
22051 * configure: Regenerated.
22053 * gdbreplay.c (socklen_t): Provide a default.
22054 (remote_open): Use socklen_t.
22055 * remote-utils.c (socklen_t): Provide a default.
22056 (remote_open): Use socklen_t.
22057 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22060 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22062 * linux-low.c (linux_read_memory, linux_write_memory)
22063 (linux_read_auxv): Likewise.
22064 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22065 (check_mem_write): Likewise.
22066 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22068 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22069 (registers_from_string, register_data): Likewise.
22070 * server.c (handle_query, main): Likewise.
22071 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22072 (decode_M_packet): Likewise.
22073 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22074 * target.h (struct target_ops): Update read_memory, write_memory,
22076 (read_inferior_memory, write_inferior_memory): Update.
22077 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22078 to unsigned char *.
22079 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22080 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22081 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22082 linux-s390-low.c, linux-sh-low.c: Update for changes in
22083 read_inferior_memory and the_low_target->breakpoint.
22085 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22087 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22088 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22089 * configure.srv: Add powerpc64-*-linux*.
22090 * linux-ppc64-low.c: New file.
22092 2005-05-23 Orjan Friberg <orjanf@axis.com>
22094 * linux-cris-low.c: New file with support for CRIS.
22095 * linux-crisv32-low.c: Ditto for CRISv32.
22096 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22097 (clean): Add reg-cris.c and reg-crisv32.c.
22098 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
22099 reg-crisv32.o, and reg-crisv32.c to make rules.
22100 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22101 recognized targets.
22103 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22105 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22106 of sizeof (PTRACE_XFER_TYPE).
22107 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22109 2005-05-12 Orjan Friberg <orjanf@axis.com>
22111 * target.h (struct target_ops): Add insert_watchpoint,
22112 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22113 pointers for hardware watchpoint support.
22114 * linux-low.h (struct linux_target_ops): Ditto.
22115 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22116 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22117 to linux_target_ops.
22118 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22120 * server.c (main): Recognize 'Z' and 'z' packets.
22122 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22124 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22125 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22126 (the_low_target): Add new members.
22128 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22130 * proc-service.c (ps_lgetregs): Search all_processes instead of
22133 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22135 * server.c (start_inferior): Change return type to int.
22136 (attach_inferior): Change sigptr to int *.
22137 (handle_v_cont, handle_v_requests): Change signal to int *.
22138 (main): Change signal to int.
22140 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22142 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22143 * configure.srv: Add m32r*-*-linux*.
22144 * linux-m32r-low.c: New file.
22146 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22148 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22150 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22152 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22153 Take unsigned long arguments for PIDs.
22154 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22155 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22156 (wait_for_sigstop, linux_resume_one_process)
22157 (regsets_fetch_inferior_registers, linux_send_signal)
22158 (linux_read_auxv): Likewise. Update the types of variables holding
22159 PIDs. Update format string specifiers.
22160 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22161 * remote-utils.c (prepare_resume_reply): Likewise.
22162 * server.c (cont_thread, general_thread, step_thread)
22163 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22165 (handle_query): Update format specifiers.
22166 (handle_v_cont, main): Use strtoul for thread IDs.
22167 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22168 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22169 (general_thread, step_thread, thread_from_wait)
22170 (old_thread_from_wait): Update.
22171 * target.h (struct thread_resume): Use unsigned long for THREAD.
22172 (struct target_ops): Use unsigned long for arguments to attach and
22175 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22177 * acinclude.m4: Include bfd/bfd.m4 directly.
22178 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22179 <agriffis@toolchain.org>.
22180 * aclocal.m4, configure: Regenerated.
22182 2005-01-07 Andrew Cagney <cagney@gnu.org>
22184 * configure.ac: Rename configure.in, require autoconf 2.59.
22185 * configure: Re-generate.
22187 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22189 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22190 LIBS when finished.
22191 * aclocal.m4: Regenerated.
22192 * configure: Regenerated.
22194 2004-11-21 Andreas Schwab <schwab@suse.de>
22196 * linux-m68k-low.c (m68k_num_gregs): Define.
22197 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22198 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22199 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22200 (m68k_breakpoint_at): New. Add to the_low_target.
22202 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22203 srv_linux_thread_db to yes.
22205 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22207 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22208 (ARCH_SET_FS): Likewise.
22209 (ARCH_GET_FS): Likewise.
22210 (ARCH_GET_GS): Likewise.
22212 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22214 * linux-i386-low.c (ps_get_thread_area): New.
22215 * linux-x86-64-low.c (ps_get_thread_area): New.
22216 * linux-low.c: Include <sys/syscall.h>.
22217 (linux_kill_one_process): Don't kill the first thread here.
22218 (linux_kill): Kill the first thread here.
22219 (kill_lwp): New function.
22220 (send_sigstop, linux_send_signal): Use it.
22221 * proc-service.c: Clean up #ifdefs.
22222 (fpregset_info): Delete.
22223 (ps_lgetregs): Update and enable implementation.
22224 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22226 * remote-utils.c (struct sym_cache, symbol_cache): New.
22227 (input_interrupt): Print a clearer message.
22228 (async_io_enabled): New variable.
22229 (enable_async_io, disable_async_io): Use it. Update comments.
22230 (look_up_one_symbol): Use the symbol cache.
22231 * thread-db.c (thread_db_look_up_symbols): New function.
22232 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22234 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22236 * configure.in: Test for -rdynamic.
22237 * configure: Regenerated.
22238 * Makefile (INTERNAL_LDFLAGS): New.
22239 (gdbserver, gdbreplay): Use it.
22241 2004-09-02 Andrew Cagney <cagney@gnu.org>
22243 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22245 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22247 * linux-low.c (linux_wait): Clear all_processes list also.
22249 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22251 * linux-low.c: Include <errno.h>. Remove extern declaration of
22254 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22256 * gdbreplay.c, server.h, utils.c: Update copyright years.
22258 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22260 * server.c (main): Print child status or termination signal from
22261 variable 'signal', not 'sig'.
22263 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22265 * linux-low.c (linux_read_memory): Change return type to
22266 int. Check for and return error from ptrace().
22267 * target.c (read_inferior_memory): Change return type to int. Pass
22268 back return status from the_target->read_memory().
22269 * target.h (struct target_ops): Adapt *read_memory() prototype.
22271 (read_inferior_memory): Adapt prototype.
22272 * server.c (main): Return an error packet if
22273 read_inferior_memory() returns an error.
22275 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22277 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22278 Unify with other clean targets.
22280 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22282 * server.c (handle_v_cont): Call set_desired_inferior.
22284 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22286 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22288 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22290 * linux-low.c (linux_wait): Unblock async I/O.
22291 (linux_resume): Block and enable async I/O.
22292 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22293 * server.h (block_async_io, unblock_async_io): Add prototypes.
22295 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22297 * remote-utils.c (remote_open): Print a status notice after
22298 opening a TCP port.
22299 * server.c (attach_inferior): Print a status notice after
22302 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22304 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22306 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22308 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22310 * server.c, target.h: Update copyright years.
22312 2004-02-25 Roland McGrath <roland@redhat.com>
22314 * target.h (struct target_ops): New member `read_auxv'.
22315 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22316 * linux-low.c (linux_read_auxv): New function.
22317 (linux_target_ops): Initialize `read_auxv' member to that.
22319 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22321 Committed by Jim Blandy <jimb@redhat.com>.
22323 * linux-s390-low.c (s390_num_regs): Update.
22324 (s390_regmap): Remove control registers. Use __s390x__ predefine
22325 instead of GPR_SIZE to distiguish s390 and s390x targets.
22327 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22329 * linux-low.c: Update copyright year.
22330 (check_removed_breakpoint): Clear pending_is_breakpoint.
22331 (linux_set_resume_request, linux_queue_one_thread)
22332 (resume_status_pending_p): New functions.
22333 (linux_continue_one_thread): Use process->resume.
22334 (linux_resume): Only resume threads if there are no pending events.
22335 * linux-low.h (struct process_info): Add resume request
22338 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22340 * regcache.c (new_register_cache): Clear the allocated register
22341 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22343 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22345 * linux-low.c (linux_resume): Take a struct thread_resume *
22347 (linux_wait): Update call.
22348 (resume_ptr): New static variable.
22349 (linux_continue_one_thread): Renamed from
22350 linux_continue_one_process. Use resume_ptr.
22351 (linux_resume): Use linux_continue_one_thread.
22352 * server.c (handle_v_cont, handle_v_requests): New functions.
22353 (myresume): New function.
22354 (main): Handle 'v' case.
22355 * target.h (struct thread_resume): New type.
22356 (struct target_ops): Change argument of "resume" to struct
22358 (myresume): Delete macro.
22360 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22362 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22363 (uninstall): Support DESTDIR.
22365 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22367 * configure.srv: Add xscale*linux copy of arm*linux entry.
22369 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22371 * linux-arm-low.c (arm_reinsert_addr): New function.
22372 (the_low_target): Add arm_reinsert_addr.
22374 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22376 * mem-break.c: Remove whitespace at end of file.
22378 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22380 * configure.in: Check whether we need to prototype strerror.
22381 * server.h: Optionally prototype strerror.
22382 * gdbreplay.c (perror_with_name): Use strerror.
22383 * linux-low.c (linux_attach_lwp): Use strerror.
22384 * utils.c (perror_with_name): Use strerror.
22385 * config.in, configure: Regenerated.
22387 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22389 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22390 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22392 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22394 * Makefile.in (SFILES): Update.
22395 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22396 low-sun3.c: Remove files.
22398 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22400 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22401 (linux_detach_one_process, linux_detach): New functions.
22402 (linux_target_ops): Add linux_detach.
22403 * server.c (main): Handle 'D' packet.
22404 * target.h (struct target_ops): Add "detach" member.
22405 (detach_inferior): Define.
22407 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22409 From Kelley Cook <kelleycook@wideopenwest.com>:
22410 * configure.srv: Accept i[34567]86 variants.
22412 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22414 * linux-low.c (linux_wait_for_event): Correct comment typos.
22415 (linux_resume_one_process): Call check_removed_breakpoint.
22416 (linux_send_signal): New function.
22417 (linux_target_ops): Add linux_send_signal.
22418 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22420 * target.h (struct target_ops): Add send_signal.
22422 2003-05-29 Jim Blandy <jimb@redhat.com>
22424 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22425 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22426 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22427 away part of the register's value.
22429 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22431 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22432 (linux_wait_for_event, linux_init_signals): Likewise.
22434 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22436 * configure.in: Check for stdlib.h.
22437 * configure: Regenerated.
22438 * config.in: Regenerated.
22440 2003-01-04 Andreas Schwab <schwab@suse.de>
22442 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22444 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22446 * Makefile.in: Remove obsolete code.
22448 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22450 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22451 defined(PT_FPR0_HI).
22453 2002-11-17 Stuart Hughes <seh@zee2.com>
22455 * linux-arm-low.c (arm_num_regs): Increase.
22456 (arm_regmap): Include status register.
22458 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22460 * linux-low.c (register_addr): Remove incorrect -1 check.
22462 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22464 * linux-low.c (linux_create_inferior): Call setpgid. Return
22466 (unstopped_p, linux_signal_pid): Remove.
22467 (linux_target_ops): Remove linux_signal_pid.
22468 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22469 global instead of target method.
22470 * target.h (struct target_ops): Remove signal_pid. Update comment
22471 for create_inferior.
22472 * server.c (signal_pid): New variable.
22473 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22474 gdbserver. Set the child to be the foreground process group.
22475 (attach_inferior): Set signal_pid.
22477 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22479 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22481 2002-08-20 Jim Blandy <jimb@redhat.com>
22483 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22486 2002-08-01 Andrew Cagney <cagney@redhat.com>
22488 * Makefile.in: Make chill references obsolete.
22490 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22492 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22493 * configure: Regenerate.
22494 * config.in: Regenerate.
22496 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22498 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22499 (perror_with_name, remote_close, remote_open, expect, play): Static.
22501 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22503 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22504 byte offsets instead of an array of indexes.
22505 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22507 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22509 * regcache.c: Add comment.
22511 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22513 * thread-db.c: New file.
22514 * proc-service.c: New file.
22515 * acinclude.m4: New file.
22516 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22517 proc-service.o, and thread-db.o.
22518 (linux-low.o): Add USE_THREAD_DB.
22519 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22520 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22521 * aclocal.m4: Regenerated.
22522 * config.in: Regenerated.
22523 * configure: Regenerated.
22524 * configure.in: Check for proc_service.h, sys/procfs.h,
22525 thread_db.h, and linux/elf.h headrs.
22526 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22527 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22528 Check for -lthread_db and thread support.
22529 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22530 PowerPC, and SuperH.
22531 * i387-fp.c: Constify arguments.
22532 * i387-fp.h: Likewise.
22533 * inferiors.c: (struct thread_info): Renamed from
22534 `struct inferior_info'. Remove PID member. Use generic inferior
22535 list header. All uses updated.
22536 (inferiors, signal_pid): Removed.
22537 (all_threads): New variable.
22538 (get_thread): Define.
22539 (add_inferior_to_list): New function.
22540 (for_each_inferior): New function.
22541 (change_inferior_id): New function.
22542 (add_inferior): Removed.
22543 (remove_inferior): New function.
22544 (add_thread): New function.
22545 (free_one_thread): New function.
22546 (remove_thread): New function.
22547 (clear_inferiors): Use for_each_inferior and free_one_thread.
22548 (find_inferior): New function.
22549 (find_inferior_id): New function.
22550 (inferior_target_data): Update argument type.
22551 (set_inferior_target_data): Likewise.
22552 (inferior_regcache_data): Likewise.
22553 (set_inferior_regcache_data): Likewise.
22554 * linux-low.c (linux_bp_reinsert): Remove.
22555 (all_processes, stopping_threads, using_thrads)
22556 (struct pending_signals, debug_threads, pid_of): New.
22557 (inferior_pid): Replace with macro.
22558 (struct inferior_linux_data): Remove.
22559 (get_stop_pc, add_process): New functions.
22560 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22561 Use add_process and add_thread.
22562 (linux_attach_lwp): New function, based on old linux_attach. Use
22563 add_process and add_thread. Set stop_expected for new threads.
22564 (linux_attach): New function.
22565 (linux_kill_one_process): New function.
22566 (linux_kill): Kill all LWPs.
22567 (linux_thread_alive): Use find_inferior_id.
22568 (check_removed_breakpoints, status_pending_p): New functions.
22569 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22570 Update. Use WNOHANG. Wait for cloned processes also. Update process
22571 struct for the found process.
22572 (linux_wait_for_event): New function.
22573 (linux_wait): Use it. Support LWPs.
22574 (send_sigstop, wait_for_sigstop, stop_all_processes)
22575 (linux_resume_one_process, linux_continue_one_process): New functions.
22576 (linux_resume): Support LWPs.
22577 (REGISTER_RAW_SIZE): Remove.
22578 (fetch_register): Use register_size instead. Call supply_register.
22579 (usr_store_inferior_registers): Likewise. Call collect_register.
22580 Fix recursive case.
22581 (regsets_fetch_inferior_registers): Improve error message.
22582 (regsets_store_inferior_registers): Add debugging.
22583 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22584 (unstopped_p, linux_signal_pid): New functions.
22585 (linux_target_ops): Add linux_signal_pid.
22586 (linux_init_signals): New function.
22587 (initialize_low): Call it. Initialize using_threads.
22588 * regcache.c (inferior_regcache_data): Add valid
22590 (get_regcache): Fetch registers lazily. Add fetch argument
22591 and update all callers.
22592 (regcache_invalidate_one, regcache_invalidate): New
22594 (new_register_cache): Renamed from create_register_cache.
22595 Return the new regcache.
22596 (free_register_cache): Change argument to a void *.
22597 (registers_to_string, registers_from_string): Call get_regcache
22598 with fetch flag set.
22599 (register_data): Make static. Pass fetch flag to get_regcache.
22600 (supply_register): Call get_regcache with fetch flag clear.
22601 (collect_register): Call get_regcache with fetch flag set.
22602 (collect_register_as_string): New function.
22603 * regcache.h: Update.
22604 * remote-utils.c (putpkt): Flush after debug output and use
22606 Handle input interrupts while waiting for an ACK.
22607 (input_interrupt): Use signal_pid method.
22608 (getpkt): Flush after debug output and use stderr.
22609 (outreg): Use collect_register_as_string.
22610 (new_thread_notify, dead_thread_notify): New functions.
22611 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22612 and general_thread.
22613 (look_up_one_symbol): Flush after debug output.
22614 * server.c (step_thread, server_waiting): New variables.
22615 (start_inferior): Don't use signal_pid. Update call to mywait.
22616 (attach_inferior): Update call to mywait.
22617 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22618 (main): Don't fetch/store registers explicitly. Use
22619 set_desired_inferior. Support proposed ``Hs'' packet. Update
22621 * server.h: Update.
22622 (struct inferior_list, struct_inferior_list_entry): New.
22623 * target.c (set_desired_inferior): New.
22624 (write_inferior_memory): Constify.
22625 (mywait): New function.
22626 * target.h: Update.
22627 (struct target_ops): New signal_pid method.
22628 (mywait): Removed macro, added prototype.
22630 * linux-low.h (regset_func): Removed.
22631 (regset_fill_func, regset_store_func): New.
22632 (enum regset_type): New.
22633 (struct regset_info): Add type field. Use new operation types.
22634 (struct linux_target_ops): stop_pc renamed to get_pc.
22635 Add decr_pc_after_break and breakpoint_at.
22636 (get_process, get_thread_proess, get_process_thread)
22637 (strut process_info, all_processes, linux_attach_lwp)
22638 (thread_db_init): New.
22640 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22641 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22642 (the_low_target): Add new members.
22643 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22644 (i386_store_fpxregset): Constify.
22645 (target_regsets): Add new kind identifier.
22646 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22647 (i386_set_pc): Add debugging.
22648 (i386_breakpoint_at): New function.
22649 (the_low_target): Add new members.
22650 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22651 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22652 (mips_breakpoint_at): New.
22653 (the_low_target): Add new members.
22654 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22655 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22656 (the_low_target): Add new members.
22657 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22658 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22659 (the_low_target): Add new members.
22660 * linux-x86-64-low.c (target_regsets): Add new kind
22663 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22665 From Martin Pool <mbp@samba.org>:
22666 * server.c (gdbserver_usage): New function.
22669 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22671 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22672 stop_at -> stop_pc.
22674 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22676 * Makefile.in: Remove obsolete code.
22678 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22680 * linux-low.c (regsets_fetch_inferior_registers),
22681 (regsets_store_inferior_registers): Removed cast to int from
22683 * regcache.h: Added declaration of struct inferior_info.
22685 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22687 * inferiors.c (struct inferior_info): Add regcache_data.
22688 (add_inferior): Call create_register_cache.
22689 (clear_inferiors): Call free_register_cache.
22690 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22691 * regcache.c (struct inferior_regcache_data): New.
22692 (registers): Remove.
22693 (get_regcache): New function.
22694 (create_register_cache, free_register_cache): New functions.
22695 (set_register_cache): Don't initialize the register cache here.
22696 (registers_to_string, registers_from_string, register_data): Call
22698 * regcache.h: Add prototypes.
22699 * server.h: Likewise.
22701 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22703 * mem-break.c: New file.
22704 * mem-break.h: New file.
22705 * Makefile.in: Add mem-break.o rule; update server.h
22707 * inferiors.c (struct inferior_info): Add target_data
22709 (clear_inferiors): Free target_data member if set.
22710 (inferior_target_data, set_inferior_target_data): New functions.
22711 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22712 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22713 * linux-low.c (linux_bp_reinsert): New variable.
22714 (struct inferior_linux_data): New.
22715 (linux_create_inferior): Use set_inferior_target_data.
22716 (linux_attach): Likewise. Call add_inferior.
22717 (linux_wait_for_one_inferior): New function.
22718 (linux_wait): Call it.
22719 (linux_write_memory): Add const.
22720 (initialize_low): Call set_breakpoint_data.
22721 * linux-low.h (struct linux_target_ops): Add breakpoint
22723 * server.c (attach_inferior): Remove extra add_inferior
22725 * server.h: Include mem-break.h. Update inferior.c
22727 * target.c (read_inferior_memory)
22728 (write_inferior_memory): New functions.
22729 * target.h (read_inferior_memory)
22730 (write_inferior_memory): Change macros to prototypes.
22731 (struct target_ops): Update comments. Add const to write_memory
22734 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22736 * linux-low.c (usr_store_inferior_registers): Support
22737 registers which are allowed to fail to store.
22738 * linux-low.h (linux_target_ops): Likewise.
22739 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22740 (ppc_cannot_store_register): FPSCR may not be storable.
22742 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22744 * server.h: Include <string.h> if HAVE_STRING_H.
22745 * ChangeLog: Correct paths in last ChangeLog entry.
22747 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22749 * linux-low.h: Remove obsolete prototypes.
22750 (struct linux_target_ops): New.
22751 (extern the_low_target): New.
22752 * linux-low.c (num_regs, regmap): Remove declarations.
22753 (register_addr): Use the_low_target explicitly.
22754 (fetch_register): Likewise.
22755 (usr_fetch_inferior_registers): Likewise.
22756 (usr_store_inferior_registers): Likewise.
22757 * linux-arm-low.c (num_regs): Remove.
22758 (arm_num_regs): Define.
22759 (arm_regmap): Renamed from regmap, made static.
22760 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22762 (arm_cannot_store_register): Renamed from cannot_store_register,
22764 (the_low_target): New.
22765 * linux-i386-low.c (num_regs): Remove.
22766 (i386_num_regs): Define.
22767 (i386_regmap): Renamed from regmap, made static.
22768 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22770 (i386_cannot_store_register): Renamed from cannot_store_register,
22772 (the_low_target): New.
22773 * linux-ia64-low.c (num_regs): Remove.
22774 (ia64_num_regs): Define.
22775 (ia64_regmap): Renamed from regmap, made static.
22776 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22778 (ia64_cannot_store_register): Renamed from cannot_store_register,
22780 (the_low_target): New.
22781 * linux-m68k-low.c (num_regs): Remove.
22782 (m68k_num_regs): Define.
22783 (m68k_regmap): Renamed from regmap, made static.
22784 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22786 (m68k_cannot_store_register): Renamed from cannot_store_register,
22788 (the_low_target): New.
22789 * linux-mips-low.c (num_regs): Remove.
22790 (mips_num_regs): Define.
22791 (mips_regmap): Renamed from regmap, made static.
22792 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22794 (mips_cannot_store_register): Renamed from cannot_store_register,
22796 (the_low_target): New.
22797 * linux-ppc-low.c (num_regs): Remove.
22798 (ppc_num_regs): Define.
22799 (ppc_regmap): Renamed from regmap, made static.
22800 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22802 (ppc_cannot_store_register): Renamed from cannot_store_register,
22804 (the_low_target): New.
22805 * linux-s390-low.c (num_regs): Remove.
22806 (s390_num_regs): Define.
22807 (s390_regmap): Renamed from regmap, made static.
22808 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22810 (s390_cannot_store_register): Renamed from cannot_store_register,
22812 (the_low_target): New.
22813 * linux-sh-low.c (num_regs): Remove.
22814 (sh_num_regs): Define.
22815 (sh_regmap): Renamed from regmap, made static.
22816 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22818 (sh_cannot_store_register): Renamed from cannot_store_register,
22820 (the_low_target): New.
22821 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22822 (the_low_target): New.
22824 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22826 * Makefile.in: Add stamp-h target.
22827 * configure.in: Create stamp-h.
22828 * configure: Regenerated.
22830 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22832 * inferiors.c: New file.
22833 * target.c: New file.
22834 * target.h: New file.
22835 * Makefile.in: Add target.o and inferiors.o. Update
22837 * linux-low.c (inferior_pid): New static variable,
22838 moved from server.c.
22839 (linux_create_inferior): Renamed from create_inferior.
22840 Call add_inferior. Return 0 on success instead of a PID.
22841 (linux_attach): Renamed from myattach.
22842 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22843 (linux_thread_alive): Renamed from mythread_alive.
22844 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22846 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22847 (regsets_store_inferior_registers): Correct error message.
22848 Add missing ``return 0''.
22849 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22850 (linux_store_registers): Renamed from store_inferior_registers.
22851 (linux_read_memory): Renamed from read_inferior_memory.
22852 (linux_write_memory): Renamed from write_inferior_memory.
22853 (linux_target_ops): New structure.
22854 (initialize_low): Call set_target_ops ().
22855 * remote-utils.c (unhexify): New function.
22856 (hexify): New function.
22857 (input_interrupt): Send signals to ``signal_pid''.
22858 * server.c (inferior_pid): Remove.
22859 (start_inferior): Update create_inferior call.
22860 (attach_inferior): Call add_inferior.
22861 (handle_query): New function.
22862 (main): Call handle_query for `q' packets.
22863 * server.h: Include "target.h". Remove obsolete prototypes.
22864 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22866 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22868 * Makefile.in: Add WARN_CFLAGS. Update configury
22870 * configure.in: Check for <string.h>
22871 * configure: Regenerate.
22872 * config.in: Regenerate.
22873 * gdbreplay.c: Include needed system headers.
22874 (remote_open): Remove strchr prototype.
22875 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22876 * regcache.c (supply_register): Change buf argument to const void *.
22877 (supply_register_by_name): Likewise.
22878 (collect_register): Change buf argument to void *.
22879 (collect_register_by_name): Likewise.
22880 * regcache.h: Add missing prototypes.
22881 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22882 * server.c (handle_query): New function.
22883 (attached): New static variable, moved out of main.
22884 (main): Quiet longjmp clobber warnings.
22885 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22886 * utils.c (error): Remove NORETURN.