1 2021-04-30 Tom Tromey <tromey@adacore.com>
3 * win32-low.cc (GETPROCADDRESS): Remove.
4 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
5 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
6 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
7 (win32_Wow64SetThreadContext): Remove.
8 (win32_set_thread_context, do_initial_child_stuff)
9 (win32_process_target::attach, win32_process_target::detach):
11 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
12 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
14 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
15 (win32_GetModuleInformation, win32_GetModuleInformationA):
18 (win32_add_dll, win32_process_target::request_interrupt): Update.
19 (initialize_low): Call initialize_loadable.
21 2021-04-14 Tom Tromey <tromey@adacore.com>
23 * win32-low.cc (windows_nat::handle_load_dll): Don't check
26 2021-04-13 Pedro Alves <pedro@palves.net>
28 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
30 2021-04-13 Tom Tromey <tromey@adacore.com>
32 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
33 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
35 2021-04-13 Pedro Alves <pedro@palves.net>
37 * Makefile.in (SFILES): Remove hostio-errno.cc.
38 * configure: Regenerate.
39 * configure.ac (GDBSERVER_DEPFILES): No longer add
41 * configure.srv (srv_hostio_err_objs): Delete.
42 * hostio-errno.cc: Delete.
43 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
45 * hostio.h (hostio_last_error_from_errno): Delete.
46 * target.cc (process_stratum_target::hostio_last_error): Delete.
47 * target.h (class process_stratum_target) <hostio_last_error>:
50 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
52 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
53 * win32-low.h: Likewise.
55 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
57 * target.h (class process_stratum_target) <pid_to_exec_file>:
58 Constify the return type. Update the definition/references below.
59 * target.cc (process_stratum_target::pid_to_exec_file)
60 * linux-low.h (class linux_process_target) <pid_to_exec_file>
61 * linux-low.cc (linux_process_target::pid_to_exec_file)
62 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
63 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
64 * server.cc (handle_qxfer_exec_file)
66 2021-04-11 Eli Zaretskii <eliz@gnu.org>
68 * win32-low.cc (win32_add_dll): New function, with body almost
69 identical to what win32_add_all_dlls did. Accepts one argument;
70 if that is non-NULL, returns the file name of the DLL that is
71 loaded at the base address equal to that argument, or NULL if not
72 found. If the argument is NULL, add all the DLLs loaded by the
73 inferior to the list of solibs and return NULL.
74 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
75 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
76 failed to glean the file name of the DLL, call win32_add_dll to
77 try harder using the lpBaseOfDll member of the load-DLL event.
79 2021-03-30 Luis Machado <luis.machado@linaro.org>
81 * server.cc (handle_general_set, handle_query): Update variable
82 to bool and fix verification logic.
84 2021-03-24 Luis Machado <luis.machado@linaro.org>
86 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
87 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
88 nat/aarch64-mte-linux-ptrace.o.
89 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
90 (class aarch64_target) <supports_memory_tagging>
91 <fetch_memtags, store_memtags>: New method overrides.
92 (aarch64_target::supports_memory_tagging)
93 (aarch64_target::fetch_memtags)
94 (aarch64_target::store_memtags): New methods.
96 2021-03-24 Luis Machado <luis.machado@linaro.org>
98 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
99 (aarch64_store_mteregset): New function.
100 (aarch64_regsets): Add MTE register set entry.
101 (aarch64_sve_regsets): Add MTE register set entry.
103 2021-03-24 Luis Machado <luis.machado@linaro.org>
105 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
106 aarch64_linux_read_description.
107 (initialize_low_tracepoint): Likewise.
108 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
110 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
112 (aarch64_linux_read_description): Add mte_p parameter and update to
114 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
117 2021-03-24 Luis Machado <luis.machado@linaro.org>
119 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
121 2021-03-24 Luis Machado <luis.machado@linaro.org>
123 * server.cc (test_memory_tagging_functions): New function.
124 (captured_main): Register test_memory_tagging_functions.
126 2021-03-24 Luis Machado <luis.machado@linaro.org>
128 * remote-utils.cc (decode_m_packet_params): Renamed from ...
129 (decode_m_packet): ... this, which now calls decode_m_packet_params.
130 Make char * param/return const char *.
131 (decode_M_packet): Use decode_m_packet_params and make char * param
133 * remote-utils.h (decode_m_packet_params): New prototype.
134 (decode_m_packet): Constify char pointers.
135 (decode_M_packet): Likewise.
136 * server.cc (create_fetch_memtags_reply)
137 (parse_store_memtags_request): New
139 (handle_general_set): Handle the QMemTags packet.
140 (parse_fetch_memtags_request): New function.
141 (handle_query): Handle the qMemTags packet and advertise memory
143 (captured_main): Initialize memory tagging flag.
144 * server.h (struct client_state): Initialize memory tagging flag.
145 * target.cc (process_stratum_target::supports_memory_tagging)
146 (process_stratum_target::fetch_memtags)
147 (process_stratum_target::store_memtags): New methods.
148 * target.h: Include gdbsupport/byte-vector.h.
149 (class process_stratum_target) <supports_memory_tagging>
150 <fetch_memtags, store_memtags>: New class virtual methods.
151 (target_supports_memory_tagging): Define.
153 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
155 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
158 (unloaded_dll): Declare an overloaded version that takes a proc
160 * dll.cc (loaded_dll)
161 (unloaded_dll): Implement the overloaded versions.
162 (clear_dlls): Clear all process' dll lists.
163 (all_dlls, dlls_changed): Remove the global variables.
164 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
166 * server.cc (handle_qxfer_libraries): Ditto.
167 (handle_v_attach): Ditto.
168 (captured_main): Ditto.
170 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
172 * linux-low.cc (linux_process_target::filter_event): Return
174 * linux-low.h (class linux_process_target) <filter_event>:
177 2021-02-12 Tom Tromey <tromey@adacore.com>
179 * gdbreplay.cc (remote_desc): Remove.
180 (remote_desc_in, remote_desc_out): New globals.
181 (remote_close): Update.
182 (remote_open): Handle "-".
183 (remote_open): Update.
184 (logchar): Log to stderr.
185 (expect, play): Update.
187 2021-02-12 Tom Tromey <tromey@adacore.com>
189 * gdbreplay.cc (remote_open): Constify.
191 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
193 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
194 gnulib free replacement too.
195 * common-defs.h [USE_WIN32API](read, write): Undefine
196 gnulib versions before defining these macros.
198 2021-02-03 Pedro Alves <pedro@palves.net>
200 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
201 Discard step SIGTRAP, unless GDB wanted the thread to step.
203 2021-02-03 Pedro Alves <pedro@palves.net>
205 * server.cc (discard_queued_stop_replies): Don't ever discard the
206 notification at the head of the list.
208 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
210 * ax.cc (bytecode_address_table): Make static.
211 * debug.cc (debug_file): Make static.
212 * linux-low.cc (stopping_threads): Make static.
213 (step_over_bkpt): Make static.
214 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
215 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
216 alloced_trace_state_variables, trace_buffer_ctrl,
217 tracing_start_time, tracing_stop_time, tracing_user_name,
218 tracing_notes, tracing_stop_note): Make static.
220 2021-01-20 Tom de Vries <tdevries@suse.de>
222 * linux-x86-low.cc (collect_register_i386): New function.
223 (x86_fill_gregset): Remove memset. Use collect_register_i386.
225 2021-01-07 Tom de Vries <tdevries@suse.de>
227 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
228 (LIBIBERTY_FOR_SHLIB): New var.
229 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
230 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
232 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
234 * debug.cc (debug_print_depth): New.
236 2021-01-01 Joel Brobecker <brobecker@adacore.com>
238 * server.cc (gdbserver_version): Update copyright year.
239 * gdbreplay.cc (gdbreplay_version): Likewise.
241 2020-12-16 Luis Machado <luis.machado@linaro.org>
243 * linux-aarch64-low.cc (address_significant): New function.
244 (aarch64_target::low_stopped_data_address): Handle the TBI.
246 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
248 * Makefile.in (IPA_LIB): Include libiberty library.
250 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
252 * server.cc (gdbserver_usage): Add missing option to usage text.
253 (gdbserver_show_disableable): Likewise.
255 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
257 * ax.cc: Fix indentation.
258 * dll.cc: Fix indentation.
259 * inferiors.h: Fix indentation.
260 * linux-low.cc: Fix indentation.
261 * linux-nios2-low.cc: Fix indentation.
262 * linux-ppc-ipa.cc: Fix indentation.
263 * linux-ppc-low.cc: Fix indentation.
264 * linux-x86-low.cc: Fix indentation.
265 * linux-xtensa-low.cc: Fix indentation.
266 * regcache.cc: Fix indentation.
267 * server.cc: Fix indentation.
268 * tracepoint.cc: Fix indentation.
270 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
272 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
274 * configure: Re-generate.
276 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
278 * configure: Re-generate.
280 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
282 * configure: Re-generate.
284 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
286 * configure: Re-generate.
288 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
290 * configure: Re-generate.
292 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
294 * configure.ac: Modernize.
295 * configure: Re-generate.
297 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
299 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
301 * configure: Re-generate.
303 2020-10-26 Pedro Alves <pedro@palves.net>
305 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
306 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
309 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
311 * acinclude.m4: Update ptrace.m4 path.
313 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
315 * config.in: Re-generate.
316 * configure: Re-generate.
318 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
320 * server.cc (handle_general_set): Don't use sprintf with
321 argument overlapping buffer.
323 2020-10-20 Tom Tromey <tromey@adacore.com>
326 * inferiors.cc (remove_thread): Clear current_thread before
329 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
331 * netbsd-low.cc (netbsd_tdesc): Remove.
332 (netbsd_add_process): Likewise.
333 (netbsd_process_target::create_inferior): Update.
335 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
337 * linux-arc-low.cc (arc_linux_read_description): Release the
338 unique_ptr returned from arc_create_target_description.
340 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
342 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
343 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
345 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
347 * linux-low.cc (linux_process_target::handle_extended_wait):
348 Release the unique_ptr returned from allocate_target_description.
349 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
350 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
351 (tdesc_i386_linux_no_xml): Change type.
352 (x86_linux_read_description): Borrow pointer from unique_ptr
354 (x86_target::get_ipa_tdesc_idx): Likewise.
355 (initialize_low_arch): Likewise.
356 * tdesc.cc (allocate_target_description): Update return type.
358 2020-10-07 Tom Tromey <tromey@adacore.com>
360 * server.cc (handle_search_memory): Remove dead code.
362 2020-10-07 Tom Tromey <tromey@adacore.com>
364 * server.cc (handle_search_memory_1): Remove.
365 (handle_search_memory): Use simple_search_memory.
367 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
369 * Makefile.in (COMPILE): Add CXXFLAGS.
370 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
371 (gdbserver$(EXEEXT)): Add CXXFLAGS.
372 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
373 ($(IPA_LIB)): Add CXXFLAGS.
374 (IPAGENT_COMPILE): Add CXXFLAGS.
376 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
378 * configure.srv: Support ARC architecture.
379 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
380 * linux-arc-low.cc: New file.
382 2020-10-07 Kamil Rytarowski <n54@gmx.com>
384 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
385 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
386 (netbsd_process_target::qxfer_libraries_svr4): Update.
388 2020-10-07 Kamil Rytarowski <n54@gmx.com>
390 * netbsd-low.cc: Fix whitespace formatting.
391 * netbsd-amd64-low.cc: Likewise.
393 2020-10-07 Kamil Rytarowski <n54@gmx.com>
395 * netbsd-low.cc (netbsd_process_target::read_memory)
396 (netbsd_process_target::write_memory): Update.
398 2020-10-07 Kamil Rytarowski <n54@gmx.com>
400 * netbsd-aarch64-low.cc: Add.
401 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
402 * configure.srv: Add aarch64*-*-netbsd*.
404 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
406 * regcache.cc (register_data): Remove unused "fetch" argument.
408 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
410 * server.cc (handle_monitor_command): Handle "set
412 (captured_main): Handle "--debug-event-loop".
413 (monitor_show_help): Mention new setting.
414 (gdbserver_usage): Mention new flag.
416 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
418 * linux-low.cc (linux_process_target::async): Pass name to
420 * remote-utils.cc (handle_accept_event): Likewise.
421 (remote_open): Likewise.
423 2020-10-01 Kamil Rytarowski <n54@gmx.com>
425 * netbsd-i386-low.cc: Add.
426 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
427 * configure.srv: Add i[34567]86-*-netbsd*.
429 2020-10-01 Kamil Rytarowski <n54@gmx.com>
431 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
432 (netbsd_target_regsets): Now const.
433 (the_low_target): Remove.
434 (class netbsd_amd64_target, the_netbsd_amd64_target)
435 (the_netbsd_target): Add.
436 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
438 (netbsd_process_target::fetch_registers)
439 (netbsd_process_target::store_registers, initialize_low): Update.
440 (the_netbsd_target): Remove.
441 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
442 (the_low_target, netbsd_tdesc): Remove.
443 (netbsd_process_target::get_regs_info)
444 (netbsd_process_target::low_arch_setup): Add.
446 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
448 * win32-low.cc: Remove local wow64_process variable.
449 * win32-low.h: Remove local wow64_process variable.
451 2020-09-18 Tom Tromey <tromey@adacore.com>
453 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
454 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
455 (netbsd_process_target::wait): Change type of target_options.
456 * win32-low.h (class win32_process_target) <wait>: Update.
457 * win32-low.cc (win32_process_target::wait): Update.
458 * target.h (class process_stratum_target) <wait>: Update.
460 * target.cc (mywait, target_wait): Change type of "options".
461 * linux-low.h (class linux_process_target) <wait, wait_1>:
463 * linux-low.cc (linux_process_target::wait)
464 (linux_process_target::wait_1): Update.
466 2020-09-15 Tom Tromey <tromey@adacore.com>
468 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
469 (xmltarget_amd64_linux_no_xml): Now arrays.
471 2020-09-14 Tom Tromey <tromey@adacore.com>
473 * tracepoint.cc (eval_result_names): Now const.
474 * ax.cc (gdb_agent_op_names): Now const.
476 2020-09-10 Kamil Rytarowski <n54@gmx.com>
478 * netbsd-low.cc: Add.
479 * netbsd-low.h: Likewise.
480 * netbsd-amd64-low.cc: Likewise.
481 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
482 "netbsd-amd64-low.cc".
483 * configure.srv: Add x86_64-*-netbsd*.
485 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
487 * server.cc (captured_main): Accept multiple `--selftest=`
488 options. Pass all `--selftest=` arguments to run_tests.
490 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
492 * configure, config.in: Regenerate.
494 2020-07-26 Eli Zaretskii <eliz@gnu.org>
496 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
497 When checking whether socklen_t type is defined, use ws2tcpip.h if
498 it is available and sys/socket.h isn't.
499 * configure: Regenerate.
500 * config.in: Regenerate.
502 2020-07-22 Pedro Alves <pedro@palves.net>
504 * inferiors.cc (switch_to_process): New, moved here from
505 thread-db.cc, and made extern.
506 * inferiors.h (switch_to_process): Declare.
507 * server.cc: Include "gdbsupport/scoped_restore.h".
508 (handle_qxfer_threads_proper): Now returns bool. Prepare to
509 access memory around target calls.
510 (handle_qxfer_threads): Handle errors.
511 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
513 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
515 * linux-low.cc (stopped_pids): Make static.
517 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
519 * tdesc.cc (allocate_target_description): Add header comment.
520 (target_desc_deleter::operator()): New function.
521 * tdesc.h (struct target_desc): Declare as final.
523 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
525 * server.cc (handle_query): Use std::vector of
526 std::string for `qsupported` vector. Use separate
528 * target.h (class process_stratum_target) <process_qsupported>:
529 Change parameters to array_view of const char *.
530 (target_process_qsupported): Remove `count` parameter.
531 * target.cc (process_stratum_target::process_qsupported): Change
532 parameters to array_view of const char *.
533 * linux-x86-low.cc (class x86_target) <process_qsupported>:
536 2020-06-29 Tom de Vries <tdevries@suse.de>
538 * ax.h: Include gdbsupport/debug_agent.h.
540 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
542 * tdesc.cc (struct tdesc_compatible_info): New struct.
543 (tdesc_compatible_info_list): New function.
544 (tdesc_compatible_info_arch_name): New function.
546 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548 Use std::list to stop pending signal instead of manually-created
550 * linux-low.h: Include <list>.
551 (struct pending_signal): Move here from linux-low.cc.
552 (struct lwp_info) <pending_signals>
553 <pending_signals_to_report>: Update the type.
554 * linux-low.cc (struct pending_signals): Remove.
555 (linux_process_target::delete_lwp)
556 (linux_process_target::add_lwp)
557 (enqueue_one_deferred_signal)
558 (dequeue_one_deferred_signal)
559 (enqueue_pending_signal)
560 (linux_process_target::resume_one_lwp_throw)
561 (linux_process_target::thread_needs_step_over)
562 (linux_process_target::resume_one_thread)
563 (linux_process_target::proceed_one_lwp): Update the use of pending
566 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
568 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
571 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
573 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
574 * configure.srv: Remove mingw32ce cases.
575 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
576 * win32-low.h (to_back_slashes): Remove.
577 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
579 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
581 * Makefile.in (SFILES): linux-tile-low.cc.
582 * configure.srv: Remove tilegx case.
583 * linux-tile-low.cc: Remove.
585 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
587 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
588 * configure.srv: Remove m32r case.
589 * linux-m32r-low.cc: Remove.
591 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
593 * Makefile.in (SFILES): Remove linux-cris-low.c.
594 * configure.srv: Remove cris cases.
595 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
597 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
599 * Makefile.in (SFILES): Remove linux-bfin-low.c.
600 * configure.srv: Remove bfin case.
601 * linux-bfin-low.cc: Remove.
602 * linux-low.cc: Remove BFIN-conditional code.
604 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
606 * configure: Re-generate.
607 * configure.ac: Remove srv_qnx test.
608 * configure.srv: Remove nto case.
609 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
610 * remote-utils.c: Remove __QNX__-guarded code.
612 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
614 * configure: Re-generate.
615 * configure.ac: Remove srv_lynxos test.
616 * configure.srv: Remove lynxos cases.
617 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
620 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
622 * README: Fix a few outdated or incoherent things.
624 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
626 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
627 (win32_clear_inferiors): Use open_process_used.
628 (get_child_debug_event): Likewise.
630 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
633 * linux-low.cc (linux_process_target::create_inferior),
634 lynx-low.cc (lynx_process_target::create_inferior),
635 win32-low.cc (win32_process_target::create_inferior): Use
636 construct_inferior_arguments instead of stringify_argv
637 to get string representation which properly escapes
639 * server.cc (handle_v_run): Just pass empty program arg
640 as such, since any further processing is now handled via
641 construct_inferior_arguments.
643 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
645 * nto-low.cc (nto_process_target::create_inferior): Pass
646 argv to spawnp function as char **.
648 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
650 * server.cc (captured_main), (handle_v_run): No longer
651 insert extra NULL element to args vector.
653 2020-05-23 Pedro Alves <palves@redhat.com>
655 * gdb-safe-ctype.h: New.
657 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
659 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
660 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
661 (ia64_target::low_breakpoint_at): Ditto.
663 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
665 * win32-i386-low.cc (i386_supports_z_point_type): Handle
666 Z_PACKET_HW_BP z_type.
667 (i386_insert_point): Handle raw_bkpt_type type.
668 (i386_remove_point): Likewise.
670 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
672 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
674 * win32-arm-low.cc (arm_num_regs): New function.
675 (struct win32_target_ops): Use arm_num_regs.
676 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
678 (i386_get_thread_context): Likewise.
679 (i386_prepare_to_resume): Likewise.
680 (i386_thread_added): Likewise.
681 (i386_single_step): Likewise.
682 (i386_fetch_inferior_register): Likewise.
683 (i386_store_inferior_register): Likewise.
684 (i386_arch_setup): Likewise.
685 (i386_win32_num_regs): New function.
686 (struct win32_target_ops): Use i386_win32_num_regs.
687 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
689 (win32_require_context): Likewise.
690 (child_add_thread): Likewise.
691 (do_initial_child_stuff): Likewise.
692 (continue_one_thread): Likewise.
693 (win32_process_target::resume): Likewise.
694 (load_psapi): Likewise.
695 (win32_add_all_dlls): Likewise.
696 (maybe_adjust_pc): Likewise.
697 (win32_process_target::qxfer_siginfo): Likewise.
698 (initialize_low): Likewise.
699 * win32-low.h (struct win32_target_ops): Change num_regs to
702 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
704 * configure.ac: Remove check for fs_base/gs_base in
706 * configure: Re-generate.
707 * config.in: Re-generate.
708 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
709 x86_store_gregset): Adjust.
711 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
713 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
716 2020-04-16 Tom Tromey <tromey@adacore.com>
718 * win32-low.cc (windows_nat::handle_access_violation): New
721 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
723 * win32-low.cc (get_child_debug_event): Fix format string warning.
725 2020-04-13 Tom Tromey <tom@tromey.com>
727 * server.h (gdb_fildes_t): Remove typedef.
728 * remote-utils.c (remote_desc, list_desc): Now int.
729 (INVALID_DESCRIPTOR): Remove.
730 (gdb_connected, remote_close)
731 (check_remote_input_interrupt_request): Update.
732 * utils.h (pfildes): Don't declare.
733 * utils.c (pfildes): Remove.
735 2020-04-13 Tom Tromey <tom@tromey.com>
737 * server.h (handle_serial_event, handle_target_event): Update.
738 * server.c: Don't call initialize_event_loop.
739 (keep_processing_events): New global.
740 (handle_serial_event): Return void. Set keep_processing_events.
741 (handle_target_event): Return void.
742 (start_event_loop): Move from event-loop.c. Rewrite.
743 * remote-utils.c (handle_accept_event): Return void.
744 (reset_readchar): Use delete_timer.
745 (process_remaining): Return void.
746 (reschedule): Use create_timer.
747 * event-loop.h: Remove.
748 * event-loop.cc: Remove.
749 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
751 2020-04-13 Tom Tromey <tom@tromey.com>
753 * server.c (invoke_async_signal_handlers)
754 (check_async_event_handlers, flush_streams, gdb_select): New
757 2020-04-13 Tom Tromey <tom@tromey.com>
759 * configure: Rebuild.
760 * config.in: Rebuild.
762 2020-04-08 Tom Tromey <tromey@adacore.com>
765 * win32-low.c (child_continue): Call matching_pending_stop.
766 (get_child_debug_event): Call fetch_pending_stop. Push pending
769 2020-04-08 Tom Tromey <tromey@adacore.com>
771 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
772 (win32_process_target::supports_stopped_by_sw_breakpoint):
774 * win32-low.c (win32_supports_z_point_type): Always handle
776 (win32_insert_point): Call insert_memory_breakpoint when needed.
777 (win32_remove_point): Call remove_memory_breakpoint when needed.
778 (win32_process_target::stopped_by_sw_breakpoint)
779 (win32_process_target::supports_stopped_by_sw_breakpoint): New
781 (win32_target_ops): Update.
782 (maybe_adjust_pc): New function.
783 (win32_wait): Call maybe_adjust_pc.
785 2020-04-08 Tom Tromey <tromey@adacore.com>
787 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
789 * win32-i386-low.c (the_low_target): Update.
790 * win32-arm-low.c (the_low_target): Update.
792 2020-04-08 Tom Tromey <tromey@adacore.com>
794 * win32-low.h (win32_process_target::read_pc)
795 (win32_process_target::write_pc): Declare.
796 * win32-low.c (win32_process_target::read_pc)
797 (win32_process_target::write_pc): New methods.
798 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
800 (the_low_target): Update.
801 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
803 (the_low_target): Update.
805 2020-04-08 Tom Tromey <tromey@adacore.com>
807 * win32-low.c (win32_kill, get_child_debug_event): Use
808 wait_for_debug_event.
810 2020-04-08 Tom Tromey <tromey@adacore.com>
812 * win32-low.c (child_continue): Call continue_last_debug_event.
814 2020-04-08 Tom Tromey <tromey@adacore.com>
816 * win32-low.c (handle_exception): Remove.
817 (windows_nat::handle_ms_vc_exception): New function.
818 (get_child_debug_event): Add "continue_status" parameter.
820 (win32_wait): Update.
822 2020-04-08 Tom Tromey <tromey@adacore.com>
824 * win32-low.c (windows_nat::handle_load_dll): Rename from
825 handle_load_dll. No longer static.
826 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
829 2020-04-08 Tom Tromey <tromey@adacore.com>
831 * win32-low.c (handle_output_debug_string): Add parameter. Change
833 (win32_kill, get_child_debug_event): Update.
835 2020-04-08 Tom Tromey <tromey@adacore.com>
837 * win32-low.c (current_process_handle, current_process_id)
838 (main_thread_id, last_sig, current_event, siginfo_er): Move to
841 2020-04-08 Tom Tromey <tromey@adacore.com>
843 * win32-low.c (get_image_name): Remove.
844 (handle_load_dll): Update.
846 2020-04-08 Tom Tromey <tromey@adacore.com>
848 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
849 No longer static. Change parameters.
850 (child_add_thread, child_fetch_inferior_registers)
851 (child_store_inferior_registers, win32_resume)
852 (win32_get_tib_address): Update.
854 2020-04-08 Tom Tromey <tromey@adacore.com>
856 * win32-low.h (struct win32_target_ops): Use qualified names where
858 * win32-i386-low.c: Add "using namespace".
859 * win32-low.c: Add "using namespace".
860 * win32-arm-low.c: Add "using namespace".
862 2020-04-08 Tom Tromey <tromey@adacore.com>
864 * win32-low.c (delete_thread_info): Don't call CloseHandle.
866 2020-04-08 Tom Tromey <tromey@adacore.com>
868 * win32-low.c (win32_require_context, suspend_one_thread): Use
869 windows_thread_info::suspend.
870 (continue_one_thread): Use windows_thread_info::resume.
871 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
873 2020-04-08 Tom Tromey <tromey@adacore.com>
875 * win32-i386-low.c (update_debug_registers)
876 (i386_prepare_to_resume, i386_thread_added): Update.
878 2020-04-08 Tom Tromey <tromey@adacore.com>
880 * win32-low.c (child_add_thread): Use new.
881 (delete_thread_info): Use delete.
883 2020-04-08 Tom Tromey <tromey@adacore.com>
885 * win32-low.h (struct windows_thread_info): Remove.
887 2020-04-08 Tom Tromey <tromey@adacore.com>
889 * win32-low.h (struct windows_thread_info): Rename from
890 win32_thread_info. Remove typedef.
891 (struct win32_target_ops, win32_require_context): Update.
892 * win32-low.c (win32_get_thread_context)
893 (win32_set_thread_context, win32_prepare_to_resume)
894 (win32_require_context, thread_rec, child_add_thread)
895 (delete_thread_info, continue_one_thread)
896 (child_fetch_inferior_registers, child_store_inferior_registers)
897 (win32_resume, suspend_one_thread, win32_get_tib_address):
899 * win32-i386-low.c (update_debug_registers)
900 (win32_get_current_dr, i386_get_thread_context)
901 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
902 (i386_fetch_inferior_register, i386_store_inferior_register):
904 * win32-arm-low.c (arm_get_thread_context)
905 (arm_fetch_inferior_register, arm_store_inferior_register):
908 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
910 * linux-low.h (struct linux_target_ops): Remove.
911 (the_low_target): Remove.
912 * linux-x86-low.cc (the_low_target): Remove.
913 * linux-aarch64-low.cc (the_low_target): Ditto.
914 * linux-arm-low.cc (the_low_target): Ditto.
915 * linux-bfin-low.cc (the_low_target): Ditto.
916 * linux-cris-low.cc (the_low_target): Ditto.
917 * linux-crisv32-low.cc (the_low_target): Ditto.
918 * linux-ia64-low.cc (the_low_target): Ditto.
919 * linux-m32r-low.cc (the_low_target): Ditto.
920 * linux-m68k-low.cc (the_low_target): Ditto.
921 * linux-mips-low.cc (the_low_target): Ditto.
922 * linux-nios2-low.cc (the_low_target): Ditto.
923 * linux-ppc-low.cc (the_low_target): Ditto.
924 * linux-riscv-low.cc (the_low_target): Ditto.
925 * linux-s390-low.cc (the_low_target): Ditto.
926 * linux-sh-low.cc (the_low_target): Ditto.
927 * linux-sparc-low.cc (the_low_target): Ditto.
928 * linux-tic6x-low.cc (the_low_target): Ditto.
929 * linux-tile-low.cc (the_low_target): Ditto.
930 * linux-xtensa-low.cc (the_low_target): Ditto.
932 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
934 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
935 linux target define the op by overriding the declaration in
936 process_stratum_target.
938 * linux-low.h (struct linux_target_ops): Remove the op.
939 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
940 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
941 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
942 (x86_get_ipa_tdesc_idx): Turn into...
943 (x86_target::get_ipa_tdesc_idx): ...this.
944 (the_low_target): Remove the op field.
945 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
946 (ppc_get_ipa_tdesc_idx): Turn into...
947 (ppc_target::get_ipa_tdesc_idx): ...this.
948 (the_low_target): Remove the op field.
949 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
950 (s390_get_ipa_tdesc_idx): Turn into...
951 (s390_target::get_ipa_tdesc_idx): ...this.
952 (the_low_target): Remove the op field.
954 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
956 Turn the 'get_syscall_trapinfo' linux target op into a method
957 of process_stratum_target.
959 * linux-low.h (struct linux_target_ops): Remove the op.
960 (class linux_process_target) <get_syscall_trapinfo>
961 <gdb_catch_this_syscall>
962 <low_supports_catch_syscall>
963 <low_get_syscall_trapinfo>: Declare.
964 * linux-low.cc (get_syscall_trapinfo): Turn into...
965 (linux_process_target::get_syscall_trapinfo): ...this.
966 (linux_process_target::low_get_syscall_trapinfo): Define.
967 (gdb_catch_this_syscall_p): Turn into...
968 (linux_process_target::gdb_catch_this_syscall): ...this.
969 (linux_process_target::low_supports_catch_syscall): Define.
971 Update the callers below.
973 (linux_process_target::wait_1)
974 (linux_process_target::supports_catch_syscall)
976 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
977 <low_get_syscall_trapinfo>: Declare.
978 (x86_target::low_supports_catch_syscall): Define.
979 (x86_get_syscall_trapinfo): Turn into...
980 (x86_target::low_get_syscall_trapinfo): ...this.
981 (the_low_target): Remove the op field.
982 * linux-aarch64-low.cc (class aarch64_target)
983 <low_supports_catch_syscall>
984 <low_get_syscall_trapinfo>: Declare.
985 (aarch64_target::low_supports_catch_syscall): Define.
986 (aarch64_get_syscall_trapinfo): Turn into...
987 (aarch64_target::low_get_syscall_trapinfo): ...this.
988 (the_low_target): Remove the op field.
989 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
990 <low_get_syscall_trapinfo>: Declare.
991 (arm_target::low_supports_catch_syscall): Define.
992 (arm_get_syscall_trapinfo): Turn into...
993 (arm_target::low_get_syscall_trapinfo): ...this.
994 (the_low_target): Remove the op field.
995 * linux-ppc-low.cc (the_low_target): Remove the op field.
996 * linux-s390-low.cc (the_low_target): Remove the op field.
998 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1000 Remove the 'supports_hardware_single_step' linux target op and
1001 override the process_stratum_target's op definition in
1002 linux_process_target to return true.
1004 * linux-low.h (struct linux_target_ops): Remove the op.
1005 (class linux_process_target) <finish_step_over>
1006 <maybe_hw_step>: Declare.
1007 * linux-low.cc (can_hardware_single_step): Remove.
1008 (maybe_hw_step): Turn into...
1009 (linux_process_target::maybe_hw_step): ...this.
1010 (finish_step_over): Turn into...
1011 (linux_process_target::finish_step_over): ...this.
1012 (linux_process_target::supports_hardware_single_step): Update
1015 Update the callers below.
1017 (linux_process_target::single_step)
1018 (linux_process_target::resume_one_lwp_throw)
1020 * linux-arm-low.cc (class arm_target)
1021 <supports_hardware_single_step>: Declare.
1022 (arm_supports_hardware_single_step): Turn into...
1023 (arm_target::supports_hardware_single_step): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1026 (the_low_target): Remove the op field.
1027 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1029 (the_low_target): Remove the op field.
1030 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1031 (the_low_target): Remove the op field.
1032 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1033 (the_low_target): Remove the op field.
1034 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1035 (the_low_target): Remove the op field.
1036 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1037 (the_low_target): Remove the op field.
1038 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1039 (the_low_target): Remove the op field.
1040 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1041 (the_low_target): Remove the op field.
1042 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1043 (the_low_target): Remove the op field.
1044 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1045 (the_low_target): Remove the op field.
1046 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1047 (the_low_target): Remove the op field.
1048 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1050 (the_low_target): Remove the op field.
1052 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1054 Turn the 'supports_range_stepping' linux target op into a method
1055 of linux_process_target.
1057 * linux-low.h (struct linux_target_ops): Remove the op.
1058 (class linux_process_target) <low_supports_range_stepping>: Declare.
1059 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1061 (linux_process_target::supports_range_stepping): Update the call
1063 * linux-x86-low.cc (class x86_target)
1064 <low_supports_range_stepping>: Declare.
1065 (x86_supports_range_stepping): Turn into...
1066 (x86_target::low_supports_range_stepping): ...this.
1067 (the_low_target): Remove the op field.
1068 * linux-aarch64-low.cc (class aarch64_target)
1069 <low_supports_range_stepping>: Declare.
1070 (aarch64_supports_range_stepping): Turn into...
1071 (aarch64_target::low_supports_range_stepping): ...this.
1072 (the_low_target): Remove the op field.
1073 * linux-arm-low.cc (the_low_target): Remove the op field.
1074 * linux-bfin-low.cc (the_low_target): Ditto.
1075 * linux-crisv32-low.cc (the_low_target): Ditto.
1076 * linux-m32r-low.cc (the_low_target): Ditto.
1077 * linux-m68k-low.cc (the_low_target): Ditto.
1078 * linux-ppc-low.cc (the_low_target): Ditto.
1079 * linux-s390-low.cc (the_low_target): Ditto.
1080 * linux-sh-low.cc (the_low_target): Ditto.
1081 * linux-tic6x-low.cc (the_low_target): Ditto.
1082 * linux-tile-low.cc (the_low_target): Ditto.
1083 * linux-xtensa-low.cc (the_low_target): Ditto.
1085 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087 Remove the 'emit_ops' linux target ops and let the concrete
1088 linux target define the op by overriding the declaration of
1089 process_stratum_target.
1091 * linux-low.h (struct linux_target_ops): Remove the op.
1092 (class linux_process_target) <emit_ops>: Remove.
1093 * linux-low.cc (linux_process_target::emit_ops): Remove.
1094 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1095 (x86_emit_ops): Turn into...
1096 (x86_target::emit_ops): ...this.
1097 (the_low_target): Remove the op field.
1098 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1099 (aarch64_emit_ops): Turn into...
1100 (aarch64_target::emit_ops): ...this.
1101 (the_low_target): Remove the op field.
1102 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1103 (ppc_emit_ops): Turn into...
1104 (ppc_target::emit_ops): ...this.
1105 (the_low_target): Remove the op field.
1106 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1107 (s390_emit_ops): Turn into...
1108 (s390_target::emit_ops): ...this.
1109 (the_low_target): Remove the op field.
1110 * linux-arm-low.cc (the_low_target): Remove the op field.
1111 * linux-bfin-low.cc (the_low_target): Ditto.
1112 * linux-crisv32-low.cc (the_low_target): Ditto.
1113 * linux-m32r-low.cc (the_low_target): Ditto.
1114 * linux-m68k-low.cc (the_low_target): Ditto.
1115 * linux-sh-low.cc (the_low_target): Ditto.
1116 * linux-tic6x-low.cc (the_low_target): Ditto.
1117 * linux-tile-low.cc (the_low_target): Ditto.
1118 * linux-xtensa-low.cc (the_low_target): Ditto.
1120 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122 Remove the 'install_fast_tracepoint_jump_pad' and
1123 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1124 concrete linux target define the ops by overriding the declarations
1125 of process_stratum_target.
1127 * linux-low.h (struct linux_target_ops): Remove the ops.
1128 (class linux_process_target) <supports_fast_tracepoints>
1129 <install_fast_tracepoint_jump_pad>
1130 <get_min_fast_tracepoint_insn_len>: Remove.
1131 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1132 (linux_process_target::install_fast_tracepoint_jump_pad)
1133 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1134 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1135 <install_fast_tracepoint_jump_pad>
1136 <get_min_fast_tracepoint_insn_len>: Declare.
1137 (x86_target::supports_fast_tracepoints): Define.
1138 (x86_install_fast_tracepoint_jump_pad): Turn into...
1139 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1140 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1141 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1142 (the_low_target): Remove the op fields.
1143 * linux-aarch64-low.cc (class aarch64_target)
1144 <supports_fast_tracepoints>
1145 <install_fast_tracepoint_jump_pad>
1146 <get_min_fast_tracepoint_insn_len>: Declare.
1147 (aarch64_target::supports_fast_tracepoints): Define.
1148 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1149 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1150 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1151 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1152 (the_low_target): Remove the op fields.
1153 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1154 <install_fast_tracepoint_jump_pad>
1155 <get_min_fast_tracepoint_insn_len>: Declare.
1156 (ppc_target::supports_fast_tracepoints): Define.
1157 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1158 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1159 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1160 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1161 (the_low_target): Remove the op fields.
1162 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1163 <install_fast_tracepoint_jump_pad>
1164 <get_min_fast_tracepoint_insn_len>: Declare.
1165 (s390_target::supports_fast_tracepoints): Define.
1166 (s390_install_fast_tracepoint_jump_pad): Turn into...
1167 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1168 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1169 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1170 (the_low_target): Remove the op fields.
1171 * linux-arm-low.cc (the_low_target): Remove the op fields.
1172 * linux-bfin-low.cc (the_low_target): Ditto.
1173 * linux-crisv32-low.cc (the_low_target): Ditto.
1174 * linux-m32r-low.cc (the_low_target): Ditto.
1175 * linux-m68k-low.cc (the_low_target): Ditto.
1176 * linux-sh-low.cc (the_low_target): Ditto.
1177 * linux-tic6x-low.cc (the_low_target): Ditto.
1178 * linux-tile-low.cc (the_low_target): Ditto.
1179 * linux-xtensa-low.cc (the_low_target): Ditto.
1181 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183 Turn the 'get_thread_area' linux target op into a method of
1184 process_stratum_target.
1186 * linux-low.h (struct linux_target_ops): Remove the op.
1187 (class linux_process_target) <stuck_in_jump_pad>
1188 <linux_fast_tracepoint_collecting>
1189 <low_get_thread_area>: Declare.
1190 * linux-low.cc (supports_fast_tracepoints): Remove.
1191 (linux_fast_tracepoint_collecting): Turn into...
1192 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1193 (linux_process_target::low_get_thread_area): Define.
1194 (stuck_in_jump_pad_callback): Turn into...
1195 (linux_process_target::stuck_in_jump_pad): ...this.
1197 Update the caller below.
1199 (linux_process_target::stabilize_threads)
1201 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1203 (x86_get_thread_area): Turn into...
1204 (x86_target::low_get_thread_area): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1208 (aarch64_get_thread_area): Turn into...
1209 (aarch64_target::low_get_thread_area): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1213 (ppc_get_thread_area): Turn into...
1214 (ppc_target::low_get_thread_area): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1218 (s390_get_thread_area): Turn into...
1219 (s390_target::low_get_thread_area): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-arm-low.cc (the_low_target): Remove the op field.
1222 * linux-bfin-low.cc (the_low_target): Ditto.
1223 * linux-crisv32-low.cc (the_low_target): Ditto.
1224 * linux-m32r-low.cc (the_low_target): Ditto.
1225 * linux-m68k-low.cc (the_low_target): Ditto.
1226 * linux-sh-low.cc (the_low_target): Ditto.
1227 * linux-tic6x-low.cc (the_low_target): Ditto.
1228 * linux-tile-low.cc (the_low_target): Ditto.
1229 * linux-xtensa-low.cc (the_low_target): Ditto.
1231 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1233 Remote the 'supports_tracepoints' linux target op and let the
1234 concrete linux target define it by overriding the op declared in
1235 process_stratum_target.
1237 * linux-low.h (struct linux_target_ops): Remove the op.
1238 (class linux_process_target) <supports_tracepoints>: Remove.
1239 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1240 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1242 (x86_supports_tracepoints): Turn into...
1243 (x86_target::supports_tracepoints): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-aarch64-low.cc (class aarch64_target)
1246 <supports_tracepoints>: Declare.
1247 (aarch64_supports_tracepoints): Turn into...
1248 (aarch64_target::supports_tracepoints): ...this.
1249 (the_low_target): Remove the op field.
1250 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1252 (ppc_supports_tracepoints): Turn into...
1253 (ppc_target::supports_tracepoints): ...this.
1254 (the_low_target): Remove the op field.
1255 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1257 (s390_supports_tracepoints): Turn into...
1258 (s390_target::supports_tracepoints): ...this.
1259 (the_low_target): Remove the op field.
1260 * linux-arm-low.cc (the_low_target): Remove the op field.
1261 * linux-bfin-low.cc (the_low_target): Ditto.
1262 * linux-crisv32-low.cc (the_low_target): Ditto.
1263 * linux-m32r-low.cc (the_low_target): Ditto.
1264 * linux-m68k-low.cc (the_low_target): Ditto.
1265 * linux-sh-low.cc (the_low_target): Ditto.
1266 * linux-tic6x-low.cc (the_low_target): Ditto.
1267 * linux-tile-low.cc (the_low_target): Ditto.
1268 * linux-xtensa-low.cc (the_low_target): Ditto.
1270 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272 Remove the 'process_qsupported' linux target op and let a concrete
1273 linux target define the op by overriding the op declaration in
1274 process_stratum_target.
1276 * linux-low.h (struct linux_target_ops): Remove the op.
1277 (class linux_process_target) <process_qsupported>: Remove.
1278 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1279 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1280 (x86_linux_process_qsupported): Turn into...
1281 (x86_target::process_qsupported): ...this.
1282 (the_low_target): Remove the op field.
1283 * linux-aarch64-low.cc (the_low_target): Remove the op
1285 * linux-arm-low.cc (the_low_target): Ditto.
1286 * linux-bfin-low.cc (the_low_target): Ditto.
1287 * linux-crisv32-low.cc (the_low_target): Ditto.
1288 * linux-m32r-low.cc (the_low_target): Ditto.
1289 * linux-m68k-low.cc (the_low_target): Ditto.
1290 * linux-ppc-low.cc (the_low_target): Ditto.
1291 * linux-s390-low.cc (the_low_target): Ditto.
1292 * linux-sh-low.cc (the_low_target): Ditto.
1293 * linux-tic6x-low.cc (the_low_target): Ditto.
1294 * linux-tile-low.cc (the_low_target): Ditto.
1295 * linux-xtensa-low.cc (the_low_target): Ditto.
1297 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299 Turn the 'prepare_to_resume' linux target op into a method of
1300 linux_process_target.
1302 * linux-low.h (struct linux_target_ops): Remove the op.
1303 (class linux_process_target) <low_prepare_to_resume>: Declare.
1304 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1307 Update the callers below:
1309 (linux_process_target::resume_one_lwp_throw)
1310 (linux_process_target::low_prepare_to_resume)
1312 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1314 (x86_target::low_prepare_to_resume): Define.
1315 (the_low_target): Remove the op field.
1316 * linux-aarch64-low.cc (class aarch64_target)
1317 <low_prepare_to_resume>: Declare.
1318 (aarch64_target::low_prepare_to_resume): Define.
1319 (the_low_target): Remove the op field.
1320 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1322 (arm_prepare_to_resume): Turn into...
1323 (arm_target::low_prepare_to_resume): ...this.
1324 (the_low_target): Remove the op field.
1325 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1327 (mips_linux_prepare_to_resume): Turn into...
1328 (mips_target::low_prepare_to_resume): ...this.
1329 (the_low_target): Remove the op field.
1330 * linux-bfin-low.cc (the_low_target): Remove the op field.
1331 * linux-crisv32-low.cc (the_low_target): Ditto.
1332 * linux-m32r-low.cc (the_low_target): Ditto.
1333 * linux-m68k-low.cc (the_low_target): Ditto.
1334 * linux-ppc-low.cc (the_low_target): Ditto.
1335 * linux-s390-low.cc (the_low_target): Ditto.
1336 * linux-sh-low.cc (the_low_target): Ditto.
1337 * linux-tic6x-low.cc (the_low_target): Ditto.
1338 * linux-tile-low.cc (the_low_target): Ditto.
1339 * linux-xtensa-low.cc (the_low_target): Ditto.
1341 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1343 Turn the 'new_process', 'delete_process', 'new_thread',
1344 'delete_thread', and 'new_fork' linux target ops into methods
1345 of linux_process_target.
1347 * linux-low.h (struct linux_target_ops): Remove the ops.
1348 (class linux_process_target) <add_linux_process>
1353 <check_zombie_leaders>
1356 <low_delete_process>
1359 <low_new_fork>: Declare.
1360 * linux-low.cc (delete_lwp): Turn into...
1361 (linux_process_target::delete_lwp): ...this.
1362 (linux_process_target::low_delete_thread): Define.
1363 (linux_add_process): Turn into...
1364 (linux_process_target::add_linux_process): ...this.
1365 (linux_process_target::low_new_process): Define.
1366 (linux_process_target::low_delete_process): Define.
1367 (linux_process_target::low_new_fork): Define.
1368 (add_lwp): Turn into...
1369 (linux_process_target::add_lwp): ...this.
1370 (linux_process_target::low_new_thread): Define.
1371 (linux_attach_lwp): Turn into...
1372 (linux_process_target::attach_lwp): ...this.
1373 (linux_detach_one_lwp): Turn into...
1374 (linux_process_target::detach_one_lwp): ...this.
1375 (linux_detach_lwp_callback): Remove and inline...
1376 (linux_process_target::detach): ...here.
1377 (check_zombie_leaders): Turn into...
1378 (linux_process_target::check_zombie_leaders): ...this.
1379 (filter_exit_event): Turn into...
1380 (linux_process_target::filter_exit_event): ...this.
1382 Update the callers below.
1384 (linux_process_target::handle_extended_wait)
1385 (linux_process_target::create_inferior)
1386 (attach_proc_task_lwp_callback)
1387 (linux_process_target::attach)
1388 (linux_process_target::detach)
1389 (linux_process_target::mourn)
1390 * thread-db.cc (attach_thread)
1392 * linux-x86-low.cc (class x86_target) <low_new_process>
1393 <low_delete_process>
1396 <low_new_fork>: Declare.
1397 (x86_linux_new_process): Turn into...
1398 (x86_target::low_new_process): ...this.
1399 (x86_linux_delete_process): Turn into...
1400 (x86_target::low_delete_process): ...this.
1401 (x86_target::low_new_thread): Define.
1402 (x86_target::low_delete_thread): Define.
1403 (x86_linux_new_fork): Turn into...
1404 (x86_target::low_new_fork): ...this.
1405 (the_low_target): Remove the op fields.
1406 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1407 <low_delete_process>
1410 <low_new_fork>: Declare.
1411 (aarch64_linux_new_process): Turn into...
1412 (aarch64_target::low_new_process): ...this.
1413 (aarch64_linux_delete_process): Turn into...
1414 (aarch64_target::low_delete_process): ...this.
1415 (aarch64_target::low_new_thread): Define.
1416 (aarch64_target::low_delete_thread): Define.
1417 (aarch64_linux_new_fork): Turn into...
1418 (aarch64_target::low_new_fork): ...this.
1419 (the_low_target): Remove the op fields.
1420 * linux-arm-low.cc (class arm_target) <low_new_process>
1421 <low_delete_process>
1424 <low_new_fork>: Declare.
1425 (arm_new_process): Turn into...
1426 (arm_target::low_new_process): ...this.
1427 (arm_delete_process): Turn into...
1428 (arm_target::low_delete_process): ...this.
1429 (arm_new_thread): Turn into...
1430 (arm_target::low_new_thread): ...this.
1431 (arm_delete_thread): Turn into...
1432 (arm_target::low_delete_thread): ...this.
1433 (arm_new_fork): Turn into...
1434 (arm_target::low_new_fork): ...this.
1435 (the_low_target): Remove the op fields.
1436 * linux-mips-low.cc (class mips_target) <low_new_process>
1437 <low_delete_process>
1440 <low_new_fork>: Declare.
1441 (mips_linux_new_process): Turn into...
1442 (mips_target::low_new_process): ...this.
1443 (mips_linux_delete_process): Turn into...
1444 (mips_target::low_delete_process): ...this.
1445 (mips_linux_new_thread): Turn into...
1446 (mips_target::low_new_thread): ...this.
1447 (mips_linux_delete_thread): Turn into...
1448 (mips_target::low_delete_thread): ...this.
1449 (mips_linux_new_fork): Turn into...
1450 (mips_target::low_new_fork): ...this.
1451 (the_low_target): Remove the op fields.
1452 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1453 * linux-crisv32-low.cc (the_low_target): Ditto.
1454 * linux-m32r-low.cc (the_low_target): Ditto.
1455 * linux-m68k-low.cc (the_low_target): Ditto.
1456 * linux-ppc-low.cc (the_low_target): Ditto.
1457 * linux-s390-low.cc (the_low_target): Ditto.
1458 * linux-sh-low.cc (the_low_target): Ditto.
1459 * linux-tic6x-low.cc (the_low_target): Ditto.
1460 * linux-tile-low.cc (the_low_target): Ditto.
1461 * linux-xtensa-low.cc (the_low_target): Ditto.
1463 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1465 Turn the 'siginfo_fixup' linux target op into a method of
1466 linux_process_target.
1468 * linux-low.h (struct linux_target_ops): Remove the op.
1469 (class linux_process_target) <siginfo_fixup>
1470 <low_siginfo_fixup>: Declare.
1471 * linux-low.cc (siginfo_fixup): Turn into...
1472 (linux_process_target::siginfo_fixup): ...this.
1473 (linux_process_target::low_siginfo_fixup): Define.
1474 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1475 (x86_siginfo_fixup): Turn into...
1476 (x86_target::low_siginfo_fixup): ...this.
1477 (the_low_target): Remove the op field.
1478 * linux-aarch64-low.cc (class aarch64_target):
1479 <low_siginfo_fixup>: Declare.
1480 (aarch64_linux_siginfo_fixup): Turn into...
1481 (aarch64_target::low_siginfo_fixup): ...this.
1482 (the_low_target): Remove the op field.
1483 * linux-arm-low.cc (the_low_target): Remove the op field.
1484 * linux-bfin-low.cc (the_low_target): Ditto.
1485 * linux-crisv32-low.cc (the_low_target): Ditto.
1486 * linux-m32r-low.cc (the_low_target): Ditto.
1487 * linux-m68k-low.cc (the_low_target): Ditto.
1488 * linux-mips-low.cc (the_low_target): Ditto.
1489 * linux-ppc-low.cc (the_low_target): Ditto.
1490 * linux-s390-low.cc (the_low_target): Ditto.
1491 * linux-sh-low.cc (the_low_target): Ditto.
1492 * linux-tic6x-low.cc (the_low_target): Ditto.
1493 * linux-tile-low.cc (the_low_target): Ditto.
1494 * linux-xtensa-low.cc (the_low_target): Ditto.
1496 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1498 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1499 linux target ops into methods of linux_process_target.
1501 * linux-low.h (struct linux_target_ops): Remove the ops.
1502 (class linux_process_target) <low_collect_ptrace_register>
1503 <low_store_ptrace_register>: Declare.
1504 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1505 (linux_process_target::low_supply_ptrace_register): Define.
1507 Update the callers below.
1509 (linux_process_target::fetch_register)
1510 (linux_process_target::store_register)
1512 * linux-x86-low.cc (the_low_target): Remove the op fields.
1513 * linux-aarch64-low.cc (the_low_target): Ditto.
1514 * linux-arm-low.cc (the_low_target): Ditto.
1515 * linux-bfin-low.cc (the_low_target): Ditto.
1516 * linux-crisv32-low.cc (the_low_target): Ditto.
1517 * linux-m32r-low.cc (the_low_target): Ditto.
1518 * linux-m68k-low.cc (the_low_target): Ditto.
1519 * linux-sh-low.cc (the_low_target): Ditto.
1520 * linux-sparc-low.cc (the_low_target): Ditto.
1521 * linux-tic6x-low.cc (the_low_target): Ditto.
1522 * linux-tile-low.cc (the_low_target): Ditto.
1523 * linux-xtensa-low.cc (the_low_target): Ditto.
1524 * linux-mips-low.cc (class mips_target)
1525 <low_collect_ptrace_register>
1526 <low_supply_ptrace_register>: Declare.
1527 (mips_collect_ptrace_register): Turn into ...
1528 (mips_target::low_collect_ptrace_register): ...this.
1529 (mips_supply_ptrace_register): Turn into...
1530 (mips_target::low_supply_ptrace_register): ...this.
1531 (the_low_target): Remove the op fields.
1532 * linux-ppc-low.cc (class ppc_target)
1533 <low_collect_ptrace_register>
1534 <low_supply_ptrace_register>: Declare.
1535 (ppc_collect_ptrace_register): Turn into ...
1536 (ppc_target::low_collect_ptrace_register): ...this.
1537 (ppc_supply_ptrace_register): Turn into ...
1538 (ppc_target::low_supply_ptrace_register): ...this.
1539 (ppc_fill_gregset): Update for the calls to
1540 low_collect_ptrace_register.
1541 (the_low_target): Remove the op fields.
1542 * linux-s390-low.cc (class s390_target)
1543 <low_collect_ptrace_register>
1544 <low_supply_ptrace_register>: Declare.
1545 (s390_collect_ptrace_register): Turn into ...
1546 (s390_target::low_collect_ptrace_register): ...this.
1547 (s390_supply_ptrace_register): Turn into ...
1548 (s390_target::low_supply_ptrace_register): ...this.
1549 (s390_fill_gregset): Update for the calls to
1550 low_collect_ptrace_register.
1551 (the_low_target): Remove the op fields.
1553 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1555 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1556 target ops into methods of linux_process_target.
1558 * linux-low.h (struct linux_target_ops): Remove the ops.
1559 (class linux_process_target) <check_stopped_by_watchpoint>
1560 <low_stopped_by_watchpoint>
1561 <low_stopped_data_address>: Declare.
1562 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1563 (linux_process_target::check_stopped_by_watchpoint): ...this.
1564 (linux_process_target::low_stopped_by_watchpoint): Define.
1565 (linux_process_target::low_stopped_data_address): Define.
1566 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1567 <low_stopped_data_address>: Declare.
1568 (x86_stopped_by_watchpoint): Turn into...
1569 (x86_target::low_stopped_by_watchpoint): ...this.
1570 (x86_stopped_data_address): Turn into...
1571 (x86_target::low_stopped_data_address): ...this.
1572 (the_low_target): Remove the op fields.
1573 * linux-aarch64-low.cc (class aarch64_target)
1574 <low_stopped_by_watchpoint>
1575 <low_stopped_data_address>: Declare.
1576 (aarch64_stopped_by_watchpoint): Turn into...
1577 (aarch64_target::low_stopped_by_watchpoint): ...this.
1578 (aarch64_stopped_data_address): Turn into...
1579 (aarch64_target::low_stopped_data_address): ...this.
1580 (the_low_target): Remove the op fields.
1581 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1582 <low_stopped_data_address>: Declare.
1583 (arm_stopped_by_watchpoint): Turn into...
1584 (arm_target::low_stopped_by_watchpoint): ...this.
1585 (arm_stopped_data_address): Turn into...
1586 (arm_target::low_stopped_data_address): ...this.
1587 (the_low_target): Remove the op fields.
1588 * linux-crisv32-low.cc (class crisv32_target)
1589 <low_stopped_by_watchpoint>
1590 <low_stopped_data_address>: Declare.
1591 (cris_stopped_by_watchpoint): Turn into...
1592 (crisv32_target::low_stopped_by_watchpoint): ...this.
1593 (cris_stopped_data_address): Turn into...
1594 (crisv32_target::low_stopped_data_address): ...this.
1595 (the_low_target): Remove the op fields.
1596 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1597 <low_stopped_data_address>: Declare.
1598 (mips_stopped_by_watchpoint): Turn into...
1599 (mips_target::low_stopped_by_watchpoint): ...this.
1600 (mips_stopped_data_address): Turn into...
1601 (mips_target::low_stopped_data_address): ...this.
1602 (the_low_target): Remove the op fields.
1603 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1604 * linux-m32r-low.cc (the_low_target): Ditto.
1605 * linux-m68k-low.cc (the_low_target): Ditto.
1606 * linux-ppc-low.cc (the_low_target): Ditto.
1607 * linux-s390-low.cc (the_low_target): Ditto.
1608 * linux-sh-low.cc (the_low_target): Ditto.
1609 * linux-sparc-low.cc (the_low_target): Ditto.
1610 * linux-tic6x-low.cc (the_low_target): Ditto.
1611 * linux-tile-low.cc (the_low_target): Ditto.
1612 * linux-xtensa-low.cc (the_low_target): Ditto.
1614 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1616 Turn the 'insert_point' and 'remove_point' linux target ops into
1617 methods of linux_process_target.
1619 * linux-low.h (struct linux_target_ops): Remove the ops.
1620 (class linux_process_target) <low_insert_point>
1621 <low_remove_point>: Declare.
1622 * linux-low.cc (linux_process_target::low_insert_point)
1623 (linux_process_target::low_remove_point): Define.
1624 (linux_process_target::insert_point)
1625 (linux_process_target::remove_point): Update for calls to
1626 low_insert_point and low_remove_point.
1627 * linux-x86-low.cc (class x86_target) <low_insert_point>
1628 <low_remove_point>: Declare.
1629 (x86_insert_point): Turn into...
1630 (x86_target::low_insert_point): ...this.
1631 (x86_remove_point): Turn into...
1632 (x86_target::low_remove_point): ...this.
1633 (the_low_target): Remove the op fields.
1634 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1635 <low_remove_point>: Declare.
1636 (aarch64_insert_point): Turn into...
1637 (aarch64_target::low_insert_point): ...this.
1638 (aarch64_remove_point): Turn into...
1639 (aarch64_target::low_remove_point): ...this.
1640 (the_low_target): Remove the op fields.
1641 * linux-arm-low.cc (class arm_target) <low_insert_point>
1642 <low_remove_point>: Declare.
1643 (arm_insert_point): Turn into...
1644 (arm_target::low_insert_point): ...this.
1645 (arm_remove_point): Turn into...
1646 (arm_target::low_remove_point): ...this.
1647 (the_low_target): Remove the op fields.
1648 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1649 <low_remove_point>: Declare.
1650 (crisv32_insert_point): Turn into...
1651 (crisv32_target::low_insert_point): ...this.
1652 (crisv32_remove_point): Turn into...
1653 (crisv32_target::low_remove_point): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-mips-low.cc (class mips_target) <low_insert_point>
1656 <low_remove_point>: Declare.
1657 (mips_insert_point): Turn into...
1658 (mips_target::low_insert_point): ...this.
1659 (mips_remove_point): Turn into...
1660 (mips_target::low_remove_point): ...this.
1661 (the_low_target): Remove the op fields.
1662 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1663 <low_remove_point>: Declare.
1664 (ppc_insert_point): Turn into...
1665 (ppc_target::low_insert_point): ...this.
1666 (ppc_remove_point): Turn into...
1667 (ppc_target::low_remove_point): ...this.
1668 (the_low_target): Remove the op fields.
1669 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1670 * linux-m32r-low.cc (the_low_target): Ditto.
1671 * linux-m68k-low.cc (the_low_target): Ditto.
1672 * linux-s390-low.cc (the_low_target): Ditto.
1673 * linux-sh-low.cc (the_low_target): Ditto.
1674 * linux-sparc-low.cc (the_low_target): Ditto.
1675 * linux-tic6x-low.cc (the_low_target): Ditto.
1676 * linux-tile-low.cc (the_low_target): Ditto.
1677 * linux-xtensa-low.cc (the_low_target): Ditto.
1679 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1681 Remove the 'supports_z_point_type' linux target op and let the
1682 concrete linux target define it by overriding the op declared in
1683 process_stratum_target.
1685 * linux-low.cc (linux_process_target::supports_z_point_type):
1687 * linux-low.h (struct linux_target_ops): Remove the op.
1688 (class linux_process_target) <supports_z_point_type>: Remove.
1689 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1691 (x86_supports_z_point_type): Turn into...
1692 (x86_target::supports_z_point_type): ...this.
1693 (the_low_target): Remove the op field.
1694 * linux-aarch64-low.cc (class aarch64_target)
1695 <supports_z_point_type>: Declare.
1696 (aarch64_supports_z_point_type): Turn into...
1697 (aarch64_target::supports_z_point_type): ...this.
1698 (the_low_target): Remove the op field.
1699 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1701 (arm_supports_z_point_type): Turn into...
1702 (arm_target::supports_z_point_type): ...this.
1703 (the_low_target): Remove the op field.
1704 * linux-crisv32-low.cc (class crisv32_target)
1705 <supports_z_point_type>: Declare.
1706 (cris_supports_z_point_type): Turn into...
1707 (crisv32_target::supports_z_point_type): ...this.
1708 (the_low_target): Remove the op field.
1709 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1711 (mips_supports_z_point_type): Turn into...
1712 (mips_target::supports_z_point_type): ...this.
1713 (the_low_target): Remove the op field.
1714 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1716 (ppc_supports_z_point_type): Turn into...
1717 (ppc_target::supports_z_point_type): ...this.
1718 (the_low_target): Remove the op field.
1719 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1721 (s390_supports_z_point_type): Turn into...
1722 (s390_target::supports_z_point_type): ...this.
1723 (the_low_target): Remove the op field.
1724 * linux-bfin-low.cc (the_low_target): Remove the op field.
1725 * linux-m32r-low.cc (the_low_target): Ditto.
1726 * linux-m68k-low.cc (the_low_target): Ditto.
1727 * linux-sh-low.cc (the_low_target): Ditto.
1728 * linux-sparc-low.cc (the_low_target): Ditto.
1729 * linux-tic6x-low.cc (the_low_target): Ditto.
1730 * linux-tile-low.cc (the_low_target): Ditto.
1731 * linux-xtensa-low.cc (the_low_target): Ditto.
1733 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1735 Turn the 'breakpoint_at' linux target op into a method of
1736 linux_process_target.
1738 * linux-low.h (struct linux_target_ops): Remove the op.
1739 (class linux_process_target) <low_breakpoint_at>: Declare.
1741 Update the callers below:
1743 * linux-low.cc (linux_process_target::save_stop_reason)
1744 (linux_process_target::thread_still_has_status_pending)
1745 (linux_process_target::wait_1)
1747 * linux-x86-low.cc (class x86_target)
1748 <low_breakpoint_at>: Declare.
1749 (x86_breakpoint_at): Turn into...
1750 (x86_target::low_breakpoint_at): ...this.
1751 (the_low_target): Remove the op field.
1752 * linux-aarch64-low.cc (class aarch64_target)
1753 <low_breakpoint_at>: Declare.
1754 (aarch64_breakpoint_at): Turn into...
1755 (aarch64_target::low_breakpoint_at): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-arm-low.cc (class arm_target)
1758 <low_breakpoint_at>: Declare.
1759 (arm_target::low_breakpoint_at): Define.
1760 (the_low_target): Remove the op field.
1761 * linux-bfin-low.cc (class bfin_target)
1762 <low_breakpoint_at>: Declare.
1763 (bfin_breakpoint_at): Turn into...
1764 (bfin_target::low_breakpoint_at): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-cris-low.cc (class cris_target)
1767 <low_breakpoint_at>: Declare.
1768 (cris_breakpoint_at): Turn into...
1769 (cris_target::low_breakpoint_at): ...this.
1770 (the_low_target): Remove the op field.
1771 * linux-crisv32-low.cc (class crisv32_target)
1772 <low_breakpoint_at>: Declare.
1773 (crisv32_breakpoint_at): Turn into...
1774 (crisv32_target::low_breakpoint_at): ...this.
1775 (the_low_target): Remove the op field.
1776 * linux-ia64-low.cc (class ia64_target)
1777 <low_breakpoint_at>: Declare.
1778 (ia64_target::low_breakpoint_at): Define.
1779 * linux-m32r-low.cc (class m32r_target)
1780 <low_breakpoint_at>: Declare.
1781 (m32r_breakpoint_at): Turn into...
1782 (m32r_target::low_breakpoint_at): ...this.
1783 (the_low_target): Remove the op field.
1784 * linux-m68k-low.cc (class m68k_target)
1785 <low_breakpoint_at>: Declare.
1786 (m68k_breakpoint_at): Turn into...
1787 (m68k_target::low_breakpoint_at): ...this.
1788 (the_low_target): Remove the op field.
1789 * linux-mips-low.cc (class mips_target)
1790 <low_breakpoint_at>: Declare.
1791 (mips_breakpoint_at): Turn into...
1792 (mips_target::low_breakpoint_at): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-nios2-low.cc (class nios2_target)
1795 <low_breakpoint_at>: Declare.
1796 (nios2_breakpoint_at): Turn into...
1797 (nios2_target::low_breakpoint_at): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-ppc-low.cc (class ppc_target)
1800 <low_breakpoint_at>: Declare.
1801 (ppc_breakpoint_at): Turn into...
1802 (ppc_target::low_breakpoint_at): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-riscv-low.cc (class riscv_target)
1805 <low_breakpoint_at>: Declare.
1806 (riscv_breakpoint_at): Turn into...
1807 (riscv_target::low_breakpoint_at): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-s390-low.cc (class s390_target)
1810 <low_breakpoint_at>: Declare.
1811 (s390_breakpoint_at): Turn into...
1812 (s390_target::low_breakpoint_at): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-sh-low.cc (class sh_target)
1815 <low_breakpoint_at>: Declare.
1816 (sh_breakpoint_at): Turn into...
1817 (sh_target::low_breakpoint_at): ...this.
1818 (the_low_target): Remove the op field.
1819 * linux-sparc-low.cc (class sparc_target)
1820 <low_breakpoint_at>: Declare.
1821 (sparc_breakpoint_at): Turn into...
1822 (sparc_target::low_breakpoint_at): ...this.
1823 (the_low_target): Remove the op field.
1824 * linux-tic6x-low.cc (class tic6x_target)
1825 <low_breakpoint_at>: Declare.
1826 (tic6x_breakpoint_at): Turn into...
1827 (tic6x_target::low_breakpoint_at): ...this.
1828 (the_low_target): Remove the op field.
1829 * linux-tile-low.cc (class tile_target)
1830 <low_breakpoint_at>: Declare.
1831 (tile_breakpoint_at): Turn into...
1832 (tile_target::low_breakpoint_at): ...this.
1833 (the_low_target): Remove the op field.
1834 * linux-xtensa-low.cc (class xtensa_target)
1835 <low_breakpoint_at>: Declare.
1836 (xtensa_breakpoint_at): Turn into...
1837 (xtensa_target::low_breakpoint_at): ...this.
1838 (the_low_target): Remove the op field.
1840 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1842 Turn the 'decr_pc_after_break' linux_target_ops field into
1843 a method of linux_process_target.
1845 * linux-low.h (struct linux_target_ops)
1846 <decr_pc_after_break>: Remove.
1847 (class linux_process_target) <low_decr_pc_after_break>: New method
1849 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1850 New method implementation.
1852 Update the users below.
1854 (linux_process_target::save_stop_reason)
1855 (linux_process_target::wait_1)
1856 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1858 (x86_target::low_decr_pc_after_break): New method implementation.
1859 (the_low_target): Remove the field.
1860 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1862 (bfin_target::low_decr_pc_after_break): New method implementation.
1863 (the_low_target): Remove the field.
1864 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1866 (m68k_target::low_decr_pc_after_break): New method implementation.
1867 (the_low_target): Remove the field.
1868 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1870 (s390_target::low_decr_pc_after_break): New method implementation.
1871 (the_low_target): Remove the field.
1872 * linux-aarch64-low.cc (the_low_target): Remove the field.
1873 * linux-arm-low.cc (the_low_target): Remove the field.
1874 * linux-cris-low.cc (the_low_target): Remove the field.
1875 * linux-crisv32-low.cc (the_low_target): Remove the field.
1876 * linux-m32r-low.cc (the_low_target): Remove the field.
1877 * linux-mips-low.cc (the_low_target): Remove the field.
1878 * linux-nios2-low.cc (the_low_target): Remove the field.
1879 * linux-ppc-low.cc (the_low_target): Remove the field.
1880 * linux-riscv-low.cc (the_low_target): Remove the field.
1881 * linux-sh-low.cc (the_low_target): Remove the field.
1882 * linux-sparc-low.cc (the_low_target): Remove the field.
1883 * linux-tic6x-low.cc (the_low_target): Remove the field.
1884 * linux-tile-low.cc (the_low_target): Remove the field.
1885 * linux-xtensa-low.cc (the_low_target): Remove the field.
1887 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1889 Remove the 'supports_software_single_step' linux target op and let
1890 the concrete linux target define it by overriding the op in
1891 process_stratum_target.
1892 Turn the 'get_next_pcs' linux target op into a method of
1893 linux_process_target.
1895 * linux-low.h (struct linux_target_ops): Remove the ops.
1896 (class linux_process_target) <supports_software_single_step>:
1898 <low_get_next_pcs>: Declare.
1899 * linux-low.cc (can_software_single_step): Remove.
1900 (linux_process_target::low_get_next_pcs): Define.
1901 (linux_process_target::supports_software_single_step): Remove.
1903 Update the callers below.
1905 (linux_process_target::handle_extended_wait)
1906 (linux_process_target::wait_1)
1907 (linux_process_target::install_software_single_step_breakpoints)
1908 (linux_process_target::single_step)
1909 (linux_process_target::thread_needs_step_over)
1910 (linux_process_target::proceed_one_lwp)
1911 (linux_process_target::supports_range_stepping)
1913 * linux-x86-low.cc (the_low_target): Remove the op field.
1914 * linux-aarch64-low.cc (the_low_target): Ditto.
1915 * linux-bfin-low.cc (the_low_target): Ditto.
1916 * linux-cris-low.cc (the_low_target): Ditto.
1917 * linux-crisv32-low.cc (the_low_target): Ditto.
1918 * linux-m32r-low.cc (the_low_target): Ditto.
1919 * linux-m68k-low.cc (the_low_target): Ditto.
1920 * linux-mips-low.cc (the_low_target): Ditto.
1921 * linux-nios2-low.cc (the_low_target): Ditto.
1922 * linux-ppc-low.cc (the_low_target): Ditto.
1923 * linux-riscv-low.cc (the_low_target): Ditto.
1924 * linux-s390-low.cc (the_low_target): Ditto.
1925 * linux-sh-low.cc (the_low_target): Ditto.
1926 * linux-sparc-low.cc (the_low_target): Ditto.
1927 * linux-tic6x-low.cc (the_low_target): Ditto.
1928 * linux-tile-low.cc (the_low_target): Ditto.
1929 * linux-xtensa-low.cc (the_low_target): Ditto.
1930 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1931 <supports_software_single_step>: Declare.
1932 (arm_target::supports_software_single_step): Define.
1933 (arm_gdbserver_get_next_pcs): Turn into...
1934 (arm_target::low_get_next_pcs): ...this.
1935 (the_low_target): Remove the op field.
1937 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1939 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1940 the concrete linux target define it by overriding the op
1941 in process_stratum_target.
1943 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1945 * linux-low.h (struct linux_target_ops): Remove the op.
1946 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1947 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1949 (x86_sw_breakpoint_from_kind): Turn into...
1950 (x86_target::sw_breakpoint_from_kind): ...this.
1951 (the_low_target): Remove the op field.
1952 * linux-aarch64-low.cc (class aarch64_target)
1953 <sw_breakpoint_from_kind>: Declare.
1954 (aarch64_sw_breakpoint_from_kind): Turn into...
1955 (aarch64_target::sw_breakpoint_from_kind): ...this.
1956 (the_low_target): Remove the op field.
1957 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1959 (arm_target::sw_breakpoint_from_kind): Define.
1960 (the_low_target): Remove the op field.
1961 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1963 (bfin_sw_breakpoint_from_kind): Turn into...
1964 (bfin_target::sw_breakpoint_from_kind): ...this.
1965 (the_low_target): Remove the op field.
1966 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1968 (cris_sw_breakpoint_from_kind): Turn into...
1969 (cris_target::sw_breakpoint_from_kind): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-crisv32-low.cc (class crisv32_target)
1972 <sw_breakpoint_from_kind>: Declare.
1973 (cris_sw_breakpoint_from_kind): Turn into...
1974 (crisv32_target::sw_breakpoint_from_kind): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1978 (ia64_target::sw_breakpoint_from_kind): Define.
1979 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1981 (m32r_sw_breakpoint_from_kind): Turn into...
1982 (m32r_target::sw_breakpoint_from_kind): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1986 (m68k_sw_breakpoint_from_kind): Turn into...
1987 (m68k_target::sw_breakpoint_from_kind): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1991 (mips_sw_breakpoint_from_kind): Turn into...
1992 (mips_target::sw_breakpoint_from_kind): ...this.
1993 (the_low_target): Remove the op field.
1994 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1996 (nios2_sw_breakpoint_from_kind): Turn into...
1997 (nios2_target::sw_breakpoint_from_kind): ...this.
1998 (the_low_target): Remove the op field.
1999 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2001 (ppc_sw_breakpoint_from_kind): Turn into...
2002 (ppc_target::sw_breakpoint_from_kind): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2006 (riscv_sw_breakpoint_from_kind): Turn into...
2007 (riscv_target::sw_breakpoint_from_kind): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2011 (s390_sw_breakpoint_from_kind): Turn into...
2012 (s390_target::sw_breakpoint_from_kind): ...this.
2013 (the_low_target): Remove the op field.
2014 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2016 (sh_sw_breakpoint_from_kind): Turn into...
2017 (sh_target::sw_breakpoint_from_kind): ...this.
2018 (the_low_target): Remove the op field.
2019 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2021 (sparc_sw_breakpoint_from_kind): Turn into...
2022 (sparc_target::sw_breakpoint_from_kind): ...this.
2023 (the_low_target): Remove the op field.
2024 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2026 (tic6x_sw_breakpoint_from_kind): Turn into...
2027 (tic6x_target::sw_breakpoint_from_kind): ...this.
2028 (the_low_target): Remove the op field.
2029 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2031 (tile_sw_breakpoint_from_kind): Turn into...
2032 (tile_target::sw_breakpoint_from_kind): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-xtensa-low.cc (class xtensa_target)
2035 <sw_breakpoint_from_kind>: Declare.
2036 (xtensa_sw_breakpoint_from_kind): Turn into...
2037 (xtensa_target::sw_breakpoint_from_kind): ...this.
2038 (the_low_target): Remove the op field.
2040 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2042 Remove the 'breakpoint_kind_from_pc' and
2043 'breakpoint_kind_from_current_state' linux target ops, and let the
2044 concrete linux target define them by overriding the ops of
2045 process_stratum_target.
2047 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2049 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2050 * linux-low.h (struct linux_target_ops): Remove ops.
2051 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2052 <breakpoint_kind_from_current_state>: Remove.
2053 * linux-x86-low.cc (the_low_target): Remove the op fields.
2054 * linux-bfin-low.cc (the_low_target): Ditto.
2055 * linux-cris-low.cc (the_low_target): Ditto.
2056 * linux-crisv32-low.cc (the_low_target): Ditto.
2057 * linux-m32r-low.cc (the_low_target): Ditto.
2058 * linux-m68k-low.cc (the_low_target): Ditto.
2059 * linux-mips-low.cc (the_low_target): Ditto.
2060 * linux-nios2-low.cc (the_low_target): Ditto.
2061 * linux-ppc-low.cc (the_low_target): Ditto.
2062 * linux-s390-low.cc (the_low_target): Ditto.
2063 * linux-sh-low.cc (the_low_target): Ditto.
2064 * linux-sparc-low.cc (the_low_target): Ditto.
2065 * linux-tic6x-low.cc (the_low_target): Ditto.
2066 * linux-tile-low.cc (the_low_target): Ditto.
2067 * linux-xtensa-low.cc (the_low_target): Ditto.
2068 * linux-aarch64-low.cc (class aarch64_target)
2069 <breakpoint_kind_from_pc>
2070 <breakpoint_kind_from_current_state>: Declare.
2071 (aarch64_breakpoint_kind_from_pc): Turn into...
2072 (aarch64_target::breakpoint_kind_from_pc): ...this.
2073 (aarch64_breakpoint_kind_from_current_state): Turn into...
2074 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2075 (the_low_target): Remove the op fields.
2076 * linux-arm-low.cc (class arm_target):
2077 <breakpoint_kind_from_pc>
2078 <breakpoint_kind_from_current_state>: Declare.
2079 (arm_target::breakpoint_kind_from_pc): Define.
2080 (arm_target::breakpoint_kind_from_current_state): Define.
2081 (the_low_target): Remove the op fields.
2082 * linux-riscv-low.cc (class riscv_target):
2083 <breakpoint_kind_from_pc>: Declare.
2084 (riscv_breakpoint_kind_from_pc): Turn into...
2085 (riscv_target::breakpoint_kind_from_pc): ...this.
2086 (the_low_target): Remove the op fields.
2088 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2090 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2091 of linux_process_target.
2093 * linux-low.h (struct linux_target_ops): Remove the ops.
2094 (class linux_process_target) <low_supports_breakpoints>
2096 <low_set_pc>: Declare.
2097 * linux-low.cc (supports_breakpoints): Turn into...
2098 (linux_process_target::low_supports_breakpoints): ...this.
2099 (linux_process_target::low_get_pc): Define.
2100 (linux_process_target::low_set_pc): Define.
2102 Update the callers below.
2104 (linux_process_target::get_pc)
2105 (linux_process_target::save_stop_reason)
2106 (linux_process_target::maybe_move_out_of_jump_pad)
2107 (linux_process_target::wait_1)
2108 (linux_process_target::resume_one_lwp_throw)
2109 (linux_process_target::resume)
2110 (linux_process_target::proceed_all_lwps)
2111 (linux_process_target::read_pc)
2112 (linux_process_target::write_pc)
2114 * linux-x86-low.cc (class linux_process_target)
2115 <low_supports_breakpoints>
2117 <low_set_pc>: Declare.
2118 (x86_target::low_supports_breakpoints): Define.
2119 (x86_get_pc): Turn into...
2120 (x86_target::low_get_pc): ...this.
2121 (x86_set_pc): Turn into...
2122 (x86_target::low_set_pc): ...this.
2123 (the_low_target): Remove the op fields.
2124 * linux-arm-low.cc (class arm_target)
2125 <low_supports_breakpoints>
2127 <low_set_pc>: Declare.
2128 (arm_target::low_supports_breakpoints)
2129 (arm_target::low_get_pc)
2130 (arm_target::low_set_pc): Define.
2131 (the_low_target): Remove the op fields.
2132 * linux-bfin-low.cc (class bfin_target)
2133 <low_supports_breakpoints>
2135 <low_set_pc>: Declare.
2136 (bfin_target::low_supports_breakpoints)
2137 (bfin_target::low_get_pc)
2138 (bfin_target::low_set_pc): Define.
2139 (the_low_target): Remove the op fields.
2140 * linux-cris-low.cc (class cris_target)
2141 <low_supports_breakpoints>
2143 <low_set_pc>: Declare.
2144 (cris_target::low_supports_breakpoints)
2145 (cris_target::low_get_pc)
2146 (cris_target::low_set_pc): Define.
2147 (the_low_target): Remove the op fields.
2148 * linux-crisv32-low.cc (class crisv32_target)
2149 <low_supports_breakpoints>
2151 <low_set_pc>: Declare.
2152 (crisv32_target::low_supports_breakpoints)
2153 (crisv32_target::low_get_pc)
2154 (crisv32_target::low_set_pc): Define.
2155 (the_low_target): Remove the op fields.
2156 * linux-m32r-low.cc (class m32r_target)
2157 <low_supports_breakpoints>
2159 <low_set_pc>: Declare.
2160 (m32r_target::low_supports_breakpoints)
2161 (m32r_target::low_get_pc)
2162 (m32r_target::low_set_pc): Define.
2163 (the_low_target): Remove the op fields.
2164 * linux-m68k-low.cc (class m68k_target)
2165 <low_supports_breakpoints>
2167 <low_set_pc>: Declare.
2168 (m68k_target::low_supports_breakpoints)
2169 (m68k_target::low_get_pc)
2170 (m68k_target::low_set_pc): Define.
2171 (the_low_target): Remove the op fields.
2172 * linux-nios2-low.cc (class nios2_target)
2173 <low_supports_breakpoints>
2175 <low_set_pc>: Declare.
2176 (nios2_target::low_supports_breakpoints)
2177 (nios2_target::low_get_pc)
2178 (nios2_target::low_set_pc): Define.
2179 (the_low_target): Remove the op fields.
2180 * linux-sh-low.cc (class sh_target)
2181 <low_supports_breakpoints>
2183 <low_set_pc>: Declare.
2184 (sh_target::low_supports_breakpoints)
2185 (sh_target::low_get_pc)
2186 (sh_target::low_set_pc): Define.
2187 (the_low_target): Remove the op fields.
2188 * linux-xtensa-low.cc (class xtensa_target)
2189 <low_supports_breakpoints>
2191 <low_set_pc>: Declare.
2192 (xtensa_target::low_supports_breakpoints)
2193 (xtensa_target::low_get_pc)
2194 (xtensa_target::low_set_pc): Define.
2195 (the_low_target): Remove the op fields.
2196 * linux-sparc-low.cc (class sparc_target)
2197 <low_supports_breakpoints>
2198 <low_get_pc>: Declare.
2199 (sparc_target::low_supports_breakpoints)
2200 (sparc_target::low_get_pc): Define.
2201 (the_low_target): Remove the op fields.
2202 * linux-tile-low.cc (class tile_target)
2203 <low_supports_breakpoints>
2205 <low_set_pc>: Declare.
2206 (tile_target::low_supports_breakpoints)
2207 (tile_target::low_get_pc)
2208 (tile_target::low_set_pc): Define.
2209 (the_low_target): Remove the op fields.
2210 * linux-aarch64-low.cc (class aarch64_target)
2211 <low_supports_breakpoints>
2213 <low_set_pc>: Declare.
2214 (aarch64_target::low_supports_breakpoints): Define.
2215 (aarch64_get_pc): Turn into...
2216 (aarch64_target::low_get_pc): ...this.
2217 (aarch64_set_pc): Turn into...
2218 (aarch64_target::low_set_pc): ...this.
2219 (the_low_target): Remove the op fields.
2220 * linux-mips-low.cc (class mips_target)
2221 <low_supports_breakpoints>
2223 <low_set_pc>: Declare.
2224 (mips_target::low_supports_breakpoints): Define.
2225 (mips_get_pc): Turn into...
2226 (mips_target::low_get_pc): ...this.
2227 (mips_set_pc): Turn into...
2228 (mips_target::low_set_pc): ...this.
2229 (the_low_target): Remove the op fields.
2230 * linux-ppc-low.cc (class ppc_target)
2231 <low_supports_breakpoints>
2233 <low_set_pc>: Declare.
2234 (ppc_target::low_supports_breakpoints): Define.
2235 (ppc_get_pc): Turn into...
2236 (ppc_target::low_get_pc): ...this.
2237 (ppc_set_pc): Turn into...
2238 (ppc_target::low_set_pc): ...this.
2239 (the_low_target): Remove the op fields.
2240 * linux-riscv-low.cc (class riscv_target)
2241 <low_supports_breakpoints>
2243 <low_set_pc>: Declare.
2244 (riscv_target::low_supports_breakpoints): Define.
2245 (riscv_get_pc): Turn into...
2246 (riscv_target::low_get_pc): ...this.
2247 (riscv_set_pc): Turn into...
2248 (riscv_target::low_set_pc): ...this.
2249 (the_low_target): Remove the op fields.
2250 * linux-s390-low.cc (class s390_target)
2251 <low_supports_breakpoints>
2253 <low_set_pc>: Declare.
2254 (s390_target::low_supports_breakpoints): Define.
2255 (s390_get_pc): Turn into...
2256 (s390_target::low_get_pc): ...this.
2257 (s390_set_pc): Turn into...
2258 (s390_target::low_set_pc): ...this.
2259 (the_low_target): Remove the op fields.
2260 * linux-tic6x-low.cc (class tic6x_target)
2261 <low_supports_breakpoints>
2263 <low_set_pc>: Declare.
2264 (tic6x_target::low_supports_breakpoints): Define.
2265 (tic6x_get_pc): Turn into...
2266 (tic6x_target::low_get_pc): ...this.
2267 (tic6x_set_pc): Turn into...
2268 (tic6x_target::low_set_pc): ...this.
2269 (the_low_target): Remove the op fields.
2271 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2273 Turn some more static methods in linux-low into private methods
2274 of linux_process_target.
2276 * linux-low.cc (get_pc): Turn into...
2277 (linux_process_target::get_pc): ...this.
2278 (save_stop_reason): Turn into...
2279 (linux_process_target::save_stop_reason): ...this.
2280 (thread_still_has_status_pending_p): Turn into...
2281 (linux_process_target::thread_still_has_status_pending): ...this.
2282 (status_pending_p_callback): Turn into...
2283 (linux_process_target::status_pending_p_callback): ...this.
2284 (resume_stopped_resumed_lwps): Turn into...
2285 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2286 (install_software_single_step_breakpoints): Turn into...
2287 (linux_process_target::install_software_single_step_breakpoints):
2289 (single_step): Turn into...
2290 (linux_process_target::single_step): ...this.
2291 (linux_resume_one_lwp_throw): Turn into...
2292 (linux_process_target::resume_one_lwp_throw): ...this.
2293 (linux_resume_one_lwp): Turn into...
2294 (linux_process_target::resume_one_lwp): ...this.
2295 (resume_status_pending_p): Turn into...
2296 (linux_process_target::resume_status_pending): ...this.
2297 (need_step_over_p): Turn into...
2298 (linux_process_target::thread_needs_step_over): ...this.
2299 (linux_resume_one_thread): Turn into...
2300 (linux_process_target::resume_one_thread): ...this.
2301 (proceed_one_lwp): Turn into...
2302 (linux_process_target::proceed_one_lwp): ...this.
2303 (unsuspend_and_proceed_one_lwp): Turn into...
2304 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2306 Update the calls/references to the above functions below.
2308 (linux_process_target::handle_extended_wait)
2309 (linux_process_target::filter_event)
2310 (linux_process_target::wait_for_event_filtered)
2311 (linux_process_target::wait_1)
2312 (linux_process_target::move_out_of_jump_pad)
2313 (linux_process_target::start_step_over)
2314 (linux_process_target::resume)
2315 (linux_process_target::proceed_all_lwps)
2316 (regsets_store_inferior_registers)
2317 (linux_process_target::store_register)
2319 * linux-low.h (class linux_process_target)
2322 <thread_still_has_status_pending>
2323 <status_pending_p_callback>
2324 <resume_stopped_resumed_lwps>
2325 <install_software_single_step_breakpoints>
2327 <resume_one_lwp_throw>
2329 <resume_status_pending>
2330 <thread_needs_step_over>
2333 <unsuspend_and_proceed_one_lwp>: Declare.
2335 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2337 Turn the 'fetch_register' linux target op into a method of
2338 linux_process_target.
2340 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2341 (class linux_process_target) <low_fetch_register>: Declare.
2342 * linux-x86-low.cc (the_low_target)
2343 * linux-aarch64-low.cc (the_low_target)
2344 * linux-arm-low.cc (the_low_target)
2345 * linux-bfin-low.cc (the_low_target)
2346 * linux-cris-low.cc (the_low_target)
2347 * linux-crisv32-low.cc (the_low_target)
2348 * linux-m32r-low.cc (the_low_target)
2349 * linux-m68k-low.cc (the_low_target)
2350 * linux-nios2-low.cc (the_low_target)
2351 * linux-ppc-low.cc (the_low_target)
2352 * linux-s390-low.cc (the_low_target)
2353 * linux-sh-low.cc (the_low_target)
2354 * linux-sparc-low.cc (the_low_target)
2355 * linux-tic6x-low.cc (the_low_target)
2356 * linux-tile-low.cc (the_low_target)
2357 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2358 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2360 (ia64_fetch_register): Turn into...
2361 (ia64_target::low_fetch_register): ...this.
2362 (the_low_target): Remove the op field.
2363 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2365 (mips_fetch_register): Turn into...
2366 (mips_target::low_fetch_register): ...this.
2367 (the_low_target): Remove the op field.
2368 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2370 (riscv_fetch_register): Turn into...
2371 (riscv_target::low_fetch_register): ...this.
2372 (the_low_target): Remove the op field.
2374 Update the callers below.
2376 * linux-low.cc (linux_process_target::fetch_registers)
2377 (linux_process_target::low_fetch_register)
2379 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2381 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2382 linux target ops into methods of linux_process_target.
2384 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2385 (class linux_process_target) <fetch_register>
2387 <usr_fetch_inferior_registers>
2388 <usr_store_inferior_registers>
2389 <low_cannot_fetch_register>
2390 <low_cannot_fetch_register> Declare.
2391 * linux-low.cc (fetch_register): Turn into...
2392 (linux_process_target::fetch_register): ...this.
2393 (store_register): Turn into ...
2394 (linux_process_target::store_register): ...this.
2395 (usr_fetch_inferior_registers): Turn into...
2396 (linux_process_target::usr_fetch_inferior_registers): ...this.
2397 (usr_store_inferior_registers): Turn into...
2398 (linux_process_target::usr_store_inferior_registers): ...this.
2399 * linux-x86-low.cc (class x86_target)
2400 <low_cannot_fetch_register>
2401 <low_cannot_store_register>: Declare.
2402 (x86_cannot_store_register): Turn into...
2403 (x86_target::low_cannot_store_register): ...this.
2404 (x86_cannot_fetch_register): Turn into...
2405 (x86_target::low_cannot_fetch_register): ...this.
2406 (the_low_target): Remove the target op fields.
2407 * linux-aarch64-low.cc (class aarch64_target)
2408 <low_cannot_fetch_register>
2409 <low_cannot_store_register>: Declare.
2410 (aarch64_target::low_cannot_fetch_register)
2411 (aarch64_target::low_cannot_store_register): Define.
2412 (the_low_target): Remove the op fields.
2413 * linux-arm-low.cc (class arm_target)
2414 <low_cannot_fetch_register>
2415 <low_cannot_store_register>: Declare.
2416 (arm_cannot_fetch_register): Turn into...
2417 (arm_target::low_cannot_fetch_register): ...this.
2418 (arm_cannot_store_register): Turn into...
2419 (arm_target::low_cannot_store_register): ...this.
2420 (the_low_target): Remove the op fields.
2421 * linux-bfin-low.cc (class bfin_target)
2422 <low_cannot_fetch_register>
2423 <low_cannot_store_register>: Declare.
2424 (bfin_cannot_fetch_register): Turn into...
2425 (bfin_target::low_cannot_fetch_register): ...this.
2426 (bfin_cannot_store_register): Turn into...
2427 (bfin_target::low_cannot_store_register): ...this.
2428 (the_low_target): Remove the op fields.
2429 * linux-cris-low.cc (class cris_target)
2430 <low_cannot_fetch_register>
2431 <low_cannot_store_register>: Declare.
2432 (cris_cannot_fetch_register): Turn into...
2433 (cris_target::low_cannot_fetch_register): ...this.
2434 (cris_cannot_store_register): Turn into...
2435 (cris_target::low_cannot_store_register): ...this.
2436 (the_low_target): Remove the op fields.
2437 * linux-crisv32-low.cc (class crisv32_target)
2438 <low_cannot_fetch_register>
2439 <low_cannot_store_register>: Declare.
2440 (crisv32_target::low_cannot_fetch_register)
2441 (crisv32_target::low_cannot_store_register): Define.
2442 (the_low_target): Remove the op fields.
2443 * linux-ia64-low.cc (class ia64_target)
2444 <low_cannot_fetch_register>
2445 <low_cannot_store_register>: Declare.
2446 (ia64_cannot_fetch_register): Turn into...
2447 (ia64_target::low_cannot_fetch_register): ...this.
2448 (ia64_cannot_store_register): Turn into...
2449 (ia64_target::low_cannot_store_register): ...this.
2450 (the_low_target): Remove the op fields.
2451 * linux-m32r-low.cc (class m32r_target)
2452 <low_cannot_fetch_register>
2453 <low_cannot_store_register>: Declare.
2454 (m32r_cannot_fetch_register): Turn into...
2455 (m32r_target::low_cannot_fetch_register): ...this.
2456 (m32r_cannot_store_register): Turn into...
2457 (m32r_target::low_cannot_store_register): ...this.
2458 (the_low_target): Remove the op fields.
2459 * linux-m68k-low.cc (class m68k_target)
2460 <low_cannot_fetch_register>
2461 <low_cannot_store_register>: Declare.
2462 (m68k_cannot_fetch_register): Turn into...
2463 (m68k_target::low_cannot_fetch_register): ...this.
2464 (m68k_cannot_store_register): Turn into...
2465 (m68k_target::low_cannot_store_register): ...this.
2466 (the_low_target): Remove the op fields.
2467 * linux-mips-low.cc (class mips_target)
2468 <low_cannot_fetch_register>
2469 <low_cannot_store_register>: Declare.
2470 (mips_cannot_fetch_register): Turn into...
2471 (mips_target::low_cannot_fetch_register): ...this.
2472 (mips_cannot_store_register): Turn into...
2473 (mips_target::low_cannot_store_register): ...this.
2474 (get_usrregs_info): Inline at the call sites in
2475 low_cannot_fetch_register and low_cannot_store_register,
2477 (the_low_target): Remove the op fields.
2478 * linux-nios2-low.cc (class nios2_target)
2479 <low_cannot_fetch_register>
2480 <low_cannot_store_register>: Declare.
2481 (nios2_cannot_fetch_register): Turn into...
2482 (nios2_target::low_cannot_fetch_register): ...this.
2483 (nios2_cannot_store_register): Turn into...
2484 (nios2_target::low_cannot_store_register): ...this.
2485 (the_low_target): Remove the op fields.
2486 * linux-ppc-low.cc (class ppc_target)
2487 <low_cannot_fetch_register>
2488 <low_cannot_store_register>: Declare.
2489 (ppc_cannot_fetch_register): Turn into...
2490 (ppc_target::low_cannot_fetch_register): ...this.
2491 (ppc_cannot_store_register): Turn into...
2492 (ppc_target::low_cannot_store_register): ...this.
2493 (the_low_target): Remove the op fields.
2494 * linux-riscv-low.cc (class riscv_target)
2495 <low_cannot_fetch_register>
2496 <low_cannot_store_register>: Declare.
2497 (riscv_target::low_cannot_fetch_register)
2498 (riscv_target::low_cannot_store_register): Define.
2499 (the_low_target): Remove the op fields.
2500 * linux-s390-low.cc (class s390_target)
2501 <low_cannot_fetch_register>
2502 <low_cannot_store_register>: Declare.
2503 (s390_cannot_fetch_register): Turn into...
2504 (s390_target::low_cannot_fetch_register): ...this.
2505 (s390_cannot_store_register): Turn into...
2506 (s390_target::low_cannot_store_register): ...this.
2507 (the_low_target): Remove the op fields.
2508 * linux-sh-low.cc (class sh_target)
2509 <low_cannot_fetch_register>
2510 <low_cannot_store_register>: Declare.
2511 (sh_cannot_fetch_register): Turn into...
2512 (sh_target::low_cannot_fetch_register): ...this.
2513 (sh_cannot_store_register): Turn into...
2514 (sh_target::low_cannot_store_register): ...this.
2515 (the_low_target): Remove the op fields.
2516 * linux-sparc-low.cc (class sparc_target)
2517 <low_cannot_fetch_register>
2518 <low_cannot_store_register>: Declare.
2519 (sparc_cannot_fetch_register): Turn into...
2520 (sparc_target::low_cannot_fetch_register): ...this.
2521 (sparc_cannot_store_register): Turn into...
2522 (sparc_target::low_cannot_store_register): ...this.
2523 (the_low_target): Remove the op fields.
2524 * linux-tic6x-low.cc (class tic6x_target)
2525 <low_cannot_fetch_register>
2526 <low_cannot_store_register>: Declare.
2527 (tic6x_cannot_fetch_register): Turn into...
2528 (tic6x_target::low_cannot_fetch_register): ...this.
2529 (tic6x_cannot_store_register): Turn into...
2530 (tic6x_target::low_cannot_store_register): ...this.
2531 (the_low_target): Remove the op fields.
2532 * linux-tile-low.cc (class tile_target)
2533 <low_cannot_fetch_register>
2534 <low_cannot_store_register>: Declare.
2535 (tile_cannot_fetch_register): Turn into...
2536 (tile_target::low_cannot_fetch_register): ...this.
2537 (tile_cannot_store_register): Turn into...
2538 (tile_target::low_cannot_store_register): ...this.
2539 (the_low_target): Remove the op fields.
2540 * linux-xtensa-low.cc (class xtensa_target)
2541 <low_cannot_fetch_register>
2542 <low_cannot_store_register>: Declare.
2543 (xtensa_target::low_cannot_fetch_register)
2544 (xtensa_target::low_cannot_store_register): Define.
2545 (the_low_target): Remove the op fields.
2547 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2549 Turn the 'regs_info' linux target op into a method of
2550 linux_process_target.
2552 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2553 (class linux_process_target) <get_regs_info>: Define.
2555 Update the callers below.
2557 * linux-low.cc (linux_process_target::fetch_registers)
2558 (linux_process_target::store_registers)
2559 * proc-service.cc (gregset_info)
2561 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2562 (x86_linux_regs_info): Turn into ...
2563 (x86_target::get_regs_info): ...this.
2564 (the_low_target): Remove the op field.
2565 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2567 (aarch64_regs_info): Turn into ...
2568 (aarch64_target::get_regs_info): ...this.
2569 (the_low_target): Remove the op field.
2570 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2571 (arm_regs_info): Turn into ...
2572 (arm_target::get_regs_info): ...this.
2573 (the_low_target): Remove the op field.
2574 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2575 (bfin_regs_info): Turn into ...
2576 (bfin_target::get_regs_info): ...this.
2577 (the_low_target): Remove the op field.
2578 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2579 (cris_regs_info): Turn into ...
2580 (cris_target::get_regs_info): ...this.
2581 (the_low_target): Remove the op field.
2582 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2584 (crisv32_regs_info): Turn into ...
2585 (crisv32_target::get_regs_info): ...this.
2586 (the_low_target): Remove the op field.
2587 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2588 (ia64_regs_info): Turn into ...
2589 (ia64_target::get_regs_info): ...this.
2590 (the_low_target): Remove the op field.
2591 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2592 (m32r_regs_info): Turn into ...
2593 (m32r_target::get_regs_info): ...this.
2594 (the_low_target): Remove the op field.
2595 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2596 (m68k_regs_info): Turn into ...
2597 (m68k_target::get_regs_info): ...this.
2598 (the_low_target): Remove the op field.
2599 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2600 (mips_regs_info): Turn into ...
2601 (mips_target::get_regs_info): ...this.
2602 (the_low_target): Remove the op field.
2603 (get_usrregs_info): Update the call to the op.
2604 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2605 (nios2_regs_info): Turn into ...
2606 (nios2_target::get_regs_info): ...this.
2607 (the_low_target): Remove the op field.
2608 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2609 (ppc_regs_info): Turn into ...
2610 (ppc_target::get_regs_info): ...this.
2611 (the_low_target): Remove the op field.
2612 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2613 (riscv_regs_info): Turn into ...
2614 (riscv_target::get_regs_info): ...this.
2615 (the_low_target): Remove the op field.
2616 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2617 (s390_regs_info): Turn into ...
2618 (s390_target::get_regs_info): ...this.
2619 (the_low_target): Remove the op field.
2620 (s390_collect_ptrace_register)
2621 (s390_supply_ptrace_register)
2622 (s390_fill_gregset): Update the call to the op.
2623 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2624 (sh_regs_info): Turn into ...
2625 (sh_target::get_regs_info): ...this.
2626 (the_low_target): Remove the op field.
2627 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2628 (sparc_regs_info): Turn into ...
2629 (sparc_target::get_regs_info): ...this.
2630 (the_low_target): Remove the op field.
2631 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2632 (tic6x_regs_info): Turn into ...
2633 (tic6x_target::get_regs_info): ...this.
2634 (the_low_target): Remove the op field.
2635 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2636 (tile_regs_info): Turn into ...
2637 (tile_target::get_regs_info): ...this.
2638 (the_low_target): Remove the op field.
2639 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2641 (xtensa_regs_info): Turn into ...
2642 (xtensa_target::get_regs_info): ...this.
2643 (the_low_target): Remove the op field.
2645 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2647 Turn the 'arch_setup' linux target op into a method of
2648 linux_process_target.
2650 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2651 (class linux_process_target) <arch_setup_thread>
2652 <low_arch_setup>: New declarations.
2653 * linux-low.cc (linux_arch_setup): Delete.
2654 (linux_arch_setup_thread): Turn into...
2655 (linux_process_target::arch_setup_thread): ... this.
2657 Update the callers below.
2659 (linux_process_target::handle_extended_wait)
2660 (linux_process_target::post_create_inferior)
2661 (linux_process_target::filter_event)
2663 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2665 (x86_linux_update_xmltarget): Turn into...
2666 (x86_target::update_xmltarget): ...this.
2667 (x86_linux_process_qsupported): Update the call to
2668 x86_linux_update_xmltarget.
2669 (x86_arch_setup): Turn into ...
2670 (x86_target::low_arch_setup): ...this.
2671 (the_low_target): Remove the op field.
2672 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2674 (aarch64_arch_setup): Turn into ...
2675 (aarch64_target::low_arch_setup): ...this.
2676 (the_low_target): Remove the op field.
2677 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2679 (arm_arch_setup): Turn into ...
2680 (arm_target::low_arch_setup): ...this.
2681 (the_low_target): Remove the op field.
2682 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2684 (bfin_arch_setup): Turn into ...
2685 (bfin_target::low_arch_setup): ...this.
2686 (the_low_target): Remove the op field.
2687 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2689 (cris_arch_setup): Turn into ...
2690 (cris_target::low_arch_setup): ...this.
2691 (the_low_target): Remove the op field.
2692 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2694 (crisv32_arch_setup): Turn into ...
2695 (crisv32_target::low_arch_setup): ...this.
2696 (the_low_target): Remove the op field.
2697 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2699 (ia64_arch_setup): Turn into ...
2700 (ia64_target::low_arch_setup): ...this.
2701 (the_low_target): Remove the op field.
2702 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2704 (m32r_arch_setup): Turn into ...
2705 (m32r_target::low_arch_setup): ...this.
2706 (the_low_target): Remove the op field.
2707 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2709 (m68k_arch_setup): Turn into ...
2710 (m68k_target::low_arch_setup): ...this.
2711 (the_low_target): Remove the op field.
2712 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2714 (mips_arch_setup): Turn into ...
2715 (mips_target::low_arch_setup): ...this.
2716 (the_low_target): Remove the op field.
2717 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2719 (nios2_arch_setup): Turn into ...
2720 (nios2_target::low_arch_setup): ...this.
2721 (the_low_target): Remove the op field.
2722 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2724 (ppc_arch_setup): Turn into ...
2725 (ppc_target::low_arch_setup): ...this.
2726 (the_low_target): Remove the op field.
2727 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2729 (riscv_arch_setup): Turn into ...
2730 (riscv_target::low_arch_setup): ...this.
2731 (the_low_target): Remove the op field.
2732 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2734 (s390_arch_setup): Turn into ...
2735 (s390_target::low_arch_setup): ...this.
2736 (the_low_target): Remove the op field.
2737 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2739 (sh_arch_setup): Turn into ...
2740 (sh_target::low_arch_setup): ...this.
2741 (the_low_target): Remove the op field.
2742 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2744 (sparc_arch_setup): Turn into ...
2745 (sparc_target::low_arch_setup): ...this.
2746 (the_low_target): Remove the op field.
2747 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2749 (tic6x_arch_setup): Turn into ...
2750 (tic6x_target::low_arch_setup): ...this.
2751 (the_low_target): Remove the op field.
2752 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2754 (tile_arch_setup): Turn into ...
2755 (tile_target::low_arch_setup): ...this.
2756 (the_low_target): Remove the op field.
2757 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2759 (xtensa_arch_setup): Turn into ...
2760 (xtensa_target::low_arch_setup): ...this.
2761 (the_low_target): Remove the op field.
2763 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2765 * linux-low.h (the_linux_target): New extern declaration.
2766 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2768 (the_linux_target): Remove.
2769 * linux-x86-low.cc (class x86_target): New class.
2770 (the_x86_target): New static object.
2771 (the_linux_target): Define as pointer to the_x86_target.
2772 * linux-aarch64-low.cc (class aarch64_target): New class.
2773 (the_aarch64_target): New static object.
2774 (the_linux_target): Define as pointer to the_aarch64_target.
2775 * linux-arm-low.cc (class arm_target): New class.
2776 (the_arm_target): New static object.
2777 (the_linux_target): Define as pointer to the_arm_target.
2778 * linux-bfin-low.cc (class bfin_target): New class.
2779 (the_bfin_target): New static object.
2780 (the_linux_target): Define as pointer to the_bfin_target.
2781 * linux-cris-low.cc (class cris_target): New class.
2782 (the_cris_target): New static object.
2783 (the_linux_target): Define as pointer to the_cris_target.
2784 * linux-crisv32-low.cc (class crisv32_target): New class.
2785 (the_crisv32_target): New static object.
2786 (the_linux_target): Define as pointer to the_crisv32_target.
2787 * linux-ia64-low.cc (class ia64_target): New class.
2788 (the_ia64_target): New static object.
2789 (the_linux_target): Define as pointer to the_ia64_target.
2790 * linux-m32r-low.cc (class m32r_target): New class.
2791 (the_m32r_target): New static object.
2792 (the_linux_target): Define as pointer to the_m32r_target.
2793 * linux-m68k-low.cc (class m68k_target): New class.
2794 (the_m68k_target): New static object.
2795 (the_linux_target): Define as pointer to the_m68k_target.
2796 * linux-mips-low.cc (class mips_target): New class.
2797 (the_mips_target): New static object.
2798 (the_linux_target): Define as pointer to the_mips_target.
2799 * linux-nios2-low.cc (class nios2_target): New class.
2800 (the_nios2_target): New static object.
2801 (the_linux_target): Define as pointer to the_nios2_target.
2802 * linux-ppc-low.cc (class ppc_target): New class.
2803 (the_ppc_target): New static object.
2804 (the_linux_target): Define as pointer to the_ppc_target.
2805 * linux-riscv-low.cc (class riscv_target): New class.
2806 (the_riscv_target): New static object.
2807 (the_linux_target): Define as pointer to the_riscv_target.
2808 * linux-s390-low.cc (class s390_target): New class.
2809 (the_s390_target): New static object.
2810 (the_linux_target): Define as pointer to the_s390_target.
2811 * linux-sh-low.cc (class sh_target): New class.
2812 (the_sh_target): New static object.
2813 (the_linux_target): Define as pointer to the_sh_target.
2814 * linux-sparc-low.cc (class sparc_target): New class.
2815 (the_sparc_target): New static object.
2816 (the_linux_target): Define as pointer to the_sparc_target.
2817 * linux-tic6x-low.cc (class tic6x_target): New class.
2818 (the_tic6x_target): New static object.
2819 (the_linux_target): Define as pointer to the_tic6x_target.
2820 * linux-tile-low.cc (class tile_target): New class.
2821 (the_tile_target): New static object.
2822 (the_linux_target): Define as pointer to the_tile_target.
2823 * linux-xtensa-low.cc (class xtensa_target): New class.
2824 (the_xtensa_target): New static object.
2825 (the_linux_target): Define as pointer to the_xtensa_target.
2827 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2829 Turn some static functions in linux-low.cc into private methods of
2830 linux_process_target.
2832 * linux-low.cc (handle_extended_wait): Turn into ...
2833 (linux_process_target::handle_extended_wait): ...this. Call
2834 'mourn' on 'this' object instead of 'the_target'.
2835 (maybe_move_out_of_jump_pad): Turn into...
2836 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2837 (linux_low_filter_event): Turn into...
2838 (linux_process_target::filter_event): ...this.
2839 (linux_wait_for_event_filtered): Turn into...
2840 (linux_process_target::wait_for_event_filtered): ...this.
2841 (linux_wait_for_event): Turn into...
2842 (linux_process_target::wait_for_event): ...this.
2843 (linux_wait_1): Turn into...
2844 (linux_process_target::wait_1): ...this.
2845 (wait_for_sigstop): Turn into...
2846 (linux_process_target::wait_for_sigstop): ...this.
2847 (move_out_of_jump_pad_callback): Turn into...
2848 (linux_process_target::move_out_of_jump_pad): ...this.
2849 (stop_all_lwps): Turn into...
2850 (linux_process_target::stop_all_lwps): ...this.
2851 (start_step_over): Turn into...
2852 (linux_process_target::start_step_over): ...this.
2853 (complete_ongoing_step_over): Turn into...
2854 (linux_process_target::complete_ongoing_step_over): ...this.
2855 (proceed_all_lwps): Turn into...
2856 (linux_process_target::proceed_all_lwps): ...this.
2857 (unstop_all_lwps): Turn into...
2858 (linux_process_target::unstop_all_lwps): ...this.
2860 * linux-low.h (class linux_process_target)
2861 <handle_extended_wait>
2862 <maybe_move_out_of_jump_pad>
2864 <wait_for_event_filtered>
2868 <move_out_of_jump_pad>
2871 <complete_ongoing_step_over>
2873 <unstop_all_lwps>: Declare.
2875 Update the callers below.
2877 * linux-low.cc (linux_process_target::attach): Update.
2878 (linux_process_target::stabilize_threads): Ditto.
2879 (linux_process_target::wait): Ditto.
2881 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2883 * linux-low.h (struct linux_target_ops): Update the comment for
2884 'cannot_store_register' to return 0 or 1.
2885 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2888 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2890 * config.in: Re-generate.
2891 * configure: Re-generate.
2893 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2895 * regcache.cc (find_register_by_number): Update.
2896 * tdesc.cc (init_target_desc): Likewise.
2897 * tdesc.h (target_desc::reg_defs): Likewise.
2899 2020-03-12 Tom Tromey <tom@tromey.com>
2901 * configure: Rebuild.
2902 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2903 (WIN32APILIBS): New subst.
2904 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2906 (gdbsupport/%.o): Remove target.
2907 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2908 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2909 (WIN32APILIBS): New variable.
2910 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2911 (gdbreplay$(EXEEXT)): Likewise.
2913 2020-03-12 Tom Tromey <tom@tromey.com>
2915 * config.in, configure: Rebuild.
2916 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2917 * acinclude.m4: Include gettext-sister.m4.
2918 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2920 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2921 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2923 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2925 * acinclude.m4: Update path to selftest.m4.
2927 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2929 * configure.ac: Don't source bfd/development.sh, move
2930 GDB_AC_COMMON higher.
2931 * configure: Re-generate.
2933 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2935 * configure: Re-generate.
2937 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2939 * configure: Re-generate.
2941 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2943 * .dir-locals.el: New file.
2945 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2947 * .gitattributes: New file.
2949 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2951 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2952 reply into an S reply.
2953 * server.cc (disable_packet_T): New global.
2954 (captured_main): Set new global when appropriate.
2955 * server.h (disable_packet_T): Declare.
2957 2020-02-21 Tom Tromey <tom@tromey.com>
2959 * Makefile.in (mostlyclean): New target.
2961 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2963 * target.h (struct process_stratum_target): Remove.
2964 (class process_target): Rename to ...
2965 (class process_stratum_target): ... this.
2966 * linux-low.h (class linux_process_target): Derive from
2967 'process_stratum_target'.
2968 * linux-low.cc (linux_target_ops): Remove.
2969 (initialize_low): Set the_target to the singleton instance of
2970 linux_process_target.
2971 * lynx-low.h (class lynx_process_target): Derive from
2972 'process_stratum_target'.
2973 * lynx-low.cc (lynx_target_ops): Remove.
2974 (initialize_low): Set the_target to the singleton instance of
2975 lynx_process_target.
2976 * nto-low.h (class nto_process_target): Derive from
2977 'process_stratum_target'.
2978 * nto-low.cc (nto_target_ops): Remove.
2979 (initialize_low): Set the_target to the singleton instance of
2981 * win32-low.h (class win32_process_target): Derive from
2982 'process_stratum_target'.
2983 * win32-low.cc (win32_target_ops): Remove.
2984 (initialize_low): Set the_target to the singleton instance of
2985 win32_process_target.
2987 Replace 'the_target->pt' with 'the_target' in the uses below.
2989 * hostio.cc (hostio_error)
2994 * linux-aarch32-low.cc (arm_breakpoint_at)
2995 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2996 * linux-arm-low.cc (arm_sigreturn_next_pc)
2998 (arm_get_syscall_trapinfo)
2999 * linux-cris-low.cc (cris_breakpoint_at)
3000 * linux-crisv32-low.cc (cris_breakpoint_at)
3001 * linux-low.cc (handle_extended_wait)
3004 (linux_process_target::breakpoint_kind_from_pc)
3006 * linux-m32r-low.cc (m32r_breakpoint_at)
3007 * linux-mips-low.cc (mips_breakpoint_at)
3008 * linux-nios2-low.cc (nios2_breakpoint_at)
3009 * linux-ppc-low.cc (ppc_breakpoint_at)
3010 * linux-s390-low.cc (s390_get_hwcap)
3011 * linux-sh-low.cc (sh_breakpoint_at)
3012 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3013 (sparc_store_gregset_from_stack)
3014 (sparc_breakpoint_at)
3015 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3016 * linux-tile-low.cc (tile_breakpoint_at)
3017 * linux-x86-low.cc (x86_breakpoint_at)
3018 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3019 * mem-break.cc (bp_size)
3021 (insert_memory_breakpoint)
3022 (set_raw_breakpoint_at)
3023 (delete_raw_breakpoint)
3025 (uninsert_raw_breakpoint)
3026 (reinsert_raw_breakpoint)
3027 (validate_inserted_breakpoint)
3028 * regcache.cc (regcache_read_pc)
3030 * remote-utils.cc (putpkt_binary_1)
3033 (prepare_resume_reply)
3034 * server.cc (handle_general_set)
3037 (handle_qxfer_exec_file)
3038 (handle_qxfer_libraries_svr4)
3039 (handle_qxfer_osdata)
3040 (handle_qxfer_siginfo)
3041 (handle_qxfer_fdpic)
3045 (queue_stop_reply_callback)
3047 * target.cc (prepare_to_access_memory)
3048 (done_accessing_memory)
3049 (read_inferior_memory)
3050 (target_write_memory)
3051 (target_stop_and_wait)
3053 (target_mourn_inferior)
3054 (target_continue_no_signal)
3056 (target_supports_multi_process)
3059 (target_create_inferior)
3060 (target_post_create_inferior)
3062 (target_supports_fork_events)
3063 (target_supports_vfork_events)
3064 (target_supports_exec_events)
3065 (target_handle_new_gdb_connection)
3068 (fetch_inferior_registers)
3069 (store_inferior_registers)
3071 (target_supports_non_stop)
3073 (target_process_qsupported)
3074 (target_supports_catch_syscall)
3075 (target_get_ipa_tdesc_idx)
3076 (target_supports_tracepoints)
3077 (target_supports_fast_tracepoints)
3078 (target_get_min_fast_tracepoint_insn_len)
3079 (target_thread_stopped)
3081 (target_unpause_all)
3082 (target_stabilize_threads)
3083 (target_install_fast_tracepoint_jump_pad)
3085 (target_supports_disable_randomization)
3086 (target_supports_agent)
3087 (target_enable_btrace)
3088 (target_disable_btrace)
3089 (target_read_btrace)
3090 (target_read_btrace_conf)
3091 (target_supports_range_stepping)
3092 (target_supports_stopped_by_sw_breakpoint)
3093 (target_stopped_by_sw_breakpoint)
3094 (target_supports_stopped_by_hw_breakpoint)
3095 (target_supports_hardware_single_step)
3096 (target_stopped_by_hw_breakpoint)
3097 (target_breakpoint_kind_from_pc)
3098 (target_breakpoint_kind_from_current_state)
3099 (target_supports_software_single_step)
3100 (target_core_of_thread)
3101 (target_thread_name)
3102 (target_thread_handle)
3103 * win32-low.cc (do_initial_child_stuff)
3105 Rename target op default definitions listed below.
3107 * target.cc (process_target::post_create_inferior): Rename as ...
3108 (process_stratum_target::post_create_inferior): ... this.
3109 (process_target::prepare_to_access_memory): Rename as ...
3110 (process_stratum_target::prepare_to_access_memory): ... this.
3111 (process_target::done_accessing_memory): Rename as ...
3112 (process_stratum_target::done_accessing_memory): ... this.
3113 (process_target::look_up_symbols): Rename as ...
3114 (process_stratum_target::look_up_symbols): ... this.
3115 (process_target::supports_read_auxv): Rename as ...
3116 (process_stratum_target::supports_read_auxv): ... this.
3117 (process_target::read_auxv): Rename as ...
3118 (process_stratum_target::read_auxv): ... this.
3119 (process_target::supports_z_point_type): Rename as ...
3120 (process_stratum_target::supports_z_point_type): ... this.
3121 (process_target::insert_point): Rename as ...
3122 (process_stratum_target::insert_point): ... this.
3123 (process_target::remove_point): Rename as ...
3124 (process_stratum_target::remove_point): ... this.
3125 (process_target::stopped_by_sw_breakpoint): Rename as ...
3126 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3127 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3128 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3129 (process_target::stopped_by_hw_breakpoint): Rename as ...
3130 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3131 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3132 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3133 (process_target::supports_hardware_single_step): Rename as ...
3134 (process_stratum_target::supports_hardware_single_step): ... this.
3135 (process_target::stopped_by_watchpoint): Rename as ...
3136 (process_stratum_target::stopped_by_watchpoint): ... this.
3137 (process_target::stopped_data_address): Rename as ...
3138 (process_stratum_target::stopped_data_address): ... this.
3139 (process_target::supports_read_offsets): Rename as ...
3140 (process_stratum_target::supports_read_offsets): ... this.
3141 (process_target::read_offsets): Rename as ...
3142 (process_stratum_target::read_offsets): ... this.
3143 (process_target::supports_get_tls_address): Rename as ...
3144 (process_stratum_target::supports_get_tls_address): ... this.
3145 (process_target::get_tls_address): Rename as ...
3146 (process_stratum_target::get_tls_address): ... this.
3147 (process_target::hostio_last_error): Rename as ...
3148 (process_stratum_target::hostio_last_error): ... this.
3149 (process_target::supports_qxfer_osdata): Rename as ...
3150 (process_stratum_target::supports_qxfer_osdata): ... this.
3151 (process_target::qxfer_osdata): Rename as ...
3152 (process_stratum_target::qxfer_osdata): ... this.
3153 (process_target::supports_qxfer_siginfo): Rename as ...
3154 (process_stratum_target::supports_qxfer_siginfo): ... this.
3155 (process_target::qxfer_siginfo): Rename as ...
3156 (process_stratum_target::qxfer_siginfo): ... this.
3157 (process_target::supports_non_stop): Rename as ...
3158 (process_stratum_target::supports_non_stop): ... this.
3159 (process_target::async): Rename as ...
3160 (process_stratum_target::async): ... this.
3161 (process_target::start_non_stop): Rename as ...
3162 (process_stratum_target::start_non_stop): ... this.
3163 (process_target::supports_multi_process): Rename as ...
3164 (process_stratum_target::supports_multi_process): ... this.
3165 (process_target::supports_fork_events): Rename as ...
3166 (process_stratum_target::supports_fork_events): ... this.
3167 (process_target::supports_vfork_events): Rename as ...
3168 (process_stratum_target::supports_vfork_events): ... this.
3169 (process_target::supports_exec_events): Rename as ...
3170 (process_stratum_target::supports_exec_events): ... this.
3171 (process_target::handle_new_gdb_connection): Rename as ...
3172 (process_stratum_target::handle_new_gdb_connection): ... this.
3173 (process_target::handle_monitor_command): Rename as ...
3174 (process_stratum_target::handle_monitor_command): ... this.
3175 (process_target::core_of_thread): Rename as ...
3176 (process_stratum_target::core_of_thread): ... this.
3177 (process_target::supports_read_loadmap): Rename as ...
3178 (process_stratum_target::supports_read_loadmap): ... this.
3179 (process_target::read_loadmap): Rename as ...
3180 (process_stratum_target::read_loadmap): ... this.
3181 (process_target::process_qsupported): Rename as ...
3182 (process_stratum_target::process_qsupported): ... this.
3183 (process_target::supports_tracepoints): Rename as ...
3184 (process_stratum_target::supports_tracepoints): ... this.
3185 (process_target::read_pc): Rename as ...
3186 (process_stratum_target::read_pc): ... this.
3187 (process_target::write_pc): Rename as ...
3188 (process_stratum_target::write_pc): ... this.
3189 (process_target::supports_thread_stopped): Rename as ...
3190 (process_stratum_target::supports_thread_stopped): ... this.
3191 (process_target::thread_stopped): Rename as ...
3192 (process_stratum_target::thread_stopped): ... this.
3193 (process_target::supports_get_tib_address): Rename as ...
3194 (process_stratum_target::supports_get_tib_address): ... this.
3195 (process_target::get_tib_address): Rename as ...
3196 (process_stratum_target::get_tib_address): ... this.
3197 (process_target::pause_all): Rename as ...
3198 (process_stratum_target::pause_all): ... this.
3199 (process_target::unpause_all): Rename as ...
3200 (process_stratum_target::unpause_all): ... this.
3201 (process_target::stabilize_threads): Rename as ...
3202 (process_stratum_target::stabilize_threads): ... this.
3203 (process_target::supports_fast_tracepoints): Rename as ...
3204 (process_stratum_target::supports_fast_tracepoints): ... this.
3205 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3206 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3207 (process_target::emit_ops): Rename as ...
3208 (process_stratum_target::emit_ops): ... this.
3209 (process_target::supports_disable_randomization): Rename as ...
3210 (process_stratum_target::supports_disable_randomization): ... this.
3211 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3212 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3213 (process_target::qxfer_libraries_svr4): Rename as ...
3214 (process_stratum_target::qxfer_libraries_svr4): ... this.
3215 (process_target::supports_agent): Rename as ...
3216 (process_stratum_target::supports_agent): ... this.
3217 (process_target::enable_btrace): Rename as ...
3218 (process_stratum_target::enable_btrace): ... this.
3219 (process_target::disable_btrace): Rename as ...
3220 (process_stratum_target::disable_btrace): ... this.
3221 (process_target::read_btrace): Rename as ...
3222 (process_stratum_target::read_btrace): ... this.
3223 (process_target::read_btrace_conf): Rename as ...
3224 (process_stratum_target::read_btrace_conf): ... this.
3225 (process_target::supports_range_stepping): Rename as ...
3226 (process_stratum_target::supports_range_stepping): ... this.
3227 (process_target::supports_pid_to_exec_file): Rename as ...
3228 (process_stratum_target::supports_pid_to_exec_file): ... this.
3229 (process_target::pid_to_exec_file): Rename as ...
3230 (process_stratum_target::pid_to_exec_file): ... this.
3231 (process_target::supports_multifs): Rename as ...
3232 (process_stratum_target::supports_multifs): ... this.
3233 (process_target::multifs_open): Rename as ...
3234 (process_stratum_target::multifs_open): ... this.
3235 (process_target::multifs_unlink): Rename as ...
3236 (process_stratum_target::multifs_unlink): ... this.
3237 (process_target::multifs_readlink): Rename as ...
3238 (process_stratum_target::multifs_readlink): ... this.
3239 (process_target::breakpoint_kind_from_pc): Rename as ...
3240 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3241 (process_target::breakpoint_kind_from_current_state): Rename as ...
3242 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3243 (process_target::thread_name): Rename as ...
3244 (process_stratum_target::thread_name): ... this.
3245 (process_target::thread_handle): Rename as ...
3246 (process_stratum_target::thread_handle): ... this.
3247 (process_target::supports_software_single_step): Rename as ...
3248 (process_stratum_target::supports_software_single_step): ... this.
3249 (process_target::supports_catch_syscall): Rename as ...
3250 (process_stratum_target::supports_catch_syscall): ... this.
3251 (process_target::get_ipa_tdesc_idx): Rename as ...
3252 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3254 2020-02-20 Pedro Alves <palves@redhat.com>
3256 * target.cc (set_target_ops): Simply copy the given target pointer
3257 instead of creating a copy of the pointed object.
3259 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3261 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3264 * target.h (struct process_stratum_target): Remove the target op.
3265 (class process_target): Add the target op.
3266 (target_get_ipa_tdesc_idx): Update the macro.
3267 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3269 Update the derived classes and callers below.
3271 * linux-low.cc (linux_target_ops): Update.
3272 (linux_get_ipa_tdesc_idx): Turn into ...
3273 (linux_process_target::get_ipa_tdesc_idx): ... this.
3274 * linux-low.h (class linux_process_target): Update.
3275 * lynx-low.cc (lynx_target_ops): Update.
3276 * nto-low.cc (nto_target_ops): Update.
3277 * win32-low.cc (win32_target_ops): Update.
3279 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3281 Turn process_stratum_target's supports_catch_syscall op into a
3282 method of process_target.
3284 * target.h (struct process_stratum_target): Remove the target op.
3285 (class process_target): Add the target op.
3286 (target_supports_catch_syscall): Update the macro.
3287 * target.cc (process_target::supports_catch_syscall): Define.
3289 Update the derived classes and callers below.
3291 * linux-low.cc (linux_target_ops): Update.
3292 (linux_supports_catch_syscall): Turn into ...
3293 (linux_process_target::supports_catch_syscall): ... this.
3294 * linux-low.h (class linux_process_target): Update.
3295 * lynx-low.cc (lynx_target_ops): Update.
3296 * nto-low.cc (nto_target_ops): Update.
3297 * win32-low.cc (win32_target_ops): Update.
3299 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3301 Turn process_stratum_target's supports_software_single_step op
3302 into a method of process_target.
3304 * target.h (struct process_stratum_target): Remove the target op.
3305 (class process_target): Add the target op.
3306 (target_supports_software_single_step): Update the macro.
3307 * target.cc (process_target::supports_software_single_step): Define.
3309 Update the derived classes and callers below.
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_supports_software_single_step): Turn into ...
3313 (linux_process_target::supports_software_single_step): ... this.
3314 * linux-low.h (class linux_process_target): Update.
3315 * lynx-low.cc (lynx_target_ops): Update.
3316 * nto-low.cc (nto_target_ops): Update.
3317 * win32-low.cc (win32_target_ops): Update.
3319 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321 Turn process_stratum_target's thread_name and thread_handle ops
3322 into methods of process_target.
3324 * target.h (struct process_stratum_target): Remove the target ops.
3325 (class process_target): Add the target ops.
3326 (target_thread_name): Update the macro.
3327 (target_thread_handle): Update the macro.
3328 * target.cc (process_target::thread_name): Define.
3329 (process_target::thread_handle): Define.
3331 Update the derived classes and callers below.
3333 * linux-low.cc (linux_target_ops): Update.
3334 (linux_process_target::thread_name): Define.
3335 (linux_process_target::thread_handle): Define.
3336 * linux-low.h (class linux_process_target): Update.
3337 * lynx-low.cc (lynx_target_ops): Update.
3338 * nto-low.cc (nto_target_ops): Update.
3339 * win32-low.cc (win32_target_ops): Update.
3341 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3343 Turn process_stratum_target's breakpoint_kind_from_pc,
3344 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3345 ops into methods of process_target.
3347 * target.h (struct process_stratum_target): Remove the target op.
3348 (class process_target): Add the target op.
3349 (target_breakpoint_kind_from_pc): Update the macro.
3350 (target_breakpoint_kind_from_current_state): Update the macro.
3351 (default_breakpoint_kind_from_pc): Remove declaration.
3352 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3353 (process_target::breakpoint_kind_from_pc): ... this.
3354 (process_target::breakpoint_kind_from_current_state): Define.
3356 Update the derived classes and callers below.
3358 * mem-break.cc (bp_size): Update.
3359 (bp_opcode): Update.
3360 * linux-low.cc (linux_target_ops): Update.
3361 (linux_wait_1): Update.
3362 (linux_breakpoint_kind_from_pc): Turn into ...
3363 (linux_process_target::breakpoint_kind_from_pc): ... this.
3364 (linux_sw_breakpoint_from_kind): Turn into ...
3365 (linux_process_target::sw_breakpoint_from_kind): ... this.
3366 (linux_breakpoint_kind_from_current_state): Turn into ...
3367 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3368 * linux-low.h (class linux_process_target): Update.
3369 * lynx-low.cc (lynx_target_ops): Update.
3370 (lynx_process_target::sw_breakpoint_from_kind): Define.
3371 * lynx-low.h (class lynx_process_target): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 (nto_sw_breakpoint_from_kind): Turn into ...
3374 (nto_process_target::sw_breakpoint_from_kind): ... this.
3375 * nto-low.h (class nto_process_target): Update.
3376 * win32-low.cc (win32_target_ops): Update.
3377 (win32_sw_breakpoint_from_kind): Turn into ...
3378 (win32_process_target::sw_breakpoint_from_kind): ... this.
3379 * win32-low.h (class win32_process_target): Update.
3381 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3383 Turn process_stratum_target's multifs_open, multifs_readlink,
3384 multifs_unlink ops into methods of process_target.
3386 * target.h (struct process_stratum_target): Remove the target ops.
3387 (class process_target): Add the target ops. Also add
3389 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3391 (process_target::supports_multifs): Define.
3392 (process_target::multifs_open): Define.
3393 (process_target::multifs_readlink): Define.
3394 (process_target::multifs_unlink): Define.
3396 Update the derived classes and callers below.
3398 * hostio.cc (handle_setfs): Update.
3399 (handle_open): Update.
3400 (handle_unlink): Update.
3401 (handle_readlink): Update.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_target::supports_multifs): Define.
3404 (linux_process_target::multifs_open): Define.
3405 (linux_process_target::multifs_readlink): Define.
3406 (linux_process_target::multifs_unlink): Define.
3407 * linux-low.h (class linux_process_target): Update.
3408 * lynx-low.cc (lynx_target_ops): Update.
3409 * nto-low.cc (nto_target_ops): Update.
3410 * win32-low.cc (win32_target_ops): Update.
3412 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3414 Turn process_stratum_target's pid_to_exec_file op into a method
3417 * target.h (struct process_stratum_target): Remove the target op.
3418 (class process_target): Add the target op. Also add
3419 'supports_pid_to_exec_file'.
3420 * target.cc (process_target::pid_to_exec_file): Define.
3421 (process_target::supports_pid_to_exec_file): Define.
3423 Update the derived classes and callers below.
3425 * server.cc (handle_qxfer_exec_file): Update.
3426 (handle_query): Update.
3427 * linux-low.cc (linux_target_ops): Update.
3428 (linux_process_target::supports_pid_to_exec_file): Define.
3429 (linux_process_target::pid_to_exec_file): Define.
3430 * linux-low.h (class linux_process_target): Update.
3431 * lynx-low.cc (lynx_target_ops): Update.
3432 * nto-low.cc (nto_target_ops): Update.
3433 * win32-low.cc (win32_target_ops): Update.
3435 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3437 Turn process_stratum_target's supports_range_stepping op into a
3438 method of process_target.
3440 * target.h (struct process_stratum_target): Remove the target op.
3441 (class process_target): Add the target op.
3442 (target_supports_range_stepping): Update the macro.
3443 * target.cc (process_target::supports_range_stepping): Define.
3445 Update the derived classes and callers below.
3447 * linux-low.cc (linux_target_ops): Update.
3448 (linux_supports_range_stepping): Turn into ...
3449 (linux_process_target::supports_range_stepping): ... this.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 * nto-low.cc (nto_target_ops): Update.
3453 * win32-low.cc (win32_target_ops): Update.
3455 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3457 Turn process_stratum_target's btrace-related ops (enable_btrace,
3458 disable_btrace, read_btrace, read_btrace_conf) into methods of
3461 * target.h (struct process_stratum_target): Remove the target ops.
3462 (class process_target): Add the target ops.
3463 (target_enable_btrace): Update.
3464 (target_disable_btrace): Update.
3465 (target_read_btrace): Update.
3466 (target_read_btrace_conf): Update.
3467 * target.cc (process_target::enable_btrace): Define.
3468 (process_target::disable_btrace): Define.
3469 (process_target::read_btrace): Define.
3470 (process_target::read_btrace_conf): Define.
3472 Update the derived classes and callers below.
3474 * linux-low.cc (linux_target_ops): Update.
3475 (linux_process_target:enable_btrace): Define as a wrapper around
3476 linux_enable_btrace.
3477 (linux_low_disable_btrace): Turn into ...
3478 (linux_process_target::disable_btrace): ... this.
3479 (linux_low_read_btrace): Turn into ...
3480 (linux_process_target::read_btrace): ... this.
3481 (linux_low_btrace_conf): Turn into ...
3482 (linux_process_target::read_btrace_conf): ... this.
3483 * linux-low.h (class linux_process_target): Update.
3484 * lynx-low.cc (lynx_target_ops): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3490 Turn process_stratum_target's supports_agent op into a method of
3493 * target.h (struct process_stratum_target): Remove the target op.
3494 (class process_target): Add the target op.
3495 (target_supports_agent): Update the macro.
3496 * target.cc (process_target::supports_agent): Define.
3498 Update the derived classes and callers below.
3500 * linux-low.cc (linux_target_ops): Update.
3501 (linux_supports_agent): Turn into ...
3502 (linux_process_target::supports_agent): ... this.
3503 * linux-low.h (class linux_process_target): Update.
3504 * lynx-low.cc (lynx_target_ops): Update.
3505 * nto-low.cc (nto_target_ops): Update.
3506 * win32-low.cc (win32_target_ops): Update.
3508 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3510 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3511 method of process_target.
3513 * target.h (struct process_stratum_target): Remove the target op.
3514 (class process_target): Add the target op. Also add
3515 'supports_qxfer_libraries_svr4'.
3516 * target.cc (process_target::qxfer_libraries_svr4): Define.
3517 (process_target::supports_qxfer_libraries_svr4): Define.
3519 Update the derived classes and callers below.
3521 * server.cc (handle_qxfer_libraries_svr4): Update.
3522 (handle_query): Update.
3523 * linux-low.cc (linux_target_ops): Update.
3524 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3525 (linux_qxfer_libraries_svr4): Turn into ...
3526 (linux_process_target::qxfer_libraries_svr4): ... this.
3527 * linux-low.h (class linux_process_target): Update.
3528 * lynx-low.cc (lynx_target_ops): Update.
3529 * nto-low.cc (nto_target_ops): Update.
3530 * win32-low.cc (win32_target_ops): Update.
3532 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3534 Turn process_stratum_target's supports_disable_randomization op
3535 into a method of process_target.
3537 * target.h (struct process_stratum_target): Remove the target op.
3538 (class process_target): Add the target op.
3539 (target_supports_disable_randomization): Update the macro.
3540 * target.cc (process_target::supports_disable_randomization): Define.
3542 Update the derived classes and callers below.
3544 * linux-low.cc (linux_target_ops): Update.
3545 (linux_supports_disable_randomization): Turn into ...
3546 (linux_process_target::supports_disable_randomization): ... this.
3547 * linux-low.h (class linux_process_target): Update.
3548 * lynx-low.cc (lynx_target_ops): Update.
3549 * nto-low.cc (nto_target_ops): Update.
3550 * win32-low.cc (win32_target_ops): Update.
3552 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554 Turn process_stratum_target's emit_ops op into a method of
3557 * target.h (struct process_stratum_target): Remove the target op.
3558 (class process_target): Add the target op.
3559 (target_emit_ops): Update the macro.
3560 * target.cc (process_target::emit_ops): Define.
3562 Update the derived classes and callers below.
3564 * linux-low.cc (linux_target_ops): Update.
3565 (linux_emit_ops): Turn into ...
3566 (linux_process_target::emit_ops): ... this.
3567 * linux-low.h (class linux_process_target): Update.
3568 * lynx-low.cc (lynx_target_ops): Update.
3569 * nto-low.cc (nto_target_ops): Update.
3570 * win32-low.cc (win32_target_ops): Update.
3572 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3574 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3575 and get_min_fast_tracepoint_insn_len ops into methods of
3578 * target.h (struct process_stratum_target): Remove the target ops.
3579 (class process_target): Add the target ops. Also add
3580 'supports_fast_tracepoints'.
3581 (target_supports_fast_tracepoints): Update the macro.
3582 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3583 (install_fast_tracepoint_jump_pad): Update and rename the macro
3585 (target_install_fast_tracepoint_jump_pad): ... this.
3586 * target.cc (process_target::supports_fast_tracepoints): Define.
3587 (process_target::install_fast_tracepoint_jump_pad): Define.
3588 (process_target::get_min_fast_tracepoint_insn_len): Define.
3590 Update the derived classes and callers below.
3592 * tracepoint.cc (install_fast_tracepoint): Update.
3593 * linux-low.cc (linux_target_ops): Update.
3594 (linux_process_target::supports_fast_tracepoints): Define.
3595 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3596 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3597 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3598 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3599 * linux-low.h (class linux_process_target): Update.
3600 * lynx-low.cc (lynx_target_ops): Update.
3601 * nto-low.cc (nto_target_ops): Update.
3602 * win32-low.cc (win32_target_ops): Update.
3604 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606 Turn process_stratum_target's stabilize_threads op into a
3607 method of process_target.
3609 * target.h (struct process_stratum_target): Remove the target op.
3610 (class process_target): Add the target op.
3611 (target_stabilize_threads): Update the macro.
3612 * target.cc (process_target::stabilize_threads): Define.
3614 Update the derived classes and callers below.
3616 * server.cc (handle_status): Update.
3617 * tracepoint.cc (cmd_qtdp): Update.
3618 (cmd_qtstart): Update.
3619 * linux-low.cc (linux_target_ops): Update.
3620 (linux_stabilize_threads): Turn into ...
3621 (linux_process_target::stabilize_threads): ... this.
3622 (linux_wait_1): Update.
3623 * linux-low.h (class linux_process_target): Update.
3624 * lynx-low.cc (lynx_target_ops): Update.
3625 * nto-low.cc (nto_target_ops): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3628 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3630 Turn process_stratum_target's pause_all and unpause_all ops
3631 into methods of process_target.
3633 * target.h (struct process_stratum_target): Remove the target ops.
3634 (class process_target): Add the target ops.
3635 (pause_all): Update the macro and rename to...
3636 (target_pause_all): ... this.
3637 (unpause_all): Update the macro and rename to...
3638 (target_unpause_all): ... this.
3639 * target.cc (process_target::pause_all): Define.
3640 (process_target::unpause_all): Define.
3642 Update the derived classes and callers below.
3644 * server.cc (handle_status): Update.
3645 * tracepoint.cc (clear_installed_tracepoints): Update.
3647 (cmd_qtstart): Update.
3648 (stop_tracing): Update.
3649 (cmd_qtstatus): Update.
3650 (upload_fast_traceframes): Update.
3651 (run_inferior_command): Update.
3652 * linux-low.cc (linux_target_ops): Update.
3653 (linux_pause_all): Turn into ...
3654 (linux_process_target::pause_all): ... this.
3655 (linux_unpause_all): Turn into ...
3656 (linux_process_target::unpause_all): ... this.
3657 (linux_process_target::prepare_to_access_memory): Update.
3658 (linux_process_target::done_accessing_memory): Update.
3659 * linux-low.h (class linux_process_target): Update.
3660 * lynx-low.cc (lynx_target_ops): Update.
3661 * nto-low.cc (nto_target_ops): Update.
3662 * win32-low.cc (win32_target_ops): Update.
3664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3666 Turn process_stratum_target's get_tib_address op into a method of
3669 * target.h (struct process_stratum_target): Remove the target op.
3670 (class process_target): Add the target op. Also add
3671 'supports_get_tib_address'.
3672 * target.cc (process_target::get_tib_address): Define.
3673 (process_target::supports_get_tib_address): Define.
3675 Update the derived classes and callers below.
3677 * server.cc (handle_query): Update.
3678 * linux-low.cc (win32_target_ops): Update.
3679 * lynx-low.cc (lynx_target_ops): Update.
3680 * nto-low.cc (nto_target_ops): Update.
3681 * win32-low.cc (win32_target_ops): Update.
3682 (win32_process_target::supports_get_tib_address): Define.
3683 (win32_get_tib_address): Turn into ...
3684 (win32_process_target::get_tib_address): ... this.
3685 * win32-low.h (class win32_process_target): Update.
3687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3689 Turn process_stratum_target's thread_stopped op into a method of
3692 * target.h (struct process_stratum_target): Remove the target op.
3693 (class process_target): Add the target op. Also add
3694 'supports_thread_stopped'.
3695 (target_thread_stopped): Update the macro.
3696 * target.cc (process_target::thread_stopped): Define.
3697 (process_target::supports_thread_stopped): Define.
3698 (prepare_to_access_memory): Update.
3700 Update the derived classes and callers below.
3702 * server.cc (queue_stop_reply_callback): Update.
3703 * linux-low.cc (linux_target_ops): Update.
3704 (linux_process_target::supports_thread_stopped): Define.
3705 (linux_thread_stopped): Turn into ...
3706 (linux_process_target::thread_stopped): ... this.
3707 * linux-low.h (class linux_process_target): Update.
3708 * lynx-low.cc (lynx_target_ops): Update.
3709 * nto-low.cc (nto_target_ops): Update.
3710 * win32-low.cc (win32_target_ops): Update.
3712 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3714 Turn process_stratum_target's read_pc and write_pc ops into
3715 methods of process_target.
3717 * target.h (struct process_stratum_target): Remove the target ops.
3718 (class process_target): Add the target ops.
3719 * target.cc (process_target::read_pc): Define.
3720 (process_target::write_pc): Define.
3722 Update the derived classes and callers below.
3724 * regcache.cc (regcache_read_pc): Update.
3725 (regcache_write_pc): Update.
3726 * linux-low.cc (linux_target_ops): Update.
3727 (linux_read_pc): Turn into ...
3728 (linux_process_target::read_pc): ... this.
3729 (linux_write_pc): Turn into ...
3730 (linux_process_target::write_pc): ... this.
3731 * linux-low.h (class linux_process_target): Update.
3732 * lynx-low.cc (lynx_target_ops): Update.
3733 * nto-low.cc (nto_target_ops): Update.
3734 * win32-low.cc (win32_target_ops): Update.
3736 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3738 Turn process_stratum_target's supports_tracepoints op into a
3739 method of process_target.
3741 * target.h (struct process_stratum_target): Remove the target op.
3742 (class process_target): Add the target op.
3743 (target_supports_tracepoints): Update the macro.
3744 * target.cc (process_target::supports_tracepoints): Define.
3746 Update the derived classes and callers below.
3748 * linux-low.cc (linux_target_ops): Update.
3749 (linux_supports_tracepoints): Turn into ...
3750 (linux_process_target::supports_tracepoints): ... this.
3751 * linux-low.h (class linux_process_target): Update.
3752 * lynx-low.cc (lynx_target_ops): Update.
3753 * nto-low.cc (nto_target_ops): Update.
3754 * win32-low.cc (win32_target_ops): Update.
3756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3758 Turn process_stratum_target's process_qsupported op into a method
3761 * target.h (struct process_stratum_target): Remove the target op.
3762 (class process_target): Add the target op.
3763 (target_process_qsupported): Update the macro.
3764 * target.cc (process_target::process_qsupported): Define.
3766 Update the derived classes and callers below.
3768 * linux-low.cc (linux_target_ops): Update.
3769 (linux_process_qsupported): Turn into ...
3770 (linux_process_target::process_qsupported): ... this.
3771 * linux-low.h (class linux_process_target): Update.
3772 * lynx-low.cc (lynx_target_ops): Update.
3773 * nto-low.cc (nto_target_ops): Update.
3774 * win32-low.cc (win32_target_ops): Update.
3776 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778 Turn process_stratum_target's read_loadmap op into a method of
3781 * target.h (struct process_stratum_target): Remove the target op.
3782 (class process_target): Add the target op. Also add
3783 'supports_read_loadmap'.
3784 * target.cc (process_target::read_loadmap): Define.
3785 (process_target::supports_read_loadmap): Define.
3787 Update the derived classes and callers below.
3789 * server.cc (handle_qxfer_fdpic): Update.
3790 (handle_query): Update.
3791 * linux-low.cc (linux_target_ops): Update.
3792 (linux_process_target::supports_read_loadmap): Define.
3793 (linux_read_loadmap): Turn into ...
3794 (linux_process_target::read_loadmap): ... this.
3795 * linux-low.h (class linux_process_target): Update.
3796 * lynx-low.cc (lynx_target_ops): Update.
3797 * nto-low.cc (nto_target_ops): Update.
3798 * win32-low.cc (win32_target_ops): Update.
3800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3802 Turn process_stratum_target's core_of_thread op into a method of
3805 * target.h (struct process_stratum_target): Remove the target op.
3806 (class process_target): Add the target op.
3807 (target_core_of_thread): Update the macro.
3808 * target.cc (process_target::core_of_thread): Define.
3810 Update the derived classes and callers below.
3812 * linux-low.cc (linux_target_ops): Update.
3813 (linux_process_target::core_of_thread): Define.
3814 * linux-low.h (class linux_process_target): Update.
3815 * lynx-low.cc (lynx_target_ops): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 * win32-low.cc (win32_target_ops): Update.
3819 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3821 Turn process_stratum_target's handle_monitor_command op into a
3822 method of process_target.
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op.
3826 (target_handle_monitor_command): Update the macro.
3827 * target.cc (process_target::handle_monitor_command): Define.
3829 Update the derived classes and callers below.
3831 * server.cc (handle_query): Update.
3832 * linux-low.cc (linux_target_ops): Update.
3833 (linux_process_target::handle_monitor_command): Define.
3834 * linux-low.h (class linux_process_target): Update.
3835 * lynx-low.cc (lynx_target_ops): Update.
3836 * nto-low.cc (nto_target_ops): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3839 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841 Turn process_stratum_target's handle_new_gdb_connection op into a
3842 method of process_target.
3844 * target.h (struct process_stratum_target): Remove the target op.
3845 (class process_target): Add the target op.
3846 (target_handle_new_gdb_connection): Update the macro.
3847 * target.cc (process_target::handle_new_gdb_connection): Define.
3849 Update the derived classes and callers below.
3851 * linux-low.cc (linux_target_ops): Update.
3852 (linux_handle_new_gdb_connection): Turn into ...
3853 (linux_process_target::handle_new_gdb_connection): ... this.
3854 * linux-low.h (class linux_process_target): Update.
3855 * lynx-low.cc (lynx_target_ops): Update.
3856 * nto-low.cc (nto_target_ops): Update.
3857 * win32-low.cc (win32_target_ops): Update.
3859 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3861 Turn process_stratum_target's supports_fork_events,
3862 supports_vfork_events, and supports_exec_events ops into methods
3865 * target.h (struct process_stratum_target): Remove the target ops.
3866 (class process_target): Add the target ops.
3867 (target_supports_fork_events): Update the macro.
3868 (target_supports_vfork_events): Update the macro.
3869 (target_supports_exec_events): Update the macro.
3870 * target.cc (process_target::supports_fork_events): Define.
3871 (process_target::supports_vfork_events): Define.
3872 (process_target::supports_exec_events): Define.
3874 Update the derived classes and callers below.
3876 * linux-low.cc (linux_target_ops): Update.
3877 (linux_supports_fork_events): Turn into ...
3878 (linux_process_target::supports_fork_events): ... this.
3879 (linux_supports_vfork_events): Turn into ...
3880 (linux_process_target::supports_vfork_events): ... this.
3881 (linux_supports_exec_events): Turn into ...
3882 (linux_process_target::supports_exec_events): ... this.
3883 * linux-low.h (class linux_process_target): Update.
3884 * lynx-low.cc (lynx_target_ops): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 * win32-low.cc (win32_target_ops): Update.
3888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3890 Turn process_stratum_target's supports_multi_process op into a
3891 method of process_target.
3893 * target.h (struct process_stratum_target): Remove the target op.
3894 (class process_target): Add the target op.
3895 * target.cc (process_target::supports_multi_process): Define.
3896 (target_supports_multi_process): Update.
3898 Update the derived classes and callers below.
3900 * linux-low.cc (linux_target_ops): Update.
3901 (linux_supports_multi_process): Turn into ...
3902 (linux_process_target::supports_multi_process): ... this.
3903 * linux-low.h (class linux_process_target): Update.
3904 * lynx-low.cc (lynx_target_ops): Update.
3905 * nto-low.cc (nto_target_ops): Update.
3906 * win32-low.cc (win32_target_ops): Update.
3908 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3910 Turn process_stratum_target's supports_non_stop, async, and
3911 start_non_stop ops into methods of process_target.
3913 * target.h (struct process_stratum_target): Remove the target ops.
3914 (class process_target): Add the target ops.
3915 (target_supports_non_stop): Update the macro.
3916 (target_async): Update the macro.
3917 (start_non_stop): Remove declaration.
3918 * target.cc (process_target::supports_non_stop): Define.
3919 (process_target::async): Define.
3920 (process_target::start_non_stop): Define.
3921 (start_non_stop): Remove.
3923 Update the derived classes and callers below.
3925 * server.cc (handle_qxfer_siginfo): Update.
3926 (handle_query): Update.
3927 * linux-low.cc (linux_target_ops): Update.
3928 (linux_supports_non_stop): Turn into ...
3929 (linux_process_target::supports_non_stop): ... this.
3930 (linux_async): Turn into ...
3931 (linux_process_target::async): ... this.
3932 (linux_start_non_stop): Turn into ...
3933 (linux_process_target::start_non_stop): ... this.
3934 * linux-low.h (class linux_process_target): Update.
3935 * lynx-low.cc (lynx_target_ops): Update.
3936 * nto-low.cc (nto_target_ops): Update.
3937 (nto_supports_non_stop): Remove; rely on the default behavior
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 qxfer_siginfo op into a method of
3946 * target.h (struct process_stratum_target): Remove the target op.
3947 (class process_target): Add the target op. Also add
3948 'supports_qxfer_siginfo'.
3949 * target.cc (process_target::qxfer_siginfo): Define.
3950 (process_target::supports_qxfer_siginfo): Define.
3952 Update the derived classes and callers below.
3954 * server.cc (handle_qxfer_siginfo): Update.
3955 (handle_query): Update.
3956 * linux-low.cc (linux_target_ops): Update.
3957 (linux_process_target::supports_qxfer_siginfo): Define.
3958 (linux_xfer_siginfo): Turn into ...
3959 (linux_process_target::qxfer_siginfo): ... this.
3960 * linux-low.h (class linux_process_target): Update.
3961 * lynx-low.cc (lynx_target_ops): Update.
3962 * nto-low.cc (nto_target_ops): Update.
3963 * win32-low.cc (win32_target_ops): Update.
3965 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3967 Turn process_stratum_target's qxfer_osdata op into a method of
3970 * target.h (struct process_stratum_target): Remove the target op.
3971 (class process_target): Add the target op. Also add
3972 'supports_qxfer_osdata'.
3973 * target.cc (process_target::qxfer_osdata): Define.
3974 (process_target::supports_qxfer_osdata): Define.
3976 Update the derived classes and callers below.
3978 * server.cc (handle_qxfer_osdata): Update.
3979 (handle_query): Update.
3980 * linux-low.cc (linux_target_ops): Update.
3981 (linux_process_target::supports_qxfer_osdata): Define.
3982 (linux_qxfer_osdata): Turn into ...
3983 (linux_process_target::qxfer_osdata): ... this.
3984 * linux-low.h (class linux_process_target): Update.
3985 * lynx-low.cc (lynx_target_ops): Update.
3986 * nto-low.cc (nto_target_ops): Update.
3987 * win32-low.cc (win32_target_ops): Update.
3989 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3991 Turn process_stratum_target's hostio_last_error op into a
3992 method of process_target.
3994 * target.h (struct process_stratum_target): Remove the target op.
3995 (class process_target): Add the target op.
3996 * target.cc: Add "hostio.h" to includes.
3997 (process_target::hostio_last_error): Define.
3999 Update the derived classes and callers below.
4001 * hostio.cc (hostio_error): Update.
4002 * linux-low.cc: Remove "hostio.h" from includes.
4003 (linux_target_ops): Update.
4004 * lynx-low.cc (lynx_target_ops): Update.
4005 * nto-low.cc (nto_target_ops): Update.
4006 * win32-low.h (class win32_process_target): Update.
4007 * win32-low.cc (win32_target_ops): Update.
4008 (wince_hostio_last_error): Turn into ...
4009 (win32_process_target::hostio_last_error): ... this.
4011 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4013 Turn process_stratum_target's get_tls_address op into a method of
4016 * target.h (struct process_stratum_target): Remove the target op.
4017 (class process_target): Add the target op. Also add
4018 'supports_get_tls_address'.
4019 * target.cc (process_target::get_tls_address): Define.
4020 (process_target::supports_get_tls_address): Define.
4022 Update the derived classes and callers below.
4024 * server.cc (handle_query): Update.
4025 * linux-low.cc (linux_target_ops): Update.
4026 (linux_process_target::supports_get_tls_address): Define.
4027 (linux_process_target::get_tls_address): Define.
4028 * linux-low.h (class linux_process_target): Update.
4029 * lynx-low.cc (lynx_target_ops): Update.
4030 * nto-low.cc (nto_target_ops): Update.
4031 * win32-low.cc (win32_target_ops): Update.
4033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4035 Turn process_stratum_target's read_offsets op into a method of
4038 * target.h (struct process_stratum_target): Remove the target op.
4039 (class process_target): Add the target op. Also add
4040 'supports_read_offsets'.
4041 * target.cc (process_target::read_offsets): Define.
4042 (process_target::supports_read_offsets): Define.
4044 Update the derived classes and callers below.
4046 * server.cc (handle_query): Update.
4047 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4048 (linux_target_ops): Update.
4049 (linux_process_target::supports_read_offsets): Define.
4050 (linux_read_offsets): Turn into ...
4051 (linux_process_target::read_offsets): ... this.
4052 * linux-low.h (class linux_process_target): Update.
4053 * lynx-low.cc (lynx_target_ops): Update.
4054 * nto-low.cc (nto_target_ops): Update.
4055 * win32-low.cc (win32_target_ops): Update.
4057 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4059 Turn process_stratum_target's stopped_by_watchpoint and
4060 stopped_data_address ops into methods of process_target.
4062 * target.h (struct process_stratum_target): Remove the target ops.
4063 (class process_target): Add the target ops.
4064 * target.cc (process_target::stopped_by_watchpoint): Define.
4065 (process_target::stopped_data_address): Define.
4067 Update the derived classes and callers below.
4069 * remote-utils.cc (prepare_resume_reply): Update.
4070 * linux-low.cc (linux_target_ops): Update.
4071 (linux_stopped_by_watchpoint): Turn into ...
4072 (linux_process_target::stopped_by_watchpoint): ... this.
4073 (linux_stopped_data_address): Turn into ...
4074 (linux_process_target::stopped_data_address): ... this.
4075 * linux-low.h (class linux_process_target): Update.
4076 * lynx-low.cc (lynx_target_ops): Update.
4077 * nto-low.cc (nto_target_ops): Update.
4078 (nto_stopped_by_watchpoint): Turn into ...
4079 (nto_process_target::stopped_by_watchpoint): ... this.
4080 (nto_stopped_data_address): Turn into ...
4081 (nto_process_target::stopped_data_address): ... this.
4082 * nto-low.h (class nto_process_target): Update.
4083 * win32-low.cc (win32_target_ops): Update.
4084 (win32_stopped_by_watchpoint): Turn into ...
4085 (win32_process_target::stopped_by_watchpoint): ... this.
4086 (win32_stopped_data_address): Turn into ...
4087 (win32_process_target::stopped_data_address): ... this.
4088 * win32-low.h (class win32_process_target): Update.
4090 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4092 Turn process_stratum_target's supports_hardware_single_step op into
4093 a method of process_target.
4095 * target.h (struct process_stratum_target): Remove the target op.
4096 (class process_target): Add the target op.
4097 (target_supports_hardware_single_step): Update the macro.
4098 (target_can_do_hardware_single_step): Remove declaration.
4099 * target.cc (process_target::supports_hardware_single_step): Define.
4100 (target_can_do_hardware_single_step): Remove.
4102 Update the derived classes and callers below.
4104 * linux-low.h (class linux_process_target): Update.
4105 * linux-low.cc (linux_target_ops): Update.
4106 (linux_supports_hardware_single_step): Turn into ...
4107 (linux_process_target::supports_hardware_single_step): ... this.
4108 * lynx-low.h (class lynx_process_target): Update.
4109 * lynx-low.cc (lynx_target_ops): Update.
4110 (lynx_process_target::supports_hardware_single_step): Define.
4111 * nto-low.h (class nto_process_target): Update.
4112 * nto-low.cc (nto_target_ops): Update.
4113 (nto_process_target::supports_hardware_single_step): Define.
4114 * win32-low.h (class win32_process_target): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4116 (win32_process_target::supports_hardware_single_step): Define.
4118 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4120 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4121 ops into methods of process_target.
4123 * target.h (struct process_stratum_target): Remove the target ops.
4124 (class process_target): Add the target ops.
4125 (target_stopped_by_hw_breakpoint): Update the macro.
4126 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4127 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4128 (process_target::supports_stopped_by_hw_breakpoint): Define.
4130 Update the derived classes and callers below.
4132 * linux-low.cc (linux_target_ops): Update.
4133 (linux_stopped_by_hw_breakpoint): Turn into ...
4134 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4135 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4136 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4137 * linux-low.h (class linux_process_target): Update.
4138 * lynx-low.cc (lynx_target_ops): Update.
4139 * nto-low.cc (nto_target_ops): Update.
4140 * win32-low.cc (win32_target_ops): Update.
4142 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4144 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4145 ops into methods of process_target.
4147 * target.h (struct process_stratum_target): Remove the target ops.
4148 (class process_target): Add the target ops.
4149 (target_stopped_by_sw_breakpoint): Update the macro.
4150 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4151 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4152 (process_target::supports_stopped_by_sw_breakpoint): Define.
4154 Update the derived classes and callers below.
4156 * linux-low.cc (linux_target_ops): Update.
4157 (linux_stopped_by_sw_breakpoint): Turn into ...
4158 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4159 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4160 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 * nto-low.cc (nto_target_ops): Update.
4164 * win32-low.cc (win32_target_ops): Update.
4166 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4168 Turn process_stratum_target's insert_point and remove_point ops
4169 into methods of process_target.
4171 * target.h (struct process_stratum_target): Remove the target ops.
4172 (class process_target): Add the target ops.
4173 * target.cc (process_target::insert_point): Define.
4174 (process_target::remove_point): Define.
4176 Update the derived classes and callers below.
4178 * mem-break.cc (set_raw_breakpoint_at): Update.
4179 (delete_raw_breakpoint): Update.
4180 (uninsert_raw_breakpoint): Update.
4181 (reinsert_raw_breakpoint): Update.
4182 * linux-low.cc (linux_target_ops): Update.
4183 (linux_insert_point): Turn into ...
4184 (linux_process_target::insert_point): ... this.
4185 (linux_remove_point): Turn into ...
4186 (linux_process_target::remove_point): ... this.
4187 * linux-low.h (class linux_process_target): Update.
4188 * lynx-low.cc (lynx_target_ops): Update.
4189 * nto-low.cc (nto_target_ops): Update.
4190 (nto_insert_point): Turn into ...
4191 (nto_process_target::insert_point): ... this.
4192 (nto_remove_point): Turn into ...
4193 (nto_process_target::remove_point): ... this.
4194 * nto-low.h (class nto_process_target): Update.
4195 * win32-low.cc (win32_target_ops): Update.
4196 (win32_insert_point): Turn into ...
4197 (win32_process_target::insert_point): ... this.
4198 (win32_remove_point): Turn into ...
4199 (win32_process_target::remove_point): ... this.
4200 * win32-low.h (class win32_process_target): Update.
4202 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4204 Turn process_stratum_target's supports_z_point_type op into a
4205 method of process_target.
4207 * target.h (struct process_stratum_target): Remove the target op.
4208 (class process_target): Add the target op.
4209 * target.cc (process_target::supports_z_point_type): Define.
4211 Update the derived classes and callers below.
4213 * mem-break.cc (z_type_supported): Update.
4214 * linux-low.cc (linux_target_ops): Update.
4215 (linux_supports_z_point_type): Turn into ...
4216 (linux_process_target::supports_z_point_type): ... this.
4217 * linux-low.h (class linux_process_target): Update.
4218 * lynx-low.cc (lynx_target_ops): Update.
4219 * nto-low.cc (nto_target_ops): Update.
4220 (nto_supports_z_point_type): Turn into ...
4221 (nto_process_target::supports_z_point_type): ... this.
4222 * nto-low.h (class nto_process_target): Update.
4223 * win32-low.cc (win32_target_ops): Update.
4224 (win32_supports_z_point_type): Turn into ...
4225 (win32_process_target::supports_z_point_type): ... this.
4226 * win32-low.h (class win32_process_target): Update.
4228 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4230 Turn process_stratum_target's read_auxv op into a method of
4233 * target.h (class process_stratum_target): Remove the target op.
4234 (struct process_target): Add the target op. Also add
4235 'supports_read_auxv'.
4236 * target.cc (process_target::read_auxv): Define.
4237 (process_target::supports_read_auxv): Define.
4239 Update the derived classes and callers below.
4241 * server.cc (handle_qxfer_auxv): Update.
4242 (handle_query): Update.
4243 * linux-low.cc (linux_target_ops): Update.
4244 (linux_process_target::supports_read_auxv): Define.
4245 (linux_read_auxv): Turn into ...
4246 (linux_process_target::read_auxv): ... this.
4247 * linux-low.h (class linux_process_target): Update.
4248 * lynx-low.cc (lynx_target_ops): Update.
4249 * nto-low.cc (nto_target_ops): Update.
4250 (nto_process_target::supports_read_auxv): Define.
4251 (nto_read_auxv): Turn into ...
4252 (nto_process_target::read_auxv): ... this.
4253 * nto-low.h (class nto_process_target): Update.
4254 * win32-low.cc (win32_target_ops): Update.
4256 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4258 Turn process_stratum_target's request_interrupt op into a method of
4261 * target.h (struct process_stratum_target): Remove the target op.
4262 (class process_target): Add the target op.
4264 Update the derived classes and callers below.
4266 * remote-utils.cc (putpkt_binary_1): Update.
4267 (input_interrupt): Update.
4269 * server.cc (handle_v_requests): Update.
4270 * linux-low.cc (linux_target_ops): Update.
4271 (linux_request_interrupt): Turn into ...
4272 (linux_process_target::request_interrupt): ... this.
4273 * linux-low.h (class linux_process_target): Update.
4274 * lynx-low.cc (lynx_target_ops): Update.
4275 (lynx_request_interrupt): Turn into ...
4276 (lynx_process_target::request_interrupt): ... this.
4277 * lynx-low.h (class lynx_process_target): Update.
4278 * nto-low.cc (nto_target_ops): Update.
4279 (nto_request_interrupt): Turn into ...
4280 (nto_process_target::request_interrupt): ... this.
4281 * nto-low.h (class nto_process_target): Update.
4282 * win32-low.cc (win32_target_ops): Update.
4283 (win32_request_interrupt): Turn into ...
4284 (win32_process_target::request_interrupt): ... this.
4285 * win32-low.h (class win32_process_target): Update.
4287 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4289 Turn process_stratum_target's look_up_symbols op into a method of
4292 * target.h (struct process_stratum_target): Remove the target op.
4293 (class process_target): Add the target op.
4294 * target.cc (process_target::look_up_symbols): Define.
4296 Update the derived classes and callers below.
4298 * server.cc (handle_query): Update.
4299 * linux-low.cc (linux_target_ops): Update.
4300 (linux_look_up_symbols): Turn into ...
4301 (linux_process_target::look_up_symbols): ... this.
4302 * linux-low.h (class linux_process_target): Update.
4303 * lynx-low.cc (lynx_target_ops): Update.
4304 * nto-low.cc (nto_target_ops): Update.
4305 * win32-low.cc (win32_target_ops): Update.
4307 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4309 Turn process_stratum_target's read_memory and write_memory
4310 ops into methods of process_target.
4312 * target.h (struct process_stratum_target): Remove the target ops.
4313 (class process_target): Add the target ops.
4315 Update the derived classes and callers below.
4317 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4318 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4319 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4320 (arm_get_syscall_trapinfo): Update.
4321 * linux-cris-low.cc (cris_breakpoint_at): Update.
4322 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4323 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4324 * linux-mips-low.cc (mips_breakpoint_at): Update.
4325 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4326 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4327 * linux-sh-low.cc (sh_breakpoint_at): Update.
4328 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4329 (sparc_store_gregset_from_stack): Update.
4330 (sparc_breakpoint_at): Update.
4331 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4332 * linux-tile-low.cc (tile_breakpoint_at): Update.
4333 * linux-x86-low.cc (x86_breakpoint_at): Update.
4334 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4335 * mem-brea.cc (insert_memory_breakpoint): Update.
4336 (validate_inserted_breakpoint): Update.
4337 * target.cc (read_inferior_memory): Update.
4338 (target_write_memory): Update.
4339 * linux-low.cc (linux_target_ops): Update.
4340 (linux_read_memory): Make a wrapper around the read_memory target
4342 (linux_process_target::read_memory): Rename from linux_read_memory.
4343 (linux_write_memory): Turn into ...
4344 (linux_process_target::write_memory): ... this.
4345 * linux-low.h (class linux_process_target): Update.
4346 * lynx-low.cc (lynx_target_ops): Update.
4347 (lynx_read_memory): Turn into ...
4348 (lynx_process_target::read_memory): ... this.
4349 (lynx_write_memory): Turn into ...
4350 (lynx_process_target::write_memory): ... this.
4351 * lynx-low.h (class lynx_process_target): Update.
4352 * nto-low.cc (nto_target_ops): Update.
4353 (nto_read_memory): Turn into ...
4354 (nto_process_target::read_memory): ... this.
4355 (nto_write_memory): Turn into ...
4356 (nto_process_target::write_memory): ... this.
4357 * nto-low.h (class nto_process_target): Update.
4358 * win32-low.cc (win32_target_ops): Update.
4359 (win32_read_inferior_memory): Turn into ...
4360 (win32_process_target::read_memory): ... this.
4361 (win32_write_inferior_memory): Turn into ...
4362 (win32_process_target::write_memory): ... this.
4363 * win32-low.h (class win32_process_target): Update.
4365 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4367 Turn process_stratum_target's prepare_to_access_memory and
4368 done_accessing_memory ops into methods of process_target.
4370 * target.h (struct process_stratum_target): Remove the target ops.
4371 (class process_target): Add the target ops.
4372 * target.cc (process_target::prepare_to_access_memory): Define.
4373 (process_target::done_accessing_memory): Define.
4374 (prepare_to_access_memory): Update.
4375 (done_accessing_memory): Update.
4377 Update the derived classes and callers below.
4379 * linux-low.cc (linux_target_ops): Update.
4380 (linux_prepare_to_access_memory): Turn into ...
4381 (linux_process_target::prepare_to_access_memory): ... this.
4382 (linux_done_accessing_memory): Turn into ...
4383 (linux_process_target::done_accessing_memory): ... 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 fetch_registers and store_registers
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.
4396 (fetch_inferior_registers): Update the macro.
4397 (store_inferior_registers): Update the macro.
4399 Update the derived classes and callers below.
4401 * linux-low.cc (linux_target_ops): Update.
4402 (linux_fetch_registers): Turn into ...
4403 (linux_process_target::fetch_registers): ... this.
4404 (linux_store_registers): Turn into ...
4405 (linux_process_target::store_registers): ... this.
4406 * linux-low.h (class linux_process_target): Update.
4407 * lynx-low.cc (lynx_target_ops): Update.
4408 (lynx_fetch_registers): Turn into ...
4409 (lynx_process_target::fetch_registers): ... this.
4410 (lynx_store_registers): Turn into ...
4411 (lynx_process_target::store_registers): ... this.
4412 * lynx-low.h (class lynx_process_target): Update.
4413 * nto-low.cc (nto_target_ops): Update.
4414 (nto_fetch_registers): Turn into ...
4415 (nto_process_target::fetch_registers): ... this.
4416 (nto_store_registers): Turn into ...
4417 (nto_process_target::store_registers): ... this.
4418 * nto-low.h (class nto_process_target): Update.
4419 * win32-low.cc (win32_target_ops): Update.
4420 (win32_fetch_inferior_registers): Turn into ...
4421 (win32_process_target::fetch_registers): ... this.
4422 (win32_store_inferior_registers): Turn into ...
4423 (win32_process_target::store_registers): ... this.
4424 * win32-low.h (class win32_process_target): Update.
4426 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4428 Turn process_stratum_target's wait op into a method of
4431 * target.h (struct process_stratum_target): Remove the target op.
4432 (class process_target): Add the target op.
4434 Update the derived classes and callers below.
4436 * target.cc (target_wait): Update.
4437 * linux-low.cc (linux_target_ops): Update.
4438 (linux_wait): Turn into ...
4439 (linux_process_target::wait): ... this.
4440 * linux-low.h (class linux_process_target): Update.
4441 * lynx-low.cc (lynx_target_ops): Update.
4442 (lynx_wait): Turn into ...
4443 (lynx_process_target::wait): ... this.
4444 * lynx-low.h (class lynx_process_target): Update.
4445 * nto-low.cc (nto_target_ops): Update.
4446 (nto_wait): Turn into ...
4447 (nto_process_target::wait): ... this.
4448 * nto-low.h (class nto_process_target): Update.
4449 * win32-low.cc (win32_target_ops): Update.
4450 (win32_wait): Turn into ...
4451 (win32_process_target::wait): ... this.
4452 (do_initial_child_stuff): Update.
4453 * win32-low.h (class win32_process_target): Update.
4455 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4457 Turn process_stratum_target's resume op into a method of
4460 * target.h (struct process_stratum_target): Remove the target op.
4461 (class process_target): Add the target op.
4463 Update the derived classes and callers below.
4465 * server.cc (resume): Update.
4466 * target.cc (target_stop_and_wait): Update.
4467 (target_continue_no_signal): Update.
4468 (target_continue): Update.
4469 * linux-low.cc (linux_target_ops): Update.
4470 (linux_resume): Turn into ...
4471 (linux_process_target::resume): ... this.
4472 * linux-low.h (class linux_process_target): Update.
4473 * lynx-low.cc (lynx_target_ops): Update.
4474 (lynx_resume): Turn into ...
4475 (lynx_process_target::resume): ... this.
4476 * lynx-low.h (class lynx_process_target): Update.
4477 * nto-low.cc (nto_target_ops): Update.
4478 (nto_resume): Turn into ...
4479 (nto_process_target::resume): ... this.
4480 * nto-low.h (class nto_process_target): Update.
4481 * win32-low.cc (win32_target_ops): Update.
4482 (win32_resume): Turn into ...
4483 (win32_process_target::resume): ... this.
4484 (win32_process_target::detach): Update.
4485 (do_initial_child_stuff): Update.
4486 * win32-low.h (class win32_process_target): Update.
4488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4490 Turn process_stratum_target's thread_alive op into a method of
4493 * target.h (struct process_stratum_target): Remove the target op.
4494 (class process_target): Add the target op.
4495 (mythread_alive): Update the macro.
4497 Update the derived classes and callers below.
4499 * linux-low.cc (linux_target_ops): Update.
4500 (linux_thread_alive): Turn into ...
4501 (linux_process_target::thread_alive): ... this.
4502 (wait_for_sigstop): Update.
4503 * linux-low.h (class linux_process_target): Update.
4504 * lynx-low.cc (lynx_target_ops): Update.
4505 (lynx_thread_alive): Turn into ...
4506 (lynx_process_target::thread_alive): ... this.
4507 * lynx-low.h (class lynx_process_target): Update.
4508 * nto-low.cc (nto_target_ops): Update.
4509 (nto_thread_alive): Turn into ...
4510 (nto_process_target::thread_alive): ... this.
4511 * nto-low.h (class nto_process_target): Update.
4512 * win32-low.cc (win32_target_ops): Update.
4513 (win32_thread_alive): Turn into ...
4514 (win32_process_target::thread_alive): ... this.
4515 * win32-low.h (class win32_process_target): Update.
4517 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4519 Turn process_stratum_target's join op into a method of
4522 * target.h (struct process_stratum_target): Remove the target op.
4523 (class process_target): Add the target op.
4524 (join_inferior): Update the macro.
4526 Update the derived classes and callers below.
4528 * linux-low.cc (linux_target_ops): Update.
4529 (linux_join): Turn into ...
4530 (linux_process_target::join): ... this.
4531 * linux-low.h (class linux_process_target): Update.
4532 * lynx-low.cc (lynx_target_ops): Update.
4533 (lynx_join): Turn into ...
4534 (lynx_process_target::join): ... this.
4535 * lynx-low.h (class lynx_process_target): Update.
4536 * nto-low.cc (nto_target_ops): Update.
4537 (nto_process_target::join): Define.
4538 * nto-low.h (class nto_process_target): Update.
4539 * win32-low.cc (win32_target_ops): Update.
4540 (win32_join): Turn into ...
4541 (win32_process_target::join): ... this.
4542 * win32-low.h (class win32_process_target): Update.
4544 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4546 Turn process_stratum_target's mourn op into a method of
4549 * target.h (struct process_stratum_target): Remove the target op.
4550 (class process_target): Add the target op.
4552 Update the derived classes and callers below.
4554 * target.cc (target_mourn_inferior): Update.
4555 * linux-low.cc (linux_target_ops): Update.
4556 (linux_mourn): Turn into ...
4557 (linux_process_target::mourn): ... this.
4558 (handle_extended_wait): Update.
4559 (linux_process_target::kill): Update.
4560 (linux_process_target::detach): Update.
4561 * linux-low.h (class linux_process_target): Update.
4562 * lynx-low.cc (lynx_target_ops): Update.
4563 (lynx_mourn): Turn into ...
4564 (lynx_process_target::mourn): ... this.
4565 * lynx-low.h (class lynx_process_target): Update.
4566 * nto-low.cc (nto_target_ops): Update.
4567 (nto_mourn): Turn into ...
4568 (nto_process_target::mourn): ... this.
4569 * nto-low.h (class nto_process_target): Update.
4570 * win32-low.cc (win32_target_ops): Update.
4571 (win32_mourn): Turn into ...
4572 (win32_process_target::mourn): ... this.
4573 * win32-low.h (class win32_process_target): Update.
4575 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4577 Turn process_stratum_target's detach op into a method of
4580 * target.h (struct process_stratum_target): Remove the target op.
4581 (class process_target): Add the target op.
4582 (detach_inferior): Update the macro.
4584 Update the derived classes and callers below.
4586 * linux-low.cc (linux_target_ops): Update.
4587 (linux_detach): Turn into ...
4588 (linux_process_target::detach): ... this.
4589 * linux-low.h (class linux_process_target): Update.
4590 * lynx-low.cc (lynx_target_ops): Update.
4591 (lynx_detach): Turn into ...
4592 (lynx_process_target::detach): ... this.
4593 * lynx-low.h (class lynx_process_target): Update.
4594 * nto-low.cc (nto_target_ops): Update.
4595 (nto_detach): Turn into ...
4596 (nto_process_target::detach): ... this.
4597 * nto-low.h (class nto_process_target): Update.
4598 * win32-low.cc (win32_target_ops): Update.
4599 (win32_detach): Turn into ...
4600 (win32_process_target::detach): ... this.
4601 * win32-low.h (class win32_process_target): Update.
4603 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4605 Turn process_stratum_target's kill op into a method of
4608 * target.h (struct process_stratum_target): Remove the target op.
4609 (class process_target): Add the target op.
4611 Update the derived classes and callers below.
4613 * target.cc (kill_inferior): Update.
4614 * linux-low.cc (linux_target_ops): Update.
4615 (linux_kill): Turn into ...
4616 (linux_process_target::kill): ... this.
4617 * linux-low.h (class linux_process_target): Update.
4618 * lynx-low.cc (lynx_target_ops): Update.
4619 (lynx_kill): Turn into ...
4620 (lynx_process_target::kill): ... this.
4621 * lynx-low.h (class lynx_process_target): Update.
4622 * nto-low.cc (nto_target_ops): Update.
4623 (nto_kill): Turn into ...
4624 (nto_process_target::kill): ... this.
4625 * nto-low.h (class nto_process_target): Update.
4626 * win32-low.cc (win32_target_ops): Update.
4627 (win32_kill): Turn into ...
4628 (win32_process_target::kill): ... this.
4629 * win32-low.h (class win32_process_target): Update.
4631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4633 Turn process_stratum_target's attach op into a method of
4636 * target.h (struct process_stratum_target): Remove the target op.
4637 (class process_target): Add the target op.
4638 (myattach): Update the macro.
4640 Update the derived classes and callers below.
4642 * linux-low.cc (linux_target_ops): Update.
4643 (linux_attach): Turn into ...
4644 (linux_process_target::attach): ... this.
4645 * linux-low.h (class linux_process_target): Update.
4646 * lynx-low.cc (lynx_target_ops): Update.
4647 (lynx_attach): Turn into ...
4648 (lynx_process_target::attach): ... this.
4649 * lynx-low.h (class lynx_process_target): Update.
4650 * nto-low.cc (nto_target_ops): Update.
4651 (nto_attach): Turn into ...
4652 (nto_process_target::attach): ... this.
4653 * nto-low.h (class nto_process_target): Update.
4654 * win32-low.cc (win32_target_ops): Update.
4655 (win32_attach): Turn into ...
4656 (win32_process_target::attach): ... this.
4657 * win32-low.h (class win32_process_target): Update.
4659 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4661 Turn process_stratum_target's post_create_inferior op into a method
4664 * target.h (struct process_stratum_target): Remove the target op.
4665 (class process_target): Add the target op.
4666 (target_post_create_inferior): Update the macro.
4667 * target.cc (process_target::post_create_inferior): Define.
4669 Update the derived classes and callers below.
4671 * linux-low.cc (linux_target_ops): Update.
4672 (linux_post_create_inferior): Turn into ...
4673 (linux_process_target::post_create_inferior): ... this.
4674 * linux-low.h (class linux_process_target): Update.
4675 * lynx-low.cc (lynx_target_ops): Update.
4676 * nto-low.cc (nto_target_ops): Update.
4677 * win32-low.cc (win32_target_ops): Update.
4679 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4681 Turn process_stratum_target's create_inferior op into a method of
4684 * target.h (struct process_stratum_target): Remove the target op.
4685 (class process_target): Add the target op.
4686 (create_inferior): Rename the macro to ...
4687 (target_create_inferior): ... this.
4689 Update the derived classes and callers below.
4691 * server.cc (handle_v_run): Update.
4692 (captured_main): Update.
4693 (process_serial_event): Update.
4694 * linux-low.cc (linux_target_ops): Update.
4695 (linux_create_inferior): Turn into ...
4696 (linux_process_target::create_inferior): ... this.
4697 * linux-low.h (class linux_process_target): Update.
4698 * lynx-low.cc (lynx_target_ops): Update.
4699 (lynx_create_inferior): Turn into ...
4700 (lynx_process_target::create_inferior): ... this.
4701 * lynx-low.h (class lynx_process_target): Update.
4702 * nto-low.cc (nto_target_ops): Update.
4703 (nto_create_inferior): Turn into ...
4704 (nto_process_target::create_inferior): ... this.
4705 * nto-low.h (class nto_process_target): Update.
4706 * win32-low.cc (win32_target_ops): Update.
4707 (win32_create_inferior): Turn into ...
4708 (win32_process_target::create_inferior): ... this.
4709 * win32-low.h (class win32_process_target): Update.
4711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4713 * target.h (class process_target): New class definition.
4714 (struct process_stratum_target) <pt>: New field with type
4716 * linux-low.h (class linux_process_target): Define as a derived
4717 class of 'process_target'.
4718 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4720 * lynx-low.h (class lynx_process_target): Define as a derived
4721 class of 'process_target'.
4722 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4724 * nto-low.h (class nto_process_target): Define as a derived
4725 class of 'process_target'.
4726 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4728 * win32-low.h (class win32_process_target): Define as a derived
4729 class of 'process_target'.
4730 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4733 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4735 * configure: Regenerate.
4737 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4738 Andrew Burgess <andrew.burgess@embecosm.com>
4740 * linux-riscv-low.cc: New file.
4741 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4742 and nat/riscv-linux-tdesc.c.
4743 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4744 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4747 2020-02-14 Tom Tromey <tom@tromey.com>
4749 * acinclude.m4: Don't include acx_configure_dir.m4.
4750 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4751 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4752 (all, install-only, uninstall, clean-info, clean)
4753 (maintainer-clean): Don't recurse.
4754 (subdir_do, all-lib): Remove.
4755 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4757 (generated_files): Update.
4758 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4759 * configure: Rebuild.
4760 * configure.ac: Don't configure gnulib or libiberty.
4763 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4765 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4766 preparing the command line for CreateProcess.
4767 (win32_create_inferior): Reflect the program name in debugging
4768 output that shows the process and its command line.
4770 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4772 * Makefile.in: Rename source files from .c to .cc.
4773 * %.c: Rename to %.cc.
4774 * configure.ac: Rename server.c to server.cc.
4775 * configure: Re-generate.
4777 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4779 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4781 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4783 * win32-low.c (win32_create_inferior): Set signal_pid.
4785 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4786 Pedro Alves <palves@redhat.com>
4788 Skip building gdbserver in a cross-configuration.
4789 * configure.srv: Set $gdbserver_host depending on whether $target
4790 is $host. Use $gdbserver_host instead of $host.
4792 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4794 * configure: Re-generate.
4796 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4798 * configure: Re-generate.
4800 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4802 * acinclude.m4: Update warning.m4 path.
4804 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4806 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4807 (handle_exception): Set siginfo_er.
4808 (win32_xfer_siginfo): New function.
4810 2020-02-07 Tom Tromey <tom@tromey.com>
4811 Pedro Alves <palves@redhat.com>
4813 * README: Update build documentation.
4814 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4816 * configure.ac: Update paths.
4817 * configure: Rebuild.
4818 * acinclude.m4: Update paths.
4819 * Makefile.in: Update include paths.
4820 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4821 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4822 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4823 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4824 (%-generated.c): Update paths.
4825 * Move entire directory from ../gdb/gdbserver.
4827 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4829 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4831 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4833 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4834 assignment instead of srv_linux_obj.
4836 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4838 * server.c (handle_qxfer_libraries): Write segment-address with
4841 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4843 * Makefile.in (install-strip): New target.
4844 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4845 * aclocal.m4: Regenerate.
4846 * configure: Regenerate.
4847 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4849 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4851 * Makefile.in (SFILES): Adjust paths to point to real files.
4852 (OBS): Move waitstatus.o to target/waitstatus.o.
4853 (TAGS): Transform paths appropriately.
4855 (nat/%.o): ... this pattern rule.
4857 (target/%.o): ... this pattern rule.
4858 * configure.srv: Adjust paths throughout to include nat/ prefix
4859 with the revant files.
4860 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4861 * configure: Regenerate.
4863 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4865 * Makefile.in (TAGS): Remove config files from the recipe.
4867 2020-01-14 Tom Tromey <tom@tromey.com>
4869 * configure: Rebuild.
4870 * configure.ac: Remove any checks that were added to common.m4.
4871 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4874 2020-01-14 Tom Tromey <tom@tromey.com>
4876 * server.h: Include config.h.
4877 * gdbreplay.c: Include config.h.
4878 * configure: Rebuild.
4879 * configure.ac: Don't source common.host.
4880 * acinclude.m4: Update path.
4881 * Makefile.in (INCSUPPORT): New variable.
4882 (INCLUDE_CFLAGS): Add INCSUPPORT.
4883 (SFILES): Update paths.
4884 (version-generated.c): Update path to create-version.sh.
4885 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4887 2020-01-14 Tom Tromey <tom@tromey.com>
4889 * configure.ac (LIBS): Use WIN32APILIBS.
4890 (USE_WIN32API): Don't define.
4891 * configure: Rebuild.
4893 2020-01-14 Tom Tromey <tom@tromey.com>
4895 * configure: Rebuild.
4897 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4899 * Makefile.in (%-generated.c): Remove rule for files from
4902 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4904 * configure: Re-generate.
4906 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4908 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4910 * tracepoint.c (stop_tracing, flush_trace_buffer,
4911 about_to_request_buffer_space, get_trace_state_variable_value,
4912 set_trace_state_variable_value, gdb_collect): Add declaration.
4914 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4916 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4917 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4918 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4919 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4920 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4923 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4925 * inferiors.c: Include gdbsupport/common-inferior.h.
4927 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4929 * hostio-errno.c: Include hostio.h.
4931 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4933 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4936 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4938 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4939 * linux-arm-tdesc.h: Include arch/arm.h.
4941 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4943 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4945 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4947 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4948 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4950 2020-01-10 Pedro Alves <palves@redhat.com>
4952 * fork-child.c (post_fork_inferior): Pass target down to
4954 * inferiors.c (switch_to_thread): Add process_stratum_target
4956 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4957 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4958 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4959 * remote-utils.c (prepare_resume_reply): Pass the target to
4961 * target.c (the_target): Now a process_stratum_target.
4962 (done_accessing_memory): Pass the target to switch_to_thread.
4963 (set_target_ops): Ajust to use process_stratum_target.
4964 * target.h (struct target_ops): Rename to ...
4965 (struct process_stratum_target): ... this.
4966 (the_target, set_target_ops): Adjust.
4967 (prepare_to_access_memory): Adjust comment.
4968 * win32-low.c (child_xfer_memory): Adjust to use
4969 process_stratum_target.
4970 (win32_target_ops): Now a process_stratum_target.
4972 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4973 Pedro Alves <palves@redhat.com>
4975 * win32-low.c (get_child_debug_event): Extract the fatal exception
4976 from the exit status and convert to the equivalent Posix signal
4978 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4979 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4981 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4983 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4985 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4987 * server.c (gdbserver_version): Change copyright year to 2020.
4988 * gdbreplay.c (gdbreplay_version): Likewise.
4990 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4992 * configure: Regenerate.
4993 * configure.ac: Quote variable arguments of test.
4995 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4997 * Makefile.in: Fix build with GNU Make 3.81
4999 2019-12-16 Tom Tromey <tromey@adacore.com>
5001 * server.c (get_exec_file): Constify result.
5003 2019-12-10 Christian Biesinger <cbiesinger@google.com>
5005 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5006 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5007 * config.in: Regenerate.
5008 * configure: Regenerate.
5009 * configure.ac: Don't check for strerror.
5010 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5011 Call safe_strerror instead of strerror.
5012 * server.h (strerror): Remove this now-unnecessary declaration.
5013 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5015 (gdb_agent_helper_thread): Likewise.
5016 * utils.c (perror_with_name): Likewise.
5018 2019-11-26 Tom Tromey <tom@tromey.com>
5020 * configure, config.in: Rebuild.
5022 2019-11-26 Tom Tromey <tom@tromey.com>
5024 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5025 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5027 * configure, config.in: Rebuild.
5029 2019-11-26 Tom Tromey <tom@tromey.com>
5031 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5032 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5033 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5034 * acinclude.m4: Include ax_pthread.m4.
5035 * config.in, configure: Rebuild.
5037 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5039 * debug.c (debug_set_output): Call safe_strerror instead of
5041 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5042 (linux_kill_one_lwp): Likewise.
5043 (linux_detach_one_lwp): Likewise.
5044 (linux_wait_for_event_filtered): Likewise.
5045 (store_register): Likewise.
5046 * lynx-low.c (lynx_attach): Likewise.
5047 * mem-break.c (insert_memory_breakpoint): Likewise.
5048 (remove_memory_breakpoint): Likewise.
5049 (delete_fast_tracepoint_jump): Likewise.
5050 (set_fast_tracepoint_jump): Likewise.
5051 (uninsert_fast_tracepoint_jumps_at): Likewise.
5052 (reinsert_fast_tracepoint_jumps_at): Likewise.
5053 * nto-low.c (nto_xfer_memory): Likewise.
5054 (nto_resume): Likewise.
5056 2019-11-20 Luis Machado <luis.machado@linaro.org>
5058 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5059 instead of register count.
5060 * tdesc.c (tdesc_contains_feature): New function.
5061 * tdesc.h (tdesc_contains_feature): New prototype.
5063 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5065 * Makefile.in: Add safe-strerror.c.
5066 * configure: Regenerate.
5067 * configure.ac: Don't source common.host.
5069 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5071 * config.in: Regenerate.
5072 * configure: Regenerate.
5074 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5076 * ax.c (ax_printf): Handle size_t_arg.
5078 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5080 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5081 * mi/mi-main.c (output_cores): Likewise.
5082 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5083 (linux_xfer_osdata_modules): Likewise.
5084 * remote.c (register_remote_support_xml): Likewise.
5085 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5086 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5088 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5090 * configure: Regenerate.
5091 * configure.ac: Remove check for strerror_r.
5093 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5095 * config.in: Regenerate.
5096 * configure: Regenerate.
5097 * configure.ac: Also check for strerror_r.
5099 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5101 * ax.h (debug_agent): Remove duplicate declaration.
5103 2019-10-26 Tom de Vries <tdevries@suse.de>
5105 * linux-aarch64-low.c: Fix typos in comments.
5106 * linux-arm-low.c: Same.
5107 * linux-low.c: Same.
5108 * linux-ppc-low.c: Same.
5109 * proc-service.c: Same.
5112 * tracepoint.c: Same.
5113 * win32-low.c: Same.
5115 2019-10-25 Tom Tromey <tromey@adacore.com>
5117 * utils.c (xstrdup): Remove.
5119 2019-10-23 Tom Tromey <tom@tromey.com>
5121 * configure, config.in: Rebuild.
5123 2019-10-23 Tom Tromey <tom@tromey.com>
5125 * configure: Rebuild.
5126 * acinclude.m4: Use m4_include, not sinclude.
5128 2019-10-17 Tom Tromey <tromey@adacore.com>
5130 * configure: Rebuild.
5131 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5132 in AC_CONFIG_FILES invocation.
5133 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5136 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5138 * server.c: Include xml-builtin.h.
5139 (get_xml_features): Don't declare xml_builtins here.
5141 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5143 * Makefile.in: Remove references to vec-ipa.o.
5145 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5147 * Makefile.in: Remove references to vec.c.
5149 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5151 * server.c (server_waiting): Change to bool.
5152 (extended_protocol): Likewise.
5153 (response_needed): Likewise.
5154 (exit_requested): Likewise.
5155 (run_once): Likewise.
5156 (report_no_resumed): Likewise.
5157 (non_stop): Likewise.
5158 (disable_packet_vCont): Likewise.
5159 (disable_packet_Tthread): Likewise.
5160 (disable_packet_qC): Likewise.
5161 (disable_packet_qfThreadInfo): Likewise.
5162 (handle_general_set): Update.
5163 (handle_detach): Update.
5164 (handle_monitor_command): Update.
5165 (handle_query): Update.
5166 (captured_main): Update.
5167 (process_serial_event): Update.
5168 * server.h (server_waiting): Change to bool.
5169 (disable_packet_vCont): Likewise.
5170 (disable_packet_Tthread): Likewise.
5171 (disable_packet_qC): Likewise.
5172 (disable_packet_qfThreadInfo): Likewise.
5173 (run_once): Likewise.
5174 (non_stop): Likewise.
5175 * target.c (target_stop_and_wait): Update.
5177 2019-10-02 Tom Tromey <tromey@adacore.com>
5179 * Makefile.in (SFILES): Add common-inferior.c.
5180 (OBS): Add common-inferior.o.
5181 * server.c (startup_with_shell): Don't define.
5183 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5185 * linux-low.c (linux_low_read_btrace): Update for change to
5188 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5190 * debug.c (debug_threads): Remove comment in favor of the header.
5191 * debug.h (using_threads): Add declaration.
5192 (debug_threads): Add comment.
5193 * linux-aarch64-low.c: Include debug.h and remove declaration of
5195 * nto-low.c: Likewise.
5196 * remote-utils.c: Likewise.
5197 * thread-db.c: Likewise.
5199 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5201 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5202 and powerpc-cell64l-ipa.o.
5203 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5204 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5205 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5208 * spu-low.c: Remove file.
5210 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5211 (parse_spufs_run): Remove.
5212 (ppc_get_pc): Remove Cell/B.E. support.
5213 (ppc_set_pc): Likewise.
5214 (ppc_breakpoint_at): Likewise.
5215 (ppc_arch_setup): Likewise.
5216 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5217 tdesc_powerpc_cell32l.
5218 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5219 or init_registers_powerpc_cell32l.
5220 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5221 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5222 or init_registers_powerpc_cell32l.
5223 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5224 (init_registers_powerpc_cell32l): Remove prototype.
5225 (init_registers_powerpc_cell64l): Likewise.
5227 * target.h (struct target_ops): Remove qxfer_spu member.
5228 * server.c (handle_qxfer_spu): Remove.
5229 (qxfer_packets): Remove entry for "spu".
5230 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5231 * linux-low.c (SPUFS_MAGIC): Remove.
5232 (spu_enumerate_spu_ids): Remove.
5233 (linux_qxfer_spu): Remove.
5234 (linux_target_ops): Remove qxfer_spu member.
5235 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5236 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5237 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5239 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5241 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5242 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5243 * config.in: Regenerate.
5244 * configure: Regenerate.
5246 2019-08-15 Tom Tromey <tromey@adacore.com>
5248 * target.c (target_write_memory): Use gdb::byte_vector.
5250 2019-08-15 Tom Tromey <tromey@adacore.com>
5252 * tracepoint.c (write_inferior_data_pointer)
5253 (write_inferior_integer, write_inferior_int8)
5254 (write_inferior_uinteger, m_tracepoint_action_download)
5255 (r_tracepoint_action_download, x_tracepoint_action_download)
5256 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5257 (download_agent_expr, download_tracepoint_1)
5258 (download_trace_state_variables, upload_fast_traceframes): Update.
5259 * server.c (gdb_write_memory): Update.
5260 * remote-utils.c (relocate_instruction): Update.
5261 * proc-service.c (ps_pdwrite): Update.
5262 * mem-break.c (remove_memory_breakpoint)
5263 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5264 (uninsert_fast_tracepoint_jumps_at)
5265 (reinsert_fast_tracepoint_jumps_at): Update.
5266 * linux-x86-low.c (append_insns)
5267 (i386_install_fast_tracepoint_jump_pad)
5268 (amd64_write_goto_address, i386_write_goto_address): Update.
5269 * linux-s390-low.c (append_insns, s390_write_goto_address):
5271 * linux-ppc-low.c (ppc_relocate_instruction)
5272 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5273 (ppc_write_goto_address): Update.
5274 * linux-aarch64-low.c (append_insns): Update.
5275 * target.h (struct target_ops): Update.
5276 (write_inferior_memory): Don't declare.
5277 * target.c (target_write_memory): Rename from
5278 write_inferior_memory. Remove old target_write_memory.
5280 2019-08-15 Tom Tromey <tromey@adacore.com>
5282 * target.c (write_inferior_memory): Use std::vector.
5284 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5287 * configure.ac: Drop enable-libmcheck support.
5288 * configure, config.in: Rebuild.
5289 * acinclude.m4: Don't include it.
5291 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5293 * configure.srv: Remove Arm xml files.
5295 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5297 * configure.srv: Add new files. Remove xml generated files.
5298 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5300 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5301 * linux-aarch32-tdesc.c: New file.
5302 * linux-aarch32-tdesc.h: New file.
5303 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5304 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5305 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5306 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5307 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5308 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5309 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5310 (arm_read_description): Call arm_linux_read_description.
5311 (initialize_low_arch): Don't init registers.
5312 * linux-arm-tdesc.c: New file.
5313 * linux-arm-tdesc.h: New file.
5315 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5317 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5318 Move counter inside for.
5319 (arm_read_description): Check ptrace earlier.
5320 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5322 2019-07-09 Tom Tromey <tom@tromey.com>
5324 * configure: Rebuild.
5325 * configure.ac: Change common to gdbsupport.
5326 * acinclude.m4: Change common to gdbsupport.
5327 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5328 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5329 common to gdbsupport.
5330 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5331 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5332 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5333 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5334 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5335 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5336 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5337 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5338 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5339 common to gdbsupport.
5341 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5343 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5345 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5347 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5349 * configure.srv: Remove legacy xml.
5350 * linux-aarch64-low.c (initialize_low_arch): Remove
5351 initialize_low_tdesc call.
5352 * linux-aarch64-tdesc-selftest.c: Remove file.
5353 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5354 * linux-x86-low.c (initialize_low_arch): Remove
5355 initialize_low_tdesc call.
5356 * linux-x86-tdesc-selftest.c: Remove file.
5357 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5359 2019-06-20 Tom de Vries <tdevries@suse.de>
5361 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5362 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5364 2019-06-19 Tom de Vries <tdevries@suse.de>
5366 * debug.h (debug_write): Change return type to ssize_t.
5367 * debug.c (debug_write): Same.
5369 2019-06-14 Tom Tromey <tom@tromey.com>
5371 * configure.ac: Use new path to gnulib.
5372 * configure: Rebuild.
5373 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5376 2019-06-11 Tom Tromey <tom@tromey.com>
5378 * Makefile.in (SFILES): Add alloc.c.
5380 (IPA_OBJS): Add alloc-ipa.o.
5381 (alloc-ipa.o): New target.
5382 (%.o: ../%.c): New pattern rule.
5384 2019-06-10 Tom Tromey <tromey@adacore.com>
5386 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5387 end warning with a newline.
5388 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5390 * thread-db.c (attach_thread): Don't end warning with a newline.
5391 (thread_db_notice_clone): Likewise.
5392 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5394 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5395 end warning with a newline.
5397 2019-06-04 Pedro Alves <palves@redhat.com>
5399 * server.c (captured_main): Use make_unique_xstrdup.
5401 2019-06-02 Tom Tromey <tom@tromey.com>
5403 * gdbreplay.c (fromhex): Remove.
5404 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5406 2019-05-29 Tom Tromey <tromey@adacore.com>
5408 * configure: Rebuild.
5410 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5412 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5413 sign extension code on 32-bit builds.
5415 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5418 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5420 2019-04-19 Tom Tromey <tom@tromey.com>
5422 * server.c (struct vstop_notif): Derive from notif_event.
5424 (queue_stop_reply): Update.
5425 (remove_all_on_match_ptid): Change type. Rewrite.
5426 (discard_queued_stop_replies): Rewrite.
5427 (in_queued_stop_replies_ptid): Change type.
5428 (in_queued_stop_replies): Rewrite.
5429 (notif_stop): Update.
5430 (queue_stop_reply_callback): Update.
5431 (captured_main): Don't call initialize_notif.
5432 (push_stop_notification): Update.
5433 * notif.c (notif_write_event, handle_notif_ack)
5434 (notif_event_enque, notif_push): Update.
5435 (notif_event_xfree, initialize_notif): Remove.
5436 * notif.h (struct notif_event): Include <list>, not
5438 (struct notif_server) <queue>: Now a std::list.
5439 (notif_event_p): Remove typedef.
5440 (initialize_notif): Don't declare.
5441 (struct notif_event): Add virtual destructor.
5443 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5445 * ax.c (ax_vdebug): Call debug_printf.
5446 * debug.c (debug_write): New function.
5447 * debug.h (debug_write): New declaration.
5448 * linux-low.c (sigchld_handler): Call debug_write.
5450 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5452 * debug.c (debug_set_output): New function.
5453 (debug_vprintf): Send output to debug_file.
5454 (debug_flush): Likewise.
5455 * debug.h (debug_set_output): New declaration.
5456 * server.c (handle_monitor_command): Add debug-file option.
5457 (captured_main): Likewise.
5459 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5461 * debug.c (remote_debug): Add definition.
5462 * debug.h (remote_debug): Add declaration.
5463 * hostio.c (remote_debug): Remove declaration.
5464 * remote-utils.c (struct ui_file): Likewise.
5465 (remote_debug): Likewise.
5466 * remote-utils.h (remote_debug): Likewise,
5467 * server.c (remote_debug): Remove definition.
5469 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5471 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5472 when using a 64-bit gdbserver.
5474 2019-04-09 Tom Tromey <tromey@adacore.com>
5476 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5478 2019-04-08 Tom Tromey <tom@tromey.com>
5480 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5482 (linux_resume_one_lwp): Likewise.
5484 2019-04-08 Tom Tromey <tom@tromey.com>
5486 * gdbreplay.c: Update.
5487 * linux-low.c: Update.
5490 2019-04-08 Tom Tromey <tom@tromey.com>
5492 * server.c: Use C++ exception handling.
5493 * linux-low.c: Use C++ exception handling.
5494 * gdbreplay.c: Use C++ exception handling.
5496 2019-04-08 Tom Tromey <tom@tromey.com>
5498 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5499 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5500 (captured_main, main): Update.
5501 * gdbreplay.c (main): Update.
5503 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5505 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5506 value in argument pointer, return 1 if the entry is found and 0
5507 otherwise. Move comment.
5508 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5509 * linux-low.h (linux_get_auxv): Declare.
5510 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5512 2019-04-05 Tom Tromey <tromey@adacore.com>
5514 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5517 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5519 * linux-low.c (AT_HWCAP2): Add define if not already included.
5521 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5523 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5524 (aarch64_arch_setup): Call linux_get_hwcap.
5525 * linux-arm-low.c (arm_get_hwcap): Remove function.
5526 (arm_read_description): Call linux_get_hwcap.
5527 * linux-low.c (linux_get_auxv): New function.
5528 (linux_get_hwcap): Likewise.
5529 (linux_get_hwcap2): Likewise.
5530 * linux-low.h (linux_get_hwcap): New declaration.
5531 (linux_get_hwcap2): Likewise.
5532 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5533 (ppc_arch_setup): Call linux_get_hwcap.
5534 * linux-s390-low.c (s390_get_hwcap): Remove function.
5535 (s390_arch_setup): Call linux_get_hwcap.
5537 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5538 Jiong Wang <jiong.wang@arm.com>
5540 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5541 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5543 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5545 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5546 Jiong Wang <jiong.wang@arm.com>
5548 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5549 (aarch64_get_hwcap): New function.
5550 (aarch64_arch_setup): Read APIA hwcap.
5552 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5553 Jiong Wang <jiong.wang@arm.com>
5555 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5556 (initialize_low_tracepoint): Likewise.
5557 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5558 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5559 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5560 (aarch64_linux_read_description): Likewise.
5561 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5565 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5566 i386_create_target_description for 'segments' parameter.
5567 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5568 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5569 * win32-i386-low.c (i386_arch_setup): Likewise.
5571 2019-03-12 Tom Tromey <tromey@adacore.com>
5573 * linux-low.c (iterate_over_lwps): Update.
5575 2019-03-06 Tom Tromey <tom@tromey.com>
5577 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5578 (captured_main): Use SCOPE_EXIT.
5580 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5582 * configure.srv: Use '$enable_unittest' instead of '$development'
5583 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5586 2019-02-27 Tom Tromey <tromey@adacore.com>
5588 * gdbreplay.c (logchar): Handle \r\n.
5590 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5592 * linux-low.c (linux_attach): Add process before lwp.
5593 * server.c (attach_inferior): Check if already attached.
5595 2019-02-07 Tom Tromey <tom@tromey.com>
5597 * x86-tdesc.h: Rename include guard.
5598 * x86-low.h: Add include guard.
5599 * wincecompat.h: Rename include guard.
5600 * win32-low.h: Add include guard.
5601 * utils.h: Rename include guard.
5602 * tracepoint.h: Rename include guard.
5603 * tdesc.h: Rename include guard.
5604 * target.h: Rename include guard.
5605 * server.h: Rename include guard.
5606 * remote-utils.h: Rename include guard.
5607 * regcache.h: Rename include guard.
5608 * nto-low.h: Rename include guard.
5609 * notif.h: Add include guard.
5610 * mem-break.h: Rename include guard.
5611 * lynx-low.h: Add include guard.
5612 * linux-x86-tdesc.h: Add include guard.
5613 * linux-s390-tdesc.h: Add include guard.
5614 * linux-ppc-tdesc-init.h: Add include guard.
5615 * linux-low.h: Add include guard.
5616 * linux-aarch64-tdesc.h: Add include guard.
5617 * linux-aarch32-low.h: Add include guard.
5618 * inferiors.h: Rename include guard.
5619 * i387-fp.h: Rename include guard.
5620 * hostio.h: Rename include guard.
5621 * gdbthread.h: Rename include guard.
5622 * gdb_proc_service.h: Rename include guard.
5623 * event-loop.h: Rename include guard.
5624 * dll.h: Rename include guard.
5625 * debug.h: Rename include guard.
5626 * ax.h: Rename include guard.
5628 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5631 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5632 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5634 2019-01-25 Tom Tromey <tom@tromey.com>
5636 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5638 2019-01-25 Tom Tromey <tom@tromey.com>
5640 * win32-low.c: Fix common/ includes.
5641 * win32-i386-low.c: Fix common/ includes.
5642 * tracepoint.c: Fix common/ includes.
5643 * thread-db.c: Fix common/ includes.
5644 * target.h: Fix common/ includes.
5645 * symbol.c: Fix common/ includes.
5646 * spu-low.c: Fix common/ includes.
5647 * server.h: Fix common/ includes.
5648 * server.c: Fix common/ includes.
5649 * remote-utils.c: Fix common/ includes.
5650 * regcache.h: Fix common/ includes.
5651 * regcache.c: Fix common/ includes.
5652 * nto-x86-low.c: Fix common/ includes.
5653 * notif.h: Fix common/ includes.
5654 * mem-break.h: Fix common/ includes.
5655 * lynx-low.c: Fix common/ includes.
5656 * lynx-i386-low.c: Fix common/ includes.
5657 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5658 * linux-x86-low.c: Fix common/ includes.
5659 * linux-low.c: Fix common/ includes.
5660 * inferiors.h: Fix common/ includes.
5661 * i387-fp.c: Fix common/ includes.
5662 * hostio.c: Fix common/ includes.
5663 * hostio-errno.c: Fix common/ includes.
5664 * gdbthread.h: Fix common/ includes.
5665 * gdbreplay.c: Fix common/ includes.
5666 * fork-child.c: Fix common/ includes.
5667 * event-loop.c: Fix common/ includes.
5669 (enum gdb_agent_op): Fix common/ includes.
5671 2019-01-21 Tom Tromey <tom@tromey.com>
5673 * tracepoint.c: Fix includes.
5674 * remote-utils.c: Fix includes.
5675 * linux-x86-low.c: Fix includes.
5677 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5679 * gdbreplay.c (gdbreplay_version): Update copyright year in
5681 * server.c (gdbserver_version): Likewise.
5683 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5685 * linux-low.c (add_lwp): Switch ordering.
5687 2018-11-29 Tom Tromey <tom@tromey.com>
5689 * win32-low.c (win32_join): Take pid, not process.
5690 * target.h (struct target_ops) <join>: Change argument type.
5691 (join_inferior): Change argument name.
5692 * spu-low.c (spu_join): Take pid, not process.
5693 * server.c (handle_detach): Preserve pid before destroying
5695 * lynx-low.c (lynx_join): Take pid, not process.
5696 * linux-low.c (linux_join): Take pid, not process.
5698 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5700 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5701 (aarch64_cannot_fetch_register): Likewise.
5702 (struct linux_target_ops): Update references.
5704 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5706 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5708 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5710 * configure.srv (ipa_ppc_linux_regobj): Add
5711 powerpc-isa207-htm-vsx32l-ipa.o and
5712 powerpc-isa207-htm-vsx64l-ipa.o.
5713 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5714 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5715 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5716 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5717 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5718 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5719 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5720 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5721 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5722 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5723 (init_registers_powerpc_isa207_htm_vsx32l)
5724 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5725 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5726 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5727 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5728 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5729 (ppc_store_tm_ctarregset): New functions.
5730 (ppc_regsets): Add entries for HTM regsets.
5731 (ppc_arch_setup): Set htm in features struct when needed. Set
5732 sizes for the HTM regsets.
5733 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5734 (initialize_low_arch): Call
5735 init_registers_powerpc_isa207_htm_vsx32l and
5736 init_registers_powerpc_isa207_htm_vsx64l.
5737 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5738 PPC_TDESC_ISA207_HTM_VSX.
5739 (initialize_low_tracepoint): Call
5740 init_registers_powerpc_isa207_htm_vsx32l and
5741 init_registers_powerpc_isa207_htm_vsx64l.
5743 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5745 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5746 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5747 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5748 (ppc_store_pmuregset): New functions.
5749 (ppc_regsets): Add entries for ebb and pmu regsets.
5750 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5751 pmu regsets are available. Set sizes for these regsets.
5753 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5755 * configure.srv (ipa_ppc_linux_regobj): Add
5756 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5757 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5758 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5759 rs6000/powerpc-isa207-vsx32l.xml, and
5760 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5761 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5762 <PPC_TDESC_ISA207_VSX>: New enum value.
5763 (init_registers_powerpc_isa207_vsx32l): Declare.
5764 (init_registers_powerpc_isa207_vsx64l): Declare.
5765 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5766 (ppc_store_tarregset): New function.
5767 (ppc_regsets): Add entry for the TAR regset.
5768 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5769 size for the TAR regsets.
5770 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5771 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5772 and init_registers_powerpc_isa207_vsx64l.
5773 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5774 (initialize_low_tracepoint): Call
5775 init_registers_powerpc_isa207_vsx32l and
5776 init_registers_powerpc_isa207_vsx64l.
5778 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5779 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5781 * configure.srv (ipa_ppc_linux_regobj): Add
5782 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5783 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5784 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5785 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5786 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5787 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5788 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5789 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5790 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5791 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5792 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5793 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5794 (ppc_hwcap): Add comment.
5795 (ppc_hwcap2): New global.
5796 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5797 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5798 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5799 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5800 when needed. Set sizes for the the DSCR and PPR regsets.
5801 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5802 (initialize_low_arch): Call
5803 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5804 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5805 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5806 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5807 (initialize_low_tracepoint): Call
5808 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5809 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5811 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5813 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5815 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5816 Simon Marchi <simark@simark.ca>
5818 * acinclude.m4: Include "../selftest.m4".
5819 * configure: Regenerate.
5820 * configure.ac: Use "GDB_AC_SELFTEST".
5821 * configure.srv: Use "$enable_unittests" instead of
5822 "$development" when checking whether unit tests have been
5824 * server.c (captured_main): Update message informing that
5825 selftests have been disabled.
5827 2018-10-04 Tom Tromey <tom@tromey.com>
5829 * configure: Rebuild.
5831 2018-10-04 Tom Tromey <tom@tromey.com>
5833 * server.c (handle_status): Rename inner "thread".
5834 (process_serial_event): Declare "res" in 'm' case.
5835 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5836 (iterate_over_lwps): Rename inner "thread".
5837 (linux_qxfer_libraries_svr4): Rename inner "len".
5838 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5840 2018-10-01 Gary Benson <gbenson@redhat.com>
5842 * gdb_proc_service.h: Moved common code to
5843 common/gdb_proc_service.h.
5845 2018-10-01 Gary Benson <gbenson@redhat.com>
5847 * gdb_proc_service.h: Synchronize comments and whitespace with
5848 GDB's version of this file.
5850 2018-09-25 Tom Tromey <tom@tromey.com>
5852 * configure: Rebuild.
5853 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5855 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5857 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5858 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5859 ($(IPA_LIB)): Sort IPA_OBJS.
5861 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5863 * Makefile.in: Remove references to $(ADD_DEPS).
5865 2018-09-16 Tom Tromey <tom@tromey.com>
5867 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5869 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5872 2018-09-05 Tom Tromey <tom@tromey.com>
5874 * configure: Rebuild.
5876 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5879 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5881 2018-08-27 Tom Tromey <tom@tromey.com>
5884 * configure: Rebuild.
5886 2018-08-27 Tom Tromey <tom@tromey.com>
5888 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5889 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5890 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5891 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5892 (s390x_emit_stack_adjust): Add casts to unsigned char.
5894 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5898 * server.h (struct client_state) <disable_randomization>:
5901 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5903 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5905 (mips_supply_ptrace_register): Likewise.
5907 2018-07-22 Tom Tromey <tom@tromey.com>
5909 * configure: Rebuild.
5911 2018-07-22 Tom Tromey <tom@tromey.com>
5913 * win32-low.c (win32_create_inferior): Remove unused variables.
5914 * gdbreplay.c (remote_open): Remove unused variable.
5915 * remote-utils.c (remote_prepare): Remove unused variable.
5916 * x86-tdesc.h (X86_TDESC_H): Define.
5917 (amd64_expedite_regs): Define conditionally.
5918 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5919 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5920 * remote-utils.c (readchar): Remove unused variable.
5922 2018-07-13 Pedro Alves <palves@redhat.com>
5924 * linux-low.c (linux_kill): Change parameter to process_info
5925 pointer instead of pid. Adjust.
5926 * lynx-low.c (lynx_kill): Likewise.
5927 * nto-low.c (nto_kill): Likewise.
5928 * spu-low.c (spu_kill): Likewise.
5929 * win32-low.c (win32_kill): Likewise.
5930 * server.c (handle_v_kill, kill_inferior_callback)
5931 (detach_or_kill_for_exit): Adjust.
5932 * target.c (kill_inferior): Change parameter to process_info
5933 pointer instead of pid. Adjust.
5934 * target.h (struct target_ops) <kill>: Change parameter to
5935 process_info pointer instead of pid. Adjust all implementations
5937 (kill_inferior): Likewise.
5939 2018-07-13 Pedro Alves <palves@redhat.com>
5941 * linux-low.c (linux_detach, linux_join): Change parameter to
5942 process_info pointer instead of pid. Adjust.
5943 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5944 * nto-low.c (nto_detach): Likewise.
5945 * spu-low.c (spu_detach, spu_join): Likewise.
5946 * win32-low.c (win32_detach, win32_join): Likewise.
5947 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5948 * target.h (struct target_ops) <detach, join>: Change parameter to
5949 process_info pointer instead of pid. Adjust all implementations
5951 (detach_inferior, join_inferior): Rename 'pid' parameter to
5954 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5955 Jan Kratochvil <jan.kratochvil@redhat.com>
5956 Paul Fertser <fercerpav@gmail.com>
5957 Tsutomu Seki <sekiriki@gmail.com>
5959 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5960 (OBS): Add 'common/netstuff.o'.
5961 (GDBREPLAY_OBS): Likewise.
5962 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5963 (remote_open): Implement support for IPv6
5965 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5967 (handle_accept_event): Accept connections from IPv6 sources.
5968 (remote_prepare): Handle IPv6-style hostnames; implement
5969 support for IPv6 connections.
5970 (remote_open): Implement support for printing connections from
5973 2018-07-11 Pedro Alves <palves@redhat.com>
5976 * mem-break.c (any_persistent_commands): Add process_info
5977 parameter and use it instead of relying on the current process.
5978 Change return type to bool.
5979 * mem-break.h (any_persistent_commands): Add process_info
5980 parameter and change return type to bool.
5981 * server.c (handle_detach): Remove require_running_or_return call.
5982 Look up the process_info for the process we're about to detach.
5983 If not found, return back error to GDB. Adjust
5984 any_persistent_commands call to pass down a process pointer.
5986 2018-07-11 Pedro Alves <palves@redhat.com>
5988 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5989 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5990 instead of collect_register_by_name.
5991 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5992 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5994 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5995 Pedro Alves <palves@redhat.com>
5997 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5999 2018-07-03 Tom Tromey <tom@tromey.com>
6001 * linux-low.c: Update.
6002 * lynx-low.c: Update.
6003 * mem-break.c: Update.
6004 * nto-low.c: Update.
6005 * remote-utils.c: Update.
6007 * spu-low.c: Update.
6009 * win32-low.c: Update.
6011 2018-07-03 Tom Tromey <tom@tromey.com>
6015 2018-07-03 Tom Tromey <tom@tromey.com>
6017 * linux-low.c: Update.
6019 2018-07-03 Tom Tromey <tom@tromey.com>
6023 2018-07-03 Tom Tromey <tom@tromey.com>
6025 * linux-low.c: Update.
6026 * linux-mips-low.c: Update.
6027 * lynx-low.c: Update.
6028 * nto-low.c: Update.
6029 * remote-utils.c: Update.
6031 * spu-low.c: Update.
6033 * thread-db.c: Update.
6035 2018-07-03 Tom Tromey <tom@tromey.com>
6037 * linux-low.c: Update.
6038 * linux-mips-low.c: Update.
6039 * lynx-low.c: Update.
6040 * mem-break.c: Update.
6041 * nto-low.c: Update.
6042 * remote-utils.c: Update.
6044 * spu-low.c: Update.
6046 * tracepoint.c: Update.
6048 2018-07-03 Tom Tromey <tom@tromey.com>
6050 * linux-low.c: Update.
6051 * linux-ppc-low.c: Update.
6052 * linux-x86-low.c: Update.
6053 * proc-service.c: Update.
6055 * spu-low.c: Update.
6056 * thread-db.c: Update.
6057 * win32-low.c: Update.
6059 2018-07-03 Tom Tromey <tom@tromey.com>
6061 * linux-low.c: Update.
6062 * lynx-low.c: Update.
6063 * nto-low.c: Update.
6064 * remote-utils.c: Update.
6065 * spu-low.c: Update.
6066 * thread-db.c: Update.
6067 * win32-low.c: Update.
6069 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6071 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6072 parameter in call to 'amd64_create_target_description'.
6074 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 * x86-tdesc.h: Remove executable permission flag.
6078 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6080 * configure.ac: Remove AC_PREREQ, add missing quoting.
6081 * configure: Re-generate.
6082 * config.in: Re-generate.
6083 * aclocal.m4: Re-generate.
6085 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6087 * tracepoint.h (current_traceframe): Remove declaration.
6089 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6091 * linux-aarch64-low.c (is_sve_tdesc): New function.
6092 (aarch64_sve_regs_copy_to_regcache): Likewise.
6093 (aarch64_sve_regs_copy_from_regcache): Likewise.
6094 (aarch64_regs_info): Add SVE checks.
6095 (initialize_low_arch): Initialize SVE.
6097 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6099 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6101 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6103 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6104 (initialize_low_tracepoint): Likewise
6105 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6106 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6108 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6110 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6112 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6114 * server.h (PBUFSIZ): Increase size
6116 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6118 * regcache.c (regcache::raw_compare): New function.
6119 * regcache.h (regcache::raw_compare): New declaration.
6121 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6123 * regcache.c (new_register_cache): Use new.
6124 (free_register_cache): Use delete.
6125 (register_data): Use const.
6126 (supply_register): Move body inside regcache.
6127 (regcache::raw_supply): New override function.
6128 (collect_register): Move body inside regcache.
6129 (regcache::raw_collect): New override function.
6130 (regcache::get_register_status): New override function.
6131 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6133 2018-06-09 Tom Tromey <tom@tromey.com>
6135 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6137 (event_queue): Use std::queue.
6138 (gdb_event_xfree): Remove.
6139 (initialize_event_loop, process_event, wait_for_event): Update.
6141 2018-06-08 Stan Cox <scox@redhat.com>
6143 * win32-low.c (win32_create_inferior): last_ptid and last_status
6144 moved to client_state.
6146 2018-06-08 Pedro Alves <palves@redhat.com>
6148 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6149 common/common-exceptions.o, common/common-utils.o,
6150 common/errors.o, common/print-utils.o and utils.o.
6151 * gdbreplay.c: Include "common-defs.h" instead of the two
6152 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6153 string.h or alloca.h.
6154 (perror_with_name): Delete.
6155 (remote_open): Use xstrdup instead of strdup.
6156 (main): Rename to ...
6157 (captured_main): ... this.
6160 2018-06-08 Tom Tromey <tom@tromey.com>
6162 * linux-low.c (linux_low_read_btrace): Update.
6164 2018-06-04 Stan Cox <scox@redhat.com>
6166 * server.h (struct client_state): New.
6167 * server.c (cont_thread, general_thread, multi_process)
6168 (report_fork_events, report_vfork_events, report_exec_events)
6169 (report_thread_events, swbreak_feature, hwbreak_feature)
6170 (vCont_supported, disable_randomization, pass_signals)
6171 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6172 Moved to client_state.
6173 * remote-utils.c (remote_debug, noack_mode)
6174 (transport_is_reliable): Moved to client_state.
6175 * tracepoint.c (current_traceframe): Moved to client_state.
6178 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6179 linux-low.c, remote-utils.h, target.c: Use client_state.
6181 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6183 * configure.srv: Add new c/h file.
6185 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6187 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6190 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6192 * gdb.arch/mips-fpregset-core.exp: New test.
6193 * gdb.arch/mips-fpregset-core.c: New test source.
6195 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6198 * hostio.c (require_int): Do not report overflow for integers
6199 between 0xfffffff and 0x7fffffff.
6201 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6203 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6204 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6205 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6207 (the_low_target): Wire them.
6209 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6211 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6212 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6213 mode. Call collect_register_by_name with vscr using
6214 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6215 (ppc_store_vrregset): Add and set vscr_offset variable as in
6216 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6219 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6221 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6222 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6223 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6225 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6227 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6228 (ppc_store_vsxregset): Likewise.
6229 (ppc_fill_vrregset): Likewise.
6230 (ppc_store_vrregset): Likewise.
6231 (ppc_fill_evrregset): Likewise.
6232 (ppc_store_evrregset): Likewise.
6233 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6234 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6237 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6239 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6240 wordsize of the inferior. Call ppc_linux_target_wordsize.
6242 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6244 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6245 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6246 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6247 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6248 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6249 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6250 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6251 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6252 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6253 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6254 (tdesc_powerpc_e500l): Remove.
6255 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6256 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6257 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6258 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6260 (ppc_arch_setup): Remove target description matching code. Fill a
6261 ppc_linux_features struct and call ppc_linux_match_description
6264 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6266 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6267 width of the requested register exceeds the width of the
6269 (mips_cannot_store_register): Likewise.
6271 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6273 * linux-mips-low.c (mips_fetch_register): New function. Update
6275 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6276 (the_low_target): Wire `mips_fetch_register'.
6278 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6280 * lynx-i386-low.c (LYNXOS_178): New macro.
6281 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6282 the layout on LynxOS-178.
6283 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6284 handle floating point registers that are not supported by
6287 2018-05-10 Tom Tromey <tom@tromey.com>
6289 * configure: Rebuild.
6291 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6294 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6295 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6296 Use it to set the expedite_regs field in the given tdesc.
6297 * x86-tdesc.h: New file.
6298 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6299 Adjust following the addition of the new expedite_regs parameter
6300 to init_target_desc.
6301 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6302 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6303 (i386_linux_read_description, amd64_linux_read_description):
6304 Adjust following the addition of the new expedite_regs parameter
6305 to init_target_desc.
6306 * lynx-i386-low.c: #include "x86-tdesc.h".
6307 (lynx_i386_arch_setup): Adjust following the addition of the new
6308 expedite_regs parameter to init_target_desc.
6309 * nto-x86-low.c: #include "x86-tdesc.h".
6310 (nto_x86_arch_setup): Adjust following the addition of the new
6311 expedite_regs parameter to init_target_desc.
6312 * win32-i386-low.c: #include "x86-tdesc.h".
6313 (i386_arch_setup): Adjust following the addition of the new
6314 expedite_regs parameter to init_target_desc.
6316 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6319 * win32-low.c (win32_create_inferior): Add call to my_wait
6320 setting last_status global.
6322 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6325 * win32-low.c (create_process): Only call gdb_tilde_expand if
6326 inferior_cwd is not NULL.
6328 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6330 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6331 registers to the cache if their values have changed.
6332 (i387_xsave_to_cache): Provide default values for x87 control
6333 registers when these features are available, but disabled.
6334 * regcache.c (supply_register_by_name_zeroed): New function.
6335 * regcache.h (supply_register_by_name_zeroed): Declare new
6338 2018-05-07 Tom Tromey <tom@tromey.com>
6340 * configure: Rebuild.
6342 2018-05-04 Tom Tromey <tom@tromey.com>
6344 * configure: Rebuild.
6346 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6347 Pedro Alves <palves@redhat.com>
6349 * linux-aarch64-low.c (aarch64_stopped_data_address):
6352 2018-04-27 Tom Tromey <tom@tromey.com>
6354 * configure: Rebuild.
6356 2018-04-23 Tom Tromey <tom@tromey.com>
6358 * configure: Rebuild.
6360 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6362 * Makefile.in (depcomp): Add "..".
6363 (all_deps_files): New and use it.
6365 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6367 * configure.srv (aarch64*-*-linux*): Don't include xml.
6368 (i[34567]86-*-cygwin*): Likewise.
6369 (i[34567]86-*-linux*): Likewise.
6370 (i[34567]86-*-lynxos*): Likewise.
6371 (i[34567]86-*-mingw32ce*): Likewise.
6372 (i[34567]86-*-mingw*): Likewise.
6373 (i[34567]86-*-nto*): Likewise.
6374 (tic6x-*-uclinux): Likewise.
6375 (x86_64-*-linux*): Likewise.
6376 (x86_64-*-mingw*): Likewise.
6377 (x86_64-*-cygwin*): Likewise.
6379 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6381 * tdesc.c: Remove xml parameter.
6383 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6385 * server.c (get_features_xml): Remove cast.
6386 * tdesc.c (void target_desc::accept): Fill in function.
6387 (tdesc_get_features_xml): Remove old xml creation.
6388 (print_xml_feature::visit_pre): Add xml vistor.
6389 * tdesc.h (struct target_desc): Make xmltarget mutable.
6390 (tdesc_get_features_xml): Remove declaration.
6392 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6394 * tdesc.c (tdesc_architecture_name): Add new function.
6395 (tdesc_osabi_name): Likewise.
6396 (tdesc_get_features_xml): Use new functions.
6398 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6400 * tdesc.c (tdesc_create_flags): Remove.
6401 (tdesc_add_flag): Likewise.
6402 (tdesc_named_type): Likewise.
6403 (tdesc_create_union): Likewise.
6404 (tdesc_create_struct): Likewise.
6405 (tdesc_create_vector): Likewise.
6406 (tdesc_add_bitfield): Likewise.
6407 (tdesc_add_field): Likewise.
6408 (tdesc_set_struct_size): Likewise.
6410 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6412 * tdesc.c (~target_desc): Remove implictly deleted items.
6413 (init_target_desc): Iterate all features.
6414 (tdesc_get_features_xml): Use vector.
6415 (tdesc_create_feature): Create feature.
6416 * tdesc.h (tdesc_feature) Remove
6417 (target_desc): Add features.
6419 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6421 * Makefile.in: Add common/tdesc.c
6422 * tdesc.c (init_target_desc): init all reg_defs from register
6424 (tdesc_create_reg): Create tdesc_reg.
6425 * tdesc.h (tdesc_feature): Add register vector.
6427 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6429 * tdesc.h (struct target_desc) <features>: Change type to
6430 std::vector<std::string>.
6431 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6433 (tdesc_get_features_xml): Likewise.
6434 (tdesc_create_feature): Likewise.
6436 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6438 * regcache.c (find_register_by_number): Return a ref.
6439 (find_regno): Use references.
6440 (register_size): Likewise.
6441 (register_data): Likewise.
6442 * tdesc.c (target_desc::~target_desc): Remove free calls.
6443 (target_desc::operator==): Use std::vector compare.
6444 (init_target_desc): Use reference.
6445 (tdesc_create_reg): Use reg constructors.
6446 * tdesc.h (struct target_desc): Replace pointer with object.
6448 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6450 * regcache.c (find_register_by_number): Make static.
6451 (find_regno): Use find_register_by_number
6452 * regcache.h (struct reg): Remove declaration.
6454 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6456 * tdesc.c (target_desc::~target_desc): Move to here.
6457 (target_desc::operator==): Likewise.
6458 * tdesc.h (target_desc::~target_desc): Move from here.
6459 (target_desc::operator==): Likewise.
6461 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6463 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6465 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6467 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6469 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6470 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6471 and init_registers_s390_gs_linux64.
6473 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6475 * linux-s390-low.c (s390_fill_gs): Remove function.
6476 (s390_fill_gsbc): Remove function.
6477 (s390_regsets): Set fill functions for the guarded storage regsets
6480 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6482 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6483 the word size. Add comment.
6484 (s390_get_wordsize): New function.
6485 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6486 pswm with it. Instead, use s390_get_wordsize to determine the
6487 word size first and derive the correct tdesc from that directly.
6489 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6491 * Makefile.in: Include silent-rules.mk.
6492 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6493 (COMPILE): Add ECHO_CXX.
6494 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6495 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6496 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6497 (version-generated.c): Add ECHO_GEN.
6498 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6499 (IPAGENT_COMPILE): Add ECHO_CXX.
6500 (%-generated.c): Add ECHO_REGDAT.
6502 2018-03-14 Tom Tromey <tom@tromey.com>
6505 * ax.c (ax_printf): Special case for NULL.
6507 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6509 * linux-low.c (linux_qxfer_libraries_svr4): Use
6510 xml_escape_text_append.
6512 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6514 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6516 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6518 * server.c (handle_general_set): Remove unnecessary xstrdup.
6520 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6522 * server.c (parse_debug_format_options): Adjust to
6523 delim_string_to_char_ptr_vec changes.
6524 * thread-db.c (thread_db_load_search): Adjust to
6525 dirnames_to_char_ptr_vec changes.
6527 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6529 * target.h (target_enable_btrace, target_disable_btrace)
6530 (target_read_btrace, target_read_btrace_conf): Turn macro into
6531 inline function. Throw error if target method is not defined.
6532 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6533 check for btrace target method. Be prepared to handle exceptions
6534 from btrace target methods.
6536 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6538 * server.c (captured_main): Change order of error message printed
6539 when the current working directory cannot be found.
6541 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6543 * server.c: Include "filenames.h" and "pathstuff.h".
6544 (program_name): Delete variable.
6545 (program_path): New anonymous class.
6546 (get_exec_wrapper): Use "program_path" instead of
6548 (handle_v_run): Likewise.
6549 (captured_main): Likewise.
6550 (process_serial_event): Likewise.
6552 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6554 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6555 (OBJS): Add "pathstuff.o".
6556 * server.c (current_directory): New global variable.
6557 (captured_main): Initialize "current_directory".
6559 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6561 * tdesc.c: Use common/tdesc.h.
6562 * tdesc.h: Likewise.
6564 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6565 Simon Marchi <simon.marchi@ericsson.com>
6567 * Makefile.in: Switch order of make rules.
6569 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6571 * Makefile.in: Add common directory in build.
6572 * configure.ac: Add common reference.
6573 * configure: Regenerate.
6575 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6577 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6578 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6579 * spu-low.c (spu_target_ops): Likewise.
6580 * win32-low.c (win32_target_ops): Likewise.
6581 * server.c (supported_btrace_packets): Report packets unconditionally.
6582 * target.h (target_ops) <supports_btrace>: Remove.
6583 (target_supports_btrace): Remove.
6585 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6587 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6588 (handle_btrace_disable): Change return type to void. Use exceptions
6590 (handle_btrace_general_set): Catch exception and copy message to
6593 2018-02-08 Tom Tromey <tom@tromey.com>
6595 * linux-low.c (install_software_single_step_breakpoints): Use
6596 make_scoped_restore.
6597 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6598 (do_restore_current_thread_cleanup): Remove.
6599 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6602 2018-02-08 Tom Tromey <tom@tromey.com>
6604 * mem-break.c (set_raw_breakpoint_at): Use
6605 gdb::unique_xmalloc_ptr.
6607 2018-01-30 Pedro Alves <palves@redhat.com>
6610 * target.c (target_terminal::terminal_state): Rename to ...
6611 (target_terminal::m_terminal_state): ... this.
6613 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6615 * linux-low.c (handle_extended_wait): Surround call to
6616 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6618 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6620 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6621 linux_ptrace_attach_fail_reason_string now returning an
6623 (linux_attach): Likewise.
6624 * thread-db.c (attach_thread): Likewise.
6626 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6629 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6630 checking for fs_base/gs_base fields in struct user_regs_struct.
6631 * configure: Regenerate.
6633 2018-01-16 Yao Qi <yao.qi@linaro.org>
6636 * linux-low.c (fetch_register): Call supply_register instead of
6639 2018-01-08 Yao Qi <yao.qi@linaro.org>
6640 Simon Marchi <simon.marchi@ericsson.com>
6642 * Makefile.in (OBS): Remove selftest.o.
6643 * configure.ac: Set srv_selftest_objs if $development is true.
6644 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6645 * configure: Re-generated.
6646 * server.c (captured_main): Wrap variable selftest_filter with
6649 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6651 * server.c (parse_debug_format_options): Return std::string.
6652 (handle_monitor_command, captured_main): Adjust.
6654 2018-01-05 Pedro Alves <palves@redhat.com>
6657 * server.c (captured_main): Pass quiet=false to
6658 save_original_signals_state.
6660 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6662 * gdbreplay.c (gdbreplay_version): Update copyright year in
6664 * server.c (gdbserver_version): Likewise.
6666 2017-12-08 Tom Tromey <tom@tromey.com>
6668 * ax.c (ax_printf): Update.
6670 2017-12-07 Yao Qi <yao.qi@linaro.org>
6672 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6673 aarch64_linux_read_description.
6674 * linux-amd64-ipa.c (idx2mask): New array.
6675 (get_ipa_tdesc): Move idx2mask out.
6676 (initialize_low_tracepoint): Initialize target descriptions.
6677 * linux-i386-ipa.c (idx2mask): New array.
6678 (get_ipa_tdesc): Move idx2mask out.
6679 (initialize_low_tracepoint): Initialize target descriptions.
6681 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6683 * tdesc.c (struct tdesc_type): Change return type.
6684 (tdesc_add_flag): Change parameter type.
6685 (tdesc_add_bitfield): Likewise.
6686 (tdesc_add_field): Likewise.
6687 (tdesc_set_struct_size): Likewise.
6689 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6691 * regcache.c (registers_to_string): Remove unused variable.
6693 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6695 * inferiors.c (for_each_inferior_with_data): Remove.
6696 * inferiors.h (for_each_inferior_with_data): Remove.
6697 * server.c (handle_qxfer_threads_worker): Change parameter type.
6698 (handle_qxfer_threads_proper): Use for_each_thread.
6700 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6702 * inferiors.c (for_each_inferior): Remove.
6703 (clear_inferiors): Use for_each_thread.
6704 * inferiors.h (for_each_inferior): Remove.
6705 * linux-low.c (linux_wait_for_event_filtered): Use
6707 (linux_stabilize_threads): Likewise.
6708 * regcache.c (regcache_release): Likewise.
6709 * server.c (gdb_wants_all_threads_stopped): Likewise.
6710 (clear_pending_status_callback): Remove.
6711 (handle_status): Use for_each_thread.
6712 (captured_main): Likewise.
6713 * win32-low.c (child_init_thread_list): Likewise.
6714 (win32_clear_inferiors): Likewise.
6715 (fake_breakpoint_event): Likewise.
6717 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6719 * inferiors.h (find_inferior): Remove.
6720 * inferiors.c (find_inferior): Remove.
6722 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6724 * linux-low.c (resume_status_pending_p): Update comment.
6725 (need_step_over_p): Update comment.
6727 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6729 * linux-low.c (proceed_one_lwp): Return void, change parameter
6731 (unsuspend_and_proceed_one_lwp): Likewise.
6732 (proceed_all_lwps): Use for_each_thread.
6733 (unstop_all_lwps): Likewise.
6735 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6737 * linux-low.c (linux_resume_one_thread): Return void, take
6739 (linux_resume): Use for_each_thread.
6741 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6743 * linux-low.c (send_sigstop_callback): Return void, change
6744 parameter type. Rename to...
6745 (send_sigstop): ... this.
6746 (suspend_and_send_sigstop_callback): Return void, change parameter
6748 (suspend_and_send_sigstop): ... this.
6749 (stop_all_lwps): Use for_each_thread.
6751 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6753 * linux-low.c (lwp_running): Return bool, remove unused
6755 (linux_stabilize_threads): Use find_thread.
6757 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6759 * linux-low.c (select_singlestep_lwp_callback): Remove.
6760 (count_events_callback): Remove.
6761 (select_event_lwp_callback): Remove.
6762 (select_event_lwp): Use find_thread/for_each_thread.
6764 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6766 * linux-low.c (not_stopped_callback): Return bool, take filter
6768 (linux_wait_for_event_filtered): Use find_thread.
6769 (linux_wait_1): Likewise.
6771 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6773 * linux-low.c (same_lwp): Remove.
6774 (find_lwp_pid): Use find_thread.
6776 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6778 * linux-low.c (delete_lwp_callback): Remove.
6779 (linux_mourn): Use for_each_thread.
6781 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6783 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6784 args parameter, don't check for pid.
6785 (linux_detach): Use for_each_thread.
6787 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6789 * linux-low.c (struct counter): Remove.
6790 (second_thread_of_pid_p): Remove.
6791 (last_thread_of_process_p): Use find_thread.
6793 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6795 * inferiors.c (find_inferior_in_random): Remove.
6796 * inferiors.h (find_inferior_in_random): Remove.
6797 * linux-low.c (status_pending_p_callback): Return bool, accept
6798 parameter ptid directly.
6799 (linux_wait_for_event_filtered): Use find_thread_in_random.
6800 (linux_wait_1): Likewise.
6802 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6804 * inferiors.c (find_inferior_id): Remove.
6805 (find_thread_ptid): Move implemention from find_inferior_id to
6807 * inferiors.h (find_inferior_id): Remove.
6808 * server.c (handle_status): Use find_thread_ptid.
6809 (process_serial_event): Likewise.
6810 * thread-db.c (find_one_thread): Likewise.
6811 (thread_db_thread_handle): Likewise.
6812 * win32-low.c (thread_rec): Likewise.
6813 (child_delete_thread): Likewise.
6814 (win32_thread_alive): Likewise.
6815 (get_child_debug_event): Likewise.
6817 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6819 * linux-mips-low.c (update_watch_registers_callback): Return
6820 void, remove pid_p parameter, don't check for pid.
6821 (mips_insert_point, mips_remove_point): Use for_each_thread.
6823 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6825 * lynx.low (lynx_delete_thread_callback): Remove.
6826 (lynx_mourn): Use for_each_thread.
6828 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6830 * regcache.c (regcache_invalidate_one): Remove.
6831 (regcache_invalidate_pid): use for_each_thread.
6833 2017-11-26 Tom Tromey <tom@tromey.com>
6835 * linux-low.c (linux_create_inferior): Update.
6837 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6839 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6841 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6843 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6844 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6845 * linux-aarch64-tdesc-selftest.c: New file.
6846 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6848 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6850 * configure.srv: Add new file.
6851 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6852 * linux-aarch64-tdesc-selftest.c: New file.
6853 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6855 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6857 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6858 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6859 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6861 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6863 * configure.srv: Add new files.
6864 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6865 aarch64_linux_read_description.
6866 * linux-aarch64-low.c (aarch64_linux_read_description):
6867 Merge with aarch64_arch_setup.
6868 (aarch64_arch_setup): Call aarch64_linux_read_description.
6869 * linux-aarch64-tdesc.c: New file.
6870 * linux-aarch64-tdesc.h: New file.
6872 2017-11-24 Yao Qi <yao.qi@linaro.org>
6874 * configure.srv: Set $srv_regobj for tic6x-linux.
6875 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6876 (tic6x_read_description): Move some code to tic6x_arch_setup.
6877 (tic6x_tdesc_test): New function.
6878 (initialize_low_arch): Call selftests::register_test.
6880 2017-11-22 Yao Qi <yao.qi@linaro.org>
6882 * remote-utils.c (prepare_resume_reply): Use memcpy.
6884 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6886 * linux-low.c (kill_one_lwp_callback): Return void, take
6887 argument directly, don't filter on pid.
6888 (linux_kill): Use for_each_thread.
6890 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6892 * linux-low.c (need_step_over_p): Return bool, remove dummy
6894 (linux_resume, proceed_all_lwps): Use find_thread.
6896 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6898 * linux-low.c (resume_status_pending_p): Return bool, remove
6900 (linux_resume): Use find_thread.
6902 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6904 * linux-low.c (struct thread_resume_array): Remove.
6905 (linux_set_resume_request): Return void, take arguments
6907 (linux_resume): Use for_each_thread.
6909 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6911 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6912 return bool, remove data argument.
6913 (linux_stabilize_threads): Use find_thread.
6915 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6917 * linux-low.c (unsuspend_one_lwp): Remove.
6918 (unsuspend_all_lwps): Use for_each_thread, inline code from
6921 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6923 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6924 * linux-low.c (struct iterate_over_lwps_args): Remove.
6925 (iterate_over_lwps_filter): Remove.
6926 (iterate_over_lwps): Use find_thread.
6928 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6930 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6931 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6932 code from reset_lwp_ptrace_options_callback.
6934 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6936 * linux-arm-low.c (struct update_registers_data): Remove.
6937 (update_registers_callback): Return void, take arguments
6938 directly, don't check thread's pid.
6939 (arm_insert_point, arm_remove_point): Use for_each_thread.
6941 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6943 * win32-low.c (continue_one_thread): Return void, take argument
6945 (child_continue): Use for_each_thread.
6947 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6949 * win32-i386-low.c (update_debug_registers_callback): Rename
6951 (update_debug_registers): ... this, return void, remove pid_p arg.
6952 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6954 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6956 * inferiors.h (struct process_info): Add constructor, initialize
6958 <syscalls_to_catch>: Change type to std::vector<int>.
6959 * inferiors.c (add_process): Allocate process_info with new.
6960 (remove_process): Free process_info with delete.
6961 * linux-low.c (handle_extended_wait): Adjust.
6962 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6963 * server.c (handle_general_set): Adjust.
6965 2017-11-16 Pedro Alves <palves@redhat.com>
6967 * remote-utils.c (remote_close): Block SIGIO signals instead of
6968 uninstalling the SIGIO handler.
6970 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6972 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6974 2017-11-16 Yao Qi <yao.qi@linaro.org>
6976 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6977 (tic6x_store_gregset): Likewise.
6978 (tic6x_usrregs_info): Move it up.
6980 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6982 * Makefile.in: Update arch rules.
6983 * configure.srv: Explicitly mark arch/ files.
6985 2017-11-13 Andreas Schwab <schwab@suse.de>
6987 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6989 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6991 2017-11-06 Pedro Alves <palves@redhat.com>
6993 * config.in, configure: Regenerate.
6995 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6997 * target.c (struct thread_search): Remove.
6998 (thread_search_callback): Remove.
6999 (prepare_to_access_memory): Use for_each_thread instead of
7000 find_inferior. Inline code from thread_search_callback.
7002 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7004 * server.c (struct visit_actioned_threads_data): Remove.
7005 (visit_actioned_threads): Change prototype to take arguments
7007 (resume): Use find_thread instead of find_inferior.
7009 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7011 * server.c (queue_stop_reply_callback): Change prototype, return
7013 (find_status_pending_thread_callback): Remove.
7014 (handle_status): Replace find_inferior with find_thread and
7017 2017-10-25 Alan Hayward <alan.hayward@arm.com>
7019 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7021 (aarch64_store_gregset): Likewise.
7022 (aarch64_fill_fpregset): Likewise.
7023 (aarch64_store_fpregset): Likewise.
7025 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7027 * gdbthread.h (find_thread, for_each_thread): New functions.
7028 * inferiors.c (thread_of_pid): Remove.
7029 (find_any_thread_of_pid): Use find_thread.
7030 * linux-low.c (num_lwps): Use for_each_thread.
7032 2017-10-17 Yao Qi <yao.qi@linaro.org>
7034 * Makefile.in: Remove one rule.
7035 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7037 2017-10-17 Yao Qi <yao.qi@linaro.org>
7039 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7040 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7042 2017-10-17 Yao Qi <yao.qi@linaro.org>
7044 * configure.srv: Rename arm.o with arch/arm.o.
7046 2017-10-17 Yao Qi <yao.qi@linaro.org>
7048 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7049 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7050 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7051 (arch-i386.o, arch-amd64.o): Remove rules.
7052 (arch/%.o): New rule.
7053 Update POSTCOMPILE and COMPILE.pre.
7054 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7055 * configure: Re-generated.
7056 * configure.srv: Replace arch-i386.o with arch/i386.o.
7057 Replace arch-amd64.o with arch/amd64.o.
7059 2017-10-16 Yao Qi <yao.qi@linaro.org>
7061 * configure: Regenerated.
7063 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7065 * inferiors.h: (struct inferior_list): Remove.
7066 (struct inferior_list_entry); Remove.
7067 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7068 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7069 get_first_inferior): Remove.
7070 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7071 find_inferior_id, find_inferior_in_random): Change signature.
7072 * inferiors.c (all_threads): Change type to
7073 std::list<thread_info *>.
7074 (get_thread): Remove macro.
7075 (find_inferior, find_inferior_id): Change signature, implement
7077 (find_inferior_in_random): Change signature, implement using
7078 find_thread_in_random.
7079 (for_each_inferior, for_each_inferior_with_data): Change
7080 signature, implement using for_each_thread.
7081 (add_inferior_to_list, remove_inferior): Remove.
7082 (add_thread, get_first_thread, thread_of_pid,
7083 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7084 (get_first_inferior, one_inferior_p, clear_inferior_list):
7086 (clear_inferiors, get_thread_process): Update.
7087 * gdbthread.h: Include <list>.
7088 (struct thread_info) <entry>: Remove field.
7090 (all_threads): Change type to std::list<thread_info *>.
7091 (get_first_inferior): Add doc.
7092 (find_thread, for_each_thread, find_thread_in_random): New
7094 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7095 * linux-arm-low.c (update_registers_callback): Update.
7096 * linux-low.c (second_thread_of_pid_p): Update.
7097 (kill_one_lwp_callback, linux_detach_lwp_callback,
7098 delete_lwp_callback, status_pending_p_callback, same_lwp,
7099 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7100 iterate_over_lwps, not_stopped_callback,
7101 resume_stopped_resumed_lwps, count_events_callback,
7102 select_singlestep_lwp_callback, select_event_lwp_callback,
7103 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7104 suspend_and_send_sigstop_callback, wait_for_sigstop,
7105 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7106 lwp_running, linux_set_resume_request, resume_status_pending_p,
7107 need_step_over_p, start_step_over, linux_resume_one_thread,
7108 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7109 reset_lwp_ptrace_options_callback): Update.
7110 * linux-mips-low.c (update_watch_registers_callback): Update.
7111 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7113 (free_register_cache_thread_one): Remove.
7114 (regcache_release): Update.
7115 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7116 handle_qxfer_threads_worker): Update.
7117 (handle_query): Update, use list iterator.
7118 (visit_actioned_threads, handle_pending_status,
7119 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7120 clear_pending_status_callback, set_pending_status_callback,
7121 find_status_pending_thread_callback, handle_status,
7122 process_serial_event): Update.
7123 * target.c (thread_search_callback): Update.
7124 * thread-db.c (thread_db_get_tls_address): Update.
7125 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7127 * win32-i386-low.c (update_debug_registers_callback): Update.
7128 * win32-low.c (delete_thread_info, child_delete_thread,
7129 continue_one_thread, suspend_one_thread,
7130 get_child_debug_event): Adjust.
7132 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7134 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7135 * inferiors.h: Include <list>.
7136 (struct process_info) <entry>: Remove field.
7138 (pid_of): Change macro to function.
7139 (ptid_of, lwpid_of): Remove macro.
7140 (all_processes): Change type to std::list<process_info *>.
7141 (ALL_PROCESSES): Remove macro.
7142 (for_each_process, find_process): New function.
7143 * inferiors.c (all_processes): Change type to
7144 std::list<process_info *>.
7145 (find_thread_process): Adjust.
7146 (add_process): Likewise.
7147 (remove_process): Likewise.
7148 (find_process_pid): Likewise.
7149 (get_first_process): Likewise.
7150 (started_inferior_callback): Remove.
7151 (have_started_inferiors_p): Adjust.
7152 (attached_inferior_callback): Remove.
7153 (have_attached_inferiors_p): Adjust.
7154 * linux-low.c (check_zombie_leaders): Likewise.
7155 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7156 (x86_linux_update_xmltarget): Adjust.
7157 * server.c (handle_query): Likewise.
7158 (gdb_reattached_process): Remove.
7159 (handle_status): Adjust.
7160 (kill_inferior_callback): Likewise.
7161 (detach_or_kill_inferior): Remove.
7162 (print_started_pid): Likewise.
7163 (print_attached_pid): Likewise.
7164 (detach_or_kill_for_exit): Update.
7165 (process_serial_event): Likewise.
7166 * linux-arm-low.c (arm_new_fork): Likewise.
7168 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7170 * dll.h: Include <list>.
7171 (struct dll_info): Add constructor.
7172 <entry>: Remove field.
7173 (all_dlls): Change type to std::list<dll_info>.
7174 * dll.c: Include <algorithm>.
7175 (get_dll): Remove macro.
7176 (all_dlls): Change type to std::list<dll_info *>.
7177 (free_one_dll): Remove.
7178 (match_dll): Likewise.
7179 (loaded_dll): Adjust.
7180 (unloaded_dll): Adjust to all_dlls type change, use
7181 std::find_if. Inline code from match_dll.
7182 (clear_dlls): Adjust to all_dlls type change.
7183 * server.c (emit_dll_description): Remove.
7184 (handle_qxfer_libraries): Adjust to all_dlls type change,
7185 integrate emit_dll_description's functionality.
7187 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7189 * linux-low.h (struct linux_target_ops) <delete_process>: New
7191 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7192 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7193 (struct linux_target_ops): Add delete_process callback.
7194 * linux-arm-low.c (arm_delete_process): New.
7195 (struct linux_target_ops): Add delete_process callback.
7196 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7197 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7198 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7199 * linux-mips-low.c (mips_linux_delete_process): New.
7200 (struct linux_target_ops): Add delete_process callback.
7201 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7202 * linux-s390-low.c (struct linux_target_ops): Likewise.
7203 * linux-sh-low.c (struct linux_target_ops): Likewise.
7204 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7205 * linux-tile-low.c (struct linux_target_ops): Likewise.
7206 * linux-x86-low.c (x86_linux_delete_process): New.
7207 (struct linux_target_ops): Add delete_process callback.
7208 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7210 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7212 * linux-aarch64-low.c (the_low_target): Add thread delete
7214 * linux-arm-low.c (arm_delete_thread): New function.
7215 (the_low_target): Add thread delete callback.
7216 * linux-bfin-low.c (the_low_target): Likewise.
7217 * linux-crisv32-low.c (the_low_target): Likewise.
7218 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7220 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7222 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7223 * linux-mips-low.c (mips_linux_delete_thread): New function.
7224 (the_low_target): Add thread delete callback.
7225 * linux-ppc-low.c (the_low_target): Likewise.
7226 * linux-s390-low.c (the_low_target): Likewise.
7227 * linux-sh-low.c (the_low_target): Likewise.
7228 * linux-tic6x-low.c (the_low_target): Likewise.
7229 * linux-tile-low.c (the_low_target): Likewise.
7230 * linux-x86-low.c (the_low_target): Likewise.
7231 * linux-xtensa-low.c (the_low_target): Likewise.
7233 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7235 * win32-low.c: Include "common-inferior.h".
7237 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7239 * inferiors.c (set_inferior_cwd): New function.
7240 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7241 (handle_query): Inform that QSetWorkingDir is supported.
7242 * win32-low.c (create_process): Pass the inferior's cwd to
7245 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7247 * inferiors.c (current_inferior_cwd): New global variable.
7248 (get_inferior_cwd): New function.
7249 * inferiors.h (struct process_info) <cwd>: New field.
7251 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7253 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7254 (OBS): Add gdb_tilde_expand.o.
7256 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7258 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7259 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7261 2017-09-29 Pedro Alves <palves@redhat.com>
7263 * ax.c (gdb_parse_agent_expr): Constify.
7264 * ax.h (gdb_parse_agent_expr): Constify.
7265 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7267 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7268 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7269 * remote-utils.h (read_ptid): Constify.
7270 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7271 (process_point_options, process_serial_event): Constify.
7272 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7273 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7274 (cmd_qtbuffer): Constify.
7276 2017-09-29 Pedro Alves <palves@redhat.com>
7278 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7281 2017-09-29 Pedro Alves <palves@redhat.com>
7283 * linux-low.c (handle_extended_wait): Pass parent thread instead
7284 of process to thread_db_notice_clone.
7285 * linux-low.h (thread_db_notice_clone): Replace parent process
7286 parameter with parent thread parameter.
7287 * thread-db.c (find_one_thread): Add comment.
7288 (thread_db_notice_clone): Replace parent process parameter with
7289 parent thread parameter. Temporarily switch to the parent thread.
7291 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7293 * gdbthread.h: Include "common-gdbthread.h".
7294 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7295 "if" when validating the ptid.
7296 * remote-utils.c: Include "gdbthread.h".
7297 (prepare_resume_reply): Use "switch_to_thread".
7298 * target.c (done_accessing_memory): Likewise.
7300 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7302 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7303 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7304 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7305 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7306 s390x-gs-linux64-ipa.o to ipa_obj.
7307 * linux-s390-low.c (HWCAP_S390_GS): New define.
7308 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7310 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7311 (s390_arch_setup): Check for guarded-storage support and choose
7313 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7314 init_registers_s390x_gs_linux64.
7315 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7317 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7318 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7320 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7322 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7324 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7326 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7327 (thread_db_thread_handle): Declare.
7328 * linux-low.c (linux_target_ops): Initialize thread_handle.
7329 * server.c (handle_qxfer_threads_worker): Add support for
7331 * target.h (struct target_ops): Add new function pointer,
7333 (target_thread_handle): Define.
7334 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7336 (thread_db_thread_handle): New function.
7338 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7340 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7341 * linux-low.h (thread_db_notice_clone): Declare.
7342 * thread-db.c (thread_db_notice_clone): New function.
7344 2017-09-21 Pedro Alves <palves@redhat.com>
7346 * server.c (gdb_read_memory, handle_status, process_serial_event)
7347 (handle_serial_event, handle_target_event): Adjust to
7348 set_desired_thread prototype change.
7349 * target.c (set_desired_thread): Remove 'use_general' parameter
7351 * target.h (set_desired_thread): Remove 'use_general' parameter.
7353 2017-09-20 Tom Tromey <tom@tromey.com>
7355 * target.c (target_terminal::terminal_state): Define.
7356 (target_terminal::init): Rename from target_terminal_init.
7357 (target_terminal::inferior): Rename from
7358 target_terminal_inferior.
7359 (target_terminal::ours): Rename from target_terminal_ours.
7360 (target_terminal::ours_for_output, target_terminal::info): New.
7362 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7364 * server.c (accumulate_file_name_length): Remove.
7365 (emit_dll_description): Adjust to std::string change.
7366 (handle_qxfer_libraries): Use std::string to hold document.
7368 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7370 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7371 return type of xml_escape_text.
7372 * server.c (emit_dll_description): Likewise.
7374 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7376 * server.c (captured_main): Accept argument for --selftest.
7377 Update run_tests call.
7378 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7379 when registering selftests.
7381 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7383 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7384 instead of "VEC" for "target_desc.reg_defs".
7385 (regcache_cpy): Likewise.
7386 (registers_to_string): Likewise.
7387 (registers_from_string): Likewise.
7388 (find_regno): Likewise.
7389 (supply_regblock): Likewise.
7390 (regcache_raw_read_unsigned): Likewise.
7391 * tdesc.c (init_target_desc): Likewise.
7392 (tdesc_create_reg): Likewise.
7393 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7394 (struct target_desc) <reg_defs>: Convert to "std::vector".
7395 (target_desc): Do not initialize "reg_defs".
7396 (~target_desc): Update code to use "std::vector" instead of "VEC"
7397 for "target_desc.reg_defs".
7398 (operator==): Likewise.
7400 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7402 * inferiors.h (thread_to_gdb_id): Remove.
7403 * inferiors.c (thread_to_gdb_id): Remove.
7404 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7405 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7406 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7408 * nto-low.c (nto_fetch_registers, nto_store_registers,
7409 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7411 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7413 * inferiors.h (gdb_id_to_thread_id): Remove.
7414 * inferiors.c (gdb_id_to_thread_id): Remove.
7415 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7416 removal. Move pid declaration closer to where it's used.
7418 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7420 * server.c (handle_detach): New function.
7421 (process_serial_event): Move code out, call handle_detach.
7423 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7425 * server.c (require_running): Rename to ...
7426 (require_running_or_return): ... this ...
7427 (require_running_or_break): ... and this.
7428 (handle_query, process_serial_event): Adjust.
7430 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7432 * linux-low.c (linux_set_resume_request): Remove unused
7435 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7437 * server.c (first_thread_of): Remove.
7438 (process_serial_event): Replace usage of first_thread_of with
7439 find_any_thread_of_pid.
7440 * tracepoint.c (same_process_p): Remove.
7441 (gdb_agent_about_to_close): Replace usage of same_process_p with
7442 find_any_thread_of_pid.
7443 * linux-x86-low.c (same_process_callback): Remove.
7444 (x86_arch_setup_process_callback): Replace usage of
7445 same_process_callback with find_any_thread_of_pid.
7446 * thread-db.c (any_thread_of): Remove.
7447 (switch_to_process): Replace usage of any_thread_of with
7448 find_any_thread_of_pid.
7449 * inferiors.c (thread_pid_matches_callback): Remove.
7450 (find_thread_process): Adjust to use find_any_thread_of_pid.
7452 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7454 * regcache.c (get_thread_regcache): Guard calls to "memset"
7457 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7459 * linux-low.c (handle_extended_wait): Use
7460 "allocate_target_description" instead of "XNEW".
7461 * linux-x86-low.c (initialize_low_arch): Likewise.
7463 2017-09-05 Yao Qi <yao.qi@linaro.org>
7465 * configure.srv (srv_i386_regobj): Remove.
7466 (srv_amd64_regobj): Remove.
7467 (srv_regobj): Set it to "" for x86 non-linux targets.
7468 * linux-x86-tdesc.c (i386_linux_read_description):
7469 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7470 (init_registers_i386): Remove the declaration.
7471 (tdesc_i386): Remove the declaration.
7472 (lynx_i386_arch_setup): Call i386_create_target_description.
7473 * nto-x86-low.c: Likewise.
7474 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7475 [!__x86_64__]: include arch/i386.h.
7476 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7478 2017-09-05 Yao Qi <yao.qi@linaro.org>
7480 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7481 i386/amd64-XXX-linux from it.
7483 2017-09-05 Yao Qi <yao.qi@linaro.org>
7485 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7487 (ipa_amd64_linux_regobj): Remove.
7488 (ipa_x32_linux_regobj): Remove.
7490 2017-09-05 Yao Qi <yao.qi@linaro.org>
7492 * Makefile.in (arch-amd64.o): New rule.
7493 * configure.srv: Append arch-amd64.o.
7494 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7495 (get_ipa_tdesc): Call amd64_linux_read_description.
7496 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7497 and init_registers_amd64_XXX.
7498 * linux-x86-low.c (x86_linux_read_description): Call
7499 amd64_linux_read_description.
7500 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7501 (initialize_low_arch): Don't call init_registers_x32_XXX and
7502 init_registers_amd64_XXX.
7503 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7504 and tdesc_amd64_XXX.
7505 [__x86_64__] (amd64_tdesc_test): New function.
7506 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7507 and init_registers_amd64_XXX.
7508 * linux-x86-tdesc.c: Include arch/amd64.h.
7509 (xcr0_to_tdesc_idx): New function.
7510 (i386_linux_read_description): New function.
7511 (amd64_get_ipa_tdesc_idx): New function.
7512 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7513 (amd64_get_ipa_tdesc): Declare.
7515 2017-09-05 Yao Qi <yao.qi@linaro.org>
7517 * configure.srv (srv_i386_linux_xmlfiles): Remove
7518 i386/i386-XXX-linux.xml from it.
7520 2017-09-05 Yao Qi <yao.qi@linaro.org>
7522 * configure.srv: Set srv_i386_linux_regobj empty if $development
7524 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7525 initialize_low_tdesc.
7526 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7527 with #if initialize_low_tdesc.
7528 * linux-x86-tdesc-selftest.c: New file.
7529 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7531 2017-09-05 Yao Qi <yao.qi@linaro.org>
7533 * Makefile.in (arch-i386.o): New rule.
7534 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7535 (x86_64-*-linux*): Likewise.
7536 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7537 include arch/i386.h.
7538 (i386_linux_read_description): Remove code and call
7539 i386_create_target_description.
7540 * tdesc.c (allocate_target_description): New function.
7541 * tdesc.h (set_tdesc_architecture): Remove declaration.
7542 (set_tdesc_osabi): Likewise.
7544 2017-09-05 Yao Qi <yao.qi@linaro.org>
7546 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7547 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7548 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7550 * server.c (get_features_xml): Call tdesc_get_features_xml.
7551 * tdesc.c (set_tdesc_architecture): New function.
7552 (set_tdesc_osabi): New function.
7553 (tdesc_get_features_xml): New function.
7554 (tdesc_create_feature): Add an argument.
7555 * tdesc.h (struct target_desc) <features>: New field.
7556 <arch, osabi>: New field.
7557 (~target_desc): xfree features, arch, and osabi.
7558 (target_desc::oerator==): Don't compare .xmltarget.
7559 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7560 (set_tdesc_osabi): Likewise.
7561 (tdesc_get_features_xml): Likewise.
7563 2017-09-05 Yao Qi <yao.qi@linaro.org>
7565 * linux-x86-tdesc.c: Include selftest.h.
7566 (i386_tdesc_test): New function.
7567 (initialize_low_tdesc): Call selftests::register_test.
7568 * tdesc.h: Include regdef.h.
7569 (target_desc): Override operator == and !=.
7571 2017-09-05 Yao Qi <yao.qi@linaro.org>
7573 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7574 (ipa_obj): Likewise.
7575 * linux-i386-ipa.c: Include common/x86-xstate.h
7576 (get_ipa_tdesc): Call i386_linux_read_description.
7577 (initialize_low_tracepoint): Don't call init_registers_XXX
7578 functions, call initialize_low_tdesc instead.
7579 * linux-x86-low.c (x86_linux_read_description): Call
7580 i386_linux_read_description.
7581 (initialize_low_arch): Don't call init_registers_i386_XXX
7582 functions, call initialize_low_tdesc.
7583 * linux-x86-tdesc.c: New file.
7584 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7585 (i386_get_ipa_tdesc_idx): Declare.
7586 (i386_get_ipa_tdesc): Declare.
7587 (initialize_low_tdesc): Declare.
7589 2017-09-05 Yao Qi <yao.qi@linaro.org>
7591 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7594 2017-09-05 Yao Qi <yao.qi@linaro.org>
7596 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7597 * regcache.c (get_thread_regcache): Use VEC_length.
7598 (init_register_cache): Likewise.
7599 (regcache_cpy): Likewise.
7600 (registers_to_string): Iterate reg_defs via VEC_iterate.
7601 (find_regno): Likewise.
7602 (find_register_by_number): Use VEC_index.
7603 (register_size): Call find_register_by_number.
7604 (register_data): Call find_register_by_number.
7605 (supply_regblock): Use VEC_length.
7606 (regcache_raw_read_unsigned): Likewise.
7607 * tdesc.c (init_target_desc): Iterate reg_defs via
7609 (default_description): Update initializer.
7610 (copy_target_description): Don't update field num_registers.
7611 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7612 <num_registers>: Remove.
7614 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7616 * Makefile.in (.SECONDARY): Define target.
7618 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7620 * linux-low.c (linux_wait_1): Adjust.
7621 * server.c (queue_stop_reply_callback): Adjust.
7623 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7625 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7626 QEnvironmentUnset and QEnvironmentReset packets.
7627 (handle_query): Inform remote that QEnvironmentHexEncoded,
7628 QEnvironmentUnset and QEnvironmentReset are supported.
7630 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7632 * inferiors.h (inferior_target_data): Rename to ...
7633 (thread_target_data): ... this.
7634 (inferior_regcache_data): Rename to ...
7635 (thread_regcache_data): ... this.
7636 (set_inferior_regcache_data): Rename to ...
7637 (set_thread_regcache_data): ... this.
7638 * inferiors.c (inferior_target_data): Rename to ...
7639 (thread_target_data): ... this.
7640 (inferior_regcache_data): Rename to ...
7641 (thread_regcache_data): ... this.
7642 (set_inferior_regcache_data): Rename to ...
7643 (set_thread_regcache_data): ... this.
7644 (free_one_thread): Update.
7645 * linux-low.h (get_thread_lwp): Update.
7646 * regcache.c (get_thread_regcache): Update.
7647 (regcache_invalidate_thread): Update.
7648 (free_register_cache_thread): Update.
7649 * win32-i386-low.c (update_debug_registers_callback): Update.
7650 (win32_get_current_dr): Update.
7651 * win32-low.c (thread_rec): Update.
7652 (delete_thread_info): Update.
7653 (continue_one_thread): Update.
7654 (suspend_one_thread): Update.
7656 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7658 * inferiors.c (set_inferior_target_data): Remove.
7659 * inferiors.h (set_inferior_target_data): Remove.
7661 2017-08-18 Yao Qi <yao.qi@linaro.org>
7663 * Makefile.in (OBS): Add selftest.o.
7664 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7665 * configure, config.in: Re-generated.
7666 * server.c: Include common/sefltest.h.
7667 (captured_main): Handle option --selftest.
7669 2017-08-09 Yao Qi <yao.qi@linaro.org>
7671 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7672 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7673 i386-avx-mpx.o and i386-mmx.o.
7674 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7675 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7676 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7677 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7678 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7679 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7680 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7681 i386/amd64-avx-mpx.xml.
7683 2017-08-09 Yao Qi <yao.qi@linaro.org>
7685 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7686 and x32-avx-avx512.o.
7687 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7688 i386/x32-avx-avx512.xml.
7690 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7692 * tracepoint.h (enum class fast_tpoint_collect_result): New
7694 (fast_tracepoint_collecting): Change return type to
7695 fast_tpoint_collect_result.
7696 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7697 * linux-low.h: Include tracepoint.h.
7698 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7699 fast_tpoint_collect_result.
7700 * linux-low.c (handle_tracepoints): Adjust.
7701 (linux_fast_tracepoint_collecting): Change return type to
7702 fast_tpoint_collect_result.
7703 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7704 linux_wait_1, stuck_in_jump_pad_callback,
7705 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7706 proceed_one_lwp): Adjust to type change.
7708 2017-07-10 Yao Qi <yao.qi@linaro.org>
7710 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7712 2017-06-29 Yao Qi <yao.qi@linaro.org>
7714 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7716 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7718 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7720 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7722 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7724 * linux-low.c (linux_create_inferior): Adjust code to access the
7725 environment information via 'gdb_environ' class.
7726 * lynx-low.c (lynx_create_inferior): Likewise.
7727 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7728 (get_environ): Return a pointer to 'our_environ'.
7729 (captured_main): Initialize 'our_environ'.
7730 * server.h (get_environ): Adjust prototype.
7731 * spu-low.c (spu_create_inferior): Adjust code to access the
7732 environment information via 'gdb_environ' class.
7734 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7736 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7737 usage of "register" keyword.
7739 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7741 * configure: Re-generate.
7743 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7745 * configure: Re-generate.
7747 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7749 * Makefile.in (COMPILE.pre): Add "-x c++".
7751 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7753 * fork-child.c: Conditionally include <signal.h>.
7755 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7757 * server.c (handle_general_set): Handle new packet
7758 "QStartupWithShell".
7759 (handle_query): Add "QStartupWithShell" to the list of supported
7761 (gdbserver_usage): Add help text explaining the
7762 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7764 (captured_main): Recognize and act upon the presence of the new
7767 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7768 Pedro Alves <palves@redhat.com>
7770 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7771 * configure: Regenerate.
7772 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7774 (i[34567]86-*-lynxos*): Likewise.
7775 (spu*-*-*): Likewise.
7776 * fork-child.c: New file.
7777 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7779 (linux_ptrace_fun): New function.
7780 (linux_create_inferior): Adjust function prototype to reflect
7781 change on "target.h". Adjust function code to use
7783 (linux_request_interrupt): Delete "signal_pid".
7784 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7785 (lynx_ptrace_fun): New function.
7786 (lynx_create_inferior): Adjust function prototype to reflect
7787 change on "target.h". Adjust function code to use
7789 * nto-low.c (nto_create_inferior): Adjust function prototype and
7790 code to reflect change on "target.h". Update comments.
7791 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7792 "common-terminal.h" and "environ.h".
7793 (terminal_fd): Moved to fork-child.c.
7794 (old_foreground_pgrp): Likewise.
7795 (restore_old_foreground_pgrp): Likewise.
7796 (last_status): Make it global.
7797 (last_ptid): Likewise.
7798 (our_environ): New variable.
7799 (startup_with_shell): Likewise.
7800 (program_name): Likewise.
7801 (program_argv): Rename to...
7802 (program_args): ...this.
7803 (wrapper_argv): New variable.
7804 (start_inferior): Delete function.
7805 (get_exec_wrapper): New function.
7806 (get_exec_file): Likewise.
7807 (get_environ): Likewise.
7808 (prefork_hook): Likewise.
7809 (post_fork_inferior): Likewise.
7810 (postfork_hook): Likewise.
7811 (postfork_child_hook): Likewise.
7812 (handle_v_run): Update code to deal with arguments coming from the
7813 remote host. Update calls from "start_inferior" to
7815 (captured_main): Likewise. Initialize environment variable. Call
7817 * server.h (post_fork_inferior): New prototype.
7818 (get_environ): Likewise.
7819 (last_status): Declare.
7820 (last_ptid): Likewise.
7821 (signal_pid): Likewise.
7822 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7823 (spu_ptrace_fun): New function.
7824 (spu_create_inferior): Adjust function prototype to reflect change
7825 on "target.h". Adjust function code to use "fork_inferior".
7826 * target.c (target_terminal_init): New function.
7827 (target_terminal_inferior): Likewise.
7828 (target_terminal_ours): Likewise.
7829 * target.h: Include <vector>.
7830 (struct target_ops) <create_inferior>: Update prototype.
7831 (create_inferior): Update macro.
7832 * utils.c (gdb_flush_out_err): New function.
7833 * win32-low.c (win32_create_inferior): Adjust function prototype
7834 and code to reflect change on "target.h".
7836 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7838 * inferiors.c (switch_to_thread): New function.
7840 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7842 * Makefile.in (SFILE): Add "common/job-control.c".
7843 (OBS): Add "job-control.o".
7845 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7847 * Makefile: Remove "@host_makefile_frag@".
7849 2017-05-05 Pedro Alves <palves@redhat.com>
7851 * configure: Regenerate.
7853 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7855 * configure: Regenerate.
7857 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7859 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7860 software_single_step change of return type to
7861 std::vector<CORE_ADDR>.
7862 * linux-low.c (install_software_single_step_breakpoints):
7864 * linux-low.h (install_software_single_step_breakpoints):
7867 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7869 * remote-utils.c: Include "gdb_termios.h" instead of
7871 * terminal.h: Delete file.
7873 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7875 * server.c: Include <vector>.
7876 <program_argv, wrapper_argv>: Convert to std::vector.
7877 (start_inferior): Rewrite function to use C++.
7878 (handle_v_run): Likewise. Update code that calculates the argv
7879 based on the vRun packet; use C++.
7880 (captured_main): Likewise.
7882 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7884 * server.c (handle_v_cont): Initialize thread_resume::thread
7887 2017-04-05 Pedro Alves <palves@redhat.com>
7889 * configure: Regenerate.
7891 2017-04-05 Pedro Alves <palves@redhat.com>
7893 * gdbreplay.c (sync_error): Constify.
7894 * linux-x86-low.c (push_opcode): Constify.
7896 2017-04-05 Pedro Alves <palves@redhat.com>
7898 * win32-low.c (get_child_debug_event)
7899 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7900 Report TARGET_WAITKIND_SPURIOUS instead.
7902 2017-04-05 Pedro Alves <palves@redhat.com>
7904 * remote-utils.c (remote_prepare, remote_open): Constify.
7905 * remote-utils.h (remote_prepare, remote_open): Constify.
7906 * server.c (captured_main): Constify 'port' handling.
7908 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7910 * Makefile.in (clean): Clear .deps.
7912 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7914 * .gitignore: Remove generated files, replace with wildcard.
7915 * (clean): Replace removal of generated files with wildcard.
7916 (version.c): Replace with...
7917 (version-generated.c): ...this.
7918 (xml-builtin.c): Replace with...
7919 (xml-builtin-generated.c): ...this.
7920 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7921 (%.c: *regformats*): Replace with...
7922 (%-generated.c: *regformats*): ...this.
7924 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7926 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7927 (xtensa_fill_gregset): Call collect_register_by_name for
7929 (xtensa_store_gregset): Call supply_register_by_name for
7932 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7934 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7935 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7936 (xtensa_store_gregset): Call supply_register for all registers in
7937 a0_regnum..a0_regnum + C0_NREGS range.
7939 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7941 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7942 (ax-ipa.o: ax.c): Remove.
7943 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7944 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7945 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7946 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7947 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7949 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7951 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7952 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7953 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7954 (errors-ipa.o: ../common/errors.c): Remove.
7955 (format-ipa.o: ../common/format.c): Remove.
7956 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7958 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7960 * Makefile.in (%-ipa.o: %.c): New rule.
7961 (tracepoint-ipa.o: tracepoint.c): Remove.
7962 (utils-ipa.o: utils.c): Remove.
7963 (remote-utils-ipa.o: remote-utils.c): Remove.
7964 (regcache-ipa.o: regcache.c): Remove.
7965 (i386-linux-ipa.o: i386-linux.c): Remove.
7966 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7967 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7968 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7969 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7970 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7971 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7972 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7973 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7974 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7975 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7976 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7977 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7978 (aarch64-ipa.o: aarch64.c): Remove.
7979 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7980 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7981 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7982 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7983 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7984 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7985 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7986 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7987 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7988 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7989 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7990 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7991 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7992 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7993 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7994 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7995 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7996 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7997 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7998 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7999 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8000 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8001 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8002 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8003 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8004 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8005 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8006 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8007 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8008 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8009 (tdesc-ipa.o: tdesc.c): Remove.
8010 (x32-linux-ipa.o: x32-linux.c): Remove.
8011 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8012 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8014 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8016 * Makefile.in (%.o: ../arch/%.c): New rule.
8017 (arm.o: ../arch/arm.c): Remove.
8018 (arm-linux.o: ../arch/arm-linux.c): Remove.
8019 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8020 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8022 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8024 * Makefile.in (%.o: ../nat/%.c): New rule.
8025 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8026 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8027 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8028 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8029 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8030 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8031 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8032 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8033 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8034 (linux-personality.o: ../nat/linux-personality.c): Remove.
8035 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8036 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8037 (x86-linux.o: ../nat/x86-linux.c): Remove.
8038 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8039 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8041 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8043 * Makefile.in (%.o: ../common/%.c): New rule.
8044 (signals.o: ../common/signals.c): Remove.
8045 (print-utils.o: ../common/print-utils.c): Remove.
8046 (rsp-low.o: ../common/rsp-low.c): Remove.
8047 (common-utils.o: ../common/common-utils.c): Remove.
8048 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8049 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8050 (vec.o: ../common/vec.c): Remove.
8051 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8052 (xml-utils.o: ../common/xml-utils.c): Remove.
8053 (ptid.o: ../common/ptid.c): Remove.
8054 (buffer.o: ../common/buffer.c): Remove.
8055 (format.o: ../common/format.c): Remove.
8056 (filestuff.o: ../common/filestuff.c): Remove.
8057 (agent.o: ../common/agent.c): Remove.
8058 (errors.o: ../common/errors.c): Remove.
8059 (environ.o: ../common/environ.c): Remove.
8060 (common-debug.o: ../common/common-debug.c): Remove.
8061 (cleanups.o: ../common/cleanups.c): Remove.
8062 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8063 (fileio.o: ../common/fileio.c): Remove.
8064 (common-regcache.o: ../common/common-regcache.c): Remove.
8065 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8066 (new-op.o: ../common/new-op.c): Remove.
8067 (btrace-common.o: ../common/btrace-common.c): Remove.
8069 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8071 * Makefile.in (%.o: ../target/%.c): New rule.
8072 (waitstatus.o: ../target/waitstatus.c): Remove.
8074 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8077 (%.c: ../regformats/%.dat,
8078 (%.c: ../regformats/arm/%.dat,
8079 (%.c: ../regformats/i386/%.dat,
8080 (%.c: ../regformats/rs6000/%.dat): New rules.
8081 (aarch64.c): Remove.
8082 (reg-arm.c): Remove.
8083 (arm-with-iwmmxt.c): Remove.
8084 (arm-with-vfpv2.c): Remove.
8085 (arm-with-vfpv3.c): Remove.
8086 (arm-with-neon.c): Remove.
8087 (reg-bfin.c): Remove.
8088 (reg-cris.c): Remove.
8089 (reg-crisv32.c): Remove.
8091 (i386-linux.c): Remove.
8092 (i386-avx.c): Remove.
8093 (i386-avx-linux.c): Remove.
8094 (i386-avx-avx512.c): Remove.
8095 (i386-avx-avx512-linux.c): Remove.
8096 (i386-mpx.c): Remove.
8097 (i386-mpx-linux.c): Remove.
8098 (i386-avx-mpx-avx512-pku.c): Remove.
8099 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8100 (i386-avx-mpx.c): Remove.
8101 (i386-avx-mpx-linux.c): Remove.
8102 (i386-mmx.c): Remove.
8103 (i386-mmx-linux.c): Remove.
8104 (reg-ia64.c): Remove.
8105 (reg-m32r.c): Remove.
8106 (reg-m68k.c): Remove.
8108 (mips-linux.c): Remove.
8109 (mips-dsp-linux.c): Remove.
8110 (mips64-linux.c): Remove.
8111 (mips64-dsp-linux.c): Remove.
8112 (nios2-linux.c): Remove.
8113 (powerpc-32.c): Remove.
8114 (powerpc-32l.c): Remove.
8115 (powerpc-altivec32l.c): Remove.
8116 (powerpc-cell32l.c): Remove.
8117 (powerpc-vsx32l.c): Remove.
8118 (powerpc-isa205-32l.c): Remove.
8119 (powerpc-isa205-altivec32l.c): Remove.
8120 (powerpc-isa205-vsx32l.c): Remove.
8121 (powerpc-e500l.c): Remove.
8122 (powerpc-64l.c): Remove.
8123 (powerpc-altivec64l.c): Remove.
8124 (powerpc-cell64l.c): Remove.
8125 (powerpc-vsx64l.c): Remove.
8126 (powerpc-isa205-64l.c): Remove.
8127 (powerpc-isa205-altivec64l.c): Remove.
8128 (powerpc-isa205-vsx64l.c): Remove.
8129 (s390-linux32.c): Remove.
8130 (s390-linux32v1.c): Remove.
8131 (s390-linux32v2.c): Remove.
8132 (s390-linux64.c): Remove.
8133 (s390-linux64v1.c): Remove.
8134 (s390-linux64v2.c): Remove.
8135 (s390-te-linux64.c): Remove.
8136 (s390-vx-linux64.c): Remove.
8137 (s390-tevx-linux64.c): Remove.
8138 (s390x-linux64.c): Remove.
8139 (s390x-linux64v1.c): Remove.
8140 (s390x-linux64v2.c): Remove.
8141 (s390x-te-linux64.c): Remove.
8142 (s390x-vx-linux64.c): Remove.
8143 (s390x-tevx-linux64.c): Remove.
8144 (tic6x-c64xp-linux.c): Remove.
8145 (tic6x-c64x-linux.c): Remove.
8146 (tic6x-c62x-linux.c): Remove.
8148 (reg-sparc64.c): Remove.
8149 (reg-spu.c): Remove.
8151 (amd64-linux.c): Remove.
8152 (amd64-avx.c): Remove.
8153 (amd64-avx-linux.c): Remove.
8154 (amd64-avx-avx512.c): Remove.
8155 (amd64-avx-avx512-linux.c): Remove.
8156 (amd64-mpx.c): Remove.
8157 (amd64-mpx-linux.c): Remove.
8158 (amd64-avx-mpx-avx512-pku.c): Remove.
8159 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8160 (amd64-avx-mpx.c): Remove.
8161 (amd64-avx-mpx-linux.c): Remove.
8163 (x32-linux.c): Remove.
8164 (x32-avx.c): Remove.
8165 (x32-avx-linux.c): Remove.
8166 (x32-avx-avx512.c): Remove.
8167 (x32-avx-avx512-linux.c): Remove.
8168 (reg-xtensa.c): Remove.
8169 (reg-tilegx.c): Remove.
8170 (reg-tilegx32.c): Remove.
8172 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8174 * Makefile.in (SFILES): Add "common/environ.c".
8175 (OBJS): Add "common/environ.h".
8177 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8179 * configure.ac: Check if the fs_base and gs_base members of
8180 `struct user_regs_struct' exist.
8181 * config.in: Regenerated.
8182 * configure: Likewise.
8184 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8186 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8188 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8189 (get_next_pcs_syscall_next_pc): Likewise.
8191 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8193 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8194 * nto-x86-low.c: Likewise.
8196 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8198 * Makefile.in: Include disable-implicit-rules.mk.
8200 2016-11-23 Pedro Alves <palves@redhat.com>
8202 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8203 (debug_vprintf): Use std::chrono::steady_clock instead of
8204 gettimeofday. Use '.' instead of ':'.
8205 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8206 (get_timestamp): Use std::chrono::steady_clock instead of
8209 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8211 * Makefile.in: Fix whitespace formatting.
8213 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8215 * Makefile.in (SFILES, OBS): Flatten list and order
8218 2016-11-23 Pedro Alves <palves@redhat.com>
8220 * event-loop.c (handle_file_event): Use warning.
8221 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8222 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8225 2016-11-23 Pedro Alves <palves@redhat.com>
8227 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8229 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8230 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8231 debug_printf and debug_flush for debug output.
8232 * server.c (handle_general_set): Likewise.
8233 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8236 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8238 * Makefile.in (.c.o): Replace rule with ...
8239 (%.o: %.c): ... this one.
8241 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8243 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8244 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8246 * configure.ac: Remove checks for the make program.
8247 * configure: Re-generate.
8249 2016-10-28 Pedro Alves <palves@redhat.com>
8251 * Makefile.in (CXX_DIALECT): Get from configure.
8252 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8253 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8254 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8255 * config.in: Regenerate.
8256 * configure: Regenerate.
8258 2016-10-27 Yao Qi <yao.qi@linaro.org>
8260 * linux-low.c (linux_supports_range_stepping): Return true if
8261 can_software_single_step return true.
8263 2016-10-27 Yao Qi <yao.qi@linaro.org>
8265 * inferiors.c (find_inferior_in_random): New function.
8266 * inferiors.h (find_inferior_in_random): Declare.
8267 * linux-low.c (linux_wait_for_event_filtered): Call
8268 find_inferior_in_random instead of find_inferior.
8270 2016-10-27 Yao Qi <yao.qi@linaro.org>
8272 * linux-low.c (linux_wait_1): If single-step breakpoints are
8273 inserted, remove them.
8275 2016-10-26 Pedro Alves <palves@redhat.com>
8277 * linux-low.c (handle_extended_wait): Link parent/child fork
8279 (linux_wait_1): Unlink them.
8280 (linux_set_resume_request): Ignore resume requests for
8281 already-resumed and unhandled fork child threads.
8282 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8283 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8285 (handle_v_requests) <vCont>: Don't call require_running.
8286 * server.h (in_queued_stop_replies): New declaration.
8288 2016-10-24 Yao Qi <yao.qi@linaro.org>
8291 * linux-aarch64-low.c (append_insns): Cast the return value to
8294 2016-10-10 Yao Qi <yao.qi@linaro.org>
8296 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8298 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8300 * target.c (target_supports_multi_process): New function, moved
8302 * target.h (target_supports_multi_process): ... here. Remove
8305 2016-10-05 Tom Tromey <tom@tromey.com>
8308 * tracepoint.c (handle_tracepoint_bkpts): Check
8309 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8311 2016-10-05 Yao Qi <yao.qi@linaro.org>
8313 * configure.srv: Update the path of arm-*.xml files.
8315 2016-10-05 Terry Guo <terry.guo@arm.com>
8316 Yao Qi <yao.qi@linaro.org>
8318 * Makefile.in: Adjust the path of rules.
8319 * configure.srv: Update the path of xml files.
8320 * regformats/arm-with-iwmmxt.dat: Regenerated.
8321 * regformats/arm-with-neon.dat: Likewise.
8322 * regformats/arm-with-vfpv2.dat: Likewise.
8323 * regformats/arm-with-vfpv3.dat Likewise.
8325 2016-09-30 Yao Qi <yao.qi@linaro.org>
8328 * target.c (target_stop_and_wait): Don't call
8329 target_continue_no_signal, use resume_stop instead.
8331 2016-09-26 Yao Qi <yao.qi@linaro.org>
8333 * linux-low.c (linux_wait_1): Call debug_exit.
8335 2016-09-23 Pedro Alves <palves@redhat.com>
8337 * Makefile.in (SFILES): Add common/new-op.c.
8338 (OBS): Add common/new-op.o.
8339 (new-op.o): New rule.
8341 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8343 * .gitinore: Ignore more files.
8345 2016-09-21 Yao Qi <yao.qi@linaro.org>
8347 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8350 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8352 * server.c (start_inferior): Call target_mourn_inferior instead of
8353 mourn_inferior; pass ptid_t argument to it.
8355 (handle_target_event): Likewise.
8356 * target.c (target_mourn_inferior): New function.
8357 * target.h (mourn_inferior): Delete macro.
8359 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8361 * linux-low.c (lwp_is_stepping): New function.
8363 2016-09-06 Carl Love <cel@us.ibm.com>
8365 * server.c (start_inferior): Fixed comment, requested comment change
8366 didn't get updated correctly. Removed reference to ptrace () call as
8367 it is only true on Linux systems.
8369 2016-09-06 Carl Love <cel@us.ibm.com>
8371 * server.c (start_inferior): Do not call
8372 function target_post_create_inferior () if the
8373 inferior process has already exited.
8375 2016-09-05 Pedro Alves <palves@redhat.com>
8377 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8378 (COMPILE.pre, CC_LD): Use CXX directly.
8379 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8380 * acinclude.m4: Don't include build-with-cxx.m4.
8381 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8382 * configure: Regenerate.
8384 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8387 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8388 call writing data to own_buf.
8390 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8392 * target.c (mywait): Call target_wait instead of
8394 (target_wait): New function.
8396 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8398 * server.c (start_inferior): New variable 'ptid'. Replace calls
8399 to the_target->resume by target_continue{,_no_signal}, depending
8401 * target.c (target_stop_and_wait): Call target_continue_no_signal
8402 instead of the_target->resume.
8403 (target_continue): New function.
8405 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8407 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8409 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8412 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8414 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8415 * linux-arm-low.c (ps_get_thread_area): Likewise.
8416 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8417 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8418 * linux-mips-low.c (ps_get_thread_area): Likewise.
8419 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8420 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8421 * linux-x86-low.c (ps_get_thread_area): Likewise.
8422 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8424 2016-08-19 Pedro Alves <palves@redhat.com>
8426 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8428 2016-08-19 Pedro Alves <palves@redhat.com>
8430 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8431 comment. Use memcpy instead of casting through unsigned long.
8433 2016-08-19 Pedro Alves <palves@redhat.com>
8435 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8436 allocating around 0x80000000.
8438 2016-08-19 Pedro Alves <palves@redhat.com>
8441 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8442 (x32-avx512-linux-ipa.o): New rules.
8443 * configure.ac (x86_64-*-linux*): New x32 check.
8444 * configure.srv (ipa_x32_linux_regobj): New.
8445 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8446 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8448 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8450 * configure: Regenerate.
8452 2016-08-09 Pedro Alves <palves@redhat.com>
8455 * Makefile.in (OBS): Add signals-state-save-restore.o.
8456 (signals-state-save-restore.o): New rule.
8457 * config.in: Regenerate.
8458 * configure: Regenerate.
8459 * linux-low.c: Include "signals-state-save-restore.h".
8460 (linux_create_inferior): Call
8461 restore_original_signals_state.
8462 * server.c: Include "dispositions-save-restore.h".
8463 (captured_main): Call save_original_signals_state.
8465 2016-08-05 Pedro Alves <palves@redhat.com>
8467 * configure: Regenerate.
8469 2016-08-04 Yao Qi <yao.qi@linaro.org>
8471 * linux-low.c (regsets_fetch_inferior_registers): Check
8472 errno is ESRCH or not.
8474 2016-08-02 Yao Qi <yao.qi@linaro.org>
8476 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8477 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8478 (thread_db_load_search): Update.
8479 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8480 td_ta_set_event and td_ta_event_getmsg.
8482 2016-07-26 Pedro Alves <palves@redhat.com>
8485 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8486 of unsigned long for 64-bit registers and use uint32_t instead of
8487 unsigned int for 32-bit registers.
8489 2016-07-26 Pedro Alves <palves@redhat.com>
8491 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8494 2016-07-21 Tom Tromey <tom@tromey.com>
8496 * configure: Rebuild.
8498 2016-07-21 Yao Qi <yao.qi@linaro.org>
8500 * mem-break.c (find_gdb_breakpoint): Cast bp to
8501 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8503 2016-07-21 Yao Qi <yao.qi@linaro.org>
8505 * server.c (handle_v_requests): Support s and S actions
8506 if target_supports_software_single_step return true.
8508 2016-07-21 Yao Qi <yao.qi@linaro.org>
8510 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8511 is resume_step, call maybe_hw_step.
8512 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8514 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8516 (proceed_one_lwp): If resume request is resume_step, install
8517 reinsert breakpoints and call maybe_hw_step.
8519 2016-07-21 Yao Qi <yao.qi@linaro.org>
8521 * linux-low.c (proceed_one_lwp): Declare.
8522 (linux_resume_one_thread): Remove local variable 'step'.
8523 Lift code enqueue signal. Call proceed_one_lwp instead of
8524 linux_resume_one_lwp.
8526 2016-07-21 Yao Qi <yao.qi@linaro.org>
8528 * linux-low.c (linux_resume_one_thread): Call
8529 enqueue_pending_signal.
8531 2016-07-21 Yao Qi <yao.qi@linaro.org>
8533 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8534 * inferiors.c (do_restore_current_thread_cleanup): New function.
8535 (make_cleanup_restore_current_thread): Likewise.
8536 * linux-low.c (install_software_single_step_breakpoints): Call
8537 make_cleanup_restore_current_thread. Switch current_thread to
8540 2016-07-21 Yao Qi <yao.qi@linaro.org>
8542 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8543 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8544 (clone_one_breakpoint): Likewise.
8545 (delete_reinsert_breakpoints): Change parameter to thread.
8547 (has_reinsert_breakpoints): Likewise.
8548 (uninsert_reinsert_breakpoints): Likewise.
8549 (reinsert_reinsert_breakpoints): Likewise.
8550 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8551 (delete_reinsert_breakpoints): Likewise.
8552 (reinsert_reinsert_breakpoints): Likewise.
8553 (uninsert_reinsert_breakpoints): Likewise.
8554 (has_reinsert_breakpoints): Likewise.
8556 2016-07-21 Yao Qi <yao.qi@linaro.org>
8558 * inferiors.c (get_thread_process): Make parameter const.
8559 * inferiors.h (get_thread_process): Update declaration.
8560 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8561 Add new parameters child_thread and parent_thread. Callers
8563 * mem-break.h (clone_all_breakpoints): Update declaration.
8565 2016-07-21 Yao Qi <yao.qi@linaro.org>
8567 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8568 <command_list, handler>: Remove.
8569 (struct gdb_breakpoint): New.
8570 (struct other_breakpoint): New.
8571 (struct reinsert_breakpoint): New.
8572 (is_gdb_breakpoint): New function.
8573 (any_persistent_commands): Update command_list if
8574 is_gdb_breakpoint returns true.
8575 (set_breakpoint): Create breakpoints according to their types.
8576 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8577 (set_gdb_breakpoint_1): Likewise.
8578 (set_gdb_breakpoint): Likewise.
8579 (clear_breakpoint_conditions): Change parameter type to
8580 'struct gdb_breakpoint *'.
8581 (clear_breakpoint_commands): Likewise.
8582 (clear_breakpoint_conditions_and_commands): Likewise.
8583 (add_condition_to_breakpoint): Likewise.
8584 (add_breakpoint_condition): Likewise.
8585 (add_commands_to_breakpoint): Likewise.
8586 (check_breakpoints): Check other_breakpoint.
8587 (clone_one_breakpoint): Clone breakpopint according to its type.
8588 * mem-break.h (struct gdb_breakpoint): Declare.
8589 (set_gdb_breakpoint): Update declaration.
8590 (clear_breakpoint_conditions_and_commands): Likewise.
8591 (add_breakpoint_condition): Likewise.
8592 (add_breakpoint_commands): Likewise.
8593 * server.c (process_point_options): Change parameter type to
8594 'struct gdb_breakpoint *'.
8596 2016-07-21 Yao Qi <yao.qi@linaro.org>
8598 * mem-break.c (set_breakpoint_at): Rename it to ...
8599 (set_breakpoint_type_at): ... it.
8600 (set_breakpoint_at): Call set_breakpoint_type_at.
8601 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8602 * mem-break.h (set_breakpoint_at): Update comments.
8604 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8606 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8608 (nios2_store_gregset): Likewise.
8610 2016-07-01 Pedro Alves <palves@redhat.com>
8611 Antoine Tremblay <antoine.tremblay@ericsson.com>
8613 * linux-low.c: Change interface to take the target lwp_info
8614 pointer directly and return void. Handle detaching from a zombie
8616 (linux_detach_lwp_callback): New function.
8617 (linux_detach): Detach from the leader thread after detaching from
8620 2016-06-28 Yao Qi <yao.qi@linaro.org>
8622 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8623 for variable new_offset.
8624 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8625 (aarch64_ftrace_insn_reloc_cb): Likewise.
8626 (aarch64_ftrace_insn_reloc_tb): Likewise.
8627 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8628 PRIx64 instead of PRIx32.
8630 2016-06-28 Yao Qi <yao.qi@linaro.org>
8632 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8633 (the_low_target): Install arm_get_syscall_trapinfo.
8635 2016-06-28 Yao Qi <yao.qi@linaro.org>
8637 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8639 (the_low_target): Install aarch64_get_syscall_trapinfo.
8641 2016-06-28 Yao Qi <yao.qi@linaro.org>
8643 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8645 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8646 Remove parameter sysno.
8647 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8650 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8652 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8653 (s390_emit_ne_goto): Likewise.
8654 (s390_emit_lt_goto): Likewise.
8655 (s390_emit_le_goto): Likewise.
8656 (s390_emit_gt_goto): Likewise.
8657 (s390_emit_ge_goto): Likewise.
8658 (s390x_emit_eq_goto): Likewise.
8659 (s390x_emit_ne_goto): Likewise.
8660 (s390x_emit_lt_goto): Likewise.
8661 (s390x_emit_le_goto): Likewise.
8662 (s390x_emit_gt_goto): Likewise.
8663 (s390x_emit_ge_goto): Likewise.
8664 (s390_emit_ops_impl): Mark variable static.
8665 (s390x_emit_ops): Likewise.
8667 2016-06-17 Yao Qi <yao.qi@linaro.org>
8669 * linux-low.c (handle_extended_wait): Call
8670 uninsert_reinsert_breakpoints for the parent process. Remove
8671 reinsert breakpoints from the child process. Reinsert them to
8672 the parent process when vfork is done.
8673 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8674 (reinsert_reinsert_breakpoints): New function.
8675 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8676 (reinsert_reinsert_breakpoints): Declare.
8678 2016-06-17 Yao Qi <yao.qi@linaro.org>
8680 * linux-low.c (handle_extended_wait): If the parent is doing
8681 step-over, remove the reinsert breakpoints from the forked child.
8683 2016-06-17 Yao Qi <yao.qi@linaro.org>
8685 * linux-low.c (unsuspend_all_lwps): Declare.
8686 (linux_low_filter_event): If thread exited, call finish_step_over.
8687 If step-over is finished, unsuspend other threads.
8689 2016-06-17 Yao Qi <yao.qi@linaro.org>
8691 * linux-low.c (linux_resume_one_lwp_throw): Assert
8692 has_reinsert_breakpoints returns false.
8693 * mem-break.c (delete_disabled_breakpoints): Assert
8694 bp type isn't reinsert_breakpoint.
8696 2016-06-17 Yao Qi <yao.qi@linaro.org>
8698 * linux-low.c (maybe_hw_step): New function.
8699 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8700 (finish_step_over): Switch current_thread to lwp temporarily,
8701 and assert has_reinsert_breakpoints returns true.
8702 (proceed_one_lwp): Call maybe_hw_step.
8703 * mem-break.c (has_reinsert_breakpoints): New function.
8704 * mem-break.h (has_reinsert_breakpoints): Declare.
8706 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8708 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8710 2016-05-17 Yao Qi <yao.qi@linaro.org>
8712 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8713 instead of find_inferior.
8715 2016-05-05 Yao Qi <yao.qi@linaro.org>
8717 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8718 Initialize res to zero.
8720 2016-05-05 Yao Qi <yao.qi@linaro.org>
8722 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8725 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8727 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8728 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8729 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8731 2016-04-28 Par Olsson <par.olsson@windriver.com>
8732 Simon Marchi <simon.marchi@ericsson.com>
8734 * tracepoint.c (write_inferior_int8): New function.
8735 (cmd_qtenable_disable): Write enable flag using
8736 write_inferior_int8.
8738 2016-04-25 Yao Qi <yao.qi@linaro.org>
8740 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8741 (need_step_over_p): Return zero if the LWP has pending signals
8742 can be delivered on software single step target.
8744 2016-04-25 Yao Qi <yao.qi@linaro.org>
8746 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8747 return instead of error.
8749 2016-04-22 Yao Qi <yao.qi@linaro.org>
8751 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8754 2016-04-22 Yao Qi <yao.qi@linaro.org>
8756 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8757 signal when stepping over breakpoint with software single
8760 2016-04-21 Pedro Alves <palves@redhat.com>
8762 * linux-s390-low.c (s390_collect_ptrace_register)
8763 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8765 (s390_check_regset): Use void * instead of gdb_byte *.
8767 2016-04-20 Pedro Alves <palves@redhat.com>
8769 * configure: Renegerate.
8771 2016-04-20 Yao Qi <yao.qi@linaro.org>
8773 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8774 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8776 (arm_store_gregset): Likewise.
8778 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8780 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8781 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8782 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8783 (amd64-avx-mpx-linux.c): New rules.
8784 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8785 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8786 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8787 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8788 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8789 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8790 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8791 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8792 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8793 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8794 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8795 * linux-x86-low.c (x86_linux_read_description): Add case for
8796 X86_XSTATE_AVX_MPX_MASK.
8797 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8798 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8799 init_registers_i386_avx_mpx_linux.
8800 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8801 (initialize_low_tracepoint): Call
8802 init_registers_i386_avx_mpx_linux.
8803 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8804 (initialize_low_tracepoint): Call
8805 init_registers_amd64_avx_mpx_linux.
8806 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8807 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8808 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8811 2016-04-18 Pedro Alves <palves@redhat.com>
8813 * configure: Regenerate.
8815 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8817 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8818 (aarch64_emit_sub): Likewise.
8820 2016-04-12 Pedro Alves <palves@redhat.com>
8822 * utils.c (prepare_to_throw_exception): Delete.
8824 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8826 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8828 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8830 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8832 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8834 * linux-aarch64-ipa.c: Add <elf.h> include.
8835 * linux-ppc-ipa.c: Add <elf.h> include.
8836 * linux-s390-ipa.c: Add <elf.h> include.
8838 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8840 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8841 (get_raw_reg_ptr): Likewise.
8842 (get_trace_state_variable_value_ptr): Likewise.
8843 (set_trace_state_variable_value_ptr): Likewise.
8844 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8847 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8848 Marcin Kościelnicki <koriakin@0x04.net>
8851 * linux-ppc-low.c (emit_insns): New function.
8852 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8853 (ppc_emit_prologue): New function.
8854 (ppc_emit_epilogue): New function.
8855 (ppc_emit_add): New function.
8856 (ppc_emit_sub): New function.
8857 (ppc_emit_mul): New function.
8858 (ppc_emit_lsh): New function.
8859 (ppc_emit_rsh_signed): New function.
8860 (ppc_emit_rsh_unsigned): New function.
8861 (ppc_emit_ext): New function.
8862 (ppc_emit_zero_ext): New function.
8863 (ppc_emit_log_not): New function.
8864 (ppc_emit_bit_and): New function.
8865 (ppc_emit_bit_or): New function.
8866 (ppc_emit_bit_xor): New function.
8867 (ppc_emit_bit_not): New function.
8868 (ppc_emit_equal): New function.
8869 (ppc_emit_less_signed): New function.
8870 (ppc_emit_less_unsigned): New function.
8871 (ppc_emit_ref): New function.
8872 (ppc_emit_const): New function.
8873 (ppc_emit_reg): New function.
8874 (ppc_emit_pop): New function.
8875 (ppc_emit_stack_flush): New function.
8876 (ppc_emit_swap): New function.
8877 (ppc_emit_stack_adjust): New function.
8878 (ppc_emit_call): New function.
8879 (ppc_emit_int_call_1): New function.
8880 (ppc_emit_void_call_2): New function.
8881 (ppc_emit_if_goto): New function.
8882 (ppc_emit_goto): New function.
8883 (ppc_emit_eq_goto): New function.
8884 (ppc_emit_ne_goto): New function.
8885 (ppc_emit_lt_goto): New function.
8886 (ppc_emit_le_goto): New function.
8887 (ppc_emit_gt_goto): New function.
8888 (ppc_emit_ge_goto): New function.
8889 (ppc_write_goto_address): New function.
8890 (ppc_emit_ops_impl): New static variable.
8891 (ppc64v1_emit_prologue): New function.
8892 (ppc64v2_emit_prologue): New function.
8893 (ppc64_emit_epilogue): New function.
8894 (ppc64_emit_add): New function.
8895 (ppc64_emit_sub): New function.
8896 (ppc64_emit_mul): New function.
8897 (ppc64_emit_lsh): New function.
8898 (ppc64_emit_rsh_signed): New function.
8899 (ppc64_emit_rsh_unsigned): New function.
8900 (ppc64_emit_ext): New function.
8901 (ppc64_emit_zero_ext): New function.
8902 (ppc64_emit_log_not): New function.
8903 (ppc64_emit_bit_and): New function.
8904 (ppc64_emit_bit_or): New function.
8905 (ppc64_emit_bit_xor): New function.
8906 (ppc64_emit_bit_not): New function.
8907 (ppc64_emit_equal): New function.
8908 (ppc64_emit_less_signed): New function.
8909 (ppc64_emit_less_unsigned): New function.
8910 (ppc64_emit_ref): New function.
8911 (ppc64_emit_const): New function.
8912 (ppc64v1_emit_reg): New function.
8913 (ppc64v2_emit_reg): New function.
8914 (ppc64_emit_pop): New function.
8915 (ppc64_emit_stack_flush): New function.
8916 (ppc64_emit_swap): New function.
8917 (ppc64v1_emit_call): New function.
8918 (ppc64v2_emit_call): New function.
8919 (ppc64v1_emit_int_call_1): New function.
8920 (ppc64v2_emit_int_call_1): New function.
8921 (ppc64v1_emit_void_call_2): New function.
8922 (ppc64v2_emit_void_call_2): New function.
8923 (ppc64_emit_if_goto): New function.
8924 (ppc64_emit_eq_goto): New function.
8925 (ppc64_emit_ne_goto): New function.
8926 (ppc64_emit_lt_goto): New function.
8927 (ppc64_emit_le_goto): New function.
8928 (ppc64_emit_gt_goto): New function.
8929 (ppc64_emit_ge_goto): New function.
8930 (ppc64v1_emit_ops_impl): New static variable.
8931 (ppc64v2_emit_ops_impl): New static variable.
8932 (ppc_emit_ops): New function.
8933 (linux_low_target): Wire in ppc_emit_ops.
8935 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8936 Marcin Kościelnicki <koriakin@0x04.net>
8939 * Makefile.in: Add powerpc-*-ipa.o
8940 * configure.srv: Add ipa_obj for powerpc*-linux.
8941 * linux-ppc-ipa.c: New file.
8942 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8944 (PPC_FIELD): New macro.
8945 (PPC_SEXT): New macro.
8946 (PPC_OP6): New macro.
8947 (PPC_BO): New macro.
8948 (PPC_LI): New macro.
8949 (PPC_BD): New macro.
8950 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8951 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8952 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8953 (ppc_get_thread_area): New function.
8954 (is_elfv2_inferior): New function.
8955 (gen_ds_form): New function.
8956 (GEN_STD): New macro.
8957 (GEN_STDU): New macro.
8958 (GEN_LD): New macro.
8959 (GEN_LDU): New macro.
8960 (gen_d_form): New function.
8961 (GEN_ADDI): New macro.
8962 (GEN_ADDIS): New macro.
8963 (GEN_LI): New macro.
8964 (GEN_LIS): New macro.
8965 (GEN_ORI): New macro.
8966 (GEN_ORIS): New macro.
8967 (GEN_LWZ): New macro.
8968 (GEN_STW): New macro.
8969 (GEN_STWU): New macro.
8970 (gen_xfx_form): New function.
8971 (GEN_MFSPR): New macro.
8972 (GEN_MTSPR): New macro.
8973 (GEN_MFCR): New macro.
8974 (GEN_MTCR): New macro.
8975 (GEN_SYNC): New macro.
8976 (GEN_LWSYNC): New macro.
8977 (gen_x_form): New function.
8978 (GEN_OR): New macro.
8979 (GEN_MR): New macro.
8980 (GEN_LWARX): New macro.
8981 (GEN_STWCX): New macro.
8982 (GEN_CMPW): New macro.
8983 (gen_md_form): New function.
8984 (GEN_RLDICL): New macro.
8985 (GEN_RLDICR): New macro.
8986 (gen_i_form): New function.
8988 (GEN_BL): New macro.
8989 (gen_b_form): New function.
8990 (GEN_BNE): New macro.
8991 (GEN_LOAD): New macro.
8992 (GEN_STORE): New macro.
8993 (gen_limm): New function.
8994 (gen_atomic_xchg): New function.
8995 (gen_call): New function.
8996 (ppc_relocate_instruction): New function.
8997 (ppc_install_fast_tracepoint_jump_pad): New function.
8998 (ppc_get_min_fast_tracepoint_insn_len): New function.
8999 (ppc_get_ipa_tdesc_idx): New function.
9000 (the_low_target): Wire in the new functions.
9001 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9003 * linux-ppc-tdesc.h: New file.
9005 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9007 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9008 (alloc_jump_pad_buffer): New function.
9009 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9010 (alloc_jump_pad_buffer): New function.
9011 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9012 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9013 (alloc_jump_pad_buffer): New function.
9014 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9015 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9016 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9017 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9019 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9021 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9022 * linux-amd64-ipa.c: Likewise.
9023 * linux-i386-ipa.c: Likewise.
9024 * linux-s390-ipa.c: Likewise.
9025 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9026 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9027 set_trace_state_variable_value_ptr.
9028 (struct ipa_sym_addresses): Likewise.
9029 (symbol_list): Likewise.
9030 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9031 accessing gdb_collect directly.
9032 (gdb_collect_ptr_type): New typedef.
9033 (get_raw_reg_ptr_type): New typedef.
9034 (get_trace_state_variable_value_ptr_type): New typedef.
9035 (set_trace_state_variable_value_ptr_type): New typedef.
9036 (gdb_collect_ptr): New global.
9037 (get_raw_reg_ptr): New global.
9038 (get_trace_state_variable_value_ptr): New global.
9039 (set_trace_state_variable_value_ptr): New global.
9040 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9041 accessing get_raw_reg directly.
9042 (get_get_tsv_func_addr): Likewise for
9043 get_trace_state_variable_value_ptr.
9044 (get_set_tsv_func_addr): Likewise for
9045 set_trace_state_variable_value_ptr.
9046 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9048 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9050 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9052 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9054 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9056 (relocate_instruction): Remove own_buf.
9057 * server.c (own_buf): Make global.
9058 (handle_v_requests): Make global.
9059 * server.h (own_buf): New declaration.
9060 (handle_v_requests): New prototype.
9062 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9065 * linux-s390-low.c (add_insns): New function.
9066 (s390_emit_prologue): New function.
9067 (s390_emit_epilogue): New function.
9068 (s390_emit_add): New function.
9069 (s390_emit_sub): New function.
9070 (s390_emit_mul): New function.
9071 (s390_emit_lsh): New function.
9072 (s390_emit_rsh_signed): New function.
9073 (s390_emit_rsh_unsigned): New function.
9074 (s390_emit_ext): New function.
9075 (s390_emit_log_not): New function.
9076 (s390_emit_bit_and): New function.
9077 (s390_emit_bit_or): New function.
9078 (s390_emit_bit_xor): New function.
9079 (s390_emit_bit_not): New function.
9080 (s390_emit_equal): New function.
9081 (s390_emit_less_signed): New function.
9082 (s390_emit_less_unsigned): New function.
9083 (s390_emit_ref): New function.
9084 (s390_emit_if_goto): New function.
9085 (s390_emit_goto): New function.
9086 (s390_write_goto_address): New function.
9087 (s390_emit_litpool): New function.
9088 (s390_emit_const): New function.
9089 (s390_emit_call): New function.
9090 (s390_emit_reg): New function.
9091 (s390_emit_pop): New function.
9092 (s390_emit_stack_flush): New function.
9093 (s390_emit_zero_ext): New function.
9094 (s390_emit_swap): New function.
9095 (s390_emit_stack_adjust): New function.
9096 (s390_emit_set_r2): New function.
9097 (s390_emit_int_call_1): New function.
9098 (s390_emit_void_call_2): New function.
9099 (s390_emit_eq_goto): New function.
9100 (s390_emit_ne_goto): New function.
9101 (s390_emit_lt_goto): New function.
9102 (s390_emit_le_goto): New function.
9103 (s390_emit_gt_goto): New function.
9104 (s390_emit_ge_goto): New function.
9105 (s390x_emit_prologue): New function.
9106 (s390x_emit_epilogue): New function.
9107 (s390x_emit_add): New function.
9108 (s390x_emit_sub): New function.
9109 (s390x_emit_mul): New function.
9110 (s390x_emit_lsh): New function.
9111 (s390x_emit_rsh_signed): New function.
9112 (s390x_emit_rsh_unsigned): New function.
9113 (s390x_emit_ext): New function.
9114 (s390x_emit_log_not): New function.
9115 (s390x_emit_bit_and): New function.
9116 (s390x_emit_bit_or): New function.
9117 (s390x_emit_bit_xor): New function.
9118 (s390x_emit_bit_not): New function.
9119 (s390x_emit_equal): New function.
9120 (s390x_emit_less_signed): New function.
9121 (s390x_emit_less_unsigned): New function.
9122 (s390x_emit_ref): New function.
9123 (s390x_emit_if_goto): New function.
9124 (s390x_emit_const): New function.
9125 (s390x_emit_call): New function.
9126 (s390x_emit_reg): New function.
9127 (s390x_emit_pop): New function.
9128 (s390x_emit_stack_flush): New function.
9129 (s390x_emit_zero_ext): New function.
9130 (s390x_emit_swap): New function.
9131 (s390x_emit_stack_adjust): New function.
9132 (s390x_emit_int_call_1): New function.
9133 (s390x_emit_void_call_2): New function.
9134 (s390x_emit_eq_goto): New function.
9135 (s390x_emit_ne_goto): New function.
9136 (s390x_emit_lt_goto): New function.
9137 (s390x_emit_le_goto): New function.
9138 (s390x_emit_gt_goto): New function.
9139 (s390x_emit_ge_goto): New function.
9140 (s390_emit_ops): New function.
9141 (struct linux_target_ops): Fill in emit_ops hook.
9143 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9146 * Makefile.in: Add s390 IPA files.
9147 * configure.srv: Build IPA for s390.
9148 * linux-s390-ipa.c: New file.
9149 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9150 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9151 (tdesc_s390_linux32): Likewise.
9152 (init_registers_s390_linux32v1): Likewise.
9153 (tdesc_s390_linux32v1): Likewise.
9154 (init_registers_s390_linux32v2): Likewise.
9155 (tdesc_s390_linux32v2): Likewise.
9156 (init_registers_s390_linux64): Likewise.
9157 (tdesc_s390_linux64): Likewise.
9158 (init_registers_s390_linux64v1): Likewise.
9159 (tdesc_s390_linux64v1): Likewise.
9160 (init_registers_s390_linux64v2): Likewise.
9161 (tdesc_s390_linux64v2): Likewise.
9162 (init_registers_s390_te_linux64): Likewise.
9163 (tdesc_s390_te_linux64): Likewise.
9164 (init_registers_s390_vx_linux64): Likewise.
9165 (tdesc_s390_vx_linux64): Likewise.
9166 (init_registers_s390_tevx_linux64): Likewise.
9167 (tdesc_s390_tevx_linux64): Likewise.
9168 (init_registers_s390x_linux64): Likewise.
9169 (tdesc_s390x_linux64): Likewise.
9170 (init_registers_s390x_linux64v1): Likewise.
9171 (tdesc_s390x_linux64v1): Likewise.
9172 (init_registers_s390x_linux64v2): Likewise.
9173 (tdesc_s390x_linux64v2): Likewise.
9174 (init_registers_s390x_te_linux64): Likewise.
9175 (tdesc_s390x_te_linux64): Likewise.
9176 (init_registers_s390x_vx_linux64): Likewise.
9177 (tdesc_s390x_vx_linux64): Likewise.
9178 (init_registers_s390x_tevx_linux64): Likewise.
9179 (tdesc_s390x_tevx_linux64): Likewise.
9180 (have_hwcap_s390_vx): New static variable.
9181 (s390_arch_setup): Fill have_hwcap_s390_vx.
9182 (s390_get_thread_area): New function.
9183 (s390_ft_entry_gpr_esa): New const.
9184 (s390_ft_entry_gpr_zarch): New const.
9185 (s390_ft_entry_misc): New const.
9186 (s390_ft_entry_fr): New const.
9187 (s390_ft_entry_vr): New const.
9188 (s390_ft_main_31): New const.
9189 (s390_ft_main_64): New const.
9190 (s390_ft_exit_fr): New const.
9191 (s390_ft_exit_vr): New const.
9192 (s390_ft_exit_misc): New const.
9193 (s390_ft_exit_gpr_esa): New const.
9194 (s390_ft_exit_gpr_zarch): New const.
9195 (append_insns): New function.
9196 (s390_relocate_instruction): New function.
9197 (s390_install_fast_tracepoint_jump_pad): New function.
9198 (s390_get_min_fast_tracepoint_insn_len): New function.
9199 (s390_get_ipa_tdesc_idx): New function.
9200 (struct linux_target_ops): Wire in the above functions.
9201 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9202 * linux-s390-tdesc.h: New file.
9204 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9206 * linux-s390-low.c (s390_supports_tracepoints): New function.
9207 (struct linux_target_ops): Fill supports_tracepoints hook.
9209 2016-03-18 Yao Qi <yao.qi@linaro.org>
9211 * linux-low.c (lwp_signal_can_be_delivered): New function.
9212 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9214 2016-03-18 Yao Qi <yao.qi@linaro.org>
9216 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9217 0 if signal is enqueued. Remove 'signal' from one debugging
9218 message. Move one debugging message to some lines below.
9219 Remove code setting 'signal' to 0.
9221 2016-03-18 Yao Qi <yao.qi@linaro.org>
9223 * linux-low.c (linux_low_filter_event): Remove redundant
9224 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9226 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9228 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9229 (struct linux_target_ops): Wire in the above.
9231 2016-03-03 Yao Qi <yao.qi@linaro.org>
9233 * linux-low.c: Update comments to start_step_over.
9235 2016-03-03 Yao Qi <yao.qi@linaro.org>
9238 * linux-low.c (handle_extended_wait): Set child suspended
9239 if event_lwp->bp_reinsert isn't zero.
9241 2016-03-02 Yao Qi <yao.qi@linaro.org>
9243 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9244 enqueue_pending_signal.
9246 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9248 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9251 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9253 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9254 (s390_regmap_3264) [!__s390x__]: New global.
9255 (s390_collect_ptrace_register): Skip map entries containing -1.
9256 (s390_supply_ptrace_register): Ditto.
9257 (s390_fill_gprs_high): New function.
9258 (s390_store_gprs_high): New function.
9259 (s390_regsets): Add NT_S390_HIGH_GPRS.
9260 (s390_get_hwcap): Enable on 31-bit.
9261 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9262 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9263 Detect NT_S390_HIGH_GPRS.
9264 (s390_usrregs_info_3264): Enable on 31-bit.
9265 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9266 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9268 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9271 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9272 * configure.srv: Ditto.
9273 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9274 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9275 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9276 (init_registers_amd64_linux): Remove prototype.
9277 (tdesc_amd64_linux): Remove declaration.
9278 (get_ipa_tdesc): New function.
9279 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9280 initialize remaining tdescs.
9281 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9282 (init_registers_i386_linux): Remove prototype.
9283 (tdesc_i386_linux): Remove declaration.
9284 (get_ipa_tdesc): New function.
9285 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9286 initialize remaining tdescs.
9287 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9288 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9289 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9290 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9291 (x86_get_ipa_tdesc_idx): New function.
9292 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9293 * linux-x86-tdesc.h: New file.
9294 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9295 (target_get_ipa_tdesc_idx): New macro.
9296 * tracepoint.c (ipa_tdesc_idx): New macro.
9297 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9298 (symbol_list): Add ipa_tdesc_idx.
9299 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9300 (ipa_tdesc): Remove.
9301 (ipa_tdesc_idx): New variable.
9302 (get_context_regcache): Use get_ipa_tdesc.
9303 (gdb_collect): Ditto.
9305 * tracepoint.h (get_ipa_tdesc): New prototype.
9306 (ipa_tdesc): Remove.
9308 2016-02-24 Pedro Alves <palves@redhat.com>
9310 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9311 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9312 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9313 Factor out common code between the USE_SIGTRAP_SIGINFO and
9314 !USE_SIGTRAP_SIGINFO blocks.
9315 (linux_low_filter_event): Call save_stop_reason instead of
9316 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9318 (linux_wait_1): Update comments.
9320 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9322 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9323 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9324 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9325 ppc_insert_point, ppc_remove_point.
9327 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9329 * linux-s390-low.c (s390_supports_z_point_type): New function.
9330 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9332 2016-02-16 Yao Qi <yao.qi@linaro.org>
9334 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9335 PC. Get pc from regcache_read_pc.
9337 2016-02-12 Yao Qi <yao.qi@linaro.org>
9339 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9340 or linux_get_pc_32bit.
9341 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9343 2016-02-12 Yao Qi <yao.qi@linaro.org>
9345 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9346 arm_linux_get_next_pcs_fixup.
9348 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9350 * tracepoint.c (x_tracepoint_action_download): Change
9351 write_inferior_data_ptr to write_inferior_data_pointer.
9352 (cmd_qtstart): Likewise.
9353 (write_inferior_data_ptr): Remove.
9354 (download_agent_expr): Change write_inferior_data_ptr to
9355 write_inferior_data_pointer.
9356 (download_tracepoint_1): Likewise.
9357 (download_tracepoint): Likewise.
9358 (download_trace_state_variables): Likewise.
9360 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9361 Marcin Kościelnicki <koriakin@0x04.net>
9363 * tracepoint.c (struct tracepoint_action_ops): Remove.
9364 (struct tracepoint_action): Remove ops.
9365 (m_tracepoint_action_download, r_tracepoint_action_download)
9366 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9367 size and offset accordingly.
9368 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9369 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9370 (tracepoint_action_send, tracepoint_action_download): New functions.
9371 Helpers for trace action handlers.
9372 (add_tracepoint_action): Remove setup actions ops.
9373 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9375 2016-02-10 Yao Qi <yao.qi@linaro.org>
9377 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9379 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9381 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9383 * configure: Regenerate.
9385 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9387 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9388 void * to gdb_byte *.
9389 * linux-low.c (siginfo_fixup): Likewise.
9390 (linux_xfer_siginfo): Likewise.
9391 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9393 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9395 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9397 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9399 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9401 * linux-x86-low.c [__x86_64__]: Include
9402 "nat/amd64-linux-siginfo.h".
9403 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9404 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9405 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9406 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9407 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9408 (cpt_si_fd, si_timerid, si_overrun): Move from
9409 nat/amd64-linux-siginfo.c.
9410 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9412 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9414 * server.c (skip_to_semicolon): Remove.
9415 (process_point_options): Use strchrnul instead of
9418 2016-01-26 Yao Qi <yao.qi@linaro.org>
9420 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9421 * linux-low.c (install_software_single_step_breakpoints): Don't
9422 call regcache_read_pc.
9423 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9426 2016-01-26 Yao Qi <yao.qi@linaro.org>
9428 * linux-low.c (install_software_single_step_breakpoints): Call
9429 regcache_read_pc instead of get_pc.
9431 2016-01-26 Yao Qi <yao.qi@linaro.org>
9433 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9434 (unblock_async_io): Rename to ...
9435 (block_unblock_async_io): ... it. New function.
9436 (enable_async_io): Don't install SIGIO handler. Unblock it
9438 (disable_async_io): Don't ignore SIGIO. Block it instead.
9439 (initialize_async_io): Install SIGIO handler. Don't call
9442 2016-01-26 Yao Qi <yao.qi@linaro.org>
9444 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9445 first character is '\003', call *the_target->request_interrupt.
9447 2016-01-25 Yao Qi <yao.qi@linaro.org>
9449 * remote-utils.c (new_thread_notify): Remove.
9450 (dead_thread_notify): Likewise.
9451 * remote-utils.h (new_thread_notify): Remove declaration.
9452 (dead_thread_notify): Likewise.
9454 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9456 * gdb.trace/pending.exp: Fix expected message on continue.
9458 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9460 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9461 it works properly on big-endian machines where sizeof (CORE_ADDR)
9464 2016-01-21 Pedro Alves <palves@redhat.com>
9466 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9467 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9468 * configure: Regenerate.
9470 2016-01-21 Yao Qi <yao.qi@linaro.org>
9472 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9473 is_thumb and set it according to CPSR saved on the stack.
9474 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9475 arm_sigreturn_next_pc.
9477 2016-01-18 Yao Qi <yao.qi@linaro.org>
9479 * linux-low.c (linux_set_pc_64bit): New function.
9480 (linux_get_pc_64bit): New function.
9481 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9483 * linux-sparc-low.c (debug_threads): Remove declaration.
9484 (sparc_get_pc): Remove.
9485 (the_low_target): Use linux_get_pc_64bit instead of
9487 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9488 (the_low_target): Use linux_get_pc_64bit and
9491 2016-01-18 Yao Qi <yao.qi@linaro.org>
9493 * linux-arm-low.c (debug_threads): Remove declaration.
9494 (arm_get_pc, arm_set_pc): Remove.
9495 (the_low_target): Use linux_get_pc_32bit and
9497 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9498 (the_low_target): Use linux_get_pc_32bit and
9500 * linux-cris-low.c (debug_threads): Remove declaration.
9501 (cris_get_pc, cris_set_pc,): Remove.
9502 (the_low_target): Use linux_get_pc_32bit and
9504 * linux-crisv32-low.c (debug_threads): Remove declaration.
9505 (cris_get_pc, cris_set_pc): Remove.
9506 (the_low_target): Use linux_get_pc_32bit and
9508 * linux-low.c: Include inttypes.h.
9509 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9510 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9511 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9512 (the_low_target): Use linux_get_pc_32bit and
9514 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9515 (the_low_target): Use linux_get_pc_32bit and
9517 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9518 (the_low_target): Use linux_get_pc_32bit and
9520 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9521 (the_low_target): Use linux_get_pc_32bit and
9523 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9524 (the_low_target): Use linux_get_pc_32bit and
9527 2016-01-18 Gary Benson <gbenson@redhat.com>
9529 * configure.ac (AC_FUNC_FORK): New check.
9530 * config.in: Regenerate.
9531 * configure: Likewise.
9533 2016-01-14 Yao Qi <yao.qi@linaro.org>
9535 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9536 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9537 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9538 arm_get_next_pcs_ctor.
9540 2016-01-12 Josh Stone <jistone@redhat.com>
9541 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9543 * inferiors.h: Include "gdb_vecs.h".
9544 (struct process_info): Add syscalls_to_catch.
9545 * inferiors.c (remove_process): Free syscalls_to_catch.
9546 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9547 syscall_return stops.
9548 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9549 * server.c (handle_general_set): Handle QCatchSyscalls.
9550 (handle_query): Report support for QCatchSyscalls.
9551 * target.h (struct target_ops): Add supports_catch_syscall.
9552 (target_supports_catch_syscall): New macro.
9553 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9554 (struct lwp_info): Add syscall_state.
9555 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9556 Maintain syscall_state and syscalls_to_catch across exec.
9557 (get_syscall_trapinfo): New function, proxy to the_low_target.
9558 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9559 (linux_low_filter_event): Toggle syscall_state entry/return for
9560 syscall traps, and set it ignored for all others.
9561 (gdb_catching_syscalls_p): New function.
9562 (gdb_catch_this_syscall_p): New function.
9563 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9564 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9565 (linux_supports_catch_syscall): New function.
9566 (linux_target_ops): Install it.
9567 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9568 (the_low_target): Install it.
9570 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9572 * acinclude.m4: Include new ../warning.m4 file.
9573 * configure: Regenerated.
9574 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9576 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9578 * ax.c (is_goto_target): Mark static.
9579 * linux-low.c (register_addr): Likewise.
9580 (linux_fetch_registers, linux_store_registers): Likewise.
9581 * mem-break.c (any_persistent_commands): Fix old prototype.
9582 (add_commands_to_breakpoint): Mark static.
9583 * regcache.c (find_register_by_name): Delete unused func.
9584 * remote-utils.c (hex_or_minus_one): Mark static.
9585 * server.c (monitor_show_help): Mark static.
9586 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9587 handle_v_requests): Likewise.
9589 2016-01-12 Pedro Alves <palves@redhat.com>
9591 Remove use of the registered trademark symbol throughout.
9593 2016-01-08 Yao Qi <yao.qi@linaro.org>
9595 * remote-utils.c (getpkt): If c is '\003', call target hook
9598 2016-01-06 Yao Qi <yao.qi@linaro.org>
9600 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9601 linux-aarch32-low.c.
9602 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9603 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9604 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9605 (thumb2_breakpoint): Declare.
9606 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9607 linux-aarch32-low.h.
9608 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9609 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9610 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9612 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9614 * gdbreplay.c (gdbreplay_version): Change copyright year in
9616 * server.c (gdbserver_version): Likewise.
9618 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9620 * server.c (crc32_table): Delete.
9621 (crc32): Use libiberty's xcrc32 function.
9623 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9625 * lynx-low.c (lynx_delete_thread_callback): New function.
9626 (lynx_mourn): Properly delete our process and all of its
9627 threads. Remove call to clear_inferiors.
9629 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9631 * target.c (thread_search_callback): Add check that
9632 the thread_stopped target callback is not NULL before
9635 2015-12-21 Yao Qi <yao.qi@linaro.org>
9637 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9640 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9642 * server.c (handle_query): Call target_supports_software_single_step.
9644 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9646 * linux-low.c (single_step): New function.
9647 (linux_resume_one_lwp_throw): Call single_step.
9648 (start_step_over): Likewise.
9650 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9652 * Makefile.in (SFILES): Append arch/arm-linux.c,
9653 arch/arm-get-next-pcs.c.
9654 (arm-linux.o): New rule.
9655 (arm-get-next-pcs.o): New rule.
9656 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9658 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9659 to linux-aarch32-low.c.
9660 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9661 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9662 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9663 (thumb2_breakpoint_len): Likewise.
9664 (arm_is_thumb_mode): Make non-static.
9665 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9666 from linux-aarch32-low.c.
9667 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9668 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9669 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9670 (thumb2_breakpoint_len): Likewise.
9671 (arm_is_thumb_mode): New declaration.
9672 * linux-arm-low.c: Include arch/arm-linux.h
9673 aarch/arm-get-next-pcs.h, sys/syscall.h.
9674 (get_next_pcs_ops): New struct.
9675 (get_next_pcs_addr_bits_remove): New function.
9676 (get_next_pcs_is_thumb): New function.
9677 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9678 (arm_sigreturn_next_pc): Likewise.
9679 (get_next_pcs_syscall_next_pc): Likewise.
9680 (arm_gdbserver_get_next_pcs): Likewise.
9681 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9683 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9684 * server.h: Include gdb_vecs.h.
9686 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9688 * Makefile.in (SFILES): Append common/common-regcache.c.
9689 (OBS): Append common-regcache.o.
9690 (common-regcache.o): New rule.
9691 * regcache.c (init_register_cache): Initialize cache to
9693 (regcache_raw_read_unsigned): New function.
9694 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9695 register_status enum.
9697 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9699 * linux-aarch64-low.c (the_low_targets): Rename
9700 breakpoint_reinsert_addr to get_next_pcs.
9701 * linux-arm-low.c (the_low_targets): Likewise.
9702 * linux-bfin-low.c (the_low_targets): Likewise.
9703 * linux-cris-low.c (the_low_targets): Likewise.
9704 * linux-crisv32-low.c (the_low_targets): Likewise.
9705 * linux-low.c (can_software_single_step): Likewise.
9706 (install_software_single_step_breakpoints): New function.
9707 (start_step_over): Use install_software_single_step_breakpoints.
9708 * linux-low.h: New CORE_ADDR vector.
9709 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9711 * linux-mips-low.c (the_low_targets): Likewise.
9712 * linux-nios2-low.c (the_low_targets): Likewise.
9713 * linux-sparc-low.c (the_low_targets): Likewise.
9715 2015-12-17 Pedro Alves <palves@redhat.com>
9717 * linux-low.c (linux_kill_one_lwp): Remove references to
9719 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9721 (linux_init_signals): Delete.
9722 (initialize_low): Adjust.
9723 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9725 2015-12-16 Pedro Alves <palves@redhat.com>
9727 * configure.ac (compiler warning flags): When testing a
9728 -Wno-foo option, check whether -Wfoo works instead.
9729 * configure: Regenerate.
9731 2015-12-11 Don Breazeal <donb@codesourcery.com>
9733 * server.c (process_serial_event): Don't exit from gdbserver
9734 in remote mode if there are still active inferiors.
9736 2015-12-11 Yao Qi <yao.qi@linaro.org>
9738 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9739 arm_breakpoint_at if the process is 32-bit.
9741 2015-12-11 Yao Qi <yao.qi@linaro.org>
9743 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9746 2015-12-07 Yao Qi <yao.qi@linaro.org>
9748 * configure.srv: Append arm.o to srv_tgtobj for
9749 aarch64*-*-linux* target.
9750 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9751 from linux-arm-low.c.
9752 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9753 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9754 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9755 (thumb2_breakpoint_len): Likewise.
9756 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9757 (arm_breakpoint_kinds): Likewise.
9758 (arm_breakpoint_kind_from_pc): Likewise.
9759 (arm_sw_breakpoint_from_kind): Likewise.
9760 (arm_breakpoint_kind_from_current_state): Likewise.
9761 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9762 (arm_sw_breakpoint_from_kind): Declare.
9763 (arm_breakpoint_kind_from_current_state): Declare.
9764 (arm_breakpoint_at): Declare.
9765 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9766 arm_sw_breakpoint_from_kind if process is 32-bit.
9767 (aarch64_breakpoint_kind_from_pc): New function.
9768 (aarch64_breakpoint_kind_from_current_state): New function.
9769 (the_low_target): Initialize fields breakpoint_kind_from_pc
9770 and breakpoint_kind_from_current_state.
9771 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9772 linux-aarch32-low.c.
9773 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9774 (arm_breakpoint, arm_breakpoint_len): Likewise.
9775 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9776 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9777 (arm_is_thumb_mode): Likewise.
9778 (arm_breakpoint_at): Likewise.
9779 (arm_breakpoint_kind_from_pc): Likewise.
9780 (arm_sw_breakpoint_from_kind): Likewise.
9781 (arm_breakpoint_kind_from_current_state): Likewise.
9784 2015-08-04 Yao Qi <yao.qi@linaro.org>
9786 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9787 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9788 * server.c (extended_protocol): Remove "static".
9789 * server.h (extended_protocol): Declare it.
9791 2015-12-04 Josh Stone <jistone@redhat.com>
9793 * target.h (struct target_ops) <arch_setup>: Rename to ...
9794 (struct target_ops) <post_create_inferior>: ... this.
9795 (target_arch_setup): Rename to ...
9796 (target_post_create_inferior): ... this, calling post_create_inferior.
9797 * server.c (start_inferior): Update target_arch_setup calls to
9798 target_post_create_inferior.
9799 * linux-low.c (linux_low_ptrace_options): Forward declare.
9800 (linux_arch_setup): Update its comment for general use.
9801 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9802 (struct linux_target_ops): Use linux_post_create_inferior.
9803 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9804 to post_create_inferior.
9805 * nto-low.c (struct nto_target_ops): Likewise.
9806 * spu-low.c (struct spu_target_ops): Likewise.
9807 * win32-low.c (struct win32_target_ops): Likewise.
9809 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9811 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9813 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9815 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9816 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9817 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9818 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9819 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9820 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9821 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9822 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9823 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9824 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9825 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9826 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9828 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9830 * linux-low.c (linux_look_up_symbols): Don't call
9831 linux_supports_traceclone.
9832 * linux-low.h (thread_db_init): Remove use_events argument.
9833 * thread-db.c (thread_db_use_event): Remove global variable.
9834 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9835 (struct thread_db) <td_create_bp>: Remove field.
9836 (thread_db_create_event): Remove function.
9837 (thread_db_enable_reporting): Likewise.
9838 (find_one_thread): Don't check for thread_db_use_events.
9839 (attach_thread): Likewise.
9840 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9841 (try_thread_db_load_1): Don't check for thread_db_use_events.
9842 (thread_db_init): Remove use_events argument and thread events
9844 (remove_thread_event_breakpoints): Remove function.
9845 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9847 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9849 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9851 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9852 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9853 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9854 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9855 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9857 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9859 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9860 * linux-low.c (can_hardware_single_step): Use
9861 supports_hardware_single_step.
9862 (can_software_single_step): New function.
9863 (start_step_over): Call can_software_single_step.
9864 (linux_supports_hardware_single_step): New function.
9865 (struct target_ops) <supports_software_single_step>: Initialize.
9866 * linux-low.h (struct linux_target_ops)
9867 <supports_hardware_single_step>: Initialize.
9868 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9869 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9870 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9871 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9872 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9873 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9874 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9875 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9876 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9877 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9879 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9880 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9882 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9883 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9884 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9886 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9887 * target.h (struct target_ops): <supports_software_single_step>:
9889 (target_supports_software_single_step): New macro.
9891 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9893 * linux-low.c (linux_wait_1): Fix pc advance condition.
9894 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9895 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9897 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9899 * linux-arm-low.c (arm_is_thumb_mode): New function.
9900 (arm_breakpoint_at): Use arm_is_thumb_mode.
9901 (arm_breakpoint_kind_from_current_state): New function.
9902 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9904 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9905 (linux_breakpoint_kind_from_current_state): New function.
9906 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9907 * linux-low.h (struct linux_target_ops)
9908 <breakpoint_kind_from_current_state>: New field.
9909 * target.h (struct target_ops): Likewise.
9910 (target_breakpoint_kind_from_current_state): New macro.
9912 2015-11-30 Pedro Alves <palves@redhat.com>
9914 * linux-low.c (linux_resume): Wake up the event loop before
9917 2015-11-30 Pedro Alves <palves@redhat.com>
9919 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9921 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9923 * target.c (struct thread_search): New structure.
9924 (thread_search_callback): New function.
9925 (prev_general_thread): New global.
9926 (prepare_to_access_memory, done_accessing_memory): New functions.
9927 * target.h (prepare_to_access_memory, done_accessing_memory):
9928 Replace macros with function declarations.
9930 2015-11-30 Pedro Alves <palves@redhat.com>
9933 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9934 report TARGET_WAITKIND_NO_RESUMED.
9935 * remote-utils.c (prepare_resume_reply): Handle
9936 TARGET_WAITKIND_NO_RESUMED.
9937 * server.c (report_no_resumed): New global.
9938 (handle_query) <qSupported>: Handle "no-resumed+". Report
9939 "no-resumed+" support.
9940 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9941 return error if the client doesn't support no-resumed events.
9942 (push_stop_notification): New function.
9943 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9944 events if the client supports them.
9946 2015-11-30 Pedro Alves <palves@redhat.com>
9948 * linux-low.c (thread_still_has_status_pending_p): Don't check
9950 (lwp_resumed): New function.
9951 (status_pending_p_callback): Return early if the LWP is not
9952 supposed to be resumed.
9954 2015-11-30 Pedro Alves <palves@redhat.com>
9956 * linux-low.c (handle_extended_wait): Assert that the LWP's
9957 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9958 thread create events, leave the new child's status pending.
9959 (linux_low_filter_event): If GDB wants to hear about thread exit
9960 events, leave the LWP marked dead and don't delete it.
9961 (linux_wait_for_event_filtered): Don't check for thread exit.
9962 (filter_exit_event): New function.
9963 (linux_wait_1): Use it, when returning an exit event.
9964 (linux_resume_one_lwp_throw): Assert that the LWP's
9965 waitstatus is TARGET_WAITKIND_IGNORE.
9966 * remote-utils.c (prepare_resume_reply): Handle
9967 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9968 * server.c (report_thread_events): New global.
9969 (handle_general_set): Handle QThreadEvents.
9970 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9971 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9972 TARGET_WAITKIND_THREAD_EXITED.
9973 * server.h (report_thread_events): Declare.
9975 2015-11-30 Pedro Alves <palves@redhat.com>
9977 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9978 the thread's last_resume_kind was resume_stop.
9980 2015-11-30 Pedro Alves <palves@redhat.com>
9982 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9985 2015-11-30 Pedro Alves <palves@redhat.com>
9987 * server.c (handle_v_requests): Handle vCtrlC.
9989 2015-11-30 Pedro Alves <palves@redhat.com>
9991 * gdbthread.h (find_any_thread_of_pid): Declare.
9992 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9994 * server.c (handle_query): If current_thread is NULL, look for
9995 another thread of the selected process.
9997 2015-11-26 Daniel Colascione <dancol@dancol.org>
9998 Simon Marchi <simon.marchi@ericsson.com>
10000 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10001 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10003 * target.h (struct target_ops) <thread_name>: New field.
10004 (target_thread_name): New macro.
10006 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10008 * regcache.h (regcache_invalidate_pid): Add declaration.
10009 * regcache.c (regcache_invalidate_pid): New function, extracted
10010 from regcache_invalidate.
10011 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10012 Add trivial documentation comment.
10013 * lynx-low.c: Use regcache_invalidate_pid instead of
10014 regcache_invalidate.
10016 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10018 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10019 and Elf64_auxv_t if the target is Android.
10021 2015-11-22 Doug Evans <xdje42@gmail.com>
10023 * target.h: #include <sys/types.h>.
10025 2015-11-19 Pedro Alves <palves@redhat.com>
10027 * linux-low.c (linux_process_qsupported): Change prototype.
10029 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10031 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10032 and adjust to loop over all features.
10033 * server.c (handle_query) <qSupported>: Adjust to call
10034 target_process_qsupported once, passing it a vector of unprocessed
10036 * target.h (struct target_ops) <process_qsupported>: Change
10038 (target_process_qsupported): Adjust.
10040 2015-11-19 Pedro Alves <palves@redhat.com>
10042 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10044 * configure: Regenerate.
10046 2015-11-19 Pedro Alves <palves@redhat.com>
10048 * configure: Regenerate.
10050 2015-11-19 Yao Qi <yao.qi@linaro.org>
10052 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10055 2015-11-19 Yao Qi <yao.qi@linaro.org>
10057 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10058 (struct aarch64_operand): Move enum out.
10060 2015-11-19 Yao Qi <yao.qi@linaro.org>
10062 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10063 struct user_fpsimd_state *.
10064 (aarch64_store_fpregset): Likewise.
10066 2015-11-19 Yao Qi <yao.qi@linaro.org>
10068 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10069 struct user_pt_regs *.
10070 (aarch64_store_gregset): Likewise.
10072 2015-11-18 Pedro Alves <palves@redhat.com>
10074 * Makefile.in (all_object_files): Add $IPA_OBJS.
10076 2015-11-17 Pedro Alves <palves@redhat.com>
10078 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10079 GDB_SIGNAL_0 and gdb_signal_to_string.
10081 2015-11-17 Pedro Alves <palves@redhat.com>
10083 * win32-low.c (handle_output_debug_string): Remove parameter.
10084 (win32_kill): Remove our_status local and adjust call to
10085 handle_output_debug_string.
10086 (get_child_debug_event): Adjust call to
10087 handle_output_debug_string.
10089 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10091 * linux-mips-low.c (mips_fill_gregset): Add cast.
10092 (mips_store_gregset): Likewise.
10093 (mips_fill_fpregset): Likewise.
10094 (mips_store_fpregset): Likewise.
10096 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10098 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10101 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10103 * linux-mips-low.c (mips_linux_new_thread): Change type of
10104 watch_type to enum target_hw_bp_type.
10106 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10108 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10109 Change return type to arm_hwbp_type.
10111 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10113 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10114 (arm_store_gregset): Likewise.
10115 * linux-arm-low.c (arm_get_hwcap): Likewise.
10116 (arm_read_description): Likewise.
10118 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10120 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10122 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10124 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10125 (ppc_fill_vsxregset): Likewise.
10126 (ppc_store_vsxregset): Likewise.
10127 (ppc_fill_vrregset): Likewise.
10128 (ppc_store_vrregset): Likewise.
10129 (ppc_fill_evrregset): Likewise.
10130 (ppc_store_evrregset): Likewise.
10132 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10134 * linux-ppc-low.c (ppc_usrregs_info): Remove
10135 forward-declaration.
10136 (ppc_arch_setup): Move lower in file.
10138 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10140 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10141 (ps_pdwrite): Likewise.
10143 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10145 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10146 to after assert checks.
10148 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10150 * proc-service.c (ps_pdread): Add/adjust casts.
10151 (ps_pdwrite): Add/adjust casts.
10153 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10155 * server.c (handle_search_memory_1): Cast return value of
10158 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10160 * server.c (write_qxfer_response): Change type of data to
10163 2015-10-29 Pedro Alves <palves@redhat.com>
10165 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10167 2015-10-29 Pedro Alves <palves@redhat.com>
10169 * tracepoint.c (clear_installed_tracepoints): Add casts.
10171 2015-10-29 Pedro Alves <palves@redhat.com>
10173 * server.c (handle_v_cont, process_serial_event): Add enum
10174 gdb_signal casts to signal parsing code.
10176 2015-10-29 Pedro Alves <palves@redhat.com>
10178 * linux-low.h (NULL_REGSET): Define.
10179 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10180 * linux-arm-low.c (arm_regsets): Likewise.
10181 * linux-crisv32-low.c (cris_regsets): Likewise.
10182 * linux-m68k-low.c (m68k_regsets): Likewise.
10183 * linux-mips-low.c (mips_regsets): Likewise.
10184 * linux-nios2-low.c (nios2_regsets): Likewise.
10185 * linux-ppc-low.c (ppc_regsets): Likewise.
10186 * linux-s390-low.c (s390_regsets): Likewise.
10187 * linux-sh-low.c (sh_regsets): Likewise.
10188 * linux-sparc-low.c (sparc_regsets): Likewise.
10189 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10190 * linux-tile-low.c (tile_regsets): Likewise.
10191 * linux-x86-low.c (x86_regsets): Likewise.
10192 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10194 2015-10-29 Pedro Alves <palves@redhat.com>
10196 * linux-low.h (NULL_REGSET): Define.
10197 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10198 * linux-arm-low.c (arm_regsets): Likewise.
10199 * linux-crisv32-low.c (cris_regsets): Likewise.
10200 * linux-m68k-low.c (m68k_regsets): Likewise.
10201 * linux-mips-low.c (mips_regsets): Likewise.
10202 * linux-nios2-low.c (nios2_regsets): Likewise.
10203 * linux-ppc-low.c (ppc_regsets): Likewise.
10204 * linux-s390-low.c (s390_regsets): Likewise.
10205 * linux-sh-low.c (sh_regsets): Likewise.
10206 * linux-sparc-low.c (sparc_regsets): Likewise.
10207 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10208 * linux-tile-low.c (tile_regsets): Likewise.
10209 * linux-x86-low.c (x86_regsets): Likewise.
10210 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10212 2015-10-26 Doug Evans <dje@google.com>
10214 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10216 2015-10-26 Doug Evans <dje@google.com>
10218 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10220 2015-10-26 Doug Evans <dje@google.com>
10222 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10224 (attach_thread, find_new_threads_callback): Ditto.
10226 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10228 * mem-break.h (set_breakpoint_data): Remove.
10230 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10232 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10233 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10234 (initialize_low): Remove set_breakpoint_data call.
10235 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10236 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10237 (initialize_low): Remove set_breakpoint_data call.
10238 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10239 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10240 (initialize_low): Remove set_breakpoint_data call.
10242 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10244 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10245 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10246 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10247 * target.h (target_breakpoint_kind_from_pc): New macro.
10249 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10251 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10252 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10253 the default breakpoint kind.
10255 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10257 * linux-arm-low.c (arm_supports_z_point_type): Add software
10258 breakpoint support.
10260 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10262 * linux-arm-low.c: Refactor breakpoint definitions.
10263 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10264 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10266 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10268 * Makefile.in: Add arm.c/o.
10269 * configure.srv: Likewise.
10270 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10271 (arm_breakpoint_kind_from_pc): New function.
10272 (arm_sw_breakpoint_from_kind): Return proper kind.
10273 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10275 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10277 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10279 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10280 (struct raw_breakpoint) <size>: Remove.
10281 (struct raw_breakpoint) <kind>: Add.
10282 (bp_size): New function.
10283 (bp_opcode): Likewise.
10284 (find_raw_breakpoint_at): Adjust for kind.
10285 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10286 (remove_memory_breakpoint): Adjust for kind call bp_size.
10287 (set_raw_breakpoint_at): Adjust for kind.
10288 (set_breakpoint): Likewise.
10289 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10290 (delete_raw_breakpoint): Adjust for kind.
10291 (delete_breakpoint): Likewise.
10292 (find_gdb_breakpoint): Likewise.
10293 (set_gdb_breakpoint_1): Likewise.
10294 (set_gdb_breakpoint): Likewise.
10295 (delete_gdb_breakpoint_1): Likewise.
10296 (delete_gdb_breakpoint): Likewise.
10297 (uninsert_raw_breakpoint): Likewise.
10298 (reinsert_raw_breakpoint): Likewise.
10299 (set_breakpoint_data): Remove.
10300 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10301 (check_mem_read): Adjust for kind call bp_size.
10302 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10303 (clone_one_breakpoint): Adjust for kind.
10304 * mem-break.h (set_gdb_breakpoint): Likewise.
10305 (delete_gdb_breakpoint): Likewise.
10306 * server.c (process_serial_event): Likewise.
10308 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10310 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10311 (struct linux_target_ops) <breakpoint>: Remove.
10312 (struct linux_target_ops) <breakpoint_len>: Remove.
10313 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10314 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10315 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10316 (arm_sw_breakpoint_from_kind): New function.
10317 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10318 (struct linux_target_ops) <breakpoint>: Remove.
10319 (struct linux_target_ops) <breakpoint_len>: Remove.
10320 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10321 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10322 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10323 (struct linux_target_ops) <breakpoint>: Remove.
10324 (struct linux_target_ops) <breakpoint_len>: Remove.
10325 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10326 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10327 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10328 (struct linux_target_ops) <breakpoint>: Remove.
10329 (struct linux_target_ops) <breakpoint_len>: Remove.
10330 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10331 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10332 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10333 and sw_breakpoint_from_kind to increment the pc.
10334 (linux_breakpoint_kind_from_pc): New function.
10335 (linux_sw_breakpoint_from_kind): New function.
10336 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10337 (initialize_low): Call breakpoint_kind_from_pc and
10338 sw_breakpoint_from_kind to replace breakpoint_data/len.
10339 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10341 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10342 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10343 (struct linux_target_ops) <breakpoint>: Remove.
10344 (struct linux_target_ops) <breakpoint_len>: Remove.
10345 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10346 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10347 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10348 (struct linux_target_ops) <breakpoint>: Remove.
10349 (struct linux_target_ops) <breakpoint_len>: Remove.
10350 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10351 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10352 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10353 (struct linux_target_ops) <breakpoint>: Remove.
10354 (struct linux_target_ops) <breakpoint_len>: Remove.
10355 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10356 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10357 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10358 (struct linux_target_ops) <breakpoint>: Remove.
10359 (struct linux_target_ops) <breakpoint_len>: Remove.
10360 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10361 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10362 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10363 (struct linux_target_ops) <breakpoint>: Remove.
10364 (struct linux_target_ops) <breakpoint_len>: Remove.
10365 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10366 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10367 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10368 (struct linux_target_ops) <breakpoint>: Remove.
10369 (struct linux_target_ops) <breakpoint_len>: Remove.
10370 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10371 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10372 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10373 (struct linux_target_ops) <breakpoint>: Remove.
10374 (struct linux_target_ops) <breakpoint_len>: Remove.
10375 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10376 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10377 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10378 (struct linux_target_ops) <breakpoint>: Remove.
10379 (struct linux_target_ops) <breakpoint_len>: Remove.
10380 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10381 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10382 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10383 (struct linux_target_ops) <breakpoint>: Remove.
10384 (struct linux_target_ops) <breakpoint_len>: Remove.
10385 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10386 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10387 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10388 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10389 (struct linux_target_ops) <breakpoint>: Remove.
10390 (struct linux_target_ops) <breakpoint_len>: Remove.
10391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10392 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10393 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10394 (struct linux_target_ops) <breakpoint>: Remove.
10395 (struct linux_target_ops) <breakpoint_len>: Remove.
10396 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10397 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10399 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10401 * linux-cris-low.c (cris_get_pc): Remove void arg.
10403 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10405 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10408 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10410 * inferiors.c (thread_pid_matches_callback): New function.
10411 (find_thread_process): New function.
10412 (remove_thread): Reset current_thread.
10413 (remove_process): Assert threads have been removed first.
10415 2015-10-15 Yao Qi <yao.qi@linaro.org>
10417 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10419 (aarch64_remove_point): Likewise.
10420 * regcache.c (regcache_register_size): New function.
10422 2015-10-12 Yao Qi <yao.qi@linaro.org>
10424 * linux-aarch64-low.c: Update all callers as emit_load_store
10425 is renamed to aarch64_emit_load_store.
10427 2015-10-12 Yao Qi <yao.qi@linaro.org>
10429 * linux-aarch64-low.c: Update all callers of function renaming
10430 from emit_insn to aarch64_emit_insn.
10432 2015-10-12 Yao Qi <yao.qi@linaro.org>
10434 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10435 arch/aarch64-insn.h.
10436 (struct aarch64_memory_operand): Likewise.
10437 (ENCODE): Likewise.
10438 (emit_insn): Move to arch/aarch64-insn.c.
10439 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10440 (emit_load_store): Move to arch/aarch64-insn.c.
10441 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10442 (can_encode_int32): Remove.
10444 2015-10-12 Yao Qi <yao.qi@linaro.org>
10446 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10447 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10448 (aarch64_relocate_instruction): Likewise.
10449 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10450 (struct aarch64_insn_visitor): Likewise.
10452 2015-10-12 Yao Qi <yao.qi@linaro.org>
10454 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10455 (struct aarch64_insn_visitor): New.
10456 (struct aarch64_insn_relocation_data): New.
10457 (aarch64_ftrace_insn_reloc_b): New function.
10458 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10459 (aarch64_ftrace_insn_reloc_cb): Likewise.
10460 (aarch64_ftrace_insn_reloc_tb): Likewise.
10461 (aarch64_ftrace_insn_reloc_adr): Likewise.
10462 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10463 (aarch64_ftrace_insn_reloc_others): Likewise.
10465 (aarch64_relocate_instruction): Use visitor.
10467 2015-10-12 Yao Qi <yao.qi@linaro.org>
10469 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10470 int. Add argument buf.
10471 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10472 aarch64_relocate_instruction.
10474 2015-10-12 Yao Qi <yao.qi@linaro.org>
10476 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10477 argument insn. Remove local variable insn. Don't call
10478 target_read_uint32.
10479 (aarch64_install_fast_tracepoint_jump_pad): Call
10480 target_read_uint32.
10482 2015-09-30 Yao Qi <yao.qi@linaro.org>
10484 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10485 (emit_load_store_pair): Likewise.
10487 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10489 * dll.c (match_dll): Add cast(s).
10490 (unloaded_dll): Likewise.
10491 * linux-low.c (second_thread_of_pid_p): Likewise.
10492 (delete_lwp_callback): Likewise.
10493 (count_events_callback): Likewise.
10494 (select_event_lwp_callback): Likewise.
10495 (linux_set_resume_request): Likewise.
10496 * server.c (accumulate_file_name_length): Likewise.
10497 (emit_dll_description): Likewise.
10498 (handle_qxfer_threads_worker): Likewise.
10499 (visit_actioned_threads): Likewise.
10500 * thread-db.c (any_thread_of): Likewise.
10501 * tracepoint.c (same_process_p): Likewise.
10502 (match_blocktype): Likewise.
10503 (build_traceframe_info_xml): Likewise.
10505 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10507 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10509 (gdb_unparse_agent_expr): Likewise.
10510 * hostio.c (require_data): Likewise.
10511 (handle_pread): Likewise.
10512 * linux-low.c (disable_regset): Likewise.
10513 (fetch_register): Likewise.
10514 (store_register): Likewise.
10515 (get_dynamic): Likewise.
10516 (linux_qxfer_libraries_svr4): Likewise.
10517 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10518 (set_fast_tracepoint_jump): Likewise.
10519 (uninsert_fast_tracepoint_jumps_at): Likewise.
10520 (reinsert_fast_tracepoint_jumps_at): Likewise.
10521 (validate_inserted_breakpoint): Likewise.
10522 (clone_agent_expr): Likewise.
10523 * regcache.c (init_register_cache): Likewise.
10524 * remote-utils.c (putpkt_binary_1): Likewise.
10525 (decode_M_packet): Likewise.
10526 (decode_X_packet): Likewise.
10527 (look_up_one_symbol): Likewise.
10528 (relocate_instruction): Likewise.
10529 (monitor_output): Likewise.
10530 * server.c (handle_search_memory): Likewise.
10531 (handle_qxfer_exec_file): Likewise.
10532 (handle_qxfer_libraries): Likewise.
10533 (handle_qxfer): Likewise.
10534 (handle_query): Likewise.
10535 (handle_v_cont): Likewise.
10536 (handle_v_run): Likewise.
10537 (captured_main): Likewise.
10538 * target.c (write_inferior_memory): Likewise.
10539 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10540 * tracepoint.c (init_trace_buffer): Likewise.
10541 (add_tracepoint_action): Likewise.
10542 (add_traceframe): Likewise.
10543 (add_traceframe_block): Likewise.
10544 (cmd_qtdpsrc): Likewise.
10545 (cmd_qtdv): Likewise.
10546 (cmd_qtstatus): Likewise.
10547 (response_source): Likewise.
10548 (response_tsv): Likewise.
10549 (cmd_qtnotes): Likewise.
10550 (gdb_collect): Likewise.
10551 (initialize_tracepoint): Likewise.
10553 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10555 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10556 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10557 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10559 (enum aarch64_condition_codes): New enum.
10560 (w0): New static global.
10563 (struct aarch64_memory_operand) <type>: New
10564 MEMORY_OPERAND_POSTINDEX type.
10565 (postindex_memory_operand): New helper function.
10566 (emit_ret): New function.
10567 (emit_load_store_pair): New function, factored out of emit_stp
10568 with support for MEMORY_OPERAND_POSTINDEX.
10569 (emit_stp): Rewrite using emit_load_store_pair.
10570 (emit_ldp): New function.
10571 (emit_load_store): Likewise.
10572 (emit_ldr): Mention post-index instruction in comment.
10573 (emit_ldrh): New function.
10574 (emit_ldrb): New function.
10575 (emit_ldrsw): Mention post-index instruction in comment.
10576 (emit_str): Likewise.
10577 (emit_subs): New function.
10578 (emit_cmp): Likewise.
10579 (emit_and): Likewise.
10580 (emit_orr): Likewise.
10581 (emit_orn): Likewise.
10582 (emit_eor): Likewise.
10583 (emit_mvn): Likewise.
10584 (emit_lslv): Likewise.
10585 (emit_lsrv): Likewise.
10586 (emit_asrv): Likewise.
10587 (emit_mul): Likewise.
10588 (emit_sbfm): Likewise.
10589 (emit_sbfx): Likewise.
10590 (emit_ubfm): Likewise.
10591 (emit_ubfx): Likewise.
10592 (emit_csinc): Likewise.
10593 (emit_cset): Likewise.
10594 (emit_nop): Likewise.
10595 (emit_ops_insns): New helper function.
10596 (emit_pop): Likewise.
10597 (emit_push): Likewise.
10598 (aarch64_emit_prologue): New function.
10599 (aarch64_emit_epilogue): Likewise.
10600 (aarch64_emit_add): Likewise.
10601 (aarch64_emit_sub): Likewise.
10602 (aarch64_emit_mul): Likewise.
10603 (aarch64_emit_lsh): Likewise.
10604 (aarch64_emit_rsh_signed): Likewise.
10605 (aarch64_emit_rsh_unsigned): Likewise.
10606 (aarch64_emit_ext): Likewise.
10607 (aarch64_emit_log_not): Likewise.
10608 (aarch64_emit_bit_and): Likewise.
10609 (aarch64_emit_bit_or): Likewise.
10610 (aarch64_emit_bit_xor): Likewise.
10611 (aarch64_emit_bit_not): Likewise.
10612 (aarch64_emit_equal): Likewise.
10613 (aarch64_emit_less_signed): Likewise.
10614 (aarch64_emit_less_unsigned): Likewise.
10615 (aarch64_emit_ref): Likewise.
10616 (aarch64_emit_if_goto): Likewise.
10617 (aarch64_emit_goto): Likewise.
10618 (aarch64_write_goto_address): Likewise.
10619 (aarch64_emit_const): Likewise.
10620 (aarch64_emit_call): Likewise.
10621 (aarch64_emit_reg): Likewise.
10622 (aarch64_emit_pop): Likewise.
10623 (aarch64_emit_stack_flush): Likewise.
10624 (aarch64_emit_zero_ext): Likewise.
10625 (aarch64_emit_swap): Likewise.
10626 (aarch64_emit_stack_adjust): Likewise.
10627 (aarch64_emit_int_call_1): Likewise.
10628 (aarch64_emit_void_call_2): Likewise.
10629 (aarch64_emit_eq_goto): Likewise.
10630 (aarch64_emit_ne_goto): Likewise.
10631 (aarch64_emit_lt_goto): Likewise.
10632 (aarch64_emit_le_goto): Likewise.
10633 (aarch64_emit_gt_goto): Likewise.
10634 (aarch64_emit_ge_got): Likewise.
10635 (aarch64_emit_ops_impl): New static global variable.
10636 (aarch64_emit_ops): New target function, return
10637 &aarch64_emit_ops_impl.
10638 (struct linux_target_ops): Install it.
10640 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10642 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10643 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10645 * linux-aarch64-ipa.c: New file.
10646 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10648 (aarch64_get_thread_area): New target method.
10649 (extract_signed_bitfield): New helper function.
10650 (aarch64_decode_ldr_literal): New function.
10651 (enum aarch64_opcodes): New enum.
10652 (struct aarch64_register): New struct.
10653 (struct aarch64_operand): New struct.
10654 (x0): New static global.
10663 (aarch64_register): New helper function.
10664 (register_operand): Likewise.
10665 (immediate_operand): Likewise.
10666 (struct aarch64_memory_operand): New struct.
10667 (offset_memory_operand): New helper function.
10668 (preindex_memory_operand): Likewise.
10669 (enum aarch64_system_control_registers): New enum.
10670 (ENCODE): New macro.
10671 (emit_insn): New helper function.
10672 (emit_b): New function.
10673 (emit_bcond): Likewise.
10674 (emit_cb): Likewise.
10675 (emit_tb): Likewise.
10676 (emit_blr): Likewise.
10677 (emit_stp): Likewise.
10678 (emit_ldp_q_offset): Likewise.
10679 (emit_stp_q_offset): Likewise.
10680 (emit_load_store): Likewise.
10681 (emit_ldr): Likewise.
10682 (emit_ldrsw): Likewise.
10683 (emit_str): Likewise.
10684 (emit_ldaxr): Likewise.
10685 (emit_stxr): Likewise.
10686 (emit_stlr): Likewise.
10687 (emit_data_processing_reg): Likewise.
10688 (emit_data_processing): Likewise.
10689 (emit_add): Likewise.
10690 (emit_sub): Likewise.
10691 (emit_mov): Likewise.
10692 (emit_movk): Likewise.
10693 (emit_mov_addr): Likewise.
10694 (emit_mrs): Likewise.
10695 (emit_msr): Likewise.
10696 (emit_sevl): Likewise.
10697 (emit_wfe): Likewise.
10698 (append_insns): Likewise.
10699 (can_encode_int32_in): New helper function.
10700 (aarch64_relocate_instruction): New function.
10701 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10702 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10703 (struct linux_target_ops): Install aarch64_get_thread_area,
10704 aarch64_install_fast_tracepoint_jump_pad and
10705 aarch64_get_min_fast_tracepoint_insn_len.
10707 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10709 * Makefile.in (aarch64-insn.o): New rule.
10710 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10712 2015-09-21 Yao Qi <yao.qi@linaro.org>
10714 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10716 2015-09-21 Yao Qi <yao.qi@linaro.org>
10718 * tracepoint.c (max_jump_pad_size): Remove.
10720 2015-09-18 Yao Qi <yao.qi@linaro.org>
10722 * linux-aarch64-low.c: Don't include sys/uio.h.
10723 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10725 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10727 * tracepoint.c (eval_result_type): Change prototype.
10728 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10730 2015-09-15 Pedro Alves <palves@redhat.com>
10732 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10733 Check whether to report exec events instead of checking whether
10734 multiprocess is enabled.
10736 2015-09-15 Pedro Alves <palves@redhat.com>
10739 * remote-utils.c (prepare_resume_reply): Merge
10740 TARGET_WAITKIND_VFORK_DONE switch case with the
10741 TARGET_WAITKIND_FORKED case.
10743 2015-09-15 Yao Qi <yao.qi@linaro.org>
10745 * server.c (handle_query): Check string comparison using
10746 "else if" instead of "if".
10748 2015-09-15 Yao Qi <yao.qi@linaro.org>
10750 * server.c (vCont_supported): New global variable.
10751 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10752 matches. Append ";vContSupported+" to own_buf.
10753 (handle_v_requests): Append ";s;S" to own_buf if target supports
10754 hardware single step or vCont_supported is false.
10755 (capture_main): Set vCont_supported to zero.
10757 2015-09-15 Yao Qi <yao.qi@linaro.org>
10759 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10761 (linux_supports_hardware_single_step): ... New function.
10762 (linux_target_ops): Update.
10763 * lynx-low.c (lynx_target_ops): Set field
10764 supports_hardware_single_step to target_can_do_hardware_single_step.
10765 * nto-low.c (nto_target_ops): Likewise.
10766 * spu-low.c (spu_target_ops): Likewise.
10767 * win32-low.c (win32_target_ops): Likewise.
10768 * target.c (target_can_do_hardware_single_step): New function.
10769 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10770 Remove. <supports_hardware_single_step>: New field.
10771 (target_supports_conditional_breakpoints): Remove.
10772 (target_supports_hardware_single_step): New macro.
10773 (target_can_do_hardware_single_step): Declare.
10774 * server.c (handle_query): Use target_supports_hardware_single_step
10775 instead of target_supports_conditional_breakpoints.
10777 2015-09-15 Yao Qi <yao.qi@linaro.org>
10779 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10781 (struct linux_target_ops the_low_target): Install
10782 aarch64_linux_siginfo_fixup.
10784 2015-09-11 Don Breazeal <donb@codesourcery.com>
10785 Luis Machado <lgustavo@codesourcery.com>
10787 * linux-low.c (linux_mourn): Static declaration.
10788 (linux_arch_setup): Move in front of
10789 handle_extended_wait.
10790 (linux_arch_setup_thread): New function.
10791 (handle_extended_wait): Handle exec events. Call
10792 linux_arch_setup_thread. Make event_lwp argument a
10793 pointer-to-a-pointer.
10794 (check_zombie_leaders): Do not check stopped threads.
10795 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10796 (linux_low_filter_event): Add lwp and thread for exec'ing
10797 non-leader thread if leader thread has been deleted.
10798 Refactor code into linux_arch_setup_thread and call it.
10799 Pass child lwp pointer by reference to handle_extended_wait.
10800 (linux_wait_for_event_filtered): Update comment.
10801 (linux_wait_1): Prevent clobbering exec event status.
10802 (linux_supports_exec_events): New function.
10803 (linux_target_ops) <supports_exec_events>: Initialize new member.
10804 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10806 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10807 * server.c (report_exec_events): New global variable.
10808 (handle_query): Handle qSupported query for exec-events feature.
10809 (captured_main): Initialize report_exec_events.
10810 * server.h (report_exec_events): Declare new global variable.
10811 * target.h (struct target_ops) <supports_exec_events>: New
10813 (target_supports_exec_events): New macro.
10814 * win32-low.c (win32_target_ops) <supports_exec_events>:
10815 Initialize new member.
10817 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10819 * linux-low.c (linux_low_enable_btrace): Remove.
10820 (linux_target_ops): Replace linux_low_enable_btrace with
10821 linux_enable_btrace.
10823 2015-09-03 Yao Qi <yao.qi@linaro.org>
10825 * linux-aarch64-low.c (aarch64_insert_point): Call
10826 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10829 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10831 * linux-low.c (check_stopped_by_breakpoint): Use
10832 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10834 2015-08-27 Pedro Alves <palves@redhat.com>
10836 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10838 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10840 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10841 the XNEW-family equivalent.
10842 (compile_bytecodes): Likewise.
10843 * dll.c (loaded_dll): Likewise.
10844 * event-loop.c (append_callback_event): Likewise.
10845 (create_file_handler): Likewise.
10846 (create_file_event): Likewise.
10847 * hostio.c (handle_open): Likewise.
10848 * inferiors.c (add_thread): Likewise.
10849 (add_process): Likewise.
10850 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10851 * linux-arm-low.c (arm_new_process): Likewise.
10852 (arm_new_thread): Likewise.
10853 * linux-low.c (add_to_pid_list): Likewise.
10854 (linux_add_process): Likewise.
10855 (handle_extended_wait): Likewise.
10856 (add_lwp): Likewise.
10857 (enqueue_one_deferred_signal): Likewise.
10858 (enqueue_pending_signal): Likewise.
10859 (linux_resume_one_lwp_throw): Likewise.
10860 (linux_resume_one_thread): Likewise.
10861 (linux_read_memory): Likewise.
10862 (linux_write_memory): Likewise.
10863 * linux-mips-low.c (mips_linux_new_process): Likewise.
10864 (mips_linux_new_thread): Likewise.
10865 (mips_add_watchpoint): Likewise.
10866 * linux-x86-low.c (initialize_low_arch): Likewise.
10867 * lynx-low.c (lynx_add_process): Likewise.
10868 * mem-break.c (set_raw_breakpoint_at): Likewise.
10869 (set_breakpoint): Likewise.
10870 (add_condition_to_breakpoint): Likewise.
10871 (add_commands_to_breakpoint): Likewise.
10872 (clone_agent_expr): Likewise.
10873 (clone_one_breakpoint): Likewise.
10874 * regcache.c (new_register_cache): Likewise.
10875 * remote-utils.c (look_up_one_symbol): Likewise.
10876 * server.c (queue_stop_reply): Likewise.
10877 (start_inferior): Likewise.
10878 (queue_stop_reply_callback): Likewise.
10879 (handle_target_event): Likewise.
10880 * spu-low.c (fetch_ppc_memory): Likewise.
10881 (store_ppc_memory): Likewise.
10882 * target.c (set_target_ops): Likewise.
10883 * thread-db.c (thread_db_load_search): Likewise.
10884 (try_thread_db_load_1): Likewise.
10885 * tracepoint.c (add_tracepoint): Likewise.
10886 (add_tracepoint_action): Likewise.
10887 (create_trace_state_variable): Likewise.
10888 (cmd_qtdpsrc): Likewise.
10889 (cmd_qtro): Likewise.
10890 (add_while_stepping_state): Likewise.
10891 * win32-low.c (child_add_thread): Likewise.
10892 (get_image_name): Likewise.
10894 2015-08-25 Yao Qi <yao.qi@linaro.org>
10896 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10898 2015-08-25 Yao Qi <yao.qi@linaro.org>
10900 * Makefile.in (aarch64-linux.o): New rule.
10901 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10903 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10904 (aarch64_init_debug_reg_state): Make it extern.
10905 (aarch64_linux_prepare_to_resume): Remove.
10907 2015-08-25 Yao Qi <yao.qi@linaro.org>
10909 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10910 lwp_arch_private_info and ptid_of_lwp.
10912 2015-08-25 Yao Qi <yao.qi@linaro.org>
10914 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10915 Find proc_info by find_process_pid. All callers updated.
10917 2015-08-25 Yao Qi <yao.qi@linaro.org>
10919 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10921 (debug_reg_change_callback): Remove.
10922 (aarch64_notify_debug_reg_change): Remove.
10924 2015-08-25 Yao Qi <yao.qi@linaro.org>
10926 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10927 Call current_lwp_ptid.
10929 2015-08-25 Yao Qi <yao.qi@linaro.org>
10931 * linux-aarch64-low.c (debug_reg_change_callback): Use
10934 2015-08-25 Yao Qi <yao.qi@linaro.org>
10936 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10938 2015-08-25 Yao Qi <yao.qi@linaro.org>
10940 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10942 2015-08-25 Yao Qi <yao.qi@linaro.org>
10944 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10947 2015-08-25 Yao Qi <yao.qi@linaro.org>
10949 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10951 (debug_reg_change_callback): Remove argument entry and add argument
10952 lwp. Remove local variable thread. Don't print thread id in the
10953 debugging output. Don't check whether pid of thread equals to pid.
10954 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10955 iterate_over_lwps instead find_inferior.
10957 2015-08-24 Pedro Alves <palves@redhat.com>
10959 * inferiors.c (get_first_process): New function.
10960 * inferiors.h (get_first_process): New declaration.
10961 * remote-utils.c (read_ptid): Default to the first process in the
10962 list, instead of to the current thread's process.
10964 2015-08-24 Pedro Alves <palves@redhat.com>
10966 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10967 * event-loop.c: Likewise.
10968 * remote-utils.c: Likewise.
10969 * tracepoint.c: Likewise.
10971 2015-08-24 Pedro Alves <palves@redhat.com>
10973 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10976 2015-08-21 Pedro Alves <palves@redhat.com>
10978 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10979 instead of literal 1.
10981 2015-08-21 Pedro Alves <palves@redhat.com>
10983 * tdesc.c (default_description): Explicitly zero-initialize.
10985 2015-08-21 Pedro Alves <palves@redhat.com>
10988 * inferiors.c (remove_thread): Discard any pending stop reply for
10990 * server.c (remove_all_on_match_pid): Rename to ...
10991 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10993 (discard_queued_stop_replies): Change parameter to a ptid. Now
10995 (handle_v_kill, kill_inferior_callback, captured_main)
10996 (process_serial_event): Adjust.
10997 * server.h (discard_queued_stop_replies): Declare.
10999 2015-08-21 Pedro Alves <palves@redhat.com>
11001 * linux-low.c (wait_for_sigstop): Always switch to no thread
11002 selected if the previously current thread dies.
11003 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11004 process instead of the current thread's.
11005 * remote-utils.c (input_interrupt): Don't check if there's no
11007 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11008 current thread to the general thread fails, error out.
11009 (handle_qxfer_auxv, handle_qxfer_libraries)
11010 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11011 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11012 (handle_query): Check if there's a thread selected instead of
11013 checking whether there's any thread in the thread list.
11014 (handle_qxfer_threads, handle_qxfer_btrace)
11015 (handle_qxfer_btrace_conf): Don't error out early if there's no
11016 thread in the thread list.
11017 (handle_v_cont, myresume): Don't set the current thread to the
11019 (process_serial_event) <Hg handling>: Also set thread_id if the
11020 previous general thread is still alive.
11021 (process_serial_event) <g/G handling>: If setting the current
11022 thread to the general thread fails, error out.
11023 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11024 thread's lwp instead of the current thread's.
11025 * target.c (set_desired_thread): If the desired thread was not
11026 found, leave the current thread pointing to NULL. Return an int
11027 (boolean) indicating success.
11028 * target.h (set_desired_thread): Change return type to int.
11030 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11032 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11033 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11035 (ps_get_thread_area): New function.
11037 2015-08-19 Gary Benson <gbenson@redhat.com>
11039 * hostio.c (handle_pread): Do not attempt to read more data
11040 than hostio_reply_with_data can fit in a packet.
11042 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11044 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11046 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11048 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11050 2015-08-06 Pedro Alves <palves@redhat.com>
11052 * tracepoint.c (expr_eval_result): Now an int.
11054 2015-08-06 Pedro Alves <palves@redhat.com>
11056 * gdbthread.h (struct regcache): Forward declare.
11057 (struct thread_info) <regcache_data>: Now a struct regcache
11059 * inferiors.c (inferior_regcache_data)
11060 (set_inferior_regcache_data): Now work with struct regcache
11062 * inferiors.h (struct regcache): Forward declare.
11063 (inferior_regcache_data, set_inferior_regcache_data): Now work
11064 with struct regcache pointers.
11065 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11066 (free_register_cache_thread): Remove struct regcache pointer
11069 2015-08-06 Pedro Alves <palves@redhat.com>
11071 * server.c (captured_main): On error, print the exception message
11072 to stderr, and if run_once is set, throw a quit.
11074 2015-08-06 Pedro Alves <palves@redhat.com>
11076 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11077 the current thread.
11079 2015-08-06 Pedro Alves <palves@redhat.com>
11081 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11082 reading beyond the passed in buffer length.
11084 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11086 * tracepoint.c (symbol_list) <required>: Remove.
11088 2015-08-06 Pedro Alves <palves@redhat.com>
11090 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11091 count if stopping and suspending threads.
11092 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11093 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11094 (linux_detach): Complete an ongoing step-over.
11095 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11097 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11098 (linux_wait_1): If passing a signal to the inferior after
11099 finishing a step-over, unsuspend and re-resume all lwps. If we
11100 see a single-step event but the thread should be continuing, don't
11101 pass the trap to gdb.
11102 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11103 internal_error instead of gdb_assert.
11104 (enqueue_pending_signal): New function.
11105 (check_ptrace_stopped_lwp_gone): Add debug output.
11106 (start_step_over): Use internal_error instead of gdb_assert.
11107 (complete_ongoing_step_over): New function.
11108 (linux_resume_one_thread): Don't resume a suspended thread.
11109 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11112 2015-08-06 Pedro Alves <palves@redhat.com>
11114 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11115 (linux_thread_alive): Use lwp_is_marked_dead.
11116 (extended_event_reported): Delete.
11117 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11118 instead of extended_event_reported.
11119 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11121 (lwp_is_marked_dead): New function.
11122 (lwp_running): Use lwp_is_marked_dead.
11123 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11126 2015-08-06 Pedro Alves <palves@redhat.com>
11128 * linux-low.c (linux_wait_1): Move fork event output out of the
11129 !report_to_gdb check. Pass event_child->waitstatus to
11130 target_waitstatus_to_string instead of ourstatus.
11132 2015-08-04 Yao Qi <yao.qi@linaro.org>
11134 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11135 if current_thread is 32 bit.
11137 2015-08-04 Yao Qi <yao.qi@linaro.org>
11139 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11140 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11141 * server.c (extended_protocol): Remove "static".
11142 * server.h (extended_protocol): Declare it.
11144 2015-08-04 Yao Qi <yao.qi@linaro.org>
11146 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11147 both aarch64 and aarch32.
11148 (aarch64_set_pc): Likewise.
11150 2015-08-04 Yao Qi <yao.qi@linaro.org>
11152 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11153 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11154 arm-with-neon.xml to srv_xmlfiles.
11155 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11156 (is_64bit_tdesc): New function.
11157 (aarch64_linux_read_description): New function.
11158 (aarch64_arch_setup): Call aarch64_linux_read_description.
11159 (regs_info): Rename to regs_info_aarch64.
11160 (aarch64_regs_info): Return right regs_info.
11161 (initialize_low_arch): Call initialize_low_arch_aarch32.
11163 2015-08-04 Yao Qi <yao.qi@linaro.org>
11165 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11166 * linux-aarch32-low.c: New file.
11167 * linux-aarch32-low.h: New file.
11168 * linux-arm-low.c (arm_fill_gregset): Move it to
11169 linux-aarch32-low.c.
11170 (arm_store_gregset): Likewise.
11171 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11172 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11173 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11174 (regs_info): Rename to regs_info_arm.
11175 (arm_regs_info): Return regs_info_aarch32 if
11176 have_ptrace_getregset is 1 and target description is
11177 arm_with_neon or arm_with_vfpv3.
11178 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11179 Call initialize_low_arch_aarch32 instead.
11181 2015-08-04 Yao Qi <yao.qi@linaro.org>
11183 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11184 * linux-low.c: ... here.
11185 * linux-low.h (have_ptrace_getregset): Declare it.
11187 2015-08-04 Pedro Alves <palves@redhat.com>
11189 * thread-db.c (struct thread_db): Use new typedefs.
11190 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11192 (disable_thread_event_reporting): Cast result of dlsym to
11193 destination function pointer type.
11194 (thread_db_mourn): Use td_ta_delete_ftype.
11196 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11198 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11200 (CDX_BREAKPOINT): Define for R2.
11201 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11202 (the_low_target): Add comments.
11204 2015-07-30 Yao Qi <yao.qi@linaro.org>
11206 * linux-arm-low.c (arm_hwcap): Remove it.
11207 (arm_read_description): New local variable arm_hwcap. Don't
11208 set arm_hwcap to zero.
11210 2015-07-30 Yao Qi <yao.qi@linaro.org>
11212 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11213 Use regcache->tdesc instead.
11214 (arm_store_wmmxregset): Likewise.
11215 (arm_fill_vfpregset): Likewise.
11216 (arm_store_vfpregset): Likewise.
11218 2015-07-30 Yao Qi <yao.qi@linaro.org>
11220 * linux-arm-low.c: Include arch/arm.h.
11221 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11222 (arm_store_gregset): Likewise.
11224 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11226 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11227 ptrace's 4th parameter.
11229 2015-07-27 Yao Qi <yao.qi@linaro.org>
11231 * configure.srv (case aarch64*-*-linux*): Don't set
11234 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11236 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11238 * linux-arm-low.c: Likewise.
11239 * linux-cris-low.c: Likewise.
11240 * linux-crisv32-low.c: Likewise.
11241 * linux-low.c: Likewise.
11242 * linux-m68k-low.c: Likewise.
11243 * linux-mips-low.c: Likewise.
11244 * linux-nios2-low.c: Likewise.
11245 * linux-s390-low.c: Likewise.
11246 * linux-sparc-low.c: Likewise.
11247 * linux-tic6x-low.c: Likewise.
11248 * linux-tile-low.c: Likewise.
11249 * linux-x86-low.c: Likewise.
11251 2015-07-24 Pedro Alves <palves@redhat.com>
11253 * config.in: Regenerate.
11254 * configure: Regenerate.
11256 2015-07-24 Pedro Alves <palves@redhat.com>
11258 * acinclude.m4: Include ../ptrace.m4.
11259 * configure.ac: Call GDB_AC_PTRACE.
11260 * config.in, configure: Regenerate.
11262 2015-07-24 Yao Qi <yao.qi@linaro.org>
11264 * linux-low.c (linux_create_inferior): Remove setting to
11265 proc->priv->new_inferior.
11266 (linux_attach): Likewise.
11267 (linux_low_filter_event): Likewise.
11268 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11270 2015-07-24 Yao Qi <yao.qi@linaro.org>
11272 * linux-low.c (linux_arch_setup): New function.
11273 (linux_low_filter_event): If proc->tdesc is NULL and
11274 proc->attached is true, call the_low_target.arch_setup.
11275 Otherwise, keep status pending, and return.
11276 (linux_resume_one_lwp_throw): Don't call get_pc if
11277 thread->while_stepping isn't NULL. Don't call
11278 get_thread_regcache if proc->tdesc is NULL.
11279 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11280 (linux_target_ops): Install arch_setup.
11281 * server.c (start_inferior): Call the_target->arch_setup.
11282 * target.h (struct target_ops) <arch_setup>: New field.
11283 (target_arch_setup): New marco.
11284 * lynx-low.c (lynx_target_ops): Update.
11285 * nto-low.c (nto_target_ops): Update.
11286 * spu-low.c (spu_target_ops): Update.
11287 * win32-low.c (win32_target_ops): Update.
11289 2015-07-24 Yao Qi <yao.qi@linaro.org>
11291 * linux-low.c (linux_add_process): Don't set
11292 proc->priv->new_inferior.
11293 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11294 (linux_attach): Likewise.
11296 2015-07-24 Yao Qi <yao.qi@linaro.org>
11298 * server.c (start_inferior): Code refactor.
11300 2015-07-24 Yao Qi <yao.qi@linaro.org>
11302 * server.c (process_serial_event): Set general_thread.
11304 2015-07-21 Yao Qi <yao.qi@linaro.org>
11306 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11307 aarch64_linux_get_debug_reg_capacity.
11309 2015-07-17 Yao Qi <yao.qi@linaro.org>
11311 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11312 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11313 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11314 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11315 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11316 (AARCH64_HWP_ALIGNMENT): Likewise.
11317 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11318 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11319 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11320 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11321 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11322 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11323 (struct aarch64_debug_reg_state): Likewise.
11324 (struct arch_lwp_info): Likewise.
11325 (aarch64_align_watchpoint): Likewise.
11326 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11327 (aarch64_watchpoint_length): Likewise.
11328 (aarch64_point_encode_ctrl_reg): Likewise
11329 (aarch64_point_is_aligned): Likewise.
11330 (aarch64_align_watchpoint): Likewise.
11331 (aarch64_linux_set_debug_regs):
11332 (aarch64_dr_state_insert_one_point): Likewise.
11333 (aarch64_dr_state_remove_one_point): Likewise.
11334 (aarch64_handle_breakpoint): Likewise.
11335 (aarch64_handle_aligned_watchpoint): Likewise.
11336 (aarch64_handle_unaligned_watchpoint): Likewise.
11337 (aarch64_handle_watchpoint): Likewise.
11339 2015-07-17 Yao Qi <yao.qi@linaro.org>
11341 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11342 and don't aarch64_get_debug_reg_state. All callers update.
11343 (aarch64_handle_aligned_watchpoint): Likewise.
11344 (aarch64_handle_unaligned_watchpoint): Likewise.
11345 (aarch64_handle_watchpoint): Likewise.
11346 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11347 (aarch64_remove_point): Likewise.
11349 2015-07-17 Yao Qi <yao.qi@linaro.org>
11351 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11353 (aarch64_handle_unaligned_watchpoint): Likewise.
11355 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11357 Revert the previous 3 commits:
11358 Move gdb_regex* to common/
11359 Move linux_find_memory_regions_full & co.
11360 gdbserver build-id attribute generator
11362 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11363 Jan Kratochvil <jan.kratochvil@redhat.com>
11365 gdbserver build-id attribute generator.
11366 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11367 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11368 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11370 (get_dynamic): Use find_pdhr to traverse program headers.
11371 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11372 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11373 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11374 (get_hex_build_id): New.
11375 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11376 to reply XML document.
11378 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11379 Jan Kratochvil <jan.kratochvil@redhat.com>
11381 * target.c: Include target/target-utils.h and fcntl.h.
11382 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11383 (target_fileio_read_stralloc): New functions.
11385 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11387 * Makefile.in (OBS): Add gdb_regex.o.
11388 (gdb_regex.o): New.
11389 * config.in: Rebuilt.
11390 * configure: Rebuilt.
11392 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11393 Jan Kratochvil <jan.kratochvil@redhat.com>
11395 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11396 * Makefile.in (OBS): Add target-utils.o.
11397 (linux-maps.o, target-utils.o): New.
11398 * configure.srv (srv_linux_obj): Add linux-maps.o.
11400 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11402 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11403 function, return 1.
11404 (the_low_target): Install it.
11406 2015-07-14 Pedro Alves <palves@redhat.com>
11408 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11409 Instead, ignore ECHILD, and throw an error for other errnos.
11411 2015-07-10 Pedro Alves <palves@redhat.com>
11413 * event-loop.c (struct callback_event) <data>: Change type to
11414 gdb_client_data instance instead of gdb_client_data pointer.
11415 (append_callback_event): Adjust.
11417 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11419 * linux-aarch64-low.c: Add comments for each linux_target_ops
11420 method. Remove comments already covered in target_ops and
11421 linux_target_ops definitions.
11422 (the_low_target): Add comments for each unimplemented method.
11424 2015-07-09 Yao Qi <yao.qi@linaro.org>
11426 * linux-aarch64-low.c (aarch64_regmap): Remove.
11427 (aarch64_usrregs_info): Remove.
11428 (regs_info): Set field usrregs to NULL.
11430 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11432 * linux-low.c: Include "rsp-low.h"
11433 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11434 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11435 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11436 (handle_btrace_enable_pt): New.
11437 (handle_btrace_general_set): Support "pt".
11438 (handle_btrace_conf_general_set): Support "pt:size".
11440 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11442 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11445 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11447 * linux-aarch64-low.c: Remove comment about endianness.
11448 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11449 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11452 2015-06-24 Gary Benson <gbenson@redhat.com>
11454 * linux-i386-ipa.c (stdint.h): Do not include.
11455 * lynx-i386-low.c (stdint.h): Likewise.
11456 * lynx-ppc-low.c (stdint.h): Likewise.
11457 * mem-break.c (stdint.h): Likewise.
11458 * thread-db.c (stdint.h): Likewise.
11459 * tracepoint.c (stdint.h): Likewise.
11460 * win32-low.c (stdint.h): Likewise.
11462 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11464 * server.c (write_qxfer_response): Update call to
11465 remote_escape_output.
11467 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11468 Jan Kratochvil <jan.kratochvil@redhat.com>
11470 Merge multiple hex conversions.
11471 * gdbreplay.c (tohex): Rename to 'fromhex'.
11472 (logchar): Use fromhex.
11474 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11476 * server.c (handle_qxfer_libraries): Set `version' attribute for
11479 2015-06-10 Gary Benson <gbenson@redhat.com>
11481 * target.h (struct target_ops) <multifs_open>: New field.
11482 <multifs_unlink>: Likewise.
11483 <multifs_readlink>: Likewise.
11484 * linux-low.c (nat/linux-namespaces.h): New include.
11485 (linux_target_ops): Initialize the_target->multifs_open,
11486 the_target->multifs_unlink and the_target->multifs_readlink.
11487 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11488 * hostio.c (hostio_fs_pid): New static variable.
11489 (hostio_handle_new_gdb_connection): New function.
11490 (handle_setfs): Likewise.
11491 (handle_open): Use the_target->multifs_open as appropriate.
11492 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11493 (handle_readlink): Use the_target->multifs_readlink as
11495 (handle_vFile): Handle vFile:setfs packets.
11496 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11497 after target_handle_new_gdb_connection.
11499 2015-06-10 Gary Benson <gbenson@redhat.com>
11501 * configure.ac (AC_CHECK_FUNCS): Add setns.
11502 * config.in: Regenerate.
11503 * configure: Likewise.
11504 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11505 (linux-namespaces.o): New rule.
11506 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11508 2015-06-09 Gary Benson <gbenson@redhat.com>
11510 * hostio.c (handle_open): Process mode argument with
11511 fileio_to_host_mode.
11513 2015-06-01 Yao Qi <yao.qi@linaro.org>
11515 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11516 * linux-x86-low.c: Likewise.
11518 2015-05-28 Don Breazeal <donb@codesourcery.com>
11520 * linux-low.c (handle_extended_wait): Initialize
11521 thread_info.last_resume_kind for new fork children.
11523 2015-05-15 Pedro Alves <palves@redhat.com>
11525 * target.h (target_handle_new_gdb_connection): Rewrite using if
11526 wrapped in do/while.
11528 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11530 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11531 * configure, config.in: Regenerate.
11532 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11535 2015-05-12 Don Breazeal <donb@codesourcery.com>
11537 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11538 PTRACE_EVENT_VFORK_DONE.
11539 (linux_low_ptrace_options, extended_event_reported): Add vfork
11541 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11542 and "vforkdone" for RSP 'T' Stop Reply Packet.
11543 * server.h (report_vfork_events): Declare
11546 2015-05-12 Don Breazeal <donb@codesourcery.com>
11548 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11549 (the_low_target) <new_fork>: Initialize new member.
11550 * linux-arm-low.c (arm_new_fork): New function.
11551 (the_low_target) <new_fork>: Initialize new member.
11552 * linux-low.c (handle_extended_wait): Call new target function
11554 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11555 * linux-mips-low.c (mips_add_watchpoint): New function
11556 extracted from mips_insert_point.
11557 (the_low_target) <new_fork>: Initialize new member.
11558 (mips_linux_new_fork): New function.
11559 (mips_insert_point): Call mips_add_watchpoint.
11560 * linux-x86-low.c (x86_linux_new_fork): New function.
11561 (the_low_target) <new_fork>: Initialize new member.
11563 2015-05-12 Don Breazeal <donb@codesourcery.com>
11565 * linux-low.c (handle_extended_wait): Implement return value,
11566 rename argument 'event_child' to 'event_lwp', handle
11567 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11568 (linux_low_ptrace_options): New function.
11569 (linux_low_filter_event): Call linux_low_ptrace_options,
11570 use different argument fo linux_enable_event_reporting,
11571 use return value from handle_extended_wait.
11572 (extended_event_reported): New function.
11573 (linux_wait_1): Call extended_event_reported and set
11574 status to report fork events.
11575 (linux_write_memory): Add pid to debug message.
11576 (reset_lwp_ptrace_options_callback): New function.
11577 (linux_handle_new_gdb_connection): New function.
11578 (linux_target_ops): Initialize new structure member.
11579 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11580 * lynx-low.c: Initialize new structure member.
11581 * remote-utils.c (prepare_resume_reply): Implement stop reason
11582 "fork" for "T" stop message.
11583 * server.c (handle_query): Call handle_new_gdb_connection.
11584 * server.h (report_fork_events): Declare global flag.
11585 * target.h (struct target_ops) <handle_new_gdb_connection>:
11587 (target_handle_new_gdb_connection): New macro.
11588 * win32-low.c: Initialize new structure member.
11590 2015-05-12 Don Breazeal <donb@codesourcery.com>
11592 * mem-break.c (APPEND_TO_LIST): Define macro.
11593 (clone_agent_expr): New function.
11594 (clone_one_breakpoint): New function.
11595 (clone_all_breakpoints): New function.
11596 * mem-break.h: Declare new functions.
11598 2015-05-12 Don Breazeal <donb@codesourcery.com>
11600 * linux-low.c (linux_supports_fork_events): New function.
11601 (linux_supports_vfork_events): New function.
11602 (linux_target_ops): Initialize new structure members.
11603 (initialize_low): Call linux_check_ptrace_features.
11604 * lynx-low.c (lynx_target_ops): Initialize new structure
11606 * server.c (report_fork_events, report_vfork_events):
11608 (handle_query): Add new features to qSupported packet and
11610 (captured_main): Initialize new global variables.
11611 * target.h (struct target_ops) <supports_fork_events>:
11613 <supports_vfork_events>: New member.
11614 (target_supports_fork_events): New macro.
11615 (target_supports_vfork_events): New macro.
11616 * win32-low.c (win32_target_ops): Initialize new structure
11619 2015-05-12 Gary Benson <gbenson@redhat.com>
11621 * server.c (handle_qxfer_exec_file): Use current process
11624 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11626 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11627 Remove HAVE_PTRACE_GETREGS conditionals.
11628 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11629 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11631 2015-05-08 Yao Qi <yao.qi@linaro.org>
11633 * linux-low.c (linux_supports_conditional_breakpoints): New
11635 (linux_target_ops): Install new target method.
11636 * lynx-low.c (lynx_target_ops): Install NULL hook for
11637 supports_conditional_breakpoints.
11638 * nto-low.c (nto_target_ops): Likewise.
11639 * spu-low.c (spu_target_ops): Likewise.
11640 * win32-low.c (win32_target_ops): Likewise.
11641 * server.c (handle_query): Check
11642 target_supports_conditional_breakpoints.
11643 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11645 (target_supports_conditional_breakpoints): New macro.
11647 2015-05-06 Pedro Alves <palves@redhat.com>
11650 * server.c (start_inferior): If the process exits, mourn it.
11652 2015-04-21 Gary Benson <gbenson@redhat.com>
11654 * hostio.c (fileio_open_flags_to_host): Factored out to
11655 fileio_to_host_openflags in common/fileio.c. Single use
11658 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11660 * linux-xtensa-low.c (xtensa_fill_gregset)
11661 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11664 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11666 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11667 (regs_info): Replace usrregs pointer with NULL.
11669 2015-04-17 Gary Benson <gbenson@redhat.com>
11671 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11672 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11673 * server.c (handle_qxfer_exec_file): New function.
11674 (qxfer_packets): Add exec-file entry.
11675 (handle_query): Report qXfer:exec-file:read as supported packet.
11677 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11679 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11681 2015-04-09 Gary Benson <gbenson@redhat.com>
11683 * hostio-errno.c (errno_to_fileio_error): Remove function.
11684 Update caller to use remote_fileio_to_fio_error.
11686 2015-04-09 Yao Qi <yao.qi@linaro.org>
11688 * linux-low.c (linux_insert_point): Call
11689 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11690 (linux_remove_point): Call remove_memory_breakpoint if type is
11692 * linux-x86-low.c (x86_insert_point): Don't call
11693 insert_memory_breakpoint.
11694 (x86_remove_point): Don't call remove_memory_breakpoint.
11696 2015-04-01 Pedro Alves <palves@redhat.com>
11697 Cleber Rosa <crosa@redhat.com>
11699 * server.c (gdbserver_usage): Reorganize and extend the usage
11702 2015-03-24 Pedro Alves <palves@redhat.com>
11704 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11705 output. Also dump TRAP_TRACE.
11706 (linux_low_filter_event): In debug output, distinguish a
11707 resume_stop SIGSTOP from a delayed SIGSTOP.
11709 2015-03-24 Gary Benson <gbenson@redhat.com>
11711 * linux-x86-low.c (x86_linux_new_thread): Moved to
11713 (x86_linux_prepare_to_resume): Likewise.
11715 2015-03-24 Gary Benson <gbenson@redhat.com>
11717 * Makefile.in (x86-linux-dregs.o): New rule.
11718 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11719 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11720 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11721 (x86_linux_dr_get): Likewise.
11722 (x86_linux_dr_set): Likewise.
11723 (update_debug_registers_callback): Likewise.
11724 (x86_linux_dr_set_addr): Likewise.
11725 (x86_linux_dr_get_addr): Likewise.
11726 (x86_linux_dr_set_control): Likewise.
11727 (x86_linux_dr_get_control): Likewise.
11728 (x86_linux_dr_get_status): Likewise.
11729 (x86_linux_update_debug_registers): Likewise.
11731 2015-03-24 Gary Benson <gbenson@redhat.com>
11733 * linux-x86-low.c (x86_linux_update_debug_registers):
11734 New function, factored out from...
11735 (x86_linux_prepare_to_resume): ...this.
11737 2015-03-24 Gary Benson <gbenson@redhat.com>
11739 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11740 (x86_linux_dr_set): Likewise.
11741 (update_debug_registers_callback): Likewise.
11742 (x86_linux_dr_set_addr): Likewise.
11743 (x86_linux_dr_get_addr): Likewise.
11744 (x86_linux_dr_set_control): Likewise.
11745 (x86_linux_dr_get_control): Likewise.
11746 (x86_linux_dr_get_status): Likewise.
11747 (x86_linux_prepare_to_resume): Likewise.
11749 2015-03-24 Gary Benson <gbenson@redhat.com>
11751 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11752 Use perror_with_name. Pass string through gettext.
11753 (x86_linux_dr_set): Likewise.
11755 2015-03-24 Gary Benson <gbenson@redhat.com>
11757 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11758 (x86_linux_dr_set_addr): ...this.
11759 (x86_dr_low_get_addr): Rename to...
11760 (x86_linux_dr_get_addr): ...this.
11761 (x86_dr_low_set_control): Rename to...
11762 (x86_linux_dr_set_control): ...this.
11763 (x86_dr_low_get_control): Rename to...
11764 (x86_linux_dr_get_control): ...this.
11765 (x86_dr_low_get_status): Rename to...
11766 (x86_linux_dr_get_status): ...this.
11767 (x86_dr_low): Update with new function names.
11769 2015-03-24 Gary Benson <gbenson@redhat.com>
11771 * Makefile.in (x86-linux.o): New rule.
11772 * configure.srv: Add x86-linux.o to relevant targets.
11773 * linux-low.c (lwp_set_arch_private_info): New function.
11774 (lwp_arch_private_info): Likewise.
11775 * linux-x86-low.c: Include nat/x86-linux.h.
11776 (arch_lwp_info): Removed structure.
11777 (update_debug_registers_callback):
11778 Use lwp_set_debug_registers_changed.
11779 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11780 and lwp_set_debug_registers_changed.
11781 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11783 2015-03-24 Gary Benson <gbenson@redhat.com>
11785 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11786 * linux-arm-low.c (arm_new_thread): Likewise.
11787 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11788 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11789 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11790 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11792 2015-03-24 Gary Benson <gbenson@redhat.com>
11794 * linux-low.c (ptid_of_lwp): New function.
11795 (lwp_is_stopped): Likewise.
11796 (lwp_stop_reason): Likewise.
11797 * linux-x86-low.c (update_debug_registers_callback):
11798 Use lwp_is_stopped.
11799 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11802 2015-03-24 Gary Benson <gbenson@redhat.com>
11804 * linux-low.h (linux_stop_lwp): Remove declaration.
11806 2015-03-24 Gary Benson <gbenson@redhat.com>
11808 * linux-low.h: Include nat/linux-nat.h.
11809 * linux-low.c (iterate_over_lwps_args): New structure.
11810 (iterate_over_lwps_filter): New function.
11811 (iterate_over_lwps): Likewise.
11812 * linux-x86-low.c (update_debug_registers_callback):
11813 Update signature to what iterate_over_lwps expects.
11814 Remove PID check that iterate_over_lwps now performs.
11815 (x86_dr_low_set_addr): Use iterate_over_lwps.
11816 (x86_dr_low_set_control): Likewise.
11818 2015-03-24 Gary Benson <gbenson@redhat.com>
11820 * linux-x86-low.c (x86_debug_reg_state): New function.
11821 (x86_linux_prepare_to_resume): Use the above.
11823 2015-03-24 Gary Benson <gbenson@redhat.com>
11825 * linux-low.c (current_lwp_ptid): New function.
11826 * linux-x86-low.c: Include nat/linux-nat.h.
11827 (x86_dr_low_get_addr): Use current_lwp_ptid.
11828 (x86_dr_low_get_control): Likewise.
11829 (x86_dr_low_get_status): Likewise.
11831 2015-03-20 Pedro Alves <palves@redhat.com>
11833 * tracepoint.c (cmd_qtstatus): Make "str" const.
11835 2015-03-20 Pedro Alves <palves@redhat.com>
11837 * server.c (handle_general_set): Make "req_str" const.
11839 2015-03-19 Pedro Alves <palves@redhat.com>
11841 * linux-low.c (linux_resume_one_lwp): Rename to ...
11842 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11843 instead call perror_with_name.
11844 (check_ptrace_stopped_lwp_gone): New function.
11845 (linux_resume_one_lwp): Reimplement as wrapper around
11846 linux_resume_one_lwp_throw that swallows errors if the LWP is
11849 2015-03-19 Pedro Alves <palves@redhat.com>
11851 * linux-low.c (count_events_callback, select_event_lwp_callback):
11852 No longer check whether the thread has resume_stop as last resume
11855 2015-03-19 Pedro Alves <palves@redhat.com>
11857 * linux-low.c (count_events_callback, select_event_lwp_callback):
11858 Use the lwp's status_pending_p field, not the thread's.
11860 2015-03-19 Pedro Alves <palves@redhat.com>
11862 * linux-low.c (select_event_lwp_callback): Update comments to
11863 no longer mention SIGTRAP.
11865 2015-03-18 Gary Benson <gbenson@redhat.com>
11867 * server.c (handle_query): Do not report vFile:fstat as supported.
11869 2015-03-11 Gary Benson <gbenson@redhat.com>
11871 * hostio.c (sys/types.h): New include.
11872 (sys/stat.h): Likewise.
11873 (common-remote-fileio.h): Likewise.
11874 (handle_fstat): New function.
11875 (handle_vFile): Handle vFile:fstat packets.
11877 2015-03-11 Gary Benson <gbenson@redhat.com>
11879 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11880 struct stat.st_blocks and struct stat.st_blksize.
11881 * configure: Regenerate.
11882 * config.in: Likewise.
11883 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11884 (OBS): Add common-remote-fileio.o.
11885 (common-remote-fileio.o): New rule.
11887 2015-03-09 Pedro Alves <palves@redhat.com>
11889 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11890 'struct sockaddr' pointer in 'accept' call.
11892 2015-03-09 Pedro Alves <palves@redhat.com>
11895 2015-03-07 Pedro Alves <palves@redhat.com>
11896 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11897 or <winsock2.h> here. Instead include "gdb_socket.h".
11898 (remote_open): Use union gdb_sockaddr_u.
11899 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11900 or <winsock2.h> here. Instead include "gdb_socket.h".
11901 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11902 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11904 (init_named_socket, gdb_agent_helper_thread): Use union
11907 2015-03-07 Pedro Alves <palves@redhat.com>
11909 * configure.ac (build_warnings): Move
11910 -Wdeclaration-after-statement to the C-specific set.
11911 * configure: Regenerate.
11913 2015-03-07 Pedro Alves <palves@redhat.com>
11915 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11916 or <winsock2.h> here. Instead include "gdb_socket.h".
11917 (remote_open): Use union gdb_sockaddr_u.
11918 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11919 or <winsock2.h> here. Instead include "gdb_socket.h".
11920 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11921 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11923 (init_named_socket, gdb_agent_helper_thread): Use union
11926 2015-03-07 Pedro Alves <palves@redhat.com>
11928 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11931 2015-03-06 Yao Qi <yao.qi@linaro.org>
11933 * linux-aarch64-low.c (aarch64_insert_point): Use
11934 show_debug_regs as a boolean.
11935 (aarch64_remove_point): Likewise.
11937 2015-03-05 Pedro Alves <palves@redhat.com>
11939 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11940 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11941 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11942 * nto-low.c (nto_target_ops): Likewise.
11943 * spu-low.c (spu_target_ops): Likewise.
11944 * win32-low.c (win32_target_ops): Likewise.
11946 2015-03-04 Pedro Alves <palves@redhat.com>
11948 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11949 Decide whether a breakpoint triggered based on the SIGTRAP's
11951 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11952 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11953 (linux_low_filter_event): Check for breakpoints before checking
11955 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11957 (linux_stopped_by_sw_breakpoint)
11958 (linux_supports_stopped_by_sw_breakpoint)
11959 (linux_stopped_by_hw_breakpoint)
11960 (linux_supports_stopped_by_hw_breakpoint): New functions.
11961 (linux_target_ops): Install new target methods.
11963 2015-03-04 Pedro Alves <palves@redhat.com>
11965 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11966 * server.c (swbreak_feature, hwbreak_feature): New globals.
11967 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11968 (captured_main): Clear swbreak_feature and hwbreak_feature.
11969 * server.h (swbreak_feature, hwbreak_feature): Declare.
11970 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11971 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11972 supports_stopped_by_hw_breakpoint>: New fields.
11973 (target_supports_stopped_by_sw_breakpoint)
11974 (target_stopped_by_sw_breakpoint)
11975 (target_supports_stopped_by_hw_breakpoint)
11976 (target_stopped_by_hw_breakpoint): Declare.
11978 2015-03-04 Pedro Alves <palves@redhat.com>
11980 enum lwp_stop_reason -> enum target_stop_reason
11981 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11982 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11983 (linux_wait_1, stuck_in_jump_pad_callback)
11984 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11985 (linux_stopped_by_watchpoint):
11986 * linux-low.h (enum lwp_stop_reason): Delete.
11987 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11988 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11990 2015-03-04 Yao Qi <yao.qi@linaro.org>
11992 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11994 2015-03-03 Gary Benson <gbenson@redhat.com>
11996 * hostio.c (handle_vFile): Fix prefix lengths.
11998 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12000 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12003 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12005 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12006 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12007 (clean): Add "rm -f" for above C files.
12008 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12009 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12010 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12011 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12012 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12013 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12014 (init_registers_s390x_vx_linux64)
12015 (init_registers_s390x_tevx_linux64)
12016 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12017 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12019 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12020 (s390_store_vxrs_high): New functions.
12021 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12023 (s390_arch_setup): Add logic for selecting one of the new target
12024 descriptions. Activate the new vector regsets if applicable.
12025 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12026 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12027 and init_registers_s390x_tevx_linux64.
12029 2015-03-01 Pedro Alves <palves@redhat.com>
12031 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12034 2015-02-27 Pedro Alves <palves@redhat.com>
12036 * linux-x86-low.c (u_debugreg_offset): New function.
12037 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12039 2015-02-27 Pedro Alves <palves@redhat.com>
12041 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12042 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12043 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12044 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12045 (ps_lsetfpregs, ps_getpid)
12046 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12047 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12048 (ps_lsetxregs, ps_plog): Declare.
12050 2015-02-27 Pedro Alves <palves@redhat.com>
12052 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12053 IP_AGENT_EXPORT_FUNC.
12054 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12055 IP_AGENT_EXPORT_FUNC.
12056 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12057 (IP_AGENT_EXPORT): Delete.
12058 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12059 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12060 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12061 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12062 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12063 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12064 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12065 (traceframe_read_count, traceframe_write_count)
12066 (traceframes_created, trace_state_variables, get_raw_reg)
12067 (get_trace_state_variable_value, set_trace_state_variable_value)
12068 (ust_loaded, helper_thread_id, cmd_buf): Use
12069 IPA_SYM_EXPORTED_NAME.
12070 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12071 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12072 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12073 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12074 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12075 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12076 EXTERN_C_PUSH/EXTERN_C_POP.
12077 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12078 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12079 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12080 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12081 (traceframe_write_count, traceframe_read_count)
12082 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12083 (about_to_request_buffer_space, get_trace_state_variable_value)
12084 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12085 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12086 EXTERN_C_PUSH/EXTERN_C_POP.
12087 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12088 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12089 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12090 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12091 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12092 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12093 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12094 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12096 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12097 (IP_AGENT_EXPORT_VAR_DECL): Define.
12098 (tracing): Declare.
12099 (gdb_agent_get_raw_reg): Declare.
12101 2015-02-27 Tom Tromey <tromey@redhat.com>
12102 Pedro Alves <palves@redhat.com>
12104 Rename symbols whose names are reserved C++ keywords throughout.
12106 2015-02-27 Pedro Alves <palves@redhat.com>
12108 * Makefile.in (COMPILER): New, get it from autoconf.
12109 (CXX): Get from autoconf instead.
12110 (COMPILE.pre): Use COMPILER.
12111 (CC-LD): Rename to ...
12112 (CC_LD): ... this. Use COMPILER.
12113 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12114 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12115 * acinclude.m4: Include build-with-cxx.m4.
12116 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12117 Disable -Werror by default if building in C++ mode.
12118 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12119 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12120 the C++ compiler. Save/restore CXXFLAGS too.
12121 * configure: Regenerate.
12123 2015-02-27 Pedro Alves <palves@redhat.com>
12125 * acinclude.m4: Include libiberty.m4.
12126 * configure.ac: Call libiberty_INIT.
12127 * config.in, configure: Regenerate.
12129 2015-02-26 Pedro Alves <palves@redhat.com>
12131 * linux-low.c (linux_wait_1): When incrementing the PC past a
12132 program breakpoint always use the_low_target.breakpoint_len as
12133 increment, rather than the maximum between that and
12134 the_low_target.decr_pc_after_break.
12136 2015-02-23 Pedro Alves <palves@redhat.com>
12138 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12139 thread was doing a step-over; always adjust the PC if
12140 we stepped over a permanent breakpoint.
12141 (linux_wait_1): If we stepped over breakpoint that was on top of a
12142 permanent breakpoint, manually advance the PC past it.
12144 2015-02-23 Pedro Alves <palves@redhat.com>
12146 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12148 (x86_fill_gregset, x86_store_gregset): Use it when handling
12151 2015-02-20 Pedro Alves <palves@redhat.com>
12153 * thread-db.c: Include "nat/linux-procfs.h".
12154 (thread_db_init): Skip listing new threads if the kernel supports
12155 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12157 2015-02-20 Pedro Alves <palves@redhat.com>
12159 * linux-low.c (status_pending_p_callback): Use ptid_match.
12161 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12163 PR breakpoints/16812
12164 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12165 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12166 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12168 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12170 PR breakpoints/15956
12171 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12173 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12175 * linux-low.c (linux_low_btrace_conf): Print size.
12176 * server.c (handle_btrace_conf_general_set): New.
12177 (hanle_general_set): Call handle_btrace_conf_general_set.
12178 (handle_query): Report Qbtrace-conf:bts:size as supported.
12180 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12182 * linux-low.c (linux_low_enable_btrace): Update parameters.
12183 (linux_low_btrace_conf): New.
12184 (linux_target_ops)<to_btrace_conf>: Initialize.
12185 * server.c (current_btrace_conf): New.
12186 (handle_btrace_enable): Rename to ...
12187 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12188 to target_enable_btrace. Update comment. Update users.
12189 (handle_qxfer_btrace_conf): New.
12190 (qxfer_packets): Add btrace-conf entry.
12191 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12192 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12193 (target_ops)<read_btrace_conf>: New.
12194 (target_enable_btrace): Update parameters.
12195 (target_read_btrace_conf): New.
12197 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12199 * server.c (handle_btrace_general_set): Remove call to
12200 target_supports_btrace.
12201 (supported_btrace_packets): New.
12202 (handle_query): Call supported_btrace_packets.
12203 * target.h: include btrace-common.h.
12204 (btrace_target_info): Removed.
12205 (supports_btrace, target_supports_btrace): Update parameters.
12207 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12209 * Makefile.in (SFILES): Add common/btrace-common.c.
12210 (OBS): Add common/btrace-common.o.
12211 (btrace-common.o): Add build rules.
12212 * linux-low: Include btrace-common.h.
12213 (linux_low_read_btrace): Use struct btrace_data. Call
12214 btrace_data_init and btrace_data_fini.
12216 2015-02-06 Pedro Alves <palves@redhat.com>
12218 * thread-db.c (find_new_threads_callback): Add debug output.
12220 2015-02-04 Pedro Alves <palves@redhat.com>
12222 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12223 (resume_stopped_resumed_lwps): New function.
12224 (linux_wait_for_event_filtered): Use it.
12226 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12228 * Makefile.in (SFILES): Add linux-personality.c.
12229 (linux-personality.o): New rule.
12230 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12231 list of objects to be built.
12232 * linux-low.c: Include nat/linux-personality.h.
12233 (linux_create_inferior): Remove code to disable address space
12234 randomization (moved to ../nat/linux-personality.c). Create
12235 cleanup to disable address space randomization.
12237 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12239 * Makefile.in (posix-strerror.o): New rule.
12240 (mingw-strerror.o): Likewise.
12241 * configure: Regenerated.
12242 * configure.ac: Source file ../common/common.host. Initialize new
12243 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12245 2015-01-14 Yao Qi <yao@codesourcery.com>
12247 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12248 (ppc-linux.o): New rule.
12249 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12250 * configure.ac: AC_CHECK_FUNCS(getauxval).
12251 * config.in: Re-generated.
12252 * configure: Re-generated.
12253 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12254 ppc64_64bit_inferior_p
12256 2015-01-14 Yao Qi <yao@codesourcery.com>
12258 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12259 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12260 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12261 (PT_ORIG_R3, PT_TRAP): Likewise.
12262 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12263 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12264 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12266 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12268 * i387-fp.c (i387_cache_to_xsave): In look over
12269 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12270 zmmh_low_space field by use of zmmh_high_space.
12272 2015-01-09 Pedro Alves <palves@redhat.com>
12274 * linux-low.c (step_over_bkpt): Move higher up in the file.
12275 (handle_extended_wait): Don't store the stop_pc here.
12276 (get_stop_pc): Adjust comments and rename to ...
12277 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12278 stopped for a software breakpoint or hardware breakpoint.
12279 (thread_still_has_status_pending_p): New function.
12280 (status_pending_p_callback): Use
12281 thread_still_has_status_pending_p. If the event is no longer
12282 interesting, resume the LWP.
12283 (handle_tracepoints): Add assert.
12284 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12285 (wstatus_maybe_breakpoint): New function.
12286 (cancel_breakpoint): Delete function.
12287 (check_stopped_by_watchpoint): New function, factored out from
12288 linux_low_filter_event.
12289 (lp_status_maybe_breakpoint): Delete function.
12290 (linux_low_filter_event): Remove filter_ptid argument.
12291 Leave thread group exits pending here. Store the LWP's stop PC.
12292 Always leave events pending.
12293 (linux_wait_for_event_filtered): Pull all events out of the
12294 kernel, and leave them all pending.
12295 (count_events_callback, select_event_lwp_callback): Consider all
12297 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12298 (select_event_lwp): Only give preference to the stepping LWP in
12299 all-stop mode. Adjust comments.
12300 (ignore_event): New function.
12301 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12302 references to cancel_breakpoints. Adjust to renames. Also give
12303 equal priority to all LWPs that have had events in non-stop mode.
12304 If reporting a software breakpoint event, unadjust the LWP's PC.
12305 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12306 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12308 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12309 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12310 (linux_stopped_by_watchpoint): Adjust.
12311 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12312 * linux-low.h (enum lwp_stop_reason): New.
12313 (struct lwp_info) <stop_pc>: Adjust comment.
12314 <stopped_by_watchpoint>: Delete field.
12315 <stop_reason>: New field.
12316 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12317 * mem-break.c (software_breakpoint_inserted_here)
12318 (hardware_breakpoint_inserted_here): New function.
12319 * mem-break.h (software_breakpoint_inserted_here)
12320 (hardware_breakpoint_inserted_here): Declare.
12321 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12322 (cancel_breakpoints): Delete.
12323 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12324 (upload_fast_traceframes): Remove references to
12325 cancel_breakpoints.
12327 2015-01-09 Pedro Alves <palves@redhat.com>
12329 * thread-db.c (find_new_threads_callback): Ignore thread if the
12330 kernel thread ID is -1.
12332 2015-01-09 Pedro Alves <palves@redhat.com>
12334 * linux-low.c (linux_attach_fail_reason_string): Move to
12335 nat/linux-ptrace.c, and rename.
12336 (linux_attach_lwp): Update comment.
12337 (attach_proc_task_lwp_callback): New function.
12338 (linux_attach): Adjust to rename and use
12339 linux_proc_attach_tgid_threads.
12340 (linux_attach_fail_reason_string): Delete declaration.
12342 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12344 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12345 * server.c (gdbserver_version): Likewise.
12347 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12349 * remote-utils.c: Include ctype.h.
12350 (input_interrupt): Explicitly handle the case when the char
12351 received is the NUL byte. Improve the printing of non-ASCII
12354 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12356 * linux-low.c (linux_low_filter_event): Update call to
12357 linux_enable_event_reporting following the addition of
12358 a new parameter to that function.
12360 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12363 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12364 (AARCH64_FPCR_REGNO): Likewise.
12365 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12366 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12367 (aarch64_store_fpregset): Likewise.
12369 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12371 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12372 Remove FIXME comment about assumption about N.
12374 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12376 * configure.ac: If large-file support is disabled in GDBserver,
12377 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12378 * configure: Regenerate.
12380 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12382 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12383 warning upon ENODATA from ptrace.
12384 * linux-s390-low.c (s390_store_tdb): New.
12385 (s390_regsets): Add regset for NT_S390_TDB.
12387 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12389 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12390 without a fill_function.
12391 * linux-s390-low.c (s390_fill_last_break): Remove.
12392 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12393 (s390_arch_setup): Use regset's size instead of fill_function for
12394 loop end condition.
12396 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12398 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12399 the regset's store function when ptrace returned an error.
12400 * regcache.c (get_thread_regcache): Invalidate register cache
12401 before fetching inferior's registers.
12403 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12405 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12406 while-loop as for-loop.
12407 (regsets_store_inferior_registers): Likewise.
12409 2014-11-28 Yao Qi <yao@codesourcery.com>
12411 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12412 * config.in, configure: Re-generate.
12413 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12416 2014-11-21 Yao Qi <yao@codesourcery.com>
12418 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12419 (AC_CHECK_HEADERS): Remove malloc.h.
12420 * configure: Re-generated.
12421 * config.in: Re-generated.
12422 * server.h: Don't include alloca.h and malloc.h.
12423 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12424 Don't include malloc.h.
12426 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12428 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12429 corresponding ERRNO check in same block.
12431 2014-11-12 Pedro Alves <palves@redhat.com>
12433 * server.c (cont_thread): Update comment.
12434 (start_inferior, attach_inferior): No longer clear cont_thread.
12435 (handle_v_cont): No longer set cont_thread.
12436 (captured_main): Clear cont_thread each time a GDB connects.
12438 2014-11-12 Pedro Alves <palves@redhat.com>
12440 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12441 thread, and don't resume all threads if the Hc thread has exited.
12443 2014-11-12 Pedro Alves <palves@redhat.com>
12445 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12446 the process group instead of to a specific LWP.
12448 2014-10-15 Pedro Alves <palves@redhat.com>
12451 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12453 (arm_set_thread_context): Delete.
12454 (the_low_target): Adjust.
12455 * win32-i386-low.c (debug_registers_changed)
12456 (debug_registers_used): Delete.
12457 (update_debug_registers_callback): New function.
12458 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12459 needing to update their debug registers.
12460 (win32_get_current_dr): New function.
12461 (x86_dr_low_get_addr, x86_dr_low_get_control)
12462 (x86_dr_low_get_status): Fetch the debug register from the thread
12464 (i386_initial_stuff): Adjust.
12465 (i386_get_thread_context): Remove current_event parameter. Don't
12466 clear debug_registers_changed nor copy DR values to
12468 (i386_set_thread_context): Delete.
12469 (i386_prepare_to_resume): New function.
12470 (i386_thread_added): Mark the thread as needing to update irs
12472 (the_low_target): Remove i386_set_thread_context and install
12473 i386_prepare_to_resume.
12474 * win32-low.c (win32_get_thread_context): Adjust.
12475 (win32_set_thread_context): Use SetThreadContext
12477 (win32_prepare_to_resume): New function.
12478 (win32_require_context): New function, factored out from ...
12479 (thread_rec): ... this.
12480 (continue_one_thread): Call win32_prepare_to_resume on each thread
12481 we're about to continue.
12482 (win32_resume): Call win32_prepare_to_resume on the event thread.
12483 * win32-low.h (struct win32_thread_info)
12484 <debug_registers_changed>: New field.
12485 (struct win32_target_ops): Change prototype of set_thread_context,
12486 delete set_thread_context and add prepare_to_resume.
12487 (win32_require_context): New declaration.
12489 2014-10-08 Gary Benson <gbenson@redhat.com>
12491 * server.h: Do not include common-exceptions.h.
12493 2014-10-08 Gary Benson <gbenson@redhat.com>
12495 * server.h: Do not include cleanups.h.
12497 2014-09-30 James Hogan <james.hogan@imgtec.com>
12499 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12500 mips64-dsp-linux.c.
12502 2014-09-23 Yao Qi <yao@codesourcery.com>
12504 * linux-low.c (lp_status_maybe_breakpoint): New function.
12505 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12506 (count_events_callback): Likewise.
12507 (select_event_lwp_callback): Likewise.
12508 (cancel_breakpoints_callback): Likewise.
12510 2014-09-19 Don Breazeal <donb@codesourcery.com>
12512 * linux-low.c (handle_extended_wait): Call
12513 linux_ptrace_get_extended_event.
12514 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12515 linux_is_extended_waitstatus.
12517 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12519 * Makefile.in (CPPFLAGS): Define.
12520 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12521 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12523 2014-09-16 Gary Benson <gbenson@redhat.com>
12525 * inferiors.h (current_inferior): Renamed as...
12526 (current_thread): New variable. All uses updated.
12527 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12528 (maybe_move_out_of_jump_pad): Likewise.
12529 (cancel_breakpoint): Likewise.
12530 (linux_low_filter_event): Likewise.
12531 (wait_for_sigstop): Likewise.
12532 (linux_resume_one_lwp): Likewise.
12533 (need_step_over_p): Likewise.
12534 (start_step_over): Likewise.
12535 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12536 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12537 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12538 and save_inferior as saved_thread.
12539 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12541 (regcache_invalidate_thread): Likewise.
12542 * remote-utils.c (prepare_resume_reply): Likewise.
12543 * thread-db.c (thread_db_get_tls_address): Likewise.
12544 (disable_thread_event_reporting): Likewise.
12545 (remove_thread_event_breakpoints): Likewise.
12546 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12548 * target.h (set_desired_inferior): Renamed as...
12549 (set_desired_thread): New declaration. All uses updated.
12550 * server.c (myresume): Updated comment to reference thread instead
12552 (handle_serial_event): Likewise.
12553 (handle_target_event): Likewise.
12555 2014-09-12 Tom Tromey <tromey@redhat.com>
12556 Gary Benson <gbenson@redhat.com>
12558 * regcache.h: Include common-regcache.h.
12559 (regcache_read_pc): Don't declare.
12560 * regcache.c (get_thread_regcache_for_ptid): New function.
12562 2014-09-11 Tom Tromey <tromey@redhat.com>
12563 Gary Benson <gbenson@redhat.com>
12565 * symbol.c: New file.
12566 * Makefile.in (SFILES): Add symbol.c.
12567 (OBS): Add symbol.o.
12569 2014-09-11 Gary Benson <gbenson@redhat.com>
12571 * target.c (target_stop_ptid, target_continue_ptid): New
12574 2014-09-11 Tom Tromey <tromey@redhat.com>
12575 Gary Benson <gbenson@redhat.com>
12577 * target.h: Include target/target.h.
12578 * target.c (target_read_memory, target_read_uint32)
12579 (target_write_memory): New functions.
12581 2014-09-11 Gary Benson <gbenson@redhat.com>
12583 * server.h (debug_hw_points): Don't declare.
12584 * server.c (debug_hw_points): Don't define. Replace all uses
12585 with show_debug_regs.
12586 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12587 all uses with show_debug_regs.
12589 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12591 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12592 endianness into account.
12593 (ppc_supply_ptrace_register): Likewise.
12595 2014-09-03 James Hogan <james.hogan@imgtec.com>
12597 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12598 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12600 2014-09-03 Gary Benson <gbenson@redhat.com>
12602 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12603 ALL_DEBUG_ADDRESS_REGISTERS.
12605 2014-09-02 Gary Benson <gbenson@redhat.com>
12607 * i386-low.h: Renamed as...
12608 * x86-low.h: New file. All type, function and variable name
12609 prefixes changed from "i386_" to "x86_". All references updated.
12610 * i386-low.c: Renamed as...
12611 * x86-low.c: New file. All type, function and variable name
12612 prefixes changed from "i386_" to "x86_". All references updated.
12614 2014-09-02 Gary Benson <gbenson@redhat.com>
12616 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12617 (x86_linux_new_thread): Likewise.
12619 2014-08-29 Gary Benson <gbenson@redhat.com>
12621 * server.h (setjmp.h): Do not include.
12622 (toplevel): Do not declare.
12623 (common-exceptions.h): Include.
12624 (cleanups.h): Likewise.
12625 * server.c (toplevel): Do not define.
12626 (exit_code): New static global.
12627 (detach_or_kill_for_exit_cleanup): New function.
12628 (main): New function. Original main renamed to...
12629 (captured_main): New function.
12630 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12632 2014-08-29 Gary Benson <gbenson@redhat.com>
12634 * Makefile.in (SFILES): Add common/common-exceptions.c.
12635 (OBS): Add common-exceptions.o.
12636 (common-exceptions.o): New rule.
12637 * utils.c (prepare_to_throw_exception): New function.
12639 2014-08-29 Gary Benson <gbenson@redhat.com>
12641 * config.in: Regenerate.
12642 * configure: Likewise.
12644 2014-08-29 Gary Benson <gbenson@redhat.com>
12646 * Makefile.in (SFILES): Add common/cleanups.c.
12648 (cleanups.o): New rule.
12650 2014-08-29 Gary Benson <gbenson@redhat.com>
12652 * utils.c (internal_vwarning): New function.
12654 2014-08-28 Gary Benson <gbenson@redhat.com>
12656 * utils.h (fatal): Remove declaration.
12657 * utils.c (fatal): Remove function.
12659 2014-08-28 Gary Benson <gbenson@redhat.com>
12661 * tracepoint.c (gdb_agent_init): Replace fatal with
12663 (initialize_tracepoint): Likewise.
12665 2014-08-28 Gary Benson <gbenson@redhat.com>
12667 * remote-utils.c (remote_prepare): Replace fatal with error.
12669 2014-08-28 Gary Benson <gbenson@redhat.com>
12671 * linux-low.c (linux_async): Replace fatal with warning.
12672 Tidy up and return.
12673 (linux_start_non_stop): Return -1 if linux_async failed.
12675 2014-08-28 Gary Benson <gbenson@redhat.com>
12677 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12679 (i386_dr_low_get_addr): Remove vague comment.
12680 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12683 2014-08-28 Gary Benson <gbenson@redhat.com>
12685 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12686 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12688 (linux_resume_one_lwp): Likewise.
12689 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12691 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12692 with internal_error.
12693 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12694 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12695 (find_register_by_name): Replace fatal with internal_error.
12696 (find_regno): Likewise.
12697 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12698 * thread-db.c (thread_db_create_event): Likewise.
12699 (thread_db_load_search): Likewise.
12700 (try_thread_db_load_1): Likewise.
12701 * tracepoint.c (get_jump_space_head): Replace fatal with
12703 (claim_trampoline_space): Likewise.
12704 (have_fast_tracepoint_trampoline_buffer): Likewise.
12705 (cmd_qtstart): Likewise.
12706 (stop_tracing): Likewise.
12707 (fast_tracepoint_collecting): Likewise.
12708 (target_malloc): Likewise.
12709 (download_tracepoint): Likewise.
12710 (download_trace_state_variables): Replace check with gdb_assert.
12711 (upload_fast_traceframes): Replace fatal with internal_error.
12713 2014-08-19 Tom Tromey <tromey@redhat.com>
12714 Gary Benson <gbenson@redhat.com>
12716 * Makefile.in (SFILES): Add common/common-debug.c.
12717 (OBS): Add common-debug.o.
12718 (common-debug.o): New rule.
12719 * debug.h (debug_printf): Don't declare.
12720 * debug.c (debug_printf): Renamed and rewritten as...
12721 (debug_vprintf): New function.
12723 2014-08-19 Gary Benson <gbenson@redhat.com>
12725 * utils.h: Do not include print-utils.h.
12727 2014-08-19 Tom Tromey <tromey@redhat.com>
12728 Gary Benson <gbenson@redhat.com>
12730 * server.h: Add static assertion.
12731 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12733 2014-08-19 Tom Tromey <tromey@redhat.com>
12734 Gary Benson <gbenson@redhat.com>
12736 * Makefile.in (SFILES): Add common/errors.c.
12737 (OBS): Add errors.o.
12738 (IPA_OBS): Add errors-ipa.o.
12739 (errors.o): New rule.
12740 (errors-ipa.o): Likewise.
12741 * utils.h (perror_with_name, error, warning): Don't declare.
12742 * utils.c (warning): Renamed and rewritten as...
12743 (vwarning): New function.
12744 (error): Renamed and rewritten as...
12745 (verror): New function.
12746 (internal_error): Renamed and rewritten as...
12747 (internal_verror): New function.
12749 2014-08-07 Gary Benson <gbenson@redhat.com>
12751 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12752 * configure: Regenerate.
12753 * config.in: Likewise.
12754 * server.h: Do not include errno.h.
12755 * event-loop.c: Likewise.
12756 * hostio-errno.c: Likewise.
12757 * linux-low.c: Likewise.
12758 * remote-utils.c: Likewise.
12759 * spu-low.c: Likewise.
12760 * utils.c: Likewise.
12761 * gdbreplay.c: Unconditionally include errno.h.
12763 2014-08-07 Gary Benson <gbenson@redhat.com>
12765 * server.h: Do not include string.h.
12766 * event-loop.c: Likewise.
12767 * linux-low.c: Likewise.
12768 * regcache.c: Likewise.
12769 * remote-utils.c: Likewise.
12770 * spu-low.c: Likewise.
12771 * utils.c: Likewise.
12773 2014-08-07 Gary Benson <gbenson@redhat.com>
12775 * server.h: Do not include gdb_assert.h.
12777 2014-08-07 Gary Benson <gbenson@redhat.com>
12779 * server.h: Do not include common-utils.h.
12781 2014-08-07 Gary Benson <gbenson@redhat.com>
12783 * server.h: Do not include ptid.h.
12784 * notif.h: Likewise.
12786 2014-08-07 Gary Benson <gbenson@redhat.com>
12788 * server.h: Do not include gdb_locale.h.
12790 2014-08-07 Gary Benson <gbenson@redhat.com>
12792 * server.h: Do not include gdb/signals.h.
12793 * win32-low.c: Likewise.
12795 2014-08-07 Gary Benson <gbenson@redhat.com>
12797 * server.h: Do not include pathmax.h.
12799 2014-08-07 Gary Benson <gbenson@redhat.com>
12801 * server.h: Do not include libiberty.h.
12802 * linux-bfin-low.c: Likewise.
12804 2014-08-07 Gary Benson <gbenson@redhat.com>
12806 * server.h: Do not include ansidecl.h.
12808 2014-08-07 Gary Benson <gbenson@redhat.com>
12810 * linux-x86-low.c: Do not include stddef.h.
12811 * lynx-ppc-low.c: Likewise.
12812 * tracepoint.c: Likewise.
12814 2014-08-07 Gary Benson <gbenson@redhat.com>
12816 * server.h: Do not include stdarg.h.
12817 * nto-low.c: Likewise.
12819 2014-08-07 Gary Benson <gbenson@redhat.com>
12821 * server.h: Do not include stdlib.h.
12822 * inferiors.c: Likewise.
12823 * linux-low.c: Likewise.
12824 * regcache.c: Likewise.
12825 * spu-low.c: Likewise.
12826 * tracepoint.c: Likewise.
12827 * utils.c: Likewise.
12829 2014-08-07 Gary Benson <gbenson@redhat.com>
12831 * server.h: Do not include stdio.h.
12832 * linux-low.c: Likewise.
12833 * remote-utils.c: Likewise.
12834 * spu-low.c: Likewise.
12835 * utils.c: Likewise.
12836 * wincecompat.c: Likewise.
12838 2014-08-06 Gary Benson <gbenson@redhat.com>
12840 * regcache.c (init_register_cache): Move conditionals inside if.
12842 2014-08-06 Gary Benson <gbenson@redhat.com>
12844 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12846 2014-07-31 Gary Benson <gbenson@redhat.com>
12848 * ax.h: Do not include server.h.
12849 * gdbthread.h: Likewise.
12850 * lynx-low.h: Likewise.
12851 * notif.h: Likewise.
12853 2014-07-30 Gary Benson <gbenson@redhat.com>
12855 * server.h: Include common-defs.h.
12856 Do not include config.h or build-gnulib-gdbserver/config.h.
12858 2014-07-30 Gary Benson <gbenson@redhat.com>
12860 * hostio-errno.c: Move server.h to top of includes list.
12861 * inferiors.c: Likewise.
12862 * linux-x86-low.c: Likewise.
12863 * notif.c: Include server.h.
12865 2014-07-24 Tom Tromey <tromey@redhat.com>
12866 Gary Benson <gbenson@redhat.com>
12868 * server.h (CORE_ADDR): Now unsigned.
12870 2014-07-16 Pedro Alves <palves@redhat.com>
12872 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12874 2014-07-15 Pedro Alves <palves@redhat.com>
12876 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12879 2014-07-11 Pedro Alves <palves@redhat.com>
12881 * linux-low.c (kill_wait_lwp): New function, based on
12882 kill_one_lwp_callback, but use my_waitpid directly.
12883 (kill_one_lwp_callback, linux_kill): Use it.
12885 2014-06-23 Pedro Alves <palves@redhat.com>
12887 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12888 before setting DR0..DR3.
12890 2014-06-20 Gary Benson <gbenson@redhat.com>
12892 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12893 * configure: Regenerated.
12894 * config.in: Likewise.
12896 2014-06-20 Gary Benson <gbenson@redhat.com>
12898 * Makefile.in (SFILES): Update locations for files moved
12899 from common to nat.
12900 (object file files): Reordered.
12902 2014-06-20 Gary Benson <gbenson@redhat.com>
12904 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12905 (i386_dr_low_set_addr): Likewise.
12906 (i386_dr_low_get_addr): Likewise.
12907 (i386_dr_low_can_set_control): Likewise.
12908 (i386_dr_low_set_control): Likewise.
12909 (i386_dr_low_get_control): Likewise.
12910 (i386_dr_low_get_status): Likewise.
12911 (i386_get_debug_register_length): Likewise.
12912 * linux-x86-low.c (i386_dr_low_set_addr):
12913 Changed signature. Made static.
12914 (i386_dr_low_get_addr): Likewise.
12915 (i386_dr_low_set_control): Likewise.
12916 (i386_dr_low_get_control): Likewise.
12917 (i386_dr_low_get_status): Likewise.
12918 (i386_dr_low): New global variable.
12919 * win32-i386-low.c (i386_dr_low_set_addr):
12920 Changed signature. Made static.
12921 (i386_dr_low_get_addr): Likewise.
12922 (i386_dr_low_set_control): Likewise.
12923 (i386_dr_low_get_control): Likewise.
12924 (i386_dr_low_get_status): Likewise.
12925 (i386_dr_low): New global variable.
12927 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12929 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12930 * Makefile.in (AR, AR_FLAGS): Define.
12931 * configure: Regenerate.
12933 2014-06-19 Gary Benson <gbenson@redhat.com>
12935 * Makefile.in (i386-dregs.o): New rule.
12936 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12937 * i386-low.c (target.h): Remove include.
12938 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12939 (DR_CONTROL_SHIFT): Likewise.
12940 (DR_CONTROL_SIZE): Likewise.
12941 (DR_RW_EXECUTE): Likewise.
12942 (DR_RW_WRITE): Likewise.
12943 (DR_RW_READ): Likewise.
12944 (DR_RW_IORW): Likewise.
12945 (DR_LEN_1): Likewise.
12946 (DR_LEN_2): Likewise.
12947 (DR_LEN_4): Likewise.
12948 (DR_LEN_8): Likewise.
12949 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12950 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12951 (DR_ENABLE_SIZE): Likewise.
12952 (DR_LOCAL_SLOWDOWN): Likewise.
12953 (DR_GLOBAL_SLOWDOWN): Likewise.
12954 (DR_CONTROL_RESERVED): Likewise.
12955 (I386_DR_CONTROL_MASK): Likewise.
12956 (I386_DR_VACANT): Likewise.
12957 (I386_DR_LOCAL_ENABLE): Likewise.
12958 (I386_DR_GLOBAL_ENABLE): Likewise.
12959 (I386_DR_DISABLE): Likewise.
12960 (I386_DR_SET_RW_LEN): Likewise.
12961 (I386_DR_GET_RW_LEN): Likewise.
12962 (I386_DR_WATCH_HIT): Likewise.
12963 (i386_wp_op_t): Likewise.
12964 (i386_show_dr): Likewise.
12965 (i386_length_and_rw_bits): Likewise.
12966 (i386_insert_aligned_watchpoint): Likewise.
12967 (i386_remove_aligned_watchpoint): Likewise.
12968 (i386_handle_nonaligned_watchpoint): Likewise.
12969 i386_update_inferior_debug_regs(): Likewise.
12970 (i386_dr_insert_watchpoint): Likewise.
12971 (i386_dr_remove_watchpoint): Likewise.
12972 (i386_dr_region_ok_for_watchpoint): Likewise.
12973 (i386_dr_stopped_data_address): Likewise.
12974 (i386_dr_stopped_by_watchpoint): Likewise.
12976 2014-06-19 Gary Benson <gbenson@redhat.com>
12978 * i386-low.c (i386_dr_show): Renamed to
12979 i386_show_dr and made static. All uses updated.
12980 (i386_dr_length_and_rw_bits): Renamed to
12981 i386_length_and_rw_bits and made static.
12983 (i386_dr_insert_aligned_watchpoint): Renamed to
12984 i386_insert_aligned_watchpoint and made static.
12986 (i386_dr_remove_aligned_watchpoint): Renamed to
12987 i386_remove_aligned_watchpoint and made static.
12989 (i386_dr_update_inferior_debug_regs): Renamed to
12990 i386_update_inferior_debug_regs and made static.
12993 2014-06-18 Gary Benson <gbenson@redhat.com>
12995 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12996 (i386_dr_low_can_set_control): Likewise.
12997 (i386_get_debug_register_length): Likewise.
12998 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12999 (i386_dr_low_can_set_control): Likewise.
13000 (i386_get_debug_register_length): Likewise.
13002 2014-06-17 Gary Benson <gbenson@redhat.com>
13004 * i386-low.h (i386-dregs.h): New include.
13005 (DR_FIRSTADDR): Now in i386-dregs.h.
13006 (DR_LASTADDR): Likewise.
13007 (DR_NADDR): Likewise.
13008 (DR_STATUS): Likewise.
13009 (DR_CONTROL): Likewise.
13010 (i386_debug_reg_state): Likewise.
13011 (i386_dr_insert_watchpoint): Likewise.
13012 (i386_dr_remove_watchpoint): Likewise.
13013 (i386_dr_region_ok_for_watchpoint): Likewise.
13014 (i386_dr_stopped_data_address): Likewise.
13015 (i386_dr_stopped_by_watchpoint): Likewise.
13016 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13018 2014-06-18 Gary Benson <gbenson@redhat.com>
13020 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13021 i386_dr_insert_watchpoint.
13022 (i386_low_remove_watchpoint): Renamed to
13023 i386_dr_remove_watchpoint.
13024 (i386_low_region_ok_for_watchpoint): Renamed to
13025 i386_dr_region_ok_for_watchpoint.
13026 (i386_low_stopped_data_address): Renamed to
13027 i386_dr_stopped_data_address.
13028 (i386_low_stopped_by_watchpoint): Renamed to
13029 i386_dr_stopped_by_watchpoint.
13030 * i386-low.c (i386_show_dr): Renamed to
13031 i386_dr_show and made nonstatic. All uses updated.
13032 (i386_length_and_rw_bits): Renamed to
13033 i386_dr_length_and_rw_bits and made nonstatic.
13035 (i386_insert_aligned_watchpoint): Renamed to
13036 i386_dr_insert_aligned_watchpoint and made nonstatic.
13038 (i386_remove_aligned_watchpoint): Renamed to
13039 i386_dr_remove_aligned_watchpoint and made nonstatic.
13041 (i386_update_inferior_debug_regs): Renamed to
13042 i386_dr_update_inferior_debug_regs and made nonstatic.
13044 (i386_low_insert_watchpoint): Renamed to
13045 i386_dr_insert_watchpoint. All uses updated.
13046 (i386_low_remove_watchpoint): Renamed to
13047 i386_dr_remove_watchpoint. All uses updated.
13048 (i386_low_region_ok_for_watchpoint): Renamed to
13049 i386_dr_region_ok_for_watchpoint. All uses updated.
13050 (i386_low_stopped_data_address): Renamed to
13051 i386_dr_stopped_data_address. All uses updated.
13052 (i386_low_stopped_by_watchpoint): Renamed to
13053 i386_dr_stopped_by_watchpoint. All uses updated.
13055 2014-06-18 Gary Benson <gbenson@redhat.com>
13057 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13058 (i386_dr_low_can_set_control): Likewise.
13059 (i386_insert_aligned_watchpoint): New check.
13061 2014-06-18 Gary Benson <gbenson@redhat.com>
13063 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13066 2014-06-18 Gary Benson <gbenson@redhat.com>
13068 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13069 instead of fatal and error.
13070 (i386_handle_nonaligned_watchpoint): Likewise.
13072 2014-06-18 Gary Benson <gbenson@redhat.com>
13074 * i386-low.c (i386_get_debug_register_length): New macro.
13075 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13076 (i386_show_dr): Use debug_printf instead of fprintf. Use
13077 phex to format values.
13079 2014-06-18 Gary Benson <gbenson@redhat.com>
13081 * i386-low.h: Comment changes.
13082 * i386-low.c: Likewise.
13084 2014-06-18 Gary Benson <gbenson@redhat.com>
13086 * i386-low.c: Whitespace changes.
13088 2014-06-12 Tom Tromey <tromey@redhat.com>
13090 * utils.c (freeargv): Remove.
13092 2014-06-12 Tom Tromey <tromey@redhat.com>
13094 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13095 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13096 (parse_debug_format_options): Likewise.
13097 (gdbserver_usage): Likewise.
13098 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13099 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13100 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13102 ($(LIBGNU)): Depend on libiberty.
13103 (all-lib): Recurse into all subdirs.
13104 (install-only): Invoke "install" target in subdirs.
13105 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13107 * configure: Rebuild.
13108 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13109 for vasprintf, vsnprintf, or gettimeofday.
13110 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13113 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13115 * development.sh: Delete.
13116 * Makefile.in (config.status): Adjust dependency on development.sh.
13117 * configure.ac: Adjust development.sh source call.
13118 * configure: Regenerate.
13120 2014-06-02 Pedro Alves <palves@redhat.com>
13122 * ax.c (gdb_free_agent_expr): New function.
13123 * ax.h (gdb_free_agent_expr): New declaration.
13124 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13126 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13128 (clear_breakpoint_conditions_and_commands): New function.
13129 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13130 (clear_breakpoint_conditions_and_commands): New declaration.
13132 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13134 * linux-aarch64-low.c (asm/ptrace.h): Include.
13136 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13138 Fix TLS access for -static -pthread.
13139 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13140 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13141 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13143 2014-05-20 Pedro Alves <palves@redhat.com>
13145 * linux-aarch64-low.c (aarch64_insert_point)
13146 (aarch64_remove_point): No longer check whether the type is
13147 supported here. Adjust to new interface.
13148 (the_low_target): Install aarch64_supports_z_point_type as
13149 supports_z_point_type method.
13150 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13151 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13152 instead of a Z packet char. Adjust.
13153 (arm_supports_z_point_type): New function.
13154 (arm_insert_point, arm_remove_point): Adjust to new interface.
13155 (the_low_target): Install arm_supports_z_point_type.
13156 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13157 (cris_insert_point, cris_remove_point): Adjust to new interface.
13158 Don't check whether the type is supported here.
13159 (the_low_target): Install cris_supports_z_point_type.
13160 * linux-low.c (linux_supports_z_point_type): New function.
13161 (linux_insert_point, linux_remove_point): Adjust to new interface.
13162 * linux-low.h (struct linux_target_ops) <insert_point,
13163 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13164 raw_breakpoint pointer parameter.
13165 <supports_z_point_type>: New method.
13166 * linux-mips-low.c (mips_supports_z_point_type): New function.
13167 (mips_insert_point, mips_remove_point): Adjust to new interface.
13168 Use mips_supports_z_point_type.
13169 (the_low_target): Install mips_supports_z_point_type.
13170 * linux-ppc-low.c (the_low_target): Install NULL as
13171 supports_z_point_type method.
13172 * linux-s390-low.c (the_low_target): Install NULL as
13173 supports_z_point_type method.
13174 * linux-sparc-low.c (the_low_target): Install NULL as
13175 supports_z_point_type method.
13176 * linux-x86-low.c (x86_supports_z_point_type): New function.
13177 (x86_insert_point): Adjust to new insert_point interface. Use
13178 insert_memory_breakpoint. Adjust to new
13179 i386_low_insert_watchpoint interface.
13180 (x86_remove_point): Adjust to remove_point interface. Use
13181 remove_memory_breakpoint. Adjust to new
13182 i386_low_remove_watchpoint interface.
13183 (the_low_target): Install x86_supports_z_point_type.
13184 * lynx-low.c (lynx_target_ops): Install NULL as
13185 supports_z_point_type callback.
13186 * nto-low.c (nto_supports_z_point_type): New.
13187 (nto_insert_point, nto_remove_point): Adjust to new interface.
13188 (nto_target_ops): Install nto_supports_z_point_type.
13189 * mem-break.c: Adjust intro comment.
13190 (struct raw_breakpoint) <raw_type, size>: New fields.
13191 <inserted>: Update comment.
13192 <shlib_disabled>: Delete field.
13193 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13194 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13195 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13196 (raw_bkpt_type_to_target_hw_bp_type): New function.
13197 (find_enabled_raw_code_breakpoint_at): New function.
13198 (find_raw_breakpoint_at): New type and size parameters. Use them.
13199 (insert_memory_breakpoint): New function, based off
13200 set_raw_breakpoint_at.
13201 (remove_memory_breakpoint): New function.
13202 (set_raw_breakpoint_at): Reimplement.
13203 (set_breakpoint): New, based on set_breakpoint_at.
13204 (set_breakpoint_at): Reimplement.
13205 (delete_raw_breakpoint): Go through the_target->remove_point
13206 instead of assuming memory breakpoints.
13207 (find_gdb_breakpoint_at): Delete.
13208 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13209 (find_gdb_breakpoint): New function.
13210 (set_gdb_breakpoint_at): Delete.
13211 (z_type_supported): New function.
13212 (set_gdb_breakpoint_1): New function, loosely based off
13213 set_gdb_breakpoint_at.
13214 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13215 (delete_gdb_breakpoint_at): Delete.
13216 (delete_gdb_breakpoint_1): New function, loosely based off
13217 delete_gdb_breakpoint_at.
13218 (delete_gdb_breakpoint): New function.
13219 (clear_gdb_breakpoint_conditions): Rename to ...
13220 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13222 (add_condition_to_breakpoint): Make static.
13223 (add_breakpoint_condition): Take a struct breakpoint pointer
13224 instead of an address. Adjust.
13225 (gdb_condition_true_at_breakpoint): Rename to ...
13226 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13228 (gdb_condition_true_at_breakpoint): Reimplement.
13229 (add_breakpoint_commands): Take a struct breakpoint pointer
13230 instead of an address. Adjust.
13231 (gdb_no_commands_at_breakpoint): Rename to ...
13232 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13233 parameter. Return true if no breakpoint was found. Change debug
13235 (gdb_no_commands_at_breakpoint): Reimplement.
13236 (run_breakpoint_commands): Rename to ...
13237 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13238 and change return type to boolean.
13239 (run_breakpoint_commands): New function.
13240 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13241 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13242 breakpoint. Go through the_target->remove_point instead of
13243 assuming memory breakpoint.
13244 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13245 software and hardware breakpoints.
13246 (reinsert_raw_breakpoint): Go through the_target->insert_point
13247 instead of assuming memory breakpoint.
13248 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13249 software and hardware breakpoints.
13250 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13251 Check both software and hardware breakpoints.
13252 (validate_inserted_breakpoint): Assert the breakpoint is a
13253 software breakpoint. Set the inserted flag to -1 instead of
13254 setting shlib_disabled.
13255 (delete_disabled_breakpoints): Adjust.
13256 (validate_breakpoints): Only validate software breakpoints.
13257 Adjust to inserted flag change.
13258 (check_mem_read, check_mem_write): Skip breakpoint types other
13259 than software breakpoints. Adjust to inserted flag change.
13260 * mem-break.h (enum raw_bkpt_type): New enum.
13261 (raw_breakpoint, struct process_info): Forward declare.
13262 (Z_packet_to_target_hw_bp_type): Delete declaration.
13263 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13264 (set_gdb_breakpoint, delete_gdb_breakpoint)
13265 (clear_breakpoint_conditions): New declarations.
13266 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13267 (breakpoint_inserted_here): Update comment.
13268 (add_breakpoint_condition, add_breakpoint_commands): Replace
13269 address parameter with a breakpoint pointer parameter.
13270 (gdb_breakpoint_here): Update comment.
13271 (delete_gdb_breakpoint_at): Delete.
13272 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13273 * server.c (process_point_options): Take a struct breakpoint
13274 pointer instead of an address. Adjust.
13275 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13276 delete_gdb_breakpoint.
13277 * spu-low.c (spu_target_ops): Install NULL as
13278 supports_z_point_type method.
13279 * target.h: Include mem-break.h.
13280 (struct target_ops) <prepare_to_access_memory>: Update comment.
13281 <supports_z_point_type>: New field.
13282 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13283 instead of a char. Also take a raw breakpoint pointer.
13284 * win32-arm-low.c (the_low_target): Install NULL as
13285 supports_z_point_type.
13286 * win32-i386-low.c (i386_supports_z_point_type): New function.
13287 (i386_insert_point, i386_remove_point): Adjust to new interface.
13288 (the_low_target): Install i386_supports_z_point_type.
13289 * win32-low.c (win32_supports_z_point_type): New function.
13290 (win32_insert_point, win32_remove_point): Adjust to new interface.
13291 (win32_target_ops): Install win32_supports_z_point_type.
13292 * win32-low.h (struct win32_target_ops):
13293 <supports_z_point_type>: New method.
13294 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13295 instead of a char. Also take a raw breakpoint pointer.
13297 2014-05-20 Pedro Alves <palves@redhat.com>
13299 * mem-break.h: Include break-common.h.
13300 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13301 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13302 (Z_packet_to_target_hw_bp_type): New declaration.
13303 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13304 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13305 (Z_PACKET_ACCESS_WP): Delete macros.
13306 (Z_packet_to_hw_type): Delete function.
13307 * i386-low.h: Don't include break-common.h here.
13308 (Z_packet_to_hw_type): Delete declaration.
13309 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13310 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13311 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13312 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13313 * linux-aarch64-low.c: Don't include break-common.h here.
13314 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13315 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13316 (Z_packet_to_target_hw_bp_type): Delete function.
13317 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13319 (mips_insert_point, mips_remove_point): Use
13320 Z_packet_to_target_hw_bp_type.
13322 2014-05-20 Pedro Alves <palves@redhat.com>
13324 * linux-aarch64-low.c: Include break-common.h.
13325 (enum target_point_type): Delete.
13326 (Z_packet_to_point_type): Rename to ...
13327 (Z_packet_to_target_hw_bp_type): ... this, and return a
13328 target_hw_bp_type instead.
13329 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13330 instead of an enum target_point_type.
13331 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13333 (aarch64_dr_state_insert_one_point)
13334 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13335 (aarch64_handle_aligned_watchpoint)
13336 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13337 Take an enum target_hw_bp_type instead of an enum
13339 (aarch64_supports_z_point_type): New function.
13340 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13341 use Z_packet_to_target_hw_bp_type.
13343 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13345 * configure.ac: Only use -Werror by default when DEVELOPMENT
13347 * configure: Regenerate.
13349 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13351 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13352 * linux-x86-low.c (X86_64_USER_REGS): New.
13353 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13355 2014-04-28 Yao Qi <yao@codesourcery.com>
13357 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13360 2014-04-25 Pedro Alves <palves@redhat.com>
13363 * linux-low.c (linux_attach_fail_reason_string): New function.
13364 (linux_attach_lwp): Delete.
13365 (linux_attach_lwp_1): Rename to ...
13366 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13367 argument. Remove "initial" parameter. Return int instead of
13368 void. Don't error or warn here.
13369 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13370 failure to attach to the tgid. Call warning when failing to
13372 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13373 argument. Remove "initial" parameter. Return int instead of
13374 void. Don't error or warn here.
13375 (linux_attach_fail_reason_string): New declaration.
13376 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13377 interface change. Use linux_attach_fail_reason_string.
13379 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13380 Walfred Tedeschi <walfred.tedeschi@intel.com>
13382 * Makefile.in: Added rules to handle new files
13383 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13384 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13385 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13386 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13387 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13388 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13389 x32-avx512-linux.o.
13390 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13391 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13392 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13393 i386/x32-avx512.xml.
13394 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13395 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13396 i386/x32-avx512-linux.xml.
13397 * i387-fp.c (num_avx512_k_registers): New constant for number
13399 (num_avx512_zmmh_low_registers): New constant for number of
13400 lower ZMM registers (0-15).
13401 (num_avx512_zmmh_high_registers): New constant for number of
13402 higher ZMM registers (16-31).
13403 (num_avx512_ymmh_registers): New contant for number of higher
13404 YMM registers (ymm16-31 added by avx521 on x86_64).
13405 (num_avx512_xmm_registers): New constant for number of higher
13406 XMM registers (xmm16-31 added by AVX512 on x86_64).
13407 (struct i387_xsave): Add space for AVX512 registers.
13408 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13409 Add code to handle AVX512 registers.
13410 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13411 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13412 prototypei from generated file.
13413 (tdesc_amd64_avx512_linux): Likewise.
13414 (init_registers_x32_avx512_linux): Likewise.
13415 (tdesc_x32_avx512_linux): Likewise.
13416 (init_registers_i386_avx512_linux): Likewise.
13417 (tdesc_i386_avx512_linux): Likewise.
13418 (x86_64_regmap): Add AVX512 registers.
13419 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13421 (initialize_low_arch): Add code to initialize AVX512 registers.
13423 2014-04-23 Pedro Alves <palves@redhat.com>
13425 * mem-break.c (find_gdb_breakpoint_at): Make static.
13426 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13428 2014-04-23 Pedro Alves <palves@redhat.com>
13430 * i386-low.c: Don't include break-common.h here.
13431 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13432 prototype to take target_hw_bp_type as argument instead of a Z
13434 * i386-low.h: Include break-common.h here.
13435 (Z_packet_to_hw_type): Declare.
13436 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13438 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13439 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13440 (x86_remove_point): Convert the packet number to a
13441 target_hw_bp_type before calling i386_low_remove_watchpoint.
13442 * win32-i386-low.c (i386_insert_point): Convert the packet number
13443 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13444 (i386_remove_point): Convert the packet number to a
13445 target_hw_bp_type before calling i386_low_remove_watchpoint.
13447 2014-04-23 Pedro Alves <palves@redhat.com>
13449 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13451 2014-04-10 Pedro Alves <palves@redhat.com>
13453 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13454 Check if the condition or command is NULL before checking if the
13455 breakpoint is known. On success, return true.
13456 * mem-break.h (add_breakpoint_condition): Document return.
13457 (add_breakpoint_commands): Add describing comment.
13458 * server.c (skip_to_semicolon): New function.
13459 (process_point_options): Use it.
13461 2014-04-09 Pedro Alves <palves@redhat.com>
13463 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13466 2014-02-27 Pedro Alves <palves@redhat.com>
13469 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13471 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13473 (last_thread_of_process_p): Take a PID argument instead of a
13475 (linux_wait_for_lwp): Delete.
13476 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13478 (linux_low_filter_event): New function, party factored out from
13479 linux_wait_for_event.
13480 (linux_wait_for_event): Rename to ...
13481 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13482 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13483 sigsuspend. Check for zombie leaders.
13484 (linux_wait_for_event): Reimplement as wrapper around
13485 linux_wait_for_event_filtered.
13486 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13487 a normal or signal exit is seen, it's the whole process exiting.
13488 (wait_for_sigstop): No longer a for_each_inferior callback.
13489 Rewrite on top of linux_wait_for_event_filtered.
13490 (stop_all_lwps): Call wait_for_sigstop directly.
13491 * server.c (resume, handle_target_event): Handle
13492 TARGET_WAITKIND_NO_RESUMED.
13494 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13496 * win32-low.c (psapi_get_dll_name,
13497 * win32_CreateToolhelp32Snapshot): Delete.
13498 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13499 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13501 (handle_load_dll): Add function description.
13502 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13504 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13506 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13508 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13509 base address when calling win32_add_one_solib.
13510 (handle_load_dll): Delete local variable load_addr.
13511 Remove 0x1000 offset applied to DLL base address when calling
13512 win32_add_one_solib.
13513 (handle_unload_dll): Add comment.
13515 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13517 * win32-low.c (win32_add_all_dlls): Renames
13518 win32_ensure_ntdll_loaded. Rewrite function documentation.
13519 Adjust implementation to always load all DLLs.
13520 Add 0x1000 offset to DLL base address when calling
13521 win32_add_one_solib.
13522 (child_initialization_done): New static global.
13523 (do_initial_child_stuff): Set child_initialization_done to
13524 zero during child initialization, and 1 after. Replace call
13525 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13527 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13528 (handle_unload_dll): Add function documentation.
13529 (get_child_debug_event): Ignore load and unload DLL events
13530 during child initialization.
13532 2014-02-20 Doug Evans <dje@google.com>
13534 Remove global all_lwps.
13535 * inferiors.h (ptid_of): Move here from linux-low.h.
13536 (pid_of, lwpid_of): Ditto.
13537 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13538 parameter is a struct thread_info * now.
13539 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13540 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13541 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13543 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13544 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13545 * linux-arm-low.c (update_registers_callback): Update, "entry"
13546 parameter is a struct thread_info * now.
13547 Fetch lwpid from current_inferior directly.
13548 (arm_insert_point): Pass &all_threads to find_inferior instead of
13550 (arm_remove_point): Ditto.
13551 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13552 (arm_prepare_to_resume): Fetch pid from thread.
13553 (arm_read_description): Fetch lwpid from current_inferior directly.
13554 * linux-low.c (all_lwps): Delete.
13555 (delete_lwp): Delete call to remove_inferior.
13556 (handle_extended_wait): Fetch lwpid from thread.
13557 (add_lwp): Don't set lwp->entry.id. Remove call to
13558 add_inferior_to_list.
13559 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13560 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13561 (kill_one_lwp_callback): Ditto.
13562 (linux_kill): Don't dereference NULL pointer.
13563 Fetch ptid,lwpid from thread.
13564 (get_detach_signal): Fetch ptid from thread.
13565 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13566 Simplify call to regcache_invalidate_thread.
13567 (delete_lwp_callback): Update, "entry" parameter is a
13568 struct thread_info * now. Fetch pid from thread.
13569 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13570 (status_pending_p_callback): Update, "entry" parameter is a
13571 struct thread_info * now. Fetch ptid from thread.
13572 (find_lwp_pid): Update, "entry" parameter is a
13573 struct thread_info * now.
13574 (linux_wait_for_lwp): Fetch pid from thread.
13575 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13576 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13577 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13578 (dequeue_one_deferred_signal): Ditto.
13579 (cancel_breakpoint): Fetch ptid from current_inferior.
13580 (linux_wait_for_event): Pass &all_threads to find_inferior,
13581 not &all_lwps. Fetch ptid, lwpid from thread.
13582 (count_events_callback): Update, "entry" parameter is a
13583 struct thread_info * now.
13584 (select_singlestep_lwp_callback): Ditto.
13585 (select_event_lwp_callback): Ditto.
13586 (cancel_breakpoints_callback): Ditto.
13587 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13589 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13590 (unsuspend_one_lwp): Update, "entry" parameter is a
13591 struct thread_info * now.
13592 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13594 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13595 Fetch lwpid from thread, not lwp.
13596 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13597 Pass &all_threads to find_inferior, not &all_lwps.
13598 (send_sigstop): Fetch lwpid from thread, not lwp.
13599 (send_sigstop_callback): Update, "entry" parameter is a
13600 struct thread_info * now.
13601 (suspend_and_send_sigstop_callback): Ditto.
13602 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13603 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13604 struct thread_info * now.
13605 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13607 (lwp_running): Update, "entry" parameter is a
13608 struct thread_info * now.
13609 (stop_all_lwps): Fetch ptid from thread.
13610 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13611 (linux_resume_one_lwp): Fetch lwpid from thread.
13612 (linux_set_resume_request): Update, "entry" parameter is a
13613 struct thread_info * now. Fetch pid, lwpid from thread.
13614 (resume_status_pending_p): Update, "entry" parameter is a
13615 struct thread_info * now.
13616 (need_step_over_p): Ditto. Fetch lwpid from thread.
13617 (start_step_over): Fetch lwpid from thread.
13618 (linux_resume_one_thread): Update, "entry" parameter is a
13619 struct thread_info * now. Fetch lwpid from thread.
13620 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13621 (proceed_one_lwp): Update, "entry" parameter is a
13622 struct thread_info * now. Fetch lwpid from thread.
13623 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13624 struct thread_info * now.
13625 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13626 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13627 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13629 (regsets_store_inferior_registers): Ditto.
13630 (fetch_register, store_register): Ditto.
13631 (linux_read_memory, linux_write_memory): Ditto.
13632 (linux_request_interrupt): Ditto.
13633 (linux_read_auxv): Ditto.
13634 (linux_xfer_siginfo): Ditto.
13635 (linux_qxfer_spu): Ditto.
13636 (linux_qxfer_libraries_svr4): Ditto.
13637 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13638 moved to inferiors.h.
13640 (get_thread_lwp): Update.
13641 (struct lwp_info): Delete member "entry". Simplify comment for
13643 (all_lwps): Delete.
13644 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13645 current_inferior directly.
13646 (update_watch_registers_callback): Update, "entry" parameter is a
13647 struct thread_info * now. Fetch pid from thread.
13648 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13649 (mips_insert_point): Fetch lwpid from current_inferior.
13650 Pass &all_threads to find_inferior, not &all_lwps.
13651 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13652 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13654 (mips_stopped_data_address): Ditto.
13655 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13657 * linux-tile-low.c (tile_arch_setup): Ditto.
13658 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13659 (update_debug_registers_callback): Update, "entry" parameter is a
13660 struct thread_info * now. Fetch pid from thread.
13661 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13662 Pass &all_threads to find_inferior, not &all_lwps.
13663 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13664 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13665 Pass &all_threads to find_inferior, not &all_lwps.
13666 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13667 (i386_dr_low_get_status): Ditto.
13668 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13669 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13670 (x86_linux_read_description): Ditto.
13671 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13673 2014-02-20 Doug Evans <dje@google.com>
13675 * inferiors.c (get_first_inferior): Fix buglet.
13677 2014-02-19 Doug Evans <dje@google.com>
13679 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13680 * inferiors.c (add_thread): Change result type to struct thread_info *.
13681 All callers updated.
13682 (add_lwp): Call add_thread here instead of in callers.
13683 All callers updated.
13684 * linux-low.h (get_lwp_thread): Rewrite.
13685 (struct lwp_info): New member "thread".
13687 2014-02-19 Doug Evans <dje@google.com>
13689 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13690 All callers updated.
13692 2014-02-19 Doug Evans <dje@google.com>
13694 * inferiors.c (add_thread): Fix whitespace.
13696 2014-02-19 Doug Evans <dje@google.com>
13698 * dll.c (clear_dlls): Replace accessing list implemention details
13700 * gdbthread.h (get_first_thread): Declare.
13701 * inferiors.c (for_each_inferior_with_data): New function.
13702 (get_first_thread): New function.
13703 (find_thread_ptid): Simplify.
13704 (get_first_inferior): New function.
13705 (clear_list): Delete.
13706 (one_inferior_p): New function.
13707 (clear_inferior_list): New function.
13708 (clear_inferiors): Update.
13709 * inferiors.h (for_each_inferior_with_data): Declare.
13710 (clear_inferior_list): Declare.
13711 (one_inferior_p): Declare.
13712 (get_first_inferior): Declare.
13713 * linux-low.c (linux_wait_for_event): Replace accessing list
13714 implemention details with API function.
13715 * server.c (target_running): Ditto.
13716 (accumulate_file_name_length): New function.
13717 (emit_dll_description): New function.
13718 (handle_qxfer_libraries): Replace accessing list implemention
13719 details with API function.
13720 (handle_qxfer_threads_worker): New function.
13721 (handle_qxfer_threads_proper): Replace accessing list implemention
13722 details with API function.
13723 (handle_query): Ditto.
13724 (visit_actioned_threads_callback_ftype): New typedef.
13725 (visit_actioned_threads_data): New struct.
13726 (visit_actioned_threads): Rewrite to be find_inferior callback.
13727 (resume): Call find_inferior.
13728 (handle_status): Replace accessing list implemention
13729 details with API function.
13730 (process_serial_event): Replace accessing list implemention details
13732 * target.c (set_desired_inferior): Replace accessing list implemention
13733 details with API function.
13734 * tracepoint.c (same_process_p): New function.
13735 (gdb_agent_about_to_close): Replace accessing list implemention
13736 details with API function.
13737 * win32-low.c (child_delete_thread): Replace accessing list
13738 implemention details with API function.
13739 (match_dll_by_basename): New function.
13740 (dll_is_loaded_by_basename): New function.
13741 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13742 details call to dll_is_loaded_by_basename.
13744 2014-02-19 Doug Evans <dje@google.com>
13746 * dll.h (struct dll_info): Add comment.
13747 * gdbthread.h (struct thread_info): Add comment.
13748 (current_ptid): Simplify.
13749 * inferiors.c (add_process): Update.
13750 (remove_process): Update.
13751 * inferiors.h (struct process_info): Rename member "head" to "entry".
13752 * linux-low.c (delete_lwp): Update.
13754 (last_thread_of_process_p): Update.
13755 (kill_one_lwp_callback, linux_kill): Update.
13756 (status_pending_p_callback): Update.
13757 (wait_for_sigstop): Update. Simplify read of ptid.
13758 (start_step_over): Update.
13759 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13760 (get_lwp_thread): Update.
13761 (struct lwp_info): Rename member "head" to "entry".
13762 * regcache.h (inferior_list_entry): Delete.
13763 * server.c (kill_inferior_callback): Update.
13764 (detach_or_kill_inferior_callback): Update.
13765 (print_started_pid): Update.
13766 (print_attached_pid): Update.
13767 (process_serial_event): Simplify read of ptid.
13768 * thread-db.c (thread_db_create_event): Update.
13769 (thread_db_get_tls_address): Update.
13770 * win32-low.c (current_inferior_ptid): Simplify.
13772 2014-02-19 Tom Tromey <tromey@redhat.com>
13774 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13776 (target_supports_btrace): Update.
13778 2014-02-14 Yao Qi <yao@codesourcery.com>
13780 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13781 (rsp-low-ipa.o): New target.
13783 2014-02-12 Tom Tromey <tromey@redhat.com>
13785 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13786 convert_ascii_to_int.
13787 * regcache.c (registers_to_string): Likewise.
13788 * remote-utils.c (decode_M_packet): Likewise.
13789 * server.c (process_serial_event): Likewise.
13791 2014-02-12 Tom Tromey <tromey@redhat.com>
13793 * server.c (handle_query, handle_v_run): Use hex2bin, not
13795 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13797 2014-02-12 Tom Tromey <tromey@redhat.com>
13799 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13800 convert_int_to_ascii.
13801 * regcache.c (registers_to_string, collect_register_as_string):
13803 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13805 * server.c (process_serial_event): Likewise.
13806 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13807 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13809 2014-02-12 Tom Tromey <tromey@redhat.com>
13811 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13812 bin2hex, not hexify.
13813 * tracepoint.c (cmd_qtstatus): Likewise.
13815 2014-02-12 Tom Tromey <tromey@redhat.com>
13817 * remote-utils.c (monitor_output): Pass explicit length to
13820 2014-02-12 Tom Tromey <tromey@redhat.com>
13822 * tracepoint.c: Include rsp-low.h.
13823 * server.c: Include rsp-low.h.
13824 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13825 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13827 * remote-utils.c: Include rsp-low.h.
13828 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13829 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13830 (convert_int_to_ascii, convert_ascii_to_int): Move to
13832 * regcache.c: Include rsp-low.h.
13833 * ax.c: Include rsp-low.h.
13834 * Makefile.in (SFILES): Add common/rsp-low.c.
13835 (OBS): Add rsp-low.o.
13836 (rsp-low.o): New target.
13838 2014-02-12 Tom Tromey <tromey@redhat.com>
13840 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13841 Include print-utils.h.
13842 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13843 (plongest, thirty_two, phex_nz): Remove.
13844 * Makefile.in (SFILES): Add common/print-utils.c.
13845 (OBS): Add print-utils.o.
13846 (print-utils-ipa.o): New target.
13847 (print-utils.o): New target.
13848 (IPA_OBJS): Add print-utils-ipa.o.
13850 2014-02-06 Tom Tromey <tromey@redhat.com>
13852 * Makefile.in (SFILES): Fix indentation.
13854 2014-02-05 Doug Evans <dje@google.com>
13856 * linux-low.c (linux_wait_for_event): Improve comment.
13857 (linux_wait_1): Keep current_inferior in sync with event_child.
13859 2014-01-22 Doug Evans <dje@google.com>
13861 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13863 2014-01-22 Doug Evans <dje@google.com>
13865 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13866 * configure: Regenerate.
13867 * config.in: Regenerate.
13868 * Makefile.in (SFILES): Add debug.c.
13869 (OBS): Add debug.o.
13870 * debug.c: New file.
13871 * debug.h: New file.
13872 * linux-aarch64-low.c (*): Update all debugging printfs to use
13873 debug_printf instead of fprintf.
13874 * linux-arm-low.c (*): Ditto.
13875 * linux-cris-low.c (*): Ditto.
13876 * linux-crisv32-low.c (*): Ditto.
13877 * linux-m32r-low.c (*): Ditto.
13878 * linux-sparc-low.c (*): Ditto.
13879 * linux-x86.c (*): Ditto.
13880 * linux-low.c (*): Ditto.
13881 (linux_wait_1): Add calls to debug_enter, debug_exit.
13882 (linux_wait): Remove redundant debugging printf.
13883 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13884 (linux_resume, unstop_all_lwps): Ditto.
13885 * mem-break.c (*): Update all debugging printfs to use
13886 debug_printf instead of fprintf.
13887 * remote-utils.c (*): Ditto.
13888 * thread-db.c (*): Ditto.
13889 * server.c #include <ctype.h>, "gdb_vecs.h".
13890 (debug_threads): Moved to debug.c.
13891 (*): Update all debugging printfs to use debug_printf instead of
13893 (start_inferior): Replace call to fflush with call to debug_flush.
13894 (monitor_show_help): Mention set debug-format.
13895 (parse_debug_format_options): New function.
13896 (handle_monitor_command): Handle "monitor set debug-format".
13897 (gdbserver_usage): Mention --debug-format.
13898 (main): Parse --debug-format.
13899 * server.h (debug_threads): Declaration moved to debug.h.
13900 #include "debug.h".
13901 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13902 trace_debug_1 that uses debug_printf.
13903 (tracepoint_look_up_symbols): Update all debugging printfs to use
13904 debug_printf instead of fprintf.
13906 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13908 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13911 2014-01-17 Pedro Alves <palves@redhat.com>
13914 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13915 defined after including gdb_proc_service.h.
13917 2014-01-16 Doug Evans <dje@google.com>
13919 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13920 (match_dll): Use it.
13922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13924 * target.h (target_ops) <read_btrace>: Change parameters and
13925 return type to allow error reporting.
13926 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13927 trace reading errors on.
13928 * linux-low.c (linux_low_read_btrace): Pass trace reading
13930 (linux_low_disable_btrace): New.
13932 2014-01-15 Doug Evans <dje@google.com>
13934 * inferiors.c (thread_id_to_gdb_id): Delete.
13935 * inferiors.h (thread_id_to_gdb_id): Delete.
13937 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13939 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13940 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13943 2014-01-08 Pedro Alves <palves@redhat.com>
13945 * server.c (handle_status): Don't discard previous queued stop
13946 replies or thread's pending status here.
13947 (main) <disconnection>: Do it here instead.
13949 2014-01-08 Pedro Alves <palves@redhat.com>
13951 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13952 * server.c (visit_actioned_threads, handle_pending_status): New
13954 (handle_v_cont): Factor out parts to ...
13955 (resume): ... this new function. If in all-stop, and a thread
13956 being resumed has a pending status, report it without actually
13958 (myresume): Adjust to use the new 'resume' function.
13959 (clear_pending_status_callback, set_pending_status_callback)
13960 (find_status_pending_thread_callback): New functions.
13961 (handle_status): Handle the case of multiple threads having
13962 interesting statuses to report. Report threads' real last signal
13963 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13964 with an interesting thread to report the status for, instead of
13965 always reporting the status of the first thread.
13967 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13969 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13970 * gdbreplay.c (gdbreplay_version): Likewise.
13972 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13974 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13975 iov.iov_len with the real length in use.
13977 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13979 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13980 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13981 for all targets that use win32-low.c.
13982 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13983 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13985 2013-12-13 Pedro Alves <palves@redhat.com>
13987 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13988 if equal to TARGET_WAITKIND_LOADED.
13989 * win32-low.c (cached_status): New static global.
13990 (win32_wait): Add declaration.
13991 (do_initial_child_stuff): Flush all initial pending debug events
13992 up to the initial breakpoint.
13993 (win32_wait): If CACHED_STATUS was set, return that instead
13994 of doing a real wait. Remove the code resuming the execution
13995 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13996 during the initial phase. Also remove the code changing
13997 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13998 TARGET_WAITKIND_STOPPED.
14000 2013-12-11 Yao Qi <yao@codesourcery.com>
14002 * notif.c (handle_notif_ack): Return 0 if no notification
14005 2013-11-20 Doug Evans <dje@google.com>
14007 * linux-low.c (linux_set_resume_request): Fix comment.
14009 2013-11-20 Doug Evans <dje@google.com>
14011 * linux-low.c (resume_status_pending_p): Tweak comment.
14013 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14015 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14016 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14017 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14018 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14019 (srv_amd64_regobj): Add amd64-mpx.o.
14020 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14021 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14022 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14023 * i387-fp.c (num_pl_bnd_register) Added constant.
14024 (num_pl_bnd_cfg_registers) Added constant.
14025 (struct i387_xsave) Added reserved area and MPX fields.
14026 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14027 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14029 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14030 (init_registers_amd64_mpx_linux): Declare new function.
14031 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14032 (x86_64_regmap): Add MPX registers.
14033 (x86_linux_read_description): Add MPX case.
14034 (initialize_low_arch): Initialize MPX targets.
14036 2013-11-18 Tom Tromey <tromey@redhat.com>
14038 * configure: Rebuild.
14039 * configure.ac: Don't check for stdlib.h.
14040 * gdbreplay.c: Unconditionally include stdlib.h.
14042 2013-11-18 Tom Tromey <tromey@redhat.com>
14044 * config.in: Rebuild.
14045 * configure: Rebuild.
14046 * configure.ac: Don't use AC_HEADER_DIRENT.
14048 2013-11-18 Tom Tromey <tromey@redhat.com>
14050 * server.h: Don't check HAVE_STRING_H.
14051 * gdbreplay.c: Don't check HAVE_STRING_H.
14052 * configure: Rebuild.
14054 2013-11-18 Tom Tromey <tromey@redhat.com>
14056 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14059 2013-11-08 Tom Tromey <tromey@redhat.com>
14061 * configure, config.in: Rebuild.
14062 * configure.ac: Remove unused configury.
14064 2013-11-08 Tom Tromey <tromey@redhat.com>
14066 * acinclude.m4: Include common.m4, codeset.m4.
14067 * configure, config.in: Rebuild.
14068 * configure.ac: Use GDB_AC_COMMON.
14070 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14072 * linux-s390-low.c (HWCAP_S390_TE): New define.
14073 (s390_arch_setup): Consider the TE field in the HWCAP for
14074 determining 'have_regset_tdb'.
14076 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14079 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14082 2013-10-02 Pedro Alves <palves@redhat.com>
14084 * server.c (process_serial_event): Don't output "GDBserver
14085 exiting" if GDB is connected through stdio.
14086 * target.c (mywait): Likewise, be silent if GDB is connected
14089 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14091 * lynx-low.c (lynx_add_threads_after_attach): New function.
14092 (lynx_attach): Remove call to add_thread. Add call to
14093 lynx_add_threads_after_attach instead.
14095 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14097 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14098 * config.in, configure: Regenerated.
14100 2013-09-18 Yao Qi <yao@codesourcery.com>
14103 * server.c (start_inferior): Clear 'resume_info'.
14105 2013-09-16 Jiong Wang <jiwang@tilera.com>
14107 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14110 2013-09-16 Jiong Wang <jiwang@tilera.com>
14112 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14113 linux-tile-low.o to srv_tgtobj.
14115 2013-09-16 Will Newton <will.newton@linaro.org>
14117 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14120 2013-09-06 Pedro Alves <palves@redhat.com>
14122 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14123 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14124 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14125 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14126 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14127 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14129 2013-09-06 Pedro Alves <palves@redhat.com>
14131 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14132 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14134 2013-09-06 Pedro Alves <palves@redhat.com>
14136 * linux-amd64-ipa.c: Include tracepoint.h.
14137 * linux-i386-ipa.c: Include tracepoint.h.
14139 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14141 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14142 (ps_get_thread_area): New function.
14144 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14146 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14147 (initialize_low_arch): Call init_registers_crisv32 rather than
14148 init_register_crisv32.
14150 2013-09-05 Pedro Alves <palves@redhat.com>
14152 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14154 * hostio.h: ... this new file.
14155 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14156 win32-low.c: Include hostio.h.
14158 2013-09-05 Pedro Alves <palves@redhat.com>
14160 * server.h (gdb_client_data, handler_func, callback_handler_func)
14161 (delete_file_handler, add_file_handler, append_callback_event)
14162 (delete_callback_event, start_event_loop, initialize_event_loop):
14163 Move to event-loop.h and include it.
14164 * event-loop.h: New file.
14166 2013-09-05 Pedro Alves <palves@redhat.com>
14168 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14169 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14170 (loaded_dll, unloaded_dll): Move to ...
14171 * dll.h: ... this new file.
14172 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14174 2013-09-05 Pedro Alves <palves@redhat.com>
14176 * server.h (current_process, get_thread_process, all_processes)
14177 (add_inferior_to_list, for_each_inferior, current_inferior)
14178 (remove_inferior, add_process, remove_process, find_process_pid)
14179 (have_started_inferiors_p, have_attached_inferiors_p)
14180 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14181 (clear_inferiors, find_inferior, find_inferior_id)
14182 (inferior_target_data, set_inferior_target_data)
14183 (inferior_regcache_data, set_inferior_regcache_data): Move to
14184 inferiors.h, and include it.
14185 * inferiors.h: New file.
14187 2013-09-05 Pedro Alves <palves@redhat.com>
14189 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14193 2013-09-05 Pedro Alves <palves@redhat.com>
14195 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14197 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14198 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14199 (handle_tracepoint_general_set, handle_tracepoint_query)
14200 (tracepoint_finished_step, tracepoint_was_hit)
14201 (release_while_stepping_state_list, current_traceframe)
14202 (in_readonly_region, traceframe_read_mem)
14203 (fetch_traceframe_registers, traceframe_read_sdata)
14204 (traceframe_read_info, struct fast_tpoint_collect_status)
14205 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14206 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14207 (supply_fast_tracepoint_registers)
14208 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14209 (ipa_tdesc, claim_trampoline_space)
14210 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14211 (agent_mem_read, agent_get_trace_state_variable_value)
14212 (agent_set_trace_state_variable_value, agent_tsv_read)
14213 (agent_mem_read_string, get_raw_reg_func_addr)
14214 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14215 * tracepoint.h: ... this new file.
14217 2013-09-05 Pedro Alves <palves@redhat.com>
14219 * server.h (perror_with_name, error, fatal, warning, paddress)
14220 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14222 * utils.h: New file.
14224 2013-09-05 Pedro Alves <palves@redhat.com>
14226 * server.h (remote_debug, noack_mode, transport_is_reliable)
14227 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14228 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14229 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14230 (write_enn, initialize_async_io, enable_async_io)
14231 (disable_async_io, check_remote_input_interrupt_request)
14232 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14233 (dead_thread_notify, prepare_resume_reply)
14234 (decode_address_to_semicolon, decode_address, decode_m_packet)
14235 (decode_M_packet, decode_X_packet, decode_xfer_write)
14236 (decode_search_memory_packet, unhexify, hexify)
14237 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14238 (look_up_one_symbol, relocate_instruction)
14239 (monitor_output): Move to remote-utils.h, and include it.
14240 * remote-utils.h: New file.
14242 2013-09-05 Pedro Alves <palves@redhat.com>
14244 * server.h (_): Delete.
14246 2013-09-02 Pedro Alves <palves@redhat.com>
14248 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14249 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14251 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14253 2013-09-02 Pierre Muller <muller@sourceware.org>
14255 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14256 or WriteProcessMemory complete successfully and handle
14257 ERROR_PARTIAL_COPY error.
14259 2013-09-02 Pedro Alves <palves@redhat.com>
14261 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14262 error instead of EIO.
14264 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14267 * linux-low.c: Include filestuff.h.
14268 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14269 * lynx-low.c: Include filestuff.h.
14270 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14271 * server.c: Include filestuff.h.
14272 (main): Call notice_open_fds.
14273 * spu-low.c: Include filestuff.h.
14274 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14276 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14278 * Makefile.in: Explain why ../target and ../nat are not
14279 listed as include file search paths.
14280 (linux-waitpid.o): New object file rule.
14281 * configure.srv (srv_native_linux_obj): New variable.
14282 Replace all occurrences of linux native object files with
14283 $srv_native_linux_obj.
14284 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14285 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14286 (linux_enable_event_reporting): Remove declaration.
14287 (my_waitpid): Moved to common/linux-waitpid.c.
14288 (linux_wait_for_event): Pass ptid when calling
14289 linux_enable_event_reporting.
14290 (linux_supports_tracefork_flag): Remove.
14291 (linux_enable_event_reporting): Likewise.
14292 (linux_tracefork_grandchild): Remove.
14293 (STACK_SIZE): Moved to common/linux-ptrace.c.
14294 (linux_tracefork_child): Remove.
14295 (linux_test_for_tracefork): Remove.
14296 (linux_look_up_symbols): Call linux_supports_traceclone.
14297 (initialize_low): Remove call to linux_test_for_tracefork.
14298 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14299 common/linux-ptrace.h.
14300 (PTRACE_TYPE_ARG4): Likewise.
14301 Include linux-ptrace.h.
14303 2013-08-21 Pedro Alves <palves@redhat.com>
14305 * config.in: Renegerate.
14307 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14309 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14310 (SFILES): Remove $(srcdir)/common/target-common.c and
14311 add $(srcdir)/target/waitstatus.c.
14312 (OBS): Remove target-common.o and add waitstatus.o.
14313 (server_h): Remove $(srcdir)/../common/target-common.h and
14314 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14315 and $(srcdir)/../target/waitstatus.h.
14316 (target-common.o): Remove.
14317 (waitstatus.o): New target object file.
14318 * target.h: Do not include target-common.h and
14319 include target/resume.h, target/wait.h and
14320 target/waitstatus.h.
14322 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14324 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14325 to PTRACE_TYPE_ARG3.
14326 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14327 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14329 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14330 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14332 2013-07-27 Jie Zhang <jie@codesourcery.com>
14333 Daniel Jacobowitz <dan@codesourcery.com>
14334 Yao Qi <yao@codesourcery.com>
14336 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14337 (mips-linux-watch.o): New rule.
14338 (mips_linux_watch_h): New variable.
14339 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14341 * linux-mips-low.c: Include mips-linux-watch.h.
14342 (struct arch_process_info, struct arch_lwp_info): New.
14343 (update_watch_registers_callback): New function.
14344 (mips_linux_new_process, mips_linux_new_thread) New functions.
14345 (mips_linux_prepare_to_resume, mips_insert_point): New
14347 (mips_remove_point, mips_stopped_by_watchpoint): New
14349 (rsp_bp_type_to_target_hw_bp_type): New function.
14350 (mips_stopped_data_address): New function.
14351 (the_low_target): Add watchpoint support functions.
14353 2013-07-27 Yao Qi <yao@codesourcery.com>
14355 * i386-low.c: Include break-common.h.
14356 (enum target_hw_bp_type): Remove.
14358 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14360 * Makefile.in (SFILES): /common/target-common.c.
14361 (OBS): Add target-common.o.
14362 (server_h): Add $(srcdir)/../common/target-common.h.
14363 (target-common.o): New target.
14364 * server.c (queue_stop_reply_callback): Free
14365 status string after use.
14366 * target.c (target_waitstatus_to_string): Remove.
14367 * target.h: Include target-common.h.
14368 (resume_kind): Likewise.
14369 (target_waitkind): Likewise.
14370 (target_waitstatus): Likewise.
14371 (TARGET_WNOHANG): Likewise.
14373 2013-07-04 Yao Qi <yao@codesourcery.com>
14375 * Makefile.in (host_alias): Use @host_noncanonical@.
14376 (target_alias): Use @target_noncanonical@.
14377 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14378 ACX_NONCANONICAL_HOST.
14379 * configure: Regenerated.
14382 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14384 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14385 * configure: Rebuild.
14386 * Makefile.in (version_host, version_target): Get from configure.
14387 (version.c): Use $(version_host) and $(version_target).
14389 2013-07-03 Pedro Alves <palves@redhat.com>
14391 * Makefile.in (config.status): Depend on development.sh.
14392 * acinclude.m4: Include libmcheck.m4.
14393 * configure: Regenerate.
14395 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14397 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14398 attribute inside the parentheses.
14399 (winapi_DebugSetProcessKillOnExit): Ditto.
14400 (winapi_DebugBreakProcess): Ditto.
14401 (winapi_GenerateConsoleCtrlEvent): Ditto.
14403 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14405 * notif.h (notif_event): Add a dummy member to avoid compiler
14408 2013-07-01 Pedro Alves <palves@redhat.com>
14410 * hostio.c (HOSTIO_PATH_MAX): Define.
14411 (require_filename, handle_open, handle_unlink, handle_readlink):
14414 2013-07-01 Pedro Alves <palves@redhat.com>
14416 * server.h: Include "pathmax.h".
14417 * linux-low.c: Don't include sys/param.h.
14418 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14420 * win32-low.c: Don't include sys/param.h.
14421 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14423 2013-07-01 Pedro Alves <palves@redhat.com>
14425 * event-loop.c: Don't check HAVE_UNISTD_H before including
14427 * gdbreplay.c: Likewise.
14428 * remote-utils.c: Likewise.
14429 * server.c: Likewise.
14430 * configure.ac: Don't check for unistd.h.
14431 * configure: Regenerate.
14433 2013-06-28 Tom Tromey <tromey@redhat.com>
14435 * Makefile.in (version.c): Use version.in, not
14438 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14440 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14441 * configure: Rebuild.
14442 * Makefile.in (version_host, version_target): Get from configure.
14443 (version.c): Use $(version_host) and $(version_target).
14445 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14447 Fix trace-status to output user name without trailing colon.
14448 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14450 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14452 Fix trace-status to output proper start-time and stop-time.
14453 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14454 output start time and stop time in hex as gdb expects.
14456 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14458 * tracepoint.c (build_traceframe_info_xml): Output trace state
14459 variables present in the trace buffer.
14461 2013-06-24 Tom Tromey <tromey@redhat.com>
14463 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14465 (version.o): Remove.
14466 * gdbreplay.c: Include version.h.
14467 (version, host_name): Don't declare.
14468 * server.h: Include version.h.
14469 (version, host_name): Don't declare.
14471 2013-06-12 Pedro Alves <palves@redhat.com>
14473 * linux-x86-low.c (linux_is_elf64): Delete global.
14474 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14475 with local linux_pid_exe_is_elf_64_file use.
14477 2013-06-11 Pedro Alves <palves@redhat.com>
14479 * linux-low.c (regset_disabled, disable_regset): New functions.
14480 (regsets_fetch_inferior_registers)
14481 (regsets_store_inferior_registers): Use them.
14482 (initialize_regsets_info); Don't allocate the disabled_regsets
14484 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14487 2013-06-11 Pedro Alves <palves@redhat.com>
14489 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14492 2013-06-11 Pedro Alves <palves@redhat.com>
14494 * linux-x86-low.c (initialize_low_arch): Call
14495 init_registers_x32_avx_linux.
14497 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14499 Fix compatibility with Android Bionic.
14500 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14503 2013-06-07 Pedro Alves <palves@redhat.com>
14506 * Makefile.in (OBS): Add tdesc.o.
14507 (IPA_OBJS): Add tdesc-ipa.o.
14508 (tdesc-ipa.o): New rule.
14509 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14511 * linux-low.c (new_inferior): Delete.
14512 (disabled_regsets, num_regsets): Delete.
14513 (linux_add_process): Adjust to set the new per-process
14515 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14516 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14517 was a stop. When calling arch_setup, switch the current inferior
14518 to the thread that got an event.
14519 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14520 (regsets_fetch_inferior_registers)
14521 (regsets_store_inferior_registers): New regsets_info parameter.
14523 (linux_register_in_regsets): New regs_info parameter. Adjust to
14525 (register_addr, fetch_register, store_register): New usrregs_info
14526 parameter. Adjust to use it.
14527 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14528 parameter regs_info. Adjust to use it.
14529 (linux_fetch_registers): Get the current inferior's regs_info, and
14531 (linux_store_registers): Ditto.
14532 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14533 (initialize_low): Don't initialize the target_regsets here. Call
14534 initialize_low_arch.
14535 * linux-low.h (target_regsets): Delete declaration.
14536 (struct regsets_info): New.
14537 (struct usrregs_info): New.
14538 (struct regs_info): New.
14539 (struct process_info_private) <new_inferior>: New field.
14540 (struct linux_target_ops): Delete the num_regs, regmap, and
14541 regset_bitmap fields. New field regs_info.
14542 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14543 * i387-fp.c (num_xmm_registers): Delete.
14544 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14545 calls to new interface.
14546 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14547 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14548 Infer the number of xmm registers from the regcache's target
14550 * i387-fp.h (num_xmm_registers): Delete.
14551 * inferiors.c (add_thread): Don't install the thread's regcache
14553 * proc-service.c (gregset_info): Fetch the current inferior's
14554 regs_info. Adjust to use it.
14555 * regcache.c: Include tdesc.h.
14556 (register_bytes, reg_defs, num_registers)
14557 (gdbserver_expedite_regs): Delete.
14558 (get_thread_regcache): If the thread doesn't have a regcache yet,
14559 create one, instead of aborting gdbserver.
14560 (regcache_invalidate_one): Rename to ...
14561 (regcache_invalidate_thread): ... this.
14562 (regcache_invalidate_one): New.
14563 (regcache_invalidate): Only invalidate registers of the current
14565 (init_register_cache): Add target_desc parameter, and use it.
14566 (new_register_cache): Ditto. Assert the target description has a
14567 non zero registers_size.
14568 (regcache_cpy): Add assertions. Adjust.
14569 (realloc_register_cache, set_register_cache): Delete.
14570 (registers_to_string, registers_from_string): Adjust.
14571 (find_register_by_name, find_regno, find_register_by_number)
14572 (register_cache_size): Add target_desc parameter, and use it.
14573 (free_register_cache_thread, free_register_cache_thread_one)
14574 (regcache_release, register_cache_size): New.
14575 (register_size): Add target_desc parameter, and use it.
14576 (register_data, supply_register, supply_register_zeroed)
14577 (supply_regblock, supply_register_by_name, collect_register)
14578 (collect_register_as_string, collect_register_by_name): Adjust.
14579 * regcache.h (struct target_desc): Forward declare.
14580 (struct regcache) <tdesc>: New field.
14581 (init_register_cache, new_register_cache): Add target_desc
14583 (regcache_invalidate_thread): Declare.
14584 (regcache_invalidate_one): Delete declaration.
14585 (regcache_release): Declare.
14586 (find_register_by_number, register_cache_size, register_size)
14587 (find_regno): Add target_desc parameter.
14588 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14590 * remote-utils.c: Include tdesc.h.
14591 (outreg, prepare_resume_reply): Adjust.
14592 * server.c: Include tdesc.h.
14593 (gdbserver_xmltarget): Delete declaration.
14594 (get_features_xml, process_serial_event): Adjust.
14595 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14597 (struct process_info) <tdesc>: New field.
14598 (ipa_tdesc): Declare.
14599 * tdesc.c: New file.
14600 * tdesc.h: New file.
14601 * tracepoint.c: Include tdesc.h.
14602 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14603 (get_context_regcache): Adjust to pass ipa_tdesc down.
14604 (do_action_at_tracepoint): Adjust to get the register cache size
14605 from the context regcache's description.
14606 (traceframe_walk_blocks): Adjust to get the register cache size
14607 from the current trace frame's description.
14608 (traceframe_get_pc): Adjust to get current trace frame's
14609 description and pass it down.
14610 (gdb_collect): Adjust to get the register cache size from the
14612 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14613 (gdbserver_xmltarget): Delete.
14614 (initialize_low_tracepoint): Set the ipa's target description.
14615 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14616 (initialize_low_tracepoint): Set the ipa's target description.
14617 * linux-x86-low.c: Include tdesc.h.
14618 [__x86_64__] (is_64bit_tdesc): New.
14619 (ps_get_thread_area, x86_get_thread_area): Use it.
14620 (i386_cannot_store_register): Rename to ...
14621 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14622 (i386_cannot_fetch_register): Rename to ...
14623 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14624 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14626 (target_regsets): Rename to ...
14627 (x86_regsets): ... this.
14628 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14630 (x86_siginfo_fixup): Use is_64bit_tdesc.
14631 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14632 (tdesc_x32_avx_linux, tdesc_x32_linux)
14633 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14635 (x86_linux_update_xmltarget): Delete.
14636 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14637 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14638 (AMD64_LINUX_USER64_CS): New.
14639 (x86_linux_read_description): New, based on
14640 x86_linux_update_xmltarget.
14641 (same_process_callback): New.
14642 (x86_arch_setup_process_callback): New.
14643 (x86_linux_update_xmltarget): New.
14644 (x86_regsets_info): New.
14645 (amd64_linux_regs_info): New.
14646 (i386_linux_usrregs_info): New.
14647 (i386_linux_regs_info): New.
14648 (x86_linux_regs_info): New.
14649 (x86_arch_setup): Reimplement.
14650 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14651 (x86_emit_ops): Ditto.
14652 (the_low_target): Adjust. Install x86_linux_regs_info,
14653 x86_cannot_fetch_register, and x86_cannot_store_register.
14654 (initialize_low_arch): New.
14655 * linux-ia64-low.c (tdesc_ia64): Declare.
14656 (ia64_fetch_register): Adjust.
14657 (ia64_usrregs_info, regs_info): New globals.
14658 (ia64_regs_info): New function.
14659 (the_low_target): Adjust.
14660 (initialize_low_arch): New function.
14661 * linux-sparc-low.c (tdesc_sparc64): Declare.
14662 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14664 (sparc_arch_setup): New function.
14665 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14666 (the_low_target): Adjust.
14667 (initialize_low_arch): New function.
14668 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14669 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14670 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14671 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14672 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14673 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14674 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14675 (tdesc_powerpc_isa205_vsx64l): Declare.
14676 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14677 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14678 (ppc_set_pc, ppc_get_hwcap): Adjust.
14679 (ppc_usrregs_info): Forward declare.
14680 (!__powerpc64__) ppc_regmap_adjusted: New global.
14681 (ppc_arch_setup): Adjust to the current process'es target
14683 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14684 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14685 (ppc_store_evrregset): Adjust.
14686 (target_regsets): Rename to ...
14687 (ppc_regsets): ... this, and make static.
14688 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14689 (ppc_regs_info): New function.
14690 (the_low_target): Adjust.
14691 (initialize_low_arch): New function.
14692 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14693 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14694 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14695 (tdesc_s390x_linux64v2): Declare.
14696 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14697 (s390_fill_gregset, s390_store_last_break): Adjust.
14698 (target_regsets): Rename to ...
14699 (s390_regsets): ... this, and make static.
14700 (s390_get_pc, s390_set_pc): Adjust.
14701 (s390_get_hwcap): New target_desc parameter, and use it.
14702 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14703 (s390_arch_setup): Adjust to set the current process'es target
14704 description. Don't adjust the regmap.
14705 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14706 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14707 (regs_info_3264): New globals.
14708 (s390_regs_info): New function.
14709 (the_low_target): Adjust.
14710 (initialize_low_arch): New function.
14711 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14712 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14713 [__mips64] (init_registers_mips_linux)
14714 (init_registers_mips_dsp_linux): Delete defines.
14715 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14716 (have_dsp): New global.
14717 (mips_read_description): New, based on mips_arch_setup.
14718 (mips_arch_setup): Reimplement.
14719 (get_usrregs_info): New function.
14720 (mips_cannot_fetch_register, mips_cannot_store_register)
14721 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14722 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14723 (target_regsets): Rename to ...
14724 (mips_regsets): ... this, and make static.
14725 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14726 (dsp_regs_info, regs_info): New globals.
14727 (mips_regs_info): New function.
14728 (the_low_target): Adjust.
14729 (initialize_low_arch): New function.
14730 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14731 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14733 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14734 (arm_read_description): New, with bits factored from
14736 (arm_arch_setup): Reimplement.
14737 (target_regsets): Rename to ...
14738 (arm_regsets): ... this, and make static.
14739 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14740 (arm_regs_info): New function.
14741 (the_low_target): Adjust.
14742 (initialize_low_arch): New function.
14743 * linux-m68k-low.c (tdesc_m68k): Declare.
14744 (target_regsets): Rename to ...
14745 (m68k_regsets): ... this, and make static.
14746 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14747 (m68k_regs_info): New function.
14748 (m68k_arch_setup): New function.
14749 (the_low_target): Adjust.
14750 (initialize_low_arch): New function.
14751 * linux-sh-low.c (tdesc_sharch): Declare.
14752 (target_regsets): Rename to ...
14753 (sh_regsets): ... this, and make static.
14754 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14755 (sh_regs_info, sh_arch_setup): New functions.
14756 (the_low_target): Adjust.
14757 (initialize_low_arch): New function.
14758 * linux-bfin-low.c (tdesc_bfin): Declare.
14759 (bfin_arch_setup): New function.
14760 (bfin_usrregs_info, regs_info): New globals.
14761 (bfin_regs_info): New function.
14762 (the_low_target): Adjust.
14763 (initialize_low_arch): New function.
14764 * linux-cris-low.c (tdesc_cris): Declare.
14765 (cris_arch_setup): New function.
14766 (cris_usrregs_info, regs_info): New globals.
14767 (cris_regs_info): New function.
14768 (the_low_target): Adjust.
14769 (initialize_low_arch): New function.
14770 * linux-cris-low.c (tdesc_crisv32): Declare.
14771 (cris_arch_setup): New function.
14772 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14773 (cris_regs_info): New function.
14774 (the_low_target): Adjust.
14775 (initialize_low_arch): New function.
14776 * linux-m32r-low.c (tdesc_m32r): Declare.
14777 (m32r_arch_setup): New function.
14778 (m32r_usrregs_info, regs_info): New globals.
14779 (m32r_regs_info): Adjust.
14780 (initialize_low_arch): New function.
14781 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14782 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14783 (tic6x_usrregs_info): Forward declare.
14784 (tic6x_read_description): New function, based on ...
14785 (tic6x_arch_setup): ... this. Reimplement.
14786 (target_regsets): Rename to ...
14787 (tic6x_regsets): ... this, and make static.
14788 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14789 (tic6x_regs_info): New function.
14790 (the_low_target): Adjust.
14791 (initialize_low_arch): New function.
14792 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14793 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14794 (target_regsets): Rename to ...
14795 (xtensa_regsets): ... this, and make static.
14796 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14798 (xtensa_arch_setup, xtensa_regs_info): New functions.
14799 (the_low_target): Adjust.
14800 (initialize_low_arch): New function.
14801 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14802 (nios2_arch_setup): Set the current process'es tdesc.
14803 (target_regsets): Rename to ...
14804 (nios2_regsets): ... this.
14805 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14806 (nios2_regs_info): New function.
14807 (the_low_target): Adjust.
14808 (initialize_low_arch): New function.
14809 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14810 (aarch64_arch_setup): Set the current process'es tdesc.
14811 (target_regsets): Rename to ...
14812 (aarch64_regsets): ... this.
14813 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14814 (aarch64_regs_info): New function.
14815 (the_low_target): Adjust.
14816 (initialize_low_arch): New function.
14817 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14819 (target_regsets): Rename to ...
14820 (tile_regsets): ... this.
14821 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14822 (tile_regs_info): New function.
14823 (tile_arch_setup): Set the current process'es tdesc.
14824 (the_low_target): Adjust.
14825 (initialize_low_arch): New function.
14826 * spu-low.c (tdesc_spu): Declare.
14827 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14828 * win32-arm-low.c (tdesc_arm): Declare.
14829 (arm_arch_setup): New function.
14830 (the_low_target): Install arm_arch_setup instead of
14831 init_registers_arm.
14832 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14833 (init_windows_x86): Rename to ...
14834 (i386_arch_setup): ... this. Set `win32_tdesc'.
14835 (the_low_target): Adjust.
14836 * win32-low.c (win32_tdesc): New global.
14837 (child_add_thread): Don't create the thread cache here.
14838 (do_initial_child_stuff): Set the new process'es tdesc.
14839 * win32-low.h (struct target_desc): Forward declare.
14840 (win32_tdesc): Declare.
14841 * lynx-i386-low.c (tdesc_i386): Declare global.
14842 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14843 * lynx-low.c (lynx_tdesc): New global.
14844 (lynx_add_process): Set the new process'es tdesc.
14845 * lynx-low.h (struct target_desc): Forward declare.
14846 (lynx_tdesc): Declare global.
14847 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14848 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14849 * nto-low.c (nto_tdesc): New global.
14850 (do_attach): Set the new process'es tdesc.
14851 * nto-low.h (struct target_desc): Forward declare.
14852 (nto_tdesc): Declare.
14853 * nto-x86-low.c (tdesc_i386): Declare.
14854 (nto_x86_arch_setup): Set `nto_tdesc'.
14856 2013-06-04 Gary Benson <gbenson@redhat.com>
14858 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14859 to qSupported response when appropriate.
14860 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14861 with nonzero-length annex.
14862 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14863 arguments supplied in annex.
14865 2013-05-31 Doug Evans <dje@google.com>
14868 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14869 64 bits in 64-cross-32 environment.
14871 2013-05-28 Pedro Alves <palves@redhat.com>
14873 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14874 (aarch64-without-fpu.c): Delete rule.
14875 * configure.srv (aarch64*-*-linux*): Remove references to
14876 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14877 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14880 2013-05-24 Pedro Alves <palves@redhat.com>
14882 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14883 instead of strchr/decode_address. Error if the range isn't split
14884 with a ','. Don't assume there's be a ':' in the action.
14886 2013-05-23 Yao Qi <yao@codesourcery.com>
14887 Pedro Alves <palves@redhat.com>
14889 * linux-low.c (lwp_in_step_range): New function.
14890 (linux_wait_1): If the thread was range stepping and stopped
14891 outside the stepping range, report the stop to GDB. Otherwise,
14892 continue stepping. Add range stepping debug output.
14893 (linux_set_resume_request): Copy the step range from the resume
14894 request to the lwp.
14895 (linux_supports_range_stepping): New.
14896 (linux_target_ops) <supports_range_stepping>: Set to
14897 linux_supports_range_stepping.
14898 * linux-low.h (struct linux_target_ops)
14899 <supports_range_stepping>: New field.
14900 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14901 * linux-x86-low.c (x86_supports_range_stepping): New.
14902 (the_low_target) <supports_range_stepping>: Set to
14903 x86_supports_range_stepping.
14904 * server.c (handle_v_cont): Handle 'r' action.
14905 (handle_v_requests): Append ";r" if the target supports range
14907 * target.h (struct thread_resume) <step_range_start,
14908 step_range_end>: New fields.
14909 (struct target_ops) <supports_range_stepping>:
14911 (target_supports_range_stepping): New macro.
14913 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14915 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14916 confusion in comment.
14918 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14920 * lynx-low.c (struct process_info_private): New type.
14921 (lynx_add_process): New function.
14922 (lynx_create_inferior, lynx_attach): Replace calls to
14923 add_process by calls to lynx_add_process.
14924 (lynx_resume): If PTID is null, then try using
14925 current_process()->private->last_wait_event_ptid.
14927 (lynx_clear_inferiors): Delete. The contents of that function
14928 has been inlined in lynx_mourn;
14929 (lynx_wait_1): Save the ptid in the process's private data.
14930 (lynx_mourn): Free the process' private data. Replace call
14931 to lynx_clear_inferiors by call to clear_inferiors.
14933 2013-05-17 Yao Qi <yao@codesourcery.com>
14935 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14938 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14940 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14941 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14942 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14943 PT_TEXT_END_ADDR guards. Update comments.
14944 (linux_target_op) <read_offsets>: Conditionally define to
14945 linux_read_offsets if the target is UCLIBC and if it defines
14946 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14948 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14949 Andrew Jenner <andrew@codesourcery.com>
14951 * Makefile.in (SFILES): Add linux-nios2-low.c.
14952 (clean): Add action to delete nios2-linux.c.
14953 (nios2-linux.c): New rule.
14954 * configure.srv: Add nios2*-*-linux*.
14955 * linux-nios2-low.c: New.
14957 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14959 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14961 2013-04-25 Hui Zhu <hui@codesourcery.com>
14964 * ax.c (ax_printf): Add fflush.
14966 2013-04-22 Tom Tromey <tromey@redhat.com>
14968 * Makefile.in (SFILES): Add filestuff.c.
14969 (OBS): Add filestuff.o.
14970 (filestuff.o): New target.
14971 * config.in, configure: Rebuild.
14972 * configure.ac: Check for fdwalk, pipe2.
14974 2013-04-17 Pedro Alves <palves@redhat.com>
14976 * configure.ac (USE_THREAD_DB): Delete variable.
14977 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14978 Don't AC_SUBST USE_THREAD_DB.
14979 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14980 * config.in, configure: Regenerate.
14982 2013-04-16 Pedro Alves <palves@redhat.com>
14984 * linux-low.h (struct lwp_info) <thread_known>: Move under
14985 the USE_THREAD_DB #ifdef.
14987 2013-04-16 Pedro Alves <palves@redhat.com>
14989 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14990 (linux-low.o): Delete rule.
14991 * linux-low.h: Always include "gdb_thread_db.h" instead of
14992 conditionally including thread_db.h.
14993 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14996 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14998 * Makefile.in (install-only): Fix make install regression.
15000 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15002 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15003 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15005 * gdbserver.1: Remove.
15007 2013-03-22 Pedro Alves <palves@redhat.com>
15009 * linux-low.c (handle_extended_wait): Don't call
15010 linux_enable_event_reporting.
15012 2013-03-15 Tony Theodore <tonyt@logyst.com>
15015 * Makefile.in (SHELL): Use @SHELL@.
15017 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15019 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15022 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15024 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15025 Remove extraneous NULL element.
15027 2013-03-13 Yao Qi <yao@codesourcery.com>
15029 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15030 'V' block in trace frame.
15032 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15034 * target.h (struct target_ops): Add btrace ops.
15035 (target_supports_btrace): New macro.
15036 (target_enable_btrace): New macro.
15037 (target_disable_btrace): New macro.
15038 (target_read_btrace): New macro.
15039 * gdbthread.h (struct thread_info): Add btrace field.
15040 * server.c: Include btrace-common.h.
15041 (handle_btrace_general_set): New function.
15042 (handle_btrace_enable): New function.
15043 (handle_btrace_disable): New function.
15044 (handle_general_set): Call handle_btrace_general_set.
15045 (handle_qxfer_btrace): New function.
15046 (struct qxfer qxfer_packets[]): Add btrace entry.
15047 * inferiors.c (remove_thread): Disable btrace.
15048 * linux-low: Include linux-btrace.h.
15049 (linux_low_enable_btrace): New function.
15050 (linux_low_read_btrace): New function.
15051 (linux_target_ops): Add btrace ops.
15052 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15053 Add srv_linux_btrace=yes.
15054 (x86_64-*-linux*): Add linux-btrace.o.
15055 Add srv_linux_btrace=yes.
15056 * configure.ac: Define HAVE_LINUX_BTRACE.
15057 * config.in: Regenerated.
15058 * configure: Regenerated.
15060 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15062 * server.c (handle_qxfer): Preserve error message if -3 is
15064 (qxfer): Document the -3 return value.
15066 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15068 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15069 (linux_btrace_h): New variable.
15070 (linux-btrace.o): New rule.
15072 2013-03-08 Stan Shebs <stan@codesourcery.com>
15073 Hafiz Abid Qadeer <abidh@codesourcery.com>
15075 * tracepoint.c (trace_buffer_size): New global.
15076 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15077 (init_trace_buffer): Change to one-argument function. Allocate
15078 trace buffer memory.
15079 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15080 handle QTBuffer:size packet.
15081 (cmd_bigqtbuffer_size): New function.
15082 (initialize_tracepoint): Call init_trace_buffer with
15083 DEFAULT_TRACE_BUFFER_SIZE.
15084 * server.c (handle_query): Add QTBuffer:size in the
15087 2013-03-07 Yao Qi <yao@codesourcery.com>
15089 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15090 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15092 (cmd_qtsp): Adjust condition. Do post increment.
15093 Set cur_action and cur_step_action back to 0.
15095 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15098 * linux-low.c (linux_write_memory): Return early success if LEN is
15101 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15103 * configure.srv: Add x86_64-*-cygwin* as target.
15105 2013-02-28 Tom Tromey <tromey@redhat.com>
15107 * configure.ac: Invoke AC_SYS_LARGEFILE.
15108 * configure, config.in: Rebuild.
15110 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15112 * win32-low.c: Throughout, fix format strings and casts of
15113 printf-like functions to avoid type related warnings on all
15115 (get_child_debug_event): Print dwDebugEventCode as hex since
15116 that's how it's usually documented.
15118 2013-02-28 Yao Qi <yao@codesourcery.com>
15120 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15123 2013-02-27 Jiong Wang <jiwang@tilera.com>
15125 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15126 (reg-tilegx32.c): New rule.
15127 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15128 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15129 different register info initializer according to elf class.
15130 (init_registers_tilgx32): New function. The tilegx32 register info
15132 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15133 (tile_store_gregset): Likewise.
15135 2013-02-27 Yao Qi <yao@codesourcery.com>
15137 * server.c (process_point_options): Print debug message when
15138 debug_threads is true.
15140 2013-02-26 Yao Qi <yao@codesourcery.com>
15142 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15144 2013-02-19 Pedro Alves <palves@redhat.com>
15145 Kai Tietz <ktietz@redhat.com>
15149 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15150 instead of strtoul to extract address from packet.
15151 (process_serial_event) <'z'>: Likewise.
15153 2013-02-18 Yao Qi <yao@codesourcery.com>
15155 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15157 2013-02-14 Pedro Alves <palves@redhat.com>
15161 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15162 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15164 2013-02-14 Pedro Alves <palves@redhat.com>
15166 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15168 2013-02-14 Pedro Alves <palves@redhat.com>
15170 * tracepoint.c (save_string): Delete.
15171 (add_tracepoint_action): Use savestring instead of save_string.
15173 2013-02-12 Pedro Alves <palves@redhat.com>
15175 * linux-xtensa-low.c: Ditto.
15176 * xtensa-xtregs.c: Ditto.
15178 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15180 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15183 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15185 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15186 aarch64_num_wp_regs and aarch64_num_bp_regs to
15187 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15189 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15191 * linux-aarch64-low.c (ps_get_thread_area): Replace
15192 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15194 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15195 Marcus Shawcroft <marcus.shawcroft@arm.com>
15196 Nigel Stephens <nigel.stephens@arm.com>
15197 Yufeng Zhang <yufeng.zhang@arm.com>
15199 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15200 (aarch64.c, aarch64-without-fpu.c): New targets.
15201 * configure.srv (aarch64*-*-linux*): New.
15202 * linux-aarch64-low.c: New file.
15204 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15206 * linux-low.c (handle_extended_wait, linux_create_inferior)
15207 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15208 (dequeue_one_deferred_signal, linux_resume_one_thread)
15209 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15210 (linux_tracefork_grandchild, linux_test_for_tracefork)
15211 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15212 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15213 where the argument is 0.
15215 2013-01-25 Yao Qi <yao@codesourcery.com>
15217 * event-loop.c: Include "queue.h".
15218 (gdb_event_p): New typedef.
15219 (struct gdb_event) <next_event>: Remove.
15220 (event_queue): Change to QUEUE(gdb_event_p).
15221 (async_queue_event): Remove.
15222 (gdb_event_xfree): New.
15223 (initialize_event_loop): New.
15224 (process_event): Use API from QUEUE.
15225 (wait_for_event): Likewise.
15226 * server.c (main): Call initialize_event_loop.
15227 * server.h (initialize_event_loop): Declare.
15229 2013-01-18 Yao Qi <yao@codesourcery.com>
15231 * ax.h (struct eval_agent_expr_context): New.
15232 (gdb_eval_agent_expr): Update declaration.
15233 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15234 TFRAME. Add new argument CTX.
15235 * server.h (struct eval_agent_expr_context): Declare.
15236 (agent_mem_read, agent_tsv_read): Update declaration.
15237 (agent_mem_read_string): Likewise.
15238 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15239 (add_traceframe_block): Add new argument TPOINT.
15240 Increase TPOINT->traceframe_usage.
15241 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15242 eval_tracepoint_agent_expr.
15243 (condition_true_at_tracepoint): Likewise.
15244 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15245 (agent_mem_read_string, agent_tsv_read): Likewise.
15247 2013-01-16 Yao Qi <yao@codesourcery.com>
15249 * linux-low.c (linux_resume_one_lwp): Don't check
15250 'lwp->bp_reinsert != 0'.
15252 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15253 Pedro Alves <palves@redhat.com>
15255 * lynx-low.c (ptrace_request_to_str): Define a temporary
15256 macro and use it to simplify this function's implementation.
15258 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15260 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15263 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15265 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15267 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15269 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15271 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15273 * lynx-low.c (lynx_resume): Use the resume_info parameter
15274 to determine the ptid for the lynx_ptrace call, unless
15275 it is equal to minus_one_ptid, in which case we use the
15276 ptid of the current_inferior.
15277 (lynx_wait_1): After having received a thread create/exit
15278 event, resume the inferior's execution using the signaling
15279 thread's ptid, rather than the old ptid.
15281 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15283 * lynx-low.c (lynx_resume): Delete variable ret.
15285 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15287 * gdbreplay.c (gdbreplay_version): Update copyright year.
15288 * server.c (gdbserver_version): Likewise.
15290 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15292 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15295 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15297 * lynx-low.c (ptrace_request_to_str): Add handling for
15298 PTRACE_GETTRACESIG.
15300 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15302 * lynx-low.c (lynx_attach): Delete variable new_process.
15304 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15306 * lynx-low.c (lynx_create_inferior): Delete variable
15309 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15311 * lynx-low.c (ptrace_request_to_str): Do not handle
15312 PTRACE_GETTHREADLIST if this macro does not exist.
15314 2012-12-15 Yao Qi <yao@codesourcery.com>
15316 * Makefile.in (OBS): Add notif.o.
15317 * notif.c, notif.h: New.
15318 * server.c: Include "notif.h".
15319 (struct vstop_notif) <next>: Remove.
15321 (queue_stop_reply): Update.
15322 (push_event, send_next_stop_reply): Remove.
15323 (discard_queued_stop_replies): Update.
15324 (notif_stop): New variable.
15325 (handle_v_stopped): Remove.
15326 (handle_v_requests): Don't call handle_v_stopped. Call
15327 handle_ack_notif instead.
15328 (queue_stop_reply_callback): Call notif_event_enque instead
15329 of queue_stop_reply.
15330 (handle_status): Don't call send_next_stop_reply, call
15331 notif_write_event instead.
15332 (kill_inferior_callback): Likewise.
15333 (detach_or_kill_inferior_callback): Likewise.
15334 (main): Call initialize_notif.
15335 (process_serial_event): Call QUEUE_is_empty.
15336 (handle_target_event): Call notif_push instead of push event.
15337 * server.h (push_event): Remove declaration.
15339 2012-12-10 Tom Tromey <tromey@redhat.com>
15341 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15342 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15345 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15346 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15347 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15348 (amd64-linux-ipa.o, ax.o): Rewrite.
15349 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15350 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15351 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15352 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15353 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15354 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15355 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15356 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15357 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15358 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15359 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15360 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15361 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15362 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15363 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15364 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15365 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15366 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15367 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15368 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15369 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15370 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15371 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15372 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15373 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15374 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15375 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15376 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15377 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15378 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15379 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15380 (reg-tilegx.o): Remove.
15381 (all_object_files): New macro.
15382 Include .deps files.
15383 * aclocal.m4, configure: Rebuild.
15384 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15385 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15386 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15388 2012-12-05 Tom Tromey <tromey@redhat.com>
15391 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15393 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15395 * configure.ac: Check for linux/perf_event.h.
15396 * config.in: Regenerated.
15397 * configure: Regenerated.
15399 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15401 * hostio.c (handle_readlink): Decrease buffer size
15402 parameter passed to readlink by one byte.
15404 2012-11-26 Yao Qi <yao@codesourcery.com>
15406 * configure.ac (build_warnings): Append '-Wempty-body'.
15407 * configure: Regenerated.
15408 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15411 2012-11-15 Pierre Muller <muller@sourceware.org>
15413 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15414 * config.in: Regenerate.
15415 * configure: Regenerate.
15416 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15417 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15418 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15419 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15421 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15422 instead of <sys/wait.h> header.
15423 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15425 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15427 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15428 (various make rules): Remove -DGDBSERVER
15430 2012-11-09 Yao Qi <yao@codesourcery.com>
15432 * spu-low.c (current_ptid): Move it to ..
15433 * gdbthread.h: ... here. New.
15434 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15435 * server.c (myresume, process_serial_event): Likewise.
15436 * thread-db.c (thread_db_find_new_threads): Likewise.
15437 * tracepoint.c (run_inferior_command): Likewise.
15439 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15441 * server.c (handle_search_memory_1): Include access length in
15444 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15446 * linux-crisv32-low.c: Fix compile errors.
15448 2012-09-04 Yao Qi <yao@codesourcery.com>
15450 * tracepoint.c (cmd_qtsv): Adjust debug message.
15451 Don't check CUR_TPOINT.
15453 2012-08-28 Yao Qi <yao@codesourcery.com>
15455 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15456 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15457 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15458 Remove declarations of xmalloc, xreallloc, xstrdup and
15460 * Makefile.in (libiberty_h): New.
15461 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15462 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15464 2012-08-23 Yao Qi <yao@codesourcery.com>
15466 * server.h: Remove declaration of 'xsnprintf'.
15468 2012-08-22 Keith Seitz <keiths@redhat.com>
15470 * server.h: Include build-gnulib-gbserver/config.h.
15471 * gdbreplay.c: Likewise.
15473 2012-08-08 Doug Evans <dje@google.com>
15475 * Makefile.in (SFILES): Add gdb_vecs.c.
15476 (OBS): Add gdb_vecs.o.
15477 (gdb_vecs_h, host_defs_h): New variables.
15478 (thread-db.o): Add $(gdb_vecs_h) dependency.
15479 (gdb_vecs.o): New rule.
15480 * thread-db.c: #include "gdb_vecs.h".
15481 (thread_db_load_search): Use a vector to iterate over path elements.
15482 Handle text appearing after "$pdir".
15484 * configure.ac: Add check for strstr.
15485 * config.in: Regenerate.
15486 * configure: Regenerate.
15488 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15490 * hostio.c (handle_pread): If pread fails, fall back to attempting
15492 (handle_pwrite): Likewise for pwrite.
15494 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15496 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15497 between unsupported TYPE and unimplementable ADDR/LEN combination.
15498 (arm_insert_point): Act on new return value.
15500 2012-07-31 Pedro Alves <palves@redhat.com>
15502 * server.c (process_point_options): Only skip tokens if we find
15503 one that is unrecognized. Don't treat 'X' specially while
15504 skipping unrecognized tokens.
15506 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15508 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15509 to 4-byte-align HW breakpoint addresses for Thumb.
15511 2012-07-27 Yao Qi <yao@codesourcery.com>
15515 * server.h: Declare gdb_agent_about_to_close.
15516 * target.c (kill_inferior): Include "agent.h".
15517 New. Send command 'kill'.
15518 * target.h (kill_inferior): Removed macro.
15519 * tracepoint.c (gdb_agent_about_to_close): New.
15520 (gdb_agent_helper_thread): Handle command 'close'.
15521 Wait endlessly until the inferior stops.
15522 Install gdb_agent_remove_socket to atexit hook.
15523 (agent_socket_name): New static variable.
15524 (gdb_agent_socket_init): Replace local variable 'name' with
15525 'agent_socket_name'.
15526 (gdb_agent_remove_socket): New.
15528 2012-07-27 Yao Qi <yao@codesourcery.com>
15530 * server.c (process_point_options): Stop at 'X' when parsing.
15532 2012-07-19 Michael Eager <eager@eagercon.com>
15534 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15536 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15537 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15538 hardware breakpoint.
15540 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15542 * gdbserver/linux-low.c (initialize_low): Call
15543 linux_ptrace_init_warnings.
15545 2012-07-02 Doug Evans <dje@google.com>
15547 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15550 2012-07-02 Stan Shebs <stan@codesourcery.com>
15552 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15553 (ax.o): Add it to build rule.
15555 (OBS): Add format.o.
15556 (IPA_OBS): Add format.o.
15557 * server.c (handle_query): Claim support for breakpoint commands.
15558 (process_point_options): Add command case.
15559 (process_serial_event): Leave running if there are printfs in
15561 * mem-break.h (any_persistent_commands): Declare.
15562 (add_breakpoint_commands): Declare.
15563 (gdb_no_commands_at_breakpoint): Declare.
15564 (run_breakpoint_commands): Declare.
15565 * mem-break.c (struct point_command_list): New struct.
15566 (struct breakpoint): New field command_list.
15567 (any_persistent_commands): New function.
15568 (add_commands_to_breakpoint): New function.
15569 (add_breakpoint_commands): New function.
15570 (gdb_no_commands_at_breakpoint): New function.
15571 (run_breakpoint_commands): New function.
15572 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15574 * ax.c: Include format.h.
15575 (ax_printf): New function.
15576 (gdb_eval_agent_expr): Add printf opcode.
15578 2012-06-13 Yao Qi <yao@codesourcery.com>
15580 * server.c (start_inferior): Remove duplicated writes to fields
15581 'last_resume_kind' and 'last_status' of 'current_inferior'.
15583 2012-06-12 Yao Qi <yao@codesourcery.com>
15584 Pedro Alves <palves@redhat.com>
15586 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15588 * server.c (handle_v_cont): Extend comment.
15590 2012-06-11 Yao Qi <yao@codesourcery.com>
15592 * linux-low.c (linux_attach): Add 'static'.
15594 2012-06-06 Yao Qi <yao@codesourcery.com>
15596 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15598 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15600 Fix gcc -flto compilation warning.
15601 * server.c (main): Make variable multi_mode and attach volatile.
15603 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15605 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15606 if the platform doesn't know about it.
15608 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15610 * Makefile.in (SFILES): Add linux-tile-low.c.
15611 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15612 * configure.srv: Handle tilegx-*-linux*.
15613 * linux-tile-low.c: New file.
15615 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15617 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15619 2012-05-24 Pedro Alves <palves@redhat.com>
15623 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15625 2012-05-24 Pedro Alves <palves@redhat.com>
15629 Replace target_signal with gdb_signal throughout.
15631 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15633 * linux-low.c (linux_store_registers): Avoid the copying sequence
15634 when no data has been retrieved by ptrace.
15636 2012-05-22 Will Deacon <will.deacon@arm.com>
15638 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15639 Include asm/ptrace.h.
15640 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15643 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15645 * linux-low.c (linux_store_registers): Don't re-retrieve data
15646 with ptrace that has already been obtained from /proc. Always
15647 copy any data retrieved with ptrace to the buffer supplied.
15649 2012-05-11 Yao Qi <yao@codesourcery.com>
15650 Pedro Alves <palves@redhat.com>
15652 * linux-low.c (enum stopping_threads_kind): New.
15653 (stopping_threads): Change type to `enum stopping_threads_kind'.
15654 (handle_extended_wait): If stopping and suspending threads, leave
15655 the new_lwp suspended too.
15656 (linux_wait_for_event): Adjust.
15657 (stop_all_lwps): Set `stopping_threads' to
15658 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15659 whether we're suspending threads or just stopping them. Assert no
15662 2012-04-29 Yao Qi <yao@codesourcery.com>
15664 * server.h: Move some code to ...
15665 * gdbthread.h: ... here. New.
15666 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15667 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15668 (nto-low.o, win32-low.o): Likewise.
15669 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15670 * regcache.c, remote-utils.c, server.c: Likewise.
15671 * target.c, tracepoint.c, win32-low.c: Likewise.
15673 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15675 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15676 (PTRACE_ARG4_TYPE): Likewise.
15677 (PTRACE_XFER_TYPE): Likewise.
15678 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15679 ptrace to PTRACE_ARG3_TYPE.
15680 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15681 (PTRACE_ARG4_TYPE): Likewise.
15682 (PTRACE_XFER_TYPE): Likewise.
15683 (linux_detach_one_lwp): Cast fourth argument of
15684 ptrace to long then PTRACE_ARG4_TYPE.
15685 (regsets_fetch_inferior_registers): Cast third argument of
15686 ptrace to long then PTRACE_ARG3_TYPE.
15687 (regsets_store_inferior_registers): Likewise.
15689 2012-04-20 Pedro Alves <palves@redhat.com>
15691 * configure: Regenerate.
15693 2012-04-19 Pedro Alves <palves@redhat.com>
15695 * Makefile.in (GNULIB_BUILDDIR): New.
15696 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15697 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15698 (all, install-only, uninstall, clean-info, all-lib, clean): No
15699 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15700 (maintainer-clean realclean distclean): Use subdir_do.
15702 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15703 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15704 * acinclude.m4: Include acx_configure_dir.m4.
15705 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15706 calls. Call AC_PROG_RANLIB. Configure gnulib using
15709 (GNULIB_STDINT_H): Adjust.
15710 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15711 * gdbreplay.c: Include build-gnulib/config.h.
15712 * server.h: Likewise.
15713 * aclocal.m4: Regenerate.
15714 * config.in: Regenerate.
15715 * configure: Regenerate.
15717 2012-04-19 Pedro Alves <palves@redhat.com>
15719 * Makefile.in (LIBGNU, INCGNU): Adjust.
15720 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15721 (all, install-only, uninstall, clean-info, all-lib, clean)
15722 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15723 * configure.ac: Adjust AC_OUTPUT output.
15724 * aclocal.m4: Regenerate.
15725 * configure: Regenerate.
15727 2012-04-19 Pedro Alves <palves@redhat.com>
15729 * Makefile.in (generated_files): New.
15730 (server_h): Remove the explicit dependency on config.h, and depend
15731 on $generated_files.
15733 2012-04-19 Pedro Alves <palves@redhat.com>
15735 * Makefile.in (INCGNU): Add -Ignulib.
15737 2012-04-19 Pedro Alves <palves@redhat.com>
15739 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15740 (INCGNU): ... this, and spell out -I here.
15741 (GNULIB_LIB): Rename to ...
15742 (LIBGNU): ... this.
15743 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15745 2012-04-19 Pedro Alves <palves@redhat.com>
15747 * config.in: Regenerate.
15749 2012-04-19 Pedro Alves <palves@redhat.com>
15751 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15752 * server.h (memmem): Remove declaration.
15753 * config.in: Regenerate.
15754 * configure: Regenerate.
15756 2012-04-19 Yao Qi <yao@codesourcery.com>
15758 * Makefile.in (SFILES): Add common/vec.c.
15762 2012-04-19 Yao Qi <yao@codesourcery.com>
15764 * remote-utils.c (prepare_resume_reply): Replace with macro
15765 target_core_of_thread.
15766 * server.c (handle_qxfer_threads_proper): Likewise.
15767 * target.h (traget_core_of_thread): New macro.
15769 2012-04-18 Pedro Alves <palves@redhat.com>
15771 * aclocal.m4: Regenerate.
15772 * configure: Regenerate.
15774 2012-04-16 Yao Qi <yao@codesourcery.com>
15776 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15777 duplicated on address.
15779 2012-04-16 Yao Qi <yao@codesourcery.com>
15781 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15782 (struct tracepoint_action_ops) <send>: New field.
15783 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15784 (agent_expr_send, x_tracepoint_action_send): New.
15785 (l_tracepoint_action_send): New.
15786 (cmd_qtdp): Download and install tracepoint
15787 according to `use_agent'.
15788 (run_inferior_command): Add one more parameter `len'.
15790 (tracepoint_send_agent): New.
15791 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15793 2012-04-16 Yao Qi <yao@codesourcery.com>
15795 * tracepoint.c (download_tracepoints): Moved to ...
15796 (cmd_qtstart): ... here.
15798 2012-04-14 Yao Qi <yao@codesourcery.com>
15800 * tracepoint.c: Include inttypes.h.
15801 (struct collect_memory_action): Use sized types.
15802 (struct tracepoint): Likewise.
15803 (cmd_qtdp, stop_tracing): Update print specifiers.
15804 (cmd_qtp, response_tracepoint): Likewise.
15805 (collect_data_at_tracepoint): Likewise.
15806 (collect_data_at_step): Likewise.
15808 2012-04-14 Yao Qi <yao@codesourcery.com>
15810 Import gnulib module inttypes.
15811 * aclocal.m4, config.in, configure: Regenerated.
15813 2012-04-14 Yao Qi <yao@codesourcery.com>
15815 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15816 Makefile and config.status at last.
15818 2012-04-13 Yao Qi <yao@codesourcery.com>
15820 * tracepoint.c: Include stdint.h unconditionally.
15822 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15824 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15825 on BFD_HAVE_SYS_PROCFS_TYPE.
15826 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15827 * configure: Regenerate.
15828 * config.in: Likewise.
15830 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15832 * Makefile.in (clean): Also remove x32.c x32-linux.c
15833 x32-avx.c x32-avx-linux.c.
15834 (x32.o): New target.
15836 (x32-linux.o): Likewise.
15837 (x32-linux.c): Likewise.
15838 (x32-avx.o): Likewise.
15839 (x32-avx.c): Likewise.
15840 (x32-avx-linux.o): Likewise.
15841 (x32-avx-linux.c): Likewise.
15843 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15844 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15845 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15846 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15847 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15848 i386/x32-avx-linux.xml.
15850 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15851 (init_registers_x32_avx_linux): Likwise.
15852 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15853 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15855 2012-04-13 Pedro Alves <palves@redhat.com>
15857 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15858 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15859 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15860 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15863 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15865 * linux-x86-low.c (compat_x32_clock_t): New.
15866 (compat_x32_siginfo_t): Likewise.
15867 (compat_x32_siginfo_from_siginfo): Likewise.
15868 (siginfo_from_compat_x32_siginfo): Likewise.
15869 (linux_is_elf64): Likewise.
15870 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15871 and siginfo_from_compat_x32_siginfo for x32.
15872 (x86_arch_setup): Set linux_is_elf64.
15874 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15877 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15879 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15880 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15881 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15882 compatible with process.
15884 2012-04-12 Yao Qi <yao@codesourcery.com>
15886 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15887 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15888 (install-only, install-info, clean): Handle sub dir gnulib.
15889 (all-lib, am--refresh): New targets.
15890 (memmem.o): Remove target.
15891 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15892 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15893 (AC_REPLACE_FUNCS): Remove memmem.
15894 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15895 (AC_OUTPUT): Generate Makefile in gnulib/.
15896 * aclocal.m4, config.in, configure: Regenerated.
15898 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15900 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15902 2012-04-05 Pedro Alves <palves@redhat.com>
15904 -Werror=strict-aliasing
15906 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15909 2012-04-04 Pedro Alves <palves@redhat.com>
15911 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15912 (sparc_store_gregset_from_stack, sparc_store_gregset)
15913 (sparc_breakpoint_at): Fix formatting.
15915 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15917 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15919 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15920 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15921 * config.in: Regenerate.
15922 * configure: Likewise.
15924 2012-03-29 Pedro Alves <palves@redhat.com>
15926 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15927 Correct ptrace arguments.
15929 2012-03-28 Pedro Alves <palves@redhat.com>
15931 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15932 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15933 (IA64_FR1_REGNUM): New defines.
15934 (ia64_fetch_register): New.
15935 (the_low_target): Install it.
15936 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15938 * linux-low.c (linux_fetch_registers): Try the
15939 the_low_target.fetch_register hook first.
15941 * linux-arm-low.c (the_low_target): Adjust.
15942 * linux-bfin-low.c (the_low_target): Adjust.
15943 * linux-cris-low.c (the_low_target): Adjust.
15944 * linux-crisv32-low.c (the_low_target): Adjust.
15945 * linux-m32r-low.c (the_low_target): Adjust.
15946 * linux-m68k-low.c (the_low_target): Adjust.
15947 * linux-mips-low.c (the_low_target): Adjust.
15948 * linux-ppc-low.c (the_low_target): Adjust.
15949 * linux-s390-low.c (the_low_target): Adjust.
15950 * linux-sh-low.c (the_low_target): Adjust.
15951 * linux-sparc-low.c (the_low_target): Adjust.
15952 * linux-tic6x-low.c (the_low_target): Adjust.
15953 * linux-x86-low.c (the_low_target): Adjust.
15954 * linux-xtensa-low.c (the_low_target): Adjust.
15956 2012-03-26 Pedro Alves <palves@redhat.com>
15958 * server.c (handle_qxfer_libraries): Don't bail early if
15959 the_target->qxfer_libraries_svr4 is not NULL.
15961 2012-03-26 Pedro Alves <palves@redhat.com>
15963 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15965 2012-03-23 Pedro Alves <palves@redhat.com>
15967 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15968 "library-list-svr4" element's start tag when the the DSO list is
15971 2012-03-23 Pedro Alves <palves@redhat.com>
15973 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15974 a variable whose type size is the same as the inferior's pointer
15977 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15979 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15981 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15982 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15983 * linux-low.h: Include <signal.h>.
15984 (struct siginfo): Remove forward declaration.
15985 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15988 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15990 * .gitignore: Ignore more files.
15992 2012-03-19 Pedro Alves <palves@redhat.com>
15993 Jan Kratochvil <jan.kratochvil@redhat.com>
15995 * server.c (cont_thread, general_thread): Add describing comments.
15996 (start_inferior): Clear `cont_thread'.
15997 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16000 2012-03-15 Yao Qi <yao@codesourcery.com>
16002 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16004 (cmd_qtdp): ... here.
16006 2012-03-15 Yao Qi <yao@codesourcery.com>
16008 * tracepoint.c (struct tracepoint_action_ops): New.
16009 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16010 (m_tracepoint_action_download): New.
16011 (r_tracepoint_action_download): New.
16012 (x_tracepoint_action_download): New.
16013 (l_tracepoint_action_download): New.
16014 (add_tracepoint_action): Install `action->ops' according type.
16015 (download_tracepoint_1): Move code `download' function pointer
16016 of various tracepoint_action_ops.
16018 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16020 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16021 linux_ptrace_attach_warnings.
16023 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16025 * Makefile.in (linux-ptrace.o): New.
16026 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16027 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16028 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16029 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16030 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16032 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16034 2012-03-08 Yao Qi <yao@codesourcery.com>
16035 Pedro Alves <palves@redhat.com>
16037 Fix PR server/13392.
16038 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16039 offset of JMP insn.
16040 * tracepoint.c (remove_tracepoint): New.
16041 (cmd_qtdp): Call remove_tracepoint when failed to install.
16043 2012-03-07 Pedro Alves <palves@redhat.com>
16045 * linux-low.c (get_detach_signal): New.
16046 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16047 Pass on pending signals to PTRACE_DETACH. Check the result of the
16049 * server.c (program_signals, program_signals_p): New.
16050 (handle_general_set): Handle QProgramSignals.
16051 * server.h (program_signals, program_signals_p): Declare.
16053 2012-03-05 Pedro Alves <palves@redhat.com>
16054 Jan Kratochvil <jan.kratochvil@redhat.com>
16056 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16059 2012-03-03 Yao Qi <yao@codesourcery.com>
16061 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16062 agent_look_up_symbols.
16064 2012-03-03 Yao Qi <yao@codesourcery.com>
16066 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16067 (linux-x86-low.o): Likewise.
16068 * server.h: Remove in_process_agent_loaded.
16069 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16073 2012-03-03 Yao Qi <yao@codesourcery.com>
16075 * tracepoint.c (gdb_agent_capability): New global.
16076 (in_process_agent_loaded_ust): Renamed to
16077 `in_process_agent_supports_ust'.
16079 (in_process_agent_supports_ust): Call agent_capability_check.
16080 (clear_installed_tracepoints): Assert that agent supports
16083 2012-03-03 Yao Qi <yao@codesourcery.com>
16085 * linux-low.c (linux_supports_agent): New.
16086 (linux_target_ops): Initialize field `supports_agent' with
16087 linux_supports_agent.
16088 * target.h (struct target_ops) <supports_agent>: New.
16089 (target_supports_agent): New macro.
16090 * server.c (handle_general_set): Handle packet 'QAgent'.
16091 (handle_query): Send `QAgent+'.
16092 * Makefile.in (server.o): Depends on agent.h.
16094 2012-03-03 Yao Qi <yao@codesourcery.com>
16096 * Makefile.in (OBS): Add agent.o.
16097 Add new rule for agent.o.
16098 Track dependence of tracepoint.c on agent.h.
16099 * tracepoint.c (run_inferior_command_1):
16100 (run_inferior_command): Call agent_run_command.
16101 (gdb_ust_connect_sync_socket): Deleted. Move it to
16103 (resume_thread, stop_thread): Likewise.
16104 (gdb_ust_socket_init): Renamed to ...
16105 (gdb_agent_socket_init): ... New.
16106 (gdb_ust_thread): Renamed to ...
16107 (gdb_agent_helper_thread): ... New.
16108 (gdb_ust_init): Move some code to ...
16109 (gdb_agent_init): ... here. New.
16110 [HAVE_UST]: Call gdb_ust_init.
16111 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16112 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16113 * config.in, configure: Regenerated.
16115 2012-03-02 Pedro Alves <palves@redhat.com>
16117 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16118 * linux-low.c (struct simple_pid_list): New.
16119 (stopped_pids): New a struct simple_pid_list pointer.
16120 (add_to_pid_list, pull_pid_from_list): New.
16121 (handle_extended_wait): Don't assume the first signal new children
16122 report is SIGSTOP. Adjust call to pull_pid_from_list.
16123 (linux_wait_for_lwp): Adjust.
16125 2012-03-02 Yao Qi <yao@codesourcery.com>
16127 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16130 2012-03-02 Yao Qi <yao@codesourcery.com>
16132 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16133 `stop_pc' and `tpoint'. Update caller.
16135 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16137 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16138 * linux-low.c (use_linux_regsets): New macro.
16139 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16140 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16141 (linux_register_in_regsets): New function.
16142 (usr_fetch_inferior_registers): Skip registers covered by
16144 (usr_store_inferior_registers): Likewise.
16145 (usr_fetch_inferior_registers): New macro.
16146 (usr_store_inferior_registers): Likewise.
16147 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16148 (linux_store_registers): Likewise.
16149 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16151 (init_registers_mips64_dsp_linux): Likewise.
16152 (init_registers_mips_linux): New macro.
16153 (init_registers_mips_dsp_linux): Likewise.
16154 (mips_dsp_num_regs): Likewise.
16155 (DSP_BASE, DSP_CONTROL): New fallback macros.
16156 (mips_base_regs): New macro.
16157 (mips_regmap): Use it. Fix the size.
16158 (mips_dsp_regmap): New variable.
16159 (mips_dsp_regset_bitmap): Likewise.
16160 (mips_arch_setup): New function.
16161 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16163 (mips_cannot_store_register): Likewise.
16164 (the_low_target): Update .arch_setup, .num_regs and .regmap
16165 initializers. Add .regset_bitmap initializer.
16166 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16168 * linux-bfin-low.c (the_low_target): Likewise.
16169 * linux-cris-low.c (the_low_target): Likewise.
16170 * linux-crisv32-low.c (the_low_target): Likewise.
16171 * linux-ia64-low.c (the_low_target): Likewise.
16172 * linux-m32r-low.c (the_low_target): Likewise.
16173 * linux-m68k-low.c (the_low_target): Likewise.
16174 * linux-ppc-low.c (the_low_target): Likewise.
16175 * linux-s390-low.c (the_low_target): Likewise.
16176 * linux-sh-low.c (the_low_target): Likewise.
16177 * linux-sparc-low.c (the_low_target): Likewise.
16178 * linux-tic6x-low.c (the_low_target): Likewise.
16179 * linux-x86-low.c (the_low_target): Likewise.
16180 * linux-xtensa-low.c (the_low_target): Likewise.
16181 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16182 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16183 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16185 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16186 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16188 2012-02-29 Yao Qi <yao@codesourcery.com>
16189 Pedro Alves <palves@redhat.com>
16191 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16192 `step_over_finished' is true.
16194 2012-02-27 Pedro Alves <palves@redhat.com>
16196 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16197 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16199 2012-02-27 Pedro Alves <palves@redhat.com>
16202 * linux-low.c (pid_is_stopped): New.
16203 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16205 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16207 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16210 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16212 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16214 2012-02-24 Luis Machado <lgustavo@codesourcery>
16216 * server.c (handle_query): Advertise support for target-side
16217 breakpoint condition evaluation.
16218 (process_point_options): New function.
16219 (process_serial_event): When inserting a breakpoint, check for
16220 a target-side condition that should be evaluated.
16222 * mem-break.c: Include regcache.h and ax.h.
16223 (point_cond_list_t): New data structure.
16224 (breakpoint) <cond_list>: New field.
16225 (find_gdb_breakpoint_at): Make non-static.
16226 (delete_gdb_breakpoint_at): Clear any target-side
16228 (clear_gdb_breakpoint_conditions): New function.
16229 (add_condition_to_breakpoint): Likewise.
16230 (add_breakpoint_condition): Likewise.
16231 (gdb_condition_true_at_breakpoint): Likewise.
16232 (gdb_breakpoint_here): Return result directly instead
16233 of going through a local variable.
16235 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16236 (clear_gdb_breakpoint_conditions): Likewise.
16237 (add_breakpoint_condition): Likewise.
16238 (gdb_condition_true_at_breakpoint): Likewise.
16240 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16241 (need_step_over_p): Take target-side breakpoint condition into
16244 2012-02-24 Luis Machado <lgustavo@codesourcery>
16246 * server.h: Include tracepoint.h.
16247 (agent_mem_read, agent_get_trace_state_variable_value,
16248 agent_set_trace_state_variable_value,
16249 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16250 get_set_tsv_func_addr): New prototypes.
16252 * ax.h: New include file.
16253 * ax.c: New source file.
16255 * tracepoint.c: Include ax.h.
16256 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16257 agent_expr, eval_result_type): Move to ax.h.
16258 (parse_agent_expr): Rename to ...
16259 (gdb_parse_agent_expr): ... this, make it non-static and move
16261 (unparse_agent_expr) Rename to ...
16262 (gdb_unparse_agent_expr): ... this, make it non-static and move
16264 (eval_agent_expr): Rename to ...
16265 (eval_tracepoint_agent_expr): ... this.
16266 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16267 forward declarations.
16268 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16269 (agent_get_trace_state_variable_value): New function.
16270 (agent_set_trace_state_variable_value): New function.
16271 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16272 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16273 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16274 (condition_true_at_tracepoint): Likewise.
16275 (parse_agent_expr): Rename to ...
16276 (gdb_parse_agent_expr): ... this and move to ax.c.
16277 (unparse_agent_expr): Rename to ...
16278 (gdb_unparse_agent_expr): ... this and move to ax.c.
16279 (gdb_agent_op_name): Move to ax.c.
16280 (eval_agent_expr): Rename to ...
16281 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16283 (eval_tracepoint_agent_expr): New function.
16284 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16286 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16288 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16289 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16290 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16291 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16292 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16293 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16294 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16295 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16296 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16297 (compile_bytecodes): Remove forward declaration.
16298 (is_goto_target): Move to ax.c.
16299 (compile_bytecodes): Move to ax.c and call
16300 agent_get_trace_state_variable_value (...) and
16301 agent_set_trace_state_variable_value (...).
16303 * Makefile.in: Update ax.c and IPA dependencies.
16305 2012-02-24 Pedro Alves <palves@redhat.com>
16307 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16308 (cmd_bigqtbuffer_circular): ... this. Only handle
16309 'QTBuffer:circular:'.
16310 (handle_tracepoint_general_set): Adjust.
16312 2012-02-16 Yao Qi <yao@codesourcery.com>
16314 * inferiors.c: Move code to ...
16315 * dll.c: .... here. New.
16316 * server.h: Declare clear_dlls.
16317 * Makefile.in (SFILES): Add dll.c.
16321 2012-02-11 Yao Qi <yao@codesourcery.com>
16323 * server.c: (handle_monitor_command): Add a new parameter
16325 (handle_query): Update caller.
16327 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16329 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16330 * configure, config.in: Regenerate.
16331 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16334 2012-02-02 Pedro Alves <palves@redhat.com>
16336 Try SIGKILL first, then PTRACE_KILL.
16337 * linux-low.c (linux_kill_one_lwp): New.
16338 (linux_kill_one_lwp): Rename to ...
16339 (kill_one_lwp_callback): ... this. Use the new
16340 linux_kill_one_lwp.
16342 2012-02-02 Pedro Alves <palves@redhat.com>
16344 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16347 2012-01-27 Pedro Alves <palves@redhat.com>
16349 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16350 (elf_64_file_p): Make static.
16351 (linux_pid_exe_is_elf_64_file): New.
16352 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16353 Delete declarations.
16354 (linux_pid_exe_is_elf_64_file): Declare.
16355 * linux-x86-low.c (x86_arch_setup): Use
16356 linux_pid_exe_is_elf_64_file.
16358 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16360 * linux-low.c (linux_wait_for_event_1): Rename to ...
16361 (linux_wait_for_event): ... here and merge it with former
16362 linux_wait_for_event - new variable wait_ptid, use it.
16363 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16365 2012-01-23 Pedro Alves <palves@redhat.com>
16367 * server.c (main): Avoid yet another case of infinite loop while
16368 detaching/killing after a longjmp.
16370 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16373 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16375 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16377 * hostio.c (handle_readlink): New function.
16378 (handle_vFile): Call it to handle "vFile:readlink" packets.
16380 2012-01-20 Pedro Alves <palves@redhat.com>
16381 Ulrich Weigand <ulrich.weigand@linaro.org>
16383 * server.c (handle_v_requests): Only support vAttach and vRun to
16384 start multiple processes when in extended protocol mode.
16386 2012-01-17 Pedro Alves <palves@redhat.com>
16388 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16389 memalign plus mprotect to allocate the scratch buffer.
16391 2012-01-13 Pedro Alves <palves@redhat.com>
16393 * server.c (attach_inferior): Clear `cont_thread'.
16395 2012-01-13 Pedro Alves <palves@redhat.com>
16397 * server.c (main): Avoid infinite loop while detaching/killing
16400 2012-01-09 Doug Evans <dje@google.com>
16402 * server.c (start_inferior): Set last_ptid in --wrapper case.
16404 2012-01-06 Yao Qi <yao@codesourcery.com>
16406 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16408 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16410 2012-01-04 Yao Qi <yao@codesourcery.com>
16412 * tracepoint.c (cmd_qtdp): Print debug message
16413 for static tracepoint.
16415 2012-01-04 Yao Qi <yao@codesourcery.com>
16417 * tracepoint.c (trace_vdebug): Differentiate debug message
16418 between gdbserver and IPA.
16420 2012-01-03 Yao Qi <yao@codesourcery.com>
16422 * tracepoint.c (tracepoint_was_hit): Don't collect for
16425 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16427 * terminal.h: Reformat copyright header.
16429 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16431 * server.c (gdbserver_version): Update copyright year.
16432 * gdbreplay.c (gdbreplay_version): Likewise.
16434 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16436 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16439 2011-12-18 Hui Zhu <teawater@gmail.com>
16440 * linux-low.c (linux_create_inferior): Save return value to ret.
16442 2011-12-18 Hui Zhu <teawater@gmail.com>
16444 * linux-low.c (linux_create_inferior): Save return value to ret.
16446 2011-12-16 Doug Evans <dje@google.com>
16448 * linux-low.c (linux_create_inferior): If stdio connection,
16449 redirect stdin from /dev/null, stdout to stderr.
16450 * remote-utils.c (remote_is_stdio): New static global.
16451 (remote_connection_is_stdio): New function.
16452 (remote_prepare): Handle stdio connection.
16453 (remote_open): Ditto.
16454 (remote_close): Don't close stdin for stdio connections.
16455 (read_prim,write_prim): New functions. Replace all calls to
16456 read/write to these.
16457 * server.c (main): Watch for "-" argument. Move call to
16458 remote_prepare before start_inferior.
16459 * server.h (STDIO_CONNECTION_NAME): New macro.
16460 (remote_connection_is_stdio): Declare.
16462 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16463 in debugging output.
16465 2011-12-15 Yao Qi <yao@codesourcery.com>
16467 * tracepoint.c: Include sys/syscall.h.
16468 (gdb_ust_thread): Remove preprocessor conditional.
16470 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16472 * linux-low.c (linux_detach_one_lwp): Call
16473 the_low_target.prepare_to_resume before detaching.
16475 2011-12-14 Yao Qi <yao@codesourcery.com>
16477 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16480 2011-12-14 Yao Qi <yao@codesourcery.com>
16482 * i386-low.c (i386_low_stopped_data_address): Initialize local
16483 variable `control'.
16485 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16489 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16490 DR_CONTROL unless necessary. Extend comments.
16491 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16492 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16494 2011-12-13 Yao Qi <yao@codesourcery.com>
16496 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16498 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16500 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16502 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16503 Print new debug message for such case.
16505 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16507 Fix overlapping memcpy.
16508 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16509 the read_inferior_memory transfer.
16510 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16511 write_inferior_memory transfer.
16512 (set_fast_tracepoint_jump): New variable buf. Use it for the
16513 read_inferior_memory and write_inferior_memory transfers.
16514 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16515 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16516 Use it for the write_inferior_memory transfer.
16517 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16520 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16522 * linux-low.c (fetch_register, store_register): Make code
16523 consistent, fix formatting.
16525 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16527 * linux-low.c (usr_store_inferior_registers): Factor out code
16528 to handle individual registers into...
16529 (store_register): ... this new function.
16531 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16533 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16534 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16535 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16536 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16537 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16538 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16539 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16540 (srv_xmlfiles): Add new XML files.
16542 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16544 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16545 (init_registers_s390_linux32v1): Add prototype.
16546 (init_registers_s390_linux32v2): Likewise.
16547 (init_registers_s390_linux64v1): Likewise.
16548 (init_registers_s390_linux64v2): Likewise.
16549 (init_registers_s390x_linux64v1): Likewise.
16550 (init_registers_s390x_linux64v2): Likewise.
16551 (s390_num_regs): Increment to 52.
16552 (s390_regmap): Add orig_r2 register.
16553 (s390_num_regs_3264): Increment to 68.
16554 (s390_regmap_3264): Add orig_r2 register.
16555 (s390_collect_ptrace_register): Handle orig_r2 register.
16556 (s390_supply_ptrace_register): Likewise.
16557 (s390_fill_last_break): New function.
16558 (s390_store_last_break): Likewise.
16559 (s390_fill_system_call): New function.
16560 (s390_store_system_call): Likewise.
16561 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16563 (s390_check_regset): New function.
16564 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16565 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16566 Update target_regsets for available register sets.
16568 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16569 Jan Kratochvil <jan.kratochvil@redhat.com>
16571 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16572 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16574 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16575 * linux-low.h (struct process_info_private): New member r_debug.
16576 * server.c (handle_qxfer_libraries): Call
16577 the_target->qxfer_libraries_svr4.
16578 (handle_qxfer_libraries_svr4): New function.
16579 (qxfer_packets): New entry "libraries-svr4".
16580 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16581 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16582 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16583 PACKET_qXfer_libraries_svr4.
16585 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16587 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16588 PSW address/mask between 8-byte and 16-byte formats.
16589 (s390_supply_ptrace_register): Likewise.
16590 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16591 basic addressing mode bit.
16593 2011-11-24 Stan Shebs <stan@codesourcery.com>
16595 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16597 2011-11-17 Stan Shebs <stan@codesourcery.com>
16599 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16600 (tracing_start_time): New global.
16601 (tracing_stop_time): New global.
16602 (tracing_user_name): New global.
16603 (tracing_notes): New global.
16604 (tracing_stop_note): New global.
16605 (cmd_qtstart): Set traceframe_usage, start_time.
16606 (stop_tracing): Set stop_time.
16607 (cmd_qtstatus): Report additional status.
16608 (cmd_qtp): New function.
16609 (handle_tracepoint_query): Call it.
16610 (cmd_qtnotes): New function.
16611 (handle_tracepoint_general_set): Call it.
16612 (get_timestamp): Rename from tsv_get_timestamp.
16614 2011-11-14 Stan Shebs <stan@codesourcery.com>
16615 Kwok Cheung Yeung <kcy@codesourcery.com>
16617 * linux-x86-low.c (small_jump_insn): New.
16618 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16619 trampoline and error message, build a trampoline and issue a small
16620 jump instruction to it.
16621 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16622 trampoline and error message.
16623 (x86_get_min_fast_tracepoint_insn_len): New.
16624 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16625 * linux-low.h (struct linux_target_ops): Add arguments to
16626 install_fast_tracepoint_jump_pad operation, add new operation.
16627 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16629 (linux_get_min_fast_tracepoint_insn_len): New function.
16630 (linux_target_op): Add new operation.
16631 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16632 (gdb_trampoline_buffer_end): Ditto.
16633 (gdb_trampoline_buffer_error): Ditto.
16634 (struct ipa_sym_addresses): Add fields for new IPA variables.
16635 (symbol_list): Add entries for new IPA variables.
16636 (struct tracepoint): Add fields to hold the address range of the
16637 trampoline used by the tracepoint.
16638 (trampoline_buffer_head): New static variable.
16639 (trampoline_buffer_tail): Ditto.
16640 (claim_trampoline_space): New function.
16641 (have_fast_tracepoint_trampoline_buffer): New function.
16642 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16644 (install_fast_tracepoint): Ditto, also add error buffer argument.
16645 (cmd_qtminftpilen): New function.
16646 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16647 (fast_tracepoint_from_trampoline_address): New function.
16648 (fast_tracepoint_collecting): Handle trampoline as part of jump
16650 (set_trampoline_buffer_space): New function.
16651 (initialize_tracepoint): Initialize new IPA variables.
16652 * target.h (struct target_ops): Add arguments to
16653 install_fast_tracepoint_jump_pad operation, add new
16654 get_min_fast_tracepoint_insn_len operation.
16655 (target_get_min_fast_tracepoint_insn_len): New.
16656 (install_fast_tracepoint_jump_pad): Add arguments.
16657 * server.h (IPA_BUFSIZ): Define.
16658 * linux-i386-ipa.c: Include extra header files.
16659 (initialize_fast_tracepoint_trampoline_buffer): New function.
16660 (initialize_low_tracepoint): Call it.
16661 * server.h (set_trampoline_buffer_space): Declare.
16662 (claim_trampoline_space): Ditto.
16663 (have_fast_tracepoint_trampoline_buffer): Ditto.
16665 2011-11-14 Yao Qi <yao@codesourcery.com>
16667 * server.c (handle_query): Handle InstallInTrace for qSupported.
16668 * tracepoint.c (add_tracepoint): Sort list.
16669 (install_tracepoint, download_tracepoint): New.
16670 (cmd_qtdp): Call them to install and download tracepoints.
16671 (sort_tracepoints): Removed.
16672 (cmd_qtstart): Update.
16674 2011-11-14 Yao Qi <yao@codesourcery.com>
16676 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16677 * mem-break.h: Declare.
16678 * tracepoint.c (cmd_qtstart): Move some code to ...
16679 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16681 (download_tracepoints): Move some code to ...
16682 (download_tracepoint_1): ... here. New.
16684 2011-11-08 Yao Qi <yao@codesourcery.com>
16686 * remote-utils.c (relocate_instruction): A comment fix.
16688 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16690 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16691 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16692 dr_status_mirror and dr_control_mirror from debug_reg_state.
16693 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16694 (i386_initial_stuff): Remove use of deleted globals.
16695 (i386_get_thread_context, i386_set_thread_context,
16696 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16697 from debug_reg_state.
16699 2011-11-05 Yao Qi <yao@codesourcery.com>
16701 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16702 address as TPOINT's.
16704 2011-11-02 Stan Shebs <stan@codesourcery.com>
16706 * tracepoint.c (agent_mem_read_string): New function.
16707 (eval_agent_expr): Call it for tracenz.
16708 * server.c (handle_query): Report support for tracenz.
16710 2011-11-02 Yao Qi <yao@codesourcery.com>
16712 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16714 2011-11-02 Yao Qi <yao@codesourcery.com>
16716 * target.h: Fix a typo in comment.
16718 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16720 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16721 clobber the breakpoints' shadows with fast tracepoint jumps.
16722 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16723 * target.c (write_inferior_memory): Also pass MYADDR down to
16726 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16728 * configure.ac: Check support for personality routine.
16729 * configure: Regenerate.
16730 * config.in: Likewise.
16731 * linux-low.c: Include <sys/personality.h>.
16732 Define ADDR_NO_RANDOMIZE if necessary.
16733 (linux_create_inferior): Disable address space randomization when
16734 forking inferior, if requested.
16735 (linux_supports_disable_randomization): New function.
16736 (linux_target_ops): Install it.
16737 * server.h (disable_randomization): Declare.
16738 * server.c (disable_randomization): New global variable.
16739 (handle_general_set): Handle QDisableRandomization.
16740 (handle_query): Likewise for qSupported.
16741 (main): Support --disable-randomization and --no-disable-randomization
16742 command line arguments.
16743 * target.h (struct target_ops): Add supports_disable_randomization.
16744 (target_supports_disable_randomization): New macro.
16746 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16748 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16750 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16751 [!PT_GETDSBT] (target_loadmap): New definition.
16752 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16753 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16754 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16755 and PT_GETDSBT to LINUX_LOADMAP.
16756 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16757 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16759 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16761 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16762 (arm_linux_hwbp_cap): New static variable.
16763 (arm_linux_get_hwbp_cap): Replace by ...
16764 (arm_linux_init_hwbp_cap): ... this new function.
16765 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16766 (arm_linux_get_hw_watchpoint_count): Likewise.
16767 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16768 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16769 (arm_prepare_to_resume): Use perror_with_name instead of error.
16771 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16773 * linux-arm-low.c: Include <signal.h>.
16774 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16775 (struct arm_linux_hwbp_cap): New data type.
16776 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16777 (struct arm_linux_hw_breakpoint): New data type.
16778 (MAX_BPTS, MAX_WPTS): Define.
16779 (struct arch_process_info, struct arch_lwp_info): New data types.
16780 (arm_linux_get_hwbp_cap): New function.
16781 (arm_linux_get_hw_breakpoint_count): Likewise.
16782 (arm_linux_get_hw_watchpoint_count): Likewise.
16783 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16784 (arm_hwbp_control_initialize): Likewise.
16785 (arm_hwbp_control_is_enabled): Likewise.
16786 (arm_hwbp_control_is_initialized): Likewise.
16787 (arm_hwbp_control_disable): Likewise.
16788 (arm_linux_hw_breakpoint_equal): Likewise.
16789 (arm_linux_hw_point_initialize): Likewise.
16790 (struct update_registers_data): New data structure.
16791 (update_registers_callback: New function.
16792 (arm_insert_point): Likewise.
16793 (arm_remove_point): Likewise.
16794 (arm_stopped_by_watchpoint): Likewise.
16795 (arm_stopped_data_address): Likewise.
16796 (arm_new_process): Likewise.
16797 (arm_new_thread): Likewise.
16798 (arm_prepare_to_resume): Likewise.
16799 (the_low_target): Register arm_insert_point, arm_remove_point,
16800 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16801 arm_new_thread, and arm_prepare_to_resume.
16803 2011-09-15 Stan Shebs <stan@codesourcery.com>
16805 * server.h (struct emit_ops): Add compare-goto fields.
16806 * tracepoint.c (gdb_agent_op_sizes): New table.
16807 (emit_eq_goto): New function.
16808 (emit_ne_goto): New function.
16809 (emit_lt_goto): New function.
16810 (emit_le_goto): New function.
16811 (emit_gt_goto): New function.
16812 (emit_ge_goto): New function.
16813 (is_goto_target): New function.
16814 (compile_bytecodes): Recognize special cases of compare-goto
16815 combinations and call specialized emitters for them.
16816 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16817 (amd64_emit_ne_goto): New function.
16818 (amd64_emit_lt_goto): New function.
16819 (amd64_emit_le_goto): New function.
16820 (amd64_emit_gt_goto): New function.
16821 (amd64_emit_ge_goto): New function.
16822 (amd64_emit_ops): Add the new functions.
16823 (i386_emit_eq_goto): New function.
16824 (i386_emit_ne_goto): New function.
16825 (i386_emit_lt_goto): New function.
16826 (i386_emit_le_goto): New function.
16827 (i386_emit_gt_goto): New function.
16828 (i386_emit_ge_goto): New function.
16829 (i386_emit_ops): Add the new functions.
16831 2011-09-08 Stan Shebs <stan@codesourcery.com>
16833 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16834 (i386_emit_epilogue): Restore %ebx.
16836 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16838 * server.c (step_thread): Remove definition.
16839 (process_serial_event): Don't handle Hs.
16840 * server.h (step_thread): Remove declaration.
16841 * target.c (set_desired_inferior): Remove use of step_thread.
16843 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16845 * linux-low.c: Include linux-procfs.h.
16846 (linux_attach_lwp_1): Update comments.
16847 (linux_attach): Scan for existing threads when attaching to a
16848 process that is the tgid.
16849 * Makefile.in: Update dependencies.
16851 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16853 * configure.srv: Add linux-procfs.o dependencies.
16855 2011-08-14 Yao Qi <yao@codesourcery.com>
16857 * target.h (struct target_ops): Fix indent.
16858 * win32-low.c (win32_target_ops): Fix comment.
16860 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16861 Yao Qi <yao@codesourcery.com>
16863 * Makefile.in (clean): Remove tic6x-*.c files.
16864 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16865 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16866 (tic6x-c64xp-linux.c): Likewise.
16867 * configure.srv: Add support for tic6x-*-uclinux.
16868 * linux-tic6x-low.c: New.
16869 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16871 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16872 Yao Qi <yao@codesourcery.com>
16874 * target.h (struct target_ops): Add read_loadmap.
16875 * linux-low.c (struct target_loadseg): New type.
16876 (struct target_loadmap): New type.
16877 (linux_read_loadmap): New function.
16878 (linux_target_ops): Add linux_read_loadmap.
16879 * server.c (handle_query): Support qXfer:fdpic:read packet.
16880 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16883 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16885 * win32-low.c: Include <stdint.h>.
16887 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16889 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16890 to the inferior here.
16891 (i386_remove_aligned_watchpoint): Ditto.
16892 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16893 fit part of the watchpoint in the debug registers.
16894 (i386_update_inferior_debug_regs): New.
16895 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16896 registers, and only update the inferior on success.
16897 (i386_low_remove_watchpoint): Ditto.
16899 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16901 * linux-low.c (compare_ints, unique, list_threads, show_process,
16902 linux_core_of_thread): Delete.
16903 (linux_target_ops): Change linux_core_of_thread to
16904 linux_common_core_of_thread.
16905 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16906 * utils.c (malloc_failure): Change type of argument.
16907 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16908 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16909 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16910 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16911 (IPA_OBJS): Add common-utils-ipa.o.
16912 (ptid_h, linux_osdata_h): New macros.
16913 (server_h): Add common/common-utils.h, common/xml-utils.h,
16914 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16916 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16917 ptid.o, buffer.o): New rules.
16918 (linux-low.o): Add common/linux-osdata.h as a dependency.
16919 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16920 * configure.ac: Add AC_HEADER_DIRENT check.
16921 * config.in: Regenerate.
16922 * configure: Regenerate.
16923 * remote-utils.c (xml_escape_text): Delete.
16924 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16925 buffer_xml_printf): Move to common/buffer.c.
16926 * server.c (main): Remove call to initialize_inferiors.
16927 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16928 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16929 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16930 internal_error, gdb_assert, gdb_assert_fail): Delete.
16931 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16932 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16934 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16935 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16936 initialize_inferiors): Delete.
16938 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16940 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16943 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16945 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16947 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16949 2011-05-26 Yao Qi <yao@codesourcery.com>
16951 * Makefile.in (thread-db.o): Track dependence to
16952 common/gdb_thread_db.h.
16953 * thread-db.c: include gdb_thread_db.h from right place.
16955 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16957 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16958 __FILE__ and __LINE__ to internal_error.
16960 2011-05-13 Doug Evans <dje@google.com>
16962 * thread-db.c (try_thread_db_load_from_sdir): New function.
16963 (try_thread_db_load_from_dir): New function.
16964 (thread_db_load_search): Handle $sdir, ignore $pdir.
16965 Remove trying of system directories if search of
16966 libthread-db-search-path fails, that is now done via $sdir.
16968 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16970 * server.c (handle_query): Add EnableDisableTracepoints to the list
16971 of supported features.
16972 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16974 (cmd_qtenable_disable): New.
16975 (cmd_qtstart): Install tracepoints even if disabled.
16976 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16977 receiving a QTEnable or QTDisable packet.
16978 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16979 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16981 (gdb_probe): Skip data collection if static tracepoint is disabled.
16983 2011-05-10 Doug Evans <dje@google.com>
16985 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16987 2011-05-04 Doug Evans <dje@google.com>
16989 * linux-low.c (linux_join): Skip process lookup.
16990 * spu-low.c (spu_join): Ditto.
16991 * server.c (join_inferiors_callback): Delete.
16992 (process_serial_event): For 'D' packet (detach) call join_inferior
16995 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16997 * README: Don't mention xscale*-*-linux*.
16998 * configure.srv (xscale*-*-linux*): Don't handle target.
17000 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17002 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17004 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17005 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17006 (i386_emit_void_call_2): Likewise.
17008 2011-04-26 Yao Qi <yao@codesourcery.com>
17010 * linux-low.c: Move common macros to linux-ptrace.h.
17011 Include linux-ptrace.h.
17012 * Makefile.in (linux_ptrace_h): New.
17013 (linux-low.o): Depends on linux-ptrace.h.
17015 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17017 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17018 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17019 (remote_prepare): New function with most of the TCP code from ...
17020 (remote_open): ... here. Detect PORT here unconditionally. Move also
17021 setting transport_is_reliable.
17022 * server.c (run_once): New variable.
17023 (gdbserver_usage): Document it.
17024 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17025 the first run if RUN_ONCE.
17026 * server.h (run_once, remote_prepare): New declarations.
17028 2011-04-19 Tom Tromey <tromey@redhat.com>
17030 * win32-low.c (handle_load_dll): Remove duplicate "the".
17032 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17034 Remove support for old Cygwin 1.5 versions.
17035 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17036 function to avoid warning.
17037 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17040 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17042 * gdbserver/server.h (Macro _): Define it if not available.
17044 2011-03-14 Michael Snyder <msnyder@vmware.com>
17046 * hostio.c (handle_close): Remove unnecessary null test.
17048 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17050 * Makefile.in (maintainer-clean realclean distclean): Remove
17051 "make ... subdir_do" command.
17053 2011-03-10 Michael Snyder <msnyder@vmware.com>
17055 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17057 * server.c (handle_v_run): Free alloced buffer on early return.
17059 2011-03-09 Yao Qi <yao@codesourcery.com>
17062 2011-03-04 Yao Qi <yao@codesourcery.com>
17064 * Makefile.in: Remove GNU make feature --directory.
17066 2011-03-05 Yao Qi <yao@codesourcery.com>
17068 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17069 (subdir_do): New make target. Copied from gdb/Makefile.
17070 (maintainer-clean, realclean, distclean, clean): Call corresponding
17071 make targets in common/Makefile.
17073 2011-02-11 Yao Qi <yao@codesourcery.com>
17075 * configure.ac: Call AC_PROG_RANLIB.
17076 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17077 * configure: Regenerate.
17079 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17081 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17083 2011-03-06 Yao Qi <yao@codesourcery.com>
17085 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17087 2011-03-05 Yao Qi <yao@codesourcery.com>
17089 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17090 (subdir_do): New make target. Copied from gdb/Makefile.
17091 (maintainer-clean, realclean, distclean, clean): Call corresponding
17092 make targets in common/Makefile.
17094 2011-03-04 Yao Qi <yao@codesourcery.com>
17096 * Makefile.in: Remove GNU make feature --directory.
17098 2011-03-04 Michael Snyder <msnyder@vmware.com>
17100 * server.c (queue_stop_reply): Call xmalloc not malloc.
17102 2011-03-02 Michael Snyder <msnyder@vmware.com>
17104 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17106 2011-02-28 Michael Snyder <msnyder@vmware.com>
17108 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17109 (cmd_qtframe): Ditto.
17110 (cmd_qtbuffer): Ditto.
17111 (cmd_bigqtbuffer): Ditto.
17113 * utils.c (decimal2str): Initialize 'width' to nine, then
17114 don't mess with it.
17116 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17118 * hostio.c (require_data): Free *data, not data.
17120 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17122 * hostio.c (require_data): Use free, not xfree.
17124 2011-02-27 Michael Snyder <msnyder@vmware.com>
17126 * server.c (handle_query): Discard unused value.
17128 * hostio.c (require_data): Free malloc memory before returning
17131 2011-02-26 Michael Snyder <msnyder@vmware.com>
17133 * linux-low.c (list_threads): Call closedir for dirent.
17135 2011-02-27 Michael Snyder <msnyder@vmware.com>
17137 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17138 a case statement falls through.
17140 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17142 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17145 2011-02-26 Michael Snyder <msnyder@vmware.com>
17147 * utils.c (decimal2str): Eliminate dead code and dead param.
17148 (pulongest): Drop dead param from call to decimal2str.
17151 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17153 Revert the following patch (not approved yet):
17154 2011-02-21 Hui Zhu <teawater@gmail.com>
17155 * tracepoint.c (tp_printf): New function.
17156 (eval_agent_expr): Handle gdb_agent_op_printf.
17158 2011-02-21 Hui Zhu <teawater@gmail.com>
17160 * tracepoint.c (tp_printf): New function.
17161 (eval_agent_expr): Handle gdb_agent_op_printf.
17163 2011-02-18 Tom Tromey <tromey@redhat.com>
17165 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17166 (tracepoint.o): Likewise.
17167 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17168 (gdb_agent_op_names): Likewise.
17170 2011-02-18 Tom Tromey <tromey@redhat.com>
17172 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17173 gdb_agent_op_rot>: New constants.
17174 (gdb_agent_op_names): Add pick and roll.
17175 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17178 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17180 * aclocal.m4: Regenerated with aclocal-1.11.1.
17182 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17184 * server.c (handle_qxfer_traceframe_info): New.
17185 (qxfer_packets): Register "traceframe-info".
17186 (handle_query): Report support for qXfer:traceframe-info:read+.
17187 * tracepoint.c (match_blocktype): New.
17188 (traceframe_find_block_type): Rename to ...
17189 (traceframe_walk_blocks): ... this. Add callback filter argument,
17191 (traceframe_find_block_type): New, reimplemented on top of
17192 traceframe_walk_blocks.
17193 (build_traceframe_info_xml): New.
17194 (traceframe_read_info): New.
17195 * server.h (traceframe_read_info): Declare.
17197 2011-02-11 Yao Qi <yao@codesourcery.com>
17199 * configure.ac: Call AC_PROG_RANLIB.
17200 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17201 * configure: Regenerate.
17203 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17205 * server.c (gdb_read_memory): Change return semantics to allow
17207 (handle_search_memory_1): Adjust.
17208 (process_serial_event) <'m' packet>: Handle partial transfers.
17209 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17211 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17213 * regcache.c (init_register_cache): Initialize
17214 regcache->register_status.
17215 (free_register_cache): Release regcache->register_status.
17216 (regcache_cpy): Copy register_status.
17217 (registers_to_string): Print 'x's for unavailable registers.
17218 (supply_register): Mark the register's status valid or
17219 unavailable, depending on whether a buffer was passed in or not.
17220 (supply_register_zeroed): New.
17221 (supply_regblock): Mark the registers' status valid or
17222 unavailable, depending on whether a buffer was passed in or not.
17223 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17224 (struct regcache): New `register_status' field.
17225 (supply_register_zeroed): Declare.
17226 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17227 supply_register_zeroed, rather than passing a NULL buffer to
17229 * tracepoint.c (fetch_traceframe_registers): Update comment.
17231 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17233 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17236 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17238 * server.h (decode_xfer_write): Change prototype.
17239 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17240 and don't extract the annex here.
17241 * server.c (decode_xfer_read): Remove `annex' parameter,
17242 and don't extract the annex here.
17243 (decode_xfer): New.
17244 (struct qxfer): New.
17245 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17246 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17247 (handle_qxfer_statictrace): New functions, abstracted out from
17248 handle_query, and made to use the struct qxfer interface.
17249 (handle_threads_qxfer_proper): Rename to ...
17250 (handle_qxfer_threads_proper): ... this.
17251 (handle_threads_qxfer): Rename to ...
17252 (handle_qxfer_threads): ... this. Adjust.
17253 (qxfer_packets): New array.
17254 (handle_qxfer): New function.
17255 (handle_query): Use handle_qxfer.
17257 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17259 * gdbreplay.c: Shorten lines of >= 80 columns.
17260 * linux-low.c: Ditto.
17261 * linux-ppc-low.c: Ditto.
17262 * linux-s390-low.c: Ditto.
17263 * linux-sparc-low.c: Ditto.
17264 * linux-x86-low.c: Ditto.
17265 * linux-xtensa-low.c: Ditto.
17266 * mem-break.c: Ditto.
17267 * nto-low.c: Ditto.
17268 * regcache.h: Ditto.
17269 * remote-utils.c: Ditto.
17272 * thread-db.c: Ditto.
17273 * tracepoint.c: Ditto.
17275 * win32-low.h: Ditto.
17277 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17279 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17282 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17284 * server.c (gdbserver_version): Update copyright year in version
17286 * gdbreplay.c (gdbreplay_version): Ditto.
17288 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17290 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17291 * linux-bfin-low.c: New file.
17292 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17293 PT_DATA_ADDR for BFIN targets.
17294 * Makefile.in (SFILES): Add linux-bfin-low.c.
17295 (clean): Remove reg-bfin.c.
17296 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17297 * README: Mention supported Blackfin targets.
17299 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17301 * .gitignore: New file.
17303 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17305 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17307 2010-10-22 Jie Zhang <jie@codesourcery.com>
17309 * Makefile.in: Add FLAGS_TO_PASS variable.
17310 (install): Remove dependency of install-only and recursively
17311 invoke make for install-only.
17313 2010-10-04 Doug Evans <dje@google.com>
17315 * Makefile.in (uninstall): Use $(DESTDIR).
17317 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17321 * linux-x86-low.c (compat_siginfo_from_siginfo)
17322 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17323 si_code is < 0. Check for si_code == SI_TIMER before checking for
17326 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17328 * lynx-i386-low.c: New file.
17329 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17331 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17333 * lynx-low.c (ptrace_request_to_str): Remove handling for
17334 request values that have been removed in LynxOS 5.x.
17336 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17338 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17341 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17343 * configure.ac: Add --enable-inprocess-agent option.
17344 * configure: Rebuilt.
17346 2010-09-06 Yao Qi <yao@codesourcery.com>
17348 * linux-low.c (linux_kill): Remove unused variable.
17349 (linux_stabilize_threads): Likewise.
17350 * server.c (start_inferior): Likewise.
17351 (queue_stop_reply_callback): Likewise.
17352 * tracepoint.c (do_action_at_tracepoint): Likewise.
17354 2010-09-06 Yao Qi <yao@codesourcery.com>
17356 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17359 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17361 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17363 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17365 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17368 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17370 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17371 gdbserver/lynx-ppc-low.c: New files.
17372 * Makefile.in (lynx_low_h): New variable.
17373 (lynx-low.o, lynx-ppc-low.o): New rules.
17374 * configure.ac: On LynxOS, link with -lnetinet.
17375 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17376 * configure: regenerate.
17378 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17380 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17381 * configure.ac: Add check for vasprintf and vsnprintf.
17382 * configure, config.in: Regenerate.
17383 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17385 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17387 * gdbreplay.c: Move include of alloca.h up, next to include of
17389 * server.h: Add include of malloc.h.
17390 * mem-break.c: Remove include of malloc.h.
17391 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17393 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17395 * Makefile.in (memmem.o): Build with -Wno-error.
17397 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17399 * utils.c (xsnprintf): Make non-static.
17400 * server.h: Add xsnprintf declaration.
17401 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17402 replace calls to snprintf by calls to xsnprintf throughout.
17404 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17406 * configure.ac: Add configure check for alloca.
17407 * configure, config.in: Regenerate.
17408 * server.h: Include alloca.h if it exists.
17409 * gdbreplay.c: Include alloca.h if it exists.
17411 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17413 * linux-low.c (__SIGRTMIN): Define if not already defined.
17414 (linux_create_inferior): Check for __ANDROID__ rather than
17416 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17417 are already deferred.
17418 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17419 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17420 stopped and already has a pending signal to report.
17421 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17422 a pending signal to report or is moving out of a jump pad.
17423 (linux_init_signals): Check for __ANDROID__ rather than
17426 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17428 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17429 debug_threads check. Avoid a linear search when not doing debug
17432 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17434 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17435 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17436 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17437 (process_event): Change local fd's type to gdb_fildes_t.
17438 (create_file_handler): Adjust prototype.
17439 (delete_file_handler): Adjust prototype.
17440 (handle_file_event): Adjust prototype. Use pfildes.
17441 (create_file_event): Adjsut prototype.
17442 * remote-utils.c (remote_desc, listen_desc): Change type to
17444 * server.h: New gdb_fildes_t typedef.
17445 [USE_WIN32API]: Include winsock2.h.
17446 (delete_file_handler, add_file_handler): Adjust prototypes.
17447 (pfildes): Declare.
17448 * utils.c (pfildes): New.
17450 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17452 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17453 * configure: Regenerate.
17455 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17457 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17458 (linux_done_accessing_memory): ... this.
17459 (linux_target_ops): Adjust.
17460 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17461 * nto-low.c (nto_target_ops): Adjust comment.
17462 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17463 * spu-low.c (spu_target_ops): Adjust comment.
17464 * target.h (target_ops): Rename unprepare_to_access_memory field
17465 to done_accessing_memory.
17466 (unprepare_to_access_memory): Rename to ...
17467 (done_accessing_memory): ... this.
17469 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17471 * linux-low.c (linux_prepare_to_access_memory): New.
17472 (linux_unprepare_to_access_memory): New.
17473 (linux_target_ops): Install them.
17474 * server.c (read_memory): Rename to ...
17475 (gdb_read_memory): ... this. Use
17476 prepare_to_access_memory/prepare_to_access_memory.
17477 (write_memory): Rename to ...
17478 (gdb_write_memory): ... this. Use
17479 prepare_to_access_memory/prepare_to_access_memory.
17480 (handle_search_memory_1): Adjust.
17481 (process_serial_event): Adjust.
17482 * target.h (struct target_ops): New fields
17483 prepare_to_access_memory and unprepare_to_access_memory.
17484 (prepare_to_access_memory, unprepare_to_access_memory): New.
17485 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17486 prepare_to_access_memory/prepare_to_access_memory.
17487 * nto-low.c (nto_target_ops): Adjust.
17488 * spu-low.c (spu_target_ops): Adjust.
17489 * win32-low.c (win32_target_ops): Adjust.
17491 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17493 * Makefile.in (WARN_CFLAGS): Get it from configure.
17494 (WERROR_CFLAGS): New.
17495 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17496 * configure.ac: Introduce --enable-werror, which adds -Werror to
17497 the compiler command line. Enabled by default. Disable with
17498 --disable-werror. Add -Wdeclaration-after-statement
17499 Wpointer-arith and -Wformat-nonliteral to warning flags.
17500 * configure: Regenerate.
17502 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17504 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17506 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17508 * gdbreplay.c (remote_error): New.
17510 (expect): Use gdbchar. Check for error reading from GDB.
17511 Clarify sync error output.
17512 (play): Check for errors writing to GDB.
17513 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17514 * remote-utils.c (getpkt): Check for errors writing to the remote
17517 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17519 * linux-low.c (linux_wait_1): Move non-debugging code out of
17520 `debug_threads' control.
17522 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17524 * linux-low.c (linux_wait_1): Don't set last_status here.
17525 * server.c (push_event, queue_stop_reply_callback): Assert we're
17526 not pushing a TARGET_WAITKIND_IGNORE event.
17527 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17528 (myresume, handle_target_event): Set the thread's last_resume_kind
17529 and last_status from the target returned status.
17531 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17535 * linux-x86-low.c (update_debug_registers_callback): New.
17536 (i386_dr_low_set_addr): Use it.
17537 (i386_dr_low_get_addr): New.
17538 (i386_dr_low_set_control): Use update_debug_registers_callback.
17539 (i386_dr_low_get_control): New.
17540 (i386_dr_low_get_status): Adjust.
17541 * linux-low.c (linux_stop_lwp): New.
17542 * linux-low.h (linux_stop_lwp): Declare.
17544 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17545 argument instead of a i386_debug_reg_state.
17546 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17547 a i386_debug_reg_state.
17548 (i386_insert_aligned_watchpoint): Adjust.
17549 (i386_remove_aligned_watchpoint): Adjust.
17550 (i386_low_stopped_data_address): Read the debug registers from the
17551 inferior instead of from the mirrors.
17552 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17553 (i386_dr_low_get_addr): Declare.
17554 (i386_dr_low_get_control): Declare.
17555 (i386_dr_low_get_status): Change prototype.
17557 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17558 (i386_dr_low_get_addr): New.
17559 (i386_dr_low_get_control): New.
17560 (i386_dr_low_get_status): Adjust prototype. Return
17562 (i386_initial_stuff): Clear dr_status_mirror and
17564 (i386_get_thread_context): Adjust.
17565 (i386_set_thread_context): Adjust.
17566 (i386_thread_added): Adjust.
17568 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17570 * linux-low.h (linux_thread_area): Delete declaration.
17572 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17574 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17575 after its termination.
17577 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17579 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17580 (gdb_wants_all_stopped): Delete.
17581 (linux_wait_1): Don't call them.
17582 * server.c (handle_v_cont): Tag all threads as want-stopped.
17583 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17584 stopped as "client-wants-stopped".
17586 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17588 * Makefile.in (signals_h): New.
17589 (server_h): Depend on it.
17590 (server.o): Don't depend on $(signals_def).
17591 (signals.o): Depend on $(signals_def).
17593 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17595 * Makefile.in (signals_def): New.
17596 (server_h): Append include/gdb/signals.h and signals_def.
17597 (server.o): Append signals_def.
17599 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17601 * server.c (handle_target_event): Use target_signal_to_host for
17602 resume_info.sig initialization.
17603 * target.h (struct thread_resume) <sig>: New comment.
17605 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17607 * server.c (handle_query): strcpy() the returned string from paddress()
17608 instead of sprintf().
17609 * utils.c (paddress): Return phex_nz().
17611 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17613 * server.c (handle_v_cont): Call mourn_inferior if process
17615 (myresume): Likewise.
17617 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17619 Static tracepoints, and integration with UST.
17621 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17622 * mem-break.c (uninsert_all_breakpoints)
17623 (reinsert_all_breakpoints): New.
17624 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17625 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17626 (gdb_agent_ust_loaded, helper_thread_id)
17627 (gdb_agent_helper_thread_id): New macros.
17628 (struct ipa_sym_addresses): Add addr_ust_loaded,
17629 addr_helper_thread_id, addr_cmd_buf.
17630 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17631 (in_process_agent_loaded_ust): New.
17632 (write_e_ust_not_loaded): New.
17633 (maybe_write_ipa_ust_not_loaded): New.
17634 (struct collect_static_trace_data_action): New.
17635 (enum tracepoint_type) <static_tracepoint>: New.
17636 (struct tracepoint) <handle>: Mention static tracepoints.
17637 (struct static_tracepoint_ctx): New.
17638 (CMD_BUF_SIZE): New.
17639 (add_tracepoint_action): Handle static tracepoint actions.
17640 (unprobe_marker_at): New.
17641 (clear_installed_tracepoints): Handle static tracepoints.
17642 (cmd_qtdp): Handle static tracepoints.
17643 (probe_marker_at): New.
17644 (cmd_qtstart): Handle static tracepoints.
17645 (response_tracepoint): Handle static tracepoints.
17646 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17647 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17648 (get_context_regcache): Handle static tracepoints.
17649 (do_action_at_tracepoint): Handle static tracepoint actions.
17650 (traceframe_find_block_type): Handle static trace data blocks.
17651 (traceframe_read_sdata): New.
17652 (download_tracepoints): Download static tracepoint actions.
17653 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17654 (GDB_PROBE_NAME): New.
17656 (GET_UST_SYM): New.
17659 (ust_marker_to_static_tracepoint): New.
17661 (collect_ust_data_at_tracepoint): New.
17662 (gdb_ust_probe): New.
17663 (UNIX_PATH_MAX, SOCK_DIR): New.
17664 (gdb_ust_connect_sync_socket): New.
17665 (resume_thread, stop_thread): New.
17666 (run_inferior_command): New.
17667 (init_named_socket): New.
17668 (gdb_ust_socket_init): New.
17669 (cstr_to_hexstr): New.
17671 (first_marker, next_marker): New.
17672 (response_ust_marker): New.
17673 (cmd_qtfstm, cmd_qtsstm): New.
17674 (unprobe_marker_at, probe_marker_at): New.
17675 (cmd_qtstmat, gdb_ust_thread): New.
17676 (gdb_ust_init): New.
17677 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17678 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17679 (ST_REGENTRY): New.
17680 (x86_64_st_collect_regmap): New.
17681 (X86_64_NUM_ST_COLLECT_GREGS): New.
17682 (AMD64_RIP_REGNUM): New.
17683 (supply_static_tracepoint_registers): New.
17684 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17685 (ST_REGENTRY): New.
17686 (i386_st_collect_regmap): New.
17687 (i386_NUM_ST_COLLECT_GREGS): New.
17688 (supply_static_tracepoint_registers): New.
17689 * server.c (handle_query): Handle qXfer:statictrace:read.
17690 <qSupported>: Report support for StaticTracepoints, and
17691 qXfer:statictrace:read features.
17692 * server.h (traceframe_read_sdata)
17693 (supply_static_tracepoint_registers): Declare.
17694 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17695 (unpack_varlen_hex): Include in IPA build.
17696 * Makefile.in (ustlibs, ustinc): New.
17697 (IPA_OBJS): Add remote-utils-ipa.o.
17698 ($(IPA_LIB)): Link -ldl and -lpthread.
17700 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17701 * config.in, configure: Regenerate.
17703 2010-06-20 Ian Lance Taylor <iant@google.com>
17704 Pedro Alves <pedro@codesourcery.com>
17706 * linux-x86-low.c (always_true): Delete.
17707 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17708 trying to fool the compiler with always_true.
17710 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17712 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17713 conditions in gdbserver.
17715 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17717 * spu-low.c (spu_read_memory): Wrap around local store limit.
17718 (spu_write_memory): Likewise.
17720 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17722 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17723 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17725 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17727 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17728 uses with LONGEST uses.
17730 2010-06-14 Stan Shebs <stan@codesourcery.com>
17731 Pedro Alves <pedro@codesourcery.com>
17735 * linux-x86-low.c: Include limits.h.
17737 (always_true): New.
17740 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17741 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17742 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17743 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17744 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17745 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17746 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17747 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17748 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17749 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17750 (amd64_emit_void_call_2): New.
17751 (amd64_emit_ops): New.
17752 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17753 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17754 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17755 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17756 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17757 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17758 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17759 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17760 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17761 (i386_emit_stack_adjust, i386_emit_int_call_1)
17762 (i386_emit_void_call_2): New.
17763 (i386_emit_ops): New.
17764 (x86_emit_ops): New.
17765 (the_low_target): Install x86_emit_ops.
17766 * server.h (struct emit_ops): New.
17767 (get_raw_reg_func_addr): Declare.
17768 (current_insn_ptr, emit_error): Declare.
17769 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17770 (set_trace_state_variable_value): New defines.
17771 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17772 addr_get_trace_state_variable_value and
17773 addr_set_trace_state_variable_value.
17774 (symbol_list): New fields for get_raw_reg,
17775 get_trace_state_variable_value and set_trace_state_variable_value.
17776 (condfn): New typedef.
17777 (struct tracepoint): New field `compiled_cond'.
17778 (do_action_at_tracepoint): Clear compiled_cond.
17779 (get_trace_state_variable_value, set_trace_state_variable_value):
17781 (condition_true_at_tracepoint): If there's a compiled condition,
17783 (current_insn_ptr, emit_error): New globals.
17784 (struct bytecode_address): New.
17785 (get_raw_reg_func_addr): New.
17786 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17787 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17788 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17789 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17790 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17791 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17792 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17793 (compile_tracepoint_condition, compile_bytecodes): New.
17794 * target.h (emit_ops): Forward declare.
17795 (struct target_ops): New field emit_ops.
17796 (target_emit_ops): New.
17797 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17798 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17799 * linux-low.c (linux_emit_ops): New.
17800 (linux_target_ops): Install it.
17801 * linux-low.h (struct linux_target_ops): New field emit_ops.
17803 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17805 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17806 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17808 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17809 Stan Shebs <stan@codesourcery.com>
17811 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17812 (all): Depend on $(extra_libraries).
17813 (install-only): Install the IPA.
17814 (IPA_OBJS, IPA_LIB): New.
17815 (clean): Remove the IPA lib.
17816 (IPAGENT_CFLAGS): New.
17817 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17818 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17819 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17820 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17821 * configure.ac: Check for atomic builtins support in the compiler.
17822 (IPA_DEPFILES, extra_libraries): Define.
17823 * configure.srv (ipa_obj): Add description.
17824 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17825 (i[34567]86-*-linux*): Set ipa_obj.
17826 (x86_64-*-linux*): Set ipa_obj.
17827 * linux-low.c (stabilizing_threads): New.
17828 (supports_fast_tracepoints): New.
17829 (linux_detach): Stabilize threads before detaching.
17830 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17831 the lwp is either not stabilizing, or is moving out of a jump pad.
17832 (linux_fast_tracepoint_collecting): New.
17833 (maybe_move_out_of_jump_pad): New.
17834 (enqueue_one_deferred_signal): New.
17835 (dequeue_one_deferred_signal): New.
17836 (linux_wait_for_event_1): If moving out of a jump pad, defer
17837 pending signals to later.
17838 (linux_stabilize_threads): New.
17839 (linux_wait_1): Check if threads need moving out of jump pads, and
17841 (stuck_in_jump_pad_callback): New.
17842 (move_out_of_jump_pad_callback): New.
17843 (lwp_running): New.
17844 (linux_resume_one_lwp): Handle moving out of jump pads.
17845 (linux_set_resume_request): Dequeue deferred signals.
17846 (need_step_over_p): Also step over fast tracepoint jumps.
17847 (start_step_over): Also uninsert fast tracepoint jumps.
17848 (finish_step_over): Also reinsert fast tracepoint jumps.
17849 (linux_install_fast_tracepoint_jump): New.
17850 (linux_target_ops): Install linux_stabilize_threads and
17851 linux_install_fast_tracepoint_jump_pad.
17852 * linux-low.h (linux_target_ops) <get_thread_area,
17853 install_fast_tracepoint_jump_pad>: New fields.
17854 (struct lwp_info) <collecting_fast_tracepoint,
17855 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17856 (linux_get_thread_area): Declare.
17857 * linux-x86-low.c (jump_insn): New.
17858 (x86_get_thread_area): New.
17859 (append_insns): New.
17860 (push_opcode): New.
17861 (amd64_install_fast_tracepoint_jump_pad): New.
17862 (i386_install_fast_tracepoint_jump_pad): New.
17863 (x86_install_fast_tracepoint_jump_pad): New.
17864 (the_low_target): Install x86_get_thread_area and
17865 x86_install_fast_tracepoint_jump_pad.
17866 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17867 (struct fast_tracepoint_jump): New.
17868 (fast_tracepoint_jump_insn): New.
17869 (fast_tracepoint_jump_shadow): New.
17870 (find_fast_tracepoint_jump_at): New.
17871 (fast_tracepoint_jump_here): New.
17872 (delete_fast_tracepoint_jump): New.
17873 (set_fast_tracepoint_jump): New.
17874 (uninsert_fast_tracepoint_jumps_at): New.
17875 (reinsert_fast_tracepoint_jumps_at): New.
17876 (set_breakpoint_at): Use write_inferior_memory.
17877 (uninsert_raw_breakpoint): Use write_inferior_memory.
17878 (check_mem_read): Mask out fast tracepoint jumps.
17879 (check_mem_write): Mask out fast tracepoint jumps.
17880 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17881 (set_fast_tracepoint_jump): Declare.
17882 (delete_fast_tracepoint_jump)
17883 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17884 (reinsert_fast_tracepoint_jumps_at): Declare.
17885 * regcache.c: Don't compile many functions when building the
17886 in-process agent library.
17887 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17888 the register buffer in the heap.
17889 (free_register_cache): If the register buffer isn't owned by the
17890 regcache, don't free it.
17891 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17892 pre-existing register caches.
17893 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17895 (convert_ascii_to_int): : Constify `from' parameter type.
17896 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17897 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17898 the needed buffer in-place.
17899 (relocate_instruction): New.
17900 * server.c (handle_query) <qSymbols>: If the target supports
17901 tracepoints, give it a chance of looking up symbols. Report
17902 support for fast tracepoints.
17903 (handle_status): Stabilize threads.
17904 (process_serial_event): Adjust.
17905 * server.h (struct fast_tracepoint_jump): Forward declare.
17906 (struct process_info) <fast_tracepoint_jumps>: New field.
17907 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17908 (decode_X_packet, decode_M_packet): Adjust.
17909 (relocate_instruction): Declare.
17910 (in_process_agent_loaded): Declare.
17911 (tracepoint_look_up_symbols): Declare.
17912 (struct fast_tpoint_collect_status): Declare.
17913 (fast_tracepoint_collecting): Declare.
17914 (force_unlock_trace_buffer): Declare.
17915 (handle_tracepoint_bkpts): Declare.
17916 (initialize_low_tracepoint)
17917 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17918 * target.h (struct target_ops) <stabilize_threads,
17919 install_fast_tracepoint_jump_pad>: New fields.
17920 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17921 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17922 [HAVE_STDINT_H]: Include stdint.h.
17923 (trace_debug_1): Rename to ...
17924 (trace_vdebug): ... this.
17925 (trace_debug): Rename to ...
17926 (trace_debug_1): ... this. Add `level' parameter.
17927 (trace_debug): New.
17928 (ATTR_USED, ATTR_NOINLINE): New.
17929 (IP_AGENT_EXPORT): New.
17930 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17931 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17932 (about_to_request_buffer_space, trace_buffer_is_full)
17933 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17934 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17935 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17936 (traceframe_write_count, traceframes_created)
17937 (trace_state_variables)
17938 New renaming defines.
17939 (struct ipa_sym_addresses): New.
17940 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17941 (symbol_list): New.
17942 (ipa_sym_addrs): New.
17943 (all_tracepoint_symbols_looked_up): New.
17944 (in_process_agent_loaded): New.
17945 (write_e_ipa_not_loaded): New.
17946 (maybe_write_ipa_not_loaded): New.
17947 (tracepoint_look_up_symbols): New.
17948 (debug_threads) [IN_PROCESS_AGENT]: New.
17949 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17950 (UNKNOWN_SIDE_EFFECTS): New.
17951 (stop_tracing): New.
17952 (flush_trace_buffer): New.
17953 (stop_tracing_bkpt): New.
17954 (flush_trace_buffer_bkpt): New.
17955 (read_inferior_integer): New.
17956 (read_inferior_uinteger): New.
17957 (read_inferior_data_pointer): New.
17958 (write_inferior_data_pointer): New.
17959 (write_inferior_integer): New.
17960 (write_inferior_uinteger): New.
17961 (struct collect_static_trace_data_action): Delete.
17962 (enum tracepoint_type): New.
17963 (struct tracepoint) <type>: New field `type'.
17964 <actions_str, step_actions, step_actions_str>: Only include in
17966 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17967 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17968 (tracepoints): Use IP_AGENT_EXPORT.
17969 (last_tracepoint): Don't include in the IPA.
17970 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17971 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17972 (alloced_trace_state_variables): New.
17973 (trace_state_variables): Use IP_AGENT_EXPORT.
17974 (traceframe_t): Delete unused variable.
17975 (circular_trace_buffer): Don't include in the IPA.
17976 (trace_buffer_start): Delete.
17977 (struct trace_buffer_control): New.
17978 (trace_buffer_free): Delete.
17979 (struct ipa_trace_buffer_control): New.
17980 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17981 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17983 (trace_buffer_ctrl): New.
17984 (TRACE_BUFFER_CTRL_CURR): New.
17985 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17986 Reimplement as macros.
17987 (trace_buffer_wrap): Delete.
17988 (traceframe_write_count, traceframe_read_count)
17989 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17990 (struct tracepoint_hit_ctx) <type>: New field.
17991 (struct fast_tracepoint_ctx): New.
17992 (memory_barrier): New.
17994 (record_tracepoint_error): Update atomically in the IPA.
17995 (clear_inferior_trace_buffer): New.
17996 (about_to_request_buffer_space): New.
17997 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17998 updating the same buffer.
17999 (add_tracepoint): Default the tracepoint's type to trap
18000 tracepoint, and orig_size to -1.
18001 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18002 internal variables.
18003 (create_trace_state_variable): New parameter `gdb'. Handle it.
18004 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18005 (cmd_qtdp): Handle fast tracepoints.
18006 (cmd_qtdv): Adjust.
18007 (max_jump_pad_size): New.
18008 (gdb_jump_pad_head): New.
18009 (get_jump_space_head): New.
18010 (claim_jump_space): New.
18011 (sort_tracepoints): New.
18012 (MAX_JUMP_SIZE): New.
18013 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18015 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18016 support. Upload fast traceframes, and delete internal IPA
18018 (stop_tracing_handler): New.
18019 (flush_trace_buffer_handler): New.
18020 (cmd_qtstop): Upload fast tracepoints.
18021 (response_tracepoint): Handle fast tracepoints.
18022 (tracepoint_finished_step): Upload fast traceframes. Set the
18023 tracepoint hit context's tracepoint type.
18024 (handle_tracepoint_bkpts): New.
18025 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18026 type. Add comment about fast tracepoints.
18027 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18028 non-existing action_str field.
18029 (get_context_regcache): Handle fast tracepoints.
18030 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18032 (fast_tracepoint_from_jump_pad_address): New.
18033 (fast_tracepoint_from_ipa_tpoint_address): New.
18034 (collecting_t): New.
18035 (force_unlock_trace_buffer): New.
18036 (fast_tracepoint_collecting): New.
18038 (gdb_collect): New.
18039 (write_inferior_data_ptr): New.
18040 (target_tp_heap): New.
18041 (target_malloc): New.
18042 (download_agent_expr): New.
18044 (download_tracepoints): New.
18045 (download_trace_state_variables): New.
18046 (upload_fast_traceframes): New.
18047 (IPA_FIRST_TRACEFRAME): New.
18048 (IPA_NEXT_TRACEFRAME_1): New.
18049 (IPA_NEXT_TRACEFRAME): New.
18050 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18051 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18052 (gdb_jump_pad_buffer_end): New.
18053 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18054 (initialize_tracepoint): Adjust.
18055 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18056 buffer. Initialize the low module.
18057 * utils.c (PREFIX, TOOLNAME): New.
18058 (malloc_failure): Use PREFIX.
18059 (error): In the IPA, an error causes an exit.
18060 (fatal, warning): Use PREFIX.
18061 (internal_error): Use TOOLNAME.
18062 (NUMCELLS): Increase to 10.
18063 * configure, config.in: Regenerate.
18065 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18067 * server.c (handle_query) <qSupported>: Do two passes over the
18068 qSupported string to avoid nesting strtok.
18070 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18072 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18074 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18075 -Wl,--dynamic-list.
18076 * configure: Regenerate.
18077 * proc-service.list: New.
18079 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18081 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18084 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18086 * gdbreplay.c (remote_open): Check error return from socket() call by
18087 its equality to -1 not by it being negative.
18088 * remote-utils.c (remote_open): Likewise.
18090 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18092 * config.h: Regenerate.
18094 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18096 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18097 doesn't provide PTRACE_GET_THREAD_AREA.
18099 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18101 * linux-m68k-low.c: Include <asm/ptrace.h>
18102 (ps_get_thread_area): Implement.
18104 2010-05-03 Doug Evans <dje@google.com>
18106 * event-loop.c (struct callback_event): New struct.
18107 (callback_list): New global.
18108 (append_callback_event, delete_callback_event): New functions.
18109 (process_callback): New function.
18110 (start_event_loop): Call it.
18111 * remote-utils.c (NOT_SCHEDULED): Define.
18112 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18113 moved out of readchar.
18114 (readchar): Rewrite. Call reschedule before returning.
18115 (reset_readchar): New function.
18116 (remote_close): Call it.
18117 (process_remaining, reschedule): New functions.
18118 * server.h (callback_handler_func): New typedef.
18119 (append_callback_event, delete_callback_event): Declare.
18121 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18123 * proc-service.c (ps_pglobal_lookup): Use
18124 thread_db_look_up_one_symbol.
18125 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18126 parameter. Use it instead of all_symbols_looked_up.
18127 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18129 (all_symbols_looked_up): Don't declare.
18130 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18131 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18133 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18134 Set all_symbols_looked_up here.
18135 (thread_db_look_up_one_symbol): New.
18136 (thread_db_get_tls_address): Adjust.
18137 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18138 thread_db object on the heap, and tentatively set it in the
18140 (thread_db_init): Don't set all_symbols_looked_up here.
18141 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18143 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18145 * linux-low.c (linux_kill, linux_detach): Adjust.
18146 (status_pending_p_callback): Remove redundant statement. Check
18147 for !TARGET_WAITIKIND_IGNORE, instead of
18148 TARGET_WAITKIND_STOPPED.
18149 (handle_tracepoints): Make sure LWP is locked. Adjust.
18150 (linux_wait_for_event_1): Adjust.
18151 (linux_cancel_breakpoints): New.
18152 (unsuspend_one_lwp): New.
18153 (unsuspend_all_lwps): New.
18154 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18155 (send_sigstop_callback): Change return type to int, add new
18156 `except' parameter and handle it.
18157 (suspend_and_send_sigstop_callback): New.
18158 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18159 pass them down. If SUSPEND, also increment the lwp's suspend
18161 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18162 (need_step_over_p): Don't consider suspended LWPs.
18163 (start_step_over): Adjust.
18164 (proceed_one_lwp): Change return type to int, add new `except'
18165 parameter and handle it.
18166 (unsuspend_and_proceed_one_lwp): New.
18167 (proceed_all_lwps): Use find_inferior instead of
18169 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18170 also decrement the suspend count of LWPs. Pass `except' down,
18171 instead of hacking its suspend count.
18172 (linux_pause_all): Add `freeze' parameter. Adjust.
18173 (linux_unpause_all): New.
18174 (linux_target_ops): Install linux_unpause_all.
18175 * server.c (handle_status): Adjust.
18176 * target.h (struct target_ops): New fields `unpause_all' and
18177 `cancel_breakpoints'. Add new parameter to `pause_all'.
18178 (pause_all): Add new `freeze' parameter.
18179 (unpause_all): New.
18180 (cancel_breakpoints): New.
18181 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18182 cancel breakpoints.
18183 (cmd_qtstart): Pause threads.
18184 (stop_tracing): Pause threads, and cancel breakpoints.
18185 * win32-low.c (win32_target_ops): Adjust.
18187 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18189 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18190 the inferior right away from here...
18191 (linux_wait_1): ... to here, and adjust to check the thread's
18192 last_resume_kind instead of the lwp's step or stop_expected flags.
18194 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18196 * README: Use consistent `GDB' and `GDBserver' spellings.
18198 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18200 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18201 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18202 (linux_detach_one_lwp): Assume the lwp is stopped.
18203 (any_thread_of): Delete.
18204 (linux_detach): Stop all lwps here. Don't blindly delete all
18206 (delete_lwp_callback): New.
18207 (linux_mourn): Delete all lwps of the process that is gone.
18208 (linux_wait_1): Don't delete the last lwp of the process here.
18209 * mem-break.h (mark_breakpoints_out): Declare.
18210 * mem-break.c (mark_breakpoints_out): New.
18211 (free_all_breakpoints): Use it.
18212 * server.c (handle_target_event): If the process is gone, mark
18214 * thread-db.c (struct thread_db) <create_bp>: New field.
18215 (thread_db_enable_reporting): Fix prototype. Store a thread event
18216 breakpoint reference in the thread_db struct.
18217 (thread_db_load_search): Clear the thread_db object.
18218 (try_thread_db_load_1): Ditto.
18219 (switch_to_process): New.
18220 (disable_thread_event_reporting): Use it.
18221 (remove_thread_event_breakpoints): New.
18222 (thread_db_detach, thread_db_mourn): Use it.
18224 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18226 * linux-low.c (linux_enable_event_reporting): New.
18227 (linux_wait_for_event_1, handle_extended_wait): Use it.
18229 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18231 * linux-low.c (linux_kill_one_lwp, linux_kill)
18232 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18233 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18234 SIGSTOP even if the LWP is stopped.
18235 (send_sigstop_callback): New.
18236 (stop_all_lwps): Use send_sigstop_callback instead.
18237 (linux_resume_one_thread): Adjust.
18238 (proceed_one_lwp): Still proceed an LWP that the client has
18239 requested to stop, if we haven't reported it as stopped yet. Make
18240 sure that LWPs the client want stopped, have a pending SIGSTOP.
18242 2010-04-26 Doug Evans <dje@google.com>
18244 * server.c (handle_general_set): Make static.
18246 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18247 Print received char after testing for error/eof instead of before.
18248 (input_interrupt): Tweak comment.
18250 2010-04-23 Doug Evans <dje@google.com>
18252 * server.c (start_inferior): Print inferior argv if --debug.
18254 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18256 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18257 * nto-x86-low.c: Include server.h
18259 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18261 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18262 be consistent with other sources of this directory.
18263 (init_registers_amd64): Correct name of source file of this function
18266 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18268 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18269 64-bit executables.
18271 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18273 * win32-i386-low.c: Add 64-bit support.
18274 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18275 (init_registers_amd64): Declare.
18276 (mappings): Add 64-bit version of array.
18277 (init_windows_x86): New function.
18278 (the_low_target): Change init_arch field to init_windows_x86.
18280 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18282 * win32-low.c: Adapt to support also 64-bit architecture.
18283 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18284 (get_image_name): Use SIZE_T type for local variable `done'.
18285 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18286 (toolhelp_get_dll_name): Idem.
18287 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18288 Use uintptr_t typecast to avoid warning.
18289 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18290 (handle_exception): Use phex_nz to avoid warning.
18291 (win32_wait): Remove unused local variable `process'.
18293 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18295 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18298 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18300 * configure.ac: Use `ws2_32' library for srv_mingw.
18301 * configure: Regenerate.
18302 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18303 * remote-utils.c: Likewise.
18305 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18307 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18308 if __x86_64__ is defined.
18310 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18312 * configure: Regenerate.
18314 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18316 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18317 * target.h (target_ops): New get_tib_address field.
18318 * win32-low.h (win32_thread_info): Add thread_local_base field.
18319 * win32-low.c (child_add_thread): Add tlb argument.
18320 Set thread_local_base field to TLB.
18321 (get_child_debug_event): Adapt to child_add_thread change.
18322 (win32_get_tib_address): New function.
18323 (win32_target_ops): Set get_tib_address field to
18324 win32_get_tib_address.
18325 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18327 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18329 * linux-low.c (linux_mourn): Also remove the process.
18330 * server.c (handle_target_event): Don't remove the process here.
18331 * nto-low.c (nto_mourn): New.
18332 (nto_target_ops): Install it.
18333 * spu-low.c (spu_mourn): New.
18334 (spu_target_ops): Install it.
18335 * win32-low.c (win32_mourn): New.
18336 (win32_target_ops): Install it.
18338 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18340 * server.h (buffer_xml_printf): Remove redundant `;'.
18342 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18344 * regcache.c (set_register_cache): Invalidate regcaches before
18345 changing the register cache layout.
18346 (regcache_invalidate_one): Allow a NULL regcache.
18347 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18348 regcaches before changing the register cache layout or the target
18351 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18353 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18354 variable warning on Linux/x86-64.
18356 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18358 GDBserver disconnected tracing support.
18360 * linux-low.c (linux_remove_process): Delete.
18361 (add_lwp): Don't set last_resume_kind here.
18362 (linux_kill): Use `mourn'.
18363 (linux_detach): Use `thread_db_detach', and `mourn'.
18364 (linux_mourn): New.
18365 (linux_attach_lwp_1): Adjust comment.
18366 (linux_attach): last_resume_kind moved the thread_info; adjust.
18367 (status_pending_p_callback): Adjust.
18368 (linux_wait_for_event_1): Adjust.
18369 (count_events_callback, select_singlestep_lwp_callback)
18370 (select_event_lwp_callback, cancel_breakpoints_callback)
18371 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18372 (proceed_one_lwp): Adjust.
18373 (linux_async): Add debug output.
18374 (linux_thread_stopped): New.
18375 (linux_pause_all): New.
18376 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18378 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18379 (thread_db_free): Delete declaration.
18380 (thread_db_detach, thread_db_mourn): Declare.
18381 * thread-db.c (thread_db_init): Use thread_db_mourn.
18382 (thread_db_free): Delete, split in two.
18383 (disable_thread_event_reporting): New.
18384 (thread_db_detach): New.
18385 (thread_db_mourn): New.
18387 * server.h (struct thread_info) <last_resume_kind>: New field.
18388 <attached>: Add comment.
18389 <gdb_detached>: New field.
18390 (handler_func): Change return type to int.
18391 (handle_serial_event, handle_target_event): Ditto.
18392 (gdb_connected): Declare.
18394 (disconnected_tracing): Declare.
18395 (stop_tracing): Declare.
18397 * server.c (handle_query) <qSupported>: Report support for
18398 disconnected tracing.
18399 (queue_stop_reply_callback): Account for running threads.
18400 (gdb_wants_thread_stopped): New.
18401 (gdb_wants_all_threads_stopped): New.
18402 (gdb_reattached_process): New.
18403 (handle_status): Clear the `gdb_detached' flag of all processes.
18404 In all-stop, stop all threads.
18405 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18406 (process_serial_event): If the remote connection breaks, or if an
18407 exit was forced with "monitor exit", force an event loop exit.
18408 Handle disconnected tracing on detach.
18409 (handle_serial_event): Adjust.
18410 (handle_target_event): If GDB isn't connected, forward events back
18411 to the inferior, unless the last process exited, in which case,
18412 exit gdbserver. Adjust interface.
18414 * remote-utils.c (remote_open): Don't block in accept. Instead
18415 register an event loop source on the listen socket file
18416 descriptor. Refactor bits into ...
18417 (listen_desc): ... this new global.
18418 (gdb_connected): ... this new function.
18419 (enable_async_notification): ... this new function.
18420 (handle_accept_event): ... this new function.
18421 (remote_close): Clear remote_desc.
18423 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18425 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18427 (mourn_inferior): Define.
18428 (target_process_qsupported): Avoid the dangling else problem.
18429 (thread_stopped): Define.
18430 (pause_all): Define.
18431 (target_waitstatus_to_string): Declare.
18432 * target.c (target_waitstatus_to_string): New.
18434 * tracepoint.c (tracing): Make extern.
18435 (disconnected_tracing): New.
18436 (stop_tracing): Make extern. Handle tracing stops due to GDB
18438 (cmd_qtdisconnected): New.
18439 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18440 (handle_tracepoint_general_set): Handle QTDisconnected.
18442 * event-loop.c (event_handler_func): Change return type to int.
18443 (process_event): Bail out if the event handler wants the event
18445 (handle_file_event): Ditto.
18446 (start_event_loop): Bail out if the event handler wants the event
18449 * nto-low.c (nto_target_ops): Adjust.
18450 * spu-low.c (spu_wait): Don't remove the process here.
18451 (spu_target_ops): Adjust.
18452 * win32-low.c (win32_wait): Don't remove the process here.
18453 (win32_target_ops): Adjust.
18455 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18457 * regcache.c (realloc_register_cache): Invalidate inferior's
18458 regcache before recreating it.
18460 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18462 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18464 2010-04-09 Stan Shebs <stan@codesourcery.com>
18465 Pedro Alves <pedro@codesourcery.com>
18467 * server.h (LONGEST): New.
18468 (struct thread_info) <while_stepping>: New field.
18469 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18471 (initialize_tracepoint, handle_tracepoint_general_set)
18472 (handle_tracepoint_query, tracepoint_finished_step)
18473 (tracepoint_was_hit, release_while_stepping_state_list):
18474 (current_traceframe): Declare.
18475 * server.c (handle_general_set): Handle tracepoint packets.
18476 (read_memory): New.
18477 (write_memory): New.
18478 (handle_search_memory_1): Use read_memory.
18479 (handle_query): Report support for conditional tracepoints, trace
18480 state variables, and tracepoint sources. Handle tracepoint
18482 (main): Initialize the tracepoints module.
18483 (process_serial_event): Handle traceframe reads/writes.
18485 * linux-low.c (handle_tracepoints): New.
18486 (linux_wait_1): Call it.
18487 (linux_resume_one_lwp): Handle while-stepping.
18488 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18489 (linux_target_ops): Install them.
18490 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18492 * linux-x86-low.c (x86_supports_tracepoints): New.
18493 (the_low_target). Install it.
18495 * mem-break.h (delete_breakpoint): Declare.
18496 * mem-break.c (delete_breakpoint): Make external.
18498 * target.h (struct target_ops): Add `supports_tracepoints',
18499 `read_pc', and `write_pc' fields.
18500 (target_supports_tracepoints): Define.
18501 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18504 * regcache.h (struct regcache) <registers_owned>: New field.
18505 (init_register_cache, regcache_cpy): Declare.
18506 (regcache_read_pc, regcache_write_pc): Declare.
18507 (register_cache_size): Declare.
18508 (supply_regblock): Declare.
18509 * regcache.c (init_register_cache): New.
18510 (new_register_cache): Use it.
18511 (regcache_cpy): New.
18512 (register_cache_size): New.
18513 (supply_regblock): New.
18514 (regcache_read_pc, regcache_write_pc): New.
18516 * tracepoint.c: New.
18518 * Makefile.in (OBS): Add tracepoint.o.
18519 (tracepoint.o): New rule.
18521 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18523 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18525 (i386-mmx.c): Likewise.
18526 (i386-mmx-linux.o): Likewise.
18527 (i386-mmx-linux.c): Likewise.
18529 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18530 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18531 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18532 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18534 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18535 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18536 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18538 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18540 * Makefile.in (clean): Updated.
18542 (i386-avx.c): Likewise.
18543 (i386-avx-linux.o): Likewise.
18544 (i386-avx-linux.c): Likewise.
18545 (amd64-avx.o): Likewise.
18546 (amd64-avx.c): Likewise.
18547 (amd64-avx-linux.o): Likewise.
18548 (amd64-avx-linux.c): Likewise.
18550 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18551 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18552 (srv_amd64_regobj): Add amd64-avx.o.
18553 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18554 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18555 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18556 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18557 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18558 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18559 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18561 * i387-fp.c: Include "i386-xstate.h".
18563 (i387_cache_to_xsave): Likewise.
18564 (i387_xsave_to_cache): Likewise.
18565 (x86_xcr0): Likewise.
18567 * i387-fp.h (i387_cache_to_xsave): Likewise.
18568 (i387_xsave_to_cache): Likewise.
18569 (x86_xcr0): Likewise.
18571 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18572 * linux-crisv32-low.c (target_regsets): Likewise.
18573 * linux-m68k-low.c (target_regsets): Likewise.
18574 * linux-mips-low.c (target_regsets): Likewise.
18575 * linux-ppc-low.c (target_regsets): Likewise.
18576 * linux-s390-low.c (target_regsets): Likewise.
18577 * linux-sh-low.c (target_regsets): Likewise.
18578 * linux-sparc-low.c (target_regsets): Likewise.
18579 * linux-xtensa-low.c (target_regsets): Likewise.
18581 * linux-low.c: Include <sys/uio.h>.
18582 (regsets_fetch_inferior_registers): Support nt_type.
18583 (regsets_store_inferior_registers): Likewise.
18584 (linux_process_qsupported): New.
18585 (linux_target_ops): Add linux_process_qsupported.
18587 * linux-low.h (regset_info): Add nt_type.
18588 (linux_target_ops): Add process_qsupported.
18590 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18592 (init_registers_i386_avx_linux): New.
18593 (init_registers_amd64_avx_linux): Likewise.
18594 (xmltarget_i386_linux_no_xml): Likewise.
18595 (xmltarget_amd64_linux_no_xml): Likewise.
18596 (PTRACE_GETREGSET): Likewise.
18597 (PTRACE_SETREGSET): Likewise.
18598 (x86_fill_xstateregset): Likewise.
18599 (x86_store_xstateregset): Likewise.
18600 (use_xml): Likewise.
18601 (x86_linux_update_xmltarget): Likewise.
18602 (x86_linux_process_qsupported): Likewise.
18603 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18604 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18605 init_registers_i386_linux here. Call
18606 x86_linux_update_xmltarget.
18607 (the_low_target): Add x86_linux_process_qsupported.
18609 * server.c (handle_query): Call target_process_qsupported.
18611 * target.h (target_ops): Add process_qsupported.
18612 (target_process_qsupported): New.
18614 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18616 * inferiors.c (add_thread): Set last_status kind to
18617 TARGET_WAITKIND_IGNORE.
18618 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18619 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18620 (linux_wait_1): Move `thread' local definition to block that uses
18621 it. Don't NULL initialize `event_child'.
18622 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18623 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18624 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18626 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18628 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18629 an extended waitstatus, or by a watchpoint.
18630 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18631 thread was stepping or has been stopped by a watchpoint.
18633 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18635 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18636 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18637 of another, then delete the previous, and validate all
18639 (validate_inserted_breakpoint): New.
18640 (delete_disabled_breakpoints): New.
18641 (validate_breakpoints): New.
18642 (check_mem_read): Validate breakpoints before trusting their
18643 shadow. Delete disabled breakpoints.
18644 (check_mem_write): Validate breakpoints before trusting they
18645 should be inserted. Delete disabled breakpoints.
18646 * mem-break.h (validate_breakpoints):
18647 * server.c (handle_query): Validate breakpoints when we see a
18650 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18652 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18653 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18654 if we could tell there's a GDB breakpoint at stop_pc.
18655 (need_step_over_p): Don't do a step over if we find a GDB
18656 breakpoint at the resume PC.
18658 * mem-break.c (struct raw_breakpoint): New.
18659 (enum bkpt_type): New type `gdb_breakpoint'.
18660 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18661 fields. New field `raw'.
18662 (find_raw_breakpoint_at): New.
18663 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18664 breakpoint instead.
18665 (set_breakpoint_at): Adjust.
18666 (delete_raw_breakpoint): New.
18667 (release_breakpoint): New.
18668 (delete_breakpoint): Rename to...
18669 (delete_breakpoint_1): ... this. Add proc parameter. Use
18670 release_breakpoint. Return ENOENT.
18671 (delete_breakpoint): Reimplement.
18672 (find_breakpoint_at): Delete.
18673 (find_gdb_breakpoint_at): New.
18674 (delete_breakpoint_at): Delete.
18675 (set_gdb_breakpoint_at): New.
18676 (delete_gdb_breakpoint_at): New.
18677 (gdb_breakpoint_here): New.
18678 (set_reinsert_breakpoint): Use release_breakpoint.
18679 (uninsert_breakpoint): Rename to ...
18680 (uninsert_raw_breakpoint): ... this.
18681 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18682 (reinsert_raw_breakpoint): Change parameter type to
18684 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18686 (check_breakpoints): Adjust. Use release_breakpoint.
18687 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18688 (breakpoint_inserted_here): Ditto.
18689 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18690 Don't trust the breakpoint's shadow if it is not inserted.
18691 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18692 (delete_all_breakpoints): Adjust.
18693 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18694 use delete_breakpoint_1.
18696 * mem-break.h (breakpoints_supported): Delete declaration.
18697 (set_gdb_breakpoint_at): Declare.
18698 (gdb_breakpoint_here): Declare.
18699 (delete_breakpoint_at): Delete.
18700 (delete_gdb_breakpoint_at): Declare.
18702 * server.h (struct raw_breakpoint): Forward declare.
18703 (struct process_info): New field `raw_breakpoints'.
18705 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18708 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18710 * linux-low.c (status_pending_p_callback): Fix comment.
18711 (linux_wait_for_event_1): Move most of the internal breakpoint
18712 handling from here...
18713 (linux_wait_1): ... to here.
18714 (count_events_callback): New.
18715 (select_singlestep_lwp_callback): New.
18716 (select_event_lwp_callback): New.
18717 (cancel_breakpoints_callback): New.
18718 (select_event_lwp): New.
18719 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18720 priority to all LWPs that have had events that should be reported
18721 to the client. Cancel breakpoints when about to reporting the
18722 event to the client, not while stopping lwps. No longer cancel
18723 finished single-steps here.
18724 (cancel_finished_single_step): Delete.
18725 (cancel_finished_single_steps): Delete.
18727 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18729 * mem-break.c (enum bkpt_type): New.
18730 (struct breakpoint): New field `type'.
18731 (set_breakpoint_at): Change return type to struct breakpoint
18732 pointer. Set type to `other_breakpoint' by default.
18733 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18734 in the breakpoint list.
18735 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18736 (reinsert_breakpoint): Rename to ...
18737 (reinsert_raw_breakpoint): ... this.
18738 (reinsert_breakpoints_at): Adjust.
18739 * mem-break.h (struct breakpoint): Declare.
18740 (set_breakpoint_at): Change return type to struct breakpoint
18743 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18745 * server.c (handle_query): Assign, not compare.
18747 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18749 Teach linux gdbserver to step-over-breakpoints.
18751 * linux-low.c (can_hardware_single_step): New.
18752 (supports_breakpoints): New.
18753 (handle_extended_wait): If stopping threads, read the stop pc of
18754 the new cloned LWP.
18756 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18757 low target doesn't support retrieving the PC.
18758 (add_lwp): Set last_resume_kind to resume_continue.
18759 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18760 (linux_attach): Don't clear stop_expected. Set the lwp's
18761 last_resume_kind to resume_stop.
18762 (linux_detach_one_lwp): Don't check for removed breakpoints.
18763 (check_removed_breakpoint): Delete.
18764 (status_pending_p): Rename to ...
18765 (status_pending_p_callback): ... this. Don't check for removed
18766 breakpoints. Don't consider threads that are stopped from GDB's
18768 (linux_wait_for_lwp): Always read the stop_pc here.
18769 (cancel_breakpoint): New.
18770 (step_over_bkpt): New global.
18771 (linux_wait_for_event_1): Implement stepping over breakpoints.
18772 (gdb_wants_lwp_stopped): New.
18773 (gdb_wants_all_stopped): New.
18774 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18775 single-step traps here. Store the thread's last reported target
18777 (send_sigstop): Don't clear stop_expected. Always set it,
18779 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18780 (cancel_finished_single_step): New.
18781 (cancel_finished_single_steps): New.
18782 (wait_for_sigstop): Don't cancel finished single-step traps here.
18783 (linux_resume_one_lwp): Don't check for removed breakpoints.
18784 Don't set `step' on non-hardware step archs.
18785 (linux_set_resume_request): Ignore resume_stop requests if already
18786 stopping or stopped. Set the lwp's last_resume_kind.
18787 (resume_status_pending_p): Don't check for removed breakpoints.
18788 (need_step_over_p): New.
18789 (start_step_over): New.
18790 (finish_step_over): New.
18791 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18792 requests. Clear the thread's last reported target waitstatus.
18793 Don't use the `suspended' flag. Don't consider pending breakpoints.
18794 (linux_resume): Start a step-over if necessary.
18795 (proceed_one_lwp): New.
18796 (proceed_all_lwps): New.
18797 (unstop_all_lwps): New.
18798 * linux-low.h (struct lwp_info): Rewrite comment for the
18799 `suspended' flag. Add the `stop_pc' field. Delete the
18800 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18801 Add `'last_resume_kind' and `need_step_over' fields.
18802 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18803 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18804 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18805 (set_raw_breakpoint_at): New.
18806 (set_breakpoint_at): Rewrite to use it.
18807 (reinsert_breakpoint_handler): Delete.
18808 (set_reinsert_breakpoint): New.
18809 (reinsert_breakpoint_by_bp): Delete.
18810 (delete_reinsert_breakpoints): New.
18811 (uninsert_breakpoint): Rewrite.
18812 (uninsert_breakpoints_at): New.
18813 (reinsert_breakpoint): Rewrite.
18814 (reinsert_breakpoints_at): New.
18815 (check_breakpoints): Rewrite.
18816 (breakpoint_here): New.
18817 (breakpoint_inserted_here): New.
18818 (check_mem_read): Adjust.
18819 * mem-break.h (breakpoints_supported, breakpoint_here)
18820 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18821 (reinsert_breakpoint_by_bp): Delete declaration.
18822 (delete_reinsert_breakpoints): Declare.
18823 (reinsert_breakpoint): Delete declaration.
18824 (reinsert_breakpoints_at): Declare.
18825 (uninsert_breakpoint): Delete declaration.
18826 (uninsert_breakpoints_at): Declare.
18827 (check_breakpoints): Adjust prototype.
18828 * server.h: Adjust include order.
18829 (struct thread_info): Declare here. Add a `last_status' field.
18831 2010-03-23 Michael Snyder <msnyder@vmware.com>
18833 * server.c (crc32): New function.
18834 (handle_query): Add handling for 'qCRC:' request.
18836 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18838 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18839 lwp had been stopped by a watchpoint.
18841 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18843 * server.h (internal_error): Declare.
18844 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18845 * utils.c (internal_error): New function.
18847 2010-03-15 Andreas Schwab <schwab@redhat.com>
18849 * configure.srv: Fix typo setting srv_regobj.
18851 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18853 * linux-low.c (fetch_register): Avoid passing a non string literal
18855 (usr_store_inferior_registers): Ditto.
18857 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18859 * linux-low.c (linux_write_memory): Bail out early if peeking
18862 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18864 * linux-low.h (struct lwp_info): New fields
18865 `stopped_by_watchpoint' and `stopped_data_address'.
18866 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18867 here, and cache them in the lwp object.
18868 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18870 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18872 (linux_stopped_by_watchpoint): Rewrite.
18873 (linux_stopped_data_address): Rewrite.
18875 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18877 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18878 switching the current inferior, not before.
18880 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18882 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18883 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18884 i386-linux.c and amd64-linux.c.
18885 (reg-i386.o): Removed.
18886 (reg-i386.c): Likewise.
18887 (reg-i386-linux.o): Likewise.
18888 (reg-i386-linux.c): Likewise.
18889 (reg-x86-64.o): Likewise.
18890 (reg-x86-64.c): Likewise.
18891 (reg-x86-64-linux.o): Likewise.
18892 (reg-x86-64-linux.c): Likewise.
18894 (i386.c): Likewise.
18895 (i386-linux.o): Likewise.
18896 (i386-linux.c): Likewise.
18897 (amd64.o): Likewise.
18898 (amd64.c): Likewise.
18899 (amd64-linux.o): Likewise.
18900 (amd64-linux.c): Likewise.
18902 * configure.srv (srv_i386_regobj): New.
18903 (srv_i386_linux_regobj): Likewise.
18904 (srv_amd64_regobj): Likewise.
18905 (srv_amd64_linux_regobj): Likewise.
18906 (srv_i386_32bit_xmlfiles): Likewise.
18907 (srv_i386_64bit_xmlfiles): Likewise.
18908 (srv_i386_xmlfiles): Likewise.
18909 (srv_amd64_xmlfiles): Likewise.
18910 (srv_i386_linux_xmlfiles): Likewise.
18911 (srv_amd64_linux_xmlfiles): Likewise.
18912 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18913 srv_xmlfiles to $srv_i386_xmlfiles.
18914 (i[34567]86-*-mingw32ce*): Likewise.
18915 (i[34567]86-*-mingw*): Likewise.
18916 (i[34567]86-*-nto*): Likewise.
18917 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18918 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18919 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18920 (x86_64-*-linux*): Likewise.
18922 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18923 (init_registers_amd64_linux): New.
18924 (x86_arch_setup): Replace init_registers_x86_64_linux with
18925 init_registers_amd64_linux.
18927 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18929 * configure.ac: Check for libdl. If it is not available link against
18930 static libthread_db.
18931 * configure: Regenerate.
18933 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18937 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18938 handing a read watchpoint.
18939 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18941 2010-02-12 Doug Evans <dje@google.com>
18943 * linux-low.c (linux_supports_tracefork_flag): Document.
18944 (linux_look_up_symbols): Add comment.
18946 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18948 * regcache.c (supply_register): Clear regcache if buf is NULL.
18950 2010-02-02 Nicolas Roche <roche@sourceware.org>
18951 Joel Brobecker <brobecker@adacore.com>
18953 * inferiors.c (find_inferior): Add function documentation.
18954 (unloaded_dll): Handle the case where the unloaded dll has not
18955 been previously registered in the dll list.
18957 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18959 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18960 (thumb2_breakpoint): New.
18961 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18963 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18965 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18966 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18969 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18971 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18973 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18975 * linux-s390-low.c (s390_collect_ptrace_register)
18976 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18978 2010-01-21 Doug Evans <dje@google.com>
18980 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18981 (PTRACE_ARG4_TYPE): New macro.
18982 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18983 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18984 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18985 (usr_store_inferior_registers): Ditto.
18986 (linux_read_memory, linux_write_memory): Ditto.
18987 (linux_test_for_tracefork): Ditto.
18989 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18990 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18992 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18994 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18997 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18999 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19000 prototype to take a regcache. Adjust.
19002 2010-01-20 Pedro Alves <pedro@codesourcery.com>
19004 * regcache.h (struct thread_info): Forward declare.
19005 (struct regcache): New.
19006 (new_register_cache): Adjust prototype.
19007 (get_thread_regcache): Declare.
19008 (free_register_cache): Adjust prototype.
19009 (registers_to_string, registers_from_string): Ditto.
19010 (supply_register, supply_register_by_name, collect_register)
19011 (collect_register_as_string, collect_register_by_name): Ditto.
19012 * regcache.c (struct inferior_regcache_data): Delete.
19013 (get_regcache): Rename to ...
19014 (get_thread_regcache): ... this. Adjust. Switch inferior before
19015 fetching registers.
19016 (regcache_invalidate_one): Adjust.
19017 (regcache_invalidate): Fix prototype.
19018 (new_register_cache): Return the new register cache.
19019 (free_register_cache): Change prototype.
19020 (realloc_register_cache): Adjust.
19021 (registers_to_string): Change prototype to take a regcache. Adjust.
19022 (registers_from_string): Ditto.
19023 (register_data): Ditto.
19024 (supply_register): Ditto.
19025 (supply_register_by_name): Ditto.
19026 (collect_register): Ditto.
19027 (collect_register_as_string): Ditto.
19028 (collect_register_by_name): Ditto.
19029 * server.c (process_serial_event): Adjust.
19030 * linux-low.h (regset_fill_func, regset_store_func): Change
19032 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19034 * linux-low.c (get_stop_pc): Adjust.
19035 (check_removed_breakpoint): Adjust.
19036 (linux_wait_for_event): Adjust.
19037 (linux_resume_one_lwp): Adjust.
19038 (fetch_register): Add regcache parameter. Adjust.
19039 (usr_store_inferior_registers): Ditto.
19040 (regsets_fetch_inferior_registers): Ditto.
19041 (regsets_store_inferior_registers): Ditto.
19042 (linux_fetch_registers, linux_store_registers): Ditto.
19043 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19045 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19047 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19048 prototype to take a regcache.
19049 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19050 * remote-utils.c (convert_ascii_to_int, outreg)
19051 (prepare_resume_reply): Change prototype to take a regcache.
19053 * target.h (struct target_ops) <fetch_registers, store_registers>:
19054 Change prototype to take a regcache.
19055 (fetch_inferior_registers, store_inferior_registers): Change
19056 prototype to take a regcache. Adjust.
19057 * proc-service.c (ps_lgetregs): Adjust.
19058 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19059 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19060 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19061 take a regcache. Adjust.
19062 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19063 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19064 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19065 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19066 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19067 (cris_cannot_fetch_register):
19068 (cris_breakpoint_at): Change prototype to take a regcache.
19070 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19071 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19072 to take a regcache. Adjust.
19073 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19075 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19076 take a regcache. Adjust.
19077 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19078 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19079 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19080 * linux-mips-low.c (mips_get_pc):
19081 (mips_set_pc): Change prototype to take a regcache. Adjust.
19082 (mips_reinsert_addr): Adjust.
19083 (mips_collect_register): Change prototype to take a regcache.
19085 (mips_supply_register):
19086 (mips_collect_register_32bit, mips_supply_register_32bit)
19087 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19088 (mips_store_fpregset): Ditto.
19089 * linux-ppc-low.c (ppc_supply_ptrace_register)
19090 (ppc_supply_ptrace_register): Ditto.
19091 (parse_spufs_run): Adjust.
19092 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19093 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19094 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19095 take a regcache. Adjust.
19096 * linux-s390-low.c (s390_collect_ptrace_register)
19097 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19098 (s390_set_pc): Change prototype to take a regcache. Adjust.
19099 (s390_arch_setup): Adjust.
19100 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19101 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19102 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19103 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19104 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19106 (sparc_breakpoint_at): Adjust.
19107 * linux-xtensa-low.c (xtensa_fill_gregset):
19108 (xtensa_store_gregset):
19109 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19110 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19111 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19112 prototype to take a regcache. Adjust.
19113 * win32-arm-low.c (arm_fetch_inferior_register)
19114 (arm_store_inferior_register): Change prototype to take a
19116 * win32-i386-low.c (i386_fetch_inferior_register)
19117 (i386_store_inferior_register): Change prototype to take a
19119 * win32-low.c (child_fetch_inferior_registers)
19120 (child_store_inferior_registers): Change prototype to take a
19122 (win32_wait): Adjust.
19123 (win32_fetch_inferior_registers): Change prototype to take a
19125 (win32_store_inferior_registers): Adjust.
19126 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19127 store_inferior_register>: Change prototype to take a regcache.
19129 2010-01-20 Doug Evans <dje@google.com>
19131 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19133 (linux_wait_for_event1, linux_init_signals): Ditto.
19134 (W_STOPCODE): Provide definition if missing.
19136 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19138 * linux-low.c (linux_core_of_thread): New.
19139 (compare_ints, show_process, list_threads): New.
19140 (linux_qxfer_osdata): Report threads and cores.
19141 (linux_target_op): Register linux_core_of_thread.
19142 * remote-utils.c (prepare_resume_reply): Report the core.
19143 (buffer_xml_printf): Support %d specifier.
19144 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19146 (handle_query): Handle qXfer:threads. Announce availability
19148 * target.h (struct target_ops): New field core_of_thread.
19150 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19152 * Makefile.in (clean): Remove new generated files.
19153 (reg-s390.o, reg-s390.c): Remove rules.
19154 (reg-s390x.o, reg-s390x.c): Likewise.
19155 (s390-linux32.o, s390-linux32.c): Add rules.
19156 (s390-linux64.o, s390-linux64.c): Likewise.
19157 (s390x-linux64.o, s390x-linux64.c): Likewise.
19158 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19159 * linux-s390-low.c: Include <elf.h>.
19160 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19161 (init_registers_s390): Remove prototype.
19162 (init_registers_s390x): Likewise.
19163 (init_registers_s390_linux32): Add prototype.
19164 (init_registers_s390_linux64): Likewise.
19165 (init_registers_s390x_linux64): Likewise.
19166 (s390_num_regs_3264): New define.
19167 (s390_regmap_3264): New global variable.
19168 (s390_cannot_fetch_register): Remove obsolete check.
19169 (s390_cannot_store_register): Likewise.
19170 (s390_collect_ptrace_register): Handle upper/lower register halves.
19171 (s390_supply_ptrace_register): Likewise.
19172 (s390_fill_gregset): Update to register number changes.
19173 (s390_get_hwcap): New routine.
19174 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19175 Install appropriate regmap and register set.
19177 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19179 * server.c (gdbserver_version): Update copyright year to 2010.
19180 * gdbreplay.c (gdbreplay_version): Likewise.
19182 2009-12-28 Doug Evans <dje@google.com>
19184 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19185 elf/external.h. Include <elf.h> instead but only if necessary.
19187 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19189 * linux-low.c (linux_remove_process): Remove `detaching'
19190 parameter. Don't release/detach from thread_db here.
19191 (linux_kill): Release/detach from thread_db here, ...
19192 (linux_detach): ... and here, before actually detaching.
19193 (linux_wait_1): ... and here, when a process exits.
19194 * thread-db.c (any_thread_of): New.
19195 (thread_db_free): Switch the current inferior to a thread of the
19198 2009-12-21 Doug Evans <dje@google.com>
19200 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19202 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19203 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19204 warning ifndef __NR_tkill. Move setting of errno there too.
19205 Delete unnecessary resetting of errno after syscall.
19206 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19208 * configure.ac: Check for dladdr.
19209 * config.in: Regenerate.
19210 * configure: Regenerate.
19211 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19212 (try_thread_db_load): Update.
19214 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19216 2009-12-18 Doug Evans <dje@google.com>
19218 * event-loop.c: Include unistd.h if it exists.
19220 * linux-low.c (my_waitpid): Move definition away from being in
19221 between linux_tracefork_child/linux_test_for_tracefork.
19223 * gdb_proc_service.h (psaddr_t): Fix type.
19224 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19225 signature to match glibc.
19227 2009-12-16 Doug Evans <dje@google.com>
19229 * linux-low.c (linux_read_memory): Fix argument to read.
19231 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19233 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19234 events, don't leave current_inferior pointing at null.
19236 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19238 * win32-low.c (LOG): Delete.
19239 (OUTMSG): Output to stderr.
19240 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19241 on compile time LOG macro.
19242 (win32_wait): Fix debug output.
19244 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19246 * win32-low.c (win32_add_one_solib): If the dll name is
19247 "ntdll.dll", prepend the system directory to the dll path.
19249 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19251 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19253 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19254 Vladimir Prus <vladimir@codesourcery.com>
19256 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19257 * configure.ac: Check for __mcoldfire__ and set
19258 gdb_cv_m68k_is_coldfire.
19259 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19260 reg-cf.o and reg-m68k.o.
19261 * configure: Regenerated.
19263 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19265 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19266 Pass it to thread_db_free.
19267 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19268 proper `detaching' argument to linux_remove_process.
19269 * linux-low.h (thread_db_free): Add `detaching' parameter.
19270 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19272 (thread_db_free): Add `detaching' parameter. Only
19273 call td_ta_clear_event if detaching from process.
19275 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19277 * thread-db.c (thread_db_free): Fix typo.
19279 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19282 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19284 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19286 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19287 with an i686 compiler.
19288 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19290 * configure: Rebuilt.
19292 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19296 * server.c (handle_search_memory_1): Correct read_addr initialization
19297 in loop for searching subsequent chunks.
19299 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19301 * configure.ac: New --with-libthread-db option.
19302 * thread-db.c: Allow direct dependence on libthread_db.
19303 (thread_db_free): Adjust.
19304 * config.in: Regenerate.
19305 * configure: Likewise.
19307 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19310 * thread-db.c (attach_thread): New function.
19311 (maybe_attach_thread): Return success/failure.
19312 (find_new_threads_callback): Adjust.
19313 (thread_db_find_new_threads): Loop until no new threads.
19315 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19317 * proc-service.c (ps_lgetregs): Formatting.
19319 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19321 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19322 * configure.ac: Adjust.
19323 * linux-low.h (struct process_info_private): Move members to struct
19325 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19326 * linux-low.c (linux_remove_process): Adjust.
19327 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19328 * server.c (handle_query): Move code ...
19329 (handle_monitor_command): ... here. New function.
19330 * target.h (struct target_ops): New member.
19331 * thread-db.c (struct thread_db): New.
19332 (libthread_db_search_path): New variable.
19333 (thread_db_create_event, thread_db_enable_reporting)
19334 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19335 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19336 (try_thread_db_load_1, dladdr_to_soname): New functions.
19337 (try_thread_db_load, thread_db_load_search): New functions.
19338 (thread_db_init): Search for libthread_db.
19339 (thread_db_free): New function.
19340 (thread_db_handle_monitor_command): Likewise.
19341 * config.in: Regenerate.
19342 * configure: Regenerate.
19344 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19346 * spu-low.c (spu_kill): Wait for inferior to terminate.
19347 Call clear_inferiors.
19348 (spu_detach): Call clear_inferiors.
19350 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19352 * aclocal.m4: Regenerate.
19353 * config.in: Likewise.
19354 * configure: Likewise.
19356 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19358 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19359 (parse_spufs_run): New function.
19360 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19361 (ppc_breakpoint_at): Handle SPU breakpoints.
19363 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19365 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19366 (SPUFS_MAGIC): Define.
19367 (spu_enumerate_spu_ids): New function.
19368 (linux_qxfer_spu): New function.
19369 (linux_target_ops): Install linux_qxfer_spu.
19371 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19373 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19374 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19375 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19376 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19377 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19378 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19379 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19380 (init_registers_powerpc_cell32l): Add prototype.
19381 (init_registers_powerpc_cell64l): Likewise.
19382 (ppc_arch_setup): Detect Cell/B.E. architecture.
19384 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19386 * Makefile.in (datarootdir): New variable.
19388 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19390 * linux-low.c (linux_write_memory): Update debugging output.
19391 * Makefile.in (clean): Add new descriptions.
19392 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19393 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19394 * configure.srv: Add new files for arm*-*-linux*.
19395 * linux-arm-low.c: Add new declarations.
19396 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19397 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19398 (HWCAP_VFPv3D16): New.
19399 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19400 instead of __IWMMXT__.
19401 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19402 (arm_arch_setup): New.
19403 (target_regsets): Remove #ifdef. Add VFP regset.
19404 (the_low_target): Use arm_arch_setup.
19406 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19408 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19409 the main thread again.
19411 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19413 Adding Neutrino gdbserver.
19414 * configure: Regenerated.
19415 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19416 * configure.srv (i[34567]86-*-nto*): New target.
19417 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19418 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19419 (nto_comctrl) [__QNX__]: New function.
19420 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19422 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19424 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19427 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19428 Pedro Alves <pedro@codesourcery.com>
19430 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19431 don't support CONTEXT_EXTENDED_REGISTERS.
19432 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19433 (the_low_target): Install them.
19434 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19435 failing with ERROR_PIPE_NOT_CONNECTED.
19437 2009-06-30 Doug Evans <dje@google.com>
19438 Pierre Muller <muller@ics.u-strasbg.fr>
19440 Add h/w watchpoint support to x86-linux, win32-i386.
19441 * Makefile.in (SFILES): Add i386-low.c
19442 (i386_low_h): Define.
19443 (i386-low.o): Add dependencies.
19444 (linux-x86-low.o): Add i386-low.h dependency.
19445 (win32-i386-low.o): Ditto.
19446 * i386-low.c: New file.
19447 * i386-low.h: New file.
19448 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19449 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19450 * linux-low.c (linux_add_process): Initialize arch_private.
19451 (linux_remove_process): Free arch_private.
19452 (add_lwp): Initialize arch_private.
19453 (delete_lwp): Free arch_private.
19454 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19456 * linux-low.h (process_info_private): New member arch_private.
19457 (lwp_info): New member arch_private.
19458 (linux_target_ops): New members new_process, new_thread,
19460 (ptid_of): New macro.
19461 * linux-x86-low.c: Include stddef.h, i386-low.h.
19462 (arch_process_info): New struct.
19463 (arch_lwp_info): New struct.
19464 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19465 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19466 (i386_dr_low_get_status): New function.
19467 (x86_insert_point, x86_remove_point): New functions.
19468 (x86_stopped_by_watchpoint): New function.
19469 (x86_stopped_data_address): New function.
19470 (x86_linux_new_process, x86_linux_new_thread): New functions.
19471 (x86_linux_prepare_to_resume): New function.
19472 (the_low_target): Add entries for insert_point, remove_point,
19473 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19475 * server.c (debug_hw_points): New global.
19476 (monitor_show_help): Document set debug-hw-points.
19477 (handle_query): Process "set debug-hw-points".
19478 * server.h (debug_hw_points): Declare.
19479 (paddress): Declare.
19480 * utils.c (NUMCELLS, CELLSIZE): New macros.
19481 (get_sell, xsnprintf, paddress): New functions.
19482 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19483 remove_point, stopped_by_watchpoint, stopped_data_address.
19484 * win32-i386-low.c: Include i386-low.h.
19485 (debug_reg_state): Replaces dr.
19486 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19487 (i386_dr_low_get_status): New function.
19488 (i386_insert_point, i386_remove_point): New functions.
19489 (i386_stopped_by_watchpoint): New function.
19490 (i386_stopped_data_address): New function.
19491 (i386_initial_stuff): Update.
19492 (get_thread_context,set_thread_context,i386_thread_added): Update.
19493 (the_low_target): Add entries for insert_point,
19494 remove_point, stopped_by_watchpoint, stopped_data_address.
19495 * win32-low.c (win32_insert_watchpoint): New function.
19496 (win32_remove_watchpoint): New function.
19497 (win32_stopped_by_watchpoint): New function.
19498 (win32_stopped_data_address): New function.
19499 (win32_target_ops): Add entries for insert_watchpoint,
19500 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19501 * win32-low.h (win32_target_ops): New members insert_point,
19502 remove_point, stopped_by_watchpoint, stopped_data_address.
19504 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19506 * server.c (process_serial_event): Re-return unsupported, not
19507 error, if the type isn't recognized. Re-allow supporting only
19508 insert or remove packets. Also call require_running for
19509 breakpoints. Add missing break statement to default case. Tidy.
19510 * target.h (struct target_ops): Rename insert_watchpoint to
19511 insert_point, and remove_watchpoint to remove_point.
19513 * linux-low.h (struct linux_target_ops): Likewise.
19514 * linux-low.c (linux_insert_watchpoint): Rename to ...
19515 (linux_insert_point): ... this. Adjust.
19516 (linux_remove_watchpoint): Rename to ...
19517 (linux_remove_point): ... this. Adjust.
19518 (linux_target_ops): Adjust.
19519 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19520 (cris_insert_point): ... this.
19521 (cris_remove_watchpoint): Rename to ...
19522 (cris_remove_point): ... this.
19523 (the_low_target): Adjust.
19525 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19527 * server.c (handle_v_kill): Pass signal_pid to
19528 kill_inferior if multi_process is zero.
19530 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19532 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19533 * target.h (target_ops): Comment for *_watchpoint to make it clear
19534 the functions can get types '0' and '1'.
19536 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19538 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19539 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19540 * regcache.c (get_regcache): Likewise.
19541 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19542 * win32-low.c (child_fetch_inferior_registers): Remove check for
19545 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19546 Pedro Alves <pedro@codesourcery.com>
19548 * target.h (struct target_ops) <supports_multi_process>: New
19550 (target_supports_multi_process): New.
19551 * server.c (handle_query): Even if GDB reports support, only
19552 enable multi-process if the target also supports it. Report
19553 multi-process support only if the target backend supports it.
19554 * linux-low.c (linux_supports_multi_process): New function.
19555 (linux_target_ops): Install it as target_supports_multi_process
19558 2009-05-24 Doug Evans <dje@google.com>
19560 Global renaming of find_thread_pid to find_thread_ptid.
19561 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19562 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19563 All callers updated.
19565 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19566 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19569 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19570 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19571 (linux_resume_one_lwp): Ditto.
19573 2009-05-23 Doug Evans <dje@google.com>
19575 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19576 from struct inferior_list_entry * to struct lwp_info *.
19577 All callers updated.
19579 2009-05-13 Doug Evans <dje@google.com>
19581 * linux-x86-low.c: Don't include assert.h.
19582 (x86_siginfo_fixup): Use fatal, not assert.
19583 (x86_arch_setup): Fix comment.
19585 2009-05-12 Doug Evans <dje@google.com>
19587 Biarch support for i386/amd64 gdbserver.
19588 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19589 Add linux-x86-low.c.
19590 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19591 (linux-x86-low.o): Add.
19592 * linux-x86-64-low.c: Delete.
19593 * linux-i386-low.c: Delete.
19594 * linux-x86-low.c: New file.
19595 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19597 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19599 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19600 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19601 (linux_child_pid_to_exec_file): New function.
19602 (elf_64_header_p, elf_64_file_p): New functions.
19603 (siginfo_fixup): New function.
19604 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19605 give target a chance to convert layout.
19606 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19607 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19609 2009-05-07 Doug Evans <dje@google.com>
19611 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19612 (regsets_store_inferior_registers): Ditto.
19614 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19618 * linux-low.c (must_set_ptrace_flags): Delete.
19619 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19621 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19622 `lwp->must_set_ptrace_flags' instead.
19623 (linux_wait_for_event_1): Set ptrace options here.
19624 (linux_wait_1): ... not here.
19626 2009-04-30 Doug Evans <dje@google.com>
19628 * inferiors.c (started_inferior_callback): New function.
19629 (attached_inferior_callback): New function.
19630 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19631 * server.c (print_started_pid, print_attached_pid): New functions.
19632 (detach_or_kill_for_exit): New function.
19633 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19634 * server.h (have_started_inferiors_p): Declare.
19635 (have_attached_inferiors_p): Declare.
19637 * inferiors.c (remove_process): Fix memory leak, free process.
19638 * linux-low.c (linux_remove_process): New function.
19639 (linux_kill): Call it instead of remove_process.
19640 (linux_detach, linux_wait_1): Ditto.
19642 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19644 * configure.srv: Add x86 Windows CE target.
19646 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19648 * inferiors.c (get_thread_process): Make global.
19649 * server.h (get_thread_process): Add prototype.
19650 * thread-db.c (find_one_thread): Use get_thread_process
19651 instead of current_process.
19652 (thread_db_get_tls_address): Do not crash if called when
19653 thread layer is not yet initialized.
19655 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19657 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19658 * spu-low.c (current_tid): Rename to ...
19659 (current_ptid): ... this.
19660 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19661 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19662 ptid_get_lwp (current_ptid) instead of current_tid.
19663 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19664 instead of current_tid. Use find_process_pid to verify pid
19665 argument is valid. Pass proper argument to remove_process.
19666 (spu_thread_alive): Compare current_ptid instead of current_tid.
19667 (spu_resume): Likewise.
19669 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19671 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19674 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19676 Implement the multiprocess extensions, and add linux multiprocess
19679 * server.h (ULONGEST): Declare.
19680 (struct ptid, ptid_t): New.
19681 (minus_one_ptid, null_ptid): Declare.
19682 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19683 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19684 (struct inferior_list_entry): Change `id' type from unsigned from
19686 (struct sym_cache, struct breakpoint, struct
19687 process_info_private): Forward declare.
19688 (struct process_info): Declare.
19689 (current_process): Declare.
19690 (all_processes): Declare.
19691 (initialize_inferiors): Declare.
19692 (add_thread): Adjust to use ptid_t.
19693 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19694 (add_process, remove_process, find_thread_pid): Declare.
19695 (find_inferior_id): Adjust to use ptid_t.
19696 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19697 (multi_process): Declare.
19698 (push_event): Adjust to use ptid_t.
19699 (read_ptid, write_ptid): Declare.
19700 (prepare_resume_reply): Adjust to use ptid_t.
19701 (clear_symbol_cache): Declare.
19702 * inferiors.c (all_processes): New.
19703 (null_ptid, minus_one_ptid): New.
19704 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19705 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19706 (add_thread): Change unsigned long to ptid. Remove gdb_id
19708 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19709 (gdb_id_to_thread): Rename to ...
19710 (find_thread_pid): ... this. Change unsigned long to ptid.
19711 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19712 (loaded_dll, pull_pid_from_list): Adjust.
19713 (add_process, remove_process, find_process_pid)
19714 (get_thread_process, current_process, initialize_inferiors): New.
19715 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19716 (struct target_waitstatus) <related_pid>: Ditto.
19717 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19718 return type to int.
19719 (struct target_ops) <join>: Add `pid' argument.
19720 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19721 (struct target_ops) <wait>: Add `ptid' field. Change return type
19723 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19724 (mywait): Add `ptid' argument. Change return type to ptid_t.
19725 (target_pid_to_str): Declare.
19726 * target.c (set_desired_inferior): Adjust to use ptids.
19727 (mywait): Add new `ptid' argument. Adjust.
19728 (target_pid_to_str): New.
19729 * mem-break.h (free_all_breakpoints): Declare.
19730 * mem-break.c (breakpoints): Delelete.
19731 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19732 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19733 to use per-process breakpoint list.
19734 (free_all_breakpoints): New.
19735 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19736 (symbol_cache, all_symbols_looked_up): Delete.
19738 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19740 (prepare_resume_reply): Change ptid argument's type from unsigned
19741 long to ptid_t. Adjust. Implement W;process and X;process.
19742 (free_sym_cache, clear_symbol_cache): New.
19743 (look_up_one_symbol): Adjust to per-process symbol cache. *
19744 * server.c (cont_thread, general_thread, step_thread): Change type
19746 (attached): Delete.
19747 (multi_process): New.
19748 (last_ptid): Change type to ptid_t.
19749 (struct vstop_notif) <ptid>: Change type to ptid_t.
19750 (queue_stop_reply, push_event): Change `ptid' argument's type to
19752 (discard_queued_stop_replies): Add `pid' argument.
19753 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19754 changes. Don't reference the `attached' global.
19755 (attach_inferior): Adjust to mywait interface changes.
19756 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19757 features. Handle and report "multiprocess+". Handle
19759 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19761 (handle_v_kill): New.
19762 (handle_v_stopped): Adjust to use target_pid_to_str.
19763 (handle_v_requests): Allow multiple attaches and runs when
19764 multiprocess extensions are in effect. Handle "vKill".
19765 (myresume): Adjust to use ptids.
19766 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19767 (handle_status): Adjust to discard_queued_stop_replies interface
19769 (first_thread_of, kill_inferior_callback)
19770 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19771 (main): Call initialize_inferiors. Adjust to use ptids, killing
19772 and detaching from all inferiors. Handle multiprocess packet
19774 * linux-low.h: Include gdb_proc_service.h.
19775 (struct process_info_private): New.
19776 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19777 <lwpid_of>: Use ptid_get_lwp.
19778 (get_lwp_thread): Adjust.
19779 (struct lwp_info): Add `dead' member.
19780 (find_lwp_pid): Declare.
19781 * linux-low.c (thread_db_active): Delete.
19782 (new_inferior): Adjust comment.
19783 (inferior_pid): Delete.
19784 (linux_add_process): New.
19785 (handle_extended_wait): Adjust.
19786 (add_lwp): Change unsigned long to ptid.
19787 (linux_create_inferior): Add process to processes table. Adjust
19788 to use ptids. Don't set new_inferior here.
19789 (linux_attach_lwp): Rename to ...
19790 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19791 it. Adjust to use ptids.
19792 (linux_attach_lwp): New.
19793 (linux_attach): Add process to processes table. Don't set
19795 (struct counter): New.
19796 (second_thread_of_pid_p, last_thread_of_process_p): New.
19797 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19798 multiple processes.
19799 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19800 processes. Remove process from process table.
19801 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19802 to multiple processes.
19803 (any_thread_of): New.
19804 (linux_detach): Add `pid' argument, and handle it. Remove process
19805 from processes table.
19806 (linux_join): Add `pid' argument. Handle it.
19807 (linux_thread_alive): Change unsighed long argument to ptid_t.
19808 Consider dead lwps as not being alive.
19809 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19810 threads we're not interested in.
19811 (same_lwp, find_lwp_pid): New.
19812 (linux_wait_for_lwp): Change `pid' argument's type from int to
19814 (linux_wait_for_event): Rename to ...
19815 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19816 from int to ptid_t. Adjust.
19817 (linux_wait_for_event): New.
19818 (linux_wait_1): Add `ptid' argument. Change return type to
19819 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19820 that exit from the process table.
19821 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19823 (mark_lwp_dead): New.
19824 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19825 stopping all threads, mark its main lwp as dead.
19826 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19828 (fetch_register, usr_store_inferior_registers)
19829 (regsets_fetch_inferior_registers)
19830 (regsets_store_inferior_registers, linux_read_memory)
19831 (linux_write_memory): Inline `inferior_pid'.
19832 (linux_look_up_symbols): Adjust to use per-process
19833 `thread_db_active'.
19834 (linux_request_interrupt): Adjust to use ptids.
19835 (linux_read_auxv): Inline `inferior_pid'.
19836 (initialize_low): Don't reference thread_db_active.
19837 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19838 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19839 (ps_getpid): Return the pid of the current inferior.
19840 * thread-db.c (proc_handle, thread_agent): Delete.
19841 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19843 (find_one_thread): Change argument type to ptid_t. Adjust to
19845 (maybe_attach_thread): Adjust to per-process data and ptids.
19846 (thread_db_find_new_threads): Ditto.
19847 (thread_db_init): Ditto.
19848 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19849 processes table. Adjust to use ptids.
19850 (spu_kill, spu_detach): Adjust interface. Remove process from
19852 (spu_join, spu_thread_alive): Adjust interface.
19853 (spu_wait): Adjust interface. Remove process from processes
19854 table. Adjust to use ptids.
19855 * win32-low.c (current_inferior_tid): Delete.
19856 (current_inferior_ptid): New.
19857 (debug_event_ptid): New.
19858 (thread_rec): Take a ptid. Adjust.
19859 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19860 (child_delete_thread): Ditto.
19861 (do_initial_child_stuff): Add `attached' argument. Add process to
19863 (child_fetch_inferior_registers, child_store_inferior_registers):
19865 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19866 (win32_attach): Pass 1 to do_initial_child_stuff.
19867 (win32_kill): Adjust interface. Remove process from processes
19869 (win32_detach): Ditto.
19870 (win32_join): Adjust interface.
19871 (win32_thread_alive): Take a ptid.
19872 (win32_resume): Adjust to use ptids.
19873 (get_child_debug_event): Ditto.
19874 (win32_wait): Adjust interface. Remove exiting process from
19877 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19879 Non-stop mode support.
19881 * server.h (non_stop): Declare.
19882 (gdb_client_data, handler_func): Declare.
19883 (delete_file_handler, add_file_handler, start_event_loop):
19885 (handle_serial_event, handle_target_event, push_event)
19886 (putpkt_notif): Declare.
19887 * target.h (enum resume_kind): New.
19888 (struct thread_resume): Replace `step' field by `kind' field.
19889 (TARGET_WNOHANG): Define.
19890 (struct target_ops) <wait>: Add `options' argument.
19891 <supports_non_stop, async, start_non_stop>: New fields.
19892 (target_supports_non_stop, target_async): New.
19893 (start_non_stop): Declare.
19894 (mywait): Add `options' argument.
19895 * target.c (mywait): Add `options' argument. Print child exit
19896 notifications here.
19897 (start_non_stop): New.
19898 * server.c (non_stop, own_buf, mem_buf): New globals.
19899 (struct vstop_notif): New.
19900 (notif_queue): New global.
19901 (queue_stop_reply, push_event, discard_queued_stop_replies)
19902 (send_next_stop_reply): New.
19903 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19905 (attach_inferior): In non-stop mode, don't wait for the target
19907 (handle_general_set): Handle QNonStop.
19908 (handle_query): When handling qC, return the current general
19909 thread, instead of the first thread of the list.
19910 (handle_query): If the backend supports non-stop mode, include
19911 QNonStop+ in the qSupported query response.
19912 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19914 (handle_v_attach, handle_v_run): Handle non-stop mode.
19915 (handle_v_stopped): New.
19916 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19917 (myresume): Adjust to use resume_kind. Handle non-stop.
19918 (queue_stop_reply_callback): New.
19919 (handle_status): Handle non-stop mode.
19920 (main): Clear non_stop flag on reconnection. Use the event-loop.
19921 Refactor serial protocol handling from here ...
19922 (process_serial_event): ... to this new function. When GDB
19923 selects any thread, select one here. In non-stop mode, wait until
19924 GDB acks all pending events before exiting.
19925 (handle_serial_event, handle_target_event): New.
19926 * remote-utils.c (remote_open): Install remote_desc in the event
19928 (remote_close): Remove remote_desc from the event loop.
19929 (putpkt_binary): Rename to...
19930 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19931 (putpkt_binary): New as wrapper around putpkt_binary_1.
19932 (putpkt_notif): New.
19933 (prepare_resume_reply): In non-stop mode, don't change the
19935 * event-loop.c: New.
19936 * Makefile.in (OBJ): Add event-loop.o.
19937 (event-loop.o): New rule.
19939 * linux-low.h (pid_of): Moved here.
19941 (get_lwp_thread): Use lwpid_of.
19942 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19943 * linux-low.c (pid_of): Delete.
19944 (inferior_pid): Use lwpid_of.
19945 (linux_event_pipe): New.
19946 (target_is_async_p): New.
19948 (handle_extended_wait): Use lwpid_of.
19949 (add_lwp): Don't set lwpid field.
19950 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19951 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19952 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19953 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19954 first. Adjust to linux_wait_for_event interface changes. Use
19956 (linux_detach): Don't delete the main lwp here.
19957 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19958 (status_pending_p): Don't consider explicitly suspended lwps.
19959 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19960 pointer. Add OPTIONS argument. Change return type to int. Use
19961 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19962 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19963 pointer. Add status pointer argument. Return a pid instead of a
19964 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19965 changes. In non-stop mode, don't switch to a random thread.
19966 (linux_wait): Rename to...
19967 (linux_wait_1): ... this. Add target_options argument, and handle
19968 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19969 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19970 clean exit and signal exit code. Don't stop all threads in
19971 non-stop mode. In all-stop mode, only stop all threads when
19972 reporting a stop to GDB. Handle explicit thread stop requests.
19973 (async_file_flush, async_file_mark): New.
19975 (send_sigstop): Use lwpid_of.
19976 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19977 interface changes. In non-stop mode, don't switch to a random
19979 (linux_resume_one_lwp): Use lwpid_of.
19980 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19981 (linux_resume_one_thread): ... this. Handle resume_stop. In
19982 non-stop mode, don't look for pending flag in all threads.
19983 (resume_status_pending_p): Don't consider explicitly suspended
19985 (my_waitpid): Reimplement. Emulate __WALL.
19986 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19988 (sigchld_handler, linux_supports_non_stop, linux_async)
19989 (linux_start_non_stop): New.
19990 (linux_target_ops): Register linux_supports_non_stop, linux_async
19991 and linux_start_non_stop.
19992 (initialize_low): Install SIGCHLD handler.
19993 * thread-db.c (thread_db_create_event, find_one_thread)
19994 (thread_db_get_tls_address): Use lwpid_of.
19995 * win32-low.c (win32_detach): Adjust to use resume_kind.
19996 (win32_wait): Add `options' argument.
19997 * spu-low.c (spu_resume): Adjust to use resume_kind.
19998 (spu_wait): Add `options' argument.
20000 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20002 Decouple target code from remote protocol.
20004 * target.h (enum target_waitkind): New.
20005 (struct target_waitstatus): New.
20006 (struct target_ops) <wait>: Return an unsigned long. Take a
20007 target_waitstatus pointer instead of a char pointer.
20008 (mywait): Likewise.
20009 * target.c (mywait): Change prototype to return an unsigned long.
20010 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20011 * server.h (thread_from_wait, old_thread_from_wait): Delete
20013 (prepare_resume_reply): Change prototype to take a
20015 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20016 (last_status, last_ptid): New.
20017 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20018 pid instead of a signal.
20019 (attach_inferior): Remove "status" and "signal" parameters.
20021 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20023 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20024 (handle_v_requests, myresume): Remove "status" and "signal"
20025 parameters. Adjust.
20026 (handle_status): New.
20027 (main): Delete local `status'. Adjust.
20028 * remote-utils.c: Include target.h.
20029 (prepare_resume_reply): Change prototype to take a
20030 target_waitstatus. Adjust.
20032 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20034 * spu-low.c (spu_wait): Adjust.
20035 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20037 (win32_wait): Adjust.
20039 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20041 * target.h (struct thread_resume): Delete leave_stopped member.
20042 (struct target_ops): Add a `n' argument to the `resume' callback.
20043 * server.c (start_inferior): Adjust.
20044 (handle_v_cont, myresume): Adjust.
20045 * linux-low.c (check_removed_breakpoint): Adjust to resume
20046 interface change, and to removed leave_stopped field.
20047 (resume_ptr): Delete.
20048 (struct thread_resume_array): New.
20049 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20050 resume interface change.
20051 (linux_continue_one_thread, linux_queue_one_thread)
20052 (resume_status_pending_p): Check if the resume field is NULL
20053 instead of checking the leave_stopped member.
20054 (linux_resume): Adjust to the target resume interface change.
20055 * spu-low.c (spu_resume): Adjust to the target resume interface
20057 * win32-low.c (win32_detach, win32_resume): Ditto.
20059 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20061 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20063 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20065 (linux_continue_one_thread): Only preserve the stepping flag if
20066 there's a pending breakpoint.
20068 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20070 * server.c (main): After the inferior having exited, call
20071 remote_close before exiting gdbserver.
20073 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20075 Fix size of FPSCR in Power 7 processors.
20076 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20077 (PPC_FEATURE_HAS_DFP): New #define.
20078 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20081 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20083 * server.c (handle_query) Whitespace and formatting.
20085 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20087 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20088 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20089 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20090 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20091 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20092 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20093 Makefile.in, configure.ac: Fix whitespace throughout.
20094 * configure: Regenerate.
20096 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20098 * inferiors.c (find_inferior): Make it safe for the callback
20099 function to delete the currently iterated inferior.
20101 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20103 * Makefile.in (linuw_low_h): Move higher.
20104 (thread-db.o): Depend on $(linux_low_h).
20106 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20108 Rename "process" to "lwp" throughout.
20110 * linux-low.c (all_processes): Rename to...
20111 (all_lwps): ... this.
20112 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20113 (add_process): Rename to ...
20114 (add_lwp): ... this. Adjust.
20115 (linux_create_inferior): Adjust.
20116 (linux_attach_lwp): Adjust.
20117 (linux_attach): Adjust.
20118 (linux_kill_one_process): Rename to ...
20119 (linux_kill_one_lwp): ... this. Adjust.
20120 (linux_kill): Adjust.
20121 (linux_detach_one_process): Rename to ...
20122 (linux_detach_one_lwp): ... this. Adjust.
20123 (linux_detach): Adjust.
20124 (check_removed_breakpoint): Adjust.
20125 (status_pending_p): Adjust.
20126 (linux_wait_for_process): Rename to ...
20127 (linux_wait_for_lwp): ... this. Adjust.
20128 (linux_wait_for_event): Adjust.
20129 (send_sigstop): Adjust.
20130 (wait_for_sigstop): Adjust.
20131 (stop_all_processes): Rename to ...
20132 (stop_all_lwps): ... this.
20133 (linux_resume_one_process): Rename to ...
20134 (linux_resume_one_lwp): ... this. Adjust.
20135 (linux_set_resume_request, linux_continue_one_thread)
20136 (linux_queue_one_thread, resume_status_pending_p)
20137 (usr_store_inferior_registers, regsets_store_inferior_registers)
20138 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20140 * linux-low.h (get_process): Rename to ...
20141 (get_lwp): ... this. Adjust.
20142 (get_thread_process): Rename to ...
20143 (get_thread_lwp): ... this. Adjust.
20144 (get_process_thread): Rename to ...
20145 (get_lwp_thread): ... this. Adjust.
20146 (struct process_info): Rename to ...
20147 (struct lwp_info): ... this.
20148 (all_processes): Rename to ...
20149 (all_lwps): ... this.
20150 * proc-service.c (ps_lgetregs): Adjust.
20151 * thread-db.c (thread_db_create_event, find_one_thread)
20152 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20154 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20156 * server.c (handle_query): Handle "qAttached".
20158 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20160 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20161 GPLv3, update license URL.
20163 2009-03-01 Doug Evans <dje@google.com>
20165 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20166 (server_h): Add gdb_signals.h.
20167 (signals.o): Update.
20168 * server.h (target_signal_from_host,target_signal_to_host_p)
20169 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20171 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20173 * remote-utils.c (getpkt): Also generate remote-debug
20174 information if noack_mode is set.
20176 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20178 * server.c (handle_query): Report qXfer:siginfo:read and
20179 qXfer:siginfo:write as supported and handle them.
20180 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20181 * linux-low.c (linux_xfer_siginfo): New.
20182 (linux_target_ops): Set it.
20184 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20186 * server.c (gdbserver_usage): Mention --remote-debug.
20187 (main): Accept '--remote-debug' switch.
20189 2009-01-18 Doug Evans <dje@google.com>
20191 * regcache.c (new_register_cache): No need to check result of xcalloc.
20192 * server.c (handle_search_memory): Back out calls to xmalloc,
20193 result is checked and error is returned to user upon failure.
20194 (handle_query): Ditto. Add more checks for result of malloc.
20195 (handle_v_cont): Check result of malloc, report error back to
20197 (handle_v_run): Ditto. Call freeargv.
20198 * server.h (freeargv): Declare.
20199 * utils.c (freeargv): New fn.
20201 2009-01-15 Doug Evans <dje@google.com>
20203 * gdbreplay.c (perror_with_name): Make arg const char *.
20204 * server.h (target_signal_to_name): Make return type const char *.
20205 * thread-db.c (thread_db_err_str): Make return type const char *.
20206 * utils.c (perror_with_name): Make arg const char *.
20208 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20210 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20211 when handling a EXIT_PROCESS_DEBUG_EVENT.
20213 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20215 * gdbreplay.c (gdbreplay_version): Update copyright year.
20216 * server.c (gdbserver_version): Likewise.
20218 2009-01-05 Doug Evans <dje@google.com>
20220 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20221 (handle_extended_wait): Improve comment.
20223 2008-12-13 Doug Evans <dje@google.com>
20225 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20226 * server.h (ATTR_MALLOC): New macro.
20227 (xmalloc,xcalloc,xstrdup): Declare.
20228 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20229 * inferiors.c: Ditto.
20230 * linux-low.c: Ditto.
20231 * mem-break.c: Ditto.
20232 * regcache.c: Ditto.
20233 * remote-utils.c: Ditto.
20236 * win32-low.c: Ditto.
20238 2008-12-12 Doug Evans <dje@google.com>
20240 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20241 in debugging printf.
20243 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20245 2008-12-09 Doug Evans <dje@google.com>
20247 * linux-low.h (struct process_info): Delete member tid, unused.
20248 * thread-db.c (find_one_thread): Update.
20249 (maybe_attach_thread): Update.
20251 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20253 * target.h (struct target_ops): Add qxfer_osdata member.
20254 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20256 (linux_qxfer_osdata): New functions.
20257 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20259 * server.c (handle_query): Handle "qXfer:osdata:read:".
20260 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20261 (buffer_xml_printf): New functions.
20262 * server.h (struct buffer): New.
20263 (buffer_grow_str, buffer_grow_str0): New macros.
20264 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20265 (buffer_xml_printf): Declare.
20267 2008-11-24 Doug Evans <dje@google.com>
20269 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20271 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20273 * server.c (handle_v_run): Always use the supplied argument list.
20275 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20277 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20278 (xtensa_regmap_table): Add entry for scompare1.
20280 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20282 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20283 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20284 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20285 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20286 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20287 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20288 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20289 XML target descriptions.
20290 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20291 when inferior is running on an ISA 2.05 or later processor. Add
20292 special case to return offset for full 64-bit slot of FPSCR when
20295 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20297 * Makefile.in (SFILES, clean): Added sparc64 files.
20298 (reg-sparc64.o, reg-sparc64.c): New.
20299 * configure.srv (sparc*-*-linux*): New configuration.
20300 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20301 syscall arguments for SPARC.
20302 (regsets_store_inferior_registers): Likewise.
20303 * linux-sparc-low.c: New file.
20305 2008-10-21 Doug Evans <dje@google.com>
20307 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20308 (READLINE_DIR,READLINE_DEP): Delete.
20309 (INTERNAL_CFLAGS): Update.
20310 (LINTFLAGS): Update.
20312 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20314 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20315 whole argv from the last run, not just argv[0].
20317 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20319 * regcache.c (new_register_cache): Return NULL if the register
20320 cache size isn't known yet.
20321 (free_register_cache): Avoid dereferencing a NULL regcache.
20323 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20325 * configure.srv: Merge MIPS and MIPS64.
20327 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20329 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20331 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20333 * Makefile.in: Add required vsx dependencies.
20335 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20336 Declare init_registers_powerpc_vsx32l.
20337 Declare init_registers_powerpc_vsx64l.
20338 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20339 (ppc_arch_setup): Check for VSX in hwcap.
20340 (ppc_fill_vsxregset): New function.
20341 (ppc_store_vsxregset): New function.
20342 Add new VSX entry in regset_info target_regsets.
20344 * configure.srv: Add new VSX dependencies.
20346 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20348 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20349 (remote_open): Set or clear transport_is_reliable.
20350 (putpkt_binary): Don't expect acks in noack mode.
20351 (getpkt): Don't send ack/nac in noack mode.
20352 * server.c (handle_general_set): Handle QStartNoAckMode.
20353 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20355 (main): Reset noack_mode on every connection.
20356 * server.h (noack_mode): Declare.
20358 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20360 * Makefile.in (GDBREPLAY_OBS): New variable.
20361 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20363 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20364 Daniel Jacobowitz <dan@codesourcery.com>
20366 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20367 (usr_store_inferior_registers): Likewise.
20368 (regsets_store_inferior_registers): Likewise.
20370 2008-07-31 Rolf Jansen <rj@surtec.com>
20371 Pedro Alves <pedro@codesourcery.com>
20373 * configure.ac: Check for memmem declaration.
20374 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20375 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20376 (disable_packet_qfThreadInfo): Unconditionally compile.
20377 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20378 * configure, config.in: Regenerate.
20380 2008-07-28 Doug Kwan <dougkwan@google.com>
20382 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20383 (linux_write_memory): Remove declaration of errno.
20385 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20387 * linux-low.c (handle_extended_wait): Do not use "status"
20388 variable uninitialized.
20390 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20392 * server.c (handle_v_attach): Inhibit reporting dll changes.
20394 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20396 * remote-utils.c (prepare_resume_reply): If requested, don't
20397 output "thread:TID" in the T stop reply.
20399 * server.c (disable_packet_vCont, disable_packet_Tthread)
20400 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20401 (handle_query): If requested, disable support for qC, qfThreadInfo
20403 (handle_v_requests): If requested, disable support for vCont.
20404 (gdbserver_show_disableable): New.
20405 (main): Handle --disable-packet and --disable-packet=LIST.
20407 * server.h (disable_packet_vCont, disable_packet_Tthread)
20408 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20410 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20412 * server.c (gdbserver_usage): Mention --version.
20414 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20416 * Makefile.in (gdbreplay.o): New rule.
20418 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20420 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20421 message, not gdbserver.
20423 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20424 Nathan Sidwell <nathan@codesourcery.com>
20425 Joseph Myers <joseph@codesourcery.com>
20427 * acinclude.m4: Include ../../config/acx.m4.
20428 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20429 * configure, config.in: Regenerate.
20430 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20431 * server.c (gdbserver_version): Print PKGVERSION.
20432 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20433 (main): Adjust gdbserver_usage calls.
20434 * gdbreplay.c (version, host_name): Add declarations.
20435 (gdbreplay_version, gdbreplay_usage): New.
20436 (main): Accept --version and --help options.
20438 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20440 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20441 (arm_breakpoint_at): Handle Thumb.
20442 (the_low_target): Add comment.
20444 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20446 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20448 2008-05-09 Doug Evans <dje@google.com>
20450 * server.h (decode_search_memory_packet): Declare.
20451 * remote-utils.c (decode_search_memory_packet): New fn.
20452 * server.c (handle_search_memory_1): New fn.
20453 (handle_search_memory): New fn.
20454 (handle_query): Process qSearch:memory packets.
20456 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20458 * regcache.c (registers_length): Remove.
20459 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20460 full register packet.
20461 * regcache.h (registers_length): Remove prototype.
20462 * server.h (PBUFSIZ): Define to 16384.
20464 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20466 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20467 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20468 powerpc-64l.o, and powerpc-altivec64l.o.
20469 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20470 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20471 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20472 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20473 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20476 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20477 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20478 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20479 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20480 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20481 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20482 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20483 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20484 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20485 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20488 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20489 (init_registers_powerpc_32l): ... this new prototype.
20490 (init_registers_powerpc_32): Remove, replace by ...
20491 (init_registers_powerpc_altivec32l): ... this new prototype.
20492 (init_registers_powerpc_e500): Remove, replace by ...
20493 (init_registers_powerpc_e500l): ... this new prototype.
20494 (init_registers_ppc64): Remove, replace by ...
20495 (init_registers_powerpc_64l): ... this new prototype.
20496 (init_registers_powerpc_64): Remove, replace by ...
20497 (init_registers_powerpc_altivec64l): ... this new prototype.
20498 (ppc_num_regs): Set to 73.
20499 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20500 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20501 (ppc_cannot_store_register): Handle orig_r3 and trap.
20502 (ppc_arch_setup): Update init_registers_... calls.
20503 (ppc_fill_gregset): Handle orig_r3 and trap.
20505 * inferiors.c (clear_inferiors): Reset current_inferior.
20507 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20509 * acinclude.m4: Add override.m4.
20510 * configure: Regenerate.
20512 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20514 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20515 initial call to init_register_ppc64.
20517 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20519 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20520 single powerpc*-*-linux* case.
20521 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20523 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20525 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20526 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20528 * linux-ppc-low.c: Include <elf.h>.
20529 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20530 (ppc_hwcap): New global variable.
20531 (ppc_regmap): Remove __SPE__ #ifdef sections.
20532 (ppc_regmap_e500): New global variable.
20533 (ppc_cannot_store_register): Update __SPE__ special case.
20534 (ppc_get_hwcap): New function.
20535 (ppc_arch_setup): Use it to determine whether inferior supports
20536 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20537 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20538 Do not access registers if target does not support AltiVec.
20539 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20540 Do not access registers if target does not support SPE.
20541 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20543 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20545 * linux-low.c (disabled_regsets, num_regsets): New.
20546 (use_regsets_p): Delete.
20547 (linux_wait_for_process): Clear disabled_regsets.
20548 (regsets_fetch_inferior_registers): Check and set it.
20549 (regsets_store_inferior_registers): Likewise.
20550 (linux_fetch_registers, linux_store_registers): Do not use
20552 (initialize_low): Allocate disabled_regsets.
20554 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20556 * Makefile.in (LIBOBJS): New.
20557 (OBS): Use LIBOBJS.
20558 (memmem.o): New rule.
20559 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20560 * configure: Regenerated.
20562 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20564 * server.c (handle_query): Never return "unsupported" for
20565 qXfer:features:read queries.
20567 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20569 * server.c (get_features_xml): Fix inverted condition.
20570 (handle_query): Always support qXfer:feature:read.
20572 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20574 * server.c (wrapper_argv): New.
20575 (start_inferior): Handle wrapper_argv. If set, expect an extra
20577 (gdbserver_usage): Document --wrapper.
20578 (main): Parse --wrapper.
20580 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20582 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20583 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20584 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20585 (ppc_set_pc): Likewise.
20586 (ppc_arch_setup): New function.
20587 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20588 of collect_register.
20589 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20591 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20593 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20594 instead of linux-ppc64-low.o.
20595 * linux-ppc64-low.c: Remove file.
20596 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20597 (linux-ppc64-low.o): Remove rule.
20599 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20600 (init_registers_powerpc_64): Likewise.
20601 (ppc_regmap): Conditionally define depending on __powerpc64__.
20602 (ppc_cannot_store_register): Do not special-case "fpscr" when
20603 compiled on __powerpc64__.
20604 (ppc_collect_ptrace_register): New function.
20605 (ppc_supply_ptrace_register): New function.
20606 (ppc_breakpoint): Change type to "unsigned int".
20607 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20608 (the_low_target): Conditionally provide initializers for the
20609 arch_setup member depending on __powerpc64__. Install
20610 collect_ptrace_register and supply_ptrace_register members.
20612 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20614 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20615 * server.c (gdbserver_xmltarget): Define.
20616 (get_features_xml): Use it to replace "target.xml" and arch_string.
20618 * configure.srv: Remove srv_xmltarget. Add XML files that were
20619 mentioned there to srv_xmlfiles instead. Remove conditional tests
20620 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20621 srv_xmlfiles and srv_regobj to include all possible choices.
20622 * configure.ac (srv_xmltarget): Remove.
20623 (srv_xmlfiles): Do not add "target.xml".
20624 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20625 checks for supplementary target information.
20626 * configure: Regenerate.
20627 * Makefile.in (XML_TARGET): Remove.
20628 (target.xml): Remove rule.
20629 (clean): Do not clean up target.xml.
20630 (.PRECIOUS): Do not mention target.xml.
20632 * target.h (struct target_ops): Remove arch_string member.
20633 * linux-low.c (linux_arch_string): Remove.
20634 (linux_target_ops): Remove arch_string initializer.
20635 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20636 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20637 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20638 * spu-low.c (spu_arch_string): Remove.
20639 (spu_target_ops): Remove arch_string initializer.
20640 * win32-low.c (win32_arch_string): Remove.
20641 (win32_target_ops): Remove arch_string initializer.
20642 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20643 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20644 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20646 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20648 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20649 by collect_ptrace_register and supply_ptrace_register hooks.
20650 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20651 instead of checking for the_low_target.left_pad_xfer.
20652 (usr_store_inferior_registers): Use collect_ptrace_register callback
20653 instead of checking for the_low_target.left_pad_xfer.
20655 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20656 (s390_supply_ptrace_register): Likewise.
20657 (s390_fill_gregset): Call s390_collect_ptrace_register.
20658 (the_low_target): Update.
20660 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20661 (ppc_supply_ptrace_register): Likewise.
20662 (the_low_target): Update.
20664 * linux-i386-low.c (the_low_target): Update.
20665 * linux-x86-64-low.c (the_low_target): Update.
20667 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20669 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20670 reg-s390.o and reg-s390x.o.
20672 * linux-low.c (new_inferior): New global variable.
20673 (linux_create_inferior, linux_attach): Set it.
20674 (linux_wait_for_process): Call the_low_target.arch_setup after the
20675 target has stopped for the first time.
20676 (initialize_low): Do not call the_low_target.arch_setup.
20678 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20679 (s390_set_pc): Likewise.
20680 (s390_arch_setup): New function.
20681 (the_low_target): Use s390_arch_setup as arch_setup routine.
20683 * regcache.c (realloc_register_cache): New function.
20684 (set_register_cache): Call it for each existing regcache.
20686 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20688 * server.h (init_registers): Remove prototype.
20690 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20691 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20692 instead of init_registers ().
20693 * linux-arm-low.c (init_registers_arm): Add prototype.
20694 (init_registers_arm_with_iwmmxt): Likewise.
20695 (the_low_target): Add initializer for arch_setup field.
20696 * linux-cris-low.c (init_registers_cris): Add prototype.
20697 (the_low_target): Add initializer for arch_setup field.
20698 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20699 (the_low_target): Add initializer for arch_setup field.
20700 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20701 (the_low_target): Add initializer for arch_setup field.
20702 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20703 (the_low_target): Add initializer for arch_setup field.
20704 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20705 (the_low_target): Add initializer for arch_setup field.
20706 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20707 (the_low_target): Add initializer for arch_setup field.
20708 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20709 (init_registers_mips64_linux): Likewise.
20710 (the_low_target): Add initializer for arch_setup field.
20711 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20712 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20713 (the_low_target): Add initializer for arch_setup field.
20714 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20715 (init_registers_powerpc_64): Likewise.
20716 (the_low_target): Add initializer for arch_setup field.
20717 * linux-s390-low.c (init_registers_s390): Add prototype.
20718 (init_registers_s390x): Likewise.
20719 (the_low_target): Add initializer for arch_setup field.
20720 * linux-sh-low.c (init_registers_sh): Add prototype.
20721 (the_low_target): Add initializer for arch_setup field.
20722 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20723 (the_low_target): Add initializer for arch_setup field.
20724 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20725 (the_low_target): Add initializer for arch_setup field.
20727 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20728 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20729 instead of init_registers ().
20730 * win32-arm-low.c (init_registers_arm): Add prototype.
20731 (the_low_target): Add initializer for arch_setup field.
20732 * win32-i386-low.c (init_registers_i386): Add prototype.
20733 (the_low_target): Add initializer for arch_setup field.
20735 * spu-low.c (init_registers_spu): Add prototype.
20736 (initialize_low): Call initialie_registers_spu () instead of
20737 initialize_registers ().
20739 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20741 * server.c (handle_v_requests): When handling the vRun and vAttach
20742 packets, if already debugging a process, don't kill it. Return an
20745 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20747 * server.c (handle_query): Correct length check.
20749 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20751 * win32-low.c (do_initial_child_stuff): Add process handle
20752 parameter. Set current_process_handle and current_process_id from the
20753 parameters. Clear globals.
20754 (win32_create_inferior): Don't set current_process_handle and
20755 current_process_id here. Instead pass them on the call to
20756 do_initial_child_stuff.
20757 (win32_attach): Likewise.
20758 (win32_clear_inferiors): New.
20759 (win32_kill): Don't close the current process handle or the
20760 current thread handle here. Instead call win32_clear_inferiors.
20761 (win32_detach): Don't open a new handle to the process. Call
20762 win32_clear_inferiors.
20763 (win32_join): Don't rely on current_process_handle; open a new
20764 handle using the process id.
20765 (win32_wait): Call win32_clear_inferiors when the inferior process
20768 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20770 * server.c (monitor_show_help): Add "exit".
20772 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20774 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20775 (clean): Add reg-xtensa.c.
20776 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20777 * configure.srv (xtensa*-*-linux*) New target.
20778 * linux-xtensa-low.c: New.
20779 * xtensa-xtregs.c: New.
20781 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20783 * hostio.c: Don't include errno.h.
20784 (errno_to_fileio_errno): Move to hostio-errno.
20785 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20786 error number outputting to the target->hostio_last_error callback.
20787 (hostio_packet_error): Use FILEIO_EINVAL directly.
20788 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20789 calls to hostio_error.
20790 * hostio-errno.c: New.
20791 * server.h (hostio_last_error_from_errno): Declare.
20792 * target.h (target_ops): Add hostio_last_error member.
20793 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20794 as hostio_last_error handler.
20795 * spu-low.c (spu_target_ops): Likewise.
20796 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20797 (wince_hostio_last_error): New functions.
20798 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20799 as hostio_last_error handler.
20800 (win32_target_ops) [!_WIN32_WCE]: Register
20801 hostio_last_error_from_errno as hostio_last_error handler.
20802 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20803 (hostio-errno.o): New rule.
20804 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20805 * configure.srv (srv_hostio_err_objs): New variable. Default to
20807 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20808 * configure: Regenerate.
20810 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20812 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20813 (linux_kill, linux_detach): Clean up the process list.
20814 * remote-utils.c (remote_open): Improve port number parsing.
20815 (putpkt_binary, input_interrupt): Only send interrupts if the target
20817 * server.c (extended_protocol): Make static.
20818 (attached): Define earlier.
20819 (exit_requested, response_needed, program_argv): New variables.
20820 (target_running): New.
20821 (start_inferior): Clear attached here.
20822 (attach_inferior): Set attached here.
20823 (require_running): Define.
20824 (handle_query): Use require_running and target_running. Implement
20826 (handle_v_attach, handle_v_run): New.
20827 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20828 (gdbserver_usage): Update.
20829 (main): Redo argument parsing. Handle --debug and --multi. Handle
20830 --attach along with other options or after the port. Save
20831 program_argv. Support no initial program. Resynchronize
20832 communication with GDB after an error. Handle "monitor exit".
20833 Use require_running and target_running. Always allow the extended
20834 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20835 restart in extended mode.
20836 * README: Refer to the GDB manual. Update --attach usage.
20838 2007-12-20 Andreas Schwab <schwab@suse.de>
20840 * linux-low.c (STACK_SIZE): Define.
20841 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20842 (linux_test_for_tracefork): Likewise.
20844 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20846 * linux-low.c (linux_wait_for_event): Update messages. Do not
20847 reinsert auto-delete breakpoints.
20848 * mem-break.c (struct breakpoint): Change return type of handler to
20850 (set_breakpoint_at): Update handler type.
20851 (reinsert_breakpoint_handler): Return 1 instead of calling
20853 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20855 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20856 * mem-break.h (set_breakpoint_at): Update handler type.
20857 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20858 * win32-low.c (auto_delete_breakpoint): New.
20859 (get_child_debug_event): Use it.
20861 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20863 * configure.ac: Check for pread and pwrite.
20864 * hostio.c (handle_pread): Fall back to lseek and read.
20865 (handle_pwrite): Fall back to lseek and write.
20866 * config.in, configure: Regenerated.
20868 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20870 * server.c (myresume): Add own_buf argument.
20871 (main): Update calls.
20873 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20875 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20876 * remote-utils.c (remote_open): Do not call disable_async_io.
20877 (block_async_io): Delete.
20878 (unblock_async_io): Make static.
20879 (initialize_async_io): New.
20880 * server.c (handle_v_cont): Handle async I/O here.
20881 (myresume): Likewise. Move other common resume tasks here...
20882 (main): ... from here. Call initialize_async_io. Disable async
20883 I/O before the main loop.
20884 * server.h (initialize_async_io): Declare.
20885 (block_async_io, unblock_async_io): Delete prototypes.
20886 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20888 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20890 * remote-utils.c (readchar): Allow binary data in received messages.
20892 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20894 * win32-low.c (attaching): New global.
20895 (win32_create_inferior): Clear the `attaching' global.
20896 (win32_attach): Set the `attaching' global.
20897 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20898 attaching. Only set a breakpoint at the entry point if not
20901 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20903 * server.c (main): Don't report dll events on the initial
20904 connection on attaches.
20906 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20908 * server.c (main): Relax numerical bases supported for the pid of
20909 the --attach command line argument.
20911 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20913 * win32-low.c (win32_attach): Call OpenProcess before
20914 DebugActiveProcess, not after. Add last error output to error
20917 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20919 * win32-low.c (win32_get_thread_context)
20920 (win32_set_thread_context): New functions.
20921 (thread_rec): Use win32_get_thread_context.
20922 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20923 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20926 2007-12-03 Leo Zayas
20927 Pedro Alves <pedro_alves@portugalmail.pt>
20929 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20931 (child_add_thread): Minor cleanup.
20932 (child_continue): Resume artificially suspended threads before
20933 calling ContinueDebugEvent.
20934 (suspend_one_thread): New.
20935 (fake_breakpoint_event): New.
20936 (get_child_debug_event): Change return type to int. Check here if
20937 gdb sent an interrupt request. If a soft interrupt was requested,
20938 fake a breakpoint event. Return 0 if there is no event to handle,
20940 (win32_wait): Don't check here if gdb sent an interrupt request.
20941 Ensure there is a valid event to handle.
20942 (win32_request_interrupt): Add soft interruption method as last
20945 2007-12-03 Leo Zayas
20946 Pedro Alves <pedro_alves@portugalmail.pt>
20948 * win32-low.h (win32_thread_info): Add descriptions to the
20949 structure members. Replace `suspend_count' counter by a
20951 * win32-low.c (thread_rec): Update condition of when to get the
20952 context from the inferior. Rely on ContextFlags being set if it
20953 has already been retrieved. Only suspend the inferior thread if
20954 we haven't already. Warn if that fails.
20955 (continue_one_thread): s/suspend_count/suspended/. Only call
20956 ResumeThread once. Warn if that fails.
20958 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20960 * win32-low.c (win32_wait): Don't read from the inferior when it
20961 has already exited.
20963 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20965 * Makefile.in (win32_low_h): New variable.
20966 (win32-low.o): Add dependency on $(win32_low_h).
20967 (win32-arm-low.o, win32-i386-low.o): New rules.
20969 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20971 * hostio.c: Correct copyright year.
20973 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20975 * Makefile.in (OBS): Add hostio.o.
20976 (hostio.o): New rule.
20977 * server.h (handle_vFile): Declare.
20978 * hostio.c: New file.
20979 * server.c (handle_v_requests): Take packet_len and new_packet_len
20980 for binary packets. Call handle_vFile.
20981 (main): Update call to handle_v_requests.
20983 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20985 * linux-low.c: Include <sched.h>.
20987 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20989 * linux-low.c (linux_tracefork_grandchild): New.
20990 (linux_tracefork_child): Use clone.
20991 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20993 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20995 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20997 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20999 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21001 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21003 * inferiors.c (change_inferior_id): Delete.
21004 (add_pid_to_list, pull_pid_from_list): New.
21005 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21006 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21007 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21008 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21009 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21010 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21011 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21012 (using_threads): Always set to 1.
21013 (handle_extended_wait): New.
21014 (add_process): Do not set TID.
21015 (linux_create_inferior): Set must_set_ptrace_flags.
21016 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21017 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21018 (linux_thread_alive): Rename TID argument to LWPID.
21019 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21020 (linux_wait_for_event): Do not use TID or check using_threads. Update
21021 call to dead_thread_notify. Call handle_extended_wait.
21022 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21023 (send_sigstop): Delete sigstop_sent.
21024 (wait_for_sigstop): Avoid TID.
21025 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21026 (linux_test_for_tracefork): New.
21027 (linux_lookup_signals): Use thread_db_active and
21028 linux_supports_tracefork_flag.
21029 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21030 * linux-low.h (get_process_thread): Avoid TID.
21031 (struct process_ifo): Move thread_known and tid to the end. Remove
21033 (linux_attach_lwp, thread_db_init): Update prototypes.
21034 * server.h (change_inferior_id): Delete prototype.
21035 (add_pid_to_list, pull_pid_from_list): New prototypes.
21036 * thread-db.c (thread_db_use_events): New.
21037 (find_first_thread): Rename to...
21038 (find_one_thread): ...this. Update callers and messages. Do not
21039 call fatal. Check thread_db_use_events. Do not call
21040 change_inferior_id or new_thread_notify.
21041 (maybe_attach_thread): Update. Do not call new_thread_notify.
21042 (thread_db_init): Set thread_db_use_events. Check use_events.
21043 * utils.c (fatal, warning): Correct message prefix.
21045 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21047 * Makefile.in (clean): Remove new files.
21048 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21049 (powerpc-64.o, powerpc-64.c): New rules.
21050 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21051 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21053 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21055 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21056 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21057 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21058 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21059 (target_regsets): Add AltiVec and SPE register sets.
21060 * configure.ac: Check for AltiVec and SPE.
21061 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21062 (ppc_fill_vrregset, ppc_store_vrregset): New.
21063 (target_regsets): Add AltiVec register set.
21064 * configure: Regenerated.
21066 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21068 * linux-low.c (O_LARGEFILE): Define.
21069 (linux_read_memory): Use /proc/PID/mem.
21070 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21071 * configure, config.in: Regenerated.
21073 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21075 * linux-low.c (linux_wait_for_event): Do not pass signals while
21078 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21080 * win32-low.c (create_process): New.
21081 (win32_create_inferior): Use create_process instead of
21082 CreateProcess. If create_process failed retry appending an ".exe"
21083 suffix. Store the GetLastError result immediatelly after
21084 create_process calls and use it on the call to error.
21086 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21088 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21090 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21092 * configure.ac: Switch license to GPLv3.
21094 2007-08-01 Michael Snyder <msnyder@access-company.com>
21096 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21098 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21100 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21102 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21103 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21104 CloseToolhelp32Snapshot.
21105 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21106 CloseToolhelp32Snapshot.
21108 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21110 * server.c (main): Check for inferior exit before main loop.
21112 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21114 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21115 instead of on tmp_desc.
21117 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21118 Daniel Jacobowitz <dan@codesourcery.com>
21120 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21121 (add_thread): Minor cleanups.
21122 (clear_inferiors): Move lower in the file. Clear the DLL
21124 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21125 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21126 (xml_escape_text): New.
21127 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21129 (handle_v_cont): Report errors.
21130 (gdbserver_version): Update.
21131 (main): Correct size of own_buf. Do not report initial DLL events.
21132 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21133 (unloaded_dll, xml_escape_text): New.
21134 * win32-low.c (enum target_waitkind): Update comments.
21135 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21136 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21137 (win32_EnumProcessModules, win32_GetModuleInformation)
21138 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21139 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21140 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21141 (win32_Module32First, win32_Module32Next, load_toolhelp)
21142 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21143 (get_child_debug_event): Handle DLL events.
21144 (win32_wait): Likewise.
21146 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21148 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21149 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21151 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21153 * win32-low.c (handle_output_debug_string): Ignore event if not
21156 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21158 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21160 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21162 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21164 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21166 * inferiors.c (change_inferior_id): Add comment.
21167 * linux-low.c (check_removed_breakpoint): Add an early
21168 prototype. Improve debug output.
21169 (linux_attach): Doc update.
21170 (linux_detach_one_process, linux_detach): Clean up before releasing
21172 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21173 * linux-low.h (struct process_info): Doc improvement.
21174 * mem-break.c (delete_all_breakpoints): New.
21175 * mem-break.h (delete_all_breakpoints): New prototype.
21176 * thread-db.c (find_first_thread): New.
21177 (thread_db_create_event): Call it instead of
21178 thread_db_find_new_threads. Clean up unused variables.
21179 (maybe_attach_thread): Remove first thread handling.
21180 (thread_db_find_new_threads): Use find_first_thread.
21181 (thread_db_get_tls_address): Likewise.
21183 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21185 * thread-db.c (thread_db_find_new_threads): Add prototype.
21186 (thread_db_create_event): Check for the main thread before adding
21188 (maybe_attach_thread): Only enable event reporting if TID == 0.
21189 (thread_db_get_tls_address): Check for new threads.
21191 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21193 * linux-low.c (linux_create_inferior): Try execv before execvp.
21194 * spu-low.c (spu_create_inferior): Likewise.
21196 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21198 * linux-low.c (linux_create_inferior): Change execv to execvp.
21199 * spu-low.c (spu_create_inferior): Likewies.
21201 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21203 * Makefile.in (clean): Clean new files instead of deleted ones.
21204 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21205 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21207 * configure.srv: Specify XML files and new regformats for MIPS and
21209 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21210 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21211 an entry for the restart register.
21212 (mips_cannot_fetch_register, mips_cannot_store_register)
21213 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21214 register names to match the XML descriptions.
21215 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21216 restart register instead of $0.
21218 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21219 Markus Deuling <deuling@de.ibm.com>
21221 * remote-utils.c (decode_xfer_write): New function.
21222 * server.h (decode_xfer_write): Add prototype.
21223 * server.c (handle_query): Add PACKET_LEN argument. Support
21224 qXfer:spu:read and qXfer:spu:write packets.
21225 (main): Pass packet_len to handle_query.
21226 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21227 * target.h (target_ops): Add qxfer_spu.
21229 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21231 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21232 accessing non-seekable spufs files.
21234 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21236 * server.c (handle_query): Add reply for qC packet.
21238 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21239 Leo Zayas <lerele@champenstudios@com>
21241 * server.h (check_remote_input_interrupt_request): New function.
21242 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21243 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21244 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21245 (check_remote_input_interrupt_request): New function.
21246 * server.h (check_remote_input_interrupt_request): Declare.
21247 * win32-low.c (winapi_DebugBreakProcess,
21248 winapi_GenerateConsoleCtrlEvent): New typedefs.
21249 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21251 (win32_wait): Check for remote interrupt request
21252 with check_remote_input_interrupt_request.
21253 (win32_request_interrupt): New function.
21254 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21256 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21258 * win32-low.c (debug_registers_changed,
21259 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21260 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21261 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21262 (thread_rec): Get context using the low target.
21263 (child_add_thread): Call thread_added on the low target,
21264 which does the same thing.
21266 (do_initial_child_stuff): Remove debug registers references.
21267 Set context using the low target. Resume threads after
21268 setting the contexts.
21269 (child_continue): Remove dead variable. Remove debug
21270 registers references.
21271 (child_fetch_inferior_registers): Go through the low target.
21272 (do_child_store_inferior_registers): Remove.
21273 (child_store_inferior_registers): Go through the low target.
21274 (win32_resume): Remove debug registers references.
21275 Set context using the low target.
21276 (handle_exception): Change return type to void. Don't record
21277 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21278 first chance exception.
21279 (get_child_debug_event): Change return type to void. Remove
21280 goto loop. Always return after waiting for debug event.
21281 (win32_wait): Convert to switch statement. Handle spurious
21284 * win32-i386-low.c (debug_registers_changed,
21285 debug_registers_used): New.
21286 (initial_stuff): Rename to ...
21287 (i386_initial_stuff): ... this. Clear debug registers
21289 (store_debug_registers): Delete.
21290 (i386_get_thread_context): New.
21291 (load_debug_registers): Delete.
21292 (i386_set_thread_context): New.
21293 (i386_thread_added): New.
21294 (single_step): Rename to ...
21295 (i386_single_step): ... this.
21296 (do_fetch_inferior_registers): Rename to ...
21297 (i386_fetch_inferior_register): ... this.
21298 (i386_store_inferior_register): New.
21299 (the_low_target): Adapt to new interface.
21301 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21302 (arm_get_thread_context): New.
21303 (arm_set_thread_context): New.
21305 (do_fetch_inferior_registers): Rename to ...
21306 (arm_fetch_inferior_register): ... this.
21307 (arm_store_inferior_register): New.
21308 (arm_wince_breakpoint): Reimplement as unsigned long.
21309 (arm_wince_breakpoint_len): Define.
21310 (the_low_target): Adapt to new interface.
21312 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21313 load_debug_registers. Add get_thread_context, set_thread_context,
21314 thread_added and store_inferior_register. Rename
21315 fetch_inferior_registers to fetch_inferior_register.
21316 (regptr): Remove declaration.
21318 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21320 * linux-low.c (linux_detach): Change return type to int. Return 0.
21321 * spu-low.c (spu_detach): Likewise.
21323 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21325 * target.h (target_ops): Change return type of detach to int.
21327 (join_inferior): New.
21328 * server.c (main): Don't skip detach support on mingw32.
21329 If the inferior doesn't support detaching return error.
21330 Call join_inferior instead of using waitpid.
21331 * linux-low.c (linux_join): New.
21332 (linux_target_op): Add linux_join.
21333 * spu-low.c (spu_join): New.
21334 (spu_target_ops): Add spu_join.
21335 * win32-low.c (win32_detach): Adapt to new interface.
21336 Reopen current_process_handle before detaching. Issue a child
21337 resume before detaching.
21339 (win32_target_op): Add win32_join.
21341 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21343 * win32-low.c (win32-attach): Fix return value.
21344 * target.h (target_ops): Describe ATTACH return values.
21346 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21348 * win32-low.c (GETPROCADDRESS): Define.
21349 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21350 (winapi_DebugSetProcessKillOnExit): Likewise.
21351 (win32_create_inferior): Force usage of ansi CreateProcessA.
21352 (win32_attach): Use GETPROCADDRESS.
21353 (win32_detach): Likewise.
21355 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21357 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21359 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21361 * win32-low.c: Commit leftover changes from 2007-03-29.
21363 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21365 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21366 fields short instead of int. Add explicit padding.
21367 (i387_cache_to_fsave): Remove unnecessary casts.
21368 (i387_fsave_to_cache): Doc fix.
21369 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21371 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21373 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21374 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21376 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21378 * configure.srv (arm*-*-mingw32ce*): Move near the other
21381 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21383 * configure.ac: Add errno checking.
21384 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21385 sys/file.h and malloc.h.
21386 (AC_CHECK_DECLS): Add perror.
21387 (srv_mingwce): Handle.
21388 * configure.srv (i[34567]86-*-cygwin*): Add
21389 win32-i386-low.o to srv_tgtobj.
21390 (i[34567]86-*-mingw*): Likewise.
21391 (arm*-*-mingw32ce*): Add case.
21392 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21393 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21394 [__MINGW32CE__] (strerror): New function.
21395 [__MINGW32CE__] (errno): Define to GetLastError.
21396 [__MINGW32CE__] (COUNTOF): New macro.
21397 (remote_open): Remove extra close call.
21398 * mem-break.c (delete_breakpoint_at): New function.
21399 * mem-break.h (delete_breakpoint_at): Declare.
21400 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21401 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21402 [USE_WIN32API] (read, write): Add char* casts.
21403 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21404 * server.h: Include wincecompat.h on Windows CE.
21405 [HAVE_ERRNO_H]: Check.
21406 (perror): Declare if not declared.
21407 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21408 (perror_with_name): Remove errno declaration.
21409 * wincecompat.h: New.
21410 * wincecompat.c: New.
21411 * win32-low.h: New.
21412 * win32-arm-low.c: New.
21413 * win32-i386-low.c: New.
21414 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21415 (OUTMSG2): Make it safe.
21417 (COUNTOF): New macro.
21418 (NUM_REGS): Get it from the low target.
21419 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21420 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21421 (thread_rec): Let low target handle debug registers.
21422 (child_add_thread): Likewise.
21423 (child_init_thread_list): Likewise.
21424 (continue_one_thread): Likewise.
21426 (do_child_fetch_inferior_registers): Move to ...
21427 * win32-i386-low.c: ... here, and rename to ...
21428 (do_fetch_inferior_registers): ... this.
21429 * win32-low.c (child_fetch_inferior_registers):
21430 Go through the low target.
21431 (do_child_store_inferior_registers): Use regptr.
21432 (strwinerror): New function.
21433 (win32_create_inferior): Handle Windows CE.
21434 Use strwinerror instead of strerror on Windows error
21435 codes. Add program to the error output.
21436 Don't close the main thread handle on Windows CE.
21437 (win32_attach): Use coredll.dll on Windows CE.
21438 (win32_kill): Close current process and current
21440 (win32_detach): Use coredll.dll on Windows CE.
21441 (win32_resume): Let low target handle debug registers, and
21443 (handle_exception): Add/Remove initial breakpoint. Avoid
21444 non-existant WSTOPSIG on Windows CE.
21445 (win32_read_inferior_memory): Cast to remove warning.
21446 (win32_arch_string): Go through the low target.
21447 (initialize_low): Call set_breakpoint_data with the low
21448 target's breakpoint.
21449 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21450 FOP_REGNUM, mappings): Move to ...
21451 * win32-i386-low.c: ... here.
21452 * win32-low.c (win32_thread_info): Move to ...
21453 * win32-low.h: ... here.
21454 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21455 win32-arm-low.c and wincecompat.c.
21456 (all:): Add $EXEEXT.
21457 (install-only:): Likewise.
21458 (gdbserver:): Likewise.
21459 (gdbreplay:): Likewise.
21460 * config.in: Regenerate.
21461 * configure: Regenerate.
21463 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21465 * win32-low.c: Rename typedef thread_info to
21466 win32_thread_info throughout.
21468 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21470 * win32-i386-low.c: Rename to ...
21471 * win32-low.c: ... this.
21472 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21473 * Makefile.in: Likewise.
21475 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21477 * remote-utils.c (monitor_output): Constify msg parameter.
21478 * server.h (monitor_output): Likewise.
21479 * win32-i386-low.c (handle_output_debug_string): New.
21480 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21481 handle_output_debug_string.
21482 (get_child_debug_event): Likewise.
21484 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21486 * server.c (main): Correct strtoul check.
21488 2007-03-27 Jon Ringle <jon@ringle.org>
21490 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21492 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21494 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21496 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21498 * terminal.h: Check HAVE_SGTTY_H.
21500 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21502 * remote-utils.c (remote_open): Print out the assigned port number.
21504 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21506 * remote-utils.c (monitor_output): New function.
21507 * server.c (debug_threads): Define here.
21508 (monitor_show_help): New function.
21509 (handle_query): Handle qRcmd.
21510 (main): Do not handle 'd' packet.
21511 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21512 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21515 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21517 * Makefile.in (EXEEXT): New.
21518 (clean): Use $(EXEEXT).
21520 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21522 * target.h (target_ops): Rename send_signal to request_interrupt,
21523 and remove enum target_signal parameter.
21524 * linux-low.c (linux_request_interrupt): Rename from
21525 linux_send_signal, and always send SIGINT.
21526 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21527 and always send SIGINT.
21528 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21530 (input_interrupt): Likewise.
21532 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21534 * server.c (get_features_xml): Check if target implemented
21536 * win32-i386-low.c (win32_arch_string): New.
21537 (win32_target_ops): Add win32_arch_string as arch_string member.
21539 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21541 * spu-low.c (spu_arch_string): New.
21542 (spu_target_ops): Add spu_arch_string.
21544 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21546 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21547 * configure.ac: Do not check for terminal.h.
21548 * configure, config.in: Regenerated.
21550 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21552 * Makefile.in (OBS): Add $(XML_BUILTIN).
21553 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21555 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21556 (arm-with-iwmmxt.c): New.
21557 * config.in, configure: Regenerate.
21558 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21559 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21560 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21561 (arm*-*-linux*): Add iWMMXt and regset support.
21562 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21563 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21564 (arm_store_wmmxregset, target_regsets): New.
21565 * server.c (get_features_xml): Take annex argument. Check builtin
21567 (handle_query): Handle multiple annexes.
21569 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21571 * remote-utils.c [USE_WIN32API] (read, write): Define.
21572 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21575 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21577 * linux-i386-low.c (the_low_target): Set arch_string.
21578 * linux-x86-64-low.c (the_low_target): Likewise.
21579 * linux-low.c (linux_arch_string): New.
21580 (linux_target_ops): Add it.
21581 * linux-low.h (struct linux_target_ops): Add arch_string.
21582 * server.c (write_qxfer_response): Use const void * for DATA.
21583 (get_features_xml): New.
21584 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21585 * target.h (struct target_ops): Add arch_string method.
21587 2007-01-03 Denis Pilat <denis.pilat@st.com>
21588 Daniel Jacobowitz <dan@codesourcery.com>
21590 * linux-low.c (linux_kill): Handle being called with no threads.
21591 * win32-i386-low.c (win32_kill): Likewise.
21592 (get_child_debug_event): Clear current_process_handle.
21594 2006-12-30 Denis PILAT <denis.pilat@st.com>
21595 Daniel Jacobowitz <dan@codesourcery.com>
21597 * remote-utils.c (remote_open): Check the type of specified
21598 serial port devices before opening them.
21599 * server.c (main): Kill the inferior if an error occurs during
21600 the first remote_open.
21602 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21604 * README: Update supported targets.
21606 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21608 * Makefile.in (clean): Remove reg-mips64.c.
21609 (reg-mips64.c, reg-mips64.o): New rules.
21610 * configure.srv: Handle mips64. Include regset support for mips.
21611 * linux-mips-low.c (union mips_register): New.
21612 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21613 (mips_breakpoint, mips_breakpoint_at): Use int.
21614 (mips_collect_register, mips_supply_register)
21615 (mips_collect_register_32bit, mips_supply_register_32bit)
21616 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21617 (mips_store_fpregset, target_regsets): New.
21618 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21620 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21622 * configure.srv: Add target "spu*-*-*".
21623 * Makefile.in (clean): Remove reg-spu.c.
21624 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21625 * spu-low.c: New file.
21627 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21629 * configure.ac: Correct td_thr_tls_get_addr test.
21630 * configure: Regenerated.
21632 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21634 * linux-low.c (linux_wait_for_event): Reformat. Use the
21635 pass_signals array.
21636 * remote-utils.c (decode_address_to_semicolon): New.
21637 * server.c (pass_signals, handle_general_set): New.
21638 (handle_query): Mention QPassSignals for qSupported.
21639 (main): Call handle_general_set.
21640 * server.h (pass_signals, decode_address_to_semicolon): New.
21642 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21644 * server.c (handle_query): Correct error handling for read_auxv.
21646 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21648 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21649 and srv_linux_thread_db to yes.
21650 * linux-s390-low.c (s390_fill_gregset): New function.
21651 (target_regsets): Define data structure.
21653 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21655 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21656 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21657 * config.in, configure: Regenerated.
21658 * inferiors.c (gdb_id_to_thread): New function.
21659 (gdb_id_to_thread_id): Use it.
21660 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21661 * linux-low.h (struct process_info): Add th member.
21662 (thread_db_get_tls_address): New prototype.
21663 * remote-utils.c (decode_address): Make non-static.
21664 * server.c (handle_query): Handle qGetTLSAddr.
21665 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21666 * target.h (struct target_ops): Add get_tls_address.
21667 * thread-db.c (maybe_attach_thread): Save the thread handle.
21668 (thread_db_get_tls_address): New.
21670 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21672 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21673 (linux_resume_one_process): Take a siginfo_t *. Update all
21674 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21675 (struct pending_signals): Add a siginfo_t.
21676 (linux_wait_for_process): Always set last_status.
21677 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21678 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21679 * linux-low.h (struct process_info): Add last_status.
21681 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21683 * remote-utils.c (try_rle): New function.
21684 (putpkt_binary): Use it.
21686 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21688 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21689 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21690 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21691 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21692 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21695 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21697 * server.c (terminal_fd): New variable.
21698 (old_foreground_pgrp): Likewise.
21699 (restore_old_foreground_pgrp): New function.
21700 (start_inferior): Record the terminal file descriptor in terminal_fd
21701 and its original foreground group in old_foreground_pgrp. Register
21702 restore_old_foreground_pgrp with atexit().
21704 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21706 * server.c (handle_query): Correct qPart to qXfer.
21708 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21710 * configure.ac: Check for more headers which are missing on
21711 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21712 * configure.srv: Add Cygwin and mingw32.
21713 * remote-utils.c: Don't include headers unconditionally which
21714 are missing on mingw32. Include <winsock.h> for mingw32.
21715 (remote_open): Adjust for mingw32 support. Flush
21716 standard error after writing to it.
21717 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21718 (unblock_async_io, enable_async_io, disable_async_io)
21719 (readchar, getpkt): Update for Winsock support.
21720 (prepare_resume_reply): Expect a protocol signal number.
21721 * server.c: Disable <sys/wait.h> on mingw32.
21722 (start_inferior): Adjust for mingw32 support. Flush
21723 standard error after writing to it.
21724 (attach_inferior): Likewise. Use protocol signal
21726 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21728 * win32-i386-low.c: New file.
21729 * Makefile.in (XM_CLIBS): Set.
21730 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21731 (win32-i386-low.o): New dependency rule.
21732 * linux-low.c (linux_wait): Use target signal numbers.
21733 * target.h (struct target_ops): Doc fix.
21734 * server.h (target_signal_to_name): New prototype.
21735 * gdbreplay.c: Don't include headers unconditionally which
21736 are missing on mingw32. Include <winsock.h> for mingw32.
21737 (remote_close, remote_open): Adjust for Winsock support.
21738 * configure, config.in: Regenerated.
21740 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21742 * server.c (decode_xfer_read, write_qxfer_response): New.
21743 (handle_query): Take a packet length argument. Handle
21744 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21745 the qSupported response.
21746 (main): Update call to handle_query.
21748 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21750 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21751 (putpkt_binary): Renamed from putpkt and adjusted for binary
21753 (putpkt): New wrapper for putpkt_binary.
21754 (readchar): Don't mask off the high bit.
21755 (decode_X_packet): New function.
21756 * server.c (main): Call putpkt_binary if a handler sets the packet
21757 length. Save the length of the incoming packet. Handle 'X'.
21758 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21760 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21762 * server.c (handle_query): Handle qSupported.
21764 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21766 * remote-utils.c (all_symbols_looked_up): New variable.
21767 (look_up_one_symbol): Check it.
21768 * server.h (look_up_one_symbol): New declaration.
21769 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21771 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21773 * Makefile.in (linux-arm-low.o): Update dependencies.
21774 * linux-arm-low.c: Include "gdb_proc_service.h".
21775 (PTRACE_GET_THREAD_AREA): Define.
21776 (ps_get_thread_area): New function.
21778 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21780 * configure.srv (m68k*-*-uclinux*): New target.
21781 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21782 (linux_resume_one_process): Remove extraneous cast.
21783 (linux_read_offsets): New.
21784 (linux_target_op): Add linux_read_offsets on mmuless systems.
21785 * server.c (handle_query): Add qOffsets logic.
21786 * target.h (struct target_ops): Add read_offsets.
21788 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21790 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21791 (PTRACE_GET_THREAD_AREA): Define.
21792 (ps_get_thread_area): New function.
21793 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21794 (linux-x86-64-low.o): Update.
21796 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21798 * configure.ac: Remove checks for prfpregset_t.
21799 * gdb_proc_service.h: New file.
21800 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21801 new "gdb_proc_service.h".
21802 * proc-service.c: Likewise.
21803 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21804 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21805 * Makefile.in (gdb_proc_service_h): Updated.
21806 * configure, config.in: Regenerated.
21808 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21810 * remote-utils.c (prepare_resume_reply): Move declaration
21811 of gdb_id_from_wait to the top of the block.
21813 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21815 * linux-low.c (regsets_store_inferior_registers): Read the regset
21816 from the target before filling it.
21818 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21820 * server.c (attach_inferior): Return SIGTRAP for a successful
21823 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21825 * Makefile.in (OBS): Add version.o.
21826 (STAGESTUFF): Delete.
21827 (version.o): Add dependencies.
21828 (version.c): Replace rule.
21829 (clean): Remove version.c.
21830 * server.c (gdbserver_version): New.
21831 (gdbserver_usage): Use printf.
21832 (main): Handle --version and --help.
21833 * server.h (version, host_name): Add declarations.
21835 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21847 * linux-x86-64-low.c:
21849 * linux-s390-low.c:
21850 * linux-ppc64-low.c:
21852 * linux-mips-low.c:
21853 * linux-m68k-low.c:
21854 * linux-m32r-low.c:
21857 * linux-ia64-low.c:
21858 * linux-i386-low.c:
21859 * linux-crisv32-low.c:
21871 * gdbserver.1: Add (C) after Copyright. Update the FSF
21874 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21876 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21877 (arm_breakpoint_at): Recognize both breakpoints.
21878 (the_low_target): Use the correct breakpoint instruction.
21880 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21882 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21883 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21884 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21885 (the_low_target): Update.
21887 2005-10-25 Andreas Schwab <schwab@suse.de>
21889 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21891 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21892 (ia64_num_regs): Reduce to 462.
21894 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21896 * acinclude.m4: Correct quoting.
21897 * aclocal.m4: Regenerated.
21899 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21900 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21901 (thread_db_init): Call thread_db_err_str.
21902 * configure.ac: Check for TD_VERSION.
21903 * config.in, configure: Regenerated.
21905 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21907 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21909 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21911 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21912 is not available. Define HAVE_PTRACE_GETREGS if it is.
21913 * config.in, configure: Regenerated.
21914 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21915 * linux-i386-low.c, linux-m68k-low.c: Update to use
21916 HAVE_PTRACE_GETREGS.
21917 * linux-low.c (regsets_fetch_inferior_registers)
21918 (regsets_store_inferior_registers): Only return 0 if we processed
21920 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21921 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21923 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21925 * inferiors.c (struct thread_info): Add gdb_id.
21926 (add_thread): Add gdb_id argument.
21927 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21928 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21929 calls to add_thread.
21930 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21931 * server.c (handle_query): Use thread_to_gdb_id.
21932 (handle_v_cont, main): Use gdb_id_to_thread_id.
21933 * server.h (add_thread): Update prototype.
21934 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21937 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21939 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21940 left-padded registers.
21941 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21942 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21944 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21946 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21947 * configure: Regenerate.
21948 * config.in: Regenerate.
21949 * server.h (NEED_DECLARATION_STRERROR):
21950 Replace with !HAVE_DECL_STRERROR.
21952 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21954 * linux-low.c (linux_wait, linux_send_signal): Don't test
21955 an unsigned long variable for > 0 if it could be MAX_ULONG.
21956 * server.c (myresume): Likewise.
21957 * target.c (set_desired_inferior): Likewise.
21959 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21961 * configure.ac: Simplify and improve check for socklen_t.
21962 * configure, config.in: Regenerate.
21964 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21966 * acconfig.h: Remove.
21967 * configure.ac: Add a test for socklen_t. Use three-argument
21968 AC_DEFINE throughout.
21969 * config.in: Regenerated using autoheader 2.59.
21970 * configure: Regenerated.
21972 * gdbreplay.c (socklen_t): Provide a default.
21973 (remote_open): Use socklen_t.
21974 * remote-utils.c (socklen_t): Provide a default.
21975 (remote_open): Use socklen_t.
21976 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21979 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21981 * linux-low.c (linux_read_memory, linux_write_memory)
21982 (linux_read_auxv): Likewise.
21983 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21984 (check_mem_write): Likewise.
21985 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21987 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21988 (registers_from_string, register_data): Likewise.
21989 * server.c (handle_query, main): Likewise.
21990 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21991 (decode_M_packet): Likewise.
21992 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21993 * target.h (struct target_ops): Update read_memory, write_memory,
21995 (read_inferior_memory, write_inferior_memory): Update.
21996 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21997 to unsigned char *.
21998 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21999 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22000 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22001 linux-s390-low.c, linux-sh-low.c: Update for changes in
22002 read_inferior_memory and the_low_target->breakpoint.
22004 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22006 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22007 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22008 * configure.srv: Add powerpc64-*-linux*.
22009 * linux-ppc64-low.c: New file.
22011 2005-05-23 Orjan Friberg <orjanf@axis.com>
22013 * linux-cris-low.c: New file with support for CRIS.
22014 * linux-crisv32-low.c: Ditto for CRISv32.
22015 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22016 (clean): Add reg-cris.c and reg-crisv32.c.
22017 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
22018 reg-crisv32.o, and reg-crisv32.c to make rules.
22019 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22020 recognized targets.
22022 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22024 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22025 of sizeof (PTRACE_XFER_TYPE).
22026 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22028 2005-05-12 Orjan Friberg <orjanf@axis.com>
22030 * target.h (struct target_ops): Add insert_watchpoint,
22031 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22032 pointers for hardware watchpoint support.
22033 * linux-low.h (struct linux_target_ops): Ditto.
22034 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22035 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22036 to linux_target_ops.
22037 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22039 * server.c (main): Recognize 'Z' and 'z' packets.
22041 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22043 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22044 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22045 (the_low_target): Add new members.
22047 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22049 * proc-service.c (ps_lgetregs): Search all_processes instead of
22052 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22054 * server.c (start_inferior): Change return type to int.
22055 (attach_inferior): Change sigptr to int *.
22056 (handle_v_cont, handle_v_requests): Change signal to int *.
22057 (main): Change signal to int.
22059 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22061 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22062 * configure.srv: Add m32r*-*-linux*.
22063 * linux-m32r-low.c: New file.
22065 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22067 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22069 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22071 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22072 Take unsigned long arguments for PIDs.
22073 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22074 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22075 (wait_for_sigstop, linux_resume_one_process)
22076 (regsets_fetch_inferior_registers, linux_send_signal)
22077 (linux_read_auxv): Likewise. Update the types of variables holding
22078 PIDs. Update format string specifiers.
22079 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22080 * remote-utils.c (prepare_resume_reply): Likewise.
22081 * server.c (cont_thread, general_thread, step_thread)
22082 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22084 (handle_query): Update format specifiers.
22085 (handle_v_cont, main): Use strtoul for thread IDs.
22086 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22087 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22088 (general_thread, step_thread, thread_from_wait)
22089 (old_thread_from_wait): Update.
22090 * target.h (struct thread_resume): Use unsigned long for THREAD.
22091 (struct target_ops): Use unsigned long for arguments to attach and
22094 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22096 * acinclude.m4: Include bfd/bfd.m4 directly.
22097 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22098 <agriffis@toolchain.org>.
22099 * aclocal.m4, configure: Regenerated.
22101 2005-01-07 Andrew Cagney <cagney@gnu.org>
22103 * configure.ac: Rename configure.in, require autoconf 2.59.
22104 * configure: Re-generate.
22106 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22108 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22109 LIBS when finished.
22110 * aclocal.m4: Regenerated.
22111 * configure: Regenerated.
22113 2004-11-21 Andreas Schwab <schwab@suse.de>
22115 * linux-m68k-low.c (m68k_num_gregs): Define.
22116 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22117 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22118 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22119 (m68k_breakpoint_at): New. Add to the_low_target.
22121 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22122 srv_linux_thread_db to yes.
22124 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22126 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22127 (ARCH_SET_FS): Likewise.
22128 (ARCH_GET_FS): Likewise.
22129 (ARCH_GET_GS): Likewise.
22131 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22133 * linux-i386-low.c (ps_get_thread_area): New.
22134 * linux-x86-64-low.c (ps_get_thread_area): New.
22135 * linux-low.c: Include <sys/syscall.h>.
22136 (linux_kill_one_process): Don't kill the first thread here.
22137 (linux_kill): Kill the first thread here.
22138 (kill_lwp): New function.
22139 (send_sigstop, linux_send_signal): Use it.
22140 * proc-service.c: Clean up #ifdefs.
22141 (fpregset_info): Delete.
22142 (ps_lgetregs): Update and enable implementation.
22143 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22145 * remote-utils.c (struct sym_cache, symbol_cache): New.
22146 (input_interrupt): Print a clearer message.
22147 (async_io_enabled): New variable.
22148 (enable_async_io, disable_async_io): Use it. Update comments.
22149 (look_up_one_symbol): Use the symbol cache.
22150 * thread-db.c (thread_db_look_up_symbols): New function.
22151 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22153 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22155 * configure.in: Test for -rdynamic.
22156 * configure: Regenerated.
22157 * Makefile (INTERNAL_LDFLAGS): New.
22158 (gdbserver, gdbreplay): Use it.
22160 2004-09-02 Andrew Cagney <cagney@gnu.org>
22162 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22164 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22166 * linux-low.c (linux_wait): Clear all_processes list also.
22168 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22170 * linux-low.c: Include <errno.h>. Remove extern declaration of
22173 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22175 * gdbreplay.c, server.h, utils.c: Update copyright years.
22177 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22179 * server.c (main): Print child status or termination signal from
22180 variable 'signal', not 'sig'.
22182 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22184 * linux-low.c (linux_read_memory): Change return type to
22185 int. Check for and return error from ptrace().
22186 * target.c (read_inferior_memory): Change return type to int. Pass
22187 back return status from the_target->read_memory().
22188 * target.h (struct target_ops): Adapt *read_memory() prototype.
22190 (read_inferior_memory): Adapt prototype.
22191 * server.c (main): Return an error packet if
22192 read_inferior_memory() returns an error.
22194 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22196 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22197 Unify with other clean targets.
22199 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22201 * server.c (handle_v_cont): Call set_desired_inferior.
22203 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22205 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22207 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22209 * linux-low.c (linux_wait): Unblock async I/O.
22210 (linux_resume): Block and enable async I/O.
22211 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22212 * server.h (block_async_io, unblock_async_io): Add prototypes.
22214 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22216 * remote-utils.c (remote_open): Print a status notice after
22217 opening a TCP port.
22218 * server.c (attach_inferior): Print a status notice after
22221 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22223 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22225 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22227 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22229 * server.c, target.h: Update copyright years.
22231 2004-02-25 Roland McGrath <roland@redhat.com>
22233 * target.h (struct target_ops): New member `read_auxv'.
22234 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22235 * linux-low.c (linux_read_auxv): New function.
22236 (linux_target_ops): Initialize `read_auxv' member to that.
22238 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22240 Committed by Jim Blandy <jimb@redhat.com>.
22242 * linux-s390-low.c (s390_num_regs): Update.
22243 (s390_regmap): Remove control registers. Use __s390x__ predefine
22244 instead of GPR_SIZE to distiguish s390 and s390x targets.
22246 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22248 * linux-low.c: Update copyright year.
22249 (check_removed_breakpoint): Clear pending_is_breakpoint.
22250 (linux_set_resume_request, linux_queue_one_thread)
22251 (resume_status_pending_p): New functions.
22252 (linux_continue_one_thread): Use process->resume.
22253 (linux_resume): Only resume threads if there are no pending events.
22254 * linux-low.h (struct process_info): Add resume request
22257 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22259 * regcache.c (new_register_cache): Clear the allocated register
22260 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22262 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22264 * linux-low.c (linux_resume): Take a struct thread_resume *
22266 (linux_wait): Update call.
22267 (resume_ptr): New static variable.
22268 (linux_continue_one_thread): Renamed from
22269 linux_continue_one_process. Use resume_ptr.
22270 (linux_resume): Use linux_continue_one_thread.
22271 * server.c (handle_v_cont, handle_v_requests): New functions.
22272 (myresume): New function.
22273 (main): Handle 'v' case.
22274 * target.h (struct thread_resume): New type.
22275 (struct target_ops): Change argument of "resume" to struct
22277 (myresume): Delete macro.
22279 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22281 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22282 (uninstall): Support DESTDIR.
22284 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22286 * configure.srv: Add xscale*linux copy of arm*linux entry.
22288 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22290 * linux-arm-low.c (arm_reinsert_addr): New function.
22291 (the_low_target): Add arm_reinsert_addr.
22293 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22295 * mem-break.c: Remove whitespace at end of file.
22297 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22299 * configure.in: Check whether we need to prototype strerror.
22300 * server.h: Optionally prototype strerror.
22301 * gdbreplay.c (perror_with_name): Use strerror.
22302 * linux-low.c (linux_attach_lwp): Use strerror.
22303 * utils.c (perror_with_name): Use strerror.
22304 * config.in, configure: Regenerated.
22306 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22308 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22309 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22311 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22313 * Makefile.in (SFILES): Update.
22314 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22315 low-sun3.c: Remove files.
22317 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22319 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22320 (linux_detach_one_process, linux_detach): New functions.
22321 (linux_target_ops): Add linux_detach.
22322 * server.c (main): Handle 'D' packet.
22323 * target.h (struct target_ops): Add "detach" member.
22324 (detach_inferior): Define.
22326 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22328 From Kelley Cook <kelleycook@wideopenwest.com>:
22329 * configure.srv: Accept i[34567]86 variants.
22331 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22333 * linux-low.c (linux_wait_for_event): Correct comment typos.
22334 (linux_resume_one_process): Call check_removed_breakpoint.
22335 (linux_send_signal): New function.
22336 (linux_target_ops): Add linux_send_signal.
22337 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22339 * target.h (struct target_ops): Add send_signal.
22341 2003-05-29 Jim Blandy <jimb@redhat.com>
22343 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22344 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22345 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22346 away part of the register's value.
22348 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22350 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22351 (linux_wait_for_event, linux_init_signals): Likewise.
22353 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22355 * configure.in: Check for stdlib.h.
22356 * configure: Regenerated.
22357 * config.in: Regenerated.
22359 2003-01-04 Andreas Schwab <schwab@suse.de>
22361 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22363 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22365 * Makefile.in: Remove obsolete code.
22367 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22369 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22370 defined(PT_FPR0_HI).
22372 2002-11-17 Stuart Hughes <seh@zee2.com>
22374 * linux-arm-low.c (arm_num_regs): Increase.
22375 (arm_regmap): Include status register.
22377 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22379 * linux-low.c (register_addr): Remove incorrect -1 check.
22381 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22383 * linux-low.c (linux_create_inferior): Call setpgid. Return
22385 (unstopped_p, linux_signal_pid): Remove.
22386 (linux_target_ops): Remove linux_signal_pid.
22387 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22388 global instead of target method.
22389 * target.h (struct target_ops): Remove signal_pid. Update comment
22390 for create_inferior.
22391 * server.c (signal_pid): New variable.
22392 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22393 gdbserver. Set the child to be the foreground process group.
22394 (attach_inferior): Set signal_pid.
22396 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22398 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22400 2002-08-20 Jim Blandy <jimb@redhat.com>
22402 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22405 2002-08-01 Andrew Cagney <cagney@redhat.com>
22407 * Makefile.in: Make chill references obsolete.
22409 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22411 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22412 * configure: Regenerate.
22413 * config.in: Regenerate.
22415 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22417 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22418 (perror_with_name, remote_close, remote_open, expect, play): Static.
22420 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22422 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22423 byte offsets instead of an array of indexes.
22424 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22426 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22428 * regcache.c: Add comment.
22430 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22432 * thread-db.c: New file.
22433 * proc-service.c: New file.
22434 * acinclude.m4: New file.
22435 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22436 proc-service.o, and thread-db.o.
22437 (linux-low.o): Add USE_THREAD_DB.
22438 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22439 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22440 * aclocal.m4: Regenerated.
22441 * config.in: Regenerated.
22442 * configure: Regenerated.
22443 * configure.in: Check for proc_service.h, sys/procfs.h,
22444 thread_db.h, and linux/elf.h headrs.
22445 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22446 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22447 Check for -lthread_db and thread support.
22448 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22449 PowerPC, and SuperH.
22450 * i387-fp.c: Constify arguments.
22451 * i387-fp.h: Likewise.
22452 * inferiors.c: (struct thread_info): Renamed from
22453 `struct inferior_info'. Remove PID member. Use generic inferior
22454 list header. All uses updated.
22455 (inferiors, signal_pid): Removed.
22456 (all_threads): New variable.
22457 (get_thread): Define.
22458 (add_inferior_to_list): New function.
22459 (for_each_inferior): New function.
22460 (change_inferior_id): New function.
22461 (add_inferior): Removed.
22462 (remove_inferior): New function.
22463 (add_thread): New function.
22464 (free_one_thread): New function.
22465 (remove_thread): New function.
22466 (clear_inferiors): Use for_each_inferior and free_one_thread.
22467 (find_inferior): New function.
22468 (find_inferior_id): New function.
22469 (inferior_target_data): Update argument type.
22470 (set_inferior_target_data): Likewise.
22471 (inferior_regcache_data): Likewise.
22472 (set_inferior_regcache_data): Likewise.
22473 * linux-low.c (linux_bp_reinsert): Remove.
22474 (all_processes, stopping_threads, using_thrads)
22475 (struct pending_signals, debug_threads, pid_of): New.
22476 (inferior_pid): Replace with macro.
22477 (struct inferior_linux_data): Remove.
22478 (get_stop_pc, add_process): New functions.
22479 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22480 Use add_process and add_thread.
22481 (linux_attach_lwp): New function, based on old linux_attach. Use
22482 add_process and add_thread. Set stop_expected for new threads.
22483 (linux_attach): New function.
22484 (linux_kill_one_process): New function.
22485 (linux_kill): Kill all LWPs.
22486 (linux_thread_alive): Use find_inferior_id.
22487 (check_removed_breakpoints, status_pending_p): New functions.
22488 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22489 Update. Use WNOHANG. Wait for cloned processes also. Update process
22490 struct for the found process.
22491 (linux_wait_for_event): New function.
22492 (linux_wait): Use it. Support LWPs.
22493 (send_sigstop, wait_for_sigstop, stop_all_processes)
22494 (linux_resume_one_process, linux_continue_one_process): New functions.
22495 (linux_resume): Support LWPs.
22496 (REGISTER_RAW_SIZE): Remove.
22497 (fetch_register): Use register_size instead. Call supply_register.
22498 (usr_store_inferior_registers): Likewise. Call collect_register.
22499 Fix recursive case.
22500 (regsets_fetch_inferior_registers): Improve error message.
22501 (regsets_store_inferior_registers): Add debugging.
22502 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22503 (unstopped_p, linux_signal_pid): New functions.
22504 (linux_target_ops): Add linux_signal_pid.
22505 (linux_init_signals): New function.
22506 (initialize_low): Call it. Initialize using_threads.
22507 * regcache.c (inferior_regcache_data): Add valid
22509 (get_regcache): Fetch registers lazily. Add fetch argument
22510 and update all callers.
22511 (regcache_invalidate_one, regcache_invalidate): New
22513 (new_register_cache): Renamed from create_register_cache.
22514 Return the new regcache.
22515 (free_register_cache): Change argument to a void *.
22516 (registers_to_string, registers_from_string): Call get_regcache
22517 with fetch flag set.
22518 (register_data): Make static. Pass fetch flag to get_regcache.
22519 (supply_register): Call get_regcache with fetch flag clear.
22520 (collect_register): Call get_regcache with fetch flag set.
22521 (collect_register_as_string): New function.
22522 * regcache.h: Update.
22523 * remote-utils.c (putpkt): Flush after debug output and use
22525 Handle input interrupts while waiting for an ACK.
22526 (input_interrupt): Use signal_pid method.
22527 (getpkt): Flush after debug output and use stderr.
22528 (outreg): Use collect_register_as_string.
22529 (new_thread_notify, dead_thread_notify): New functions.
22530 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22531 and general_thread.
22532 (look_up_one_symbol): Flush after debug output.
22533 * server.c (step_thread, server_waiting): New variables.
22534 (start_inferior): Don't use signal_pid. Update call to mywait.
22535 (attach_inferior): Update call to mywait.
22536 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22537 (main): Don't fetch/store registers explicitly. Use
22538 set_desired_inferior. Support proposed ``Hs'' packet. Update
22540 * server.h: Update.
22541 (struct inferior_list, struct_inferior_list_entry): New.
22542 * target.c (set_desired_inferior): New.
22543 (write_inferior_memory): Constify.
22544 (mywait): New function.
22545 * target.h: Update.
22546 (struct target_ops): New signal_pid method.
22547 (mywait): Removed macro, added prototype.
22549 * linux-low.h (regset_func): Removed.
22550 (regset_fill_func, regset_store_func): New.
22551 (enum regset_type): New.
22552 (struct regset_info): Add type field. Use new operation types.
22553 (struct linux_target_ops): stop_pc renamed to get_pc.
22554 Add decr_pc_after_break and breakpoint_at.
22555 (get_process, get_thread_proess, get_process_thread)
22556 (strut process_info, all_processes, linux_attach_lwp)
22557 (thread_db_init): New.
22559 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22560 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22561 (the_low_target): Add new members.
22562 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22563 (i386_store_fpxregset): Constify.
22564 (target_regsets): Add new kind identifier.
22565 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22566 (i386_set_pc): Add debugging.
22567 (i386_breakpoint_at): New function.
22568 (the_low_target): Add new members.
22569 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22570 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22571 (mips_breakpoint_at): New.
22572 (the_low_target): Add new members.
22573 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22574 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22575 (the_low_target): Add new members.
22576 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22577 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22578 (the_low_target): Add new members.
22579 * linux-x86-64-low.c (target_regsets): Add new kind
22582 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22584 From Martin Pool <mbp@samba.org>:
22585 * server.c (gdbserver_usage): New function.
22588 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22590 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22591 stop_at -> stop_pc.
22593 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22595 * Makefile.in: Remove obsolete code.
22597 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22599 * linux-low.c (regsets_fetch_inferior_registers),
22600 (regsets_store_inferior_registers): Removed cast to int from
22602 * regcache.h: Added declaration of struct inferior_info.
22604 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22606 * inferiors.c (struct inferior_info): Add regcache_data.
22607 (add_inferior): Call create_register_cache.
22608 (clear_inferiors): Call free_register_cache.
22609 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22610 * regcache.c (struct inferior_regcache_data): New.
22611 (registers): Remove.
22612 (get_regcache): New function.
22613 (create_register_cache, free_register_cache): New functions.
22614 (set_register_cache): Don't initialize the register cache here.
22615 (registers_to_string, registers_from_string, register_data): Call
22617 * regcache.h: Add prototypes.
22618 * server.h: Likewise.
22620 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22622 * mem-break.c: New file.
22623 * mem-break.h: New file.
22624 * Makefile.in: Add mem-break.o rule; update server.h
22626 * inferiors.c (struct inferior_info): Add target_data
22628 (clear_inferiors): Free target_data member if set.
22629 (inferior_target_data, set_inferior_target_data): New functions.
22630 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22631 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22632 * linux-low.c (linux_bp_reinsert): New variable.
22633 (struct inferior_linux_data): New.
22634 (linux_create_inferior): Use set_inferior_target_data.
22635 (linux_attach): Likewise. Call add_inferior.
22636 (linux_wait_for_one_inferior): New function.
22637 (linux_wait): Call it.
22638 (linux_write_memory): Add const.
22639 (initialize_low): Call set_breakpoint_data.
22640 * linux-low.h (struct linux_target_ops): Add breakpoint
22642 * server.c (attach_inferior): Remove extra add_inferior
22644 * server.h: Include mem-break.h. Update inferior.c
22646 * target.c (read_inferior_memory)
22647 (write_inferior_memory): New functions.
22648 * target.h (read_inferior_memory)
22649 (write_inferior_memory): Change macros to prototypes.
22650 (struct target_ops): Update comments. Add const to write_memory
22653 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22655 * linux-low.c (usr_store_inferior_registers): Support
22656 registers which are allowed to fail to store.
22657 * linux-low.h (linux_target_ops): Likewise.
22658 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22659 (ppc_cannot_store_register): FPSCR may not be storable.
22661 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22663 * server.h: Include <string.h> if HAVE_STRING_H.
22664 * ChangeLog: Correct paths in last ChangeLog entry.
22666 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22668 * linux-low.h: Remove obsolete prototypes.
22669 (struct linux_target_ops): New.
22670 (extern the_low_target): New.
22671 * linux-low.c (num_regs, regmap): Remove declarations.
22672 (register_addr): Use the_low_target explicitly.
22673 (fetch_register): Likewise.
22674 (usr_fetch_inferior_registers): Likewise.
22675 (usr_store_inferior_registers): Likewise.
22676 * linux-arm-low.c (num_regs): Remove.
22677 (arm_num_regs): Define.
22678 (arm_regmap): Renamed from regmap, made static.
22679 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22681 (arm_cannot_store_register): Renamed from cannot_store_register,
22683 (the_low_target): New.
22684 * linux-i386-low.c (num_regs): Remove.
22685 (i386_num_regs): Define.
22686 (i386_regmap): Renamed from regmap, made static.
22687 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22689 (i386_cannot_store_register): Renamed from cannot_store_register,
22691 (the_low_target): New.
22692 * linux-ia64-low.c (num_regs): Remove.
22693 (ia64_num_regs): Define.
22694 (ia64_regmap): Renamed from regmap, made static.
22695 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22697 (ia64_cannot_store_register): Renamed from cannot_store_register,
22699 (the_low_target): New.
22700 * linux-m68k-low.c (num_regs): Remove.
22701 (m68k_num_regs): Define.
22702 (m68k_regmap): Renamed from regmap, made static.
22703 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22705 (m68k_cannot_store_register): Renamed from cannot_store_register,
22707 (the_low_target): New.
22708 * linux-mips-low.c (num_regs): Remove.
22709 (mips_num_regs): Define.
22710 (mips_regmap): Renamed from regmap, made static.
22711 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22713 (mips_cannot_store_register): Renamed from cannot_store_register,
22715 (the_low_target): New.
22716 * linux-ppc-low.c (num_regs): Remove.
22717 (ppc_num_regs): Define.
22718 (ppc_regmap): Renamed from regmap, made static.
22719 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22721 (ppc_cannot_store_register): Renamed from cannot_store_register,
22723 (the_low_target): New.
22724 * linux-s390-low.c (num_regs): Remove.
22725 (s390_num_regs): Define.
22726 (s390_regmap): Renamed from regmap, made static.
22727 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22729 (s390_cannot_store_register): Renamed from cannot_store_register,
22731 (the_low_target): New.
22732 * linux-sh-low.c (num_regs): Remove.
22733 (sh_num_regs): Define.
22734 (sh_regmap): Renamed from regmap, made static.
22735 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22737 (sh_cannot_store_register): Renamed from cannot_store_register,
22739 (the_low_target): New.
22740 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22741 (the_low_target): New.
22743 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22745 * Makefile.in: Add stamp-h target.
22746 * configure.in: Create stamp-h.
22747 * configure: Regenerated.
22749 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22751 * inferiors.c: New file.
22752 * target.c: New file.
22753 * target.h: New file.
22754 * Makefile.in: Add target.o and inferiors.o. Update
22756 * linux-low.c (inferior_pid): New static variable,
22757 moved from server.c.
22758 (linux_create_inferior): Renamed from create_inferior.
22759 Call add_inferior. Return 0 on success instead of a PID.
22760 (linux_attach): Renamed from myattach.
22761 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22762 (linux_thread_alive): Renamed from mythread_alive.
22763 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22765 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22766 (regsets_store_inferior_registers): Correct error message.
22767 Add missing ``return 0''.
22768 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22769 (linux_store_registers): Renamed from store_inferior_registers.
22770 (linux_read_memory): Renamed from read_inferior_memory.
22771 (linux_write_memory): Renamed from write_inferior_memory.
22772 (linux_target_ops): New structure.
22773 (initialize_low): Call set_target_ops ().
22774 * remote-utils.c (unhexify): New function.
22775 (hexify): New function.
22776 (input_interrupt): Send signals to ``signal_pid''.
22777 * server.c (inferior_pid): Remove.
22778 (start_inferior): Update create_inferior call.
22779 (attach_inferior): Call add_inferior.
22780 (handle_query): New function.
22781 (main): Call handle_query for `q' packets.
22782 * server.h: Include "target.h". Remove obsolete prototypes.
22783 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22785 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22787 * Makefile.in: Add WARN_CFLAGS. Update configury
22789 * configure.in: Check for <string.h>
22790 * configure: Regenerate.
22791 * config.in: Regenerate.
22792 * gdbreplay.c: Include needed system headers.
22793 (remote_open): Remove strchr prototype.
22794 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22795 * regcache.c (supply_register): Change buf argument to const void *.
22796 (supply_register_by_name): Likewise.
22797 (collect_register): Change buf argument to void *.
22798 (collect_register_by_name): Likewise.
22799 * regcache.h: Add missing prototypes.
22800 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22801 * server.c (handle_query): New function.
22802 (attached): New static variable, moved out of main.
22803 (main): Quiet longjmp clobber warnings.
22804 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22805 * utils.c (error): Remove NORETURN.