1 2021-05-08 Pedro Alves <pedro@palves.net>
3 * linux-low.cc: Don't include sys/personality.h or define
6 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8 * server.cc (handle_v_attach)
10 (handle_v_kill): Make void.
12 2021-05-03 Tom Tromey <tromey@adacore.com>
15 * win32-i386-low.cc (i386_get_thread_context): Call
16 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
18 2021-04-30 Tom Tromey <tromey@adacore.com>
20 * win32-low.cc (do_initial_child_stuff): Update.
21 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
22 Change parameter type.
23 (win32_add_dll, win32_add_all_dlls)
24 (windows_nat::handle_load_dll): Remove.
25 (get_child_debug_event): Call dll_loaded_event.
27 2021-04-30 Tom Tromey <tromey@adacore.com>
29 * win32-low.cc (GETPROCADDRESS): Remove.
30 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
31 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
32 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
33 (win32_Wow64SetThreadContext): Remove.
34 (win32_set_thread_context, do_initial_child_stuff)
35 (win32_process_target::attach, win32_process_target::detach):
37 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
38 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
40 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
41 (win32_GetModuleInformation, win32_GetModuleInformationA):
44 (win32_add_dll, win32_process_target::request_interrupt): Update.
45 (initialize_low): Call initialize_loadable.
47 2021-04-14 Tom Tromey <tromey@adacore.com>
49 * win32-low.cc (windows_nat::handle_load_dll): Don't check
52 2021-04-13 Pedro Alves <pedro@palves.net>
54 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
56 2021-04-13 Tom Tromey <tromey@adacore.com>
58 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
59 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
61 2021-04-13 Pedro Alves <pedro@palves.net>
63 * Makefile.in (SFILES): Remove hostio-errno.cc.
64 * configure: Regenerate.
65 * configure.ac (GDBSERVER_DEPFILES): No longer add
67 * configure.srv (srv_hostio_err_objs): Delete.
68 * hostio-errno.cc: Delete.
69 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
71 * hostio.h (hostio_last_error_from_errno): Delete.
72 * target.cc (process_stratum_target::hostio_last_error): Delete.
73 * target.h (class process_stratum_target) <hostio_last_error>:
76 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
78 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
79 * win32-low.h: Likewise.
81 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
83 * target.h (class process_stratum_target) <pid_to_exec_file>:
84 Constify the return type. Update the definition/references below.
85 * target.cc (process_stratum_target::pid_to_exec_file)
86 * linux-low.h (class linux_process_target) <pid_to_exec_file>
87 * linux-low.cc (linux_process_target::pid_to_exec_file)
88 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
89 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
90 * server.cc (handle_qxfer_exec_file)
92 2021-04-11 Eli Zaretskii <eliz@gnu.org>
94 * win32-low.cc (win32_add_dll): New function, with body almost
95 identical to what win32_add_all_dlls did. Accepts one argument;
96 if that is non-NULL, returns the file name of the DLL that is
97 loaded at the base address equal to that argument, or NULL if not
98 found. If the argument is NULL, add all the DLLs loaded by the
99 inferior to the list of solibs and return NULL.
100 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
101 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
102 failed to glean the file name of the DLL, call win32_add_dll to
103 try harder using the lpBaseOfDll member of the load-DLL event.
105 2021-03-30 Luis Machado <luis.machado@linaro.org>
107 * server.cc (handle_general_set, handle_query): Update variable
108 to bool and fix verification logic.
110 2021-03-24 Luis Machado <luis.machado@linaro.org>
112 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
113 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
114 nat/aarch64-mte-linux-ptrace.o.
115 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
116 (class aarch64_target) <supports_memory_tagging>
117 <fetch_memtags, store_memtags>: New method overrides.
118 (aarch64_target::supports_memory_tagging)
119 (aarch64_target::fetch_memtags)
120 (aarch64_target::store_memtags): New methods.
122 2021-03-24 Luis Machado <luis.machado@linaro.org>
124 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
125 (aarch64_store_mteregset): New function.
126 (aarch64_regsets): Add MTE register set entry.
127 (aarch64_sve_regsets): Add MTE register set entry.
129 2021-03-24 Luis Machado <luis.machado@linaro.org>
131 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
132 aarch64_linux_read_description.
133 (initialize_low_tracepoint): Likewise.
134 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
136 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
138 (aarch64_linux_read_description): Add mte_p parameter and update to
140 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
143 2021-03-24 Luis Machado <luis.machado@linaro.org>
145 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
147 2021-03-24 Luis Machado <luis.machado@linaro.org>
149 * server.cc (test_memory_tagging_functions): New function.
150 (captured_main): Register test_memory_tagging_functions.
152 2021-03-24 Luis Machado <luis.machado@linaro.org>
154 * remote-utils.cc (decode_m_packet_params): Renamed from ...
155 (decode_m_packet): ... this, which now calls decode_m_packet_params.
156 Make char * param/return const char *.
157 (decode_M_packet): Use decode_m_packet_params and make char * param
159 * remote-utils.h (decode_m_packet_params): New prototype.
160 (decode_m_packet): Constify char pointers.
161 (decode_M_packet): Likewise.
162 * server.cc (create_fetch_memtags_reply)
163 (parse_store_memtags_request): New
165 (handle_general_set): Handle the QMemTags packet.
166 (parse_fetch_memtags_request): New function.
167 (handle_query): Handle the qMemTags packet and advertise memory
169 (captured_main): Initialize memory tagging flag.
170 * server.h (struct client_state): Initialize memory tagging flag.
171 * target.cc (process_stratum_target::supports_memory_tagging)
172 (process_stratum_target::fetch_memtags)
173 (process_stratum_target::store_memtags): New methods.
174 * target.h: Include gdbsupport/byte-vector.h.
175 (class process_stratum_target) <supports_memory_tagging>
176 <fetch_memtags, store_memtags>: New class virtual methods.
177 (target_supports_memory_tagging): Define.
179 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
184 (unloaded_dll): Declare an overloaded version that takes a proc
186 * dll.cc (loaded_dll)
187 (unloaded_dll): Implement the overloaded versions.
188 (clear_dlls): Clear all process' dll lists.
189 (all_dlls, dlls_changed): Remove the global variables.
190 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
192 * server.cc (handle_qxfer_libraries): Ditto.
193 (handle_v_attach): Ditto.
194 (captured_main): Ditto.
196 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
198 * linux-low.cc (linux_process_target::filter_event): Return
200 * linux-low.h (class linux_process_target) <filter_event>:
203 2021-02-12 Tom Tromey <tromey@adacore.com>
205 * gdbreplay.cc (remote_desc): Remove.
206 (remote_desc_in, remote_desc_out): New globals.
207 (remote_close): Update.
208 (remote_open): Handle "-".
209 (remote_open): Update.
210 (logchar): Log to stderr.
211 (expect, play): Update.
213 2021-02-12 Tom Tromey <tromey@adacore.com>
215 * gdbreplay.cc (remote_open): Constify.
217 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
219 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
220 gnulib free replacement too.
221 * common-defs.h [USE_WIN32API](read, write): Undefine
222 gnulib versions before defining these macros.
224 2021-02-03 Pedro Alves <pedro@palves.net>
226 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
227 Discard step SIGTRAP, unless GDB wanted the thread to step.
229 2021-02-03 Pedro Alves <pedro@palves.net>
231 * server.cc (discard_queued_stop_replies): Don't ever discard the
232 notification at the head of the list.
234 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
236 * ax.cc (bytecode_address_table): Make static.
237 * debug.cc (debug_file): Make static.
238 * linux-low.cc (stopping_threads): Make static.
239 (step_over_bkpt): Make static.
240 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
241 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
242 alloced_trace_state_variables, trace_buffer_ctrl,
243 tracing_start_time, tracing_stop_time, tracing_user_name,
244 tracing_notes, tracing_stop_note): Make static.
246 2021-01-20 Tom de Vries <tdevries@suse.de>
248 * linux-x86-low.cc (collect_register_i386): New function.
249 (x86_fill_gregset): Remove memset. Use collect_register_i386.
251 2021-01-07 Tom de Vries <tdevries@suse.de>
253 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
254 (LIBIBERTY_FOR_SHLIB): New var.
255 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
256 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
258 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
260 * debug.cc (debug_print_depth): New.
262 2021-01-01 Joel Brobecker <brobecker@adacore.com>
264 * server.cc (gdbserver_version): Update copyright year.
265 * gdbreplay.cc (gdbreplay_version): Likewise.
267 2020-12-16 Luis Machado <luis.machado@linaro.org>
269 * linux-aarch64-low.cc (address_significant): New function.
270 (aarch64_target::low_stopped_data_address): Handle the TBI.
272 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
274 * Makefile.in (IPA_LIB): Include libiberty library.
276 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
278 * server.cc (gdbserver_usage): Add missing option to usage text.
279 (gdbserver_show_disableable): Likewise.
281 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
283 * ax.cc: Fix indentation.
284 * dll.cc: Fix indentation.
285 * inferiors.h: Fix indentation.
286 * linux-low.cc: Fix indentation.
287 * linux-nios2-low.cc: Fix indentation.
288 * linux-ppc-ipa.cc: Fix indentation.
289 * linux-ppc-low.cc: Fix indentation.
290 * linux-x86-low.cc: Fix indentation.
291 * linux-xtensa-low.cc: Fix indentation.
292 * regcache.cc: Fix indentation.
293 * server.cc: Fix indentation.
294 * tracepoint.cc: Fix indentation.
296 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
298 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
300 * configure: Re-generate.
302 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
304 * configure: Re-generate.
306 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
308 * configure: Re-generate.
310 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
312 * configure: Re-generate.
314 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
316 * configure: Re-generate.
318 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
320 * configure.ac: Modernize.
321 * configure: Re-generate.
323 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
325 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
327 * configure: Re-generate.
329 2020-10-26 Pedro Alves <pedro@palves.net>
331 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
332 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
335 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
337 * acinclude.m4: Update ptrace.m4 path.
339 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
341 * config.in: Re-generate.
342 * configure: Re-generate.
344 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
346 * server.cc (handle_general_set): Don't use sprintf with
347 argument overlapping buffer.
349 2020-10-20 Tom Tromey <tromey@adacore.com>
352 * inferiors.cc (remove_thread): Clear current_thread before
355 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
357 * netbsd-low.cc (netbsd_tdesc): Remove.
358 (netbsd_add_process): Likewise.
359 (netbsd_process_target::create_inferior): Update.
361 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
363 * linux-arc-low.cc (arc_linux_read_description): Release the
364 unique_ptr returned from arc_create_target_description.
366 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
368 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
369 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
371 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
373 * linux-low.cc (linux_process_target::handle_extended_wait):
374 Release the unique_ptr returned from allocate_target_description.
375 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
376 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
377 (tdesc_i386_linux_no_xml): Change type.
378 (x86_linux_read_description): Borrow pointer from unique_ptr
380 (x86_target::get_ipa_tdesc_idx): Likewise.
381 (initialize_low_arch): Likewise.
382 * tdesc.cc (allocate_target_description): Update return type.
384 2020-10-07 Tom Tromey <tromey@adacore.com>
386 * server.cc (handle_search_memory): Remove dead code.
388 2020-10-07 Tom Tromey <tromey@adacore.com>
390 * server.cc (handle_search_memory_1): Remove.
391 (handle_search_memory): Use simple_search_memory.
393 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
395 * Makefile.in (COMPILE): Add CXXFLAGS.
396 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
397 (gdbserver$(EXEEXT)): Add CXXFLAGS.
398 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
399 ($(IPA_LIB)): Add CXXFLAGS.
400 (IPAGENT_COMPILE): Add CXXFLAGS.
402 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
404 * configure.srv: Support ARC architecture.
405 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
406 * linux-arc-low.cc: New file.
408 2020-10-07 Kamil Rytarowski <n54@gmx.com>
410 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
411 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
412 (netbsd_process_target::qxfer_libraries_svr4): Update.
414 2020-10-07 Kamil Rytarowski <n54@gmx.com>
416 * netbsd-low.cc: Fix whitespace formatting.
417 * netbsd-amd64-low.cc: Likewise.
419 2020-10-07 Kamil Rytarowski <n54@gmx.com>
421 * netbsd-low.cc (netbsd_process_target::read_memory)
422 (netbsd_process_target::write_memory): Update.
424 2020-10-07 Kamil Rytarowski <n54@gmx.com>
426 * netbsd-aarch64-low.cc: Add.
427 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
428 * configure.srv: Add aarch64*-*-netbsd*.
430 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
432 * regcache.cc (register_data): Remove unused "fetch" argument.
434 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
436 * server.cc (handle_monitor_command): Handle "set
438 (captured_main): Handle "--debug-event-loop".
439 (monitor_show_help): Mention new setting.
440 (gdbserver_usage): Mention new flag.
442 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
444 * linux-low.cc (linux_process_target::async): Pass name to
446 * remote-utils.cc (handle_accept_event): Likewise.
447 (remote_open): Likewise.
449 2020-10-01 Kamil Rytarowski <n54@gmx.com>
451 * netbsd-i386-low.cc: Add.
452 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
453 * configure.srv: Add i[34567]86-*-netbsd*.
455 2020-10-01 Kamil Rytarowski <n54@gmx.com>
457 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
458 (netbsd_target_regsets): Now const.
459 (the_low_target): Remove.
460 (class netbsd_amd64_target, the_netbsd_amd64_target)
461 (the_netbsd_target): Add.
462 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
464 (netbsd_process_target::fetch_registers)
465 (netbsd_process_target::store_registers, initialize_low): Update.
466 (the_netbsd_target): Remove.
467 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
468 (the_low_target, netbsd_tdesc): Remove.
469 (netbsd_process_target::get_regs_info)
470 (netbsd_process_target::low_arch_setup): Add.
472 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
474 * win32-low.cc: Remove local wow64_process variable.
475 * win32-low.h: Remove local wow64_process variable.
477 2020-09-18 Tom Tromey <tromey@adacore.com>
479 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
480 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
481 (netbsd_process_target::wait): Change type of target_options.
482 * win32-low.h (class win32_process_target) <wait>: Update.
483 * win32-low.cc (win32_process_target::wait): Update.
484 * target.h (class process_stratum_target) <wait>: Update.
486 * target.cc (mywait, target_wait): Change type of "options".
487 * linux-low.h (class linux_process_target) <wait, wait_1>:
489 * linux-low.cc (linux_process_target::wait)
490 (linux_process_target::wait_1): Update.
492 2020-09-15 Tom Tromey <tromey@adacore.com>
494 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
495 (xmltarget_amd64_linux_no_xml): Now arrays.
497 2020-09-14 Tom Tromey <tromey@adacore.com>
499 * tracepoint.cc (eval_result_names): Now const.
500 * ax.cc (gdb_agent_op_names): Now const.
502 2020-09-10 Kamil Rytarowski <n54@gmx.com>
504 * netbsd-low.cc: Add.
505 * netbsd-low.h: Likewise.
506 * netbsd-amd64-low.cc: Likewise.
507 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
508 "netbsd-amd64-low.cc".
509 * configure.srv: Add x86_64-*-netbsd*.
511 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
513 * server.cc (captured_main): Accept multiple `--selftest=`
514 options. Pass all `--selftest=` arguments to run_tests.
516 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
518 * configure, config.in: Regenerate.
520 2020-07-26 Eli Zaretskii <eliz@gnu.org>
522 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
523 When checking whether socklen_t type is defined, use ws2tcpip.h if
524 it is available and sys/socket.h isn't.
525 * configure: Regenerate.
526 * config.in: Regenerate.
528 2020-07-22 Pedro Alves <pedro@palves.net>
530 * inferiors.cc (switch_to_process): New, moved here from
531 thread-db.cc, and made extern.
532 * inferiors.h (switch_to_process): Declare.
533 * server.cc: Include "gdbsupport/scoped_restore.h".
534 (handle_qxfer_threads_proper): Now returns bool. Prepare to
535 access memory around target calls.
536 (handle_qxfer_threads): Handle errors.
537 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
539 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
541 * linux-low.cc (stopped_pids): Make static.
543 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
545 * tdesc.cc (allocate_target_description): Add header comment.
546 (target_desc_deleter::operator()): New function.
547 * tdesc.h (struct target_desc): Declare as final.
549 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
551 * server.cc (handle_query): Use std::vector of
552 std::string for `qsupported` vector. Use separate
554 * target.h (class process_stratum_target) <process_qsupported>:
555 Change parameters to array_view of const char *.
556 (target_process_qsupported): Remove `count` parameter.
557 * target.cc (process_stratum_target::process_qsupported): Change
558 parameters to array_view of const char *.
559 * linux-x86-low.cc (class x86_target) <process_qsupported>:
562 2020-06-29 Tom de Vries <tdevries@suse.de>
564 * ax.h: Include gdbsupport/debug_agent.h.
566 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
568 * tdesc.cc (struct tdesc_compatible_info): New struct.
569 (tdesc_compatible_info_list): New function.
570 (tdesc_compatible_info_arch_name): New function.
572 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
574 Use std::list to stop pending signal instead of manually-created
576 * linux-low.h: Include <list>.
577 (struct pending_signal): Move here from linux-low.cc.
578 (struct lwp_info) <pending_signals>
579 <pending_signals_to_report>: Update the type.
580 * linux-low.cc (struct pending_signals): Remove.
581 (linux_process_target::delete_lwp)
582 (linux_process_target::add_lwp)
583 (enqueue_one_deferred_signal)
584 (dequeue_one_deferred_signal)
585 (enqueue_pending_signal)
586 (linux_process_target::resume_one_lwp_throw)
587 (linux_process_target::thread_needs_step_over)
588 (linux_process_target::resume_one_thread)
589 (linux_process_target::proceed_one_lwp): Update the use of pending
592 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
594 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
597 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
599 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
600 * configure.srv: Remove mingw32ce cases.
601 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
602 * win32-low.h (to_back_slashes): Remove.
603 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
605 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
607 * Makefile.in (SFILES): linux-tile-low.cc.
608 * configure.srv: Remove tilegx case.
609 * linux-tile-low.cc: Remove.
611 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
613 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
614 * configure.srv: Remove m32r case.
615 * linux-m32r-low.cc: Remove.
617 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
619 * Makefile.in (SFILES): Remove linux-cris-low.c.
620 * configure.srv: Remove cris cases.
621 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
623 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
625 * Makefile.in (SFILES): Remove linux-bfin-low.c.
626 * configure.srv: Remove bfin case.
627 * linux-bfin-low.cc: Remove.
628 * linux-low.cc: Remove BFIN-conditional code.
630 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
632 * configure: Re-generate.
633 * configure.ac: Remove srv_qnx test.
634 * configure.srv: Remove nto case.
635 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
636 * remote-utils.c: Remove __QNX__-guarded code.
638 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
640 * configure: Re-generate.
641 * configure.ac: Remove srv_lynxos test.
642 * configure.srv: Remove lynxos cases.
643 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
646 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
648 * README: Fix a few outdated or incoherent things.
650 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
652 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
653 (win32_clear_inferiors): Use open_process_used.
654 (get_child_debug_event): Likewise.
656 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
659 * linux-low.cc (linux_process_target::create_inferior),
660 lynx-low.cc (lynx_process_target::create_inferior),
661 win32-low.cc (win32_process_target::create_inferior): Use
662 construct_inferior_arguments instead of stringify_argv
663 to get string representation which properly escapes
665 * server.cc (handle_v_run): Just pass empty program arg
666 as such, since any further processing is now handled via
667 construct_inferior_arguments.
669 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
671 * nto-low.cc (nto_process_target::create_inferior): Pass
672 argv to spawnp function as char **.
674 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
676 * server.cc (captured_main), (handle_v_run): No longer
677 insert extra NULL element to args vector.
679 2020-05-23 Pedro Alves <palves@redhat.com>
681 * gdb-safe-ctype.h: New.
683 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
685 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
686 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
687 (ia64_target::low_breakpoint_at): Ditto.
689 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
691 * win32-i386-low.cc (i386_supports_z_point_type): Handle
692 Z_PACKET_HW_BP z_type.
693 (i386_insert_point): Handle raw_bkpt_type type.
694 (i386_remove_point): Likewise.
696 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
698 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
700 * win32-arm-low.cc (arm_num_regs): New function.
701 (struct win32_target_ops): Use arm_num_regs.
702 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
704 (i386_get_thread_context): Likewise.
705 (i386_prepare_to_resume): Likewise.
706 (i386_thread_added): Likewise.
707 (i386_single_step): Likewise.
708 (i386_fetch_inferior_register): Likewise.
709 (i386_store_inferior_register): Likewise.
710 (i386_arch_setup): Likewise.
711 (i386_win32_num_regs): New function.
712 (struct win32_target_ops): Use i386_win32_num_regs.
713 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
715 (win32_require_context): Likewise.
716 (child_add_thread): Likewise.
717 (do_initial_child_stuff): Likewise.
718 (continue_one_thread): Likewise.
719 (win32_process_target::resume): Likewise.
720 (load_psapi): Likewise.
721 (win32_add_all_dlls): Likewise.
722 (maybe_adjust_pc): Likewise.
723 (win32_process_target::qxfer_siginfo): Likewise.
724 (initialize_low): Likewise.
725 * win32-low.h (struct win32_target_ops): Change num_regs to
728 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
730 * configure.ac: Remove check for fs_base/gs_base in
732 * configure: Re-generate.
733 * config.in: Re-generate.
734 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
735 x86_store_gregset): Adjust.
737 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
739 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
742 2020-04-16 Tom Tromey <tromey@adacore.com>
744 * win32-low.cc (windows_nat::handle_access_violation): New
747 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
749 * win32-low.cc (get_child_debug_event): Fix format string warning.
751 2020-04-13 Tom Tromey <tom@tromey.com>
753 * server.h (gdb_fildes_t): Remove typedef.
754 * remote-utils.c (remote_desc, list_desc): Now int.
755 (INVALID_DESCRIPTOR): Remove.
756 (gdb_connected, remote_close)
757 (check_remote_input_interrupt_request): Update.
758 * utils.h (pfildes): Don't declare.
759 * utils.c (pfildes): Remove.
761 2020-04-13 Tom Tromey <tom@tromey.com>
763 * server.h (handle_serial_event, handle_target_event): Update.
764 * server.c: Don't call initialize_event_loop.
765 (keep_processing_events): New global.
766 (handle_serial_event): Return void. Set keep_processing_events.
767 (handle_target_event): Return void.
768 (start_event_loop): Move from event-loop.c. Rewrite.
769 * remote-utils.c (handle_accept_event): Return void.
770 (reset_readchar): Use delete_timer.
771 (process_remaining): Return void.
772 (reschedule): Use create_timer.
773 * event-loop.h: Remove.
774 * event-loop.cc: Remove.
775 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
777 2020-04-13 Tom Tromey <tom@tromey.com>
779 * server.c (invoke_async_signal_handlers)
780 (check_async_event_handlers, flush_streams, gdb_select): New
783 2020-04-13 Tom Tromey <tom@tromey.com>
785 * configure: Rebuild.
786 * config.in: Rebuild.
788 2020-04-08 Tom Tromey <tromey@adacore.com>
791 * win32-low.c (child_continue): Call matching_pending_stop.
792 (get_child_debug_event): Call fetch_pending_stop. Push pending
795 2020-04-08 Tom Tromey <tromey@adacore.com>
797 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
798 (win32_process_target::supports_stopped_by_sw_breakpoint):
800 * win32-low.c (win32_supports_z_point_type): Always handle
802 (win32_insert_point): Call insert_memory_breakpoint when needed.
803 (win32_remove_point): Call remove_memory_breakpoint when needed.
804 (win32_process_target::stopped_by_sw_breakpoint)
805 (win32_process_target::supports_stopped_by_sw_breakpoint): New
807 (win32_target_ops): Update.
808 (maybe_adjust_pc): New function.
809 (win32_wait): Call maybe_adjust_pc.
811 2020-04-08 Tom Tromey <tromey@adacore.com>
813 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
815 * win32-i386-low.c (the_low_target): Update.
816 * win32-arm-low.c (the_low_target): Update.
818 2020-04-08 Tom Tromey <tromey@adacore.com>
820 * win32-low.h (win32_process_target::read_pc)
821 (win32_process_target::write_pc): Declare.
822 * win32-low.c (win32_process_target::read_pc)
823 (win32_process_target::write_pc): New methods.
824 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
826 (the_low_target): Update.
827 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
829 (the_low_target): Update.
831 2020-04-08 Tom Tromey <tromey@adacore.com>
833 * win32-low.c (win32_kill, get_child_debug_event): Use
834 wait_for_debug_event.
836 2020-04-08 Tom Tromey <tromey@adacore.com>
838 * win32-low.c (child_continue): Call continue_last_debug_event.
840 2020-04-08 Tom Tromey <tromey@adacore.com>
842 * win32-low.c (handle_exception): Remove.
843 (windows_nat::handle_ms_vc_exception): New function.
844 (get_child_debug_event): Add "continue_status" parameter.
846 (win32_wait): Update.
848 2020-04-08 Tom Tromey <tromey@adacore.com>
850 * win32-low.c (windows_nat::handle_load_dll): Rename from
851 handle_load_dll. No longer static.
852 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
855 2020-04-08 Tom Tromey <tromey@adacore.com>
857 * win32-low.c (handle_output_debug_string): Add parameter. Change
859 (win32_kill, get_child_debug_event): Update.
861 2020-04-08 Tom Tromey <tromey@adacore.com>
863 * win32-low.c (current_process_handle, current_process_id)
864 (main_thread_id, last_sig, current_event, siginfo_er): Move to
867 2020-04-08 Tom Tromey <tromey@adacore.com>
869 * win32-low.c (get_image_name): Remove.
870 (handle_load_dll): Update.
872 2020-04-08 Tom Tromey <tromey@adacore.com>
874 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
875 No longer static. Change parameters.
876 (child_add_thread, child_fetch_inferior_registers)
877 (child_store_inferior_registers, win32_resume)
878 (win32_get_tib_address): Update.
880 2020-04-08 Tom Tromey <tromey@adacore.com>
882 * win32-low.h (struct win32_target_ops): Use qualified names where
884 * win32-i386-low.c: Add "using namespace".
885 * win32-low.c: Add "using namespace".
886 * win32-arm-low.c: Add "using namespace".
888 2020-04-08 Tom Tromey <tromey@adacore.com>
890 * win32-low.c (delete_thread_info): Don't call CloseHandle.
892 2020-04-08 Tom Tromey <tromey@adacore.com>
894 * win32-low.c (win32_require_context, suspend_one_thread): Use
895 windows_thread_info::suspend.
896 (continue_one_thread): Use windows_thread_info::resume.
897 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
899 2020-04-08 Tom Tromey <tromey@adacore.com>
901 * win32-i386-low.c (update_debug_registers)
902 (i386_prepare_to_resume, i386_thread_added): Update.
904 2020-04-08 Tom Tromey <tromey@adacore.com>
906 * win32-low.c (child_add_thread): Use new.
907 (delete_thread_info): Use delete.
909 2020-04-08 Tom Tromey <tromey@adacore.com>
911 * win32-low.h (struct windows_thread_info): Remove.
913 2020-04-08 Tom Tromey <tromey@adacore.com>
915 * win32-low.h (struct windows_thread_info): Rename from
916 win32_thread_info. Remove typedef.
917 (struct win32_target_ops, win32_require_context): Update.
918 * win32-low.c (win32_get_thread_context)
919 (win32_set_thread_context, win32_prepare_to_resume)
920 (win32_require_context, thread_rec, child_add_thread)
921 (delete_thread_info, continue_one_thread)
922 (child_fetch_inferior_registers, child_store_inferior_registers)
923 (win32_resume, suspend_one_thread, win32_get_tib_address):
925 * win32-i386-low.c (update_debug_registers)
926 (win32_get_current_dr, i386_get_thread_context)
927 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
928 (i386_fetch_inferior_register, i386_store_inferior_register):
930 * win32-arm-low.c (arm_get_thread_context)
931 (arm_fetch_inferior_register, arm_store_inferior_register):
934 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
936 * linux-low.h (struct linux_target_ops): Remove.
937 (the_low_target): Remove.
938 * linux-x86-low.cc (the_low_target): Remove.
939 * linux-aarch64-low.cc (the_low_target): Ditto.
940 * linux-arm-low.cc (the_low_target): Ditto.
941 * linux-bfin-low.cc (the_low_target): Ditto.
942 * linux-cris-low.cc (the_low_target): Ditto.
943 * linux-crisv32-low.cc (the_low_target): Ditto.
944 * linux-ia64-low.cc (the_low_target): Ditto.
945 * linux-m32r-low.cc (the_low_target): Ditto.
946 * linux-m68k-low.cc (the_low_target): Ditto.
947 * linux-mips-low.cc (the_low_target): Ditto.
948 * linux-nios2-low.cc (the_low_target): Ditto.
949 * linux-ppc-low.cc (the_low_target): Ditto.
950 * linux-riscv-low.cc (the_low_target): Ditto.
951 * linux-s390-low.cc (the_low_target): Ditto.
952 * linux-sh-low.cc (the_low_target): Ditto.
953 * linux-sparc-low.cc (the_low_target): Ditto.
954 * linux-tic6x-low.cc (the_low_target): Ditto.
955 * linux-tile-low.cc (the_low_target): Ditto.
956 * linux-xtensa-low.cc (the_low_target): Ditto.
958 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
960 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
961 linux target define the op by overriding the declaration in
962 process_stratum_target.
964 * linux-low.h (struct linux_target_ops): Remove the op.
965 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
966 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
967 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
968 (x86_get_ipa_tdesc_idx): Turn into...
969 (x86_target::get_ipa_tdesc_idx): ...this.
970 (the_low_target): Remove the op field.
971 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
972 (ppc_get_ipa_tdesc_idx): Turn into...
973 (ppc_target::get_ipa_tdesc_idx): ...this.
974 (the_low_target): Remove the op field.
975 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
976 (s390_get_ipa_tdesc_idx): Turn into...
977 (s390_target::get_ipa_tdesc_idx): ...this.
978 (the_low_target): Remove the op field.
980 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
982 Turn the 'get_syscall_trapinfo' linux target op into a method
983 of process_stratum_target.
985 * linux-low.h (struct linux_target_ops): Remove the op.
986 (class linux_process_target) <get_syscall_trapinfo>
987 <gdb_catch_this_syscall>
988 <low_supports_catch_syscall>
989 <low_get_syscall_trapinfo>: Declare.
990 * linux-low.cc (get_syscall_trapinfo): Turn into...
991 (linux_process_target::get_syscall_trapinfo): ...this.
992 (linux_process_target::low_get_syscall_trapinfo): Define.
993 (gdb_catch_this_syscall_p): Turn into...
994 (linux_process_target::gdb_catch_this_syscall): ...this.
995 (linux_process_target::low_supports_catch_syscall): Define.
997 Update the callers below.
999 (linux_process_target::wait_1)
1000 (linux_process_target::supports_catch_syscall)
1002 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1003 <low_get_syscall_trapinfo>: Declare.
1004 (x86_target::low_supports_catch_syscall): Define.
1005 (x86_get_syscall_trapinfo): Turn into...
1006 (x86_target::low_get_syscall_trapinfo): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-aarch64-low.cc (class aarch64_target)
1009 <low_supports_catch_syscall>
1010 <low_get_syscall_trapinfo>: Declare.
1011 (aarch64_target::low_supports_catch_syscall): Define.
1012 (aarch64_get_syscall_trapinfo): Turn into...
1013 (aarch64_target::low_get_syscall_trapinfo): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1016 <low_get_syscall_trapinfo>: Declare.
1017 (arm_target::low_supports_catch_syscall): Define.
1018 (arm_get_syscall_trapinfo): Turn into...
1019 (arm_target::low_get_syscall_trapinfo): ...this.
1020 (the_low_target): Remove the op field.
1021 * linux-ppc-low.cc (the_low_target): Remove the op field.
1022 * linux-s390-low.cc (the_low_target): Remove the op field.
1024 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1026 Remove the 'supports_hardware_single_step' linux target op and
1027 override the process_stratum_target's op definition in
1028 linux_process_target to return true.
1030 * linux-low.h (struct linux_target_ops): Remove the op.
1031 (class linux_process_target) <finish_step_over>
1032 <maybe_hw_step>: Declare.
1033 * linux-low.cc (can_hardware_single_step): Remove.
1034 (maybe_hw_step): Turn into...
1035 (linux_process_target::maybe_hw_step): ...this.
1036 (finish_step_over): Turn into...
1037 (linux_process_target::finish_step_over): ...this.
1038 (linux_process_target::supports_hardware_single_step): Update
1041 Update the callers below.
1043 (linux_process_target::single_step)
1044 (linux_process_target::resume_one_lwp_throw)
1046 * linux-arm-low.cc (class arm_target)
1047 <supports_hardware_single_step>: Declare.
1048 (arm_supports_hardware_single_step): Turn into...
1049 (arm_target::supports_hardware_single_step): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1052 (the_low_target): Remove the op field.
1053 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1055 (the_low_target): Remove the op field.
1056 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1057 (the_low_target): Remove the op field.
1058 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1059 (the_low_target): Remove the op field.
1060 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1061 (the_low_target): Remove the op field.
1062 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1063 (the_low_target): Remove the op field.
1064 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1065 (the_low_target): Remove the op field.
1066 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1067 (the_low_target): Remove the op field.
1068 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1069 (the_low_target): Remove the op field.
1070 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1071 (the_low_target): Remove the op field.
1072 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1073 (the_low_target): Remove the op field.
1074 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1076 (the_low_target): Remove the op field.
1078 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1080 Turn the 'supports_range_stepping' linux target op into a method
1081 of linux_process_target.
1083 * linux-low.h (struct linux_target_ops): Remove the op.
1084 (class linux_process_target) <low_supports_range_stepping>: Declare.
1085 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1087 (linux_process_target::supports_range_stepping): Update the call
1089 * linux-x86-low.cc (class x86_target)
1090 <low_supports_range_stepping>: Declare.
1091 (x86_supports_range_stepping): Turn into...
1092 (x86_target::low_supports_range_stepping): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-aarch64-low.cc (class aarch64_target)
1095 <low_supports_range_stepping>: Declare.
1096 (aarch64_supports_range_stepping): Turn into...
1097 (aarch64_target::low_supports_range_stepping): ...this.
1098 (the_low_target): Remove the op field.
1099 * linux-arm-low.cc (the_low_target): Remove the op field.
1100 * linux-bfin-low.cc (the_low_target): Ditto.
1101 * linux-crisv32-low.cc (the_low_target): Ditto.
1102 * linux-m32r-low.cc (the_low_target): Ditto.
1103 * linux-m68k-low.cc (the_low_target): Ditto.
1104 * linux-ppc-low.cc (the_low_target): Ditto.
1105 * linux-s390-low.cc (the_low_target): Ditto.
1106 * linux-sh-low.cc (the_low_target): Ditto.
1107 * linux-tic6x-low.cc (the_low_target): Ditto.
1108 * linux-tile-low.cc (the_low_target): Ditto.
1109 * linux-xtensa-low.cc (the_low_target): Ditto.
1111 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1113 Remove the 'emit_ops' linux target ops and let the concrete
1114 linux target define the op by overriding the declaration of
1115 process_stratum_target.
1117 * linux-low.h (struct linux_target_ops): Remove the op.
1118 (class linux_process_target) <emit_ops>: Remove.
1119 * linux-low.cc (linux_process_target::emit_ops): Remove.
1120 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1121 (x86_emit_ops): Turn into...
1122 (x86_target::emit_ops): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1125 (aarch64_emit_ops): Turn into...
1126 (aarch64_target::emit_ops): ...this.
1127 (the_low_target): Remove the op field.
1128 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1129 (ppc_emit_ops): Turn into...
1130 (ppc_target::emit_ops): ...this.
1131 (the_low_target): Remove the op field.
1132 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1133 (s390_emit_ops): Turn into...
1134 (s390_target::emit_ops): ...this.
1135 (the_low_target): Remove the op field.
1136 * linux-arm-low.cc (the_low_target): Remove the op field.
1137 * linux-bfin-low.cc (the_low_target): Ditto.
1138 * linux-crisv32-low.cc (the_low_target): Ditto.
1139 * linux-m32r-low.cc (the_low_target): Ditto.
1140 * linux-m68k-low.cc (the_low_target): Ditto.
1141 * linux-sh-low.cc (the_low_target): Ditto.
1142 * linux-tic6x-low.cc (the_low_target): Ditto.
1143 * linux-tile-low.cc (the_low_target): Ditto.
1144 * linux-xtensa-low.cc (the_low_target): Ditto.
1146 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1148 Remove the 'install_fast_tracepoint_jump_pad' and
1149 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1150 concrete linux target define the ops by overriding the declarations
1151 of process_stratum_target.
1153 * linux-low.h (struct linux_target_ops): Remove the ops.
1154 (class linux_process_target) <supports_fast_tracepoints>
1155 <install_fast_tracepoint_jump_pad>
1156 <get_min_fast_tracepoint_insn_len>: Remove.
1157 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1158 (linux_process_target::install_fast_tracepoint_jump_pad)
1159 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1160 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1161 <install_fast_tracepoint_jump_pad>
1162 <get_min_fast_tracepoint_insn_len>: Declare.
1163 (x86_target::supports_fast_tracepoints): Define.
1164 (x86_install_fast_tracepoint_jump_pad): Turn into...
1165 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1166 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1167 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1168 (the_low_target): Remove the op fields.
1169 * linux-aarch64-low.cc (class aarch64_target)
1170 <supports_fast_tracepoints>
1171 <install_fast_tracepoint_jump_pad>
1172 <get_min_fast_tracepoint_insn_len>: Declare.
1173 (aarch64_target::supports_fast_tracepoints): Define.
1174 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1175 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1176 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1177 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1178 (the_low_target): Remove the op fields.
1179 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1180 <install_fast_tracepoint_jump_pad>
1181 <get_min_fast_tracepoint_insn_len>: Declare.
1182 (ppc_target::supports_fast_tracepoints): Define.
1183 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1184 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1185 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1186 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1187 (the_low_target): Remove the op fields.
1188 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1189 <install_fast_tracepoint_jump_pad>
1190 <get_min_fast_tracepoint_insn_len>: Declare.
1191 (s390_target::supports_fast_tracepoints): Define.
1192 (s390_install_fast_tracepoint_jump_pad): Turn into...
1193 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1194 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1195 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1196 (the_low_target): Remove the op fields.
1197 * linux-arm-low.cc (the_low_target): Remove the op fields.
1198 * linux-bfin-low.cc (the_low_target): Ditto.
1199 * linux-crisv32-low.cc (the_low_target): Ditto.
1200 * linux-m32r-low.cc (the_low_target): Ditto.
1201 * linux-m68k-low.cc (the_low_target): Ditto.
1202 * linux-sh-low.cc (the_low_target): Ditto.
1203 * linux-tic6x-low.cc (the_low_target): Ditto.
1204 * linux-tile-low.cc (the_low_target): Ditto.
1205 * linux-xtensa-low.cc (the_low_target): Ditto.
1207 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1209 Turn the 'get_thread_area' linux target op into a method of
1210 process_stratum_target.
1212 * linux-low.h (struct linux_target_ops): Remove the op.
1213 (class linux_process_target) <stuck_in_jump_pad>
1214 <linux_fast_tracepoint_collecting>
1215 <low_get_thread_area>: Declare.
1216 * linux-low.cc (supports_fast_tracepoints): Remove.
1217 (linux_fast_tracepoint_collecting): Turn into...
1218 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1219 (linux_process_target::low_get_thread_area): Define.
1220 (stuck_in_jump_pad_callback): Turn into...
1221 (linux_process_target::stuck_in_jump_pad): ...this.
1223 Update the caller below.
1225 (linux_process_target::stabilize_threads)
1227 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1229 (x86_get_thread_area): Turn into...
1230 (x86_target::low_get_thread_area): ...this.
1231 (the_low_target): Remove the op field.
1232 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1234 (aarch64_get_thread_area): Turn into...
1235 (aarch64_target::low_get_thread_area): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1239 (ppc_get_thread_area): Turn into...
1240 (ppc_target::low_get_thread_area): ...this.
1241 (the_low_target): Remove the op field.
1242 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1244 (s390_get_thread_area): Turn into...
1245 (s390_target::low_get_thread_area): ...this.
1246 (the_low_target): Remove the op field.
1247 * linux-arm-low.cc (the_low_target): Remove the op field.
1248 * linux-bfin-low.cc (the_low_target): Ditto.
1249 * linux-crisv32-low.cc (the_low_target): Ditto.
1250 * linux-m32r-low.cc (the_low_target): Ditto.
1251 * linux-m68k-low.cc (the_low_target): Ditto.
1252 * linux-sh-low.cc (the_low_target): Ditto.
1253 * linux-tic6x-low.cc (the_low_target): Ditto.
1254 * linux-tile-low.cc (the_low_target): Ditto.
1255 * linux-xtensa-low.cc (the_low_target): Ditto.
1257 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1259 Remote the 'supports_tracepoints' linux target op and let the
1260 concrete linux target define it by overriding the op declared in
1261 process_stratum_target.
1263 * linux-low.h (struct linux_target_ops): Remove the op.
1264 (class linux_process_target) <supports_tracepoints>: Remove.
1265 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1266 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1268 (x86_supports_tracepoints): Turn into...
1269 (x86_target::supports_tracepoints): ...this.
1270 (the_low_target): Remove the op field.
1271 * linux-aarch64-low.cc (class aarch64_target)
1272 <supports_tracepoints>: Declare.
1273 (aarch64_supports_tracepoints): Turn into...
1274 (aarch64_target::supports_tracepoints): ...this.
1275 (the_low_target): Remove the op field.
1276 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1278 (ppc_supports_tracepoints): Turn into...
1279 (ppc_target::supports_tracepoints): ...this.
1280 (the_low_target): Remove the op field.
1281 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1283 (s390_supports_tracepoints): Turn into...
1284 (s390_target::supports_tracepoints): ...this.
1285 (the_low_target): Remove the op field.
1286 * linux-arm-low.cc (the_low_target): Remove the op field.
1287 * linux-bfin-low.cc (the_low_target): Ditto.
1288 * linux-crisv32-low.cc (the_low_target): Ditto.
1289 * linux-m32r-low.cc (the_low_target): Ditto.
1290 * linux-m68k-low.cc (the_low_target): Ditto.
1291 * linux-sh-low.cc (the_low_target): Ditto.
1292 * linux-tic6x-low.cc (the_low_target): Ditto.
1293 * linux-tile-low.cc (the_low_target): Ditto.
1294 * linux-xtensa-low.cc (the_low_target): Ditto.
1296 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1298 Remove the 'process_qsupported' linux target op and let a concrete
1299 linux target define the op by overriding the op declaration in
1300 process_stratum_target.
1302 * linux-low.h (struct linux_target_ops): Remove the op.
1303 (class linux_process_target) <process_qsupported>: Remove.
1304 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1305 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1306 (x86_linux_process_qsupported): Turn into...
1307 (x86_target::process_qsupported): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-aarch64-low.cc (the_low_target): Remove the op
1311 * linux-arm-low.cc (the_low_target): Ditto.
1312 * linux-bfin-low.cc (the_low_target): Ditto.
1313 * linux-crisv32-low.cc (the_low_target): Ditto.
1314 * linux-m32r-low.cc (the_low_target): Ditto.
1315 * linux-m68k-low.cc (the_low_target): Ditto.
1316 * linux-ppc-low.cc (the_low_target): Ditto.
1317 * linux-s390-low.cc (the_low_target): Ditto.
1318 * linux-sh-low.cc (the_low_target): Ditto.
1319 * linux-tic6x-low.cc (the_low_target): Ditto.
1320 * linux-tile-low.cc (the_low_target): Ditto.
1321 * linux-xtensa-low.cc (the_low_target): Ditto.
1323 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1325 Turn the 'prepare_to_resume' linux target op into a method of
1326 linux_process_target.
1328 * linux-low.h (struct linux_target_ops): Remove the op.
1329 (class linux_process_target) <low_prepare_to_resume>: Declare.
1330 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1333 Update the callers below:
1335 (linux_process_target::resume_one_lwp_throw)
1336 (linux_process_target::low_prepare_to_resume)
1338 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1340 (x86_target::low_prepare_to_resume): Define.
1341 (the_low_target): Remove the op field.
1342 * linux-aarch64-low.cc (class aarch64_target)
1343 <low_prepare_to_resume>: Declare.
1344 (aarch64_target::low_prepare_to_resume): Define.
1345 (the_low_target): Remove the op field.
1346 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1348 (arm_prepare_to_resume): Turn into...
1349 (arm_target::low_prepare_to_resume): ...this.
1350 (the_low_target): Remove the op field.
1351 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1353 (mips_linux_prepare_to_resume): Turn into...
1354 (mips_target::low_prepare_to_resume): ...this.
1355 (the_low_target): Remove the op field.
1356 * linux-bfin-low.cc (the_low_target): Remove the op field.
1357 * linux-crisv32-low.cc (the_low_target): Ditto.
1358 * linux-m32r-low.cc (the_low_target): Ditto.
1359 * linux-m68k-low.cc (the_low_target): Ditto.
1360 * linux-ppc-low.cc (the_low_target): Ditto.
1361 * linux-s390-low.cc (the_low_target): Ditto.
1362 * linux-sh-low.cc (the_low_target): Ditto.
1363 * linux-tic6x-low.cc (the_low_target): Ditto.
1364 * linux-tile-low.cc (the_low_target): Ditto.
1365 * linux-xtensa-low.cc (the_low_target): Ditto.
1367 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369 Turn the 'new_process', 'delete_process', 'new_thread',
1370 'delete_thread', and 'new_fork' linux target ops into methods
1371 of linux_process_target.
1373 * linux-low.h (struct linux_target_ops): Remove the ops.
1374 (class linux_process_target) <add_linux_process>
1379 <check_zombie_leaders>
1382 <low_delete_process>
1385 <low_new_fork>: Declare.
1386 * linux-low.cc (delete_lwp): Turn into...
1387 (linux_process_target::delete_lwp): ...this.
1388 (linux_process_target::low_delete_thread): Define.
1389 (linux_add_process): Turn into...
1390 (linux_process_target::add_linux_process): ...this.
1391 (linux_process_target::low_new_process): Define.
1392 (linux_process_target::low_delete_process): Define.
1393 (linux_process_target::low_new_fork): Define.
1394 (add_lwp): Turn into...
1395 (linux_process_target::add_lwp): ...this.
1396 (linux_process_target::low_new_thread): Define.
1397 (linux_attach_lwp): Turn into...
1398 (linux_process_target::attach_lwp): ...this.
1399 (linux_detach_one_lwp): Turn into...
1400 (linux_process_target::detach_one_lwp): ...this.
1401 (linux_detach_lwp_callback): Remove and inline...
1402 (linux_process_target::detach): ...here.
1403 (check_zombie_leaders): Turn into...
1404 (linux_process_target::check_zombie_leaders): ...this.
1405 (filter_exit_event): Turn into...
1406 (linux_process_target::filter_exit_event): ...this.
1408 Update the callers below.
1410 (linux_process_target::handle_extended_wait)
1411 (linux_process_target::create_inferior)
1412 (attach_proc_task_lwp_callback)
1413 (linux_process_target::attach)
1414 (linux_process_target::detach)
1415 (linux_process_target::mourn)
1416 * thread-db.cc (attach_thread)
1418 * linux-x86-low.cc (class x86_target) <low_new_process>
1419 <low_delete_process>
1422 <low_new_fork>: Declare.
1423 (x86_linux_new_process): Turn into...
1424 (x86_target::low_new_process): ...this.
1425 (x86_linux_delete_process): Turn into...
1426 (x86_target::low_delete_process): ...this.
1427 (x86_target::low_new_thread): Define.
1428 (x86_target::low_delete_thread): Define.
1429 (x86_linux_new_fork): Turn into...
1430 (x86_target::low_new_fork): ...this.
1431 (the_low_target): Remove the op fields.
1432 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1433 <low_delete_process>
1436 <low_new_fork>: Declare.
1437 (aarch64_linux_new_process): Turn into...
1438 (aarch64_target::low_new_process): ...this.
1439 (aarch64_linux_delete_process): Turn into...
1440 (aarch64_target::low_delete_process): ...this.
1441 (aarch64_target::low_new_thread): Define.
1442 (aarch64_target::low_delete_thread): Define.
1443 (aarch64_linux_new_fork): Turn into...
1444 (aarch64_target::low_new_fork): ...this.
1445 (the_low_target): Remove the op fields.
1446 * linux-arm-low.cc (class arm_target) <low_new_process>
1447 <low_delete_process>
1450 <low_new_fork>: Declare.
1451 (arm_new_process): Turn into...
1452 (arm_target::low_new_process): ...this.
1453 (arm_delete_process): Turn into...
1454 (arm_target::low_delete_process): ...this.
1455 (arm_new_thread): Turn into...
1456 (arm_target::low_new_thread): ...this.
1457 (arm_delete_thread): Turn into...
1458 (arm_target::low_delete_thread): ...this.
1459 (arm_new_fork): Turn into...
1460 (arm_target::low_new_fork): ...this.
1461 (the_low_target): Remove the op fields.
1462 * linux-mips-low.cc (class mips_target) <low_new_process>
1463 <low_delete_process>
1466 <low_new_fork>: Declare.
1467 (mips_linux_new_process): Turn into...
1468 (mips_target::low_new_process): ...this.
1469 (mips_linux_delete_process): Turn into...
1470 (mips_target::low_delete_process): ...this.
1471 (mips_linux_new_thread): Turn into...
1472 (mips_target::low_new_thread): ...this.
1473 (mips_linux_delete_thread): Turn into...
1474 (mips_target::low_delete_thread): ...this.
1475 (mips_linux_new_fork): Turn into...
1476 (mips_target::low_new_fork): ...this.
1477 (the_low_target): Remove the op fields.
1478 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1479 * linux-crisv32-low.cc (the_low_target): Ditto.
1480 * linux-m32r-low.cc (the_low_target): Ditto.
1481 * linux-m68k-low.cc (the_low_target): Ditto.
1482 * linux-ppc-low.cc (the_low_target): Ditto.
1483 * linux-s390-low.cc (the_low_target): Ditto.
1484 * linux-sh-low.cc (the_low_target): Ditto.
1485 * linux-tic6x-low.cc (the_low_target): Ditto.
1486 * linux-tile-low.cc (the_low_target): Ditto.
1487 * linux-xtensa-low.cc (the_low_target): Ditto.
1489 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1491 Turn the 'siginfo_fixup' linux target op into a method of
1492 linux_process_target.
1494 * linux-low.h (struct linux_target_ops): Remove the op.
1495 (class linux_process_target) <siginfo_fixup>
1496 <low_siginfo_fixup>: Declare.
1497 * linux-low.cc (siginfo_fixup): Turn into...
1498 (linux_process_target::siginfo_fixup): ...this.
1499 (linux_process_target::low_siginfo_fixup): Define.
1500 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1501 (x86_siginfo_fixup): Turn into...
1502 (x86_target::low_siginfo_fixup): ...this.
1503 (the_low_target): Remove the op field.
1504 * linux-aarch64-low.cc (class aarch64_target):
1505 <low_siginfo_fixup>: Declare.
1506 (aarch64_linux_siginfo_fixup): Turn into...
1507 (aarch64_target::low_siginfo_fixup): ...this.
1508 (the_low_target): Remove the op field.
1509 * linux-arm-low.cc (the_low_target): Remove the op field.
1510 * linux-bfin-low.cc (the_low_target): Ditto.
1511 * linux-crisv32-low.cc (the_low_target): Ditto.
1512 * linux-m32r-low.cc (the_low_target): Ditto.
1513 * linux-m68k-low.cc (the_low_target): Ditto.
1514 * linux-mips-low.cc (the_low_target): Ditto.
1515 * linux-ppc-low.cc (the_low_target): Ditto.
1516 * linux-s390-low.cc (the_low_target): Ditto.
1517 * linux-sh-low.cc (the_low_target): Ditto.
1518 * linux-tic6x-low.cc (the_low_target): Ditto.
1519 * linux-tile-low.cc (the_low_target): Ditto.
1520 * linux-xtensa-low.cc (the_low_target): Ditto.
1522 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1524 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1525 linux target ops into methods of linux_process_target.
1527 * linux-low.h (struct linux_target_ops): Remove the ops.
1528 (class linux_process_target) <low_collect_ptrace_register>
1529 <low_store_ptrace_register>: Declare.
1530 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1531 (linux_process_target::low_supply_ptrace_register): Define.
1533 Update the callers below.
1535 (linux_process_target::fetch_register)
1536 (linux_process_target::store_register)
1538 * linux-x86-low.cc (the_low_target): Remove the op fields.
1539 * linux-aarch64-low.cc (the_low_target): Ditto.
1540 * linux-arm-low.cc (the_low_target): Ditto.
1541 * linux-bfin-low.cc (the_low_target): Ditto.
1542 * linux-crisv32-low.cc (the_low_target): Ditto.
1543 * linux-m32r-low.cc (the_low_target): Ditto.
1544 * linux-m68k-low.cc (the_low_target): Ditto.
1545 * linux-sh-low.cc (the_low_target): Ditto.
1546 * linux-sparc-low.cc (the_low_target): Ditto.
1547 * linux-tic6x-low.cc (the_low_target): Ditto.
1548 * linux-tile-low.cc (the_low_target): Ditto.
1549 * linux-xtensa-low.cc (the_low_target): Ditto.
1550 * linux-mips-low.cc (class mips_target)
1551 <low_collect_ptrace_register>
1552 <low_supply_ptrace_register>: Declare.
1553 (mips_collect_ptrace_register): Turn into ...
1554 (mips_target::low_collect_ptrace_register): ...this.
1555 (mips_supply_ptrace_register): Turn into...
1556 (mips_target::low_supply_ptrace_register): ...this.
1557 (the_low_target): Remove the op fields.
1558 * linux-ppc-low.cc (class ppc_target)
1559 <low_collect_ptrace_register>
1560 <low_supply_ptrace_register>: Declare.
1561 (ppc_collect_ptrace_register): Turn into ...
1562 (ppc_target::low_collect_ptrace_register): ...this.
1563 (ppc_supply_ptrace_register): Turn into ...
1564 (ppc_target::low_supply_ptrace_register): ...this.
1565 (ppc_fill_gregset): Update for the calls to
1566 low_collect_ptrace_register.
1567 (the_low_target): Remove the op fields.
1568 * linux-s390-low.cc (class s390_target)
1569 <low_collect_ptrace_register>
1570 <low_supply_ptrace_register>: Declare.
1571 (s390_collect_ptrace_register): Turn into ...
1572 (s390_target::low_collect_ptrace_register): ...this.
1573 (s390_supply_ptrace_register): Turn into ...
1574 (s390_target::low_supply_ptrace_register): ...this.
1575 (s390_fill_gregset): Update for the calls to
1576 low_collect_ptrace_register.
1577 (the_low_target): Remove the op fields.
1579 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1581 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1582 target ops into methods of linux_process_target.
1584 * linux-low.h (struct linux_target_ops): Remove the ops.
1585 (class linux_process_target) <check_stopped_by_watchpoint>
1586 <low_stopped_by_watchpoint>
1587 <low_stopped_data_address>: Declare.
1588 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1589 (linux_process_target::check_stopped_by_watchpoint): ...this.
1590 (linux_process_target::low_stopped_by_watchpoint): Define.
1591 (linux_process_target::low_stopped_data_address): Define.
1592 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1593 <low_stopped_data_address>: Declare.
1594 (x86_stopped_by_watchpoint): Turn into...
1595 (x86_target::low_stopped_by_watchpoint): ...this.
1596 (x86_stopped_data_address): Turn into...
1597 (x86_target::low_stopped_data_address): ...this.
1598 (the_low_target): Remove the op fields.
1599 * linux-aarch64-low.cc (class aarch64_target)
1600 <low_stopped_by_watchpoint>
1601 <low_stopped_data_address>: Declare.
1602 (aarch64_stopped_by_watchpoint): Turn into...
1603 (aarch64_target::low_stopped_by_watchpoint): ...this.
1604 (aarch64_stopped_data_address): Turn into...
1605 (aarch64_target::low_stopped_data_address): ...this.
1606 (the_low_target): Remove the op fields.
1607 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1608 <low_stopped_data_address>: Declare.
1609 (arm_stopped_by_watchpoint): Turn into...
1610 (arm_target::low_stopped_by_watchpoint): ...this.
1611 (arm_stopped_data_address): Turn into...
1612 (arm_target::low_stopped_data_address): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-crisv32-low.cc (class crisv32_target)
1615 <low_stopped_by_watchpoint>
1616 <low_stopped_data_address>: Declare.
1617 (cris_stopped_by_watchpoint): Turn into...
1618 (crisv32_target::low_stopped_by_watchpoint): ...this.
1619 (cris_stopped_data_address): Turn into...
1620 (crisv32_target::low_stopped_data_address): ...this.
1621 (the_low_target): Remove the op fields.
1622 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1623 <low_stopped_data_address>: Declare.
1624 (mips_stopped_by_watchpoint): Turn into...
1625 (mips_target::low_stopped_by_watchpoint): ...this.
1626 (mips_stopped_data_address): Turn into...
1627 (mips_target::low_stopped_data_address): ...this.
1628 (the_low_target): Remove the op fields.
1629 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1630 * linux-m32r-low.cc (the_low_target): Ditto.
1631 * linux-m68k-low.cc (the_low_target): Ditto.
1632 * linux-ppc-low.cc (the_low_target): Ditto.
1633 * linux-s390-low.cc (the_low_target): Ditto.
1634 * linux-sh-low.cc (the_low_target): Ditto.
1635 * linux-sparc-low.cc (the_low_target): Ditto.
1636 * linux-tic6x-low.cc (the_low_target): Ditto.
1637 * linux-tile-low.cc (the_low_target): Ditto.
1638 * linux-xtensa-low.cc (the_low_target): Ditto.
1640 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1642 Turn the 'insert_point' and 'remove_point' linux target ops into
1643 methods of linux_process_target.
1645 * linux-low.h (struct linux_target_ops): Remove the ops.
1646 (class linux_process_target) <low_insert_point>
1647 <low_remove_point>: Declare.
1648 * linux-low.cc (linux_process_target::low_insert_point)
1649 (linux_process_target::low_remove_point): Define.
1650 (linux_process_target::insert_point)
1651 (linux_process_target::remove_point): Update for calls to
1652 low_insert_point and low_remove_point.
1653 * linux-x86-low.cc (class x86_target) <low_insert_point>
1654 <low_remove_point>: Declare.
1655 (x86_insert_point): Turn into...
1656 (x86_target::low_insert_point): ...this.
1657 (x86_remove_point): Turn into...
1658 (x86_target::low_remove_point): ...this.
1659 (the_low_target): Remove the op fields.
1660 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1661 <low_remove_point>: Declare.
1662 (aarch64_insert_point): Turn into...
1663 (aarch64_target::low_insert_point): ...this.
1664 (aarch64_remove_point): Turn into...
1665 (aarch64_target::low_remove_point): ...this.
1666 (the_low_target): Remove the op fields.
1667 * linux-arm-low.cc (class arm_target) <low_insert_point>
1668 <low_remove_point>: Declare.
1669 (arm_insert_point): Turn into...
1670 (arm_target::low_insert_point): ...this.
1671 (arm_remove_point): Turn into...
1672 (arm_target::low_remove_point): ...this.
1673 (the_low_target): Remove the op fields.
1674 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1675 <low_remove_point>: Declare.
1676 (crisv32_insert_point): Turn into...
1677 (crisv32_target::low_insert_point): ...this.
1678 (crisv32_remove_point): Turn into...
1679 (crisv32_target::low_remove_point): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-mips-low.cc (class mips_target) <low_insert_point>
1682 <low_remove_point>: Declare.
1683 (mips_insert_point): Turn into...
1684 (mips_target::low_insert_point): ...this.
1685 (mips_remove_point): Turn into...
1686 (mips_target::low_remove_point): ...this.
1687 (the_low_target): Remove the op fields.
1688 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1689 <low_remove_point>: Declare.
1690 (ppc_insert_point): Turn into...
1691 (ppc_target::low_insert_point): ...this.
1692 (ppc_remove_point): Turn into...
1693 (ppc_target::low_remove_point): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1696 * linux-m32r-low.cc (the_low_target): Ditto.
1697 * linux-m68k-low.cc (the_low_target): Ditto.
1698 * linux-s390-low.cc (the_low_target): Ditto.
1699 * linux-sh-low.cc (the_low_target): Ditto.
1700 * linux-sparc-low.cc (the_low_target): Ditto.
1701 * linux-tic6x-low.cc (the_low_target): Ditto.
1702 * linux-tile-low.cc (the_low_target): Ditto.
1703 * linux-xtensa-low.cc (the_low_target): Ditto.
1705 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1707 Remove the 'supports_z_point_type' linux target op and let the
1708 concrete linux target define it by overriding the op declared in
1709 process_stratum_target.
1711 * linux-low.cc (linux_process_target::supports_z_point_type):
1713 * linux-low.h (struct linux_target_ops): Remove the op.
1714 (class linux_process_target) <supports_z_point_type>: Remove.
1715 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1717 (x86_supports_z_point_type): Turn into...
1718 (x86_target::supports_z_point_type): ...this.
1719 (the_low_target): Remove the op field.
1720 * linux-aarch64-low.cc (class aarch64_target)
1721 <supports_z_point_type>: Declare.
1722 (aarch64_supports_z_point_type): Turn into...
1723 (aarch64_target::supports_z_point_type): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1727 (arm_supports_z_point_type): Turn into...
1728 (arm_target::supports_z_point_type): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-crisv32-low.cc (class crisv32_target)
1731 <supports_z_point_type>: Declare.
1732 (cris_supports_z_point_type): Turn into...
1733 (crisv32_target::supports_z_point_type): ...this.
1734 (the_low_target): Remove the op field.
1735 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1737 (mips_supports_z_point_type): Turn into...
1738 (mips_target::supports_z_point_type): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1742 (ppc_supports_z_point_type): Turn into...
1743 (ppc_target::supports_z_point_type): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1747 (s390_supports_z_point_type): Turn into...
1748 (s390_target::supports_z_point_type): ...this.
1749 (the_low_target): Remove the op field.
1750 * linux-bfin-low.cc (the_low_target): Remove the op field.
1751 * linux-m32r-low.cc (the_low_target): Ditto.
1752 * linux-m68k-low.cc (the_low_target): Ditto.
1753 * linux-sh-low.cc (the_low_target): Ditto.
1754 * linux-sparc-low.cc (the_low_target): Ditto.
1755 * linux-tic6x-low.cc (the_low_target): Ditto.
1756 * linux-tile-low.cc (the_low_target): Ditto.
1757 * linux-xtensa-low.cc (the_low_target): Ditto.
1759 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1761 Turn the 'breakpoint_at' linux target op into a method of
1762 linux_process_target.
1764 * linux-low.h (struct linux_target_ops): Remove the op.
1765 (class linux_process_target) <low_breakpoint_at>: Declare.
1767 Update the callers below:
1769 * linux-low.cc (linux_process_target::save_stop_reason)
1770 (linux_process_target::thread_still_has_status_pending)
1771 (linux_process_target::wait_1)
1773 * linux-x86-low.cc (class x86_target)
1774 <low_breakpoint_at>: Declare.
1775 (x86_breakpoint_at): Turn into...
1776 (x86_target::low_breakpoint_at): ...this.
1777 (the_low_target): Remove the op field.
1778 * linux-aarch64-low.cc (class aarch64_target)
1779 <low_breakpoint_at>: Declare.
1780 (aarch64_breakpoint_at): Turn into...
1781 (aarch64_target::low_breakpoint_at): ...this.
1782 (the_low_target): Remove the op field.
1783 * linux-arm-low.cc (class arm_target)
1784 <low_breakpoint_at>: Declare.
1785 (arm_target::low_breakpoint_at): Define.
1786 (the_low_target): Remove the op field.
1787 * linux-bfin-low.cc (class bfin_target)
1788 <low_breakpoint_at>: Declare.
1789 (bfin_breakpoint_at): Turn into...
1790 (bfin_target::low_breakpoint_at): ...this.
1791 (the_low_target): Remove the op field.
1792 * linux-cris-low.cc (class cris_target)
1793 <low_breakpoint_at>: Declare.
1794 (cris_breakpoint_at): Turn into...
1795 (cris_target::low_breakpoint_at): ...this.
1796 (the_low_target): Remove the op field.
1797 * linux-crisv32-low.cc (class crisv32_target)
1798 <low_breakpoint_at>: Declare.
1799 (crisv32_breakpoint_at): Turn into...
1800 (crisv32_target::low_breakpoint_at): ...this.
1801 (the_low_target): Remove the op field.
1802 * linux-ia64-low.cc (class ia64_target)
1803 <low_breakpoint_at>: Declare.
1804 (ia64_target::low_breakpoint_at): Define.
1805 * linux-m32r-low.cc (class m32r_target)
1806 <low_breakpoint_at>: Declare.
1807 (m32r_breakpoint_at): Turn into...
1808 (m32r_target::low_breakpoint_at): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-m68k-low.cc (class m68k_target)
1811 <low_breakpoint_at>: Declare.
1812 (m68k_breakpoint_at): Turn into...
1813 (m68k_target::low_breakpoint_at): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-mips-low.cc (class mips_target)
1816 <low_breakpoint_at>: Declare.
1817 (mips_breakpoint_at): Turn into...
1818 (mips_target::low_breakpoint_at): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-nios2-low.cc (class nios2_target)
1821 <low_breakpoint_at>: Declare.
1822 (nios2_breakpoint_at): Turn into...
1823 (nios2_target::low_breakpoint_at): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-ppc-low.cc (class ppc_target)
1826 <low_breakpoint_at>: Declare.
1827 (ppc_breakpoint_at): Turn into...
1828 (ppc_target::low_breakpoint_at): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-riscv-low.cc (class riscv_target)
1831 <low_breakpoint_at>: Declare.
1832 (riscv_breakpoint_at): Turn into...
1833 (riscv_target::low_breakpoint_at): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-s390-low.cc (class s390_target)
1836 <low_breakpoint_at>: Declare.
1837 (s390_breakpoint_at): Turn into...
1838 (s390_target::low_breakpoint_at): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-sh-low.cc (class sh_target)
1841 <low_breakpoint_at>: Declare.
1842 (sh_breakpoint_at): Turn into...
1843 (sh_target::low_breakpoint_at): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-sparc-low.cc (class sparc_target)
1846 <low_breakpoint_at>: Declare.
1847 (sparc_breakpoint_at): Turn into...
1848 (sparc_target::low_breakpoint_at): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-tic6x-low.cc (class tic6x_target)
1851 <low_breakpoint_at>: Declare.
1852 (tic6x_breakpoint_at): Turn into...
1853 (tic6x_target::low_breakpoint_at): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-tile-low.cc (class tile_target)
1856 <low_breakpoint_at>: Declare.
1857 (tile_breakpoint_at): Turn into...
1858 (tile_target::low_breakpoint_at): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-xtensa-low.cc (class xtensa_target)
1861 <low_breakpoint_at>: Declare.
1862 (xtensa_breakpoint_at): Turn into...
1863 (xtensa_target::low_breakpoint_at): ...this.
1864 (the_low_target): Remove the op field.
1866 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1868 Turn the 'decr_pc_after_break' linux_target_ops field into
1869 a method of linux_process_target.
1871 * linux-low.h (struct linux_target_ops)
1872 <decr_pc_after_break>: Remove.
1873 (class linux_process_target) <low_decr_pc_after_break>: New method
1875 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1876 New method implementation.
1878 Update the users below.
1880 (linux_process_target::save_stop_reason)
1881 (linux_process_target::wait_1)
1882 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1884 (x86_target::low_decr_pc_after_break): New method implementation.
1885 (the_low_target): Remove the field.
1886 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1888 (bfin_target::low_decr_pc_after_break): New method implementation.
1889 (the_low_target): Remove the field.
1890 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1892 (m68k_target::low_decr_pc_after_break): New method implementation.
1893 (the_low_target): Remove the field.
1894 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1896 (s390_target::low_decr_pc_after_break): New method implementation.
1897 (the_low_target): Remove the field.
1898 * linux-aarch64-low.cc (the_low_target): Remove the field.
1899 * linux-arm-low.cc (the_low_target): Remove the field.
1900 * linux-cris-low.cc (the_low_target): Remove the field.
1901 * linux-crisv32-low.cc (the_low_target): Remove the field.
1902 * linux-m32r-low.cc (the_low_target): Remove the field.
1903 * linux-mips-low.cc (the_low_target): Remove the field.
1904 * linux-nios2-low.cc (the_low_target): Remove the field.
1905 * linux-ppc-low.cc (the_low_target): Remove the field.
1906 * linux-riscv-low.cc (the_low_target): Remove the field.
1907 * linux-sh-low.cc (the_low_target): Remove the field.
1908 * linux-sparc-low.cc (the_low_target): Remove the field.
1909 * linux-tic6x-low.cc (the_low_target): Remove the field.
1910 * linux-tile-low.cc (the_low_target): Remove the field.
1911 * linux-xtensa-low.cc (the_low_target): Remove the field.
1913 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1915 Remove the 'supports_software_single_step' linux target op and let
1916 the concrete linux target define it by overriding the op in
1917 process_stratum_target.
1918 Turn the 'get_next_pcs' linux target op into a method of
1919 linux_process_target.
1921 * linux-low.h (struct linux_target_ops): Remove the ops.
1922 (class linux_process_target) <supports_software_single_step>:
1924 <low_get_next_pcs>: Declare.
1925 * linux-low.cc (can_software_single_step): Remove.
1926 (linux_process_target::low_get_next_pcs): Define.
1927 (linux_process_target::supports_software_single_step): Remove.
1929 Update the callers below.
1931 (linux_process_target::handle_extended_wait)
1932 (linux_process_target::wait_1)
1933 (linux_process_target::install_software_single_step_breakpoints)
1934 (linux_process_target::single_step)
1935 (linux_process_target::thread_needs_step_over)
1936 (linux_process_target::proceed_one_lwp)
1937 (linux_process_target::supports_range_stepping)
1939 * linux-x86-low.cc (the_low_target): Remove the op field.
1940 * linux-aarch64-low.cc (the_low_target): Ditto.
1941 * linux-bfin-low.cc (the_low_target): Ditto.
1942 * linux-cris-low.cc (the_low_target): Ditto.
1943 * linux-crisv32-low.cc (the_low_target): Ditto.
1944 * linux-m32r-low.cc (the_low_target): Ditto.
1945 * linux-m68k-low.cc (the_low_target): Ditto.
1946 * linux-mips-low.cc (the_low_target): Ditto.
1947 * linux-nios2-low.cc (the_low_target): Ditto.
1948 * linux-ppc-low.cc (the_low_target): Ditto.
1949 * linux-riscv-low.cc (the_low_target): Ditto.
1950 * linux-s390-low.cc (the_low_target): Ditto.
1951 * linux-sh-low.cc (the_low_target): Ditto.
1952 * linux-sparc-low.cc (the_low_target): Ditto.
1953 * linux-tic6x-low.cc (the_low_target): Ditto.
1954 * linux-tile-low.cc (the_low_target): Ditto.
1955 * linux-xtensa-low.cc (the_low_target): Ditto.
1956 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1957 <supports_software_single_step>: Declare.
1958 (arm_target::supports_software_single_step): Define.
1959 (arm_gdbserver_get_next_pcs): Turn into...
1960 (arm_target::low_get_next_pcs): ...this.
1961 (the_low_target): Remove the op field.
1963 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1965 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1966 the concrete linux target define it by overriding the op
1967 in process_stratum_target.
1969 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1971 * linux-low.h (struct linux_target_ops): Remove the op.
1972 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1973 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1975 (x86_sw_breakpoint_from_kind): Turn into...
1976 (x86_target::sw_breakpoint_from_kind): ...this.
1977 (the_low_target): Remove the op field.
1978 * linux-aarch64-low.cc (class aarch64_target)
1979 <sw_breakpoint_from_kind>: Declare.
1980 (aarch64_sw_breakpoint_from_kind): Turn into...
1981 (aarch64_target::sw_breakpoint_from_kind): ...this.
1982 (the_low_target): Remove the op field.
1983 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1985 (arm_target::sw_breakpoint_from_kind): Define.
1986 (the_low_target): Remove the op field.
1987 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1989 (bfin_sw_breakpoint_from_kind): Turn into...
1990 (bfin_target::sw_breakpoint_from_kind): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1994 (cris_sw_breakpoint_from_kind): Turn into...
1995 (cris_target::sw_breakpoint_from_kind): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-crisv32-low.cc (class crisv32_target)
1998 <sw_breakpoint_from_kind>: Declare.
1999 (cris_sw_breakpoint_from_kind): Turn into...
2000 (crisv32_target::sw_breakpoint_from_kind): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2004 (ia64_target::sw_breakpoint_from_kind): Define.
2005 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2007 (m32r_sw_breakpoint_from_kind): Turn into...
2008 (m32r_target::sw_breakpoint_from_kind): ...this.
2009 (the_low_target): Remove the op field.
2010 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2012 (m68k_sw_breakpoint_from_kind): Turn into...
2013 (m68k_target::sw_breakpoint_from_kind): ...this.
2014 (the_low_target): Remove the op field.
2015 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2017 (mips_sw_breakpoint_from_kind): Turn into...
2018 (mips_target::sw_breakpoint_from_kind): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2022 (nios2_sw_breakpoint_from_kind): Turn into...
2023 (nios2_target::sw_breakpoint_from_kind): ...this.
2024 (the_low_target): Remove the op field.
2025 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2027 (ppc_sw_breakpoint_from_kind): Turn into...
2028 (ppc_target::sw_breakpoint_from_kind): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2032 (riscv_sw_breakpoint_from_kind): Turn into...
2033 (riscv_target::sw_breakpoint_from_kind): ...this.
2034 (the_low_target): Remove the op field.
2035 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2037 (s390_sw_breakpoint_from_kind): Turn into...
2038 (s390_target::sw_breakpoint_from_kind): ...this.
2039 (the_low_target): Remove the op field.
2040 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2042 (sh_sw_breakpoint_from_kind): Turn into...
2043 (sh_target::sw_breakpoint_from_kind): ...this.
2044 (the_low_target): Remove the op field.
2045 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2047 (sparc_sw_breakpoint_from_kind): Turn into...
2048 (sparc_target::sw_breakpoint_from_kind): ...this.
2049 (the_low_target): Remove the op field.
2050 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2052 (tic6x_sw_breakpoint_from_kind): Turn into...
2053 (tic6x_target::sw_breakpoint_from_kind): ...this.
2054 (the_low_target): Remove the op field.
2055 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2057 (tile_sw_breakpoint_from_kind): Turn into...
2058 (tile_target::sw_breakpoint_from_kind): ...this.
2059 (the_low_target): Remove the op field.
2060 * linux-xtensa-low.cc (class xtensa_target)
2061 <sw_breakpoint_from_kind>: Declare.
2062 (xtensa_sw_breakpoint_from_kind): Turn into...
2063 (xtensa_target::sw_breakpoint_from_kind): ...this.
2064 (the_low_target): Remove the op field.
2066 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2068 Remove the 'breakpoint_kind_from_pc' and
2069 'breakpoint_kind_from_current_state' linux target ops, and let the
2070 concrete linux target define them by overriding the ops of
2071 process_stratum_target.
2073 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2075 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2076 * linux-low.h (struct linux_target_ops): Remove ops.
2077 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2078 <breakpoint_kind_from_current_state>: Remove.
2079 * linux-x86-low.cc (the_low_target): Remove the op fields.
2080 * linux-bfin-low.cc (the_low_target): Ditto.
2081 * linux-cris-low.cc (the_low_target): Ditto.
2082 * linux-crisv32-low.cc (the_low_target): Ditto.
2083 * linux-m32r-low.cc (the_low_target): Ditto.
2084 * linux-m68k-low.cc (the_low_target): Ditto.
2085 * linux-mips-low.cc (the_low_target): Ditto.
2086 * linux-nios2-low.cc (the_low_target): Ditto.
2087 * linux-ppc-low.cc (the_low_target): Ditto.
2088 * linux-s390-low.cc (the_low_target): Ditto.
2089 * linux-sh-low.cc (the_low_target): Ditto.
2090 * linux-sparc-low.cc (the_low_target): Ditto.
2091 * linux-tic6x-low.cc (the_low_target): Ditto.
2092 * linux-tile-low.cc (the_low_target): Ditto.
2093 * linux-xtensa-low.cc (the_low_target): Ditto.
2094 * linux-aarch64-low.cc (class aarch64_target)
2095 <breakpoint_kind_from_pc>
2096 <breakpoint_kind_from_current_state>: Declare.
2097 (aarch64_breakpoint_kind_from_pc): Turn into...
2098 (aarch64_target::breakpoint_kind_from_pc): ...this.
2099 (aarch64_breakpoint_kind_from_current_state): Turn into...
2100 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2101 (the_low_target): Remove the op fields.
2102 * linux-arm-low.cc (class arm_target):
2103 <breakpoint_kind_from_pc>
2104 <breakpoint_kind_from_current_state>: Declare.
2105 (arm_target::breakpoint_kind_from_pc): Define.
2106 (arm_target::breakpoint_kind_from_current_state): Define.
2107 (the_low_target): Remove the op fields.
2108 * linux-riscv-low.cc (class riscv_target):
2109 <breakpoint_kind_from_pc>: Declare.
2110 (riscv_breakpoint_kind_from_pc): Turn into...
2111 (riscv_target::breakpoint_kind_from_pc): ...this.
2112 (the_low_target): Remove the op fields.
2114 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2116 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2117 of linux_process_target.
2119 * linux-low.h (struct linux_target_ops): Remove the ops.
2120 (class linux_process_target) <low_supports_breakpoints>
2122 <low_set_pc>: Declare.
2123 * linux-low.cc (supports_breakpoints): Turn into...
2124 (linux_process_target::low_supports_breakpoints): ...this.
2125 (linux_process_target::low_get_pc): Define.
2126 (linux_process_target::low_set_pc): Define.
2128 Update the callers below.
2130 (linux_process_target::get_pc)
2131 (linux_process_target::save_stop_reason)
2132 (linux_process_target::maybe_move_out_of_jump_pad)
2133 (linux_process_target::wait_1)
2134 (linux_process_target::resume_one_lwp_throw)
2135 (linux_process_target::resume)
2136 (linux_process_target::proceed_all_lwps)
2137 (linux_process_target::read_pc)
2138 (linux_process_target::write_pc)
2140 * linux-x86-low.cc (class linux_process_target)
2141 <low_supports_breakpoints>
2143 <low_set_pc>: Declare.
2144 (x86_target::low_supports_breakpoints): Define.
2145 (x86_get_pc): Turn into...
2146 (x86_target::low_get_pc): ...this.
2147 (x86_set_pc): Turn into...
2148 (x86_target::low_set_pc): ...this.
2149 (the_low_target): Remove the op fields.
2150 * linux-arm-low.cc (class arm_target)
2151 <low_supports_breakpoints>
2153 <low_set_pc>: Declare.
2154 (arm_target::low_supports_breakpoints)
2155 (arm_target::low_get_pc)
2156 (arm_target::low_set_pc): Define.
2157 (the_low_target): Remove the op fields.
2158 * linux-bfin-low.cc (class bfin_target)
2159 <low_supports_breakpoints>
2161 <low_set_pc>: Declare.
2162 (bfin_target::low_supports_breakpoints)
2163 (bfin_target::low_get_pc)
2164 (bfin_target::low_set_pc): Define.
2165 (the_low_target): Remove the op fields.
2166 * linux-cris-low.cc (class cris_target)
2167 <low_supports_breakpoints>
2169 <low_set_pc>: Declare.
2170 (cris_target::low_supports_breakpoints)
2171 (cris_target::low_get_pc)
2172 (cris_target::low_set_pc): Define.
2173 (the_low_target): Remove the op fields.
2174 * linux-crisv32-low.cc (class crisv32_target)
2175 <low_supports_breakpoints>
2177 <low_set_pc>: Declare.
2178 (crisv32_target::low_supports_breakpoints)
2179 (crisv32_target::low_get_pc)
2180 (crisv32_target::low_set_pc): Define.
2181 (the_low_target): Remove the op fields.
2182 * linux-m32r-low.cc (class m32r_target)
2183 <low_supports_breakpoints>
2185 <low_set_pc>: Declare.
2186 (m32r_target::low_supports_breakpoints)
2187 (m32r_target::low_get_pc)
2188 (m32r_target::low_set_pc): Define.
2189 (the_low_target): Remove the op fields.
2190 * linux-m68k-low.cc (class m68k_target)
2191 <low_supports_breakpoints>
2193 <low_set_pc>: Declare.
2194 (m68k_target::low_supports_breakpoints)
2195 (m68k_target::low_get_pc)
2196 (m68k_target::low_set_pc): Define.
2197 (the_low_target): Remove the op fields.
2198 * linux-nios2-low.cc (class nios2_target)
2199 <low_supports_breakpoints>
2201 <low_set_pc>: Declare.
2202 (nios2_target::low_supports_breakpoints)
2203 (nios2_target::low_get_pc)
2204 (nios2_target::low_set_pc): Define.
2205 (the_low_target): Remove the op fields.
2206 * linux-sh-low.cc (class sh_target)
2207 <low_supports_breakpoints>
2209 <low_set_pc>: Declare.
2210 (sh_target::low_supports_breakpoints)
2211 (sh_target::low_get_pc)
2212 (sh_target::low_set_pc): Define.
2213 (the_low_target): Remove the op fields.
2214 * linux-xtensa-low.cc (class xtensa_target)
2215 <low_supports_breakpoints>
2217 <low_set_pc>: Declare.
2218 (xtensa_target::low_supports_breakpoints)
2219 (xtensa_target::low_get_pc)
2220 (xtensa_target::low_set_pc): Define.
2221 (the_low_target): Remove the op fields.
2222 * linux-sparc-low.cc (class sparc_target)
2223 <low_supports_breakpoints>
2224 <low_get_pc>: Declare.
2225 (sparc_target::low_supports_breakpoints)
2226 (sparc_target::low_get_pc): Define.
2227 (the_low_target): Remove the op fields.
2228 * linux-tile-low.cc (class tile_target)
2229 <low_supports_breakpoints>
2231 <low_set_pc>: Declare.
2232 (tile_target::low_supports_breakpoints)
2233 (tile_target::low_get_pc)
2234 (tile_target::low_set_pc): Define.
2235 (the_low_target): Remove the op fields.
2236 * linux-aarch64-low.cc (class aarch64_target)
2237 <low_supports_breakpoints>
2239 <low_set_pc>: Declare.
2240 (aarch64_target::low_supports_breakpoints): Define.
2241 (aarch64_get_pc): Turn into...
2242 (aarch64_target::low_get_pc): ...this.
2243 (aarch64_set_pc): Turn into...
2244 (aarch64_target::low_set_pc): ...this.
2245 (the_low_target): Remove the op fields.
2246 * linux-mips-low.cc (class mips_target)
2247 <low_supports_breakpoints>
2249 <low_set_pc>: Declare.
2250 (mips_target::low_supports_breakpoints): Define.
2251 (mips_get_pc): Turn into...
2252 (mips_target::low_get_pc): ...this.
2253 (mips_set_pc): Turn into...
2254 (mips_target::low_set_pc): ...this.
2255 (the_low_target): Remove the op fields.
2256 * linux-ppc-low.cc (class ppc_target)
2257 <low_supports_breakpoints>
2259 <low_set_pc>: Declare.
2260 (ppc_target::low_supports_breakpoints): Define.
2261 (ppc_get_pc): Turn into...
2262 (ppc_target::low_get_pc): ...this.
2263 (ppc_set_pc): Turn into...
2264 (ppc_target::low_set_pc): ...this.
2265 (the_low_target): Remove the op fields.
2266 * linux-riscv-low.cc (class riscv_target)
2267 <low_supports_breakpoints>
2269 <low_set_pc>: Declare.
2270 (riscv_target::low_supports_breakpoints): Define.
2271 (riscv_get_pc): Turn into...
2272 (riscv_target::low_get_pc): ...this.
2273 (riscv_set_pc): Turn into...
2274 (riscv_target::low_set_pc): ...this.
2275 (the_low_target): Remove the op fields.
2276 * linux-s390-low.cc (class s390_target)
2277 <low_supports_breakpoints>
2279 <low_set_pc>: Declare.
2280 (s390_target::low_supports_breakpoints): Define.
2281 (s390_get_pc): Turn into...
2282 (s390_target::low_get_pc): ...this.
2283 (s390_set_pc): Turn into...
2284 (s390_target::low_set_pc): ...this.
2285 (the_low_target): Remove the op fields.
2286 * linux-tic6x-low.cc (class tic6x_target)
2287 <low_supports_breakpoints>
2289 <low_set_pc>: Declare.
2290 (tic6x_target::low_supports_breakpoints): Define.
2291 (tic6x_get_pc): Turn into...
2292 (tic6x_target::low_get_pc): ...this.
2293 (tic6x_set_pc): Turn into...
2294 (tic6x_target::low_set_pc): ...this.
2295 (the_low_target): Remove the op fields.
2297 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2299 Turn some more static methods in linux-low into private methods
2300 of linux_process_target.
2302 * linux-low.cc (get_pc): Turn into...
2303 (linux_process_target::get_pc): ...this.
2304 (save_stop_reason): Turn into...
2305 (linux_process_target::save_stop_reason): ...this.
2306 (thread_still_has_status_pending_p): Turn into...
2307 (linux_process_target::thread_still_has_status_pending): ...this.
2308 (status_pending_p_callback): Turn into...
2309 (linux_process_target::status_pending_p_callback): ...this.
2310 (resume_stopped_resumed_lwps): Turn into...
2311 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2312 (install_software_single_step_breakpoints): Turn into...
2313 (linux_process_target::install_software_single_step_breakpoints):
2315 (single_step): Turn into...
2316 (linux_process_target::single_step): ...this.
2317 (linux_resume_one_lwp_throw): Turn into...
2318 (linux_process_target::resume_one_lwp_throw): ...this.
2319 (linux_resume_one_lwp): Turn into...
2320 (linux_process_target::resume_one_lwp): ...this.
2321 (resume_status_pending_p): Turn into...
2322 (linux_process_target::resume_status_pending): ...this.
2323 (need_step_over_p): Turn into...
2324 (linux_process_target::thread_needs_step_over): ...this.
2325 (linux_resume_one_thread): Turn into...
2326 (linux_process_target::resume_one_thread): ...this.
2327 (proceed_one_lwp): Turn into...
2328 (linux_process_target::proceed_one_lwp): ...this.
2329 (unsuspend_and_proceed_one_lwp): Turn into...
2330 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2332 Update the calls/references to the above functions below.
2334 (linux_process_target::handle_extended_wait)
2335 (linux_process_target::filter_event)
2336 (linux_process_target::wait_for_event_filtered)
2337 (linux_process_target::wait_1)
2338 (linux_process_target::move_out_of_jump_pad)
2339 (linux_process_target::start_step_over)
2340 (linux_process_target::resume)
2341 (linux_process_target::proceed_all_lwps)
2342 (regsets_store_inferior_registers)
2343 (linux_process_target::store_register)
2345 * linux-low.h (class linux_process_target)
2348 <thread_still_has_status_pending>
2349 <status_pending_p_callback>
2350 <resume_stopped_resumed_lwps>
2351 <install_software_single_step_breakpoints>
2353 <resume_one_lwp_throw>
2355 <resume_status_pending>
2356 <thread_needs_step_over>
2359 <unsuspend_and_proceed_one_lwp>: Declare.
2361 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2363 Turn the 'fetch_register' linux target op into a method of
2364 linux_process_target.
2366 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2367 (class linux_process_target) <low_fetch_register>: Declare.
2368 * linux-x86-low.cc (the_low_target)
2369 * linux-aarch64-low.cc (the_low_target)
2370 * linux-arm-low.cc (the_low_target)
2371 * linux-bfin-low.cc (the_low_target)
2372 * linux-cris-low.cc (the_low_target)
2373 * linux-crisv32-low.cc (the_low_target)
2374 * linux-m32r-low.cc (the_low_target)
2375 * linux-m68k-low.cc (the_low_target)
2376 * linux-nios2-low.cc (the_low_target)
2377 * linux-ppc-low.cc (the_low_target)
2378 * linux-s390-low.cc (the_low_target)
2379 * linux-sh-low.cc (the_low_target)
2380 * linux-sparc-low.cc (the_low_target)
2381 * linux-tic6x-low.cc (the_low_target)
2382 * linux-tile-low.cc (the_low_target)
2383 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2384 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2386 (ia64_fetch_register): Turn into...
2387 (ia64_target::low_fetch_register): ...this.
2388 (the_low_target): Remove the op field.
2389 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2391 (mips_fetch_register): Turn into...
2392 (mips_target::low_fetch_register): ...this.
2393 (the_low_target): Remove the op field.
2394 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2396 (riscv_fetch_register): Turn into...
2397 (riscv_target::low_fetch_register): ...this.
2398 (the_low_target): Remove the op field.
2400 Update the callers below.
2402 * linux-low.cc (linux_process_target::fetch_registers)
2403 (linux_process_target::low_fetch_register)
2405 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2407 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2408 linux target ops into methods of linux_process_target.
2410 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2411 (class linux_process_target) <fetch_register>
2413 <usr_fetch_inferior_registers>
2414 <usr_store_inferior_registers>
2415 <low_cannot_fetch_register>
2416 <low_cannot_fetch_register> Declare.
2417 * linux-low.cc (fetch_register): Turn into...
2418 (linux_process_target::fetch_register): ...this.
2419 (store_register): Turn into ...
2420 (linux_process_target::store_register): ...this.
2421 (usr_fetch_inferior_registers): Turn into...
2422 (linux_process_target::usr_fetch_inferior_registers): ...this.
2423 (usr_store_inferior_registers): Turn into...
2424 (linux_process_target::usr_store_inferior_registers): ...this.
2425 * linux-x86-low.cc (class x86_target)
2426 <low_cannot_fetch_register>
2427 <low_cannot_store_register>: Declare.
2428 (x86_cannot_store_register): Turn into...
2429 (x86_target::low_cannot_store_register): ...this.
2430 (x86_cannot_fetch_register): Turn into...
2431 (x86_target::low_cannot_fetch_register): ...this.
2432 (the_low_target): Remove the target op fields.
2433 * linux-aarch64-low.cc (class aarch64_target)
2434 <low_cannot_fetch_register>
2435 <low_cannot_store_register>: Declare.
2436 (aarch64_target::low_cannot_fetch_register)
2437 (aarch64_target::low_cannot_store_register): Define.
2438 (the_low_target): Remove the op fields.
2439 * linux-arm-low.cc (class arm_target)
2440 <low_cannot_fetch_register>
2441 <low_cannot_store_register>: Declare.
2442 (arm_cannot_fetch_register): Turn into...
2443 (arm_target::low_cannot_fetch_register): ...this.
2444 (arm_cannot_store_register): Turn into...
2445 (arm_target::low_cannot_store_register): ...this.
2446 (the_low_target): Remove the op fields.
2447 * linux-bfin-low.cc (class bfin_target)
2448 <low_cannot_fetch_register>
2449 <low_cannot_store_register>: Declare.
2450 (bfin_cannot_fetch_register): Turn into...
2451 (bfin_target::low_cannot_fetch_register): ...this.
2452 (bfin_cannot_store_register): Turn into...
2453 (bfin_target::low_cannot_store_register): ...this.
2454 (the_low_target): Remove the op fields.
2455 * linux-cris-low.cc (class cris_target)
2456 <low_cannot_fetch_register>
2457 <low_cannot_store_register>: Declare.
2458 (cris_cannot_fetch_register): Turn into...
2459 (cris_target::low_cannot_fetch_register): ...this.
2460 (cris_cannot_store_register): Turn into...
2461 (cris_target::low_cannot_store_register): ...this.
2462 (the_low_target): Remove the op fields.
2463 * linux-crisv32-low.cc (class crisv32_target)
2464 <low_cannot_fetch_register>
2465 <low_cannot_store_register>: Declare.
2466 (crisv32_target::low_cannot_fetch_register)
2467 (crisv32_target::low_cannot_store_register): Define.
2468 (the_low_target): Remove the op fields.
2469 * linux-ia64-low.cc (class ia64_target)
2470 <low_cannot_fetch_register>
2471 <low_cannot_store_register>: Declare.
2472 (ia64_cannot_fetch_register): Turn into...
2473 (ia64_target::low_cannot_fetch_register): ...this.
2474 (ia64_cannot_store_register): Turn into...
2475 (ia64_target::low_cannot_store_register): ...this.
2476 (the_low_target): Remove the op fields.
2477 * linux-m32r-low.cc (class m32r_target)
2478 <low_cannot_fetch_register>
2479 <low_cannot_store_register>: Declare.
2480 (m32r_cannot_fetch_register): Turn into...
2481 (m32r_target::low_cannot_fetch_register): ...this.
2482 (m32r_cannot_store_register): Turn into...
2483 (m32r_target::low_cannot_store_register): ...this.
2484 (the_low_target): Remove the op fields.
2485 * linux-m68k-low.cc (class m68k_target)
2486 <low_cannot_fetch_register>
2487 <low_cannot_store_register>: Declare.
2488 (m68k_cannot_fetch_register): Turn into...
2489 (m68k_target::low_cannot_fetch_register): ...this.
2490 (m68k_cannot_store_register): Turn into...
2491 (m68k_target::low_cannot_store_register): ...this.
2492 (the_low_target): Remove the op fields.
2493 * linux-mips-low.cc (class mips_target)
2494 <low_cannot_fetch_register>
2495 <low_cannot_store_register>: Declare.
2496 (mips_cannot_fetch_register): Turn into...
2497 (mips_target::low_cannot_fetch_register): ...this.
2498 (mips_cannot_store_register): Turn into...
2499 (mips_target::low_cannot_store_register): ...this.
2500 (get_usrregs_info): Inline at the call sites in
2501 low_cannot_fetch_register and low_cannot_store_register,
2503 (the_low_target): Remove the op fields.
2504 * linux-nios2-low.cc (class nios2_target)
2505 <low_cannot_fetch_register>
2506 <low_cannot_store_register>: Declare.
2507 (nios2_cannot_fetch_register): Turn into...
2508 (nios2_target::low_cannot_fetch_register): ...this.
2509 (nios2_cannot_store_register): Turn into...
2510 (nios2_target::low_cannot_store_register): ...this.
2511 (the_low_target): Remove the op fields.
2512 * linux-ppc-low.cc (class ppc_target)
2513 <low_cannot_fetch_register>
2514 <low_cannot_store_register>: Declare.
2515 (ppc_cannot_fetch_register): Turn into...
2516 (ppc_target::low_cannot_fetch_register): ...this.
2517 (ppc_cannot_store_register): Turn into...
2518 (ppc_target::low_cannot_store_register): ...this.
2519 (the_low_target): Remove the op fields.
2520 * linux-riscv-low.cc (class riscv_target)
2521 <low_cannot_fetch_register>
2522 <low_cannot_store_register>: Declare.
2523 (riscv_target::low_cannot_fetch_register)
2524 (riscv_target::low_cannot_store_register): Define.
2525 (the_low_target): Remove the op fields.
2526 * linux-s390-low.cc (class s390_target)
2527 <low_cannot_fetch_register>
2528 <low_cannot_store_register>: Declare.
2529 (s390_cannot_fetch_register): Turn into...
2530 (s390_target::low_cannot_fetch_register): ...this.
2531 (s390_cannot_store_register): Turn into...
2532 (s390_target::low_cannot_store_register): ...this.
2533 (the_low_target): Remove the op fields.
2534 * linux-sh-low.cc (class sh_target)
2535 <low_cannot_fetch_register>
2536 <low_cannot_store_register>: Declare.
2537 (sh_cannot_fetch_register): Turn into...
2538 (sh_target::low_cannot_fetch_register): ...this.
2539 (sh_cannot_store_register): Turn into...
2540 (sh_target::low_cannot_store_register): ...this.
2541 (the_low_target): Remove the op fields.
2542 * linux-sparc-low.cc (class sparc_target)
2543 <low_cannot_fetch_register>
2544 <low_cannot_store_register>: Declare.
2545 (sparc_cannot_fetch_register): Turn into...
2546 (sparc_target::low_cannot_fetch_register): ...this.
2547 (sparc_cannot_store_register): Turn into...
2548 (sparc_target::low_cannot_store_register): ...this.
2549 (the_low_target): Remove the op fields.
2550 * linux-tic6x-low.cc (class tic6x_target)
2551 <low_cannot_fetch_register>
2552 <low_cannot_store_register>: Declare.
2553 (tic6x_cannot_fetch_register): Turn into...
2554 (tic6x_target::low_cannot_fetch_register): ...this.
2555 (tic6x_cannot_store_register): Turn into...
2556 (tic6x_target::low_cannot_store_register): ...this.
2557 (the_low_target): Remove the op fields.
2558 * linux-tile-low.cc (class tile_target)
2559 <low_cannot_fetch_register>
2560 <low_cannot_store_register>: Declare.
2561 (tile_cannot_fetch_register): Turn into...
2562 (tile_target::low_cannot_fetch_register): ...this.
2563 (tile_cannot_store_register): Turn into...
2564 (tile_target::low_cannot_store_register): ...this.
2565 (the_low_target): Remove the op fields.
2566 * linux-xtensa-low.cc (class xtensa_target)
2567 <low_cannot_fetch_register>
2568 <low_cannot_store_register>: Declare.
2569 (xtensa_target::low_cannot_fetch_register)
2570 (xtensa_target::low_cannot_store_register): Define.
2571 (the_low_target): Remove the op fields.
2573 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2575 Turn the 'regs_info' linux target op into a method of
2576 linux_process_target.
2578 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2579 (class linux_process_target) <get_regs_info>: Define.
2581 Update the callers below.
2583 * linux-low.cc (linux_process_target::fetch_registers)
2584 (linux_process_target::store_registers)
2585 * proc-service.cc (gregset_info)
2587 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2588 (x86_linux_regs_info): Turn into ...
2589 (x86_target::get_regs_info): ...this.
2590 (the_low_target): Remove the op field.
2591 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2593 (aarch64_regs_info): Turn into ...
2594 (aarch64_target::get_regs_info): ...this.
2595 (the_low_target): Remove the op field.
2596 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2597 (arm_regs_info): Turn into ...
2598 (arm_target::get_regs_info): ...this.
2599 (the_low_target): Remove the op field.
2600 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2601 (bfin_regs_info): Turn into ...
2602 (bfin_target::get_regs_info): ...this.
2603 (the_low_target): Remove the op field.
2604 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2605 (cris_regs_info): Turn into ...
2606 (cris_target::get_regs_info): ...this.
2607 (the_low_target): Remove the op field.
2608 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2610 (crisv32_regs_info): Turn into ...
2611 (crisv32_target::get_regs_info): ...this.
2612 (the_low_target): Remove the op field.
2613 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2614 (ia64_regs_info): Turn into ...
2615 (ia64_target::get_regs_info): ...this.
2616 (the_low_target): Remove the op field.
2617 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2618 (m32r_regs_info): Turn into ...
2619 (m32r_target::get_regs_info): ...this.
2620 (the_low_target): Remove the op field.
2621 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2622 (m68k_regs_info): Turn into ...
2623 (m68k_target::get_regs_info): ...this.
2624 (the_low_target): Remove the op field.
2625 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2626 (mips_regs_info): Turn into ...
2627 (mips_target::get_regs_info): ...this.
2628 (the_low_target): Remove the op field.
2629 (get_usrregs_info): Update the call to the op.
2630 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2631 (nios2_regs_info): Turn into ...
2632 (nios2_target::get_regs_info): ...this.
2633 (the_low_target): Remove the op field.
2634 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2635 (ppc_regs_info): Turn into ...
2636 (ppc_target::get_regs_info): ...this.
2637 (the_low_target): Remove the op field.
2638 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2639 (riscv_regs_info): Turn into ...
2640 (riscv_target::get_regs_info): ...this.
2641 (the_low_target): Remove the op field.
2642 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2643 (s390_regs_info): Turn into ...
2644 (s390_target::get_regs_info): ...this.
2645 (the_low_target): Remove the op field.
2646 (s390_collect_ptrace_register)
2647 (s390_supply_ptrace_register)
2648 (s390_fill_gregset): Update the call to the op.
2649 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2650 (sh_regs_info): Turn into ...
2651 (sh_target::get_regs_info): ...this.
2652 (the_low_target): Remove the op field.
2653 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2654 (sparc_regs_info): Turn into ...
2655 (sparc_target::get_regs_info): ...this.
2656 (the_low_target): Remove the op field.
2657 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2658 (tic6x_regs_info): Turn into ...
2659 (tic6x_target::get_regs_info): ...this.
2660 (the_low_target): Remove the op field.
2661 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2662 (tile_regs_info): Turn into ...
2663 (tile_target::get_regs_info): ...this.
2664 (the_low_target): Remove the op field.
2665 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2667 (xtensa_regs_info): Turn into ...
2668 (xtensa_target::get_regs_info): ...this.
2669 (the_low_target): Remove the op field.
2671 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2673 Turn the 'arch_setup' linux target op into a method of
2674 linux_process_target.
2676 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2677 (class linux_process_target) <arch_setup_thread>
2678 <low_arch_setup>: New declarations.
2679 * linux-low.cc (linux_arch_setup): Delete.
2680 (linux_arch_setup_thread): Turn into...
2681 (linux_process_target::arch_setup_thread): ... this.
2683 Update the callers below.
2685 (linux_process_target::handle_extended_wait)
2686 (linux_process_target::post_create_inferior)
2687 (linux_process_target::filter_event)
2689 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2691 (x86_linux_update_xmltarget): Turn into...
2692 (x86_target::update_xmltarget): ...this.
2693 (x86_linux_process_qsupported): Update the call to
2694 x86_linux_update_xmltarget.
2695 (x86_arch_setup): Turn into ...
2696 (x86_target::low_arch_setup): ...this.
2697 (the_low_target): Remove the op field.
2698 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2700 (aarch64_arch_setup): Turn into ...
2701 (aarch64_target::low_arch_setup): ...this.
2702 (the_low_target): Remove the op field.
2703 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2705 (arm_arch_setup): Turn into ...
2706 (arm_target::low_arch_setup): ...this.
2707 (the_low_target): Remove the op field.
2708 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2710 (bfin_arch_setup): Turn into ...
2711 (bfin_target::low_arch_setup): ...this.
2712 (the_low_target): Remove the op field.
2713 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2715 (cris_arch_setup): Turn into ...
2716 (cris_target::low_arch_setup): ...this.
2717 (the_low_target): Remove the op field.
2718 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2720 (crisv32_arch_setup): Turn into ...
2721 (crisv32_target::low_arch_setup): ...this.
2722 (the_low_target): Remove the op field.
2723 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2725 (ia64_arch_setup): Turn into ...
2726 (ia64_target::low_arch_setup): ...this.
2727 (the_low_target): Remove the op field.
2728 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2730 (m32r_arch_setup): Turn into ...
2731 (m32r_target::low_arch_setup): ...this.
2732 (the_low_target): Remove the op field.
2733 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2735 (m68k_arch_setup): Turn into ...
2736 (m68k_target::low_arch_setup): ...this.
2737 (the_low_target): Remove the op field.
2738 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2740 (mips_arch_setup): Turn into ...
2741 (mips_target::low_arch_setup): ...this.
2742 (the_low_target): Remove the op field.
2743 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2745 (nios2_arch_setup): Turn into ...
2746 (nios2_target::low_arch_setup): ...this.
2747 (the_low_target): Remove the op field.
2748 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2750 (ppc_arch_setup): Turn into ...
2751 (ppc_target::low_arch_setup): ...this.
2752 (the_low_target): Remove the op field.
2753 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2755 (riscv_arch_setup): Turn into ...
2756 (riscv_target::low_arch_setup): ...this.
2757 (the_low_target): Remove the op field.
2758 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2760 (s390_arch_setup): Turn into ...
2761 (s390_target::low_arch_setup): ...this.
2762 (the_low_target): Remove the op field.
2763 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2765 (sh_arch_setup): Turn into ...
2766 (sh_target::low_arch_setup): ...this.
2767 (the_low_target): Remove the op field.
2768 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2770 (sparc_arch_setup): Turn into ...
2771 (sparc_target::low_arch_setup): ...this.
2772 (the_low_target): Remove the op field.
2773 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2775 (tic6x_arch_setup): Turn into ...
2776 (tic6x_target::low_arch_setup): ...this.
2777 (the_low_target): Remove the op field.
2778 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2780 (tile_arch_setup): Turn into ...
2781 (tile_target::low_arch_setup): ...this.
2782 (the_low_target): Remove the op field.
2783 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2785 (xtensa_arch_setup): Turn into ...
2786 (xtensa_target::low_arch_setup): ...this.
2787 (the_low_target): Remove the op field.
2789 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2791 * linux-low.h (the_linux_target): New extern declaration.
2792 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2794 (the_linux_target): Remove.
2795 * linux-x86-low.cc (class x86_target): New class.
2796 (the_x86_target): New static object.
2797 (the_linux_target): Define as pointer to the_x86_target.
2798 * linux-aarch64-low.cc (class aarch64_target): New class.
2799 (the_aarch64_target): New static object.
2800 (the_linux_target): Define as pointer to the_aarch64_target.
2801 * linux-arm-low.cc (class arm_target): New class.
2802 (the_arm_target): New static object.
2803 (the_linux_target): Define as pointer to the_arm_target.
2804 * linux-bfin-low.cc (class bfin_target): New class.
2805 (the_bfin_target): New static object.
2806 (the_linux_target): Define as pointer to the_bfin_target.
2807 * linux-cris-low.cc (class cris_target): New class.
2808 (the_cris_target): New static object.
2809 (the_linux_target): Define as pointer to the_cris_target.
2810 * linux-crisv32-low.cc (class crisv32_target): New class.
2811 (the_crisv32_target): New static object.
2812 (the_linux_target): Define as pointer to the_crisv32_target.
2813 * linux-ia64-low.cc (class ia64_target): New class.
2814 (the_ia64_target): New static object.
2815 (the_linux_target): Define as pointer to the_ia64_target.
2816 * linux-m32r-low.cc (class m32r_target): New class.
2817 (the_m32r_target): New static object.
2818 (the_linux_target): Define as pointer to the_m32r_target.
2819 * linux-m68k-low.cc (class m68k_target): New class.
2820 (the_m68k_target): New static object.
2821 (the_linux_target): Define as pointer to the_m68k_target.
2822 * linux-mips-low.cc (class mips_target): New class.
2823 (the_mips_target): New static object.
2824 (the_linux_target): Define as pointer to the_mips_target.
2825 * linux-nios2-low.cc (class nios2_target): New class.
2826 (the_nios2_target): New static object.
2827 (the_linux_target): Define as pointer to the_nios2_target.
2828 * linux-ppc-low.cc (class ppc_target): New class.
2829 (the_ppc_target): New static object.
2830 (the_linux_target): Define as pointer to the_ppc_target.
2831 * linux-riscv-low.cc (class riscv_target): New class.
2832 (the_riscv_target): New static object.
2833 (the_linux_target): Define as pointer to the_riscv_target.
2834 * linux-s390-low.cc (class s390_target): New class.
2835 (the_s390_target): New static object.
2836 (the_linux_target): Define as pointer to the_s390_target.
2837 * linux-sh-low.cc (class sh_target): New class.
2838 (the_sh_target): New static object.
2839 (the_linux_target): Define as pointer to the_sh_target.
2840 * linux-sparc-low.cc (class sparc_target): New class.
2841 (the_sparc_target): New static object.
2842 (the_linux_target): Define as pointer to the_sparc_target.
2843 * linux-tic6x-low.cc (class tic6x_target): New class.
2844 (the_tic6x_target): New static object.
2845 (the_linux_target): Define as pointer to the_tic6x_target.
2846 * linux-tile-low.cc (class tile_target): New class.
2847 (the_tile_target): New static object.
2848 (the_linux_target): Define as pointer to the_tile_target.
2849 * linux-xtensa-low.cc (class xtensa_target): New class.
2850 (the_xtensa_target): New static object.
2851 (the_linux_target): Define as pointer to the_xtensa_target.
2853 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2855 Turn some static functions in linux-low.cc into private methods of
2856 linux_process_target.
2858 * linux-low.cc (handle_extended_wait): Turn into ...
2859 (linux_process_target::handle_extended_wait): ...this. Call
2860 'mourn' on 'this' object instead of 'the_target'.
2861 (maybe_move_out_of_jump_pad): Turn into...
2862 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2863 (linux_low_filter_event): Turn into...
2864 (linux_process_target::filter_event): ...this.
2865 (linux_wait_for_event_filtered): Turn into...
2866 (linux_process_target::wait_for_event_filtered): ...this.
2867 (linux_wait_for_event): Turn into...
2868 (linux_process_target::wait_for_event): ...this.
2869 (linux_wait_1): Turn into...
2870 (linux_process_target::wait_1): ...this.
2871 (wait_for_sigstop): Turn into...
2872 (linux_process_target::wait_for_sigstop): ...this.
2873 (move_out_of_jump_pad_callback): Turn into...
2874 (linux_process_target::move_out_of_jump_pad): ...this.
2875 (stop_all_lwps): Turn into...
2876 (linux_process_target::stop_all_lwps): ...this.
2877 (start_step_over): Turn into...
2878 (linux_process_target::start_step_over): ...this.
2879 (complete_ongoing_step_over): Turn into...
2880 (linux_process_target::complete_ongoing_step_over): ...this.
2881 (proceed_all_lwps): Turn into...
2882 (linux_process_target::proceed_all_lwps): ...this.
2883 (unstop_all_lwps): Turn into...
2884 (linux_process_target::unstop_all_lwps): ...this.
2886 * linux-low.h (class linux_process_target)
2887 <handle_extended_wait>
2888 <maybe_move_out_of_jump_pad>
2890 <wait_for_event_filtered>
2894 <move_out_of_jump_pad>
2897 <complete_ongoing_step_over>
2899 <unstop_all_lwps>: Declare.
2901 Update the callers below.
2903 * linux-low.cc (linux_process_target::attach): Update.
2904 (linux_process_target::stabilize_threads): Ditto.
2905 (linux_process_target::wait): Ditto.
2907 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2909 * linux-low.h (struct linux_target_ops): Update the comment for
2910 'cannot_store_register' to return 0 or 1.
2911 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2914 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2916 * config.in: Re-generate.
2917 * configure: Re-generate.
2919 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2921 * regcache.cc (find_register_by_number): Update.
2922 * tdesc.cc (init_target_desc): Likewise.
2923 * tdesc.h (target_desc::reg_defs): Likewise.
2925 2020-03-12 Tom Tromey <tom@tromey.com>
2927 * configure: Rebuild.
2928 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2929 (WIN32APILIBS): New subst.
2930 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2932 (gdbsupport/%.o): Remove target.
2933 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2934 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2935 (WIN32APILIBS): New variable.
2936 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2937 (gdbreplay$(EXEEXT)): Likewise.
2939 2020-03-12 Tom Tromey <tom@tromey.com>
2941 * config.in, configure: Rebuild.
2942 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2943 * acinclude.m4: Include gettext-sister.m4.
2944 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2946 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2947 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2949 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2951 * acinclude.m4: Update path to selftest.m4.
2953 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2955 * configure.ac: Don't source bfd/development.sh, move
2956 GDB_AC_COMMON higher.
2957 * configure: Re-generate.
2959 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2961 * configure: Re-generate.
2963 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2965 * configure: Re-generate.
2967 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2969 * .dir-locals.el: New file.
2971 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973 * .gitattributes: New file.
2975 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2977 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2978 reply into an S reply.
2979 * server.cc (disable_packet_T): New global.
2980 (captured_main): Set new global when appropriate.
2981 * server.h (disable_packet_T): Declare.
2983 2020-02-21 Tom Tromey <tom@tromey.com>
2985 * Makefile.in (mostlyclean): New target.
2987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989 * target.h (struct process_stratum_target): Remove.
2990 (class process_target): Rename to ...
2991 (class process_stratum_target): ... this.
2992 * linux-low.h (class linux_process_target): Derive from
2993 'process_stratum_target'.
2994 * linux-low.cc (linux_target_ops): Remove.
2995 (initialize_low): Set the_target to the singleton instance of
2996 linux_process_target.
2997 * lynx-low.h (class lynx_process_target): Derive from
2998 'process_stratum_target'.
2999 * lynx-low.cc (lynx_target_ops): Remove.
3000 (initialize_low): Set the_target to the singleton instance of
3001 lynx_process_target.
3002 * nto-low.h (class nto_process_target): Derive from
3003 'process_stratum_target'.
3004 * nto-low.cc (nto_target_ops): Remove.
3005 (initialize_low): Set the_target to the singleton instance of
3007 * win32-low.h (class win32_process_target): Derive from
3008 'process_stratum_target'.
3009 * win32-low.cc (win32_target_ops): Remove.
3010 (initialize_low): Set the_target to the singleton instance of
3011 win32_process_target.
3013 Replace 'the_target->pt' with 'the_target' in the uses below.
3015 * hostio.cc (hostio_error)
3020 * linux-aarch32-low.cc (arm_breakpoint_at)
3021 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3022 * linux-arm-low.cc (arm_sigreturn_next_pc)
3024 (arm_get_syscall_trapinfo)
3025 * linux-cris-low.cc (cris_breakpoint_at)
3026 * linux-crisv32-low.cc (cris_breakpoint_at)
3027 * linux-low.cc (handle_extended_wait)
3030 (linux_process_target::breakpoint_kind_from_pc)
3032 * linux-m32r-low.cc (m32r_breakpoint_at)
3033 * linux-mips-low.cc (mips_breakpoint_at)
3034 * linux-nios2-low.cc (nios2_breakpoint_at)
3035 * linux-ppc-low.cc (ppc_breakpoint_at)
3036 * linux-s390-low.cc (s390_get_hwcap)
3037 * linux-sh-low.cc (sh_breakpoint_at)
3038 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3039 (sparc_store_gregset_from_stack)
3040 (sparc_breakpoint_at)
3041 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3042 * linux-tile-low.cc (tile_breakpoint_at)
3043 * linux-x86-low.cc (x86_breakpoint_at)
3044 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3045 * mem-break.cc (bp_size)
3047 (insert_memory_breakpoint)
3048 (set_raw_breakpoint_at)
3049 (delete_raw_breakpoint)
3051 (uninsert_raw_breakpoint)
3052 (reinsert_raw_breakpoint)
3053 (validate_inserted_breakpoint)
3054 * regcache.cc (regcache_read_pc)
3056 * remote-utils.cc (putpkt_binary_1)
3059 (prepare_resume_reply)
3060 * server.cc (handle_general_set)
3063 (handle_qxfer_exec_file)
3064 (handle_qxfer_libraries_svr4)
3065 (handle_qxfer_osdata)
3066 (handle_qxfer_siginfo)
3067 (handle_qxfer_fdpic)
3071 (queue_stop_reply_callback)
3073 * target.cc (prepare_to_access_memory)
3074 (done_accessing_memory)
3075 (read_inferior_memory)
3076 (target_write_memory)
3077 (target_stop_and_wait)
3079 (target_mourn_inferior)
3080 (target_continue_no_signal)
3082 (target_supports_multi_process)
3085 (target_create_inferior)
3086 (target_post_create_inferior)
3088 (target_supports_fork_events)
3089 (target_supports_vfork_events)
3090 (target_supports_exec_events)
3091 (target_handle_new_gdb_connection)
3094 (fetch_inferior_registers)
3095 (store_inferior_registers)
3097 (target_supports_non_stop)
3099 (target_process_qsupported)
3100 (target_supports_catch_syscall)
3101 (target_get_ipa_tdesc_idx)
3102 (target_supports_tracepoints)
3103 (target_supports_fast_tracepoints)
3104 (target_get_min_fast_tracepoint_insn_len)
3105 (target_thread_stopped)
3107 (target_unpause_all)
3108 (target_stabilize_threads)
3109 (target_install_fast_tracepoint_jump_pad)
3111 (target_supports_disable_randomization)
3112 (target_supports_agent)
3113 (target_enable_btrace)
3114 (target_disable_btrace)
3115 (target_read_btrace)
3116 (target_read_btrace_conf)
3117 (target_supports_range_stepping)
3118 (target_supports_stopped_by_sw_breakpoint)
3119 (target_stopped_by_sw_breakpoint)
3120 (target_supports_stopped_by_hw_breakpoint)
3121 (target_supports_hardware_single_step)
3122 (target_stopped_by_hw_breakpoint)
3123 (target_breakpoint_kind_from_pc)
3124 (target_breakpoint_kind_from_current_state)
3125 (target_supports_software_single_step)
3126 (target_core_of_thread)
3127 (target_thread_name)
3128 (target_thread_handle)
3129 * win32-low.cc (do_initial_child_stuff)
3131 Rename target op default definitions listed below.
3133 * target.cc (process_target::post_create_inferior): Rename as ...
3134 (process_stratum_target::post_create_inferior): ... this.
3135 (process_target::prepare_to_access_memory): Rename as ...
3136 (process_stratum_target::prepare_to_access_memory): ... this.
3137 (process_target::done_accessing_memory): Rename as ...
3138 (process_stratum_target::done_accessing_memory): ... this.
3139 (process_target::look_up_symbols): Rename as ...
3140 (process_stratum_target::look_up_symbols): ... this.
3141 (process_target::supports_read_auxv): Rename as ...
3142 (process_stratum_target::supports_read_auxv): ... this.
3143 (process_target::read_auxv): Rename as ...
3144 (process_stratum_target::read_auxv): ... this.
3145 (process_target::supports_z_point_type): Rename as ...
3146 (process_stratum_target::supports_z_point_type): ... this.
3147 (process_target::insert_point): Rename as ...
3148 (process_stratum_target::insert_point): ... this.
3149 (process_target::remove_point): Rename as ...
3150 (process_stratum_target::remove_point): ... this.
3151 (process_target::stopped_by_sw_breakpoint): Rename as ...
3152 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3153 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3154 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3155 (process_target::stopped_by_hw_breakpoint): Rename as ...
3156 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3157 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3158 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3159 (process_target::supports_hardware_single_step): Rename as ...
3160 (process_stratum_target::supports_hardware_single_step): ... this.
3161 (process_target::stopped_by_watchpoint): Rename as ...
3162 (process_stratum_target::stopped_by_watchpoint): ... this.
3163 (process_target::stopped_data_address): Rename as ...
3164 (process_stratum_target::stopped_data_address): ... this.
3165 (process_target::supports_read_offsets): Rename as ...
3166 (process_stratum_target::supports_read_offsets): ... this.
3167 (process_target::read_offsets): Rename as ...
3168 (process_stratum_target::read_offsets): ... this.
3169 (process_target::supports_get_tls_address): Rename as ...
3170 (process_stratum_target::supports_get_tls_address): ... this.
3171 (process_target::get_tls_address): Rename as ...
3172 (process_stratum_target::get_tls_address): ... this.
3173 (process_target::hostio_last_error): Rename as ...
3174 (process_stratum_target::hostio_last_error): ... this.
3175 (process_target::supports_qxfer_osdata): Rename as ...
3176 (process_stratum_target::supports_qxfer_osdata): ... this.
3177 (process_target::qxfer_osdata): Rename as ...
3178 (process_stratum_target::qxfer_osdata): ... this.
3179 (process_target::supports_qxfer_siginfo): Rename as ...
3180 (process_stratum_target::supports_qxfer_siginfo): ... this.
3181 (process_target::qxfer_siginfo): Rename as ...
3182 (process_stratum_target::qxfer_siginfo): ... this.
3183 (process_target::supports_non_stop): Rename as ...
3184 (process_stratum_target::supports_non_stop): ... this.
3185 (process_target::async): Rename as ...
3186 (process_stratum_target::async): ... this.
3187 (process_target::start_non_stop): Rename as ...
3188 (process_stratum_target::start_non_stop): ... this.
3189 (process_target::supports_multi_process): Rename as ...
3190 (process_stratum_target::supports_multi_process): ... this.
3191 (process_target::supports_fork_events): Rename as ...
3192 (process_stratum_target::supports_fork_events): ... this.
3193 (process_target::supports_vfork_events): Rename as ...
3194 (process_stratum_target::supports_vfork_events): ... this.
3195 (process_target::supports_exec_events): Rename as ...
3196 (process_stratum_target::supports_exec_events): ... this.
3197 (process_target::handle_new_gdb_connection): Rename as ...
3198 (process_stratum_target::handle_new_gdb_connection): ... this.
3199 (process_target::handle_monitor_command): Rename as ...
3200 (process_stratum_target::handle_monitor_command): ... this.
3201 (process_target::core_of_thread): Rename as ...
3202 (process_stratum_target::core_of_thread): ... this.
3203 (process_target::supports_read_loadmap): Rename as ...
3204 (process_stratum_target::supports_read_loadmap): ... this.
3205 (process_target::read_loadmap): Rename as ...
3206 (process_stratum_target::read_loadmap): ... this.
3207 (process_target::process_qsupported): Rename as ...
3208 (process_stratum_target::process_qsupported): ... this.
3209 (process_target::supports_tracepoints): Rename as ...
3210 (process_stratum_target::supports_tracepoints): ... this.
3211 (process_target::read_pc): Rename as ...
3212 (process_stratum_target::read_pc): ... this.
3213 (process_target::write_pc): Rename as ...
3214 (process_stratum_target::write_pc): ... this.
3215 (process_target::supports_thread_stopped): Rename as ...
3216 (process_stratum_target::supports_thread_stopped): ... this.
3217 (process_target::thread_stopped): Rename as ...
3218 (process_stratum_target::thread_stopped): ... this.
3219 (process_target::supports_get_tib_address): Rename as ...
3220 (process_stratum_target::supports_get_tib_address): ... this.
3221 (process_target::get_tib_address): Rename as ...
3222 (process_stratum_target::get_tib_address): ... this.
3223 (process_target::pause_all): Rename as ...
3224 (process_stratum_target::pause_all): ... this.
3225 (process_target::unpause_all): Rename as ...
3226 (process_stratum_target::unpause_all): ... this.
3227 (process_target::stabilize_threads): Rename as ...
3228 (process_stratum_target::stabilize_threads): ... this.
3229 (process_target::supports_fast_tracepoints): Rename as ...
3230 (process_stratum_target::supports_fast_tracepoints): ... this.
3231 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3232 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3233 (process_target::emit_ops): Rename as ...
3234 (process_stratum_target::emit_ops): ... this.
3235 (process_target::supports_disable_randomization): Rename as ...
3236 (process_stratum_target::supports_disable_randomization): ... this.
3237 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3238 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3239 (process_target::qxfer_libraries_svr4): Rename as ...
3240 (process_stratum_target::qxfer_libraries_svr4): ... this.
3241 (process_target::supports_agent): Rename as ...
3242 (process_stratum_target::supports_agent): ... this.
3243 (process_target::enable_btrace): Rename as ...
3244 (process_stratum_target::enable_btrace): ... this.
3245 (process_target::disable_btrace): Rename as ...
3246 (process_stratum_target::disable_btrace): ... this.
3247 (process_target::read_btrace): Rename as ...
3248 (process_stratum_target::read_btrace): ... this.
3249 (process_target::read_btrace_conf): Rename as ...
3250 (process_stratum_target::read_btrace_conf): ... this.
3251 (process_target::supports_range_stepping): Rename as ...
3252 (process_stratum_target::supports_range_stepping): ... this.
3253 (process_target::supports_pid_to_exec_file): Rename as ...
3254 (process_stratum_target::supports_pid_to_exec_file): ... this.
3255 (process_target::pid_to_exec_file): Rename as ...
3256 (process_stratum_target::pid_to_exec_file): ... this.
3257 (process_target::supports_multifs): Rename as ...
3258 (process_stratum_target::supports_multifs): ... this.
3259 (process_target::multifs_open): Rename as ...
3260 (process_stratum_target::multifs_open): ... this.
3261 (process_target::multifs_unlink): Rename as ...
3262 (process_stratum_target::multifs_unlink): ... this.
3263 (process_target::multifs_readlink): Rename as ...
3264 (process_stratum_target::multifs_readlink): ... this.
3265 (process_target::breakpoint_kind_from_pc): Rename as ...
3266 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3267 (process_target::breakpoint_kind_from_current_state): Rename as ...
3268 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3269 (process_target::thread_name): Rename as ...
3270 (process_stratum_target::thread_name): ... this.
3271 (process_target::thread_handle): Rename as ...
3272 (process_stratum_target::thread_handle): ... this.
3273 (process_target::supports_software_single_step): Rename as ...
3274 (process_stratum_target::supports_software_single_step): ... this.
3275 (process_target::supports_catch_syscall): Rename as ...
3276 (process_stratum_target::supports_catch_syscall): ... this.
3277 (process_target::get_ipa_tdesc_idx): Rename as ...
3278 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3280 2020-02-20 Pedro Alves <palves@redhat.com>
3282 * target.cc (set_target_ops): Simply copy the given target pointer
3283 instead of creating a copy of the pointed object.
3285 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3287 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3290 * target.h (struct process_stratum_target): Remove the target op.
3291 (class process_target): Add the target op.
3292 (target_get_ipa_tdesc_idx): Update the macro.
3293 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3295 Update the derived classes and callers below.
3297 * linux-low.cc (linux_target_ops): Update.
3298 (linux_get_ipa_tdesc_idx): Turn into ...
3299 (linux_process_target::get_ipa_tdesc_idx): ... this.
3300 * linux-low.h (class linux_process_target): Update.
3301 * lynx-low.cc (lynx_target_ops): Update.
3302 * nto-low.cc (nto_target_ops): Update.
3303 * win32-low.cc (win32_target_ops): Update.
3305 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3307 Turn process_stratum_target's supports_catch_syscall op into a
3308 method of process_target.
3310 * target.h (struct process_stratum_target): Remove the target op.
3311 (class process_target): Add the target op.
3312 (target_supports_catch_syscall): Update the macro.
3313 * target.cc (process_target::supports_catch_syscall): Define.
3315 Update the derived classes and callers below.
3317 * linux-low.cc (linux_target_ops): Update.
3318 (linux_supports_catch_syscall): Turn into ...
3319 (linux_process_target::supports_catch_syscall): ... this.
3320 * linux-low.h (class linux_process_target): Update.
3321 * lynx-low.cc (lynx_target_ops): Update.
3322 * nto-low.cc (nto_target_ops): Update.
3323 * win32-low.cc (win32_target_ops): Update.
3325 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3327 Turn process_stratum_target's supports_software_single_step op
3328 into a method of process_target.
3330 * target.h (struct process_stratum_target): Remove the target op.
3331 (class process_target): Add the target op.
3332 (target_supports_software_single_step): Update the macro.
3333 * target.cc (process_target::supports_software_single_step): Define.
3335 Update the derived classes and callers below.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_supports_software_single_step): Turn into ...
3339 (linux_process_target::supports_software_single_step): ... this.
3340 * linux-low.h (class linux_process_target): Update.
3341 * lynx-low.cc (lynx_target_ops): Update.
3342 * nto-low.cc (nto_target_ops): Update.
3343 * win32-low.cc (win32_target_ops): Update.
3345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3347 Turn process_stratum_target's thread_name and thread_handle ops
3348 into methods of process_target.
3350 * target.h (struct process_stratum_target): Remove the target ops.
3351 (class process_target): Add the target ops.
3352 (target_thread_name): Update the macro.
3353 (target_thread_handle): Update the macro.
3354 * target.cc (process_target::thread_name): Define.
3355 (process_target::thread_handle): Define.
3357 Update the derived classes and callers below.
3359 * linux-low.cc (linux_target_ops): Update.
3360 (linux_process_target::thread_name): Define.
3361 (linux_process_target::thread_handle): Define.
3362 * linux-low.h (class linux_process_target): Update.
3363 * lynx-low.cc (lynx_target_ops): Update.
3364 * nto-low.cc (nto_target_ops): Update.
3365 * win32-low.cc (win32_target_ops): Update.
3367 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3369 Turn process_stratum_target's breakpoint_kind_from_pc,
3370 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3371 ops into methods of process_target.
3373 * target.h (struct process_stratum_target): Remove the target op.
3374 (class process_target): Add the target op.
3375 (target_breakpoint_kind_from_pc): Update the macro.
3376 (target_breakpoint_kind_from_current_state): Update the macro.
3377 (default_breakpoint_kind_from_pc): Remove declaration.
3378 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3379 (process_target::breakpoint_kind_from_pc): ... this.
3380 (process_target::breakpoint_kind_from_current_state): Define.
3382 Update the derived classes and callers below.
3384 * mem-break.cc (bp_size): Update.
3385 (bp_opcode): Update.
3386 * linux-low.cc (linux_target_ops): Update.
3387 (linux_wait_1): Update.
3388 (linux_breakpoint_kind_from_pc): Turn into ...
3389 (linux_process_target::breakpoint_kind_from_pc): ... this.
3390 (linux_sw_breakpoint_from_kind): Turn into ...
3391 (linux_process_target::sw_breakpoint_from_kind): ... this.
3392 (linux_breakpoint_kind_from_current_state): Turn into ...
3393 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3394 * linux-low.h (class linux_process_target): Update.
3395 * lynx-low.cc (lynx_target_ops): Update.
3396 (lynx_process_target::sw_breakpoint_from_kind): Define.
3397 * lynx-low.h (class lynx_process_target): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 (nto_sw_breakpoint_from_kind): Turn into ...
3400 (nto_process_target::sw_breakpoint_from_kind): ... this.
3401 * nto-low.h (class nto_process_target): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3403 (win32_sw_breakpoint_from_kind): Turn into ...
3404 (win32_process_target::sw_breakpoint_from_kind): ... this.
3405 * win32-low.h (class win32_process_target): Update.
3407 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3409 Turn process_stratum_target's multifs_open, multifs_readlink,
3410 multifs_unlink ops into methods of process_target.
3412 * target.h (struct process_stratum_target): Remove the target ops.
3413 (class process_target): Add the target ops. Also add
3415 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3417 (process_target::supports_multifs): Define.
3418 (process_target::multifs_open): Define.
3419 (process_target::multifs_readlink): Define.
3420 (process_target::multifs_unlink): Define.
3422 Update the derived classes and callers below.
3424 * hostio.cc (handle_setfs): Update.
3425 (handle_open): Update.
3426 (handle_unlink): Update.
3427 (handle_readlink): Update.
3428 * linux-low.cc (linux_target_ops): Update.
3429 (linux_process_target::supports_multifs): Define.
3430 (linux_process_target::multifs_open): Define.
3431 (linux_process_target::multifs_readlink): Define.
3432 (linux_process_target::multifs_unlink): Define.
3433 * linux-low.h (class linux_process_target): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 * win32-low.cc (win32_target_ops): Update.
3438 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3440 Turn process_stratum_target's pid_to_exec_file op into a method
3443 * target.h (struct process_stratum_target): Remove the target op.
3444 (class process_target): Add the target op. Also add
3445 'supports_pid_to_exec_file'.
3446 * target.cc (process_target::pid_to_exec_file): Define.
3447 (process_target::supports_pid_to_exec_file): Define.
3449 Update the derived classes and callers below.
3451 * server.cc (handle_qxfer_exec_file): Update.
3452 (handle_query): Update.
3453 * linux-low.cc (linux_target_ops): Update.
3454 (linux_process_target::supports_pid_to_exec_file): Define.
3455 (linux_process_target::pid_to_exec_file): Define.
3456 * linux-low.h (class linux_process_target): Update.
3457 * lynx-low.cc (lynx_target_ops): Update.
3458 * nto-low.cc (nto_target_ops): Update.
3459 * win32-low.cc (win32_target_ops): Update.
3461 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3463 Turn process_stratum_target's supports_range_stepping op into a
3464 method of process_target.
3466 * target.h (struct process_stratum_target): Remove the target op.
3467 (class process_target): Add the target op.
3468 (target_supports_range_stepping): Update the macro.
3469 * target.cc (process_target::supports_range_stepping): Define.
3471 Update the derived classes and callers below.
3473 * linux-low.cc (linux_target_ops): Update.
3474 (linux_supports_range_stepping): Turn into ...
3475 (linux_process_target::supports_range_stepping): ... this.
3476 * linux-low.h (class linux_process_target): Update.
3477 * lynx-low.cc (lynx_target_ops): Update.
3478 * nto-low.cc (nto_target_ops): Update.
3479 * win32-low.cc (win32_target_ops): Update.
3481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3483 Turn process_stratum_target's btrace-related ops (enable_btrace,
3484 disable_btrace, read_btrace, read_btrace_conf) into methods of
3487 * target.h (struct process_stratum_target): Remove the target ops.
3488 (class process_target): Add the target ops.
3489 (target_enable_btrace): Update.
3490 (target_disable_btrace): Update.
3491 (target_read_btrace): Update.
3492 (target_read_btrace_conf): Update.
3493 * target.cc (process_target::enable_btrace): Define.
3494 (process_target::disable_btrace): Define.
3495 (process_target::read_btrace): Define.
3496 (process_target::read_btrace_conf): Define.
3498 Update the derived classes and callers below.
3500 * linux-low.cc (linux_target_ops): Update.
3501 (linux_process_target:enable_btrace): Define as a wrapper around
3502 linux_enable_btrace.
3503 (linux_low_disable_btrace): Turn into ...
3504 (linux_process_target::disable_btrace): ... this.
3505 (linux_low_read_btrace): Turn into ...
3506 (linux_process_target::read_btrace): ... this.
3507 (linux_low_btrace_conf): Turn into ...
3508 (linux_process_target::read_btrace_conf): ... this.
3509 * linux-low.h (class linux_process_target): Update.
3510 * lynx-low.cc (lynx_target_ops): Update.
3511 * nto-low.cc (nto_target_ops): Update.
3512 * win32-low.cc (win32_target_ops): Update.
3514 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3516 Turn process_stratum_target's supports_agent op into a method of
3519 * target.h (struct process_stratum_target): Remove the target op.
3520 (class process_target): Add the target op.
3521 (target_supports_agent): Update the macro.
3522 * target.cc (process_target::supports_agent): Define.
3524 Update the derived classes and callers below.
3526 * linux-low.cc (linux_target_ops): Update.
3527 (linux_supports_agent): Turn into ...
3528 (linux_process_target::supports_agent): ... this.
3529 * linux-low.h (class linux_process_target): Update.
3530 * lynx-low.cc (lynx_target_ops): Update.
3531 * nto-low.cc (nto_target_ops): Update.
3532 * win32-low.cc (win32_target_ops): Update.
3534 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3536 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3537 method of process_target.
3539 * target.h (struct process_stratum_target): Remove the target op.
3540 (class process_target): Add the target op. Also add
3541 'supports_qxfer_libraries_svr4'.
3542 * target.cc (process_target::qxfer_libraries_svr4): Define.
3543 (process_target::supports_qxfer_libraries_svr4): Define.
3545 Update the derived classes and callers below.
3547 * server.cc (handle_qxfer_libraries_svr4): Update.
3548 (handle_query): Update.
3549 * linux-low.cc (linux_target_ops): Update.
3550 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3551 (linux_qxfer_libraries_svr4): Turn into ...
3552 (linux_process_target::qxfer_libraries_svr4): ... this.
3553 * linux-low.h (class linux_process_target): Update.
3554 * lynx-low.cc (lynx_target_ops): Update.
3555 * nto-low.cc (nto_target_ops): Update.
3556 * win32-low.cc (win32_target_ops): Update.
3558 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3560 Turn process_stratum_target's supports_disable_randomization op
3561 into a method of process_target.
3563 * target.h (struct process_stratum_target): Remove the target op.
3564 (class process_target): Add the target op.
3565 (target_supports_disable_randomization): Update the macro.
3566 * target.cc (process_target::supports_disable_randomization): Define.
3568 Update the derived classes and callers below.
3570 * linux-low.cc (linux_target_ops): Update.
3571 (linux_supports_disable_randomization): Turn into ...
3572 (linux_process_target::supports_disable_randomization): ... this.
3573 * linux-low.h (class linux_process_target): Update.
3574 * lynx-low.cc (lynx_target_ops): Update.
3575 * nto-low.cc (nto_target_ops): Update.
3576 * win32-low.cc (win32_target_ops): Update.
3578 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3580 Turn process_stratum_target's emit_ops op into a method of
3583 * target.h (struct process_stratum_target): Remove the target op.
3584 (class process_target): Add the target op.
3585 (target_emit_ops): Update the macro.
3586 * target.cc (process_target::emit_ops): Define.
3588 Update the derived classes and callers below.
3590 * linux-low.cc (linux_target_ops): Update.
3591 (linux_emit_ops): Turn into ...
3592 (linux_process_target::emit_ops): ... this.
3593 * linux-low.h (class linux_process_target): Update.
3594 * lynx-low.cc (lynx_target_ops): Update.
3595 * nto-low.cc (nto_target_ops): Update.
3596 * win32-low.cc (win32_target_ops): Update.
3598 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3600 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3601 and get_min_fast_tracepoint_insn_len ops into methods of
3604 * target.h (struct process_stratum_target): Remove the target ops.
3605 (class process_target): Add the target ops. Also add
3606 'supports_fast_tracepoints'.
3607 (target_supports_fast_tracepoints): Update the macro.
3608 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3609 (install_fast_tracepoint_jump_pad): Update and rename the macro
3611 (target_install_fast_tracepoint_jump_pad): ... this.
3612 * target.cc (process_target::supports_fast_tracepoints): Define.
3613 (process_target::install_fast_tracepoint_jump_pad): Define.
3614 (process_target::get_min_fast_tracepoint_insn_len): Define.
3616 Update the derived classes and callers below.
3618 * tracepoint.cc (install_fast_tracepoint): Update.
3619 * linux-low.cc (linux_target_ops): Update.
3620 (linux_process_target::supports_fast_tracepoints): Define.
3621 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3622 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3623 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3624 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3625 * linux-low.h (class linux_process_target): Update.
3626 * lynx-low.cc (lynx_target_ops): Update.
3627 * nto-low.cc (nto_target_ops): Update.
3628 * win32-low.cc (win32_target_ops): Update.
3630 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3632 Turn process_stratum_target's stabilize_threads op into a
3633 method of process_target.
3635 * target.h (struct process_stratum_target): Remove the target op.
3636 (class process_target): Add the target op.
3637 (target_stabilize_threads): Update the macro.
3638 * target.cc (process_target::stabilize_threads): Define.
3640 Update the derived classes and callers below.
3642 * server.cc (handle_status): Update.
3643 * tracepoint.cc (cmd_qtdp): Update.
3644 (cmd_qtstart): Update.
3645 * linux-low.cc (linux_target_ops): Update.
3646 (linux_stabilize_threads): Turn into ...
3647 (linux_process_target::stabilize_threads): ... this.
3648 (linux_wait_1): Update.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 * win32-low.cc (win32_target_ops): Update.
3654 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3656 Turn process_stratum_target's pause_all and unpause_all ops
3657 into methods of process_target.
3659 * target.h (struct process_stratum_target): Remove the target ops.
3660 (class process_target): Add the target ops.
3661 (pause_all): Update the macro and rename to...
3662 (target_pause_all): ... this.
3663 (unpause_all): Update the macro and rename to...
3664 (target_unpause_all): ... this.
3665 * target.cc (process_target::pause_all): Define.
3666 (process_target::unpause_all): Define.
3668 Update the derived classes and callers below.
3670 * server.cc (handle_status): Update.
3671 * tracepoint.cc (clear_installed_tracepoints): Update.
3673 (cmd_qtstart): Update.
3674 (stop_tracing): Update.
3675 (cmd_qtstatus): Update.
3676 (upload_fast_traceframes): Update.
3677 (run_inferior_command): Update.
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_pause_all): Turn into ...
3680 (linux_process_target::pause_all): ... this.
3681 (linux_unpause_all): Turn into ...
3682 (linux_process_target::unpause_all): ... this.
3683 (linux_process_target::prepare_to_access_memory): Update.
3684 (linux_process_target::done_accessing_memory): Update.
3685 * linux-low.h (class linux_process_target): Update.
3686 * lynx-low.cc (lynx_target_ops): Update.
3687 * nto-low.cc (nto_target_ops): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3690 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692 Turn process_stratum_target's get_tib_address op into a method of
3695 * target.h (struct process_stratum_target): Remove the target op.
3696 (class process_target): Add the target op. Also add
3697 'supports_get_tib_address'.
3698 * target.cc (process_target::get_tib_address): Define.
3699 (process_target::supports_get_tib_address): Define.
3701 Update the derived classes and callers below.
3703 * server.cc (handle_query): Update.
3704 * linux-low.cc (win32_target_ops): Update.
3705 * lynx-low.cc (lynx_target_ops): Update.
3706 * nto-low.cc (nto_target_ops): Update.
3707 * win32-low.cc (win32_target_ops): Update.
3708 (win32_process_target::supports_get_tib_address): Define.
3709 (win32_get_tib_address): Turn into ...
3710 (win32_process_target::get_tib_address): ... this.
3711 * win32-low.h (class win32_process_target): Update.
3713 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3715 Turn process_stratum_target's thread_stopped op into a method of
3718 * target.h (struct process_stratum_target): Remove the target op.
3719 (class process_target): Add the target op. Also add
3720 'supports_thread_stopped'.
3721 (target_thread_stopped): Update the macro.
3722 * target.cc (process_target::thread_stopped): Define.
3723 (process_target::supports_thread_stopped): Define.
3724 (prepare_to_access_memory): Update.
3726 Update the derived classes and callers below.
3728 * server.cc (queue_stop_reply_callback): Update.
3729 * linux-low.cc (linux_target_ops): Update.
3730 (linux_process_target::supports_thread_stopped): Define.
3731 (linux_thread_stopped): Turn into ...
3732 (linux_process_target::thread_stopped): ... this.
3733 * linux-low.h (class linux_process_target): Update.
3734 * lynx-low.cc (lynx_target_ops): Update.
3735 * nto-low.cc (nto_target_ops): Update.
3736 * win32-low.cc (win32_target_ops): Update.
3738 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740 Turn process_stratum_target's read_pc and write_pc ops into
3741 methods of process_target.
3743 * target.h (struct process_stratum_target): Remove the target ops.
3744 (class process_target): Add the target ops.
3745 * target.cc (process_target::read_pc): Define.
3746 (process_target::write_pc): Define.
3748 Update the derived classes and callers below.
3750 * regcache.cc (regcache_read_pc): Update.
3751 (regcache_write_pc): Update.
3752 * linux-low.cc (linux_target_ops): Update.
3753 (linux_read_pc): Turn into ...
3754 (linux_process_target::read_pc): ... this.
3755 (linux_write_pc): Turn into ...
3756 (linux_process_target::write_pc): ... this.
3757 * linux-low.h (class linux_process_target): Update.
3758 * lynx-low.cc (lynx_target_ops): Update.
3759 * nto-low.cc (nto_target_ops): Update.
3760 * win32-low.cc (win32_target_ops): Update.
3762 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3764 Turn process_stratum_target's supports_tracepoints op into a
3765 method of process_target.
3767 * target.h (struct process_stratum_target): Remove the target op.
3768 (class process_target): Add the target op.
3769 (target_supports_tracepoints): Update the macro.
3770 * target.cc (process_target::supports_tracepoints): Define.
3772 Update the derived classes and callers below.
3774 * linux-low.cc (linux_target_ops): Update.
3775 (linux_supports_tracepoints): Turn into ...
3776 (linux_process_target::supports_tracepoints): ... this.
3777 * linux-low.h (class linux_process_target): Update.
3778 * lynx-low.cc (lynx_target_ops): Update.
3779 * nto-low.cc (nto_target_ops): Update.
3780 * win32-low.cc (win32_target_ops): Update.
3782 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3784 Turn process_stratum_target's process_qsupported op into a method
3787 * target.h (struct process_stratum_target): Remove the target op.
3788 (class process_target): Add the target op.
3789 (target_process_qsupported): Update the macro.
3790 * target.cc (process_target::process_qsupported): Define.
3792 Update the derived classes and callers below.
3794 * linux-low.cc (linux_target_ops): Update.
3795 (linux_process_qsupported): Turn into ...
3796 (linux_process_target::process_qsupported): ... this.
3797 * linux-low.h (class linux_process_target): Update.
3798 * lynx-low.cc (lynx_target_ops): Update.
3799 * nto-low.cc (nto_target_ops): Update.
3800 * win32-low.cc (win32_target_ops): Update.
3802 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3804 Turn process_stratum_target's read_loadmap op into a method of
3807 * target.h (struct process_stratum_target): Remove the target op.
3808 (class process_target): Add the target op. Also add
3809 'supports_read_loadmap'.
3810 * target.cc (process_target::read_loadmap): Define.
3811 (process_target::supports_read_loadmap): Define.
3813 Update the derived classes and callers below.
3815 * server.cc (handle_qxfer_fdpic): Update.
3816 (handle_query): Update.
3817 * linux-low.cc (linux_target_ops): Update.
3818 (linux_process_target::supports_read_loadmap): Define.
3819 (linux_read_loadmap): Turn into ...
3820 (linux_process_target::read_loadmap): ... this.
3821 * linux-low.h (class linux_process_target): Update.
3822 * lynx-low.cc (lynx_target_ops): Update.
3823 * nto-low.cc (nto_target_ops): Update.
3824 * win32-low.cc (win32_target_ops): Update.
3826 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3828 Turn process_stratum_target's core_of_thread op into a method of
3831 * target.h (struct process_stratum_target): Remove the target op.
3832 (class process_target): Add the target op.
3833 (target_core_of_thread): Update the macro.
3834 * target.cc (process_target::core_of_thread): Define.
3836 Update the derived classes and callers below.
3838 * linux-low.cc (linux_target_ops): Update.
3839 (linux_process_target::core_of_thread): Define.
3840 * linux-low.h (class linux_process_target): Update.
3841 * lynx-low.cc (lynx_target_ops): Update.
3842 * nto-low.cc (nto_target_ops): Update.
3843 * win32-low.cc (win32_target_ops): Update.
3845 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3847 Turn process_stratum_target's handle_monitor_command op into a
3848 method of process_target.
3850 * target.h (struct process_stratum_target): Remove the target op.
3851 (class process_target): Add the target op.
3852 (target_handle_monitor_command): Update the macro.
3853 * target.cc (process_target::handle_monitor_command): Define.
3855 Update the derived classes and callers below.
3857 * server.cc (handle_query): Update.
3858 * linux-low.cc (linux_target_ops): Update.
3859 (linux_process_target::handle_monitor_command): Define.
3860 * linux-low.h (class linux_process_target): Update.
3861 * lynx-low.cc (lynx_target_ops): Update.
3862 * nto-low.cc (nto_target_ops): Update.
3863 * win32-low.cc (win32_target_ops): Update.
3865 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3867 Turn process_stratum_target's handle_new_gdb_connection op into a
3868 method of process_target.
3870 * target.h (struct process_stratum_target): Remove the target op.
3871 (class process_target): Add the target op.
3872 (target_handle_new_gdb_connection): Update the macro.
3873 * target.cc (process_target::handle_new_gdb_connection): Define.
3875 Update the derived classes and callers below.
3877 * linux-low.cc (linux_target_ops): Update.
3878 (linux_handle_new_gdb_connection): Turn into ...
3879 (linux_process_target::handle_new_gdb_connection): ... this.
3880 * linux-low.h (class linux_process_target): Update.
3881 * lynx-low.cc (lynx_target_ops): Update.
3882 * nto-low.cc (nto_target_ops): Update.
3883 * win32-low.cc (win32_target_ops): Update.
3885 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3887 Turn process_stratum_target's supports_fork_events,
3888 supports_vfork_events, and supports_exec_events ops into methods
3891 * target.h (struct process_stratum_target): Remove the target ops.
3892 (class process_target): Add the target ops.
3893 (target_supports_fork_events): Update the macro.
3894 (target_supports_vfork_events): Update the macro.
3895 (target_supports_exec_events): Update the macro.
3896 * target.cc (process_target::supports_fork_events): Define.
3897 (process_target::supports_vfork_events): Define.
3898 (process_target::supports_exec_events): Define.
3900 Update the derived classes and callers below.
3902 * linux-low.cc (linux_target_ops): Update.
3903 (linux_supports_fork_events): Turn into ...
3904 (linux_process_target::supports_fork_events): ... this.
3905 (linux_supports_vfork_events): Turn into ...
3906 (linux_process_target::supports_vfork_events): ... this.
3907 (linux_supports_exec_events): Turn into ...
3908 (linux_process_target::supports_exec_events): ... this.
3909 * linux-low.h (class linux_process_target): Update.
3910 * lynx-low.cc (lynx_target_ops): Update.
3911 * nto-low.cc (nto_target_ops): Update.
3912 * win32-low.cc (win32_target_ops): Update.
3914 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3916 Turn process_stratum_target's supports_multi_process op into a
3917 method of process_target.
3919 * target.h (struct process_stratum_target): Remove the target op.
3920 (class process_target): Add the target op.
3921 * target.cc (process_target::supports_multi_process): Define.
3922 (target_supports_multi_process): Update.
3924 Update the derived classes and callers below.
3926 * linux-low.cc (linux_target_ops): Update.
3927 (linux_supports_multi_process): Turn into ...
3928 (linux_process_target::supports_multi_process): ... this.
3929 * linux-low.h (class linux_process_target): Update.
3930 * lynx-low.cc (lynx_target_ops): Update.
3931 * nto-low.cc (nto_target_ops): Update.
3932 * win32-low.cc (win32_target_ops): Update.
3934 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3936 Turn process_stratum_target's supports_non_stop, async, and
3937 start_non_stop ops into methods of process_target.
3939 * target.h (struct process_stratum_target): Remove the target ops.
3940 (class process_target): Add the target ops.
3941 (target_supports_non_stop): Update the macro.
3942 (target_async): Update the macro.
3943 (start_non_stop): Remove declaration.
3944 * target.cc (process_target::supports_non_stop): Define.
3945 (process_target::async): Define.
3946 (process_target::start_non_stop): Define.
3947 (start_non_stop): Remove.
3949 Update the derived classes and callers below.
3951 * server.cc (handle_qxfer_siginfo): Update.
3952 (handle_query): Update.
3953 * linux-low.cc (linux_target_ops): Update.
3954 (linux_supports_non_stop): Turn into ...
3955 (linux_process_target::supports_non_stop): ... this.
3956 (linux_async): Turn into ...
3957 (linux_process_target::async): ... this.
3958 (linux_start_non_stop): Turn into ...
3959 (linux_process_target::start_non_stop): ... 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 (nto_supports_non_stop): Remove; rely on the default behavior
3965 * win32-low.cc (win32_target_ops): Update.
3967 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3969 Turn process_stratum_target's qxfer_siginfo op into a method of
3972 * target.h (struct process_stratum_target): Remove the target op.
3973 (class process_target): Add the target op. Also add
3974 'supports_qxfer_siginfo'.
3975 * target.cc (process_target::qxfer_siginfo): Define.
3976 (process_target::supports_qxfer_siginfo): Define.
3978 Update the derived classes and callers below.
3980 * server.cc (handle_qxfer_siginfo): Update.
3981 (handle_query): Update.
3982 * linux-low.cc (linux_target_ops): Update.
3983 (linux_process_target::supports_qxfer_siginfo): Define.
3984 (linux_xfer_siginfo): Turn into ...
3985 (linux_process_target::qxfer_siginfo): ... this.
3986 * linux-low.h (class linux_process_target): Update.
3987 * lynx-low.cc (lynx_target_ops): Update.
3988 * nto-low.cc (nto_target_ops): Update.
3989 * win32-low.cc (win32_target_ops): Update.
3991 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3993 Turn process_stratum_target's qxfer_osdata op into a method of
3996 * target.h (struct process_stratum_target): Remove the target op.
3997 (class process_target): Add the target op. Also add
3998 'supports_qxfer_osdata'.
3999 * target.cc (process_target::qxfer_osdata): Define.
4000 (process_target::supports_qxfer_osdata): Define.
4002 Update the derived classes and callers below.
4004 * server.cc (handle_qxfer_osdata): Update.
4005 (handle_query): Update.
4006 * linux-low.cc (linux_target_ops): Update.
4007 (linux_process_target::supports_qxfer_osdata): Define.
4008 (linux_qxfer_osdata): Turn into ...
4009 (linux_process_target::qxfer_osdata): ... this.
4010 * linux-low.h (class linux_process_target): Update.
4011 * lynx-low.cc (lynx_target_ops): Update.
4012 * nto-low.cc (nto_target_ops): Update.
4013 * win32-low.cc (win32_target_ops): Update.
4015 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4017 Turn process_stratum_target's hostio_last_error op into a
4018 method of process_target.
4020 * target.h (struct process_stratum_target): Remove the target op.
4021 (class process_target): Add the target op.
4022 * target.cc: Add "hostio.h" to includes.
4023 (process_target::hostio_last_error): Define.
4025 Update the derived classes and callers below.
4027 * hostio.cc (hostio_error): Update.
4028 * linux-low.cc: Remove "hostio.h" from includes.
4029 (linux_target_ops): Update.
4030 * lynx-low.cc (lynx_target_ops): Update.
4031 * nto-low.cc (nto_target_ops): Update.
4032 * win32-low.h (class win32_process_target): Update.
4033 * win32-low.cc (win32_target_ops): Update.
4034 (wince_hostio_last_error): Turn into ...
4035 (win32_process_target::hostio_last_error): ... this.
4037 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4039 Turn process_stratum_target's get_tls_address op into a method of
4042 * target.h (struct process_stratum_target): Remove the target op.
4043 (class process_target): Add the target op. Also add
4044 'supports_get_tls_address'.
4045 * target.cc (process_target::get_tls_address): Define.
4046 (process_target::supports_get_tls_address): Define.
4048 Update the derived classes and callers below.
4050 * server.cc (handle_query): Update.
4051 * linux-low.cc (linux_target_ops): Update.
4052 (linux_process_target::supports_get_tls_address): Define.
4053 (linux_process_target::get_tls_address): Define.
4054 * linux-low.h (class linux_process_target): Update.
4055 * lynx-low.cc (lynx_target_ops): Update.
4056 * nto-low.cc (nto_target_ops): Update.
4057 * win32-low.cc (win32_target_ops): Update.
4059 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061 Turn process_stratum_target's read_offsets op into a method of
4064 * target.h (struct process_stratum_target): Remove the target op.
4065 (class process_target): Add the target op. Also add
4066 'supports_read_offsets'.
4067 * target.cc (process_target::read_offsets): Define.
4068 (process_target::supports_read_offsets): Define.
4070 Update the derived classes and callers below.
4072 * server.cc (handle_query): Update.
4073 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4074 (linux_target_ops): Update.
4075 (linux_process_target::supports_read_offsets): Define.
4076 (linux_read_offsets): Turn into ...
4077 (linux_process_target::read_offsets): ... this.
4078 * linux-low.h (class linux_process_target): Update.
4079 * lynx-low.cc (lynx_target_ops): Update.
4080 * nto-low.cc (nto_target_ops): Update.
4081 * win32-low.cc (win32_target_ops): Update.
4083 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4085 Turn process_stratum_target's stopped_by_watchpoint and
4086 stopped_data_address ops into methods of process_target.
4088 * target.h (struct process_stratum_target): Remove the target ops.
4089 (class process_target): Add the target ops.
4090 * target.cc (process_target::stopped_by_watchpoint): Define.
4091 (process_target::stopped_data_address): Define.
4093 Update the derived classes and callers below.
4095 * remote-utils.cc (prepare_resume_reply): Update.
4096 * linux-low.cc (linux_target_ops): Update.
4097 (linux_stopped_by_watchpoint): Turn into ...
4098 (linux_process_target::stopped_by_watchpoint): ... this.
4099 (linux_stopped_data_address): Turn into ...
4100 (linux_process_target::stopped_data_address): ... this.
4101 * linux-low.h (class linux_process_target): Update.
4102 * lynx-low.cc (lynx_target_ops): Update.
4103 * nto-low.cc (nto_target_ops): Update.
4104 (nto_stopped_by_watchpoint): Turn into ...
4105 (nto_process_target::stopped_by_watchpoint): ... this.
4106 (nto_stopped_data_address): Turn into ...
4107 (nto_process_target::stopped_data_address): ... this.
4108 * nto-low.h (class nto_process_target): Update.
4109 * win32-low.cc (win32_target_ops): Update.
4110 (win32_stopped_by_watchpoint): Turn into ...
4111 (win32_process_target::stopped_by_watchpoint): ... this.
4112 (win32_stopped_data_address): Turn into ...
4113 (win32_process_target::stopped_data_address): ... this.
4114 * win32-low.h (class win32_process_target): Update.
4116 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4118 Turn process_stratum_target's supports_hardware_single_step op into
4119 a method of process_target.
4121 * target.h (struct process_stratum_target): Remove the target op.
4122 (class process_target): Add the target op.
4123 (target_supports_hardware_single_step): Update the macro.
4124 (target_can_do_hardware_single_step): Remove declaration.
4125 * target.cc (process_target::supports_hardware_single_step): Define.
4126 (target_can_do_hardware_single_step): Remove.
4128 Update the derived classes and callers below.
4130 * linux-low.h (class linux_process_target): Update.
4131 * linux-low.cc (linux_target_ops): Update.
4132 (linux_supports_hardware_single_step): Turn into ...
4133 (linux_process_target::supports_hardware_single_step): ... this.
4134 * lynx-low.h (class lynx_process_target): Update.
4135 * lynx-low.cc (lynx_target_ops): Update.
4136 (lynx_process_target::supports_hardware_single_step): Define.
4137 * nto-low.h (class nto_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_process_target::supports_hardware_single_step): Define.
4140 * win32-low.h (class win32_process_target): Update.
4141 * win32-low.cc (win32_target_ops): Update.
4142 (win32_process_target::supports_hardware_single_step): Define.
4144 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4146 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4147 ops into methods of process_target.
4149 * target.h (struct process_stratum_target): Remove the target ops.
4150 (class process_target): Add the target ops.
4151 (target_stopped_by_hw_breakpoint): Update the macro.
4152 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4153 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4154 (process_target::supports_stopped_by_hw_breakpoint): Define.
4156 Update the derived classes and callers below.
4158 * linux-low.cc (linux_target_ops): Update.
4159 (linux_stopped_by_hw_breakpoint): Turn into ...
4160 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4161 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4162 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4163 * linux-low.h (class linux_process_target): Update.
4164 * lynx-low.cc (lynx_target_ops): Update.
4165 * nto-low.cc (nto_target_ops): Update.
4166 * win32-low.cc (win32_target_ops): Update.
4168 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4170 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4171 ops into methods of process_target.
4173 * target.h (struct process_stratum_target): Remove the target ops.
4174 (class process_target): Add the target ops.
4175 (target_stopped_by_sw_breakpoint): Update the macro.
4176 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4177 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4178 (process_target::supports_stopped_by_sw_breakpoint): Define.
4180 Update the derived classes and callers below.
4182 * linux-low.cc (linux_target_ops): Update.
4183 (linux_stopped_by_sw_breakpoint): Turn into ...
4184 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4185 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4186 (linux_process_target::supports_stopped_by_sw_breakpoint): ... 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 * win32-low.cc (win32_target_ops): Update.
4192 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4194 Turn process_stratum_target's insert_point and remove_point ops
4195 into methods of process_target.
4197 * target.h (struct process_stratum_target): Remove the target ops.
4198 (class process_target): Add the target ops.
4199 * target.cc (process_target::insert_point): Define.
4200 (process_target::remove_point): Define.
4202 Update the derived classes and callers below.
4204 * mem-break.cc (set_raw_breakpoint_at): Update.
4205 (delete_raw_breakpoint): Update.
4206 (uninsert_raw_breakpoint): Update.
4207 (reinsert_raw_breakpoint): Update.
4208 * linux-low.cc (linux_target_ops): Update.
4209 (linux_insert_point): Turn into ...
4210 (linux_process_target::insert_point): ... this.
4211 (linux_remove_point): Turn into ...
4212 (linux_process_target::remove_point): ... this.
4213 * linux-low.h (class linux_process_target): Update.
4214 * lynx-low.cc (lynx_target_ops): Update.
4215 * nto-low.cc (nto_target_ops): Update.
4216 (nto_insert_point): Turn into ...
4217 (nto_process_target::insert_point): ... this.
4218 (nto_remove_point): Turn into ...
4219 (nto_process_target::remove_point): ... this.
4220 * nto-low.h (class nto_process_target): Update.
4221 * win32-low.cc (win32_target_ops): Update.
4222 (win32_insert_point): Turn into ...
4223 (win32_process_target::insert_point): ... this.
4224 (win32_remove_point): Turn into ...
4225 (win32_process_target::remove_point): ... 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 supports_z_point_type op into a
4231 method of process_target.
4233 * target.h (struct process_stratum_target): Remove the target op.
4234 (class process_target): Add the target op.
4235 * target.cc (process_target::supports_z_point_type): Define.
4237 Update the derived classes and callers below.
4239 * mem-break.cc (z_type_supported): Update.
4240 * linux-low.cc (linux_target_ops): Update.
4241 (linux_supports_z_point_type): Turn into ...
4242 (linux_process_target::supports_z_point_type): ... this.
4243 * linux-low.h (class linux_process_target): Update.
4244 * lynx-low.cc (lynx_target_ops): Update.
4245 * nto-low.cc (nto_target_ops): Update.
4246 (nto_supports_z_point_type): Turn into ...
4247 (nto_process_target::supports_z_point_type): ... this.
4248 * nto-low.h (class nto_process_target): Update.
4249 * win32-low.cc (win32_target_ops): Update.
4250 (win32_supports_z_point_type): Turn into ...
4251 (win32_process_target::supports_z_point_type): ... this.
4252 * win32-low.h (class win32_process_target): Update.
4254 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4256 Turn process_stratum_target's read_auxv op into a method of
4259 * target.h (class process_stratum_target): Remove the target op.
4260 (struct process_target): Add the target op. Also add
4261 'supports_read_auxv'.
4262 * target.cc (process_target::read_auxv): Define.
4263 (process_target::supports_read_auxv): Define.
4265 Update the derived classes and callers below.
4267 * server.cc (handle_qxfer_auxv): Update.
4268 (handle_query): Update.
4269 * linux-low.cc (linux_target_ops): Update.
4270 (linux_process_target::supports_read_auxv): Define.
4271 (linux_read_auxv): Turn into ...
4272 (linux_process_target::read_auxv): ... this.
4273 * linux-low.h (class linux_process_target): Update.
4274 * lynx-low.cc (lynx_target_ops): Update.
4275 * nto-low.cc (nto_target_ops): Update.
4276 (nto_process_target::supports_read_auxv): Define.
4277 (nto_read_auxv): Turn into ...
4278 (nto_process_target::read_auxv): ... this.
4279 * nto-low.h (class nto_process_target): Update.
4280 * win32-low.cc (win32_target_ops): Update.
4282 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4284 Turn process_stratum_target's request_interrupt op into a method of
4287 * target.h (struct process_stratum_target): Remove the target op.
4288 (class process_target): Add the target op.
4290 Update the derived classes and callers below.
4292 * remote-utils.cc (putpkt_binary_1): Update.
4293 (input_interrupt): Update.
4295 * server.cc (handle_v_requests): Update.
4296 * linux-low.cc (linux_target_ops): Update.
4297 (linux_request_interrupt): Turn into ...
4298 (linux_process_target::request_interrupt): ... this.
4299 * linux-low.h (class linux_process_target): Update.
4300 * lynx-low.cc (lynx_target_ops): Update.
4301 (lynx_request_interrupt): Turn into ...
4302 (lynx_process_target::request_interrupt): ... this.
4303 * lynx-low.h (class lynx_process_target): Update.
4304 * nto-low.cc (nto_target_ops): Update.
4305 (nto_request_interrupt): Turn into ...
4306 (nto_process_target::request_interrupt): ... this.
4307 * nto-low.h (class nto_process_target): Update.
4308 * win32-low.cc (win32_target_ops): Update.
4309 (win32_request_interrupt): Turn into ...
4310 (win32_process_target::request_interrupt): ... this.
4311 * win32-low.h (class win32_process_target): Update.
4313 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4315 Turn process_stratum_target's look_up_symbols op into a method of
4318 * target.h (struct process_stratum_target): Remove the target op.
4319 (class process_target): Add the target op.
4320 * target.cc (process_target::look_up_symbols): Define.
4322 Update the derived classes and callers below.
4324 * server.cc (handle_query): Update.
4325 * linux-low.cc (linux_target_ops): Update.
4326 (linux_look_up_symbols): Turn into ...
4327 (linux_process_target::look_up_symbols): ... this.
4328 * linux-low.h (class linux_process_target): Update.
4329 * lynx-low.cc (lynx_target_ops): Update.
4330 * nto-low.cc (nto_target_ops): Update.
4331 * win32-low.cc (win32_target_ops): Update.
4333 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4335 Turn process_stratum_target's read_memory and write_memory
4336 ops into methods of process_target.
4338 * target.h (struct process_stratum_target): Remove the target ops.
4339 (class process_target): Add the target ops.
4341 Update the derived classes and callers below.
4343 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4344 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4345 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4346 (arm_get_syscall_trapinfo): Update.
4347 * linux-cris-low.cc (cris_breakpoint_at): Update.
4348 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4349 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4350 * linux-mips-low.cc (mips_breakpoint_at): Update.
4351 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4352 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4353 * linux-sh-low.cc (sh_breakpoint_at): Update.
4354 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4355 (sparc_store_gregset_from_stack): Update.
4356 (sparc_breakpoint_at): Update.
4357 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4358 * linux-tile-low.cc (tile_breakpoint_at): Update.
4359 * linux-x86-low.cc (x86_breakpoint_at): Update.
4360 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4361 * mem-brea.cc (insert_memory_breakpoint): Update.
4362 (validate_inserted_breakpoint): Update.
4363 * target.cc (read_inferior_memory): Update.
4364 (target_write_memory): Update.
4365 * linux-low.cc (linux_target_ops): Update.
4366 (linux_read_memory): Make a wrapper around the read_memory target
4368 (linux_process_target::read_memory): Rename from linux_read_memory.
4369 (linux_write_memory): Turn into ...
4370 (linux_process_target::write_memory): ... this.
4371 * linux-low.h (class linux_process_target): Update.
4372 * lynx-low.cc (lynx_target_ops): Update.
4373 (lynx_read_memory): Turn into ...
4374 (lynx_process_target::read_memory): ... this.
4375 (lynx_write_memory): Turn into ...
4376 (lynx_process_target::write_memory): ... this.
4377 * lynx-low.h (class lynx_process_target): Update.
4378 * nto-low.cc (nto_target_ops): Update.
4379 (nto_read_memory): Turn into ...
4380 (nto_process_target::read_memory): ... this.
4381 (nto_write_memory): Turn into ...
4382 (nto_process_target::write_memory): ... this.
4383 * nto-low.h (class nto_process_target): Update.
4384 * win32-low.cc (win32_target_ops): Update.
4385 (win32_read_inferior_memory): Turn into ...
4386 (win32_process_target::read_memory): ... this.
4387 (win32_write_inferior_memory): Turn into ...
4388 (win32_process_target::write_memory): ... this.
4389 * win32-low.h (class win32_process_target): Update.
4391 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4393 Turn process_stratum_target's prepare_to_access_memory and
4394 done_accessing_memory ops into methods of process_target.
4396 * target.h (struct process_stratum_target): Remove the target ops.
4397 (class process_target): Add the target ops.
4398 * target.cc (process_target::prepare_to_access_memory): Define.
4399 (process_target::done_accessing_memory): Define.
4400 (prepare_to_access_memory): Update.
4401 (done_accessing_memory): Update.
4403 Update the derived classes and callers below.
4405 * linux-low.cc (linux_target_ops): Update.
4406 (linux_prepare_to_access_memory): Turn into ...
4407 (linux_process_target::prepare_to_access_memory): ... this.
4408 (linux_done_accessing_memory): Turn into ...
4409 (linux_process_target::done_accessing_memory): ... this.
4410 * linux-low.h (class linux_process_target): Update.
4411 * lynx-low.cc (lynx_target_ops): Update.
4412 * nto-low.cc (nto_target_ops): Update.
4413 * win32-low.cc (win32_target_ops): Update.
4415 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4417 Turn process_stratum_target's fetch_registers and store_registers
4418 ops into methods of process_target.
4420 * target.h (struct process_stratum_target): Remove the target ops.
4421 (class process_target): Add the target ops.
4422 (fetch_inferior_registers): Update the macro.
4423 (store_inferior_registers): Update the macro.
4425 Update the derived classes and callers below.
4427 * linux-low.cc (linux_target_ops): Update.
4428 (linux_fetch_registers): Turn into ...
4429 (linux_process_target::fetch_registers): ... this.
4430 (linux_store_registers): Turn into ...
4431 (linux_process_target::store_registers): ... this.
4432 * linux-low.h (class linux_process_target): Update.
4433 * lynx-low.cc (lynx_target_ops): Update.
4434 (lynx_fetch_registers): Turn into ...
4435 (lynx_process_target::fetch_registers): ... this.
4436 (lynx_store_registers): Turn into ...
4437 (lynx_process_target::store_registers): ... this.
4438 * lynx-low.h (class lynx_process_target): Update.
4439 * nto-low.cc (nto_target_ops): Update.
4440 (nto_fetch_registers): Turn into ...
4441 (nto_process_target::fetch_registers): ... this.
4442 (nto_store_registers): Turn into ...
4443 (nto_process_target::store_registers): ... this.
4444 * nto-low.h (class nto_process_target): Update.
4445 * win32-low.cc (win32_target_ops): Update.
4446 (win32_fetch_inferior_registers): Turn into ...
4447 (win32_process_target::fetch_registers): ... this.
4448 (win32_store_inferior_registers): Turn into ...
4449 (win32_process_target::store_registers): ... this.
4450 * win32-low.h (class win32_process_target): Update.
4452 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4454 Turn process_stratum_target's wait op into a method of
4457 * target.h (struct process_stratum_target): Remove the target op.
4458 (class process_target): Add the target op.
4460 Update the derived classes and callers below.
4462 * target.cc (target_wait): Update.
4463 * linux-low.cc (linux_target_ops): Update.
4464 (linux_wait): Turn into ...
4465 (linux_process_target::wait): ... this.
4466 * linux-low.h (class linux_process_target): Update.
4467 * lynx-low.cc (lynx_target_ops): Update.
4468 (lynx_wait): Turn into ...
4469 (lynx_process_target::wait): ... this.
4470 * lynx-low.h (class lynx_process_target): Update.
4471 * nto-low.cc (nto_target_ops): Update.
4472 (nto_wait): Turn into ...
4473 (nto_process_target::wait): ... this.
4474 * nto-low.h (class nto_process_target): Update.
4475 * win32-low.cc (win32_target_ops): Update.
4476 (win32_wait): Turn into ...
4477 (win32_process_target::wait): ... this.
4478 (do_initial_child_stuff): Update.
4479 * win32-low.h (class win32_process_target): Update.
4481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4483 Turn process_stratum_target's resume op into a method of
4486 * target.h (struct process_stratum_target): Remove the target op.
4487 (class process_target): Add the target op.
4489 Update the derived classes and callers below.
4491 * server.cc (resume): Update.
4492 * target.cc (target_stop_and_wait): Update.
4493 (target_continue_no_signal): Update.
4494 (target_continue): Update.
4495 * linux-low.cc (linux_target_ops): Update.
4496 (linux_resume): Turn into ...
4497 (linux_process_target::resume): ... this.
4498 * linux-low.h (class linux_process_target): Update.
4499 * lynx-low.cc (lynx_target_ops): Update.
4500 (lynx_resume): Turn into ...
4501 (lynx_process_target::resume): ... this.
4502 * lynx-low.h (class lynx_process_target): Update.
4503 * nto-low.cc (nto_target_ops): Update.
4504 (nto_resume): Turn into ...
4505 (nto_process_target::resume): ... this.
4506 * nto-low.h (class nto_process_target): Update.
4507 * win32-low.cc (win32_target_ops): Update.
4508 (win32_resume): Turn into ...
4509 (win32_process_target::resume): ... this.
4510 (win32_process_target::detach): Update.
4511 (do_initial_child_stuff): Update.
4512 * win32-low.h (class win32_process_target): Update.
4514 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4516 Turn process_stratum_target's thread_alive op into a method of
4519 * target.h (struct process_stratum_target): Remove the target op.
4520 (class process_target): Add the target op.
4521 (mythread_alive): Update the macro.
4523 Update the derived classes and callers below.
4525 * linux-low.cc (linux_target_ops): Update.
4526 (linux_thread_alive): Turn into ...
4527 (linux_process_target::thread_alive): ... this.
4528 (wait_for_sigstop): Update.
4529 * linux-low.h (class linux_process_target): Update.
4530 * lynx-low.cc (lynx_target_ops): Update.
4531 (lynx_thread_alive): Turn into ...
4532 (lynx_process_target::thread_alive): ... this.
4533 * lynx-low.h (class lynx_process_target): Update.
4534 * nto-low.cc (nto_target_ops): Update.
4535 (nto_thread_alive): Turn into ...
4536 (nto_process_target::thread_alive): ... this.
4537 * nto-low.h (class nto_process_target): Update.
4538 * win32-low.cc (win32_target_ops): Update.
4539 (win32_thread_alive): Turn into ...
4540 (win32_process_target::thread_alive): ... this.
4541 * win32-low.h (class win32_process_target): Update.
4543 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4545 Turn process_stratum_target's join op into a method of
4548 * target.h (struct process_stratum_target): Remove the target op.
4549 (class process_target): Add the target op.
4550 (join_inferior): Update the macro.
4552 Update the derived classes and callers below.
4554 * linux-low.cc (linux_target_ops): Update.
4555 (linux_join): Turn into ...
4556 (linux_process_target::join): ... this.
4557 * linux-low.h (class linux_process_target): Update.
4558 * lynx-low.cc (lynx_target_ops): Update.
4559 (lynx_join): Turn into ...
4560 (lynx_process_target::join): ... this.
4561 * lynx-low.h (class lynx_process_target): Update.
4562 * nto-low.cc (nto_target_ops): Update.
4563 (nto_process_target::join): Define.
4564 * nto-low.h (class nto_process_target): Update.
4565 * win32-low.cc (win32_target_ops): Update.
4566 (win32_join): Turn into ...
4567 (win32_process_target::join): ... this.
4568 * win32-low.h (class win32_process_target): Update.
4570 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4572 Turn process_stratum_target's mourn op into a method of
4575 * target.h (struct process_stratum_target): Remove the target op.
4576 (class process_target): Add the target op.
4578 Update the derived classes and callers below.
4580 * target.cc (target_mourn_inferior): Update.
4581 * linux-low.cc (linux_target_ops): Update.
4582 (linux_mourn): Turn into ...
4583 (linux_process_target::mourn): ... this.
4584 (handle_extended_wait): Update.
4585 (linux_process_target::kill): Update.
4586 (linux_process_target::detach): Update.
4587 * linux-low.h (class linux_process_target): Update.
4588 * lynx-low.cc (lynx_target_ops): Update.
4589 (lynx_mourn): Turn into ...
4590 (lynx_process_target::mourn): ... this.
4591 * lynx-low.h (class lynx_process_target): Update.
4592 * nto-low.cc (nto_target_ops): Update.
4593 (nto_mourn): Turn into ...
4594 (nto_process_target::mourn): ... this.
4595 * nto-low.h (class nto_process_target): Update.
4596 * win32-low.cc (win32_target_ops): Update.
4597 (win32_mourn): Turn into ...
4598 (win32_process_target::mourn): ... this.
4599 * win32-low.h (class win32_process_target): Update.
4601 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4603 Turn process_stratum_target's detach op into a method of
4606 * target.h (struct process_stratum_target): Remove the target op.
4607 (class process_target): Add the target op.
4608 (detach_inferior): Update the macro.
4610 Update the derived classes and callers below.
4612 * linux-low.cc (linux_target_ops): Update.
4613 (linux_detach): Turn into ...
4614 (linux_process_target::detach): ... this.
4615 * linux-low.h (class linux_process_target): Update.
4616 * lynx-low.cc (lynx_target_ops): Update.
4617 (lynx_detach): Turn into ...
4618 (lynx_process_target::detach): ... this.
4619 * lynx-low.h (class lynx_process_target): Update.
4620 * nto-low.cc (nto_target_ops): Update.
4621 (nto_detach): Turn into ...
4622 (nto_process_target::detach): ... this.
4623 * nto-low.h (class nto_process_target): Update.
4624 * win32-low.cc (win32_target_ops): Update.
4625 (win32_detach): Turn into ...
4626 (win32_process_target::detach): ... this.
4627 * win32-low.h (class win32_process_target): Update.
4629 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4631 Turn process_stratum_target's kill op into a method of
4634 * target.h (struct process_stratum_target): Remove the target op.
4635 (class process_target): Add the target op.
4637 Update the derived classes and callers below.
4639 * target.cc (kill_inferior): Update.
4640 * linux-low.cc (linux_target_ops): Update.
4641 (linux_kill): Turn into ...
4642 (linux_process_target::kill): ... this.
4643 * linux-low.h (class linux_process_target): Update.
4644 * lynx-low.cc (lynx_target_ops): Update.
4645 (lynx_kill): Turn into ...
4646 (lynx_process_target::kill): ... this.
4647 * lynx-low.h (class lynx_process_target): Update.
4648 * nto-low.cc (nto_target_ops): Update.
4649 (nto_kill): Turn into ...
4650 (nto_process_target::kill): ... this.
4651 * nto-low.h (class nto_process_target): Update.
4652 * win32-low.cc (win32_target_ops): Update.
4653 (win32_kill): Turn into ...
4654 (win32_process_target::kill): ... this.
4655 * win32-low.h (class win32_process_target): Update.
4657 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4659 Turn process_stratum_target's attach op into a method of
4662 * target.h (struct process_stratum_target): Remove the target op.
4663 (class process_target): Add the target op.
4664 (myattach): Update the macro.
4666 Update the derived classes and callers below.
4668 * linux-low.cc (linux_target_ops): Update.
4669 (linux_attach): Turn into ...
4670 (linux_process_target::attach): ... this.
4671 * linux-low.h (class linux_process_target): Update.
4672 * lynx-low.cc (lynx_target_ops): Update.
4673 (lynx_attach): Turn into ...
4674 (lynx_process_target::attach): ... this.
4675 * lynx-low.h (class lynx_process_target): Update.
4676 * nto-low.cc (nto_target_ops): Update.
4677 (nto_attach): Turn into ...
4678 (nto_process_target::attach): ... this.
4679 * nto-low.h (class nto_process_target): Update.
4680 * win32-low.cc (win32_target_ops): Update.
4681 (win32_attach): Turn into ...
4682 (win32_process_target::attach): ... this.
4683 * win32-low.h (class win32_process_target): Update.
4685 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4687 Turn process_stratum_target's post_create_inferior op into a method
4690 * target.h (struct process_stratum_target): Remove the target op.
4691 (class process_target): Add the target op.
4692 (target_post_create_inferior): Update the macro.
4693 * target.cc (process_target::post_create_inferior): Define.
4695 Update the derived classes and callers below.
4697 * linux-low.cc (linux_target_ops): Update.
4698 (linux_post_create_inferior): Turn into ...
4699 (linux_process_target::post_create_inferior): ... this.
4700 * linux-low.h (class linux_process_target): Update.
4701 * lynx-low.cc (lynx_target_ops): Update.
4702 * nto-low.cc (nto_target_ops): Update.
4703 * win32-low.cc (win32_target_ops): Update.
4705 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4707 Turn process_stratum_target's create_inferior op into a method of
4710 * target.h (struct process_stratum_target): Remove the target op.
4711 (class process_target): Add the target op.
4712 (create_inferior): Rename the macro to ...
4713 (target_create_inferior): ... this.
4715 Update the derived classes and callers below.
4717 * server.cc (handle_v_run): Update.
4718 (captured_main): Update.
4719 (process_serial_event): Update.
4720 * linux-low.cc (linux_target_ops): Update.
4721 (linux_create_inferior): Turn into ...
4722 (linux_process_target::create_inferior): ... this.
4723 * linux-low.h (class linux_process_target): Update.
4724 * lynx-low.cc (lynx_target_ops): Update.
4725 (lynx_create_inferior): Turn into ...
4726 (lynx_process_target::create_inferior): ... this.
4727 * lynx-low.h (class lynx_process_target): Update.
4728 * nto-low.cc (nto_target_ops): Update.
4729 (nto_create_inferior): Turn into ...
4730 (nto_process_target::create_inferior): ... this.
4731 * nto-low.h (class nto_process_target): Update.
4732 * win32-low.cc (win32_target_ops): Update.
4733 (win32_create_inferior): Turn into ...
4734 (win32_process_target::create_inferior): ... this.
4735 * win32-low.h (class win32_process_target): Update.
4737 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4739 * target.h (class process_target): New class definition.
4740 (struct process_stratum_target) <pt>: New field with type
4742 * linux-low.h (class linux_process_target): Define as a derived
4743 class of 'process_target'.
4744 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4746 * lynx-low.h (class lynx_process_target): Define as a derived
4747 class of 'process_target'.
4748 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4750 * nto-low.h (class nto_process_target): Define as a derived
4751 class of 'process_target'.
4752 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4754 * win32-low.h (class win32_process_target): Define as a derived
4755 class of 'process_target'.
4756 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4759 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4761 * configure: Regenerate.
4763 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4764 Andrew Burgess <andrew.burgess@embecosm.com>
4766 * linux-riscv-low.cc: New file.
4767 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4768 and nat/riscv-linux-tdesc.c.
4769 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4770 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4773 2020-02-14 Tom Tromey <tom@tromey.com>
4775 * acinclude.m4: Don't include acx_configure_dir.m4.
4776 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4777 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4778 (all, install-only, uninstall, clean-info, clean)
4779 (maintainer-clean): Don't recurse.
4780 (subdir_do, all-lib): Remove.
4781 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4783 (generated_files): Update.
4784 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4785 * configure: Rebuild.
4786 * configure.ac: Don't configure gnulib or libiberty.
4789 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4791 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4792 preparing the command line for CreateProcess.
4793 (win32_create_inferior): Reflect the program name in debugging
4794 output that shows the process and its command line.
4796 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4798 * Makefile.in: Rename source files from .c to .cc.
4799 * %.c: Rename to %.cc.
4800 * configure.ac: Rename server.c to server.cc.
4801 * configure: Re-generate.
4803 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4805 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4807 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4809 * win32-low.c (win32_create_inferior): Set signal_pid.
4811 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4812 Pedro Alves <palves@redhat.com>
4814 Skip building gdbserver in a cross-configuration.
4815 * configure.srv: Set $gdbserver_host depending on whether $target
4816 is $host. Use $gdbserver_host instead of $host.
4818 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4820 * configure: Re-generate.
4822 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4824 * configure: Re-generate.
4826 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4828 * acinclude.m4: Update warning.m4 path.
4830 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4832 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4833 (handle_exception): Set siginfo_er.
4834 (win32_xfer_siginfo): New function.
4836 2020-02-07 Tom Tromey <tom@tromey.com>
4837 Pedro Alves <palves@redhat.com>
4839 * README: Update build documentation.
4840 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4842 * configure.ac: Update paths.
4843 * configure: Rebuild.
4844 * acinclude.m4: Update paths.
4845 * Makefile.in: Update include paths.
4846 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4847 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4848 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4849 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4850 (%-generated.c): Update paths.
4851 * Move entire directory from ../gdb/gdbserver.
4853 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4855 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4857 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4859 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4860 assignment instead of srv_linux_obj.
4862 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4864 * server.c (handle_qxfer_libraries): Write segment-address with
4867 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4869 * Makefile.in (install-strip): New target.
4870 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4871 * aclocal.m4: Regenerate.
4872 * configure: Regenerate.
4873 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4875 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4877 * Makefile.in (SFILES): Adjust paths to point to real files.
4878 (OBS): Move waitstatus.o to target/waitstatus.o.
4879 (TAGS): Transform paths appropriately.
4881 (nat/%.o): ... this pattern rule.
4883 (target/%.o): ... this pattern rule.
4884 * configure.srv: Adjust paths throughout to include nat/ prefix
4885 with the revant files.
4886 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4887 * configure: Regenerate.
4889 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4891 * Makefile.in (TAGS): Remove config files from the recipe.
4893 2020-01-14 Tom Tromey <tom@tromey.com>
4895 * configure: Rebuild.
4896 * configure.ac: Remove any checks that were added to common.m4.
4897 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4900 2020-01-14 Tom Tromey <tom@tromey.com>
4902 * server.h: Include config.h.
4903 * gdbreplay.c: Include config.h.
4904 * configure: Rebuild.
4905 * configure.ac: Don't source common.host.
4906 * acinclude.m4: Update path.
4907 * Makefile.in (INCSUPPORT): New variable.
4908 (INCLUDE_CFLAGS): Add INCSUPPORT.
4909 (SFILES): Update paths.
4910 (version-generated.c): Update path to create-version.sh.
4911 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4913 2020-01-14 Tom Tromey <tom@tromey.com>
4915 * configure.ac (LIBS): Use WIN32APILIBS.
4916 (USE_WIN32API): Don't define.
4917 * configure: Rebuild.
4919 2020-01-14 Tom Tromey <tom@tromey.com>
4921 * configure: Rebuild.
4923 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4925 * Makefile.in (%-generated.c): Remove rule for files from
4928 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4930 * configure: Re-generate.
4932 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4934 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4936 * tracepoint.c (stop_tracing, flush_trace_buffer,
4937 about_to_request_buffer_space, get_trace_state_variable_value,
4938 set_trace_state_variable_value, gdb_collect): Add declaration.
4940 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4942 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4943 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4944 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4945 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4946 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4949 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4951 * inferiors.c: Include gdbsupport/common-inferior.h.
4953 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4955 * hostio-errno.c: Include hostio.h.
4957 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4959 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4962 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4964 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4965 * linux-arm-tdesc.h: Include arch/arm.h.
4967 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4969 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4971 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4973 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4974 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4976 2020-01-10 Pedro Alves <palves@redhat.com>
4978 * fork-child.c (post_fork_inferior): Pass target down to
4980 * inferiors.c (switch_to_thread): Add process_stratum_target
4982 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4983 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4984 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4985 * remote-utils.c (prepare_resume_reply): Pass the target to
4987 * target.c (the_target): Now a process_stratum_target.
4988 (done_accessing_memory): Pass the target to switch_to_thread.
4989 (set_target_ops): Ajust to use process_stratum_target.
4990 * target.h (struct target_ops): Rename to ...
4991 (struct process_stratum_target): ... this.
4992 (the_target, set_target_ops): Adjust.
4993 (prepare_to_access_memory): Adjust comment.
4994 * win32-low.c (child_xfer_memory): Adjust to use
4995 process_stratum_target.
4996 (win32_target_ops): Now a process_stratum_target.
4998 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4999 Pedro Alves <palves@redhat.com>
5001 * win32-low.c (get_child_debug_event): Extract the fatal exception
5002 from the exit status and convert to the equivalent Posix signal
5004 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5005 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5007 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5009 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5011 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5013 * server.c (gdbserver_version): Change copyright year to 2020.
5014 * gdbreplay.c (gdbreplay_version): Likewise.
5016 2019-12-19 Christian Biesinger <cbiesinger@google.com>
5018 * configure: Regenerate.
5019 * configure.ac: Quote variable arguments of test.
5021 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5023 * Makefile.in: Fix build with GNU Make 3.81
5025 2019-12-16 Tom Tromey <tromey@adacore.com>
5027 * server.c (get_exec_file): Constify result.
5029 2019-12-10 Christian Biesinger <cbiesinger@google.com>
5031 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5032 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5033 * config.in: Regenerate.
5034 * configure: Regenerate.
5035 * configure.ac: Don't check for strerror.
5036 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5037 Call safe_strerror instead of strerror.
5038 * server.h (strerror): Remove this now-unnecessary declaration.
5039 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5041 (gdb_agent_helper_thread): Likewise.
5042 * utils.c (perror_with_name): Likewise.
5044 2019-11-26 Tom Tromey <tom@tromey.com>
5046 * configure, config.in: Rebuild.
5048 2019-11-26 Tom Tromey <tom@tromey.com>
5050 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5051 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5053 * configure, config.in: Rebuild.
5055 2019-11-26 Tom Tromey <tom@tromey.com>
5057 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5058 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5059 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5060 * acinclude.m4: Include ax_pthread.m4.
5061 * config.in, configure: Rebuild.
5063 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5065 * debug.c (debug_set_output): Call safe_strerror instead of
5067 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5068 (linux_kill_one_lwp): Likewise.
5069 (linux_detach_one_lwp): Likewise.
5070 (linux_wait_for_event_filtered): Likewise.
5071 (store_register): Likewise.
5072 * lynx-low.c (lynx_attach): Likewise.
5073 * mem-break.c (insert_memory_breakpoint): Likewise.
5074 (remove_memory_breakpoint): Likewise.
5075 (delete_fast_tracepoint_jump): Likewise.
5076 (set_fast_tracepoint_jump): Likewise.
5077 (uninsert_fast_tracepoint_jumps_at): Likewise.
5078 (reinsert_fast_tracepoint_jumps_at): Likewise.
5079 * nto-low.c (nto_xfer_memory): Likewise.
5080 (nto_resume): Likewise.
5082 2019-11-20 Luis Machado <luis.machado@linaro.org>
5084 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5085 instead of register count.
5086 * tdesc.c (tdesc_contains_feature): New function.
5087 * tdesc.h (tdesc_contains_feature): New prototype.
5089 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5091 * Makefile.in: Add safe-strerror.c.
5092 * configure: Regenerate.
5093 * configure.ac: Don't source common.host.
5095 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5097 * config.in: Regenerate.
5098 * configure: Regenerate.
5100 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5102 * ax.c (ax_printf): Handle size_t_arg.
5104 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5106 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5107 * mi/mi-main.c (output_cores): Likewise.
5108 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5109 (linux_xfer_osdata_modules): Likewise.
5110 * remote.c (register_remote_support_xml): Likewise.
5111 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5112 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5114 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5116 * configure: Regenerate.
5117 * configure.ac: Remove check for strerror_r.
5119 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5121 * config.in: Regenerate.
5122 * configure: Regenerate.
5123 * configure.ac: Also check for strerror_r.
5125 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5127 * ax.h (debug_agent): Remove duplicate declaration.
5129 2019-10-26 Tom de Vries <tdevries@suse.de>
5131 * linux-aarch64-low.c: Fix typos in comments.
5132 * linux-arm-low.c: Same.
5133 * linux-low.c: Same.
5134 * linux-ppc-low.c: Same.
5135 * proc-service.c: Same.
5138 * tracepoint.c: Same.
5139 * win32-low.c: Same.
5141 2019-10-25 Tom Tromey <tromey@adacore.com>
5143 * utils.c (xstrdup): Remove.
5145 2019-10-23 Tom Tromey <tom@tromey.com>
5147 * configure, config.in: Rebuild.
5149 2019-10-23 Tom Tromey <tom@tromey.com>
5151 * configure: Rebuild.
5152 * acinclude.m4: Use m4_include, not sinclude.
5154 2019-10-17 Tom Tromey <tromey@adacore.com>
5156 * configure: Rebuild.
5157 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5158 in AC_CONFIG_FILES invocation.
5159 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5162 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5164 * server.c: Include xml-builtin.h.
5165 (get_xml_features): Don't declare xml_builtins here.
5167 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5169 * Makefile.in: Remove references to vec-ipa.o.
5171 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5173 * Makefile.in: Remove references to vec.c.
5175 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5177 * server.c (server_waiting): Change to bool.
5178 (extended_protocol): Likewise.
5179 (response_needed): Likewise.
5180 (exit_requested): Likewise.
5181 (run_once): Likewise.
5182 (report_no_resumed): Likewise.
5183 (non_stop): Likewise.
5184 (disable_packet_vCont): Likewise.
5185 (disable_packet_Tthread): Likewise.
5186 (disable_packet_qC): Likewise.
5187 (disable_packet_qfThreadInfo): Likewise.
5188 (handle_general_set): Update.
5189 (handle_detach): Update.
5190 (handle_monitor_command): Update.
5191 (handle_query): Update.
5192 (captured_main): Update.
5193 (process_serial_event): Update.
5194 * server.h (server_waiting): Change to bool.
5195 (disable_packet_vCont): Likewise.
5196 (disable_packet_Tthread): Likewise.
5197 (disable_packet_qC): Likewise.
5198 (disable_packet_qfThreadInfo): Likewise.
5199 (run_once): Likewise.
5200 (non_stop): Likewise.
5201 * target.c (target_stop_and_wait): Update.
5203 2019-10-02 Tom Tromey <tromey@adacore.com>
5205 * Makefile.in (SFILES): Add common-inferior.c.
5206 (OBS): Add common-inferior.o.
5207 * server.c (startup_with_shell): Don't define.
5209 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5211 * linux-low.c (linux_low_read_btrace): Update for change to
5214 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5216 * debug.c (debug_threads): Remove comment in favor of the header.
5217 * debug.h (using_threads): Add declaration.
5218 (debug_threads): Add comment.
5219 * linux-aarch64-low.c: Include debug.h and remove declaration of
5221 * nto-low.c: Likewise.
5222 * remote-utils.c: Likewise.
5223 * thread-db.c: Likewise.
5225 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5227 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5228 and powerpc-cell64l-ipa.o.
5229 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5230 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5231 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5234 * spu-low.c: Remove file.
5236 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5237 (parse_spufs_run): Remove.
5238 (ppc_get_pc): Remove Cell/B.E. support.
5239 (ppc_set_pc): Likewise.
5240 (ppc_breakpoint_at): Likewise.
5241 (ppc_arch_setup): Likewise.
5242 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5243 tdesc_powerpc_cell32l.
5244 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5245 or init_registers_powerpc_cell32l.
5246 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5247 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5248 or init_registers_powerpc_cell32l.
5249 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5250 (init_registers_powerpc_cell32l): Remove prototype.
5251 (init_registers_powerpc_cell64l): Likewise.
5253 * target.h (struct target_ops): Remove qxfer_spu member.
5254 * server.c (handle_qxfer_spu): Remove.
5255 (qxfer_packets): Remove entry for "spu".
5256 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5257 * linux-low.c (SPUFS_MAGIC): Remove.
5258 (spu_enumerate_spu_ids): Remove.
5259 (linux_qxfer_spu): Remove.
5260 (linux_target_ops): Remove qxfer_spu member.
5261 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5262 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5263 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5265 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5267 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5268 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5269 * config.in: Regenerate.
5270 * configure: Regenerate.
5272 2019-08-15 Tom Tromey <tromey@adacore.com>
5274 * target.c (target_write_memory): Use gdb::byte_vector.
5276 2019-08-15 Tom Tromey <tromey@adacore.com>
5278 * tracepoint.c (write_inferior_data_pointer)
5279 (write_inferior_integer, write_inferior_int8)
5280 (write_inferior_uinteger, m_tracepoint_action_download)
5281 (r_tracepoint_action_download, x_tracepoint_action_download)
5282 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5283 (download_agent_expr, download_tracepoint_1)
5284 (download_trace_state_variables, upload_fast_traceframes): Update.
5285 * server.c (gdb_write_memory): Update.
5286 * remote-utils.c (relocate_instruction): Update.
5287 * proc-service.c (ps_pdwrite): Update.
5288 * mem-break.c (remove_memory_breakpoint)
5289 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5290 (uninsert_fast_tracepoint_jumps_at)
5291 (reinsert_fast_tracepoint_jumps_at): Update.
5292 * linux-x86-low.c (append_insns)
5293 (i386_install_fast_tracepoint_jump_pad)
5294 (amd64_write_goto_address, i386_write_goto_address): Update.
5295 * linux-s390-low.c (append_insns, s390_write_goto_address):
5297 * linux-ppc-low.c (ppc_relocate_instruction)
5298 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5299 (ppc_write_goto_address): Update.
5300 * linux-aarch64-low.c (append_insns): Update.
5301 * target.h (struct target_ops): Update.
5302 (write_inferior_memory): Don't declare.
5303 * target.c (target_write_memory): Rename from
5304 write_inferior_memory. Remove old target_write_memory.
5306 2019-08-15 Tom Tromey <tromey@adacore.com>
5308 * target.c (write_inferior_memory): Use std::vector.
5310 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5313 * configure.ac: Drop enable-libmcheck support.
5314 * configure, config.in: Rebuild.
5315 * acinclude.m4: Don't include it.
5317 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5319 * configure.srv: Remove Arm xml files.
5321 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5323 * configure.srv: Add new files. Remove xml generated files.
5324 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5326 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5327 * linux-aarch32-tdesc.c: New file.
5328 * linux-aarch32-tdesc.h: New file.
5329 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5330 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5331 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5332 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5333 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5334 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5335 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5336 (arm_read_description): Call arm_linux_read_description.
5337 (initialize_low_arch): Don't init registers.
5338 * linux-arm-tdesc.c: New file.
5339 * linux-arm-tdesc.h: New file.
5341 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5343 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5344 Move counter inside for.
5345 (arm_read_description): Check ptrace earlier.
5346 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5348 2019-07-09 Tom Tromey <tom@tromey.com>
5350 * configure: Rebuild.
5351 * configure.ac: Change common to gdbsupport.
5352 * acinclude.m4: Change common to gdbsupport.
5353 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5354 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5355 common to gdbsupport.
5356 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5357 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5358 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5359 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5360 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5361 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5362 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5363 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5364 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5365 common to gdbsupport.
5367 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5369 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5371 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5373 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5375 * configure.srv: Remove legacy xml.
5376 * linux-aarch64-low.c (initialize_low_arch): Remove
5377 initialize_low_tdesc call.
5378 * linux-aarch64-tdesc-selftest.c: Remove file.
5379 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5380 * linux-x86-low.c (initialize_low_arch): Remove
5381 initialize_low_tdesc call.
5382 * linux-x86-tdesc-selftest.c: Remove file.
5383 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5385 2019-06-20 Tom de Vries <tdevries@suse.de>
5387 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5388 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5390 2019-06-19 Tom de Vries <tdevries@suse.de>
5392 * debug.h (debug_write): Change return type to ssize_t.
5393 * debug.c (debug_write): Same.
5395 2019-06-14 Tom Tromey <tom@tromey.com>
5397 * configure.ac: Use new path to gnulib.
5398 * configure: Rebuild.
5399 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5402 2019-06-11 Tom Tromey <tom@tromey.com>
5404 * Makefile.in (SFILES): Add alloc.c.
5406 (IPA_OBJS): Add alloc-ipa.o.
5407 (alloc-ipa.o): New target.
5408 (%.o: ../%.c): New pattern rule.
5410 2019-06-10 Tom Tromey <tromey@adacore.com>
5412 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5413 end warning with a newline.
5414 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5416 * thread-db.c (attach_thread): Don't end warning with a newline.
5417 (thread_db_notice_clone): Likewise.
5418 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5420 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5421 end warning with a newline.
5423 2019-06-04 Pedro Alves <palves@redhat.com>
5425 * server.c (captured_main): Use make_unique_xstrdup.
5427 2019-06-02 Tom Tromey <tom@tromey.com>
5429 * gdbreplay.c (fromhex): Remove.
5430 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5432 2019-05-29 Tom Tromey <tromey@adacore.com>
5434 * configure: Rebuild.
5436 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5438 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5439 sign extension code on 32-bit builds.
5441 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5444 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5446 2019-04-19 Tom Tromey <tom@tromey.com>
5448 * server.c (struct vstop_notif): Derive from notif_event.
5450 (queue_stop_reply): Update.
5451 (remove_all_on_match_ptid): Change type. Rewrite.
5452 (discard_queued_stop_replies): Rewrite.
5453 (in_queued_stop_replies_ptid): Change type.
5454 (in_queued_stop_replies): Rewrite.
5455 (notif_stop): Update.
5456 (queue_stop_reply_callback): Update.
5457 (captured_main): Don't call initialize_notif.
5458 (push_stop_notification): Update.
5459 * notif.c (notif_write_event, handle_notif_ack)
5460 (notif_event_enque, notif_push): Update.
5461 (notif_event_xfree, initialize_notif): Remove.
5462 * notif.h (struct notif_event): Include <list>, not
5464 (struct notif_server) <queue>: Now a std::list.
5465 (notif_event_p): Remove typedef.
5466 (initialize_notif): Don't declare.
5467 (struct notif_event): Add virtual destructor.
5469 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5471 * ax.c (ax_vdebug): Call debug_printf.
5472 * debug.c (debug_write): New function.
5473 * debug.h (debug_write): New declaration.
5474 * linux-low.c (sigchld_handler): Call debug_write.
5476 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5478 * debug.c (debug_set_output): New function.
5479 (debug_vprintf): Send output to debug_file.
5480 (debug_flush): Likewise.
5481 * debug.h (debug_set_output): New declaration.
5482 * server.c (handle_monitor_command): Add debug-file option.
5483 (captured_main): Likewise.
5485 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5487 * debug.c (remote_debug): Add definition.
5488 * debug.h (remote_debug): Add declaration.
5489 * hostio.c (remote_debug): Remove declaration.
5490 * remote-utils.c (struct ui_file): Likewise.
5491 (remote_debug): Likewise.
5492 * remote-utils.h (remote_debug): Likewise,
5493 * server.c (remote_debug): Remove definition.
5495 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5497 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5498 when using a 64-bit gdbserver.
5500 2019-04-09 Tom Tromey <tromey@adacore.com>
5502 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5504 2019-04-08 Tom Tromey <tom@tromey.com>
5506 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5508 (linux_resume_one_lwp): Likewise.
5510 2019-04-08 Tom Tromey <tom@tromey.com>
5512 * gdbreplay.c: Update.
5513 * linux-low.c: Update.
5516 2019-04-08 Tom Tromey <tom@tromey.com>
5518 * server.c: Use C++ exception handling.
5519 * linux-low.c: Use C++ exception handling.
5520 * gdbreplay.c: Use C++ exception handling.
5522 2019-04-08 Tom Tromey <tom@tromey.com>
5524 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5525 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5526 (captured_main, main): Update.
5527 * gdbreplay.c (main): Update.
5529 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5531 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5532 value in argument pointer, return 1 if the entry is found and 0
5533 otherwise. Move comment.
5534 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5535 * linux-low.h (linux_get_auxv): Declare.
5536 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5538 2019-04-05 Tom Tromey <tromey@adacore.com>
5540 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5543 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5545 * linux-low.c (AT_HWCAP2): Add define if not already included.
5547 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5549 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5550 (aarch64_arch_setup): Call linux_get_hwcap.
5551 * linux-arm-low.c (arm_get_hwcap): Remove function.
5552 (arm_read_description): Call linux_get_hwcap.
5553 * linux-low.c (linux_get_auxv): New function.
5554 (linux_get_hwcap): Likewise.
5555 (linux_get_hwcap2): Likewise.
5556 * linux-low.h (linux_get_hwcap): New declaration.
5557 (linux_get_hwcap2): Likewise.
5558 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5559 (ppc_arch_setup): Call linux_get_hwcap.
5560 * linux-s390-low.c (s390_get_hwcap): Remove function.
5561 (s390_arch_setup): Call linux_get_hwcap.
5563 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5564 Jiong Wang <jiong.wang@arm.com>
5566 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5567 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5569 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5571 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5572 Jiong Wang <jiong.wang@arm.com>
5574 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5575 (aarch64_get_hwcap): New function.
5576 (aarch64_arch_setup): Read APIA hwcap.
5578 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5579 Jiong Wang <jiong.wang@arm.com>
5581 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5582 (initialize_low_tracepoint): Likewise.
5583 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5584 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5585 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5586 (aarch64_linux_read_description): Likewise.
5587 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5589 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5591 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5592 i386_create_target_description for 'segments' parameter.
5593 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5594 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5595 * win32-i386-low.c (i386_arch_setup): Likewise.
5597 2019-03-12 Tom Tromey <tromey@adacore.com>
5599 * linux-low.c (iterate_over_lwps): Update.
5601 2019-03-06 Tom Tromey <tom@tromey.com>
5603 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5604 (captured_main): Use SCOPE_EXIT.
5606 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5608 * configure.srv: Use '$enable_unittest' instead of '$development'
5609 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5612 2019-02-27 Tom Tromey <tromey@adacore.com>
5614 * gdbreplay.c (logchar): Handle \r\n.
5616 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5618 * linux-low.c (linux_attach): Add process before lwp.
5619 * server.c (attach_inferior): Check if already attached.
5621 2019-02-07 Tom Tromey <tom@tromey.com>
5623 * x86-tdesc.h: Rename include guard.
5624 * x86-low.h: Add include guard.
5625 * wincecompat.h: Rename include guard.
5626 * win32-low.h: Add include guard.
5627 * utils.h: Rename include guard.
5628 * tracepoint.h: Rename include guard.
5629 * tdesc.h: Rename include guard.
5630 * target.h: Rename include guard.
5631 * server.h: Rename include guard.
5632 * remote-utils.h: Rename include guard.
5633 * regcache.h: Rename include guard.
5634 * nto-low.h: Rename include guard.
5635 * notif.h: Add include guard.
5636 * mem-break.h: Rename include guard.
5637 * lynx-low.h: Add include guard.
5638 * linux-x86-tdesc.h: Add include guard.
5639 * linux-s390-tdesc.h: Add include guard.
5640 * linux-ppc-tdesc-init.h: Add include guard.
5641 * linux-low.h: Add include guard.
5642 * linux-aarch64-tdesc.h: Add include guard.
5643 * linux-aarch32-low.h: Add include guard.
5644 * inferiors.h: Rename include guard.
5645 * i387-fp.h: Rename include guard.
5646 * hostio.h: Rename include guard.
5647 * gdbthread.h: Rename include guard.
5648 * gdb_proc_service.h: Rename include guard.
5649 * event-loop.h: Rename include guard.
5650 * dll.h: Rename include guard.
5651 * debug.h: Rename include guard.
5652 * ax.h: Rename include guard.
5654 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5657 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5658 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5660 2019-01-25 Tom Tromey <tom@tromey.com>
5662 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5664 2019-01-25 Tom Tromey <tom@tromey.com>
5666 * win32-low.c: Fix common/ includes.
5667 * win32-i386-low.c: Fix common/ includes.
5668 * tracepoint.c: Fix common/ includes.
5669 * thread-db.c: Fix common/ includes.
5670 * target.h: Fix common/ includes.
5671 * symbol.c: Fix common/ includes.
5672 * spu-low.c: Fix common/ includes.
5673 * server.h: Fix common/ includes.
5674 * server.c: Fix common/ includes.
5675 * remote-utils.c: Fix common/ includes.
5676 * regcache.h: Fix common/ includes.
5677 * regcache.c: Fix common/ includes.
5678 * nto-x86-low.c: Fix common/ includes.
5679 * notif.h: Fix common/ includes.
5680 * mem-break.h: Fix common/ includes.
5681 * lynx-low.c: Fix common/ includes.
5682 * lynx-i386-low.c: Fix common/ includes.
5683 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5684 * linux-x86-low.c: Fix common/ includes.
5685 * linux-low.c: Fix common/ includes.
5686 * inferiors.h: Fix common/ includes.
5687 * i387-fp.c: Fix common/ includes.
5688 * hostio.c: Fix common/ includes.
5689 * hostio-errno.c: Fix common/ includes.
5690 * gdbthread.h: Fix common/ includes.
5691 * gdbreplay.c: Fix common/ includes.
5692 * fork-child.c: Fix common/ includes.
5693 * event-loop.c: Fix common/ includes.
5695 (enum gdb_agent_op): Fix common/ includes.
5697 2019-01-21 Tom Tromey <tom@tromey.com>
5699 * tracepoint.c: Fix includes.
5700 * remote-utils.c: Fix includes.
5701 * linux-x86-low.c: Fix includes.
5703 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5705 * gdbreplay.c (gdbreplay_version): Update copyright year in
5707 * server.c (gdbserver_version): Likewise.
5709 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5711 * linux-low.c (add_lwp): Switch ordering.
5713 2018-11-29 Tom Tromey <tom@tromey.com>
5715 * win32-low.c (win32_join): Take pid, not process.
5716 * target.h (struct target_ops) <join>: Change argument type.
5717 (join_inferior): Change argument name.
5718 * spu-low.c (spu_join): Take pid, not process.
5719 * server.c (handle_detach): Preserve pid before destroying
5721 * lynx-low.c (lynx_join): Take pid, not process.
5722 * linux-low.c (linux_join): Take pid, not process.
5724 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5726 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5727 (aarch64_cannot_fetch_register): Likewise.
5728 (struct linux_target_ops): Update references.
5730 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5732 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5734 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5736 * configure.srv (ipa_ppc_linux_regobj): Add
5737 powerpc-isa207-htm-vsx32l-ipa.o and
5738 powerpc-isa207-htm-vsx64l-ipa.o.
5739 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5740 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5741 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5742 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5743 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5744 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5745 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5746 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5747 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5748 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5749 (init_registers_powerpc_isa207_htm_vsx32l)
5750 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5751 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5752 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5753 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5754 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5755 (ppc_store_tm_ctarregset): New functions.
5756 (ppc_regsets): Add entries for HTM regsets.
5757 (ppc_arch_setup): Set htm in features struct when needed. Set
5758 sizes for the HTM regsets.
5759 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5760 (initialize_low_arch): Call
5761 init_registers_powerpc_isa207_htm_vsx32l and
5762 init_registers_powerpc_isa207_htm_vsx64l.
5763 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5764 PPC_TDESC_ISA207_HTM_VSX.
5765 (initialize_low_tracepoint): Call
5766 init_registers_powerpc_isa207_htm_vsx32l and
5767 init_registers_powerpc_isa207_htm_vsx64l.
5769 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5771 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5772 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5773 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5774 (ppc_store_pmuregset): New functions.
5775 (ppc_regsets): Add entries for ebb and pmu regsets.
5776 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5777 pmu regsets are available. Set sizes for these regsets.
5779 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5781 * configure.srv (ipa_ppc_linux_regobj): Add
5782 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5783 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5784 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5785 rs6000/powerpc-isa207-vsx32l.xml, and
5786 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5787 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5788 <PPC_TDESC_ISA207_VSX>: New enum value.
5789 (init_registers_powerpc_isa207_vsx32l): Declare.
5790 (init_registers_powerpc_isa207_vsx64l): Declare.
5791 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5792 (ppc_store_tarregset): New function.
5793 (ppc_regsets): Add entry for the TAR regset.
5794 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5795 size for the TAR regsets.
5796 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5797 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5798 and init_registers_powerpc_isa207_vsx64l.
5799 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5800 (initialize_low_tracepoint): Call
5801 init_registers_powerpc_isa207_vsx32l and
5802 init_registers_powerpc_isa207_vsx64l.
5804 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5805 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5807 * configure.srv (ipa_ppc_linux_regobj): Add
5808 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5809 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5810 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5811 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5812 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5813 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5814 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5815 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5816 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5817 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5818 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5819 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5820 (ppc_hwcap): Add comment.
5821 (ppc_hwcap2): New global.
5822 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5823 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5824 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5825 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5826 when needed. Set sizes for the the DSCR and PPR regsets.
5827 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5828 (initialize_low_arch): Call
5829 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5830 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5831 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5832 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5833 (initialize_low_tracepoint): Call
5834 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5835 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5837 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5839 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5841 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5842 Simon Marchi <simark@simark.ca>
5844 * acinclude.m4: Include "../selftest.m4".
5845 * configure: Regenerate.
5846 * configure.ac: Use "GDB_AC_SELFTEST".
5847 * configure.srv: Use "$enable_unittests" instead of
5848 "$development" when checking whether unit tests have been
5850 * server.c (captured_main): Update message informing that
5851 selftests have been disabled.
5853 2018-10-04 Tom Tromey <tom@tromey.com>
5855 * configure: Rebuild.
5857 2018-10-04 Tom Tromey <tom@tromey.com>
5859 * server.c (handle_status): Rename inner "thread".
5860 (process_serial_event): Declare "res" in 'm' case.
5861 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5862 (iterate_over_lwps): Rename inner "thread".
5863 (linux_qxfer_libraries_svr4): Rename inner "len".
5864 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5866 2018-10-01 Gary Benson <gbenson@redhat.com>
5868 * gdb_proc_service.h: Moved common code to
5869 common/gdb_proc_service.h.
5871 2018-10-01 Gary Benson <gbenson@redhat.com>
5873 * gdb_proc_service.h: Synchronize comments and whitespace with
5874 GDB's version of this file.
5876 2018-09-25 Tom Tromey <tom@tromey.com>
5878 * configure: Rebuild.
5879 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5881 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5883 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5884 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5885 ($(IPA_LIB)): Sort IPA_OBJS.
5887 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5889 * Makefile.in: Remove references to $(ADD_DEPS).
5891 2018-09-16 Tom Tromey <tom@tromey.com>
5893 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5895 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5898 2018-09-05 Tom Tromey <tom@tromey.com>
5900 * configure: Rebuild.
5902 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5905 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5907 2018-08-27 Tom Tromey <tom@tromey.com>
5910 * configure: Rebuild.
5912 2018-08-27 Tom Tromey <tom@tromey.com>
5914 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5915 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5916 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5917 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5918 (s390x_emit_stack_adjust): Add casts to unsigned char.
5920 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5924 * server.h (struct client_state) <disable_randomization>:
5927 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5929 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5931 (mips_supply_ptrace_register): Likewise.
5933 2018-07-22 Tom Tromey <tom@tromey.com>
5935 * configure: Rebuild.
5937 2018-07-22 Tom Tromey <tom@tromey.com>
5939 * win32-low.c (win32_create_inferior): Remove unused variables.
5940 * gdbreplay.c (remote_open): Remove unused variable.
5941 * remote-utils.c (remote_prepare): Remove unused variable.
5942 * x86-tdesc.h (X86_TDESC_H): Define.
5943 (amd64_expedite_regs): Define conditionally.
5944 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5945 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5946 * remote-utils.c (readchar): Remove unused variable.
5948 2018-07-13 Pedro Alves <palves@redhat.com>
5950 * linux-low.c (linux_kill): Change parameter to process_info
5951 pointer instead of pid. Adjust.
5952 * lynx-low.c (lynx_kill): Likewise.
5953 * nto-low.c (nto_kill): Likewise.
5954 * spu-low.c (spu_kill): Likewise.
5955 * win32-low.c (win32_kill): Likewise.
5956 * server.c (handle_v_kill, kill_inferior_callback)
5957 (detach_or_kill_for_exit): Adjust.
5958 * target.c (kill_inferior): Change parameter to process_info
5959 pointer instead of pid. Adjust.
5960 * target.h (struct target_ops) <kill>: Change parameter to
5961 process_info pointer instead of pid. Adjust all implementations
5963 (kill_inferior): Likewise.
5965 2018-07-13 Pedro Alves <palves@redhat.com>
5967 * linux-low.c (linux_detach, linux_join): Change parameter to
5968 process_info pointer instead of pid. Adjust.
5969 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5970 * nto-low.c (nto_detach): Likewise.
5971 * spu-low.c (spu_detach, spu_join): Likewise.
5972 * win32-low.c (win32_detach, win32_join): Likewise.
5973 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5974 * target.h (struct target_ops) <detach, join>: Change parameter to
5975 process_info pointer instead of pid. Adjust all implementations
5977 (detach_inferior, join_inferior): Rename 'pid' parameter to
5980 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5981 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 Paul Fertser <fercerpav@gmail.com>
5983 Tsutomu Seki <sekiriki@gmail.com>
5985 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5986 (OBS): Add 'common/netstuff.o'.
5987 (GDBREPLAY_OBS): Likewise.
5988 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5989 (remote_open): Implement support for IPv6
5991 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5993 (handle_accept_event): Accept connections from IPv6 sources.
5994 (remote_prepare): Handle IPv6-style hostnames; implement
5995 support for IPv6 connections.
5996 (remote_open): Implement support for printing connections from
5999 2018-07-11 Pedro Alves <palves@redhat.com>
6002 * mem-break.c (any_persistent_commands): Add process_info
6003 parameter and use it instead of relying on the current process.
6004 Change return type to bool.
6005 * mem-break.h (any_persistent_commands): Add process_info
6006 parameter and change return type to bool.
6007 * server.c (handle_detach): Remove require_running_or_return call.
6008 Look up the process_info for the process we're about to detach.
6009 If not found, return back error to GDB. Adjust
6010 any_persistent_commands call to pass down a process pointer.
6012 2018-07-11 Pedro Alves <palves@redhat.com>
6014 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6015 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6016 instead of collect_register_by_name.
6017 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6018 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6020 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6021 Pedro Alves <palves@redhat.com>
6023 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6025 2018-07-03 Tom Tromey <tom@tromey.com>
6027 * linux-low.c: Update.
6028 * lynx-low.c: Update.
6029 * mem-break.c: Update.
6030 * nto-low.c: Update.
6031 * remote-utils.c: Update.
6033 * spu-low.c: Update.
6035 * win32-low.c: Update.
6037 2018-07-03 Tom Tromey <tom@tromey.com>
6041 2018-07-03 Tom Tromey <tom@tromey.com>
6043 * linux-low.c: Update.
6045 2018-07-03 Tom Tromey <tom@tromey.com>
6049 2018-07-03 Tom Tromey <tom@tromey.com>
6051 * linux-low.c: Update.
6052 * linux-mips-low.c: Update.
6053 * lynx-low.c: Update.
6054 * nto-low.c: Update.
6055 * remote-utils.c: Update.
6057 * spu-low.c: Update.
6059 * thread-db.c: Update.
6061 2018-07-03 Tom Tromey <tom@tromey.com>
6063 * linux-low.c: Update.
6064 * linux-mips-low.c: Update.
6065 * lynx-low.c: Update.
6066 * mem-break.c: Update.
6067 * nto-low.c: Update.
6068 * remote-utils.c: Update.
6070 * spu-low.c: Update.
6072 * tracepoint.c: Update.
6074 2018-07-03 Tom Tromey <tom@tromey.com>
6076 * linux-low.c: Update.
6077 * linux-ppc-low.c: Update.
6078 * linux-x86-low.c: Update.
6079 * proc-service.c: Update.
6081 * spu-low.c: Update.
6082 * thread-db.c: Update.
6083 * win32-low.c: Update.
6085 2018-07-03 Tom Tromey <tom@tromey.com>
6087 * linux-low.c: Update.
6088 * lynx-low.c: Update.
6089 * nto-low.c: Update.
6090 * remote-utils.c: Update.
6091 * spu-low.c: Update.
6092 * thread-db.c: Update.
6093 * win32-low.c: Update.
6095 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6097 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6098 parameter in call to 'amd64_create_target_description'.
6100 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6102 * x86-tdesc.h: Remove executable permission flag.
6104 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6106 * configure.ac: Remove AC_PREREQ, add missing quoting.
6107 * configure: Re-generate.
6108 * config.in: Re-generate.
6109 * aclocal.m4: Re-generate.
6111 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6113 * tracepoint.h (current_traceframe): Remove declaration.
6115 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6117 * linux-aarch64-low.c (is_sve_tdesc): New function.
6118 (aarch64_sve_regs_copy_to_regcache): Likewise.
6119 (aarch64_sve_regs_copy_from_regcache): Likewise.
6120 (aarch64_regs_info): Add SVE checks.
6121 (initialize_low_arch): Initialize SVE.
6123 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6125 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6127 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6129 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6130 (initialize_low_tracepoint): Likewise
6131 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6132 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6134 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6136 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6138 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6140 * server.h (PBUFSIZ): Increase size
6142 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6144 * regcache.c (regcache::raw_compare): New function.
6145 * regcache.h (regcache::raw_compare): New declaration.
6147 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6149 * regcache.c (new_register_cache): Use new.
6150 (free_register_cache): Use delete.
6151 (register_data): Use const.
6152 (supply_register): Move body inside regcache.
6153 (regcache::raw_supply): New override function.
6154 (collect_register): Move body inside regcache.
6155 (regcache::raw_collect): New override function.
6156 (regcache::get_register_status): New override function.
6157 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6159 2018-06-09 Tom Tromey <tom@tromey.com>
6161 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6163 (event_queue): Use std::queue.
6164 (gdb_event_xfree): Remove.
6165 (initialize_event_loop, process_event, wait_for_event): Update.
6167 2018-06-08 Stan Cox <scox@redhat.com>
6169 * win32-low.c (win32_create_inferior): last_ptid and last_status
6170 moved to client_state.
6172 2018-06-08 Pedro Alves <palves@redhat.com>
6174 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6175 common/common-exceptions.o, common/common-utils.o,
6176 common/errors.o, common/print-utils.o and utils.o.
6177 * gdbreplay.c: Include "common-defs.h" instead of the two
6178 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6179 string.h or alloca.h.
6180 (perror_with_name): Delete.
6181 (remote_open): Use xstrdup instead of strdup.
6182 (main): Rename to ...
6183 (captured_main): ... this.
6186 2018-06-08 Tom Tromey <tom@tromey.com>
6188 * linux-low.c (linux_low_read_btrace): Update.
6190 2018-06-04 Stan Cox <scox@redhat.com>
6192 * server.h (struct client_state): New.
6193 * server.c (cont_thread, general_thread, multi_process)
6194 (report_fork_events, report_vfork_events, report_exec_events)
6195 (report_thread_events, swbreak_feature, hwbreak_feature)
6196 (vCont_supported, disable_randomization, pass_signals)
6197 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6198 Moved to client_state.
6199 * remote-utils.c (remote_debug, noack_mode)
6200 (transport_is_reliable): Moved to client_state.
6201 * tracepoint.c (current_traceframe): Moved to client_state.
6204 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6205 linux-low.c, remote-utils.h, target.c: Use client_state.
6207 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6209 * configure.srv: Add new c/h file.
6211 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6213 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6216 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6218 * gdb.arch/mips-fpregset-core.exp: New test.
6219 * gdb.arch/mips-fpregset-core.c: New test source.
6221 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6224 * hostio.c (require_int): Do not report overflow for integers
6225 between 0xfffffff and 0x7fffffff.
6227 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6229 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6230 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6231 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6233 (the_low_target): Wire them.
6235 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6237 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6238 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6239 mode. Call collect_register_by_name with vscr using
6240 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6241 (ppc_store_vrregset): Add and set vscr_offset variable as in
6242 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6245 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6247 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6248 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6249 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6251 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6253 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6254 (ppc_store_vsxregset): Likewise.
6255 (ppc_fill_vrregset): Likewise.
6256 (ppc_store_vrregset): Likewise.
6257 (ppc_fill_evrregset): Likewise.
6258 (ppc_store_evrregset): Likewise.
6259 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6260 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6263 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6265 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6266 wordsize of the inferior. Call ppc_linux_target_wordsize.
6268 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6270 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6271 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6272 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6273 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6274 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6275 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6276 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6277 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6278 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6279 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6280 (tdesc_powerpc_e500l): Remove.
6281 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6282 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6283 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6284 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6286 (ppc_arch_setup): Remove target description matching code. Fill a
6287 ppc_linux_features struct and call ppc_linux_match_description
6290 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6292 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6293 width of the requested register exceeds the width of the
6295 (mips_cannot_store_register): Likewise.
6297 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6299 * linux-mips-low.c (mips_fetch_register): New function. Update
6301 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6302 (the_low_target): Wire `mips_fetch_register'.
6304 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6306 * lynx-i386-low.c (LYNXOS_178): New macro.
6307 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6308 the layout on LynxOS-178.
6309 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6310 handle floating point registers that are not supported by
6313 2018-05-10 Tom Tromey <tom@tromey.com>
6315 * configure: Rebuild.
6317 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6320 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6321 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6322 Use it to set the expedite_regs field in the given tdesc.
6323 * x86-tdesc.h: New file.
6324 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6325 Adjust following the addition of the new expedite_regs parameter
6326 to init_target_desc.
6327 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6328 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6329 (i386_linux_read_description, amd64_linux_read_description):
6330 Adjust following the addition of the new expedite_regs parameter
6331 to init_target_desc.
6332 * lynx-i386-low.c: #include "x86-tdesc.h".
6333 (lynx_i386_arch_setup): Adjust following the addition of the new
6334 expedite_regs parameter to init_target_desc.
6335 * nto-x86-low.c: #include "x86-tdesc.h".
6336 (nto_x86_arch_setup): Adjust following the addition of the new
6337 expedite_regs parameter to init_target_desc.
6338 * win32-i386-low.c: #include "x86-tdesc.h".
6339 (i386_arch_setup): Adjust following the addition of the new
6340 expedite_regs parameter to init_target_desc.
6342 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6345 * win32-low.c (win32_create_inferior): Add call to my_wait
6346 setting last_status global.
6348 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6351 * win32-low.c (create_process): Only call gdb_tilde_expand if
6352 inferior_cwd is not NULL.
6354 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6356 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6357 registers to the cache if their values have changed.
6358 (i387_xsave_to_cache): Provide default values for x87 control
6359 registers when these features are available, but disabled.
6360 * regcache.c (supply_register_by_name_zeroed): New function.
6361 * regcache.h (supply_register_by_name_zeroed): Declare new
6364 2018-05-07 Tom Tromey <tom@tromey.com>
6366 * configure: Rebuild.
6368 2018-05-04 Tom Tromey <tom@tromey.com>
6370 * configure: Rebuild.
6372 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6373 Pedro Alves <palves@redhat.com>
6375 * linux-aarch64-low.c (aarch64_stopped_data_address):
6378 2018-04-27 Tom Tromey <tom@tromey.com>
6380 * configure: Rebuild.
6382 2018-04-23 Tom Tromey <tom@tromey.com>
6384 * configure: Rebuild.
6386 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6388 * Makefile.in (depcomp): Add "..".
6389 (all_deps_files): New and use it.
6391 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6393 * configure.srv (aarch64*-*-linux*): Don't include xml.
6394 (i[34567]86-*-cygwin*): Likewise.
6395 (i[34567]86-*-linux*): Likewise.
6396 (i[34567]86-*-lynxos*): Likewise.
6397 (i[34567]86-*-mingw32ce*): Likewise.
6398 (i[34567]86-*-mingw*): Likewise.
6399 (i[34567]86-*-nto*): Likewise.
6400 (tic6x-*-uclinux): Likewise.
6401 (x86_64-*-linux*): Likewise.
6402 (x86_64-*-mingw*): Likewise.
6403 (x86_64-*-cygwin*): Likewise.
6405 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6407 * tdesc.c: Remove xml parameter.
6409 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6411 * server.c (get_features_xml): Remove cast.
6412 * tdesc.c (void target_desc::accept): Fill in function.
6413 (tdesc_get_features_xml): Remove old xml creation.
6414 (print_xml_feature::visit_pre): Add xml vistor.
6415 * tdesc.h (struct target_desc): Make xmltarget mutable.
6416 (tdesc_get_features_xml): Remove declaration.
6418 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6420 * tdesc.c (tdesc_architecture_name): Add new function.
6421 (tdesc_osabi_name): Likewise.
6422 (tdesc_get_features_xml): Use new functions.
6424 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6426 * tdesc.c (tdesc_create_flags): Remove.
6427 (tdesc_add_flag): Likewise.
6428 (tdesc_named_type): Likewise.
6429 (tdesc_create_union): Likewise.
6430 (tdesc_create_struct): Likewise.
6431 (tdesc_create_vector): Likewise.
6432 (tdesc_add_bitfield): Likewise.
6433 (tdesc_add_field): Likewise.
6434 (tdesc_set_struct_size): Likewise.
6436 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6438 * tdesc.c (~target_desc): Remove implictly deleted items.
6439 (init_target_desc): Iterate all features.
6440 (tdesc_get_features_xml): Use vector.
6441 (tdesc_create_feature): Create feature.
6442 * tdesc.h (tdesc_feature) Remove
6443 (target_desc): Add features.
6445 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6447 * Makefile.in: Add common/tdesc.c
6448 * tdesc.c (init_target_desc): init all reg_defs from register
6450 (tdesc_create_reg): Create tdesc_reg.
6451 * tdesc.h (tdesc_feature): Add register vector.
6453 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6455 * tdesc.h (struct target_desc) <features>: Change type to
6456 std::vector<std::string>.
6457 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6459 (tdesc_get_features_xml): Likewise.
6460 (tdesc_create_feature): Likewise.
6462 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6464 * regcache.c (find_register_by_number): Return a ref.
6465 (find_regno): Use references.
6466 (register_size): Likewise.
6467 (register_data): Likewise.
6468 * tdesc.c (target_desc::~target_desc): Remove free calls.
6469 (target_desc::operator==): Use std::vector compare.
6470 (init_target_desc): Use reference.
6471 (tdesc_create_reg): Use reg constructors.
6472 * tdesc.h (struct target_desc): Replace pointer with object.
6474 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6476 * regcache.c (find_register_by_number): Make static.
6477 (find_regno): Use find_register_by_number
6478 * regcache.h (struct reg): Remove declaration.
6480 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6482 * tdesc.c (target_desc::~target_desc): Move to here.
6483 (target_desc::operator==): Likewise.
6484 * tdesc.h (target_desc::~target_desc): Move from here.
6485 (target_desc::operator==): Likewise.
6487 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6489 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6491 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6493 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6495 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6496 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6497 and init_registers_s390_gs_linux64.
6499 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6501 * linux-s390-low.c (s390_fill_gs): Remove function.
6502 (s390_fill_gsbc): Remove function.
6503 (s390_regsets): Set fill functions for the guarded storage regsets
6506 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6508 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6509 the word size. Add comment.
6510 (s390_get_wordsize): New function.
6511 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6512 pswm with it. Instead, use s390_get_wordsize to determine the
6513 word size first and derive the correct tdesc from that directly.
6515 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6517 * Makefile.in: Include silent-rules.mk.
6518 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6519 (COMPILE): Add ECHO_CXX.
6520 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6521 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6522 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6523 (version-generated.c): Add ECHO_GEN.
6524 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6525 (IPAGENT_COMPILE): Add ECHO_CXX.
6526 (%-generated.c): Add ECHO_REGDAT.
6528 2018-03-14 Tom Tromey <tom@tromey.com>
6531 * ax.c (ax_printf): Special case for NULL.
6533 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6535 * linux-low.c (linux_qxfer_libraries_svr4): Use
6536 xml_escape_text_append.
6538 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6540 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6542 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6544 * server.c (handle_general_set): Remove unnecessary xstrdup.
6546 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6548 * server.c (parse_debug_format_options): Adjust to
6549 delim_string_to_char_ptr_vec changes.
6550 * thread-db.c (thread_db_load_search): Adjust to
6551 dirnames_to_char_ptr_vec changes.
6553 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6555 * target.h (target_enable_btrace, target_disable_btrace)
6556 (target_read_btrace, target_read_btrace_conf): Turn macro into
6557 inline function. Throw error if target method is not defined.
6558 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6559 check for btrace target method. Be prepared to handle exceptions
6560 from btrace target methods.
6562 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6564 * server.c (captured_main): Change order of error message printed
6565 when the current working directory cannot be found.
6567 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6569 * server.c: Include "filenames.h" and "pathstuff.h".
6570 (program_name): Delete variable.
6571 (program_path): New anonymous class.
6572 (get_exec_wrapper): Use "program_path" instead of
6574 (handle_v_run): Likewise.
6575 (captured_main): Likewise.
6576 (process_serial_event): Likewise.
6578 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6580 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6581 (OBJS): Add "pathstuff.o".
6582 * server.c (current_directory): New global variable.
6583 (captured_main): Initialize "current_directory".
6585 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6587 * tdesc.c: Use common/tdesc.h.
6588 * tdesc.h: Likewise.
6590 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6591 Simon Marchi <simon.marchi@ericsson.com>
6593 * Makefile.in: Switch order of make rules.
6595 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6597 * Makefile.in: Add common directory in build.
6598 * configure.ac: Add common reference.
6599 * configure: Regenerate.
6601 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6603 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6604 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6605 * spu-low.c (spu_target_ops): Likewise.
6606 * win32-low.c (win32_target_ops): Likewise.
6607 * server.c (supported_btrace_packets): Report packets unconditionally.
6608 * target.h (target_ops) <supports_btrace>: Remove.
6609 (target_supports_btrace): Remove.
6611 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6613 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6614 (handle_btrace_disable): Change return type to void. Use exceptions
6616 (handle_btrace_general_set): Catch exception and copy message to
6619 2018-02-08 Tom Tromey <tom@tromey.com>
6621 * linux-low.c (install_software_single_step_breakpoints): Use
6622 make_scoped_restore.
6623 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6624 (do_restore_current_thread_cleanup): Remove.
6625 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6628 2018-02-08 Tom Tromey <tom@tromey.com>
6630 * mem-break.c (set_raw_breakpoint_at): Use
6631 gdb::unique_xmalloc_ptr.
6633 2018-01-30 Pedro Alves <palves@redhat.com>
6636 * target.c (target_terminal::terminal_state): Rename to ...
6637 (target_terminal::m_terminal_state): ... this.
6639 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6641 * linux-low.c (handle_extended_wait): Surround call to
6642 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6644 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6646 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6647 linux_ptrace_attach_fail_reason_string now returning an
6649 (linux_attach): Likewise.
6650 * thread-db.c (attach_thread): Likewise.
6652 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6655 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6656 checking for fs_base/gs_base fields in struct user_regs_struct.
6657 * configure: Regenerate.
6659 2018-01-16 Yao Qi <yao.qi@linaro.org>
6662 * linux-low.c (fetch_register): Call supply_register instead of
6665 2018-01-08 Yao Qi <yao.qi@linaro.org>
6666 Simon Marchi <simon.marchi@ericsson.com>
6668 * Makefile.in (OBS): Remove selftest.o.
6669 * configure.ac: Set srv_selftest_objs if $development is true.
6670 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6671 * configure: Re-generated.
6672 * server.c (captured_main): Wrap variable selftest_filter with
6675 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6677 * server.c (parse_debug_format_options): Return std::string.
6678 (handle_monitor_command, captured_main): Adjust.
6680 2018-01-05 Pedro Alves <palves@redhat.com>
6683 * server.c (captured_main): Pass quiet=false to
6684 save_original_signals_state.
6686 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6688 * gdbreplay.c (gdbreplay_version): Update copyright year in
6690 * server.c (gdbserver_version): Likewise.
6692 2017-12-08 Tom Tromey <tom@tromey.com>
6694 * ax.c (ax_printf): Update.
6696 2017-12-07 Yao Qi <yao.qi@linaro.org>
6698 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6699 aarch64_linux_read_description.
6700 * linux-amd64-ipa.c (idx2mask): New array.
6701 (get_ipa_tdesc): Move idx2mask out.
6702 (initialize_low_tracepoint): Initialize target descriptions.
6703 * linux-i386-ipa.c (idx2mask): New array.
6704 (get_ipa_tdesc): Move idx2mask out.
6705 (initialize_low_tracepoint): Initialize target descriptions.
6707 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6709 * tdesc.c (struct tdesc_type): Change return type.
6710 (tdesc_add_flag): Change parameter type.
6711 (tdesc_add_bitfield): Likewise.
6712 (tdesc_add_field): Likewise.
6713 (tdesc_set_struct_size): Likewise.
6715 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6717 * regcache.c (registers_to_string): Remove unused variable.
6719 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6721 * inferiors.c (for_each_inferior_with_data): Remove.
6722 * inferiors.h (for_each_inferior_with_data): Remove.
6723 * server.c (handle_qxfer_threads_worker): Change parameter type.
6724 (handle_qxfer_threads_proper): Use for_each_thread.
6726 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6728 * inferiors.c (for_each_inferior): Remove.
6729 (clear_inferiors): Use for_each_thread.
6730 * inferiors.h (for_each_inferior): Remove.
6731 * linux-low.c (linux_wait_for_event_filtered): Use
6733 (linux_stabilize_threads): Likewise.
6734 * regcache.c (regcache_release): Likewise.
6735 * server.c (gdb_wants_all_threads_stopped): Likewise.
6736 (clear_pending_status_callback): Remove.
6737 (handle_status): Use for_each_thread.
6738 (captured_main): Likewise.
6739 * win32-low.c (child_init_thread_list): Likewise.
6740 (win32_clear_inferiors): Likewise.
6741 (fake_breakpoint_event): Likewise.
6743 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6745 * inferiors.h (find_inferior): Remove.
6746 * inferiors.c (find_inferior): Remove.
6748 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6750 * linux-low.c (resume_status_pending_p): Update comment.
6751 (need_step_over_p): Update comment.
6753 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6755 * linux-low.c (proceed_one_lwp): Return void, change parameter
6757 (unsuspend_and_proceed_one_lwp): Likewise.
6758 (proceed_all_lwps): Use for_each_thread.
6759 (unstop_all_lwps): Likewise.
6761 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6763 * linux-low.c (linux_resume_one_thread): Return void, take
6765 (linux_resume): Use for_each_thread.
6767 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6769 * linux-low.c (send_sigstop_callback): Return void, change
6770 parameter type. Rename to...
6771 (send_sigstop): ... this.
6772 (suspend_and_send_sigstop_callback): Return void, change parameter
6774 (suspend_and_send_sigstop): ... this.
6775 (stop_all_lwps): Use for_each_thread.
6777 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6779 * linux-low.c (lwp_running): Return bool, remove unused
6781 (linux_stabilize_threads): Use find_thread.
6783 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6785 * linux-low.c (select_singlestep_lwp_callback): Remove.
6786 (count_events_callback): Remove.
6787 (select_event_lwp_callback): Remove.
6788 (select_event_lwp): Use find_thread/for_each_thread.
6790 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6792 * linux-low.c (not_stopped_callback): Return bool, take filter
6794 (linux_wait_for_event_filtered): Use find_thread.
6795 (linux_wait_1): Likewise.
6797 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6799 * linux-low.c (same_lwp): Remove.
6800 (find_lwp_pid): Use find_thread.
6802 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6804 * linux-low.c (delete_lwp_callback): Remove.
6805 (linux_mourn): Use for_each_thread.
6807 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6809 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6810 args parameter, don't check for pid.
6811 (linux_detach): Use for_each_thread.
6813 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6815 * linux-low.c (struct counter): Remove.
6816 (second_thread_of_pid_p): Remove.
6817 (last_thread_of_process_p): Use find_thread.
6819 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6821 * inferiors.c (find_inferior_in_random): Remove.
6822 * inferiors.h (find_inferior_in_random): Remove.
6823 * linux-low.c (status_pending_p_callback): Return bool, accept
6824 parameter ptid directly.
6825 (linux_wait_for_event_filtered): Use find_thread_in_random.
6826 (linux_wait_1): Likewise.
6828 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6830 * inferiors.c (find_inferior_id): Remove.
6831 (find_thread_ptid): Move implemention from find_inferior_id to
6833 * inferiors.h (find_inferior_id): Remove.
6834 * server.c (handle_status): Use find_thread_ptid.
6835 (process_serial_event): Likewise.
6836 * thread-db.c (find_one_thread): Likewise.
6837 (thread_db_thread_handle): Likewise.
6838 * win32-low.c (thread_rec): Likewise.
6839 (child_delete_thread): Likewise.
6840 (win32_thread_alive): Likewise.
6841 (get_child_debug_event): Likewise.
6843 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6845 * linux-mips-low.c (update_watch_registers_callback): Return
6846 void, remove pid_p parameter, don't check for pid.
6847 (mips_insert_point, mips_remove_point): Use for_each_thread.
6849 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6851 * lynx.low (lynx_delete_thread_callback): Remove.
6852 (lynx_mourn): Use for_each_thread.
6854 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6856 * regcache.c (regcache_invalidate_one): Remove.
6857 (regcache_invalidate_pid): use for_each_thread.
6859 2017-11-26 Tom Tromey <tom@tromey.com>
6861 * linux-low.c (linux_create_inferior): Update.
6863 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6865 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6867 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6869 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6870 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6871 * linux-aarch64-tdesc-selftest.c: New file.
6872 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6874 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6876 * configure.srv: Add new file.
6877 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6878 * linux-aarch64-tdesc-selftest.c: New file.
6879 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6881 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6883 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6884 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6885 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6887 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6889 * configure.srv: Add new files.
6890 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6891 aarch64_linux_read_description.
6892 * linux-aarch64-low.c (aarch64_linux_read_description):
6893 Merge with aarch64_arch_setup.
6894 (aarch64_arch_setup): Call aarch64_linux_read_description.
6895 * linux-aarch64-tdesc.c: New file.
6896 * linux-aarch64-tdesc.h: New file.
6898 2017-11-24 Yao Qi <yao.qi@linaro.org>
6900 * configure.srv: Set $srv_regobj for tic6x-linux.
6901 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6902 (tic6x_read_description): Move some code to tic6x_arch_setup.
6903 (tic6x_tdesc_test): New function.
6904 (initialize_low_arch): Call selftests::register_test.
6906 2017-11-22 Yao Qi <yao.qi@linaro.org>
6908 * remote-utils.c (prepare_resume_reply): Use memcpy.
6910 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6912 * linux-low.c (kill_one_lwp_callback): Return void, take
6913 argument directly, don't filter on pid.
6914 (linux_kill): Use for_each_thread.
6916 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6918 * linux-low.c (need_step_over_p): Return bool, remove dummy
6920 (linux_resume, proceed_all_lwps): Use find_thread.
6922 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6924 * linux-low.c (resume_status_pending_p): Return bool, remove
6926 (linux_resume): Use find_thread.
6928 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6930 * linux-low.c (struct thread_resume_array): Remove.
6931 (linux_set_resume_request): Return void, take arguments
6933 (linux_resume): Use for_each_thread.
6935 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6937 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6938 return bool, remove data argument.
6939 (linux_stabilize_threads): Use find_thread.
6941 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6943 * linux-low.c (unsuspend_one_lwp): Remove.
6944 (unsuspend_all_lwps): Use for_each_thread, inline code from
6947 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6949 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6950 * linux-low.c (struct iterate_over_lwps_args): Remove.
6951 (iterate_over_lwps_filter): Remove.
6952 (iterate_over_lwps): Use find_thread.
6954 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6956 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6957 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6958 code from reset_lwp_ptrace_options_callback.
6960 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6962 * linux-arm-low.c (struct update_registers_data): Remove.
6963 (update_registers_callback): Return void, take arguments
6964 directly, don't check thread's pid.
6965 (arm_insert_point, arm_remove_point): Use for_each_thread.
6967 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6969 * win32-low.c (continue_one_thread): Return void, take argument
6971 (child_continue): Use for_each_thread.
6973 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6975 * win32-i386-low.c (update_debug_registers_callback): Rename
6977 (update_debug_registers): ... this, return void, remove pid_p arg.
6978 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6980 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6982 * inferiors.h (struct process_info): Add constructor, initialize
6984 <syscalls_to_catch>: Change type to std::vector<int>.
6985 * inferiors.c (add_process): Allocate process_info with new.
6986 (remove_process): Free process_info with delete.
6987 * linux-low.c (handle_extended_wait): Adjust.
6988 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6989 * server.c (handle_general_set): Adjust.
6991 2017-11-16 Pedro Alves <palves@redhat.com>
6993 * remote-utils.c (remote_close): Block SIGIO signals instead of
6994 uninstalling the SIGIO handler.
6996 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6998 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7000 2017-11-16 Yao Qi <yao.qi@linaro.org>
7002 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7003 (tic6x_store_gregset): Likewise.
7004 (tic6x_usrregs_info): Move it up.
7006 2017-11-15 Alan Hayward <alan.hayward@arm.com>
7008 * Makefile.in: Update arch rules.
7009 * configure.srv: Explicitly mark arch/ files.
7011 2017-11-13 Andreas Schwab <schwab@suse.de>
7013 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7015 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7017 2017-11-06 Pedro Alves <palves@redhat.com>
7019 * config.in, configure: Regenerate.
7021 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7023 * target.c (struct thread_search): Remove.
7024 (thread_search_callback): Remove.
7025 (prepare_to_access_memory): Use for_each_thread instead of
7026 find_inferior. Inline code from thread_search_callback.
7028 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7030 * server.c (struct visit_actioned_threads_data): Remove.
7031 (visit_actioned_threads): Change prototype to take arguments
7033 (resume): Use find_thread instead of find_inferior.
7035 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7037 * server.c (queue_stop_reply_callback): Change prototype, return
7039 (find_status_pending_thread_callback): Remove.
7040 (handle_status): Replace find_inferior with find_thread and
7043 2017-10-25 Alan Hayward <alan.hayward@arm.com>
7045 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7047 (aarch64_store_gregset): Likewise.
7048 (aarch64_fill_fpregset): Likewise.
7049 (aarch64_store_fpregset): Likewise.
7051 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7053 * gdbthread.h (find_thread, for_each_thread): New functions.
7054 * inferiors.c (thread_of_pid): Remove.
7055 (find_any_thread_of_pid): Use find_thread.
7056 * linux-low.c (num_lwps): Use for_each_thread.
7058 2017-10-17 Yao Qi <yao.qi@linaro.org>
7060 * Makefile.in: Remove one rule.
7061 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7063 2017-10-17 Yao Qi <yao.qi@linaro.org>
7065 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7066 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7068 2017-10-17 Yao Qi <yao.qi@linaro.org>
7070 * configure.srv: Rename arm.o with arch/arm.o.
7072 2017-10-17 Yao Qi <yao.qi@linaro.org>
7074 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7075 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7076 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7077 (arch-i386.o, arch-amd64.o): Remove rules.
7078 (arch/%.o): New rule.
7079 Update POSTCOMPILE and COMPILE.pre.
7080 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7081 * configure: Re-generated.
7082 * configure.srv: Replace arch-i386.o with arch/i386.o.
7083 Replace arch-amd64.o with arch/amd64.o.
7085 2017-10-16 Yao Qi <yao.qi@linaro.org>
7087 * configure: Regenerated.
7089 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7091 * inferiors.h: (struct inferior_list): Remove.
7092 (struct inferior_list_entry); Remove.
7093 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7094 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7095 get_first_inferior): Remove.
7096 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7097 find_inferior_id, find_inferior_in_random): Change signature.
7098 * inferiors.c (all_threads): Change type to
7099 std::list<thread_info *>.
7100 (get_thread): Remove macro.
7101 (find_inferior, find_inferior_id): Change signature, implement
7103 (find_inferior_in_random): Change signature, implement using
7104 find_thread_in_random.
7105 (for_each_inferior, for_each_inferior_with_data): Change
7106 signature, implement using for_each_thread.
7107 (add_inferior_to_list, remove_inferior): Remove.
7108 (add_thread, get_first_thread, thread_of_pid,
7109 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7110 (get_first_inferior, one_inferior_p, clear_inferior_list):
7112 (clear_inferiors, get_thread_process): Update.
7113 * gdbthread.h: Include <list>.
7114 (struct thread_info) <entry>: Remove field.
7116 (all_threads): Change type to std::list<thread_info *>.
7117 (get_first_inferior): Add doc.
7118 (find_thread, for_each_thread, find_thread_in_random): New
7120 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7121 * linux-arm-low.c (update_registers_callback): Update.
7122 * linux-low.c (second_thread_of_pid_p): Update.
7123 (kill_one_lwp_callback, linux_detach_lwp_callback,
7124 delete_lwp_callback, status_pending_p_callback, same_lwp,
7125 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7126 iterate_over_lwps, not_stopped_callback,
7127 resume_stopped_resumed_lwps, count_events_callback,
7128 select_singlestep_lwp_callback, select_event_lwp_callback,
7129 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7130 suspend_and_send_sigstop_callback, wait_for_sigstop,
7131 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7132 lwp_running, linux_set_resume_request, resume_status_pending_p,
7133 need_step_over_p, start_step_over, linux_resume_one_thread,
7134 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7135 reset_lwp_ptrace_options_callback): Update.
7136 * linux-mips-low.c (update_watch_registers_callback): Update.
7137 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7139 (free_register_cache_thread_one): Remove.
7140 (regcache_release): Update.
7141 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7142 handle_qxfer_threads_worker): Update.
7143 (handle_query): Update, use list iterator.
7144 (visit_actioned_threads, handle_pending_status,
7145 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7146 clear_pending_status_callback, set_pending_status_callback,
7147 find_status_pending_thread_callback, handle_status,
7148 process_serial_event): Update.
7149 * target.c (thread_search_callback): Update.
7150 * thread-db.c (thread_db_get_tls_address): Update.
7151 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7153 * win32-i386-low.c (update_debug_registers_callback): Update.
7154 * win32-low.c (delete_thread_info, child_delete_thread,
7155 continue_one_thread, suspend_one_thread,
7156 get_child_debug_event): Adjust.
7158 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7160 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7161 * inferiors.h: Include <list>.
7162 (struct process_info) <entry>: Remove field.
7164 (pid_of): Change macro to function.
7165 (ptid_of, lwpid_of): Remove macro.
7166 (all_processes): Change type to std::list<process_info *>.
7167 (ALL_PROCESSES): Remove macro.
7168 (for_each_process, find_process): New function.
7169 * inferiors.c (all_processes): Change type to
7170 std::list<process_info *>.
7171 (find_thread_process): Adjust.
7172 (add_process): Likewise.
7173 (remove_process): Likewise.
7174 (find_process_pid): Likewise.
7175 (get_first_process): Likewise.
7176 (started_inferior_callback): Remove.
7177 (have_started_inferiors_p): Adjust.
7178 (attached_inferior_callback): Remove.
7179 (have_attached_inferiors_p): Adjust.
7180 * linux-low.c (check_zombie_leaders): Likewise.
7181 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7182 (x86_linux_update_xmltarget): Adjust.
7183 * server.c (handle_query): Likewise.
7184 (gdb_reattached_process): Remove.
7185 (handle_status): Adjust.
7186 (kill_inferior_callback): Likewise.
7187 (detach_or_kill_inferior): Remove.
7188 (print_started_pid): Likewise.
7189 (print_attached_pid): Likewise.
7190 (detach_or_kill_for_exit): Update.
7191 (process_serial_event): Likewise.
7192 * linux-arm-low.c (arm_new_fork): Likewise.
7194 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7196 * dll.h: Include <list>.
7197 (struct dll_info): Add constructor.
7198 <entry>: Remove field.
7199 (all_dlls): Change type to std::list<dll_info>.
7200 * dll.c: Include <algorithm>.
7201 (get_dll): Remove macro.
7202 (all_dlls): Change type to std::list<dll_info *>.
7203 (free_one_dll): Remove.
7204 (match_dll): Likewise.
7205 (loaded_dll): Adjust.
7206 (unloaded_dll): Adjust to all_dlls type change, use
7207 std::find_if. Inline code from match_dll.
7208 (clear_dlls): Adjust to all_dlls type change.
7209 * server.c (emit_dll_description): Remove.
7210 (handle_qxfer_libraries): Adjust to all_dlls type change,
7211 integrate emit_dll_description's functionality.
7213 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7215 * linux-low.h (struct linux_target_ops) <delete_process>: New
7217 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7218 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7219 (struct linux_target_ops): Add delete_process callback.
7220 * linux-arm-low.c (arm_delete_process): New.
7221 (struct linux_target_ops): Add delete_process callback.
7222 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7223 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7224 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7225 * linux-mips-low.c (mips_linux_delete_process): New.
7226 (struct linux_target_ops): Add delete_process callback.
7227 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7228 * linux-s390-low.c (struct linux_target_ops): Likewise.
7229 * linux-sh-low.c (struct linux_target_ops): Likewise.
7230 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7231 * linux-tile-low.c (struct linux_target_ops): Likewise.
7232 * linux-x86-low.c (x86_linux_delete_process): New.
7233 (struct linux_target_ops): Add delete_process callback.
7234 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7236 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7238 * linux-aarch64-low.c (the_low_target): Add thread delete
7240 * linux-arm-low.c (arm_delete_thread): New function.
7241 (the_low_target): Add thread delete callback.
7242 * linux-bfin-low.c (the_low_target): Likewise.
7243 * linux-crisv32-low.c (the_low_target): Likewise.
7244 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7246 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7248 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7249 * linux-mips-low.c (mips_linux_delete_thread): New function.
7250 (the_low_target): Add thread delete callback.
7251 * linux-ppc-low.c (the_low_target): Likewise.
7252 * linux-s390-low.c (the_low_target): Likewise.
7253 * linux-sh-low.c (the_low_target): Likewise.
7254 * linux-tic6x-low.c (the_low_target): Likewise.
7255 * linux-tile-low.c (the_low_target): Likewise.
7256 * linux-x86-low.c (the_low_target): Likewise.
7257 * linux-xtensa-low.c (the_low_target): Likewise.
7259 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7261 * win32-low.c: Include "common-inferior.h".
7263 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7265 * inferiors.c (set_inferior_cwd): New function.
7266 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7267 (handle_query): Inform that QSetWorkingDir is supported.
7268 * win32-low.c (create_process): Pass the inferior's cwd to
7271 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7273 * inferiors.c (current_inferior_cwd): New global variable.
7274 (get_inferior_cwd): New function.
7275 * inferiors.h (struct process_info) <cwd>: New field.
7277 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7279 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7280 (OBS): Add gdb_tilde_expand.o.
7282 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7284 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7285 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7287 2017-09-29 Pedro Alves <palves@redhat.com>
7289 * ax.c (gdb_parse_agent_expr): Constify.
7290 * ax.h (gdb_parse_agent_expr): Constify.
7291 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7293 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7294 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7295 * remote-utils.h (read_ptid): Constify.
7296 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7297 (process_point_options, process_serial_event): Constify.
7298 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7299 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7300 (cmd_qtbuffer): Constify.
7302 2017-09-29 Pedro Alves <palves@redhat.com>
7304 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7307 2017-09-29 Pedro Alves <palves@redhat.com>
7309 * linux-low.c (handle_extended_wait): Pass parent thread instead
7310 of process to thread_db_notice_clone.
7311 * linux-low.h (thread_db_notice_clone): Replace parent process
7312 parameter with parent thread parameter.
7313 * thread-db.c (find_one_thread): Add comment.
7314 (thread_db_notice_clone): Replace parent process parameter with
7315 parent thread parameter. Temporarily switch to the parent thread.
7317 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7319 * gdbthread.h: Include "common-gdbthread.h".
7320 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7321 "if" when validating the ptid.
7322 * remote-utils.c: Include "gdbthread.h".
7323 (prepare_resume_reply): Use "switch_to_thread".
7324 * target.c (done_accessing_memory): Likewise.
7326 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7328 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7329 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7330 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7331 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7332 s390x-gs-linux64-ipa.o to ipa_obj.
7333 * linux-s390-low.c (HWCAP_S390_GS): New define.
7334 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7336 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7337 (s390_arch_setup): Check for guarded-storage support and choose
7339 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7340 init_registers_s390x_gs_linux64.
7341 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7343 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7344 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7346 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7348 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7350 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7352 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7353 (thread_db_thread_handle): Declare.
7354 * linux-low.c (linux_target_ops): Initialize thread_handle.
7355 * server.c (handle_qxfer_threads_worker): Add support for
7357 * target.h (struct target_ops): Add new function pointer,
7359 (target_thread_handle): Define.
7360 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7362 (thread_db_thread_handle): New function.
7364 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7366 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7367 * linux-low.h (thread_db_notice_clone): Declare.
7368 * thread-db.c (thread_db_notice_clone): New function.
7370 2017-09-21 Pedro Alves <palves@redhat.com>
7372 * server.c (gdb_read_memory, handle_status, process_serial_event)
7373 (handle_serial_event, handle_target_event): Adjust to
7374 set_desired_thread prototype change.
7375 * target.c (set_desired_thread): Remove 'use_general' parameter
7377 * target.h (set_desired_thread): Remove 'use_general' parameter.
7379 2017-09-20 Tom Tromey <tom@tromey.com>
7381 * target.c (target_terminal::terminal_state): Define.
7382 (target_terminal::init): Rename from target_terminal_init.
7383 (target_terminal::inferior): Rename from
7384 target_terminal_inferior.
7385 (target_terminal::ours): Rename from target_terminal_ours.
7386 (target_terminal::ours_for_output, target_terminal::info): New.
7388 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7390 * server.c (accumulate_file_name_length): Remove.
7391 (emit_dll_description): Adjust to std::string change.
7392 (handle_qxfer_libraries): Use std::string to hold document.
7394 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7396 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7397 return type of xml_escape_text.
7398 * server.c (emit_dll_description): Likewise.
7400 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7402 * server.c (captured_main): Accept argument for --selftest.
7403 Update run_tests call.
7404 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7405 when registering selftests.
7407 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7409 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7410 instead of "VEC" for "target_desc.reg_defs".
7411 (regcache_cpy): Likewise.
7412 (registers_to_string): Likewise.
7413 (registers_from_string): Likewise.
7414 (find_regno): Likewise.
7415 (supply_regblock): Likewise.
7416 (regcache_raw_read_unsigned): Likewise.
7417 * tdesc.c (init_target_desc): Likewise.
7418 (tdesc_create_reg): Likewise.
7419 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7420 (struct target_desc) <reg_defs>: Convert to "std::vector".
7421 (target_desc): Do not initialize "reg_defs".
7422 (~target_desc): Update code to use "std::vector" instead of "VEC"
7423 for "target_desc.reg_defs".
7424 (operator==): Likewise.
7426 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7428 * inferiors.h (thread_to_gdb_id): Remove.
7429 * inferiors.c (thread_to_gdb_id): Remove.
7430 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7431 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7432 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7434 * nto-low.c (nto_fetch_registers, nto_store_registers,
7435 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7437 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7439 * inferiors.h (gdb_id_to_thread_id): Remove.
7440 * inferiors.c (gdb_id_to_thread_id): Remove.
7441 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7442 removal. Move pid declaration closer to where it's used.
7444 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7446 * server.c (handle_detach): New function.
7447 (process_serial_event): Move code out, call handle_detach.
7449 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7451 * server.c (require_running): Rename to ...
7452 (require_running_or_return): ... this ...
7453 (require_running_or_break): ... and this.
7454 (handle_query, process_serial_event): Adjust.
7456 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7458 * linux-low.c (linux_set_resume_request): Remove unused
7461 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7463 * server.c (first_thread_of): Remove.
7464 (process_serial_event): Replace usage of first_thread_of with
7465 find_any_thread_of_pid.
7466 * tracepoint.c (same_process_p): Remove.
7467 (gdb_agent_about_to_close): Replace usage of same_process_p with
7468 find_any_thread_of_pid.
7469 * linux-x86-low.c (same_process_callback): Remove.
7470 (x86_arch_setup_process_callback): Replace usage of
7471 same_process_callback with find_any_thread_of_pid.
7472 * thread-db.c (any_thread_of): Remove.
7473 (switch_to_process): Replace usage of any_thread_of with
7474 find_any_thread_of_pid.
7475 * inferiors.c (thread_pid_matches_callback): Remove.
7476 (find_thread_process): Adjust to use find_any_thread_of_pid.
7478 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7480 * regcache.c (get_thread_regcache): Guard calls to "memset"
7483 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7485 * linux-low.c (handle_extended_wait): Use
7486 "allocate_target_description" instead of "XNEW".
7487 * linux-x86-low.c (initialize_low_arch): Likewise.
7489 2017-09-05 Yao Qi <yao.qi@linaro.org>
7491 * configure.srv (srv_i386_regobj): Remove.
7492 (srv_amd64_regobj): Remove.
7493 (srv_regobj): Set it to "" for x86 non-linux targets.
7494 * linux-x86-tdesc.c (i386_linux_read_description):
7495 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7496 (init_registers_i386): Remove the declaration.
7497 (tdesc_i386): Remove the declaration.
7498 (lynx_i386_arch_setup): Call i386_create_target_description.
7499 * nto-x86-low.c: Likewise.
7500 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7501 [!__x86_64__]: include arch/i386.h.
7502 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7504 2017-09-05 Yao Qi <yao.qi@linaro.org>
7506 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7507 i386/amd64-XXX-linux from it.
7509 2017-09-05 Yao Qi <yao.qi@linaro.org>
7511 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7513 (ipa_amd64_linux_regobj): Remove.
7514 (ipa_x32_linux_regobj): Remove.
7516 2017-09-05 Yao Qi <yao.qi@linaro.org>
7518 * Makefile.in (arch-amd64.o): New rule.
7519 * configure.srv: Append arch-amd64.o.
7520 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7521 (get_ipa_tdesc): Call amd64_linux_read_description.
7522 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7523 and init_registers_amd64_XXX.
7524 * linux-x86-low.c (x86_linux_read_description): Call
7525 amd64_linux_read_description.
7526 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7527 (initialize_low_arch): Don't call init_registers_x32_XXX and
7528 init_registers_amd64_XXX.
7529 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7530 and tdesc_amd64_XXX.
7531 [__x86_64__] (amd64_tdesc_test): New function.
7532 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7533 and init_registers_amd64_XXX.
7534 * linux-x86-tdesc.c: Include arch/amd64.h.
7535 (xcr0_to_tdesc_idx): New function.
7536 (i386_linux_read_description): New function.
7537 (amd64_get_ipa_tdesc_idx): New function.
7538 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7539 (amd64_get_ipa_tdesc): Declare.
7541 2017-09-05 Yao Qi <yao.qi@linaro.org>
7543 * configure.srv (srv_i386_linux_xmlfiles): Remove
7544 i386/i386-XXX-linux.xml from it.
7546 2017-09-05 Yao Qi <yao.qi@linaro.org>
7548 * configure.srv: Set srv_i386_linux_regobj empty if $development
7550 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7551 initialize_low_tdesc.
7552 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7553 with #if initialize_low_tdesc.
7554 * linux-x86-tdesc-selftest.c: New file.
7555 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7557 2017-09-05 Yao Qi <yao.qi@linaro.org>
7559 * Makefile.in (arch-i386.o): New rule.
7560 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7561 (x86_64-*-linux*): Likewise.
7562 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7563 include arch/i386.h.
7564 (i386_linux_read_description): Remove code and call
7565 i386_create_target_description.
7566 * tdesc.c (allocate_target_description): New function.
7567 * tdesc.h (set_tdesc_architecture): Remove declaration.
7568 (set_tdesc_osabi): Likewise.
7570 2017-09-05 Yao Qi <yao.qi@linaro.org>
7572 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7573 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7574 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7576 * server.c (get_features_xml): Call tdesc_get_features_xml.
7577 * tdesc.c (set_tdesc_architecture): New function.
7578 (set_tdesc_osabi): New function.
7579 (tdesc_get_features_xml): New function.
7580 (tdesc_create_feature): Add an argument.
7581 * tdesc.h (struct target_desc) <features>: New field.
7582 <arch, osabi>: New field.
7583 (~target_desc): xfree features, arch, and osabi.
7584 (target_desc::oerator==): Don't compare .xmltarget.
7585 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7586 (set_tdesc_osabi): Likewise.
7587 (tdesc_get_features_xml): Likewise.
7589 2017-09-05 Yao Qi <yao.qi@linaro.org>
7591 * linux-x86-tdesc.c: Include selftest.h.
7592 (i386_tdesc_test): New function.
7593 (initialize_low_tdesc): Call selftests::register_test.
7594 * tdesc.h: Include regdef.h.
7595 (target_desc): Override operator == and !=.
7597 2017-09-05 Yao Qi <yao.qi@linaro.org>
7599 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7600 (ipa_obj): Likewise.
7601 * linux-i386-ipa.c: Include common/x86-xstate.h
7602 (get_ipa_tdesc): Call i386_linux_read_description.
7603 (initialize_low_tracepoint): Don't call init_registers_XXX
7604 functions, call initialize_low_tdesc instead.
7605 * linux-x86-low.c (x86_linux_read_description): Call
7606 i386_linux_read_description.
7607 (initialize_low_arch): Don't call init_registers_i386_XXX
7608 functions, call initialize_low_tdesc.
7609 * linux-x86-tdesc.c: New file.
7610 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7611 (i386_get_ipa_tdesc_idx): Declare.
7612 (i386_get_ipa_tdesc): Declare.
7613 (initialize_low_tdesc): Declare.
7615 2017-09-05 Yao Qi <yao.qi@linaro.org>
7617 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7620 2017-09-05 Yao Qi <yao.qi@linaro.org>
7622 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7623 * regcache.c (get_thread_regcache): Use VEC_length.
7624 (init_register_cache): Likewise.
7625 (regcache_cpy): Likewise.
7626 (registers_to_string): Iterate reg_defs via VEC_iterate.
7627 (find_regno): Likewise.
7628 (find_register_by_number): Use VEC_index.
7629 (register_size): Call find_register_by_number.
7630 (register_data): Call find_register_by_number.
7631 (supply_regblock): Use VEC_length.
7632 (regcache_raw_read_unsigned): Likewise.
7633 * tdesc.c (init_target_desc): Iterate reg_defs via
7635 (default_description): Update initializer.
7636 (copy_target_description): Don't update field num_registers.
7637 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7638 <num_registers>: Remove.
7640 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7642 * Makefile.in (.SECONDARY): Define target.
7644 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7646 * linux-low.c (linux_wait_1): Adjust.
7647 * server.c (queue_stop_reply_callback): Adjust.
7649 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7651 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7652 QEnvironmentUnset and QEnvironmentReset packets.
7653 (handle_query): Inform remote that QEnvironmentHexEncoded,
7654 QEnvironmentUnset and QEnvironmentReset are supported.
7656 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7658 * inferiors.h (inferior_target_data): Rename to ...
7659 (thread_target_data): ... this.
7660 (inferior_regcache_data): Rename to ...
7661 (thread_regcache_data): ... this.
7662 (set_inferior_regcache_data): Rename to ...
7663 (set_thread_regcache_data): ... this.
7664 * inferiors.c (inferior_target_data): Rename to ...
7665 (thread_target_data): ... this.
7666 (inferior_regcache_data): Rename to ...
7667 (thread_regcache_data): ... this.
7668 (set_inferior_regcache_data): Rename to ...
7669 (set_thread_regcache_data): ... this.
7670 (free_one_thread): Update.
7671 * linux-low.h (get_thread_lwp): Update.
7672 * regcache.c (get_thread_regcache): Update.
7673 (regcache_invalidate_thread): Update.
7674 (free_register_cache_thread): Update.
7675 * win32-i386-low.c (update_debug_registers_callback): Update.
7676 (win32_get_current_dr): Update.
7677 * win32-low.c (thread_rec): Update.
7678 (delete_thread_info): Update.
7679 (continue_one_thread): Update.
7680 (suspend_one_thread): Update.
7682 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7684 * inferiors.c (set_inferior_target_data): Remove.
7685 * inferiors.h (set_inferior_target_data): Remove.
7687 2017-08-18 Yao Qi <yao.qi@linaro.org>
7689 * Makefile.in (OBS): Add selftest.o.
7690 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7691 * configure, config.in: Re-generated.
7692 * server.c: Include common/sefltest.h.
7693 (captured_main): Handle option --selftest.
7695 2017-08-09 Yao Qi <yao.qi@linaro.org>
7697 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7698 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7699 i386-avx-mpx.o and i386-mmx.o.
7700 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7701 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7702 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7703 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7704 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7705 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7706 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7707 i386/amd64-avx-mpx.xml.
7709 2017-08-09 Yao Qi <yao.qi@linaro.org>
7711 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7712 and x32-avx-avx512.o.
7713 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7714 i386/x32-avx-avx512.xml.
7716 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7718 * tracepoint.h (enum class fast_tpoint_collect_result): New
7720 (fast_tracepoint_collecting): Change return type to
7721 fast_tpoint_collect_result.
7722 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7723 * linux-low.h: Include tracepoint.h.
7724 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7725 fast_tpoint_collect_result.
7726 * linux-low.c (handle_tracepoints): Adjust.
7727 (linux_fast_tracepoint_collecting): Change return type to
7728 fast_tpoint_collect_result.
7729 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7730 linux_wait_1, stuck_in_jump_pad_callback,
7731 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7732 proceed_one_lwp): Adjust to type change.
7734 2017-07-10 Yao Qi <yao.qi@linaro.org>
7736 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7738 2017-06-29 Yao Qi <yao.qi@linaro.org>
7740 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7742 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7744 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7746 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7748 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7750 * linux-low.c (linux_create_inferior): Adjust code to access the
7751 environment information via 'gdb_environ' class.
7752 * lynx-low.c (lynx_create_inferior): Likewise.
7753 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7754 (get_environ): Return a pointer to 'our_environ'.
7755 (captured_main): Initialize 'our_environ'.
7756 * server.h (get_environ): Adjust prototype.
7757 * spu-low.c (spu_create_inferior): Adjust code to access the
7758 environment information via 'gdb_environ' class.
7760 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7762 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7763 usage of "register" keyword.
7765 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7767 * configure: Re-generate.
7769 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7771 * configure: Re-generate.
7773 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7775 * Makefile.in (COMPILE.pre): Add "-x c++".
7777 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7779 * fork-child.c: Conditionally include <signal.h>.
7781 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7783 * server.c (handle_general_set): Handle new packet
7784 "QStartupWithShell".
7785 (handle_query): Add "QStartupWithShell" to the list of supported
7787 (gdbserver_usage): Add help text explaining the
7788 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7790 (captured_main): Recognize and act upon the presence of the new
7793 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7794 Pedro Alves <palves@redhat.com>
7796 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7797 * configure: Regenerate.
7798 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7800 (i[34567]86-*-lynxos*): Likewise.
7801 (spu*-*-*): Likewise.
7802 * fork-child.c: New file.
7803 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7805 (linux_ptrace_fun): New function.
7806 (linux_create_inferior): Adjust function prototype to reflect
7807 change on "target.h". Adjust function code to use
7809 (linux_request_interrupt): Delete "signal_pid".
7810 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7811 (lynx_ptrace_fun): New function.
7812 (lynx_create_inferior): Adjust function prototype to reflect
7813 change on "target.h". Adjust function code to use
7815 * nto-low.c (nto_create_inferior): Adjust function prototype and
7816 code to reflect change on "target.h". Update comments.
7817 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7818 "common-terminal.h" and "environ.h".
7819 (terminal_fd): Moved to fork-child.c.
7820 (old_foreground_pgrp): Likewise.
7821 (restore_old_foreground_pgrp): Likewise.
7822 (last_status): Make it global.
7823 (last_ptid): Likewise.
7824 (our_environ): New variable.
7825 (startup_with_shell): Likewise.
7826 (program_name): Likewise.
7827 (program_argv): Rename to...
7828 (program_args): ...this.
7829 (wrapper_argv): New variable.
7830 (start_inferior): Delete function.
7831 (get_exec_wrapper): New function.
7832 (get_exec_file): Likewise.
7833 (get_environ): Likewise.
7834 (prefork_hook): Likewise.
7835 (post_fork_inferior): Likewise.
7836 (postfork_hook): Likewise.
7837 (postfork_child_hook): Likewise.
7838 (handle_v_run): Update code to deal with arguments coming from the
7839 remote host. Update calls from "start_inferior" to
7841 (captured_main): Likewise. Initialize environment variable. Call
7843 * server.h (post_fork_inferior): New prototype.
7844 (get_environ): Likewise.
7845 (last_status): Declare.
7846 (last_ptid): Likewise.
7847 (signal_pid): Likewise.
7848 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7849 (spu_ptrace_fun): New function.
7850 (spu_create_inferior): Adjust function prototype to reflect change
7851 on "target.h". Adjust function code to use "fork_inferior".
7852 * target.c (target_terminal_init): New function.
7853 (target_terminal_inferior): Likewise.
7854 (target_terminal_ours): Likewise.
7855 * target.h: Include <vector>.
7856 (struct target_ops) <create_inferior>: Update prototype.
7857 (create_inferior): Update macro.
7858 * utils.c (gdb_flush_out_err): New function.
7859 * win32-low.c (win32_create_inferior): Adjust function prototype
7860 and code to reflect change on "target.h".
7862 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7864 * inferiors.c (switch_to_thread): New function.
7866 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7868 * Makefile.in (SFILE): Add "common/job-control.c".
7869 (OBS): Add "job-control.o".
7871 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7873 * Makefile: Remove "@host_makefile_frag@".
7875 2017-05-05 Pedro Alves <palves@redhat.com>
7877 * configure: Regenerate.
7879 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7881 * configure: Regenerate.
7883 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7885 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7886 software_single_step change of return type to
7887 std::vector<CORE_ADDR>.
7888 * linux-low.c (install_software_single_step_breakpoints):
7890 * linux-low.h (install_software_single_step_breakpoints):
7893 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7895 * remote-utils.c: Include "gdb_termios.h" instead of
7897 * terminal.h: Delete file.
7899 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7901 * server.c: Include <vector>.
7902 <program_argv, wrapper_argv>: Convert to std::vector.
7903 (start_inferior): Rewrite function to use C++.
7904 (handle_v_run): Likewise. Update code that calculates the argv
7905 based on the vRun packet; use C++.
7906 (captured_main): Likewise.
7908 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7910 * server.c (handle_v_cont): Initialize thread_resume::thread
7913 2017-04-05 Pedro Alves <palves@redhat.com>
7915 * configure: Regenerate.
7917 2017-04-05 Pedro Alves <palves@redhat.com>
7919 * gdbreplay.c (sync_error): Constify.
7920 * linux-x86-low.c (push_opcode): Constify.
7922 2017-04-05 Pedro Alves <palves@redhat.com>
7924 * win32-low.c (get_child_debug_event)
7925 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7926 Report TARGET_WAITKIND_SPURIOUS instead.
7928 2017-04-05 Pedro Alves <palves@redhat.com>
7930 * remote-utils.c (remote_prepare, remote_open): Constify.
7931 * remote-utils.h (remote_prepare, remote_open): Constify.
7932 * server.c (captured_main): Constify 'port' handling.
7934 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7936 * Makefile.in (clean): Clear .deps.
7938 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7940 * .gitignore: Remove generated files, replace with wildcard.
7941 * (clean): Replace removal of generated files with wildcard.
7942 (version.c): Replace with...
7943 (version-generated.c): ...this.
7944 (xml-builtin.c): Replace with...
7945 (xml-builtin-generated.c): ...this.
7946 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7947 (%.c: *regformats*): Replace with...
7948 (%-generated.c: *regformats*): ...this.
7950 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7952 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7953 (xtensa_fill_gregset): Call collect_register_by_name for
7955 (xtensa_store_gregset): Call supply_register_by_name for
7958 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7960 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7961 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7962 (xtensa_store_gregset): Call supply_register for all registers in
7963 a0_regnum..a0_regnum + C0_NREGS range.
7965 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7967 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7968 (ax-ipa.o: ax.c): Remove.
7969 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7970 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7971 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7972 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7973 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7975 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7977 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7978 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7979 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7980 (errors-ipa.o: ../common/errors.c): Remove.
7981 (format-ipa.o: ../common/format.c): Remove.
7982 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7984 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7986 * Makefile.in (%-ipa.o: %.c): New rule.
7987 (tracepoint-ipa.o: tracepoint.c): Remove.
7988 (utils-ipa.o: utils.c): Remove.
7989 (remote-utils-ipa.o: remote-utils.c): Remove.
7990 (regcache-ipa.o: regcache.c): Remove.
7991 (i386-linux-ipa.o: i386-linux.c): Remove.
7992 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7993 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7994 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7995 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7996 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7997 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7998 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7999 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8000 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8001 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8002 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8003 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8004 (aarch64-ipa.o: aarch64.c): Remove.
8005 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8006 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8007 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8008 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8009 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8010 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8011 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8012 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8013 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8014 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8015 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8016 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8017 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8018 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8019 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8020 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8021 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8022 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8023 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8024 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8025 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8026 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8027 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8028 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8029 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8030 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8031 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8032 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8033 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8034 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8035 (tdesc-ipa.o: tdesc.c): Remove.
8036 (x32-linux-ipa.o: x32-linux.c): Remove.
8037 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8038 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8040 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8042 * Makefile.in (%.o: ../arch/%.c): New rule.
8043 (arm.o: ../arch/arm.c): Remove.
8044 (arm-linux.o: ../arch/arm-linux.c): Remove.
8045 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8046 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8048 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8050 * Makefile.in (%.o: ../nat/%.c): New rule.
8051 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8052 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8053 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8054 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8055 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8056 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8057 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8058 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8059 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8060 (linux-personality.o: ../nat/linux-personality.c): Remove.
8061 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8062 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8063 (x86-linux.o: ../nat/x86-linux.c): Remove.
8064 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8065 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8067 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8069 * Makefile.in (%.o: ../common/%.c): New rule.
8070 (signals.o: ../common/signals.c): Remove.
8071 (print-utils.o: ../common/print-utils.c): Remove.
8072 (rsp-low.o: ../common/rsp-low.c): Remove.
8073 (common-utils.o: ../common/common-utils.c): Remove.
8074 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8075 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8076 (vec.o: ../common/vec.c): Remove.
8077 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8078 (xml-utils.o: ../common/xml-utils.c): Remove.
8079 (ptid.o: ../common/ptid.c): Remove.
8080 (buffer.o: ../common/buffer.c): Remove.
8081 (format.o: ../common/format.c): Remove.
8082 (filestuff.o: ../common/filestuff.c): Remove.
8083 (agent.o: ../common/agent.c): Remove.
8084 (errors.o: ../common/errors.c): Remove.
8085 (environ.o: ../common/environ.c): Remove.
8086 (common-debug.o: ../common/common-debug.c): Remove.
8087 (cleanups.o: ../common/cleanups.c): Remove.
8088 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8089 (fileio.o: ../common/fileio.c): Remove.
8090 (common-regcache.o: ../common/common-regcache.c): Remove.
8091 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8092 (new-op.o: ../common/new-op.c): Remove.
8093 (btrace-common.o: ../common/btrace-common.c): Remove.
8095 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8097 * Makefile.in (%.o: ../target/%.c): New rule.
8098 (waitstatus.o: ../target/waitstatus.c): Remove.
8100 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8103 (%.c: ../regformats/%.dat,
8104 (%.c: ../regformats/arm/%.dat,
8105 (%.c: ../regformats/i386/%.dat,
8106 (%.c: ../regformats/rs6000/%.dat): New rules.
8107 (aarch64.c): Remove.
8108 (reg-arm.c): Remove.
8109 (arm-with-iwmmxt.c): Remove.
8110 (arm-with-vfpv2.c): Remove.
8111 (arm-with-vfpv3.c): Remove.
8112 (arm-with-neon.c): Remove.
8113 (reg-bfin.c): Remove.
8114 (reg-cris.c): Remove.
8115 (reg-crisv32.c): Remove.
8117 (i386-linux.c): Remove.
8118 (i386-avx.c): Remove.
8119 (i386-avx-linux.c): Remove.
8120 (i386-avx-avx512.c): Remove.
8121 (i386-avx-avx512-linux.c): Remove.
8122 (i386-mpx.c): Remove.
8123 (i386-mpx-linux.c): Remove.
8124 (i386-avx-mpx-avx512-pku.c): Remove.
8125 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8126 (i386-avx-mpx.c): Remove.
8127 (i386-avx-mpx-linux.c): Remove.
8128 (i386-mmx.c): Remove.
8129 (i386-mmx-linux.c): Remove.
8130 (reg-ia64.c): Remove.
8131 (reg-m32r.c): Remove.
8132 (reg-m68k.c): Remove.
8134 (mips-linux.c): Remove.
8135 (mips-dsp-linux.c): Remove.
8136 (mips64-linux.c): Remove.
8137 (mips64-dsp-linux.c): Remove.
8138 (nios2-linux.c): Remove.
8139 (powerpc-32.c): Remove.
8140 (powerpc-32l.c): Remove.
8141 (powerpc-altivec32l.c): Remove.
8142 (powerpc-cell32l.c): Remove.
8143 (powerpc-vsx32l.c): Remove.
8144 (powerpc-isa205-32l.c): Remove.
8145 (powerpc-isa205-altivec32l.c): Remove.
8146 (powerpc-isa205-vsx32l.c): Remove.
8147 (powerpc-e500l.c): Remove.
8148 (powerpc-64l.c): Remove.
8149 (powerpc-altivec64l.c): Remove.
8150 (powerpc-cell64l.c): Remove.
8151 (powerpc-vsx64l.c): Remove.
8152 (powerpc-isa205-64l.c): Remove.
8153 (powerpc-isa205-altivec64l.c): Remove.
8154 (powerpc-isa205-vsx64l.c): Remove.
8155 (s390-linux32.c): Remove.
8156 (s390-linux32v1.c): Remove.
8157 (s390-linux32v2.c): Remove.
8158 (s390-linux64.c): Remove.
8159 (s390-linux64v1.c): Remove.
8160 (s390-linux64v2.c): Remove.
8161 (s390-te-linux64.c): Remove.
8162 (s390-vx-linux64.c): Remove.
8163 (s390-tevx-linux64.c): Remove.
8164 (s390x-linux64.c): Remove.
8165 (s390x-linux64v1.c): Remove.
8166 (s390x-linux64v2.c): Remove.
8167 (s390x-te-linux64.c): Remove.
8168 (s390x-vx-linux64.c): Remove.
8169 (s390x-tevx-linux64.c): Remove.
8170 (tic6x-c64xp-linux.c): Remove.
8171 (tic6x-c64x-linux.c): Remove.
8172 (tic6x-c62x-linux.c): Remove.
8174 (reg-sparc64.c): Remove.
8175 (reg-spu.c): Remove.
8177 (amd64-linux.c): Remove.
8178 (amd64-avx.c): Remove.
8179 (amd64-avx-linux.c): Remove.
8180 (amd64-avx-avx512.c): Remove.
8181 (amd64-avx-avx512-linux.c): Remove.
8182 (amd64-mpx.c): Remove.
8183 (amd64-mpx-linux.c): Remove.
8184 (amd64-avx-mpx-avx512-pku.c): Remove.
8185 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8186 (amd64-avx-mpx.c): Remove.
8187 (amd64-avx-mpx-linux.c): Remove.
8189 (x32-linux.c): Remove.
8190 (x32-avx.c): Remove.
8191 (x32-avx-linux.c): Remove.
8192 (x32-avx-avx512.c): Remove.
8193 (x32-avx-avx512-linux.c): Remove.
8194 (reg-xtensa.c): Remove.
8195 (reg-tilegx.c): Remove.
8196 (reg-tilegx32.c): Remove.
8198 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8200 * Makefile.in (SFILES): Add "common/environ.c".
8201 (OBJS): Add "common/environ.h".
8203 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8205 * configure.ac: Check if the fs_base and gs_base members of
8206 `struct user_regs_struct' exist.
8207 * config.in: Regenerated.
8208 * configure: Likewise.
8210 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8212 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8214 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8215 (get_next_pcs_syscall_next_pc): Likewise.
8217 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8219 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8220 * nto-x86-low.c: Likewise.
8222 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8224 * Makefile.in: Include disable-implicit-rules.mk.
8226 2016-11-23 Pedro Alves <palves@redhat.com>
8228 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8229 (debug_vprintf): Use std::chrono::steady_clock instead of
8230 gettimeofday. Use '.' instead of ':'.
8231 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8232 (get_timestamp): Use std::chrono::steady_clock instead of
8235 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8237 * Makefile.in: Fix whitespace formatting.
8239 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8241 * Makefile.in (SFILES, OBS): Flatten list and order
8244 2016-11-23 Pedro Alves <palves@redhat.com>
8246 * event-loop.c (handle_file_event): Use warning.
8247 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8248 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8251 2016-11-23 Pedro Alves <palves@redhat.com>
8253 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8255 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8256 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8257 debug_printf and debug_flush for debug output.
8258 * server.c (handle_general_set): Likewise.
8259 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8262 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8264 * Makefile.in (.c.o): Replace rule with ...
8265 (%.o: %.c): ... this one.
8267 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8269 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8270 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8272 * configure.ac: Remove checks for the make program.
8273 * configure: Re-generate.
8275 2016-10-28 Pedro Alves <palves@redhat.com>
8277 * Makefile.in (CXX_DIALECT): Get from configure.
8278 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8279 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8280 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8281 * config.in: Regenerate.
8282 * configure: Regenerate.
8284 2016-10-27 Yao Qi <yao.qi@linaro.org>
8286 * linux-low.c (linux_supports_range_stepping): Return true if
8287 can_software_single_step return true.
8289 2016-10-27 Yao Qi <yao.qi@linaro.org>
8291 * inferiors.c (find_inferior_in_random): New function.
8292 * inferiors.h (find_inferior_in_random): Declare.
8293 * linux-low.c (linux_wait_for_event_filtered): Call
8294 find_inferior_in_random instead of find_inferior.
8296 2016-10-27 Yao Qi <yao.qi@linaro.org>
8298 * linux-low.c (linux_wait_1): If single-step breakpoints are
8299 inserted, remove them.
8301 2016-10-26 Pedro Alves <palves@redhat.com>
8303 * linux-low.c (handle_extended_wait): Link parent/child fork
8305 (linux_wait_1): Unlink them.
8306 (linux_set_resume_request): Ignore resume requests for
8307 already-resumed and unhandled fork child threads.
8308 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8309 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8311 (handle_v_requests) <vCont>: Don't call require_running.
8312 * server.h (in_queued_stop_replies): New declaration.
8314 2016-10-24 Yao Qi <yao.qi@linaro.org>
8317 * linux-aarch64-low.c (append_insns): Cast the return value to
8320 2016-10-10 Yao Qi <yao.qi@linaro.org>
8322 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8324 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8326 * target.c (target_supports_multi_process): New function, moved
8328 * target.h (target_supports_multi_process): ... here. Remove
8331 2016-10-05 Tom Tromey <tom@tromey.com>
8334 * tracepoint.c (handle_tracepoint_bkpts): Check
8335 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8337 2016-10-05 Yao Qi <yao.qi@linaro.org>
8339 * configure.srv: Update the path of arm-*.xml files.
8341 2016-10-05 Terry Guo <terry.guo@arm.com>
8342 Yao Qi <yao.qi@linaro.org>
8344 * Makefile.in: Adjust the path of rules.
8345 * configure.srv: Update the path of xml files.
8346 * regformats/arm-with-iwmmxt.dat: Regenerated.
8347 * regformats/arm-with-neon.dat: Likewise.
8348 * regformats/arm-with-vfpv2.dat: Likewise.
8349 * regformats/arm-with-vfpv3.dat Likewise.
8351 2016-09-30 Yao Qi <yao.qi@linaro.org>
8354 * target.c (target_stop_and_wait): Don't call
8355 target_continue_no_signal, use resume_stop instead.
8357 2016-09-26 Yao Qi <yao.qi@linaro.org>
8359 * linux-low.c (linux_wait_1): Call debug_exit.
8361 2016-09-23 Pedro Alves <palves@redhat.com>
8363 * Makefile.in (SFILES): Add common/new-op.c.
8364 (OBS): Add common/new-op.o.
8365 (new-op.o): New rule.
8367 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8369 * .gitinore: Ignore more files.
8371 2016-09-21 Yao Qi <yao.qi@linaro.org>
8373 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8376 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8378 * server.c (start_inferior): Call target_mourn_inferior instead of
8379 mourn_inferior; pass ptid_t argument to it.
8381 (handle_target_event): Likewise.
8382 * target.c (target_mourn_inferior): New function.
8383 * target.h (mourn_inferior): Delete macro.
8385 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8387 * linux-low.c (lwp_is_stepping): New function.
8389 2016-09-06 Carl Love <cel@us.ibm.com>
8391 * server.c (start_inferior): Fixed comment, requested comment change
8392 didn't get updated correctly. Removed reference to ptrace () call as
8393 it is only true on Linux systems.
8395 2016-09-06 Carl Love <cel@us.ibm.com>
8397 * server.c (start_inferior): Do not call
8398 function target_post_create_inferior () if the
8399 inferior process has already exited.
8401 2016-09-05 Pedro Alves <palves@redhat.com>
8403 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8404 (COMPILE.pre, CC_LD): Use CXX directly.
8405 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8406 * acinclude.m4: Don't include build-with-cxx.m4.
8407 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8408 * configure: Regenerate.
8410 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8413 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8414 call writing data to own_buf.
8416 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8418 * target.c (mywait): Call target_wait instead of
8420 (target_wait): New function.
8422 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8424 * server.c (start_inferior): New variable 'ptid'. Replace calls
8425 to the_target->resume by target_continue{,_no_signal}, depending
8427 * target.c (target_stop_and_wait): Call target_continue_no_signal
8428 instead of the_target->resume.
8429 (target_continue): New function.
8431 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8433 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8435 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8438 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8440 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8441 * linux-arm-low.c (ps_get_thread_area): Likewise.
8442 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8443 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8444 * linux-mips-low.c (ps_get_thread_area): Likewise.
8445 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8446 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8447 * linux-x86-low.c (ps_get_thread_area): Likewise.
8448 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8450 2016-08-19 Pedro Alves <palves@redhat.com>
8452 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8454 2016-08-19 Pedro Alves <palves@redhat.com>
8456 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8457 comment. Use memcpy instead of casting through unsigned long.
8459 2016-08-19 Pedro Alves <palves@redhat.com>
8461 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8462 allocating around 0x80000000.
8464 2016-08-19 Pedro Alves <palves@redhat.com>
8467 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8468 (x32-avx512-linux-ipa.o): New rules.
8469 * configure.ac (x86_64-*-linux*): New x32 check.
8470 * configure.srv (ipa_x32_linux_regobj): New.
8471 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8472 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8474 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8476 * configure: Regenerate.
8478 2016-08-09 Pedro Alves <palves@redhat.com>
8481 * Makefile.in (OBS): Add signals-state-save-restore.o.
8482 (signals-state-save-restore.o): New rule.
8483 * config.in: Regenerate.
8484 * configure: Regenerate.
8485 * linux-low.c: Include "signals-state-save-restore.h".
8486 (linux_create_inferior): Call
8487 restore_original_signals_state.
8488 * server.c: Include "dispositions-save-restore.h".
8489 (captured_main): Call save_original_signals_state.
8491 2016-08-05 Pedro Alves <palves@redhat.com>
8493 * configure: Regenerate.
8495 2016-08-04 Yao Qi <yao.qi@linaro.org>
8497 * linux-low.c (regsets_fetch_inferior_registers): Check
8498 errno is ESRCH or not.
8500 2016-08-02 Yao Qi <yao.qi@linaro.org>
8502 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8503 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8504 (thread_db_load_search): Update.
8505 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8506 td_ta_set_event and td_ta_event_getmsg.
8508 2016-07-26 Pedro Alves <palves@redhat.com>
8511 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8512 of unsigned long for 64-bit registers and use uint32_t instead of
8513 unsigned int for 32-bit registers.
8515 2016-07-26 Pedro Alves <palves@redhat.com>
8517 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8520 2016-07-21 Tom Tromey <tom@tromey.com>
8522 * configure: Rebuild.
8524 2016-07-21 Yao Qi <yao.qi@linaro.org>
8526 * mem-break.c (find_gdb_breakpoint): Cast bp to
8527 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8529 2016-07-21 Yao Qi <yao.qi@linaro.org>
8531 * server.c (handle_v_requests): Support s and S actions
8532 if target_supports_software_single_step return true.
8534 2016-07-21 Yao Qi <yao.qi@linaro.org>
8536 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8537 is resume_step, call maybe_hw_step.
8538 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8540 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8542 (proceed_one_lwp): If resume request is resume_step, install
8543 reinsert breakpoints and call maybe_hw_step.
8545 2016-07-21 Yao Qi <yao.qi@linaro.org>
8547 * linux-low.c (proceed_one_lwp): Declare.
8548 (linux_resume_one_thread): Remove local variable 'step'.
8549 Lift code enqueue signal. Call proceed_one_lwp instead of
8550 linux_resume_one_lwp.
8552 2016-07-21 Yao Qi <yao.qi@linaro.org>
8554 * linux-low.c (linux_resume_one_thread): Call
8555 enqueue_pending_signal.
8557 2016-07-21 Yao Qi <yao.qi@linaro.org>
8559 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8560 * inferiors.c (do_restore_current_thread_cleanup): New function.
8561 (make_cleanup_restore_current_thread): Likewise.
8562 * linux-low.c (install_software_single_step_breakpoints): Call
8563 make_cleanup_restore_current_thread. Switch current_thread to
8566 2016-07-21 Yao Qi <yao.qi@linaro.org>
8568 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8569 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8570 (clone_one_breakpoint): Likewise.
8571 (delete_reinsert_breakpoints): Change parameter to thread.
8573 (has_reinsert_breakpoints): Likewise.
8574 (uninsert_reinsert_breakpoints): Likewise.
8575 (reinsert_reinsert_breakpoints): Likewise.
8576 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8577 (delete_reinsert_breakpoints): Likewise.
8578 (reinsert_reinsert_breakpoints): Likewise.
8579 (uninsert_reinsert_breakpoints): Likewise.
8580 (has_reinsert_breakpoints): Likewise.
8582 2016-07-21 Yao Qi <yao.qi@linaro.org>
8584 * inferiors.c (get_thread_process): Make parameter const.
8585 * inferiors.h (get_thread_process): Update declaration.
8586 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8587 Add new parameters child_thread and parent_thread. Callers
8589 * mem-break.h (clone_all_breakpoints): Update declaration.
8591 2016-07-21 Yao Qi <yao.qi@linaro.org>
8593 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8594 <command_list, handler>: Remove.
8595 (struct gdb_breakpoint): New.
8596 (struct other_breakpoint): New.
8597 (struct reinsert_breakpoint): New.
8598 (is_gdb_breakpoint): New function.
8599 (any_persistent_commands): Update command_list if
8600 is_gdb_breakpoint returns true.
8601 (set_breakpoint): Create breakpoints according to their types.
8602 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8603 (set_gdb_breakpoint_1): Likewise.
8604 (set_gdb_breakpoint): Likewise.
8605 (clear_breakpoint_conditions): Change parameter type to
8606 'struct gdb_breakpoint *'.
8607 (clear_breakpoint_commands): Likewise.
8608 (clear_breakpoint_conditions_and_commands): Likewise.
8609 (add_condition_to_breakpoint): Likewise.
8610 (add_breakpoint_condition): Likewise.
8611 (add_commands_to_breakpoint): Likewise.
8612 (check_breakpoints): Check other_breakpoint.
8613 (clone_one_breakpoint): Clone breakpopint according to its type.
8614 * mem-break.h (struct gdb_breakpoint): Declare.
8615 (set_gdb_breakpoint): Update declaration.
8616 (clear_breakpoint_conditions_and_commands): Likewise.
8617 (add_breakpoint_condition): Likewise.
8618 (add_breakpoint_commands): Likewise.
8619 * server.c (process_point_options): Change parameter type to
8620 'struct gdb_breakpoint *'.
8622 2016-07-21 Yao Qi <yao.qi@linaro.org>
8624 * mem-break.c (set_breakpoint_at): Rename it to ...
8625 (set_breakpoint_type_at): ... it.
8626 (set_breakpoint_at): Call set_breakpoint_type_at.
8627 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8628 * mem-break.h (set_breakpoint_at): Update comments.
8630 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8632 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8634 (nios2_store_gregset): Likewise.
8636 2016-07-01 Pedro Alves <palves@redhat.com>
8637 Antoine Tremblay <antoine.tremblay@ericsson.com>
8639 * linux-low.c: Change interface to take the target lwp_info
8640 pointer directly and return void. Handle detaching from a zombie
8642 (linux_detach_lwp_callback): New function.
8643 (linux_detach): Detach from the leader thread after detaching from
8646 2016-06-28 Yao Qi <yao.qi@linaro.org>
8648 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8649 for variable new_offset.
8650 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8651 (aarch64_ftrace_insn_reloc_cb): Likewise.
8652 (aarch64_ftrace_insn_reloc_tb): Likewise.
8653 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8654 PRIx64 instead of PRIx32.
8656 2016-06-28 Yao Qi <yao.qi@linaro.org>
8658 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8659 (the_low_target): Install arm_get_syscall_trapinfo.
8661 2016-06-28 Yao Qi <yao.qi@linaro.org>
8663 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8665 (the_low_target): Install aarch64_get_syscall_trapinfo.
8667 2016-06-28 Yao Qi <yao.qi@linaro.org>
8669 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8671 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8672 Remove parameter sysno.
8673 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8676 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8678 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8679 (s390_emit_ne_goto): Likewise.
8680 (s390_emit_lt_goto): Likewise.
8681 (s390_emit_le_goto): Likewise.
8682 (s390_emit_gt_goto): Likewise.
8683 (s390_emit_ge_goto): Likewise.
8684 (s390x_emit_eq_goto): Likewise.
8685 (s390x_emit_ne_goto): Likewise.
8686 (s390x_emit_lt_goto): Likewise.
8687 (s390x_emit_le_goto): Likewise.
8688 (s390x_emit_gt_goto): Likewise.
8689 (s390x_emit_ge_goto): Likewise.
8690 (s390_emit_ops_impl): Mark variable static.
8691 (s390x_emit_ops): Likewise.
8693 2016-06-17 Yao Qi <yao.qi@linaro.org>
8695 * linux-low.c (handle_extended_wait): Call
8696 uninsert_reinsert_breakpoints for the parent process. Remove
8697 reinsert breakpoints from the child process. Reinsert them to
8698 the parent process when vfork is done.
8699 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8700 (reinsert_reinsert_breakpoints): New function.
8701 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8702 (reinsert_reinsert_breakpoints): Declare.
8704 2016-06-17 Yao Qi <yao.qi@linaro.org>
8706 * linux-low.c (handle_extended_wait): If the parent is doing
8707 step-over, remove the reinsert breakpoints from the forked child.
8709 2016-06-17 Yao Qi <yao.qi@linaro.org>
8711 * linux-low.c (unsuspend_all_lwps): Declare.
8712 (linux_low_filter_event): If thread exited, call finish_step_over.
8713 If step-over is finished, unsuspend other threads.
8715 2016-06-17 Yao Qi <yao.qi@linaro.org>
8717 * linux-low.c (linux_resume_one_lwp_throw): Assert
8718 has_reinsert_breakpoints returns false.
8719 * mem-break.c (delete_disabled_breakpoints): Assert
8720 bp type isn't reinsert_breakpoint.
8722 2016-06-17 Yao Qi <yao.qi@linaro.org>
8724 * linux-low.c (maybe_hw_step): New function.
8725 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8726 (finish_step_over): Switch current_thread to lwp temporarily,
8727 and assert has_reinsert_breakpoints returns true.
8728 (proceed_one_lwp): Call maybe_hw_step.
8729 * mem-break.c (has_reinsert_breakpoints): New function.
8730 * mem-break.h (has_reinsert_breakpoints): Declare.
8732 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8734 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8736 2016-05-17 Yao Qi <yao.qi@linaro.org>
8738 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8739 instead of find_inferior.
8741 2016-05-05 Yao Qi <yao.qi@linaro.org>
8743 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8744 Initialize res to zero.
8746 2016-05-05 Yao Qi <yao.qi@linaro.org>
8748 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8751 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8753 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8754 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8755 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8757 2016-04-28 Par Olsson <par.olsson@windriver.com>
8758 Simon Marchi <simon.marchi@ericsson.com>
8760 * tracepoint.c (write_inferior_int8): New function.
8761 (cmd_qtenable_disable): Write enable flag using
8762 write_inferior_int8.
8764 2016-04-25 Yao Qi <yao.qi@linaro.org>
8766 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8767 (need_step_over_p): Return zero if the LWP has pending signals
8768 can be delivered on software single step target.
8770 2016-04-25 Yao Qi <yao.qi@linaro.org>
8772 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8773 return instead of error.
8775 2016-04-22 Yao Qi <yao.qi@linaro.org>
8777 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8780 2016-04-22 Yao Qi <yao.qi@linaro.org>
8782 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8783 signal when stepping over breakpoint with software single
8786 2016-04-21 Pedro Alves <palves@redhat.com>
8788 * linux-s390-low.c (s390_collect_ptrace_register)
8789 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8791 (s390_check_regset): Use void * instead of gdb_byte *.
8793 2016-04-20 Pedro Alves <palves@redhat.com>
8795 * configure: Renegerate.
8797 2016-04-20 Yao Qi <yao.qi@linaro.org>
8799 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8800 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8802 (arm_store_gregset): Likewise.
8804 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8806 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8807 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8808 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8809 (amd64-avx-mpx-linux.c): New rules.
8810 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8811 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8812 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8813 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8814 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8815 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8816 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8817 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8818 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8819 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8820 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8821 * linux-x86-low.c (x86_linux_read_description): Add case for
8822 X86_XSTATE_AVX_MPX_MASK.
8823 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8824 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8825 init_registers_i386_avx_mpx_linux.
8826 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8827 (initialize_low_tracepoint): Call
8828 init_registers_i386_avx_mpx_linux.
8829 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8830 (initialize_low_tracepoint): Call
8831 init_registers_amd64_avx_mpx_linux.
8832 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8833 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8834 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8837 2016-04-18 Pedro Alves <palves@redhat.com>
8839 * configure: Regenerate.
8841 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8843 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8844 (aarch64_emit_sub): Likewise.
8846 2016-04-12 Pedro Alves <palves@redhat.com>
8848 * utils.c (prepare_to_throw_exception): Delete.
8850 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8852 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8854 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8856 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8858 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8860 * linux-aarch64-ipa.c: Add <elf.h> include.
8861 * linux-ppc-ipa.c: Add <elf.h> include.
8862 * linux-s390-ipa.c: Add <elf.h> include.
8864 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8866 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8867 (get_raw_reg_ptr): Likewise.
8868 (get_trace_state_variable_value_ptr): Likewise.
8869 (set_trace_state_variable_value_ptr): Likewise.
8870 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8873 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8874 Marcin Kościelnicki <koriakin@0x04.net>
8877 * linux-ppc-low.c (emit_insns): New function.
8878 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8879 (ppc_emit_prologue): New function.
8880 (ppc_emit_epilogue): New function.
8881 (ppc_emit_add): New function.
8882 (ppc_emit_sub): New function.
8883 (ppc_emit_mul): New function.
8884 (ppc_emit_lsh): New function.
8885 (ppc_emit_rsh_signed): New function.
8886 (ppc_emit_rsh_unsigned): New function.
8887 (ppc_emit_ext): New function.
8888 (ppc_emit_zero_ext): New function.
8889 (ppc_emit_log_not): New function.
8890 (ppc_emit_bit_and): New function.
8891 (ppc_emit_bit_or): New function.
8892 (ppc_emit_bit_xor): New function.
8893 (ppc_emit_bit_not): New function.
8894 (ppc_emit_equal): New function.
8895 (ppc_emit_less_signed): New function.
8896 (ppc_emit_less_unsigned): New function.
8897 (ppc_emit_ref): New function.
8898 (ppc_emit_const): New function.
8899 (ppc_emit_reg): New function.
8900 (ppc_emit_pop): New function.
8901 (ppc_emit_stack_flush): New function.
8902 (ppc_emit_swap): New function.
8903 (ppc_emit_stack_adjust): New function.
8904 (ppc_emit_call): New function.
8905 (ppc_emit_int_call_1): New function.
8906 (ppc_emit_void_call_2): New function.
8907 (ppc_emit_if_goto): New function.
8908 (ppc_emit_goto): New function.
8909 (ppc_emit_eq_goto): New function.
8910 (ppc_emit_ne_goto): New function.
8911 (ppc_emit_lt_goto): New function.
8912 (ppc_emit_le_goto): New function.
8913 (ppc_emit_gt_goto): New function.
8914 (ppc_emit_ge_goto): New function.
8915 (ppc_write_goto_address): New function.
8916 (ppc_emit_ops_impl): New static variable.
8917 (ppc64v1_emit_prologue): New function.
8918 (ppc64v2_emit_prologue): New function.
8919 (ppc64_emit_epilogue): New function.
8920 (ppc64_emit_add): New function.
8921 (ppc64_emit_sub): New function.
8922 (ppc64_emit_mul): New function.
8923 (ppc64_emit_lsh): New function.
8924 (ppc64_emit_rsh_signed): New function.
8925 (ppc64_emit_rsh_unsigned): New function.
8926 (ppc64_emit_ext): New function.
8927 (ppc64_emit_zero_ext): New function.
8928 (ppc64_emit_log_not): New function.
8929 (ppc64_emit_bit_and): New function.
8930 (ppc64_emit_bit_or): New function.
8931 (ppc64_emit_bit_xor): New function.
8932 (ppc64_emit_bit_not): New function.
8933 (ppc64_emit_equal): New function.
8934 (ppc64_emit_less_signed): New function.
8935 (ppc64_emit_less_unsigned): New function.
8936 (ppc64_emit_ref): New function.
8937 (ppc64_emit_const): New function.
8938 (ppc64v1_emit_reg): New function.
8939 (ppc64v2_emit_reg): New function.
8940 (ppc64_emit_pop): New function.
8941 (ppc64_emit_stack_flush): New function.
8942 (ppc64_emit_swap): New function.
8943 (ppc64v1_emit_call): New function.
8944 (ppc64v2_emit_call): New function.
8945 (ppc64v1_emit_int_call_1): New function.
8946 (ppc64v2_emit_int_call_1): New function.
8947 (ppc64v1_emit_void_call_2): New function.
8948 (ppc64v2_emit_void_call_2): New function.
8949 (ppc64_emit_if_goto): New function.
8950 (ppc64_emit_eq_goto): New function.
8951 (ppc64_emit_ne_goto): New function.
8952 (ppc64_emit_lt_goto): New function.
8953 (ppc64_emit_le_goto): New function.
8954 (ppc64_emit_gt_goto): New function.
8955 (ppc64_emit_ge_goto): New function.
8956 (ppc64v1_emit_ops_impl): New static variable.
8957 (ppc64v2_emit_ops_impl): New static variable.
8958 (ppc_emit_ops): New function.
8959 (linux_low_target): Wire in ppc_emit_ops.
8961 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8962 Marcin Kościelnicki <koriakin@0x04.net>
8965 * Makefile.in: Add powerpc-*-ipa.o
8966 * configure.srv: Add ipa_obj for powerpc*-linux.
8967 * linux-ppc-ipa.c: New file.
8968 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8970 (PPC_FIELD): New macro.
8971 (PPC_SEXT): New macro.
8972 (PPC_OP6): New macro.
8973 (PPC_BO): New macro.
8974 (PPC_LI): New macro.
8975 (PPC_BD): New macro.
8976 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8977 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8978 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8979 (ppc_get_thread_area): New function.
8980 (is_elfv2_inferior): New function.
8981 (gen_ds_form): New function.
8982 (GEN_STD): New macro.
8983 (GEN_STDU): New macro.
8984 (GEN_LD): New macro.
8985 (GEN_LDU): New macro.
8986 (gen_d_form): New function.
8987 (GEN_ADDI): New macro.
8988 (GEN_ADDIS): New macro.
8989 (GEN_LI): New macro.
8990 (GEN_LIS): New macro.
8991 (GEN_ORI): New macro.
8992 (GEN_ORIS): New macro.
8993 (GEN_LWZ): New macro.
8994 (GEN_STW): New macro.
8995 (GEN_STWU): New macro.
8996 (gen_xfx_form): New function.
8997 (GEN_MFSPR): New macro.
8998 (GEN_MTSPR): New macro.
8999 (GEN_MFCR): New macro.
9000 (GEN_MTCR): New macro.
9001 (GEN_SYNC): New macro.
9002 (GEN_LWSYNC): New macro.
9003 (gen_x_form): New function.
9004 (GEN_OR): New macro.
9005 (GEN_MR): New macro.
9006 (GEN_LWARX): New macro.
9007 (GEN_STWCX): New macro.
9008 (GEN_CMPW): New macro.
9009 (gen_md_form): New function.
9010 (GEN_RLDICL): New macro.
9011 (GEN_RLDICR): New macro.
9012 (gen_i_form): New function.
9014 (GEN_BL): New macro.
9015 (gen_b_form): New function.
9016 (GEN_BNE): New macro.
9017 (GEN_LOAD): New macro.
9018 (GEN_STORE): New macro.
9019 (gen_limm): New function.
9020 (gen_atomic_xchg): New function.
9021 (gen_call): New function.
9022 (ppc_relocate_instruction): New function.
9023 (ppc_install_fast_tracepoint_jump_pad): New function.
9024 (ppc_get_min_fast_tracepoint_insn_len): New function.
9025 (ppc_get_ipa_tdesc_idx): New function.
9026 (the_low_target): Wire in the new functions.
9027 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9029 * linux-ppc-tdesc.h: New file.
9031 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9033 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9034 (alloc_jump_pad_buffer): New function.
9035 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9036 (alloc_jump_pad_buffer): New function.
9037 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9038 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9039 (alloc_jump_pad_buffer): New function.
9040 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9041 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9042 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9043 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9045 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9047 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9048 * linux-amd64-ipa.c: Likewise.
9049 * linux-i386-ipa.c: Likewise.
9050 * linux-s390-ipa.c: Likewise.
9051 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9052 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9053 set_trace_state_variable_value_ptr.
9054 (struct ipa_sym_addresses): Likewise.
9055 (symbol_list): Likewise.
9056 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9057 accessing gdb_collect directly.
9058 (gdb_collect_ptr_type): New typedef.
9059 (get_raw_reg_ptr_type): New typedef.
9060 (get_trace_state_variable_value_ptr_type): New typedef.
9061 (set_trace_state_variable_value_ptr_type): New typedef.
9062 (gdb_collect_ptr): New global.
9063 (get_raw_reg_ptr): New global.
9064 (get_trace_state_variable_value_ptr): New global.
9065 (set_trace_state_variable_value_ptr): New global.
9066 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9067 accessing get_raw_reg directly.
9068 (get_get_tsv_func_addr): Likewise for
9069 get_trace_state_variable_value_ptr.
9070 (get_set_tsv_func_addr): Likewise for
9071 set_trace_state_variable_value_ptr.
9072 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9074 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9076 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9078 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9080 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9082 (relocate_instruction): Remove own_buf.
9083 * server.c (own_buf): Make global.
9084 (handle_v_requests): Make global.
9085 * server.h (own_buf): New declaration.
9086 (handle_v_requests): New prototype.
9088 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9091 * linux-s390-low.c (add_insns): New function.
9092 (s390_emit_prologue): New function.
9093 (s390_emit_epilogue): New function.
9094 (s390_emit_add): New function.
9095 (s390_emit_sub): New function.
9096 (s390_emit_mul): New function.
9097 (s390_emit_lsh): New function.
9098 (s390_emit_rsh_signed): New function.
9099 (s390_emit_rsh_unsigned): New function.
9100 (s390_emit_ext): New function.
9101 (s390_emit_log_not): New function.
9102 (s390_emit_bit_and): New function.
9103 (s390_emit_bit_or): New function.
9104 (s390_emit_bit_xor): New function.
9105 (s390_emit_bit_not): New function.
9106 (s390_emit_equal): New function.
9107 (s390_emit_less_signed): New function.
9108 (s390_emit_less_unsigned): New function.
9109 (s390_emit_ref): New function.
9110 (s390_emit_if_goto): New function.
9111 (s390_emit_goto): New function.
9112 (s390_write_goto_address): New function.
9113 (s390_emit_litpool): New function.
9114 (s390_emit_const): New function.
9115 (s390_emit_call): New function.
9116 (s390_emit_reg): New function.
9117 (s390_emit_pop): New function.
9118 (s390_emit_stack_flush): New function.
9119 (s390_emit_zero_ext): New function.
9120 (s390_emit_swap): New function.
9121 (s390_emit_stack_adjust): New function.
9122 (s390_emit_set_r2): New function.
9123 (s390_emit_int_call_1): New function.
9124 (s390_emit_void_call_2): New function.
9125 (s390_emit_eq_goto): New function.
9126 (s390_emit_ne_goto): New function.
9127 (s390_emit_lt_goto): New function.
9128 (s390_emit_le_goto): New function.
9129 (s390_emit_gt_goto): New function.
9130 (s390_emit_ge_goto): New function.
9131 (s390x_emit_prologue): New function.
9132 (s390x_emit_epilogue): New function.
9133 (s390x_emit_add): New function.
9134 (s390x_emit_sub): New function.
9135 (s390x_emit_mul): New function.
9136 (s390x_emit_lsh): New function.
9137 (s390x_emit_rsh_signed): New function.
9138 (s390x_emit_rsh_unsigned): New function.
9139 (s390x_emit_ext): New function.
9140 (s390x_emit_log_not): New function.
9141 (s390x_emit_bit_and): New function.
9142 (s390x_emit_bit_or): New function.
9143 (s390x_emit_bit_xor): New function.
9144 (s390x_emit_bit_not): New function.
9145 (s390x_emit_equal): New function.
9146 (s390x_emit_less_signed): New function.
9147 (s390x_emit_less_unsigned): New function.
9148 (s390x_emit_ref): New function.
9149 (s390x_emit_if_goto): New function.
9150 (s390x_emit_const): New function.
9151 (s390x_emit_call): New function.
9152 (s390x_emit_reg): New function.
9153 (s390x_emit_pop): New function.
9154 (s390x_emit_stack_flush): New function.
9155 (s390x_emit_zero_ext): New function.
9156 (s390x_emit_swap): New function.
9157 (s390x_emit_stack_adjust): New function.
9158 (s390x_emit_int_call_1): New function.
9159 (s390x_emit_void_call_2): New function.
9160 (s390x_emit_eq_goto): New function.
9161 (s390x_emit_ne_goto): New function.
9162 (s390x_emit_lt_goto): New function.
9163 (s390x_emit_le_goto): New function.
9164 (s390x_emit_gt_goto): New function.
9165 (s390x_emit_ge_goto): New function.
9166 (s390_emit_ops): New function.
9167 (struct linux_target_ops): Fill in emit_ops hook.
9169 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9172 * Makefile.in: Add s390 IPA files.
9173 * configure.srv: Build IPA for s390.
9174 * linux-s390-ipa.c: New file.
9175 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9176 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9177 (tdesc_s390_linux32): Likewise.
9178 (init_registers_s390_linux32v1): Likewise.
9179 (tdesc_s390_linux32v1): Likewise.
9180 (init_registers_s390_linux32v2): Likewise.
9181 (tdesc_s390_linux32v2): Likewise.
9182 (init_registers_s390_linux64): Likewise.
9183 (tdesc_s390_linux64): Likewise.
9184 (init_registers_s390_linux64v1): Likewise.
9185 (tdesc_s390_linux64v1): Likewise.
9186 (init_registers_s390_linux64v2): Likewise.
9187 (tdesc_s390_linux64v2): Likewise.
9188 (init_registers_s390_te_linux64): Likewise.
9189 (tdesc_s390_te_linux64): Likewise.
9190 (init_registers_s390_vx_linux64): Likewise.
9191 (tdesc_s390_vx_linux64): Likewise.
9192 (init_registers_s390_tevx_linux64): Likewise.
9193 (tdesc_s390_tevx_linux64): Likewise.
9194 (init_registers_s390x_linux64): Likewise.
9195 (tdesc_s390x_linux64): Likewise.
9196 (init_registers_s390x_linux64v1): Likewise.
9197 (tdesc_s390x_linux64v1): Likewise.
9198 (init_registers_s390x_linux64v2): Likewise.
9199 (tdesc_s390x_linux64v2): Likewise.
9200 (init_registers_s390x_te_linux64): Likewise.
9201 (tdesc_s390x_te_linux64): Likewise.
9202 (init_registers_s390x_vx_linux64): Likewise.
9203 (tdesc_s390x_vx_linux64): Likewise.
9204 (init_registers_s390x_tevx_linux64): Likewise.
9205 (tdesc_s390x_tevx_linux64): Likewise.
9206 (have_hwcap_s390_vx): New static variable.
9207 (s390_arch_setup): Fill have_hwcap_s390_vx.
9208 (s390_get_thread_area): New function.
9209 (s390_ft_entry_gpr_esa): New const.
9210 (s390_ft_entry_gpr_zarch): New const.
9211 (s390_ft_entry_misc): New const.
9212 (s390_ft_entry_fr): New const.
9213 (s390_ft_entry_vr): New const.
9214 (s390_ft_main_31): New const.
9215 (s390_ft_main_64): New const.
9216 (s390_ft_exit_fr): New const.
9217 (s390_ft_exit_vr): New const.
9218 (s390_ft_exit_misc): New const.
9219 (s390_ft_exit_gpr_esa): New const.
9220 (s390_ft_exit_gpr_zarch): New const.
9221 (append_insns): New function.
9222 (s390_relocate_instruction): New function.
9223 (s390_install_fast_tracepoint_jump_pad): New function.
9224 (s390_get_min_fast_tracepoint_insn_len): New function.
9225 (s390_get_ipa_tdesc_idx): New function.
9226 (struct linux_target_ops): Wire in the above functions.
9227 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9228 * linux-s390-tdesc.h: New file.
9230 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9232 * linux-s390-low.c (s390_supports_tracepoints): New function.
9233 (struct linux_target_ops): Fill supports_tracepoints hook.
9235 2016-03-18 Yao Qi <yao.qi@linaro.org>
9237 * linux-low.c (lwp_signal_can_be_delivered): New function.
9238 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9240 2016-03-18 Yao Qi <yao.qi@linaro.org>
9242 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9243 0 if signal is enqueued. Remove 'signal' from one debugging
9244 message. Move one debugging message to some lines below.
9245 Remove code setting 'signal' to 0.
9247 2016-03-18 Yao Qi <yao.qi@linaro.org>
9249 * linux-low.c (linux_low_filter_event): Remove redundant
9250 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9252 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9254 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9255 (struct linux_target_ops): Wire in the above.
9257 2016-03-03 Yao Qi <yao.qi@linaro.org>
9259 * linux-low.c: Update comments to start_step_over.
9261 2016-03-03 Yao Qi <yao.qi@linaro.org>
9264 * linux-low.c (handle_extended_wait): Set child suspended
9265 if event_lwp->bp_reinsert isn't zero.
9267 2016-03-02 Yao Qi <yao.qi@linaro.org>
9269 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9270 enqueue_pending_signal.
9272 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9274 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9277 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9279 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9280 (s390_regmap_3264) [!__s390x__]: New global.
9281 (s390_collect_ptrace_register): Skip map entries containing -1.
9282 (s390_supply_ptrace_register): Ditto.
9283 (s390_fill_gprs_high): New function.
9284 (s390_store_gprs_high): New function.
9285 (s390_regsets): Add NT_S390_HIGH_GPRS.
9286 (s390_get_hwcap): Enable on 31-bit.
9287 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9288 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9289 Detect NT_S390_HIGH_GPRS.
9290 (s390_usrregs_info_3264): Enable on 31-bit.
9291 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9292 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9294 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9297 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9298 * configure.srv: Ditto.
9299 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9300 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9301 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9302 (init_registers_amd64_linux): Remove prototype.
9303 (tdesc_amd64_linux): Remove declaration.
9304 (get_ipa_tdesc): New function.
9305 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9306 initialize remaining tdescs.
9307 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9308 (init_registers_i386_linux): Remove prototype.
9309 (tdesc_i386_linux): Remove declaration.
9310 (get_ipa_tdesc): New function.
9311 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9312 initialize remaining tdescs.
9313 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9314 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9315 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9316 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9317 (x86_get_ipa_tdesc_idx): New function.
9318 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9319 * linux-x86-tdesc.h: New file.
9320 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9321 (target_get_ipa_tdesc_idx): New macro.
9322 * tracepoint.c (ipa_tdesc_idx): New macro.
9323 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9324 (symbol_list): Add ipa_tdesc_idx.
9325 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9326 (ipa_tdesc): Remove.
9327 (ipa_tdesc_idx): New variable.
9328 (get_context_regcache): Use get_ipa_tdesc.
9329 (gdb_collect): Ditto.
9331 * tracepoint.h (get_ipa_tdesc): New prototype.
9332 (ipa_tdesc): Remove.
9334 2016-02-24 Pedro Alves <palves@redhat.com>
9336 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9337 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9338 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9339 Factor out common code between the USE_SIGTRAP_SIGINFO and
9340 !USE_SIGTRAP_SIGINFO blocks.
9341 (linux_low_filter_event): Call save_stop_reason instead of
9342 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9344 (linux_wait_1): Update comments.
9346 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9348 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9349 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9350 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9351 ppc_insert_point, ppc_remove_point.
9353 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9355 * linux-s390-low.c (s390_supports_z_point_type): New function.
9356 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9358 2016-02-16 Yao Qi <yao.qi@linaro.org>
9360 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9361 PC. Get pc from regcache_read_pc.
9363 2016-02-12 Yao Qi <yao.qi@linaro.org>
9365 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9366 or linux_get_pc_32bit.
9367 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9369 2016-02-12 Yao Qi <yao.qi@linaro.org>
9371 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9372 arm_linux_get_next_pcs_fixup.
9374 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9376 * tracepoint.c (x_tracepoint_action_download): Change
9377 write_inferior_data_ptr to write_inferior_data_pointer.
9378 (cmd_qtstart): Likewise.
9379 (write_inferior_data_ptr): Remove.
9380 (download_agent_expr): Change write_inferior_data_ptr to
9381 write_inferior_data_pointer.
9382 (download_tracepoint_1): Likewise.
9383 (download_tracepoint): Likewise.
9384 (download_trace_state_variables): Likewise.
9386 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9387 Marcin Kościelnicki <koriakin@0x04.net>
9389 * tracepoint.c (struct tracepoint_action_ops): Remove.
9390 (struct tracepoint_action): Remove ops.
9391 (m_tracepoint_action_download, r_tracepoint_action_download)
9392 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9393 size and offset accordingly.
9394 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9395 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9396 (tracepoint_action_send, tracepoint_action_download): New functions.
9397 Helpers for trace action handlers.
9398 (add_tracepoint_action): Remove setup actions ops.
9399 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9401 2016-02-10 Yao Qi <yao.qi@linaro.org>
9403 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9405 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9407 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9409 * configure: Regenerate.
9411 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9413 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9414 void * to gdb_byte *.
9415 * linux-low.c (siginfo_fixup): Likewise.
9416 (linux_xfer_siginfo): Likewise.
9417 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9419 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9421 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9423 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9425 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9427 * linux-x86-low.c [__x86_64__]: Include
9428 "nat/amd64-linux-siginfo.h".
9429 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9430 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9431 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9432 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9433 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9434 (cpt_si_fd, si_timerid, si_overrun): Move from
9435 nat/amd64-linux-siginfo.c.
9436 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9438 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9440 * server.c (skip_to_semicolon): Remove.
9441 (process_point_options): Use strchrnul instead of
9444 2016-01-26 Yao Qi <yao.qi@linaro.org>
9446 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9447 * linux-low.c (install_software_single_step_breakpoints): Don't
9448 call regcache_read_pc.
9449 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9452 2016-01-26 Yao Qi <yao.qi@linaro.org>
9454 * linux-low.c (install_software_single_step_breakpoints): Call
9455 regcache_read_pc instead of get_pc.
9457 2016-01-26 Yao Qi <yao.qi@linaro.org>
9459 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9460 (unblock_async_io): Rename to ...
9461 (block_unblock_async_io): ... it. New function.
9462 (enable_async_io): Don't install SIGIO handler. Unblock it
9464 (disable_async_io): Don't ignore SIGIO. Block it instead.
9465 (initialize_async_io): Install SIGIO handler. Don't call
9468 2016-01-26 Yao Qi <yao.qi@linaro.org>
9470 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9471 first character is '\003', call *the_target->request_interrupt.
9473 2016-01-25 Yao Qi <yao.qi@linaro.org>
9475 * remote-utils.c (new_thread_notify): Remove.
9476 (dead_thread_notify): Likewise.
9477 * remote-utils.h (new_thread_notify): Remove declaration.
9478 (dead_thread_notify): Likewise.
9480 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9482 * gdb.trace/pending.exp: Fix expected message on continue.
9484 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9486 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9487 it works properly on big-endian machines where sizeof (CORE_ADDR)
9490 2016-01-21 Pedro Alves <palves@redhat.com>
9492 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9493 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9494 * configure: Regenerate.
9496 2016-01-21 Yao Qi <yao.qi@linaro.org>
9498 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9499 is_thumb and set it according to CPSR saved on the stack.
9500 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9501 arm_sigreturn_next_pc.
9503 2016-01-18 Yao Qi <yao.qi@linaro.org>
9505 * linux-low.c (linux_set_pc_64bit): New function.
9506 (linux_get_pc_64bit): New function.
9507 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9509 * linux-sparc-low.c (debug_threads): Remove declaration.
9510 (sparc_get_pc): Remove.
9511 (the_low_target): Use linux_get_pc_64bit instead of
9513 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9514 (the_low_target): Use linux_get_pc_64bit and
9517 2016-01-18 Yao Qi <yao.qi@linaro.org>
9519 * linux-arm-low.c (debug_threads): Remove declaration.
9520 (arm_get_pc, arm_set_pc): Remove.
9521 (the_low_target): Use linux_get_pc_32bit and
9523 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9524 (the_low_target): Use linux_get_pc_32bit and
9526 * linux-cris-low.c (debug_threads): Remove declaration.
9527 (cris_get_pc, cris_set_pc,): Remove.
9528 (the_low_target): Use linux_get_pc_32bit and
9530 * linux-crisv32-low.c (debug_threads): Remove declaration.
9531 (cris_get_pc, cris_set_pc): Remove.
9532 (the_low_target): Use linux_get_pc_32bit and
9534 * linux-low.c: Include inttypes.h.
9535 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9536 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9537 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9538 (the_low_target): Use linux_get_pc_32bit and
9540 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9541 (the_low_target): Use linux_get_pc_32bit and
9543 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9544 (the_low_target): Use linux_get_pc_32bit and
9546 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9547 (the_low_target): Use linux_get_pc_32bit and
9549 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9550 (the_low_target): Use linux_get_pc_32bit and
9553 2016-01-18 Gary Benson <gbenson@redhat.com>
9555 * configure.ac (AC_FUNC_FORK): New check.
9556 * config.in: Regenerate.
9557 * configure: Likewise.
9559 2016-01-14 Yao Qi <yao.qi@linaro.org>
9561 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9562 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9563 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9564 arm_get_next_pcs_ctor.
9566 2016-01-12 Josh Stone <jistone@redhat.com>
9567 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9569 * inferiors.h: Include "gdb_vecs.h".
9570 (struct process_info): Add syscalls_to_catch.
9571 * inferiors.c (remove_process): Free syscalls_to_catch.
9572 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9573 syscall_return stops.
9574 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9575 * server.c (handle_general_set): Handle QCatchSyscalls.
9576 (handle_query): Report support for QCatchSyscalls.
9577 * target.h (struct target_ops): Add supports_catch_syscall.
9578 (target_supports_catch_syscall): New macro.
9579 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9580 (struct lwp_info): Add syscall_state.
9581 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9582 Maintain syscall_state and syscalls_to_catch across exec.
9583 (get_syscall_trapinfo): New function, proxy to the_low_target.
9584 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9585 (linux_low_filter_event): Toggle syscall_state entry/return for
9586 syscall traps, and set it ignored for all others.
9587 (gdb_catching_syscalls_p): New function.
9588 (gdb_catch_this_syscall_p): New function.
9589 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9590 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9591 (linux_supports_catch_syscall): New function.
9592 (linux_target_ops): Install it.
9593 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9594 (the_low_target): Install it.
9596 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9598 * acinclude.m4: Include new ../warning.m4 file.
9599 * configure: Regenerated.
9600 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9602 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9604 * ax.c (is_goto_target): Mark static.
9605 * linux-low.c (register_addr): Likewise.
9606 (linux_fetch_registers, linux_store_registers): Likewise.
9607 * mem-break.c (any_persistent_commands): Fix old prototype.
9608 (add_commands_to_breakpoint): Mark static.
9609 * regcache.c (find_register_by_name): Delete unused func.
9610 * remote-utils.c (hex_or_minus_one): Mark static.
9611 * server.c (monitor_show_help): Mark static.
9612 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9613 handle_v_requests): Likewise.
9615 2016-01-12 Pedro Alves <palves@redhat.com>
9617 Remove use of the registered trademark symbol throughout.
9619 2016-01-08 Yao Qi <yao.qi@linaro.org>
9621 * remote-utils.c (getpkt): If c is '\003', call target hook
9624 2016-01-06 Yao Qi <yao.qi@linaro.org>
9626 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9627 linux-aarch32-low.c.
9628 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9629 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9630 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9631 (thumb2_breakpoint): Declare.
9632 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9633 linux-aarch32-low.h.
9634 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9635 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9636 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9638 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9640 * gdbreplay.c (gdbreplay_version): Change copyright year in
9642 * server.c (gdbserver_version): Likewise.
9644 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9646 * server.c (crc32_table): Delete.
9647 (crc32): Use libiberty's xcrc32 function.
9649 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9651 * lynx-low.c (lynx_delete_thread_callback): New function.
9652 (lynx_mourn): Properly delete our process and all of its
9653 threads. Remove call to clear_inferiors.
9655 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9657 * target.c (thread_search_callback): Add check that
9658 the thread_stopped target callback is not NULL before
9661 2015-12-21 Yao Qi <yao.qi@linaro.org>
9663 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9666 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9668 * server.c (handle_query): Call target_supports_software_single_step.
9670 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9672 * linux-low.c (single_step): New function.
9673 (linux_resume_one_lwp_throw): Call single_step.
9674 (start_step_over): Likewise.
9676 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9678 * Makefile.in (SFILES): Append arch/arm-linux.c,
9679 arch/arm-get-next-pcs.c.
9680 (arm-linux.o): New rule.
9681 (arm-get-next-pcs.o): New rule.
9682 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9684 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9685 to linux-aarch32-low.c.
9686 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9687 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9688 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9689 (thumb2_breakpoint_len): Likewise.
9690 (arm_is_thumb_mode): Make non-static.
9691 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9692 from linux-aarch32-low.c.
9693 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9694 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9695 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9696 (thumb2_breakpoint_len): Likewise.
9697 (arm_is_thumb_mode): New declaration.
9698 * linux-arm-low.c: Include arch/arm-linux.h
9699 aarch/arm-get-next-pcs.h, sys/syscall.h.
9700 (get_next_pcs_ops): New struct.
9701 (get_next_pcs_addr_bits_remove): New function.
9702 (get_next_pcs_is_thumb): New function.
9703 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9704 (arm_sigreturn_next_pc): Likewise.
9705 (get_next_pcs_syscall_next_pc): Likewise.
9706 (arm_gdbserver_get_next_pcs): Likewise.
9707 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9709 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9710 * server.h: Include gdb_vecs.h.
9712 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9714 * Makefile.in (SFILES): Append common/common-regcache.c.
9715 (OBS): Append common-regcache.o.
9716 (common-regcache.o): New rule.
9717 * regcache.c (init_register_cache): Initialize cache to
9719 (regcache_raw_read_unsigned): New function.
9720 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9721 register_status enum.
9723 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9725 * linux-aarch64-low.c (the_low_targets): Rename
9726 breakpoint_reinsert_addr to get_next_pcs.
9727 * linux-arm-low.c (the_low_targets): Likewise.
9728 * linux-bfin-low.c (the_low_targets): Likewise.
9729 * linux-cris-low.c (the_low_targets): Likewise.
9730 * linux-crisv32-low.c (the_low_targets): Likewise.
9731 * linux-low.c (can_software_single_step): Likewise.
9732 (install_software_single_step_breakpoints): New function.
9733 (start_step_over): Use install_software_single_step_breakpoints.
9734 * linux-low.h: New CORE_ADDR vector.
9735 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9737 * linux-mips-low.c (the_low_targets): Likewise.
9738 * linux-nios2-low.c (the_low_targets): Likewise.
9739 * linux-sparc-low.c (the_low_targets): Likewise.
9741 2015-12-17 Pedro Alves <palves@redhat.com>
9743 * linux-low.c (linux_kill_one_lwp): Remove references to
9745 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9747 (linux_init_signals): Delete.
9748 (initialize_low): Adjust.
9749 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9751 2015-12-16 Pedro Alves <palves@redhat.com>
9753 * configure.ac (compiler warning flags): When testing a
9754 -Wno-foo option, check whether -Wfoo works instead.
9755 * configure: Regenerate.
9757 2015-12-11 Don Breazeal <donb@codesourcery.com>
9759 * server.c (process_serial_event): Don't exit from gdbserver
9760 in remote mode if there are still active inferiors.
9762 2015-12-11 Yao Qi <yao.qi@linaro.org>
9764 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9765 arm_breakpoint_at if the process is 32-bit.
9767 2015-12-11 Yao Qi <yao.qi@linaro.org>
9769 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9772 2015-12-07 Yao Qi <yao.qi@linaro.org>
9774 * configure.srv: Append arm.o to srv_tgtobj for
9775 aarch64*-*-linux* target.
9776 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9777 from linux-arm-low.c.
9778 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9779 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9780 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9781 (thumb2_breakpoint_len): Likewise.
9782 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9783 (arm_breakpoint_kinds): Likewise.
9784 (arm_breakpoint_kind_from_pc): Likewise.
9785 (arm_sw_breakpoint_from_kind): Likewise.
9786 (arm_breakpoint_kind_from_current_state): Likewise.
9787 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9788 (arm_sw_breakpoint_from_kind): Declare.
9789 (arm_breakpoint_kind_from_current_state): Declare.
9790 (arm_breakpoint_at): Declare.
9791 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9792 arm_sw_breakpoint_from_kind if process is 32-bit.
9793 (aarch64_breakpoint_kind_from_pc): New function.
9794 (aarch64_breakpoint_kind_from_current_state): New function.
9795 (the_low_target): Initialize fields breakpoint_kind_from_pc
9796 and breakpoint_kind_from_current_state.
9797 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9798 linux-aarch32-low.c.
9799 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9800 (arm_breakpoint, arm_breakpoint_len): Likewise.
9801 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9802 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9803 (arm_is_thumb_mode): Likewise.
9804 (arm_breakpoint_at): Likewise.
9805 (arm_breakpoint_kind_from_pc): Likewise.
9806 (arm_sw_breakpoint_from_kind): Likewise.
9807 (arm_breakpoint_kind_from_current_state): Likewise.
9810 2015-08-04 Yao Qi <yao.qi@linaro.org>
9812 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9813 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9814 * server.c (extended_protocol): Remove "static".
9815 * server.h (extended_protocol): Declare it.
9817 2015-12-04 Josh Stone <jistone@redhat.com>
9819 * target.h (struct target_ops) <arch_setup>: Rename to ...
9820 (struct target_ops) <post_create_inferior>: ... this.
9821 (target_arch_setup): Rename to ...
9822 (target_post_create_inferior): ... this, calling post_create_inferior.
9823 * server.c (start_inferior): Update target_arch_setup calls to
9824 target_post_create_inferior.
9825 * linux-low.c (linux_low_ptrace_options): Forward declare.
9826 (linux_arch_setup): Update its comment for general use.
9827 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9828 (struct linux_target_ops): Use linux_post_create_inferior.
9829 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9830 to post_create_inferior.
9831 * nto-low.c (struct nto_target_ops): Likewise.
9832 * spu-low.c (struct spu_target_ops): Likewise.
9833 * win32-low.c (struct win32_target_ops): Likewise.
9835 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9837 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9839 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9841 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9842 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9843 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9844 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9845 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9846 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9847 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9848 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9849 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9850 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9851 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9852 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9854 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9856 * linux-low.c (linux_look_up_symbols): Don't call
9857 linux_supports_traceclone.
9858 * linux-low.h (thread_db_init): Remove use_events argument.
9859 * thread-db.c (thread_db_use_event): Remove global variable.
9860 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9861 (struct thread_db) <td_create_bp>: Remove field.
9862 (thread_db_create_event): Remove function.
9863 (thread_db_enable_reporting): Likewise.
9864 (find_one_thread): Don't check for thread_db_use_events.
9865 (attach_thread): Likewise.
9866 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9867 (try_thread_db_load_1): Don't check for thread_db_use_events.
9868 (thread_db_init): Remove use_events argument and thread events
9870 (remove_thread_event_breakpoints): Remove function.
9871 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9873 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9875 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9877 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9878 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9879 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9880 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9881 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9883 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9885 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9886 * linux-low.c (can_hardware_single_step): Use
9887 supports_hardware_single_step.
9888 (can_software_single_step): New function.
9889 (start_step_over): Call can_software_single_step.
9890 (linux_supports_hardware_single_step): New function.
9891 (struct target_ops) <supports_software_single_step>: Initialize.
9892 * linux-low.h (struct linux_target_ops)
9893 <supports_hardware_single_step>: Initialize.
9894 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9895 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9896 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9897 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9898 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9899 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9900 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9901 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9902 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9903 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9905 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9906 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9908 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9909 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9910 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9912 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9913 * target.h (struct target_ops): <supports_software_single_step>:
9915 (target_supports_software_single_step): New macro.
9917 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9919 * linux-low.c (linux_wait_1): Fix pc advance condition.
9920 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9921 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9923 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9925 * linux-arm-low.c (arm_is_thumb_mode): New function.
9926 (arm_breakpoint_at): Use arm_is_thumb_mode.
9927 (arm_breakpoint_kind_from_current_state): New function.
9928 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9930 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9931 (linux_breakpoint_kind_from_current_state): New function.
9932 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9933 * linux-low.h (struct linux_target_ops)
9934 <breakpoint_kind_from_current_state>: New field.
9935 * target.h (struct target_ops): Likewise.
9936 (target_breakpoint_kind_from_current_state): New macro.
9938 2015-11-30 Pedro Alves <palves@redhat.com>
9940 * linux-low.c (linux_resume): Wake up the event loop before
9943 2015-11-30 Pedro Alves <palves@redhat.com>
9945 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9947 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9949 * target.c (struct thread_search): New structure.
9950 (thread_search_callback): New function.
9951 (prev_general_thread): New global.
9952 (prepare_to_access_memory, done_accessing_memory): New functions.
9953 * target.h (prepare_to_access_memory, done_accessing_memory):
9954 Replace macros with function declarations.
9956 2015-11-30 Pedro Alves <palves@redhat.com>
9959 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9960 report TARGET_WAITKIND_NO_RESUMED.
9961 * remote-utils.c (prepare_resume_reply): Handle
9962 TARGET_WAITKIND_NO_RESUMED.
9963 * server.c (report_no_resumed): New global.
9964 (handle_query) <qSupported>: Handle "no-resumed+". Report
9965 "no-resumed+" support.
9966 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9967 return error if the client doesn't support no-resumed events.
9968 (push_stop_notification): New function.
9969 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9970 events if the client supports them.
9972 2015-11-30 Pedro Alves <palves@redhat.com>
9974 * linux-low.c (thread_still_has_status_pending_p): Don't check
9976 (lwp_resumed): New function.
9977 (status_pending_p_callback): Return early if the LWP is not
9978 supposed to be resumed.
9980 2015-11-30 Pedro Alves <palves@redhat.com>
9982 * linux-low.c (handle_extended_wait): Assert that the LWP's
9983 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9984 thread create events, leave the new child's status pending.
9985 (linux_low_filter_event): If GDB wants to hear about thread exit
9986 events, leave the LWP marked dead and don't delete it.
9987 (linux_wait_for_event_filtered): Don't check for thread exit.
9988 (filter_exit_event): New function.
9989 (linux_wait_1): Use it, when returning an exit event.
9990 (linux_resume_one_lwp_throw): Assert that the LWP's
9991 waitstatus is TARGET_WAITKIND_IGNORE.
9992 * remote-utils.c (prepare_resume_reply): Handle
9993 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9994 * server.c (report_thread_events): New global.
9995 (handle_general_set): Handle QThreadEvents.
9996 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9997 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9998 TARGET_WAITKIND_THREAD_EXITED.
9999 * server.h (report_thread_events): Declare.
10001 2015-11-30 Pedro Alves <palves@redhat.com>
10003 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10004 the thread's last_resume_kind was resume_stop.
10006 2015-11-30 Pedro Alves <palves@redhat.com>
10008 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10011 2015-11-30 Pedro Alves <palves@redhat.com>
10013 * server.c (handle_v_requests): Handle vCtrlC.
10015 2015-11-30 Pedro Alves <palves@redhat.com>
10017 * gdbthread.h (find_any_thread_of_pid): Declare.
10018 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10020 * server.c (handle_query): If current_thread is NULL, look for
10021 another thread of the selected process.
10023 2015-11-26 Daniel Colascione <dancol@dancol.org>
10024 Simon Marchi <simon.marchi@ericsson.com>
10026 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10027 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10029 * target.h (struct target_ops) <thread_name>: New field.
10030 (target_thread_name): New macro.
10032 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10034 * regcache.h (regcache_invalidate_pid): Add declaration.
10035 * regcache.c (regcache_invalidate_pid): New function, extracted
10036 from regcache_invalidate.
10037 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10038 Add trivial documentation comment.
10039 * lynx-low.c: Use regcache_invalidate_pid instead of
10040 regcache_invalidate.
10042 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10044 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10045 and Elf64_auxv_t if the target is Android.
10047 2015-11-22 Doug Evans <xdje42@gmail.com>
10049 * target.h: #include <sys/types.h>.
10051 2015-11-19 Pedro Alves <palves@redhat.com>
10053 * linux-low.c (linux_process_qsupported): Change prototype.
10055 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10057 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10058 and adjust to loop over all features.
10059 * server.c (handle_query) <qSupported>: Adjust to call
10060 target_process_qsupported once, passing it a vector of unprocessed
10062 * target.h (struct target_ops) <process_qsupported>: Change
10064 (target_process_qsupported): Adjust.
10066 2015-11-19 Pedro Alves <palves@redhat.com>
10068 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10070 * configure: Regenerate.
10072 2015-11-19 Pedro Alves <palves@redhat.com>
10074 * configure: Regenerate.
10076 2015-11-19 Yao Qi <yao.qi@linaro.org>
10078 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10081 2015-11-19 Yao Qi <yao.qi@linaro.org>
10083 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10084 (struct aarch64_operand): Move enum out.
10086 2015-11-19 Yao Qi <yao.qi@linaro.org>
10088 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10089 struct user_fpsimd_state *.
10090 (aarch64_store_fpregset): Likewise.
10092 2015-11-19 Yao Qi <yao.qi@linaro.org>
10094 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10095 struct user_pt_regs *.
10096 (aarch64_store_gregset): Likewise.
10098 2015-11-18 Pedro Alves <palves@redhat.com>
10100 * Makefile.in (all_object_files): Add $IPA_OBJS.
10102 2015-11-17 Pedro Alves <palves@redhat.com>
10104 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10105 GDB_SIGNAL_0 and gdb_signal_to_string.
10107 2015-11-17 Pedro Alves <palves@redhat.com>
10109 * win32-low.c (handle_output_debug_string): Remove parameter.
10110 (win32_kill): Remove our_status local and adjust call to
10111 handle_output_debug_string.
10112 (get_child_debug_event): Adjust call to
10113 handle_output_debug_string.
10115 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10117 * linux-mips-low.c (mips_fill_gregset): Add cast.
10118 (mips_store_gregset): Likewise.
10119 (mips_fill_fpregset): Likewise.
10120 (mips_store_fpregset): Likewise.
10122 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10124 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10127 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10129 * linux-mips-low.c (mips_linux_new_thread): Change type of
10130 watch_type to enum target_hw_bp_type.
10132 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10134 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10135 Change return type to arm_hwbp_type.
10137 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10139 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10140 (arm_store_gregset): Likewise.
10141 * linux-arm-low.c (arm_get_hwcap): Likewise.
10142 (arm_read_description): Likewise.
10144 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10146 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10148 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10150 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10151 (ppc_fill_vsxregset): Likewise.
10152 (ppc_store_vsxregset): Likewise.
10153 (ppc_fill_vrregset): Likewise.
10154 (ppc_store_vrregset): Likewise.
10155 (ppc_fill_evrregset): Likewise.
10156 (ppc_store_evrregset): Likewise.
10158 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10160 * linux-ppc-low.c (ppc_usrregs_info): Remove
10161 forward-declaration.
10162 (ppc_arch_setup): Move lower in file.
10164 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10166 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10167 (ps_pdwrite): Likewise.
10169 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10171 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10172 to after assert checks.
10174 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10176 * proc-service.c (ps_pdread): Add/adjust casts.
10177 (ps_pdwrite): Add/adjust casts.
10179 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10181 * server.c (handle_search_memory_1): Cast return value of
10184 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10186 * server.c (write_qxfer_response): Change type of data to
10189 2015-10-29 Pedro Alves <palves@redhat.com>
10191 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10193 2015-10-29 Pedro Alves <palves@redhat.com>
10195 * tracepoint.c (clear_installed_tracepoints): Add casts.
10197 2015-10-29 Pedro Alves <palves@redhat.com>
10199 * server.c (handle_v_cont, process_serial_event): Add enum
10200 gdb_signal casts to signal parsing code.
10202 2015-10-29 Pedro Alves <palves@redhat.com>
10204 * linux-low.h (NULL_REGSET): Define.
10205 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10206 * linux-arm-low.c (arm_regsets): Likewise.
10207 * linux-crisv32-low.c (cris_regsets): Likewise.
10208 * linux-m68k-low.c (m68k_regsets): Likewise.
10209 * linux-mips-low.c (mips_regsets): Likewise.
10210 * linux-nios2-low.c (nios2_regsets): Likewise.
10211 * linux-ppc-low.c (ppc_regsets): Likewise.
10212 * linux-s390-low.c (s390_regsets): Likewise.
10213 * linux-sh-low.c (sh_regsets): Likewise.
10214 * linux-sparc-low.c (sparc_regsets): Likewise.
10215 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10216 * linux-tile-low.c (tile_regsets): Likewise.
10217 * linux-x86-low.c (x86_regsets): Likewise.
10218 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10220 2015-10-29 Pedro Alves <palves@redhat.com>
10222 * linux-low.h (NULL_REGSET): Define.
10223 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10224 * linux-arm-low.c (arm_regsets): Likewise.
10225 * linux-crisv32-low.c (cris_regsets): Likewise.
10226 * linux-m68k-low.c (m68k_regsets): Likewise.
10227 * linux-mips-low.c (mips_regsets): Likewise.
10228 * linux-nios2-low.c (nios2_regsets): Likewise.
10229 * linux-ppc-low.c (ppc_regsets): Likewise.
10230 * linux-s390-low.c (s390_regsets): Likewise.
10231 * linux-sh-low.c (sh_regsets): Likewise.
10232 * linux-sparc-low.c (sparc_regsets): Likewise.
10233 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10234 * linux-tile-low.c (tile_regsets): Likewise.
10235 * linux-x86-low.c (x86_regsets): Likewise.
10236 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10238 2015-10-26 Doug Evans <dje@google.com>
10240 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10242 2015-10-26 Doug Evans <dje@google.com>
10244 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10246 2015-10-26 Doug Evans <dje@google.com>
10248 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10250 (attach_thread, find_new_threads_callback): Ditto.
10252 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10254 * mem-break.h (set_breakpoint_data): Remove.
10256 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10258 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10259 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10260 (initialize_low): Remove set_breakpoint_data call.
10261 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10262 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10263 (initialize_low): Remove set_breakpoint_data call.
10264 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10265 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10266 (initialize_low): Remove set_breakpoint_data call.
10268 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10270 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10271 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10272 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10273 * target.h (target_breakpoint_kind_from_pc): New macro.
10275 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10277 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10278 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10279 the default breakpoint kind.
10281 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10283 * linux-arm-low.c (arm_supports_z_point_type): Add software
10284 breakpoint support.
10286 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10288 * linux-arm-low.c: Refactor breakpoint definitions.
10289 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10290 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10292 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10294 * Makefile.in: Add arm.c/o.
10295 * configure.srv: Likewise.
10296 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10297 (arm_breakpoint_kind_from_pc): New function.
10298 (arm_sw_breakpoint_from_kind): Return proper kind.
10299 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10301 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10303 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10305 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10306 (struct raw_breakpoint) <size>: Remove.
10307 (struct raw_breakpoint) <kind>: Add.
10308 (bp_size): New function.
10309 (bp_opcode): Likewise.
10310 (find_raw_breakpoint_at): Adjust for kind.
10311 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10312 (remove_memory_breakpoint): Adjust for kind call bp_size.
10313 (set_raw_breakpoint_at): Adjust for kind.
10314 (set_breakpoint): Likewise.
10315 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10316 (delete_raw_breakpoint): Adjust for kind.
10317 (delete_breakpoint): Likewise.
10318 (find_gdb_breakpoint): Likewise.
10319 (set_gdb_breakpoint_1): Likewise.
10320 (set_gdb_breakpoint): Likewise.
10321 (delete_gdb_breakpoint_1): Likewise.
10322 (delete_gdb_breakpoint): Likewise.
10323 (uninsert_raw_breakpoint): Likewise.
10324 (reinsert_raw_breakpoint): Likewise.
10325 (set_breakpoint_data): Remove.
10326 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10327 (check_mem_read): Adjust for kind call bp_size.
10328 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10329 (clone_one_breakpoint): Adjust for kind.
10330 * mem-break.h (set_gdb_breakpoint): Likewise.
10331 (delete_gdb_breakpoint): Likewise.
10332 * server.c (process_serial_event): Likewise.
10334 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10336 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10337 (struct linux_target_ops) <breakpoint>: Remove.
10338 (struct linux_target_ops) <breakpoint_len>: Remove.
10339 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10340 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10341 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10342 (arm_sw_breakpoint_from_kind): New function.
10343 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10344 (struct linux_target_ops) <breakpoint>: Remove.
10345 (struct linux_target_ops) <breakpoint_len>: Remove.
10346 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10347 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10348 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10349 (struct linux_target_ops) <breakpoint>: Remove.
10350 (struct linux_target_ops) <breakpoint_len>: Remove.
10351 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10352 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10353 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10354 (struct linux_target_ops) <breakpoint>: Remove.
10355 (struct linux_target_ops) <breakpoint_len>: Remove.
10356 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10357 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10358 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10359 and sw_breakpoint_from_kind to increment the pc.
10360 (linux_breakpoint_kind_from_pc): New function.
10361 (linux_sw_breakpoint_from_kind): New function.
10362 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10363 (initialize_low): Call breakpoint_kind_from_pc and
10364 sw_breakpoint_from_kind to replace breakpoint_data/len.
10365 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10367 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10368 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10369 (struct linux_target_ops) <breakpoint>: Remove.
10370 (struct linux_target_ops) <breakpoint_len>: Remove.
10371 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10372 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10373 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10374 (struct linux_target_ops) <breakpoint>: Remove.
10375 (struct linux_target_ops) <breakpoint_len>: Remove.
10376 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10377 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10378 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10379 (struct linux_target_ops) <breakpoint>: Remove.
10380 (struct linux_target_ops) <breakpoint_len>: Remove.
10381 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10382 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10383 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10384 (struct linux_target_ops) <breakpoint>: Remove.
10385 (struct linux_target_ops) <breakpoint_len>: Remove.
10386 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10387 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10388 * linux-ppc-low.c (ppc_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-s390-low.c (s390_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.
10398 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10399 (struct linux_target_ops) <breakpoint>: Remove.
10400 (struct linux_target_ops) <breakpoint_len>: Remove.
10401 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10402 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10403 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10404 (struct linux_target_ops) <breakpoint>: Remove.
10405 (struct linux_target_ops) <breakpoint_len>: Remove.
10406 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10407 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10408 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10409 (struct linux_target_ops) <breakpoint>: Remove.
10410 (struct linux_target_ops) <breakpoint_len>: Remove.
10411 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10412 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10413 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10414 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10415 (struct linux_target_ops) <breakpoint>: Remove.
10416 (struct linux_target_ops) <breakpoint_len>: Remove.
10417 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10418 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10419 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10420 (struct linux_target_ops) <breakpoint>: Remove.
10421 (struct linux_target_ops) <breakpoint_len>: Remove.
10422 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10423 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10425 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10427 * linux-cris-low.c (cris_get_pc): Remove void arg.
10429 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10431 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10434 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10436 * inferiors.c (thread_pid_matches_callback): New function.
10437 (find_thread_process): New function.
10438 (remove_thread): Reset current_thread.
10439 (remove_process): Assert threads have been removed first.
10441 2015-10-15 Yao Qi <yao.qi@linaro.org>
10443 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10445 (aarch64_remove_point): Likewise.
10446 * regcache.c (regcache_register_size): New function.
10448 2015-10-12 Yao Qi <yao.qi@linaro.org>
10450 * linux-aarch64-low.c: Update all callers as emit_load_store
10451 is renamed to aarch64_emit_load_store.
10453 2015-10-12 Yao Qi <yao.qi@linaro.org>
10455 * linux-aarch64-low.c: Update all callers of function renaming
10456 from emit_insn to aarch64_emit_insn.
10458 2015-10-12 Yao Qi <yao.qi@linaro.org>
10460 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10461 arch/aarch64-insn.h.
10462 (struct aarch64_memory_operand): Likewise.
10463 (ENCODE): Likewise.
10464 (emit_insn): Move to arch/aarch64-insn.c.
10465 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10466 (emit_load_store): Move to arch/aarch64-insn.c.
10467 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10468 (can_encode_int32): Remove.
10470 2015-10-12 Yao Qi <yao.qi@linaro.org>
10472 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10473 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10474 (aarch64_relocate_instruction): Likewise.
10475 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10476 (struct aarch64_insn_visitor): Likewise.
10478 2015-10-12 Yao Qi <yao.qi@linaro.org>
10480 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10481 (struct aarch64_insn_visitor): New.
10482 (struct aarch64_insn_relocation_data): New.
10483 (aarch64_ftrace_insn_reloc_b): New function.
10484 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10485 (aarch64_ftrace_insn_reloc_cb): Likewise.
10486 (aarch64_ftrace_insn_reloc_tb): Likewise.
10487 (aarch64_ftrace_insn_reloc_adr): Likewise.
10488 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10489 (aarch64_ftrace_insn_reloc_others): Likewise.
10491 (aarch64_relocate_instruction): Use visitor.
10493 2015-10-12 Yao Qi <yao.qi@linaro.org>
10495 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10496 int. Add argument buf.
10497 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10498 aarch64_relocate_instruction.
10500 2015-10-12 Yao Qi <yao.qi@linaro.org>
10502 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10503 argument insn. Remove local variable insn. Don't call
10504 target_read_uint32.
10505 (aarch64_install_fast_tracepoint_jump_pad): Call
10506 target_read_uint32.
10508 2015-09-30 Yao Qi <yao.qi@linaro.org>
10510 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10511 (emit_load_store_pair): Likewise.
10513 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10515 * dll.c (match_dll): Add cast(s).
10516 (unloaded_dll): Likewise.
10517 * linux-low.c (second_thread_of_pid_p): Likewise.
10518 (delete_lwp_callback): Likewise.
10519 (count_events_callback): Likewise.
10520 (select_event_lwp_callback): Likewise.
10521 (linux_set_resume_request): Likewise.
10522 * server.c (accumulate_file_name_length): Likewise.
10523 (emit_dll_description): Likewise.
10524 (handle_qxfer_threads_worker): Likewise.
10525 (visit_actioned_threads): Likewise.
10526 * thread-db.c (any_thread_of): Likewise.
10527 * tracepoint.c (same_process_p): Likewise.
10528 (match_blocktype): Likewise.
10529 (build_traceframe_info_xml): Likewise.
10531 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10533 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10535 (gdb_unparse_agent_expr): Likewise.
10536 * hostio.c (require_data): Likewise.
10537 (handle_pread): Likewise.
10538 * linux-low.c (disable_regset): Likewise.
10539 (fetch_register): Likewise.
10540 (store_register): Likewise.
10541 (get_dynamic): Likewise.
10542 (linux_qxfer_libraries_svr4): Likewise.
10543 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10544 (set_fast_tracepoint_jump): Likewise.
10545 (uninsert_fast_tracepoint_jumps_at): Likewise.
10546 (reinsert_fast_tracepoint_jumps_at): Likewise.
10547 (validate_inserted_breakpoint): Likewise.
10548 (clone_agent_expr): Likewise.
10549 * regcache.c (init_register_cache): Likewise.
10550 * remote-utils.c (putpkt_binary_1): Likewise.
10551 (decode_M_packet): Likewise.
10552 (decode_X_packet): Likewise.
10553 (look_up_one_symbol): Likewise.
10554 (relocate_instruction): Likewise.
10555 (monitor_output): Likewise.
10556 * server.c (handle_search_memory): Likewise.
10557 (handle_qxfer_exec_file): Likewise.
10558 (handle_qxfer_libraries): Likewise.
10559 (handle_qxfer): Likewise.
10560 (handle_query): Likewise.
10561 (handle_v_cont): Likewise.
10562 (handle_v_run): Likewise.
10563 (captured_main): Likewise.
10564 * target.c (write_inferior_memory): Likewise.
10565 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10566 * tracepoint.c (init_trace_buffer): Likewise.
10567 (add_tracepoint_action): Likewise.
10568 (add_traceframe): Likewise.
10569 (add_traceframe_block): Likewise.
10570 (cmd_qtdpsrc): Likewise.
10571 (cmd_qtdv): Likewise.
10572 (cmd_qtstatus): Likewise.
10573 (response_source): Likewise.
10574 (response_tsv): Likewise.
10575 (cmd_qtnotes): Likewise.
10576 (gdb_collect): Likewise.
10577 (initialize_tracepoint): Likewise.
10579 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10581 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10582 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10583 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10585 (enum aarch64_condition_codes): New enum.
10586 (w0): New static global.
10589 (struct aarch64_memory_operand) <type>: New
10590 MEMORY_OPERAND_POSTINDEX type.
10591 (postindex_memory_operand): New helper function.
10592 (emit_ret): New function.
10593 (emit_load_store_pair): New function, factored out of emit_stp
10594 with support for MEMORY_OPERAND_POSTINDEX.
10595 (emit_stp): Rewrite using emit_load_store_pair.
10596 (emit_ldp): New function.
10597 (emit_load_store): Likewise.
10598 (emit_ldr): Mention post-index instruction in comment.
10599 (emit_ldrh): New function.
10600 (emit_ldrb): New function.
10601 (emit_ldrsw): Mention post-index instruction in comment.
10602 (emit_str): Likewise.
10603 (emit_subs): New function.
10604 (emit_cmp): Likewise.
10605 (emit_and): Likewise.
10606 (emit_orr): Likewise.
10607 (emit_orn): Likewise.
10608 (emit_eor): Likewise.
10609 (emit_mvn): Likewise.
10610 (emit_lslv): Likewise.
10611 (emit_lsrv): Likewise.
10612 (emit_asrv): Likewise.
10613 (emit_mul): Likewise.
10614 (emit_sbfm): Likewise.
10615 (emit_sbfx): Likewise.
10616 (emit_ubfm): Likewise.
10617 (emit_ubfx): Likewise.
10618 (emit_csinc): Likewise.
10619 (emit_cset): Likewise.
10620 (emit_nop): Likewise.
10621 (emit_ops_insns): New helper function.
10622 (emit_pop): Likewise.
10623 (emit_push): Likewise.
10624 (aarch64_emit_prologue): New function.
10625 (aarch64_emit_epilogue): Likewise.
10626 (aarch64_emit_add): Likewise.
10627 (aarch64_emit_sub): Likewise.
10628 (aarch64_emit_mul): Likewise.
10629 (aarch64_emit_lsh): Likewise.
10630 (aarch64_emit_rsh_signed): Likewise.
10631 (aarch64_emit_rsh_unsigned): Likewise.
10632 (aarch64_emit_ext): Likewise.
10633 (aarch64_emit_log_not): Likewise.
10634 (aarch64_emit_bit_and): Likewise.
10635 (aarch64_emit_bit_or): Likewise.
10636 (aarch64_emit_bit_xor): Likewise.
10637 (aarch64_emit_bit_not): Likewise.
10638 (aarch64_emit_equal): Likewise.
10639 (aarch64_emit_less_signed): Likewise.
10640 (aarch64_emit_less_unsigned): Likewise.
10641 (aarch64_emit_ref): Likewise.
10642 (aarch64_emit_if_goto): Likewise.
10643 (aarch64_emit_goto): Likewise.
10644 (aarch64_write_goto_address): Likewise.
10645 (aarch64_emit_const): Likewise.
10646 (aarch64_emit_call): Likewise.
10647 (aarch64_emit_reg): Likewise.
10648 (aarch64_emit_pop): Likewise.
10649 (aarch64_emit_stack_flush): Likewise.
10650 (aarch64_emit_zero_ext): Likewise.
10651 (aarch64_emit_swap): Likewise.
10652 (aarch64_emit_stack_adjust): Likewise.
10653 (aarch64_emit_int_call_1): Likewise.
10654 (aarch64_emit_void_call_2): Likewise.
10655 (aarch64_emit_eq_goto): Likewise.
10656 (aarch64_emit_ne_goto): Likewise.
10657 (aarch64_emit_lt_goto): Likewise.
10658 (aarch64_emit_le_goto): Likewise.
10659 (aarch64_emit_gt_goto): Likewise.
10660 (aarch64_emit_ge_got): Likewise.
10661 (aarch64_emit_ops_impl): New static global variable.
10662 (aarch64_emit_ops): New target function, return
10663 &aarch64_emit_ops_impl.
10664 (struct linux_target_ops): Install it.
10666 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10668 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10669 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10671 * linux-aarch64-ipa.c: New file.
10672 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10674 (aarch64_get_thread_area): New target method.
10675 (extract_signed_bitfield): New helper function.
10676 (aarch64_decode_ldr_literal): New function.
10677 (enum aarch64_opcodes): New enum.
10678 (struct aarch64_register): New struct.
10679 (struct aarch64_operand): New struct.
10680 (x0): New static global.
10689 (aarch64_register): New helper function.
10690 (register_operand): Likewise.
10691 (immediate_operand): Likewise.
10692 (struct aarch64_memory_operand): New struct.
10693 (offset_memory_operand): New helper function.
10694 (preindex_memory_operand): Likewise.
10695 (enum aarch64_system_control_registers): New enum.
10696 (ENCODE): New macro.
10697 (emit_insn): New helper function.
10698 (emit_b): New function.
10699 (emit_bcond): Likewise.
10700 (emit_cb): Likewise.
10701 (emit_tb): Likewise.
10702 (emit_blr): Likewise.
10703 (emit_stp): Likewise.
10704 (emit_ldp_q_offset): Likewise.
10705 (emit_stp_q_offset): Likewise.
10706 (emit_load_store): Likewise.
10707 (emit_ldr): Likewise.
10708 (emit_ldrsw): Likewise.
10709 (emit_str): Likewise.
10710 (emit_ldaxr): Likewise.
10711 (emit_stxr): Likewise.
10712 (emit_stlr): Likewise.
10713 (emit_data_processing_reg): Likewise.
10714 (emit_data_processing): Likewise.
10715 (emit_add): Likewise.
10716 (emit_sub): Likewise.
10717 (emit_mov): Likewise.
10718 (emit_movk): Likewise.
10719 (emit_mov_addr): Likewise.
10720 (emit_mrs): Likewise.
10721 (emit_msr): Likewise.
10722 (emit_sevl): Likewise.
10723 (emit_wfe): Likewise.
10724 (append_insns): Likewise.
10725 (can_encode_int32_in): New helper function.
10726 (aarch64_relocate_instruction): New function.
10727 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10728 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10729 (struct linux_target_ops): Install aarch64_get_thread_area,
10730 aarch64_install_fast_tracepoint_jump_pad and
10731 aarch64_get_min_fast_tracepoint_insn_len.
10733 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10735 * Makefile.in (aarch64-insn.o): New rule.
10736 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10738 2015-09-21 Yao Qi <yao.qi@linaro.org>
10740 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10742 2015-09-21 Yao Qi <yao.qi@linaro.org>
10744 * tracepoint.c (max_jump_pad_size): Remove.
10746 2015-09-18 Yao Qi <yao.qi@linaro.org>
10748 * linux-aarch64-low.c: Don't include sys/uio.h.
10749 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10751 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10753 * tracepoint.c (eval_result_type): Change prototype.
10754 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10756 2015-09-15 Pedro Alves <palves@redhat.com>
10758 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10759 Check whether to report exec events instead of checking whether
10760 multiprocess is enabled.
10762 2015-09-15 Pedro Alves <palves@redhat.com>
10765 * remote-utils.c (prepare_resume_reply): Merge
10766 TARGET_WAITKIND_VFORK_DONE switch case with the
10767 TARGET_WAITKIND_FORKED case.
10769 2015-09-15 Yao Qi <yao.qi@linaro.org>
10771 * server.c (handle_query): Check string comparison using
10772 "else if" instead of "if".
10774 2015-09-15 Yao Qi <yao.qi@linaro.org>
10776 * server.c (vCont_supported): New global variable.
10777 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10778 matches. Append ";vContSupported+" to own_buf.
10779 (handle_v_requests): Append ";s;S" to own_buf if target supports
10780 hardware single step or vCont_supported is false.
10781 (capture_main): Set vCont_supported to zero.
10783 2015-09-15 Yao Qi <yao.qi@linaro.org>
10785 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10787 (linux_supports_hardware_single_step): ... New function.
10788 (linux_target_ops): Update.
10789 * lynx-low.c (lynx_target_ops): Set field
10790 supports_hardware_single_step to target_can_do_hardware_single_step.
10791 * nto-low.c (nto_target_ops): Likewise.
10792 * spu-low.c (spu_target_ops): Likewise.
10793 * win32-low.c (win32_target_ops): Likewise.
10794 * target.c (target_can_do_hardware_single_step): New function.
10795 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10796 Remove. <supports_hardware_single_step>: New field.
10797 (target_supports_conditional_breakpoints): Remove.
10798 (target_supports_hardware_single_step): New macro.
10799 (target_can_do_hardware_single_step): Declare.
10800 * server.c (handle_query): Use target_supports_hardware_single_step
10801 instead of target_supports_conditional_breakpoints.
10803 2015-09-15 Yao Qi <yao.qi@linaro.org>
10805 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10807 (struct linux_target_ops the_low_target): Install
10808 aarch64_linux_siginfo_fixup.
10810 2015-09-11 Don Breazeal <donb@codesourcery.com>
10811 Luis Machado <lgustavo@codesourcery.com>
10813 * linux-low.c (linux_mourn): Static declaration.
10814 (linux_arch_setup): Move in front of
10815 handle_extended_wait.
10816 (linux_arch_setup_thread): New function.
10817 (handle_extended_wait): Handle exec events. Call
10818 linux_arch_setup_thread. Make event_lwp argument a
10819 pointer-to-a-pointer.
10820 (check_zombie_leaders): Do not check stopped threads.
10821 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10822 (linux_low_filter_event): Add lwp and thread for exec'ing
10823 non-leader thread if leader thread has been deleted.
10824 Refactor code into linux_arch_setup_thread and call it.
10825 Pass child lwp pointer by reference to handle_extended_wait.
10826 (linux_wait_for_event_filtered): Update comment.
10827 (linux_wait_1): Prevent clobbering exec event status.
10828 (linux_supports_exec_events): New function.
10829 (linux_target_ops) <supports_exec_events>: Initialize new member.
10830 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10832 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10833 * server.c (report_exec_events): New global variable.
10834 (handle_query): Handle qSupported query for exec-events feature.
10835 (captured_main): Initialize report_exec_events.
10836 * server.h (report_exec_events): Declare new global variable.
10837 * target.h (struct target_ops) <supports_exec_events>: New
10839 (target_supports_exec_events): New macro.
10840 * win32-low.c (win32_target_ops) <supports_exec_events>:
10841 Initialize new member.
10843 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10845 * linux-low.c (linux_low_enable_btrace): Remove.
10846 (linux_target_ops): Replace linux_low_enable_btrace with
10847 linux_enable_btrace.
10849 2015-09-03 Yao Qi <yao.qi@linaro.org>
10851 * linux-aarch64-low.c (aarch64_insert_point): Call
10852 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10855 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10857 * linux-low.c (check_stopped_by_breakpoint): Use
10858 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10860 2015-08-27 Pedro Alves <palves@redhat.com>
10862 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10864 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10866 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10867 the XNEW-family equivalent.
10868 (compile_bytecodes): Likewise.
10869 * dll.c (loaded_dll): Likewise.
10870 * event-loop.c (append_callback_event): Likewise.
10871 (create_file_handler): Likewise.
10872 (create_file_event): Likewise.
10873 * hostio.c (handle_open): Likewise.
10874 * inferiors.c (add_thread): Likewise.
10875 (add_process): Likewise.
10876 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10877 * linux-arm-low.c (arm_new_process): Likewise.
10878 (arm_new_thread): Likewise.
10879 * linux-low.c (add_to_pid_list): Likewise.
10880 (linux_add_process): Likewise.
10881 (handle_extended_wait): Likewise.
10882 (add_lwp): Likewise.
10883 (enqueue_one_deferred_signal): Likewise.
10884 (enqueue_pending_signal): Likewise.
10885 (linux_resume_one_lwp_throw): Likewise.
10886 (linux_resume_one_thread): Likewise.
10887 (linux_read_memory): Likewise.
10888 (linux_write_memory): Likewise.
10889 * linux-mips-low.c (mips_linux_new_process): Likewise.
10890 (mips_linux_new_thread): Likewise.
10891 (mips_add_watchpoint): Likewise.
10892 * linux-x86-low.c (initialize_low_arch): Likewise.
10893 * lynx-low.c (lynx_add_process): Likewise.
10894 * mem-break.c (set_raw_breakpoint_at): Likewise.
10895 (set_breakpoint): Likewise.
10896 (add_condition_to_breakpoint): Likewise.
10897 (add_commands_to_breakpoint): Likewise.
10898 (clone_agent_expr): Likewise.
10899 (clone_one_breakpoint): Likewise.
10900 * regcache.c (new_register_cache): Likewise.
10901 * remote-utils.c (look_up_one_symbol): Likewise.
10902 * server.c (queue_stop_reply): Likewise.
10903 (start_inferior): Likewise.
10904 (queue_stop_reply_callback): Likewise.
10905 (handle_target_event): Likewise.
10906 * spu-low.c (fetch_ppc_memory): Likewise.
10907 (store_ppc_memory): Likewise.
10908 * target.c (set_target_ops): Likewise.
10909 * thread-db.c (thread_db_load_search): Likewise.
10910 (try_thread_db_load_1): Likewise.
10911 * tracepoint.c (add_tracepoint): Likewise.
10912 (add_tracepoint_action): Likewise.
10913 (create_trace_state_variable): Likewise.
10914 (cmd_qtdpsrc): Likewise.
10915 (cmd_qtro): Likewise.
10916 (add_while_stepping_state): Likewise.
10917 * win32-low.c (child_add_thread): Likewise.
10918 (get_image_name): Likewise.
10920 2015-08-25 Yao Qi <yao.qi@linaro.org>
10922 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10924 2015-08-25 Yao Qi <yao.qi@linaro.org>
10926 * Makefile.in (aarch64-linux.o): New rule.
10927 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10929 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10930 (aarch64_init_debug_reg_state): Make it extern.
10931 (aarch64_linux_prepare_to_resume): Remove.
10933 2015-08-25 Yao Qi <yao.qi@linaro.org>
10935 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10936 lwp_arch_private_info and ptid_of_lwp.
10938 2015-08-25 Yao Qi <yao.qi@linaro.org>
10940 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10941 Find proc_info by find_process_pid. All callers updated.
10943 2015-08-25 Yao Qi <yao.qi@linaro.org>
10945 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10947 (debug_reg_change_callback): Remove.
10948 (aarch64_notify_debug_reg_change): Remove.
10950 2015-08-25 Yao Qi <yao.qi@linaro.org>
10952 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10953 Call current_lwp_ptid.
10955 2015-08-25 Yao Qi <yao.qi@linaro.org>
10957 * linux-aarch64-low.c (debug_reg_change_callback): Use
10960 2015-08-25 Yao Qi <yao.qi@linaro.org>
10962 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10964 2015-08-25 Yao Qi <yao.qi@linaro.org>
10966 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10968 2015-08-25 Yao Qi <yao.qi@linaro.org>
10970 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10973 2015-08-25 Yao Qi <yao.qi@linaro.org>
10975 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10977 (debug_reg_change_callback): Remove argument entry and add argument
10978 lwp. Remove local variable thread. Don't print thread id in the
10979 debugging output. Don't check whether pid of thread equals to pid.
10980 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10981 iterate_over_lwps instead find_inferior.
10983 2015-08-24 Pedro Alves <palves@redhat.com>
10985 * inferiors.c (get_first_process): New function.
10986 * inferiors.h (get_first_process): New declaration.
10987 * remote-utils.c (read_ptid): Default to the first process in the
10988 list, instead of to the current thread's process.
10990 2015-08-24 Pedro Alves <palves@redhat.com>
10992 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10993 * event-loop.c: Likewise.
10994 * remote-utils.c: Likewise.
10995 * tracepoint.c: Likewise.
10997 2015-08-24 Pedro Alves <palves@redhat.com>
10999 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11002 2015-08-21 Pedro Alves <palves@redhat.com>
11004 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11005 instead of literal 1.
11007 2015-08-21 Pedro Alves <palves@redhat.com>
11009 * tdesc.c (default_description): Explicitly zero-initialize.
11011 2015-08-21 Pedro Alves <palves@redhat.com>
11014 * inferiors.c (remove_thread): Discard any pending stop reply for
11016 * server.c (remove_all_on_match_pid): Rename to ...
11017 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11019 (discard_queued_stop_replies): Change parameter to a ptid. Now
11021 (handle_v_kill, kill_inferior_callback, captured_main)
11022 (process_serial_event): Adjust.
11023 * server.h (discard_queued_stop_replies): Declare.
11025 2015-08-21 Pedro Alves <palves@redhat.com>
11027 * linux-low.c (wait_for_sigstop): Always switch to no thread
11028 selected if the previously current thread dies.
11029 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11030 process instead of the current thread's.
11031 * remote-utils.c (input_interrupt): Don't check if there's no
11033 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11034 current thread to the general thread fails, error out.
11035 (handle_qxfer_auxv, handle_qxfer_libraries)
11036 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11037 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11038 (handle_query): Check if there's a thread selected instead of
11039 checking whether there's any thread in the thread list.
11040 (handle_qxfer_threads, handle_qxfer_btrace)
11041 (handle_qxfer_btrace_conf): Don't error out early if there's no
11042 thread in the thread list.
11043 (handle_v_cont, myresume): Don't set the current thread to the
11045 (process_serial_event) <Hg handling>: Also set thread_id if the
11046 previous general thread is still alive.
11047 (process_serial_event) <g/G handling>: If setting the current
11048 thread to the general thread fails, error out.
11049 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11050 thread's lwp instead of the current thread's.
11051 * target.c (set_desired_thread): If the desired thread was not
11052 found, leave the current thread pointing to NULL. Return an int
11053 (boolean) indicating success.
11054 * target.h (set_desired_thread): Change return type to int.
11056 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11058 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11059 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11061 (ps_get_thread_area): New function.
11063 2015-08-19 Gary Benson <gbenson@redhat.com>
11065 * hostio.c (handle_pread): Do not attempt to read more data
11066 than hostio_reply_with_data can fit in a packet.
11068 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11070 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11072 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11074 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11076 2015-08-06 Pedro Alves <palves@redhat.com>
11078 * tracepoint.c (expr_eval_result): Now an int.
11080 2015-08-06 Pedro Alves <palves@redhat.com>
11082 * gdbthread.h (struct regcache): Forward declare.
11083 (struct thread_info) <regcache_data>: Now a struct regcache
11085 * inferiors.c (inferior_regcache_data)
11086 (set_inferior_regcache_data): Now work with struct regcache
11088 * inferiors.h (struct regcache): Forward declare.
11089 (inferior_regcache_data, set_inferior_regcache_data): Now work
11090 with struct regcache pointers.
11091 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11092 (free_register_cache_thread): Remove struct regcache pointer
11095 2015-08-06 Pedro Alves <palves@redhat.com>
11097 * server.c (captured_main): On error, print the exception message
11098 to stderr, and if run_once is set, throw a quit.
11100 2015-08-06 Pedro Alves <palves@redhat.com>
11102 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11103 the current thread.
11105 2015-08-06 Pedro Alves <palves@redhat.com>
11107 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11108 reading beyond the passed in buffer length.
11110 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11112 * tracepoint.c (symbol_list) <required>: Remove.
11114 2015-08-06 Pedro Alves <palves@redhat.com>
11116 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11117 count if stopping and suspending threads.
11118 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11119 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11120 (linux_detach): Complete an ongoing step-over.
11121 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11123 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11124 (linux_wait_1): If passing a signal to the inferior after
11125 finishing a step-over, unsuspend and re-resume all lwps. If we
11126 see a single-step event but the thread should be continuing, don't
11127 pass the trap to gdb.
11128 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11129 internal_error instead of gdb_assert.
11130 (enqueue_pending_signal): New function.
11131 (check_ptrace_stopped_lwp_gone): Add debug output.
11132 (start_step_over): Use internal_error instead of gdb_assert.
11133 (complete_ongoing_step_over): New function.
11134 (linux_resume_one_thread): Don't resume a suspended thread.
11135 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11138 2015-08-06 Pedro Alves <palves@redhat.com>
11140 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11141 (linux_thread_alive): Use lwp_is_marked_dead.
11142 (extended_event_reported): Delete.
11143 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11144 instead of extended_event_reported.
11145 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11147 (lwp_is_marked_dead): New function.
11148 (lwp_running): Use lwp_is_marked_dead.
11149 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11152 2015-08-06 Pedro Alves <palves@redhat.com>
11154 * linux-low.c (linux_wait_1): Move fork event output out of the
11155 !report_to_gdb check. Pass event_child->waitstatus to
11156 target_waitstatus_to_string instead of ourstatus.
11158 2015-08-04 Yao Qi <yao.qi@linaro.org>
11160 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11161 if current_thread is 32 bit.
11163 2015-08-04 Yao Qi <yao.qi@linaro.org>
11165 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11166 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11167 * server.c (extended_protocol): Remove "static".
11168 * server.h (extended_protocol): Declare it.
11170 2015-08-04 Yao Qi <yao.qi@linaro.org>
11172 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11173 both aarch64 and aarch32.
11174 (aarch64_set_pc): Likewise.
11176 2015-08-04 Yao Qi <yao.qi@linaro.org>
11178 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11179 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11180 arm-with-neon.xml to srv_xmlfiles.
11181 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11182 (is_64bit_tdesc): New function.
11183 (aarch64_linux_read_description): New function.
11184 (aarch64_arch_setup): Call aarch64_linux_read_description.
11185 (regs_info): Rename to regs_info_aarch64.
11186 (aarch64_regs_info): Return right regs_info.
11187 (initialize_low_arch): Call initialize_low_arch_aarch32.
11189 2015-08-04 Yao Qi <yao.qi@linaro.org>
11191 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11192 * linux-aarch32-low.c: New file.
11193 * linux-aarch32-low.h: New file.
11194 * linux-arm-low.c (arm_fill_gregset): Move it to
11195 linux-aarch32-low.c.
11196 (arm_store_gregset): Likewise.
11197 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11198 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11199 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11200 (regs_info): Rename to regs_info_arm.
11201 (arm_regs_info): Return regs_info_aarch32 if
11202 have_ptrace_getregset is 1 and target description is
11203 arm_with_neon or arm_with_vfpv3.
11204 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11205 Call initialize_low_arch_aarch32 instead.
11207 2015-08-04 Yao Qi <yao.qi@linaro.org>
11209 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11210 * linux-low.c: ... here.
11211 * linux-low.h (have_ptrace_getregset): Declare it.
11213 2015-08-04 Pedro Alves <palves@redhat.com>
11215 * thread-db.c (struct thread_db): Use new typedefs.
11216 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11218 (disable_thread_event_reporting): Cast result of dlsym to
11219 destination function pointer type.
11220 (thread_db_mourn): Use td_ta_delete_ftype.
11222 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11224 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11226 (CDX_BREAKPOINT): Define for R2.
11227 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11228 (the_low_target): Add comments.
11230 2015-07-30 Yao Qi <yao.qi@linaro.org>
11232 * linux-arm-low.c (arm_hwcap): Remove it.
11233 (arm_read_description): New local variable arm_hwcap. Don't
11234 set arm_hwcap to zero.
11236 2015-07-30 Yao Qi <yao.qi@linaro.org>
11238 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11239 Use regcache->tdesc instead.
11240 (arm_store_wmmxregset): Likewise.
11241 (arm_fill_vfpregset): Likewise.
11242 (arm_store_vfpregset): Likewise.
11244 2015-07-30 Yao Qi <yao.qi@linaro.org>
11246 * linux-arm-low.c: Include arch/arm.h.
11247 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11248 (arm_store_gregset): Likewise.
11250 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11252 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11253 ptrace's 4th parameter.
11255 2015-07-27 Yao Qi <yao.qi@linaro.org>
11257 * configure.srv (case aarch64*-*-linux*): Don't set
11260 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11262 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11264 * linux-arm-low.c: Likewise.
11265 * linux-cris-low.c: Likewise.
11266 * linux-crisv32-low.c: Likewise.
11267 * linux-low.c: Likewise.
11268 * linux-m68k-low.c: Likewise.
11269 * linux-mips-low.c: Likewise.
11270 * linux-nios2-low.c: Likewise.
11271 * linux-s390-low.c: Likewise.
11272 * linux-sparc-low.c: Likewise.
11273 * linux-tic6x-low.c: Likewise.
11274 * linux-tile-low.c: Likewise.
11275 * linux-x86-low.c: Likewise.
11277 2015-07-24 Pedro Alves <palves@redhat.com>
11279 * config.in: Regenerate.
11280 * configure: Regenerate.
11282 2015-07-24 Pedro Alves <palves@redhat.com>
11284 * acinclude.m4: Include ../ptrace.m4.
11285 * configure.ac: Call GDB_AC_PTRACE.
11286 * config.in, configure: Regenerate.
11288 2015-07-24 Yao Qi <yao.qi@linaro.org>
11290 * linux-low.c (linux_create_inferior): Remove setting to
11291 proc->priv->new_inferior.
11292 (linux_attach): Likewise.
11293 (linux_low_filter_event): Likewise.
11294 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11296 2015-07-24 Yao Qi <yao.qi@linaro.org>
11298 * linux-low.c (linux_arch_setup): New function.
11299 (linux_low_filter_event): If proc->tdesc is NULL and
11300 proc->attached is true, call the_low_target.arch_setup.
11301 Otherwise, keep status pending, and return.
11302 (linux_resume_one_lwp_throw): Don't call get_pc if
11303 thread->while_stepping isn't NULL. Don't call
11304 get_thread_regcache if proc->tdesc is NULL.
11305 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11306 (linux_target_ops): Install arch_setup.
11307 * server.c (start_inferior): Call the_target->arch_setup.
11308 * target.h (struct target_ops) <arch_setup>: New field.
11309 (target_arch_setup): New marco.
11310 * lynx-low.c (lynx_target_ops): Update.
11311 * nto-low.c (nto_target_ops): Update.
11312 * spu-low.c (spu_target_ops): Update.
11313 * win32-low.c (win32_target_ops): Update.
11315 2015-07-24 Yao Qi <yao.qi@linaro.org>
11317 * linux-low.c (linux_add_process): Don't set
11318 proc->priv->new_inferior.
11319 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11320 (linux_attach): Likewise.
11322 2015-07-24 Yao Qi <yao.qi@linaro.org>
11324 * server.c (start_inferior): Code refactor.
11326 2015-07-24 Yao Qi <yao.qi@linaro.org>
11328 * server.c (process_serial_event): Set general_thread.
11330 2015-07-21 Yao Qi <yao.qi@linaro.org>
11332 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11333 aarch64_linux_get_debug_reg_capacity.
11335 2015-07-17 Yao Qi <yao.qi@linaro.org>
11337 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11338 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11339 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11340 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11341 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11342 (AARCH64_HWP_ALIGNMENT): Likewise.
11343 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11344 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11345 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11346 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11347 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11348 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11349 (struct aarch64_debug_reg_state): Likewise.
11350 (struct arch_lwp_info): Likewise.
11351 (aarch64_align_watchpoint): Likewise.
11352 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11353 (aarch64_watchpoint_length): Likewise.
11354 (aarch64_point_encode_ctrl_reg): Likewise
11355 (aarch64_point_is_aligned): Likewise.
11356 (aarch64_align_watchpoint): Likewise.
11357 (aarch64_linux_set_debug_regs):
11358 (aarch64_dr_state_insert_one_point): Likewise.
11359 (aarch64_dr_state_remove_one_point): Likewise.
11360 (aarch64_handle_breakpoint): Likewise.
11361 (aarch64_handle_aligned_watchpoint): Likewise.
11362 (aarch64_handle_unaligned_watchpoint): Likewise.
11363 (aarch64_handle_watchpoint): Likewise.
11365 2015-07-17 Yao Qi <yao.qi@linaro.org>
11367 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11368 and don't aarch64_get_debug_reg_state. All callers update.
11369 (aarch64_handle_aligned_watchpoint): Likewise.
11370 (aarch64_handle_unaligned_watchpoint): Likewise.
11371 (aarch64_handle_watchpoint): Likewise.
11372 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11373 (aarch64_remove_point): Likewise.
11375 2015-07-17 Yao Qi <yao.qi@linaro.org>
11377 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11379 (aarch64_handle_unaligned_watchpoint): Likewise.
11381 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11383 Revert the previous 3 commits:
11384 Move gdb_regex* to common/
11385 Move linux_find_memory_regions_full & co.
11386 gdbserver build-id attribute generator
11388 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11389 Jan Kratochvil <jan.kratochvil@redhat.com>
11391 gdbserver build-id attribute generator.
11392 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11393 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11394 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11396 (get_dynamic): Use find_pdhr to traverse program headers.
11397 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11398 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11399 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11400 (get_hex_build_id): New.
11401 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11402 to reply XML document.
11404 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11405 Jan Kratochvil <jan.kratochvil@redhat.com>
11407 * target.c: Include target/target-utils.h and fcntl.h.
11408 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11409 (target_fileio_read_stralloc): New functions.
11411 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11413 * Makefile.in (OBS): Add gdb_regex.o.
11414 (gdb_regex.o): New.
11415 * config.in: Rebuilt.
11416 * configure: Rebuilt.
11418 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11419 Jan Kratochvil <jan.kratochvil@redhat.com>
11421 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11422 * Makefile.in (OBS): Add target-utils.o.
11423 (linux-maps.o, target-utils.o): New.
11424 * configure.srv (srv_linux_obj): Add linux-maps.o.
11426 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11428 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11429 function, return 1.
11430 (the_low_target): Install it.
11432 2015-07-14 Pedro Alves <palves@redhat.com>
11434 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11435 Instead, ignore ECHILD, and throw an error for other errnos.
11437 2015-07-10 Pedro Alves <palves@redhat.com>
11439 * event-loop.c (struct callback_event) <data>: Change type to
11440 gdb_client_data instance instead of gdb_client_data pointer.
11441 (append_callback_event): Adjust.
11443 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11445 * linux-aarch64-low.c: Add comments for each linux_target_ops
11446 method. Remove comments already covered in target_ops and
11447 linux_target_ops definitions.
11448 (the_low_target): Add comments for each unimplemented method.
11450 2015-07-09 Yao Qi <yao.qi@linaro.org>
11452 * linux-aarch64-low.c (aarch64_regmap): Remove.
11453 (aarch64_usrregs_info): Remove.
11454 (regs_info): Set field usrregs to NULL.
11456 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11458 * linux-low.c: Include "rsp-low.h"
11459 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11460 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11461 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11462 (handle_btrace_enable_pt): New.
11463 (handle_btrace_general_set): Support "pt".
11464 (handle_btrace_conf_general_set): Support "pt:size".
11466 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11468 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11471 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11473 * linux-aarch64-low.c: Remove comment about endianness.
11474 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11475 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11478 2015-06-24 Gary Benson <gbenson@redhat.com>
11480 * linux-i386-ipa.c (stdint.h): Do not include.
11481 * lynx-i386-low.c (stdint.h): Likewise.
11482 * lynx-ppc-low.c (stdint.h): Likewise.
11483 * mem-break.c (stdint.h): Likewise.
11484 * thread-db.c (stdint.h): Likewise.
11485 * tracepoint.c (stdint.h): Likewise.
11486 * win32-low.c (stdint.h): Likewise.
11488 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11490 * server.c (write_qxfer_response): Update call to
11491 remote_escape_output.
11493 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11494 Jan Kratochvil <jan.kratochvil@redhat.com>
11496 Merge multiple hex conversions.
11497 * gdbreplay.c (tohex): Rename to 'fromhex'.
11498 (logchar): Use fromhex.
11500 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11502 * server.c (handle_qxfer_libraries): Set `version' attribute for
11505 2015-06-10 Gary Benson <gbenson@redhat.com>
11507 * target.h (struct target_ops) <multifs_open>: New field.
11508 <multifs_unlink>: Likewise.
11509 <multifs_readlink>: Likewise.
11510 * linux-low.c (nat/linux-namespaces.h): New include.
11511 (linux_target_ops): Initialize the_target->multifs_open,
11512 the_target->multifs_unlink and the_target->multifs_readlink.
11513 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11514 * hostio.c (hostio_fs_pid): New static variable.
11515 (hostio_handle_new_gdb_connection): New function.
11516 (handle_setfs): Likewise.
11517 (handle_open): Use the_target->multifs_open as appropriate.
11518 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11519 (handle_readlink): Use the_target->multifs_readlink as
11521 (handle_vFile): Handle vFile:setfs packets.
11522 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11523 after target_handle_new_gdb_connection.
11525 2015-06-10 Gary Benson <gbenson@redhat.com>
11527 * configure.ac (AC_CHECK_FUNCS): Add setns.
11528 * config.in: Regenerate.
11529 * configure: Likewise.
11530 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11531 (linux-namespaces.o): New rule.
11532 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11534 2015-06-09 Gary Benson <gbenson@redhat.com>
11536 * hostio.c (handle_open): Process mode argument with
11537 fileio_to_host_mode.
11539 2015-06-01 Yao Qi <yao.qi@linaro.org>
11541 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11542 * linux-x86-low.c: Likewise.
11544 2015-05-28 Don Breazeal <donb@codesourcery.com>
11546 * linux-low.c (handle_extended_wait): Initialize
11547 thread_info.last_resume_kind for new fork children.
11549 2015-05-15 Pedro Alves <palves@redhat.com>
11551 * target.h (target_handle_new_gdb_connection): Rewrite using if
11552 wrapped in do/while.
11554 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11556 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11557 * configure, config.in: Regenerate.
11558 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11561 2015-05-12 Don Breazeal <donb@codesourcery.com>
11563 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11564 PTRACE_EVENT_VFORK_DONE.
11565 (linux_low_ptrace_options, extended_event_reported): Add vfork
11567 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11568 and "vforkdone" for RSP 'T' Stop Reply Packet.
11569 * server.h (report_vfork_events): Declare
11572 2015-05-12 Don Breazeal <donb@codesourcery.com>
11574 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11575 (the_low_target) <new_fork>: Initialize new member.
11576 * linux-arm-low.c (arm_new_fork): New function.
11577 (the_low_target) <new_fork>: Initialize new member.
11578 * linux-low.c (handle_extended_wait): Call new target function
11580 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11581 * linux-mips-low.c (mips_add_watchpoint): New function
11582 extracted from mips_insert_point.
11583 (the_low_target) <new_fork>: Initialize new member.
11584 (mips_linux_new_fork): New function.
11585 (mips_insert_point): Call mips_add_watchpoint.
11586 * linux-x86-low.c (x86_linux_new_fork): New function.
11587 (the_low_target) <new_fork>: Initialize new member.
11589 2015-05-12 Don Breazeal <donb@codesourcery.com>
11591 * linux-low.c (handle_extended_wait): Implement return value,
11592 rename argument 'event_child' to 'event_lwp', handle
11593 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11594 (linux_low_ptrace_options): New function.
11595 (linux_low_filter_event): Call linux_low_ptrace_options,
11596 use different argument fo linux_enable_event_reporting,
11597 use return value from handle_extended_wait.
11598 (extended_event_reported): New function.
11599 (linux_wait_1): Call extended_event_reported and set
11600 status to report fork events.
11601 (linux_write_memory): Add pid to debug message.
11602 (reset_lwp_ptrace_options_callback): New function.
11603 (linux_handle_new_gdb_connection): New function.
11604 (linux_target_ops): Initialize new structure member.
11605 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11606 * lynx-low.c: Initialize new structure member.
11607 * remote-utils.c (prepare_resume_reply): Implement stop reason
11608 "fork" for "T" stop message.
11609 * server.c (handle_query): Call handle_new_gdb_connection.
11610 * server.h (report_fork_events): Declare global flag.
11611 * target.h (struct target_ops) <handle_new_gdb_connection>:
11613 (target_handle_new_gdb_connection): New macro.
11614 * win32-low.c: Initialize new structure member.
11616 2015-05-12 Don Breazeal <donb@codesourcery.com>
11618 * mem-break.c (APPEND_TO_LIST): Define macro.
11619 (clone_agent_expr): New function.
11620 (clone_one_breakpoint): New function.
11621 (clone_all_breakpoints): New function.
11622 * mem-break.h: Declare new functions.
11624 2015-05-12 Don Breazeal <donb@codesourcery.com>
11626 * linux-low.c (linux_supports_fork_events): New function.
11627 (linux_supports_vfork_events): New function.
11628 (linux_target_ops): Initialize new structure members.
11629 (initialize_low): Call linux_check_ptrace_features.
11630 * lynx-low.c (lynx_target_ops): Initialize new structure
11632 * server.c (report_fork_events, report_vfork_events):
11634 (handle_query): Add new features to qSupported packet and
11636 (captured_main): Initialize new global variables.
11637 * target.h (struct target_ops) <supports_fork_events>:
11639 <supports_vfork_events>: New member.
11640 (target_supports_fork_events): New macro.
11641 (target_supports_vfork_events): New macro.
11642 * win32-low.c (win32_target_ops): Initialize new structure
11645 2015-05-12 Gary Benson <gbenson@redhat.com>
11647 * server.c (handle_qxfer_exec_file): Use current process
11650 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11652 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11653 Remove HAVE_PTRACE_GETREGS conditionals.
11654 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11655 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11657 2015-05-08 Yao Qi <yao.qi@linaro.org>
11659 * linux-low.c (linux_supports_conditional_breakpoints): New
11661 (linux_target_ops): Install new target method.
11662 * lynx-low.c (lynx_target_ops): Install NULL hook for
11663 supports_conditional_breakpoints.
11664 * nto-low.c (nto_target_ops): Likewise.
11665 * spu-low.c (spu_target_ops): Likewise.
11666 * win32-low.c (win32_target_ops): Likewise.
11667 * server.c (handle_query): Check
11668 target_supports_conditional_breakpoints.
11669 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11671 (target_supports_conditional_breakpoints): New macro.
11673 2015-05-06 Pedro Alves <palves@redhat.com>
11676 * server.c (start_inferior): If the process exits, mourn it.
11678 2015-04-21 Gary Benson <gbenson@redhat.com>
11680 * hostio.c (fileio_open_flags_to_host): Factored out to
11681 fileio_to_host_openflags in common/fileio.c. Single use
11684 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11686 * linux-xtensa-low.c (xtensa_fill_gregset)
11687 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11690 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11692 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11693 (regs_info): Replace usrregs pointer with NULL.
11695 2015-04-17 Gary Benson <gbenson@redhat.com>
11697 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11698 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11699 * server.c (handle_qxfer_exec_file): New function.
11700 (qxfer_packets): Add exec-file entry.
11701 (handle_query): Report qXfer:exec-file:read as supported packet.
11703 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11705 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11707 2015-04-09 Gary Benson <gbenson@redhat.com>
11709 * hostio-errno.c (errno_to_fileio_error): Remove function.
11710 Update caller to use remote_fileio_to_fio_error.
11712 2015-04-09 Yao Qi <yao.qi@linaro.org>
11714 * linux-low.c (linux_insert_point): Call
11715 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11716 (linux_remove_point): Call remove_memory_breakpoint if type is
11718 * linux-x86-low.c (x86_insert_point): Don't call
11719 insert_memory_breakpoint.
11720 (x86_remove_point): Don't call remove_memory_breakpoint.
11722 2015-04-01 Pedro Alves <palves@redhat.com>
11723 Cleber Rosa <crosa@redhat.com>
11725 * server.c (gdbserver_usage): Reorganize and extend the usage
11728 2015-03-24 Pedro Alves <palves@redhat.com>
11730 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11731 output. Also dump TRAP_TRACE.
11732 (linux_low_filter_event): In debug output, distinguish a
11733 resume_stop SIGSTOP from a delayed SIGSTOP.
11735 2015-03-24 Gary Benson <gbenson@redhat.com>
11737 * linux-x86-low.c (x86_linux_new_thread): Moved to
11739 (x86_linux_prepare_to_resume): Likewise.
11741 2015-03-24 Gary Benson <gbenson@redhat.com>
11743 * Makefile.in (x86-linux-dregs.o): New rule.
11744 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11745 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11746 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11747 (x86_linux_dr_get): Likewise.
11748 (x86_linux_dr_set): Likewise.
11749 (update_debug_registers_callback): Likewise.
11750 (x86_linux_dr_set_addr): Likewise.
11751 (x86_linux_dr_get_addr): Likewise.
11752 (x86_linux_dr_set_control): Likewise.
11753 (x86_linux_dr_get_control): Likewise.
11754 (x86_linux_dr_get_status): Likewise.
11755 (x86_linux_update_debug_registers): Likewise.
11757 2015-03-24 Gary Benson <gbenson@redhat.com>
11759 * linux-x86-low.c (x86_linux_update_debug_registers):
11760 New function, factored out from...
11761 (x86_linux_prepare_to_resume): ...this.
11763 2015-03-24 Gary Benson <gbenson@redhat.com>
11765 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11766 (x86_linux_dr_set): Likewise.
11767 (update_debug_registers_callback): Likewise.
11768 (x86_linux_dr_set_addr): Likewise.
11769 (x86_linux_dr_get_addr): Likewise.
11770 (x86_linux_dr_set_control): Likewise.
11771 (x86_linux_dr_get_control): Likewise.
11772 (x86_linux_dr_get_status): Likewise.
11773 (x86_linux_prepare_to_resume): Likewise.
11775 2015-03-24 Gary Benson <gbenson@redhat.com>
11777 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11778 Use perror_with_name. Pass string through gettext.
11779 (x86_linux_dr_set): Likewise.
11781 2015-03-24 Gary Benson <gbenson@redhat.com>
11783 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11784 (x86_linux_dr_set_addr): ...this.
11785 (x86_dr_low_get_addr): Rename to...
11786 (x86_linux_dr_get_addr): ...this.
11787 (x86_dr_low_set_control): Rename to...
11788 (x86_linux_dr_set_control): ...this.
11789 (x86_dr_low_get_control): Rename to...
11790 (x86_linux_dr_get_control): ...this.
11791 (x86_dr_low_get_status): Rename to...
11792 (x86_linux_dr_get_status): ...this.
11793 (x86_dr_low): Update with new function names.
11795 2015-03-24 Gary Benson <gbenson@redhat.com>
11797 * Makefile.in (x86-linux.o): New rule.
11798 * configure.srv: Add x86-linux.o to relevant targets.
11799 * linux-low.c (lwp_set_arch_private_info): New function.
11800 (lwp_arch_private_info): Likewise.
11801 * linux-x86-low.c: Include nat/x86-linux.h.
11802 (arch_lwp_info): Removed structure.
11803 (update_debug_registers_callback):
11804 Use lwp_set_debug_registers_changed.
11805 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11806 and lwp_set_debug_registers_changed.
11807 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11809 2015-03-24 Gary Benson <gbenson@redhat.com>
11811 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11812 * linux-arm-low.c (arm_new_thread): Likewise.
11813 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11814 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11815 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11816 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11818 2015-03-24 Gary Benson <gbenson@redhat.com>
11820 * linux-low.c (ptid_of_lwp): New function.
11821 (lwp_is_stopped): Likewise.
11822 (lwp_stop_reason): Likewise.
11823 * linux-x86-low.c (update_debug_registers_callback):
11824 Use lwp_is_stopped.
11825 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11828 2015-03-24 Gary Benson <gbenson@redhat.com>
11830 * linux-low.h (linux_stop_lwp): Remove declaration.
11832 2015-03-24 Gary Benson <gbenson@redhat.com>
11834 * linux-low.h: Include nat/linux-nat.h.
11835 * linux-low.c (iterate_over_lwps_args): New structure.
11836 (iterate_over_lwps_filter): New function.
11837 (iterate_over_lwps): Likewise.
11838 * linux-x86-low.c (update_debug_registers_callback):
11839 Update signature to what iterate_over_lwps expects.
11840 Remove PID check that iterate_over_lwps now performs.
11841 (x86_dr_low_set_addr): Use iterate_over_lwps.
11842 (x86_dr_low_set_control): Likewise.
11844 2015-03-24 Gary Benson <gbenson@redhat.com>
11846 * linux-x86-low.c (x86_debug_reg_state): New function.
11847 (x86_linux_prepare_to_resume): Use the above.
11849 2015-03-24 Gary Benson <gbenson@redhat.com>
11851 * linux-low.c (current_lwp_ptid): New function.
11852 * linux-x86-low.c: Include nat/linux-nat.h.
11853 (x86_dr_low_get_addr): Use current_lwp_ptid.
11854 (x86_dr_low_get_control): Likewise.
11855 (x86_dr_low_get_status): Likewise.
11857 2015-03-20 Pedro Alves <palves@redhat.com>
11859 * tracepoint.c (cmd_qtstatus): Make "str" const.
11861 2015-03-20 Pedro Alves <palves@redhat.com>
11863 * server.c (handle_general_set): Make "req_str" const.
11865 2015-03-19 Pedro Alves <palves@redhat.com>
11867 * linux-low.c (linux_resume_one_lwp): Rename to ...
11868 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11869 instead call perror_with_name.
11870 (check_ptrace_stopped_lwp_gone): New function.
11871 (linux_resume_one_lwp): Reimplement as wrapper around
11872 linux_resume_one_lwp_throw that swallows errors if the LWP is
11875 2015-03-19 Pedro Alves <palves@redhat.com>
11877 * linux-low.c (count_events_callback, select_event_lwp_callback):
11878 No longer check whether the thread has resume_stop as last resume
11881 2015-03-19 Pedro Alves <palves@redhat.com>
11883 * linux-low.c (count_events_callback, select_event_lwp_callback):
11884 Use the lwp's status_pending_p field, not the thread's.
11886 2015-03-19 Pedro Alves <palves@redhat.com>
11888 * linux-low.c (select_event_lwp_callback): Update comments to
11889 no longer mention SIGTRAP.
11891 2015-03-18 Gary Benson <gbenson@redhat.com>
11893 * server.c (handle_query): Do not report vFile:fstat as supported.
11895 2015-03-11 Gary Benson <gbenson@redhat.com>
11897 * hostio.c (sys/types.h): New include.
11898 (sys/stat.h): Likewise.
11899 (common-remote-fileio.h): Likewise.
11900 (handle_fstat): New function.
11901 (handle_vFile): Handle vFile:fstat packets.
11903 2015-03-11 Gary Benson <gbenson@redhat.com>
11905 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11906 struct stat.st_blocks and struct stat.st_blksize.
11907 * configure: Regenerate.
11908 * config.in: Likewise.
11909 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11910 (OBS): Add common-remote-fileio.o.
11911 (common-remote-fileio.o): New rule.
11913 2015-03-09 Pedro Alves <palves@redhat.com>
11915 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11916 'struct sockaddr' pointer in 'accept' call.
11918 2015-03-09 Pedro Alves <palves@redhat.com>
11921 2015-03-07 Pedro Alves <palves@redhat.com>
11922 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11923 or <winsock2.h> here. Instead include "gdb_socket.h".
11924 (remote_open): Use union gdb_sockaddr_u.
11925 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11926 or <winsock2.h> here. Instead include "gdb_socket.h".
11927 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11928 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11930 (init_named_socket, gdb_agent_helper_thread): Use union
11933 2015-03-07 Pedro Alves <palves@redhat.com>
11935 * configure.ac (build_warnings): Move
11936 -Wdeclaration-after-statement to the C-specific set.
11937 * configure: Regenerate.
11939 2015-03-07 Pedro Alves <palves@redhat.com>
11941 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11942 or <winsock2.h> here. Instead include "gdb_socket.h".
11943 (remote_open): Use union gdb_sockaddr_u.
11944 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11945 or <winsock2.h> here. Instead include "gdb_socket.h".
11946 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11947 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11949 (init_named_socket, gdb_agent_helper_thread): Use union
11952 2015-03-07 Pedro Alves <palves@redhat.com>
11954 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11957 2015-03-06 Yao Qi <yao.qi@linaro.org>
11959 * linux-aarch64-low.c (aarch64_insert_point): Use
11960 show_debug_regs as a boolean.
11961 (aarch64_remove_point): Likewise.
11963 2015-03-05 Pedro Alves <palves@redhat.com>
11965 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11966 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11967 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11968 * nto-low.c (nto_target_ops): Likewise.
11969 * spu-low.c (spu_target_ops): Likewise.
11970 * win32-low.c (win32_target_ops): Likewise.
11972 2015-03-04 Pedro Alves <palves@redhat.com>
11974 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11975 Decide whether a breakpoint triggered based on the SIGTRAP's
11977 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11978 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11979 (linux_low_filter_event): Check for breakpoints before checking
11981 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11983 (linux_stopped_by_sw_breakpoint)
11984 (linux_supports_stopped_by_sw_breakpoint)
11985 (linux_stopped_by_hw_breakpoint)
11986 (linux_supports_stopped_by_hw_breakpoint): New functions.
11987 (linux_target_ops): Install new target methods.
11989 2015-03-04 Pedro Alves <palves@redhat.com>
11991 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11992 * server.c (swbreak_feature, hwbreak_feature): New globals.
11993 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11994 (captured_main): Clear swbreak_feature and hwbreak_feature.
11995 * server.h (swbreak_feature, hwbreak_feature): Declare.
11996 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11997 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11998 supports_stopped_by_hw_breakpoint>: New fields.
11999 (target_supports_stopped_by_sw_breakpoint)
12000 (target_stopped_by_sw_breakpoint)
12001 (target_supports_stopped_by_hw_breakpoint)
12002 (target_stopped_by_hw_breakpoint): Declare.
12004 2015-03-04 Pedro Alves <palves@redhat.com>
12006 enum lwp_stop_reason -> enum target_stop_reason
12007 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12008 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12009 (linux_wait_1, stuck_in_jump_pad_callback)
12010 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12011 (linux_stopped_by_watchpoint):
12012 * linux-low.h (enum lwp_stop_reason): Delete.
12013 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12014 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12016 2015-03-04 Yao Qi <yao.qi@linaro.org>
12018 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12020 2015-03-03 Gary Benson <gbenson@redhat.com>
12022 * hostio.c (handle_vFile): Fix prefix lengths.
12024 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12026 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12029 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12031 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12032 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12033 (clean): Add "rm -f" for above C files.
12034 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12035 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12036 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12037 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12038 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12039 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12040 (init_registers_s390x_vx_linux64)
12041 (init_registers_s390x_tevx_linux64)
12042 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12043 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12045 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12046 (s390_store_vxrs_high): New functions.
12047 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12049 (s390_arch_setup): Add logic for selecting one of the new target
12050 descriptions. Activate the new vector regsets if applicable.
12051 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12052 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12053 and init_registers_s390x_tevx_linux64.
12055 2015-03-01 Pedro Alves <palves@redhat.com>
12057 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12060 2015-02-27 Pedro Alves <palves@redhat.com>
12062 * linux-x86-low.c (u_debugreg_offset): New function.
12063 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12065 2015-02-27 Pedro Alves <palves@redhat.com>
12067 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12068 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12069 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12070 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12071 (ps_lsetfpregs, ps_getpid)
12072 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12073 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12074 (ps_lsetxregs, ps_plog): Declare.
12076 2015-02-27 Pedro Alves <palves@redhat.com>
12078 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12079 IP_AGENT_EXPORT_FUNC.
12080 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12081 IP_AGENT_EXPORT_FUNC.
12082 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12083 (IP_AGENT_EXPORT): Delete.
12084 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12085 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12086 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12087 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12088 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12089 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12090 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12091 (traceframe_read_count, traceframe_write_count)
12092 (traceframes_created, trace_state_variables, get_raw_reg)
12093 (get_trace_state_variable_value, set_trace_state_variable_value)
12094 (ust_loaded, helper_thread_id, cmd_buf): Use
12095 IPA_SYM_EXPORTED_NAME.
12096 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12097 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12098 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12099 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12100 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12101 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12102 EXTERN_C_PUSH/EXTERN_C_POP.
12103 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12104 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12105 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12106 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12107 (traceframe_write_count, traceframe_read_count)
12108 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12109 (about_to_request_buffer_space, get_trace_state_variable_value)
12110 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12111 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12112 EXTERN_C_PUSH/EXTERN_C_POP.
12113 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12114 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12115 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12116 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12117 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12118 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12119 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12120 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12122 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12123 (IP_AGENT_EXPORT_VAR_DECL): Define.
12124 (tracing): Declare.
12125 (gdb_agent_get_raw_reg): Declare.
12127 2015-02-27 Tom Tromey <tromey@redhat.com>
12128 Pedro Alves <palves@redhat.com>
12130 Rename symbols whose names are reserved C++ keywords throughout.
12132 2015-02-27 Pedro Alves <palves@redhat.com>
12134 * Makefile.in (COMPILER): New, get it from autoconf.
12135 (CXX): Get from autoconf instead.
12136 (COMPILE.pre): Use COMPILER.
12137 (CC-LD): Rename to ...
12138 (CC_LD): ... this. Use COMPILER.
12139 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12140 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12141 * acinclude.m4: Include build-with-cxx.m4.
12142 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12143 Disable -Werror by default if building in C++ mode.
12144 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12145 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12146 the C++ compiler. Save/restore CXXFLAGS too.
12147 * configure: Regenerate.
12149 2015-02-27 Pedro Alves <palves@redhat.com>
12151 * acinclude.m4: Include libiberty.m4.
12152 * configure.ac: Call libiberty_INIT.
12153 * config.in, configure: Regenerate.
12155 2015-02-26 Pedro Alves <palves@redhat.com>
12157 * linux-low.c (linux_wait_1): When incrementing the PC past a
12158 program breakpoint always use the_low_target.breakpoint_len as
12159 increment, rather than the maximum between that and
12160 the_low_target.decr_pc_after_break.
12162 2015-02-23 Pedro Alves <palves@redhat.com>
12164 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12165 thread was doing a step-over; always adjust the PC if
12166 we stepped over a permanent breakpoint.
12167 (linux_wait_1): If we stepped over breakpoint that was on top of a
12168 permanent breakpoint, manually advance the PC past it.
12170 2015-02-23 Pedro Alves <palves@redhat.com>
12172 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12174 (x86_fill_gregset, x86_store_gregset): Use it when handling
12177 2015-02-20 Pedro Alves <palves@redhat.com>
12179 * thread-db.c: Include "nat/linux-procfs.h".
12180 (thread_db_init): Skip listing new threads if the kernel supports
12181 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12183 2015-02-20 Pedro Alves <palves@redhat.com>
12185 * linux-low.c (status_pending_p_callback): Use ptid_match.
12187 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12189 PR breakpoints/16812
12190 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12191 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12192 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12194 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12196 PR breakpoints/15956
12197 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12199 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12201 * linux-low.c (linux_low_btrace_conf): Print size.
12202 * server.c (handle_btrace_conf_general_set): New.
12203 (hanle_general_set): Call handle_btrace_conf_general_set.
12204 (handle_query): Report Qbtrace-conf:bts:size as supported.
12206 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12208 * linux-low.c (linux_low_enable_btrace): Update parameters.
12209 (linux_low_btrace_conf): New.
12210 (linux_target_ops)<to_btrace_conf>: Initialize.
12211 * server.c (current_btrace_conf): New.
12212 (handle_btrace_enable): Rename to ...
12213 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12214 to target_enable_btrace. Update comment. Update users.
12215 (handle_qxfer_btrace_conf): New.
12216 (qxfer_packets): Add btrace-conf entry.
12217 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12218 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12219 (target_ops)<read_btrace_conf>: New.
12220 (target_enable_btrace): Update parameters.
12221 (target_read_btrace_conf): New.
12223 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12225 * server.c (handle_btrace_general_set): Remove call to
12226 target_supports_btrace.
12227 (supported_btrace_packets): New.
12228 (handle_query): Call supported_btrace_packets.
12229 * target.h: include btrace-common.h.
12230 (btrace_target_info): Removed.
12231 (supports_btrace, target_supports_btrace): Update parameters.
12233 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12235 * Makefile.in (SFILES): Add common/btrace-common.c.
12236 (OBS): Add common/btrace-common.o.
12237 (btrace-common.o): Add build rules.
12238 * linux-low: Include btrace-common.h.
12239 (linux_low_read_btrace): Use struct btrace_data. Call
12240 btrace_data_init and btrace_data_fini.
12242 2015-02-06 Pedro Alves <palves@redhat.com>
12244 * thread-db.c (find_new_threads_callback): Add debug output.
12246 2015-02-04 Pedro Alves <palves@redhat.com>
12248 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12249 (resume_stopped_resumed_lwps): New function.
12250 (linux_wait_for_event_filtered): Use it.
12252 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12254 * Makefile.in (SFILES): Add linux-personality.c.
12255 (linux-personality.o): New rule.
12256 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12257 list of objects to be built.
12258 * linux-low.c: Include nat/linux-personality.h.
12259 (linux_create_inferior): Remove code to disable address space
12260 randomization (moved to ../nat/linux-personality.c). Create
12261 cleanup to disable address space randomization.
12263 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12265 * Makefile.in (posix-strerror.o): New rule.
12266 (mingw-strerror.o): Likewise.
12267 * configure: Regenerated.
12268 * configure.ac: Source file ../common/common.host. Initialize new
12269 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12271 2015-01-14 Yao Qi <yao@codesourcery.com>
12273 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12274 (ppc-linux.o): New rule.
12275 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12276 * configure.ac: AC_CHECK_FUNCS(getauxval).
12277 * config.in: Re-generated.
12278 * configure: Re-generated.
12279 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12280 ppc64_64bit_inferior_p
12282 2015-01-14 Yao Qi <yao@codesourcery.com>
12284 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12285 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12286 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12287 (PT_ORIG_R3, PT_TRAP): Likewise.
12288 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12289 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12290 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12292 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12294 * i387-fp.c (i387_cache_to_xsave): In look over
12295 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12296 zmmh_low_space field by use of zmmh_high_space.
12298 2015-01-09 Pedro Alves <palves@redhat.com>
12300 * linux-low.c (step_over_bkpt): Move higher up in the file.
12301 (handle_extended_wait): Don't store the stop_pc here.
12302 (get_stop_pc): Adjust comments and rename to ...
12303 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12304 stopped for a software breakpoint or hardware breakpoint.
12305 (thread_still_has_status_pending_p): New function.
12306 (status_pending_p_callback): Use
12307 thread_still_has_status_pending_p. If the event is no longer
12308 interesting, resume the LWP.
12309 (handle_tracepoints): Add assert.
12310 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12311 (wstatus_maybe_breakpoint): New function.
12312 (cancel_breakpoint): Delete function.
12313 (check_stopped_by_watchpoint): New function, factored out from
12314 linux_low_filter_event.
12315 (lp_status_maybe_breakpoint): Delete function.
12316 (linux_low_filter_event): Remove filter_ptid argument.
12317 Leave thread group exits pending here. Store the LWP's stop PC.
12318 Always leave events pending.
12319 (linux_wait_for_event_filtered): Pull all events out of the
12320 kernel, and leave them all pending.
12321 (count_events_callback, select_event_lwp_callback): Consider all
12323 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12324 (select_event_lwp): Only give preference to the stepping LWP in
12325 all-stop mode. Adjust comments.
12326 (ignore_event): New function.
12327 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12328 references to cancel_breakpoints. Adjust to renames. Also give
12329 equal priority to all LWPs that have had events in non-stop mode.
12330 If reporting a software breakpoint event, unadjust the LWP's PC.
12331 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12332 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12334 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12335 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12336 (linux_stopped_by_watchpoint): Adjust.
12337 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12338 * linux-low.h (enum lwp_stop_reason): New.
12339 (struct lwp_info) <stop_pc>: Adjust comment.
12340 <stopped_by_watchpoint>: Delete field.
12341 <stop_reason>: New field.
12342 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12343 * mem-break.c (software_breakpoint_inserted_here)
12344 (hardware_breakpoint_inserted_here): New function.
12345 * mem-break.h (software_breakpoint_inserted_here)
12346 (hardware_breakpoint_inserted_here): Declare.
12347 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12348 (cancel_breakpoints): Delete.
12349 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12350 (upload_fast_traceframes): Remove references to
12351 cancel_breakpoints.
12353 2015-01-09 Pedro Alves <palves@redhat.com>
12355 * thread-db.c (find_new_threads_callback): Ignore thread if the
12356 kernel thread ID is -1.
12358 2015-01-09 Pedro Alves <palves@redhat.com>
12360 * linux-low.c (linux_attach_fail_reason_string): Move to
12361 nat/linux-ptrace.c, and rename.
12362 (linux_attach_lwp): Update comment.
12363 (attach_proc_task_lwp_callback): New function.
12364 (linux_attach): Adjust to rename and use
12365 linux_proc_attach_tgid_threads.
12366 (linux_attach_fail_reason_string): Delete declaration.
12368 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12370 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12371 * server.c (gdbserver_version): Likewise.
12373 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12375 * remote-utils.c: Include ctype.h.
12376 (input_interrupt): Explicitly handle the case when the char
12377 received is the NUL byte. Improve the printing of non-ASCII
12380 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12382 * linux-low.c (linux_low_filter_event): Update call to
12383 linux_enable_event_reporting following the addition of
12384 a new parameter to that function.
12386 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12389 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12390 (AARCH64_FPCR_REGNO): Likewise.
12391 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12392 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12393 (aarch64_store_fpregset): Likewise.
12395 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12397 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12398 Remove FIXME comment about assumption about N.
12400 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12402 * configure.ac: If large-file support is disabled in GDBserver,
12403 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12404 * configure: Regenerate.
12406 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12408 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12409 warning upon ENODATA from ptrace.
12410 * linux-s390-low.c (s390_store_tdb): New.
12411 (s390_regsets): Add regset for NT_S390_TDB.
12413 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12415 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12416 without a fill_function.
12417 * linux-s390-low.c (s390_fill_last_break): Remove.
12418 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12419 (s390_arch_setup): Use regset's size instead of fill_function for
12420 loop end condition.
12422 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12424 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12425 the regset's store function when ptrace returned an error.
12426 * regcache.c (get_thread_regcache): Invalidate register cache
12427 before fetching inferior's registers.
12429 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12431 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12432 while-loop as for-loop.
12433 (regsets_store_inferior_registers): Likewise.
12435 2014-11-28 Yao Qi <yao@codesourcery.com>
12437 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12438 * config.in, configure: Re-generate.
12439 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12442 2014-11-21 Yao Qi <yao@codesourcery.com>
12444 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12445 (AC_CHECK_HEADERS): Remove malloc.h.
12446 * configure: Re-generated.
12447 * config.in: Re-generated.
12448 * server.h: Don't include alloca.h and malloc.h.
12449 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12450 Don't include malloc.h.
12452 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12454 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12455 corresponding ERRNO check in same block.
12457 2014-11-12 Pedro Alves <palves@redhat.com>
12459 * server.c (cont_thread): Update comment.
12460 (start_inferior, attach_inferior): No longer clear cont_thread.
12461 (handle_v_cont): No longer set cont_thread.
12462 (captured_main): Clear cont_thread each time a GDB connects.
12464 2014-11-12 Pedro Alves <palves@redhat.com>
12466 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12467 thread, and don't resume all threads if the Hc thread has exited.
12469 2014-11-12 Pedro Alves <palves@redhat.com>
12471 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12472 the process group instead of to a specific LWP.
12474 2014-10-15 Pedro Alves <palves@redhat.com>
12477 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12479 (arm_set_thread_context): Delete.
12480 (the_low_target): Adjust.
12481 * win32-i386-low.c (debug_registers_changed)
12482 (debug_registers_used): Delete.
12483 (update_debug_registers_callback): New function.
12484 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12485 needing to update their debug registers.
12486 (win32_get_current_dr): New function.
12487 (x86_dr_low_get_addr, x86_dr_low_get_control)
12488 (x86_dr_low_get_status): Fetch the debug register from the thread
12490 (i386_initial_stuff): Adjust.
12491 (i386_get_thread_context): Remove current_event parameter. Don't
12492 clear debug_registers_changed nor copy DR values to
12494 (i386_set_thread_context): Delete.
12495 (i386_prepare_to_resume): New function.
12496 (i386_thread_added): Mark the thread as needing to update irs
12498 (the_low_target): Remove i386_set_thread_context and install
12499 i386_prepare_to_resume.
12500 * win32-low.c (win32_get_thread_context): Adjust.
12501 (win32_set_thread_context): Use SetThreadContext
12503 (win32_prepare_to_resume): New function.
12504 (win32_require_context): New function, factored out from ...
12505 (thread_rec): ... this.
12506 (continue_one_thread): Call win32_prepare_to_resume on each thread
12507 we're about to continue.
12508 (win32_resume): Call win32_prepare_to_resume on the event thread.
12509 * win32-low.h (struct win32_thread_info)
12510 <debug_registers_changed>: New field.
12511 (struct win32_target_ops): Change prototype of set_thread_context,
12512 delete set_thread_context and add prepare_to_resume.
12513 (win32_require_context): New declaration.
12515 2014-10-08 Gary Benson <gbenson@redhat.com>
12517 * server.h: Do not include common-exceptions.h.
12519 2014-10-08 Gary Benson <gbenson@redhat.com>
12521 * server.h: Do not include cleanups.h.
12523 2014-09-30 James Hogan <james.hogan@imgtec.com>
12525 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12526 mips64-dsp-linux.c.
12528 2014-09-23 Yao Qi <yao@codesourcery.com>
12530 * linux-low.c (lp_status_maybe_breakpoint): New function.
12531 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12532 (count_events_callback): Likewise.
12533 (select_event_lwp_callback): Likewise.
12534 (cancel_breakpoints_callback): Likewise.
12536 2014-09-19 Don Breazeal <donb@codesourcery.com>
12538 * linux-low.c (handle_extended_wait): Call
12539 linux_ptrace_get_extended_event.
12540 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12541 linux_is_extended_waitstatus.
12543 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12545 * Makefile.in (CPPFLAGS): Define.
12546 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12547 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12549 2014-09-16 Gary Benson <gbenson@redhat.com>
12551 * inferiors.h (current_inferior): Renamed as...
12552 (current_thread): New variable. All uses updated.
12553 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12554 (maybe_move_out_of_jump_pad): Likewise.
12555 (cancel_breakpoint): Likewise.
12556 (linux_low_filter_event): Likewise.
12557 (wait_for_sigstop): Likewise.
12558 (linux_resume_one_lwp): Likewise.
12559 (need_step_over_p): Likewise.
12560 (start_step_over): Likewise.
12561 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12562 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12563 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12564 and save_inferior as saved_thread.
12565 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12567 (regcache_invalidate_thread): Likewise.
12568 * remote-utils.c (prepare_resume_reply): Likewise.
12569 * thread-db.c (thread_db_get_tls_address): Likewise.
12570 (disable_thread_event_reporting): Likewise.
12571 (remove_thread_event_breakpoints): Likewise.
12572 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12574 * target.h (set_desired_inferior): Renamed as...
12575 (set_desired_thread): New declaration. All uses updated.
12576 * server.c (myresume): Updated comment to reference thread instead
12578 (handle_serial_event): Likewise.
12579 (handle_target_event): Likewise.
12581 2014-09-12 Tom Tromey <tromey@redhat.com>
12582 Gary Benson <gbenson@redhat.com>
12584 * regcache.h: Include common-regcache.h.
12585 (regcache_read_pc): Don't declare.
12586 * regcache.c (get_thread_regcache_for_ptid): New function.
12588 2014-09-11 Tom Tromey <tromey@redhat.com>
12589 Gary Benson <gbenson@redhat.com>
12591 * symbol.c: New file.
12592 * Makefile.in (SFILES): Add symbol.c.
12593 (OBS): Add symbol.o.
12595 2014-09-11 Gary Benson <gbenson@redhat.com>
12597 * target.c (target_stop_ptid, target_continue_ptid): New
12600 2014-09-11 Tom Tromey <tromey@redhat.com>
12601 Gary Benson <gbenson@redhat.com>
12603 * target.h: Include target/target.h.
12604 * target.c (target_read_memory, target_read_uint32)
12605 (target_write_memory): New functions.
12607 2014-09-11 Gary Benson <gbenson@redhat.com>
12609 * server.h (debug_hw_points): Don't declare.
12610 * server.c (debug_hw_points): Don't define. Replace all uses
12611 with show_debug_regs.
12612 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12613 all uses with show_debug_regs.
12615 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12617 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12618 endianness into account.
12619 (ppc_supply_ptrace_register): Likewise.
12621 2014-09-03 James Hogan <james.hogan@imgtec.com>
12623 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12624 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12626 2014-09-03 Gary Benson <gbenson@redhat.com>
12628 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12629 ALL_DEBUG_ADDRESS_REGISTERS.
12631 2014-09-02 Gary Benson <gbenson@redhat.com>
12633 * i386-low.h: Renamed as...
12634 * x86-low.h: New file. All type, function and variable name
12635 prefixes changed from "i386_" to "x86_". All references updated.
12636 * i386-low.c: Renamed as...
12637 * x86-low.c: New file. All type, function and variable name
12638 prefixes changed from "i386_" to "x86_". All references updated.
12640 2014-09-02 Gary Benson <gbenson@redhat.com>
12642 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12643 (x86_linux_new_thread): Likewise.
12645 2014-08-29 Gary Benson <gbenson@redhat.com>
12647 * server.h (setjmp.h): Do not include.
12648 (toplevel): Do not declare.
12649 (common-exceptions.h): Include.
12650 (cleanups.h): Likewise.
12651 * server.c (toplevel): Do not define.
12652 (exit_code): New static global.
12653 (detach_or_kill_for_exit_cleanup): New function.
12654 (main): New function. Original main renamed to...
12655 (captured_main): New function.
12656 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12658 2014-08-29 Gary Benson <gbenson@redhat.com>
12660 * Makefile.in (SFILES): Add common/common-exceptions.c.
12661 (OBS): Add common-exceptions.o.
12662 (common-exceptions.o): New rule.
12663 * utils.c (prepare_to_throw_exception): New function.
12665 2014-08-29 Gary Benson <gbenson@redhat.com>
12667 * config.in: Regenerate.
12668 * configure: Likewise.
12670 2014-08-29 Gary Benson <gbenson@redhat.com>
12672 * Makefile.in (SFILES): Add common/cleanups.c.
12674 (cleanups.o): New rule.
12676 2014-08-29 Gary Benson <gbenson@redhat.com>
12678 * utils.c (internal_vwarning): New function.
12680 2014-08-28 Gary Benson <gbenson@redhat.com>
12682 * utils.h (fatal): Remove declaration.
12683 * utils.c (fatal): Remove function.
12685 2014-08-28 Gary Benson <gbenson@redhat.com>
12687 * tracepoint.c (gdb_agent_init): Replace fatal with
12689 (initialize_tracepoint): Likewise.
12691 2014-08-28 Gary Benson <gbenson@redhat.com>
12693 * remote-utils.c (remote_prepare): Replace fatal with error.
12695 2014-08-28 Gary Benson <gbenson@redhat.com>
12697 * linux-low.c (linux_async): Replace fatal with warning.
12698 Tidy up and return.
12699 (linux_start_non_stop): Return -1 if linux_async failed.
12701 2014-08-28 Gary Benson <gbenson@redhat.com>
12703 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12705 (i386_dr_low_get_addr): Remove vague comment.
12706 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12709 2014-08-28 Gary Benson <gbenson@redhat.com>
12711 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12712 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12714 (linux_resume_one_lwp): Likewise.
12715 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12717 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12718 with internal_error.
12719 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12720 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12721 (find_register_by_name): Replace fatal with internal_error.
12722 (find_regno): Likewise.
12723 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12724 * thread-db.c (thread_db_create_event): Likewise.
12725 (thread_db_load_search): Likewise.
12726 (try_thread_db_load_1): Likewise.
12727 * tracepoint.c (get_jump_space_head): Replace fatal with
12729 (claim_trampoline_space): Likewise.
12730 (have_fast_tracepoint_trampoline_buffer): Likewise.
12731 (cmd_qtstart): Likewise.
12732 (stop_tracing): Likewise.
12733 (fast_tracepoint_collecting): Likewise.
12734 (target_malloc): Likewise.
12735 (download_tracepoint): Likewise.
12736 (download_trace_state_variables): Replace check with gdb_assert.
12737 (upload_fast_traceframes): Replace fatal with internal_error.
12739 2014-08-19 Tom Tromey <tromey@redhat.com>
12740 Gary Benson <gbenson@redhat.com>
12742 * Makefile.in (SFILES): Add common/common-debug.c.
12743 (OBS): Add common-debug.o.
12744 (common-debug.o): New rule.
12745 * debug.h (debug_printf): Don't declare.
12746 * debug.c (debug_printf): Renamed and rewritten as...
12747 (debug_vprintf): New function.
12749 2014-08-19 Gary Benson <gbenson@redhat.com>
12751 * utils.h: Do not include print-utils.h.
12753 2014-08-19 Tom Tromey <tromey@redhat.com>
12754 Gary Benson <gbenson@redhat.com>
12756 * server.h: Add static assertion.
12757 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12759 2014-08-19 Tom Tromey <tromey@redhat.com>
12760 Gary Benson <gbenson@redhat.com>
12762 * Makefile.in (SFILES): Add common/errors.c.
12763 (OBS): Add errors.o.
12764 (IPA_OBS): Add errors-ipa.o.
12765 (errors.o): New rule.
12766 (errors-ipa.o): Likewise.
12767 * utils.h (perror_with_name, error, warning): Don't declare.
12768 * utils.c (warning): Renamed and rewritten as...
12769 (vwarning): New function.
12770 (error): Renamed and rewritten as...
12771 (verror): New function.
12772 (internal_error): Renamed and rewritten as...
12773 (internal_verror): New function.
12775 2014-08-07 Gary Benson <gbenson@redhat.com>
12777 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12778 * configure: Regenerate.
12779 * config.in: Likewise.
12780 * server.h: Do not include errno.h.
12781 * event-loop.c: Likewise.
12782 * hostio-errno.c: Likewise.
12783 * linux-low.c: Likewise.
12784 * remote-utils.c: Likewise.
12785 * spu-low.c: Likewise.
12786 * utils.c: Likewise.
12787 * gdbreplay.c: Unconditionally include errno.h.
12789 2014-08-07 Gary Benson <gbenson@redhat.com>
12791 * server.h: Do not include string.h.
12792 * event-loop.c: Likewise.
12793 * linux-low.c: Likewise.
12794 * regcache.c: Likewise.
12795 * remote-utils.c: Likewise.
12796 * spu-low.c: Likewise.
12797 * utils.c: Likewise.
12799 2014-08-07 Gary Benson <gbenson@redhat.com>
12801 * server.h: Do not include gdb_assert.h.
12803 2014-08-07 Gary Benson <gbenson@redhat.com>
12805 * server.h: Do not include common-utils.h.
12807 2014-08-07 Gary Benson <gbenson@redhat.com>
12809 * server.h: Do not include ptid.h.
12810 * notif.h: Likewise.
12812 2014-08-07 Gary Benson <gbenson@redhat.com>
12814 * server.h: Do not include gdb_locale.h.
12816 2014-08-07 Gary Benson <gbenson@redhat.com>
12818 * server.h: Do not include gdb/signals.h.
12819 * win32-low.c: Likewise.
12821 2014-08-07 Gary Benson <gbenson@redhat.com>
12823 * server.h: Do not include pathmax.h.
12825 2014-08-07 Gary Benson <gbenson@redhat.com>
12827 * server.h: Do not include libiberty.h.
12828 * linux-bfin-low.c: Likewise.
12830 2014-08-07 Gary Benson <gbenson@redhat.com>
12832 * server.h: Do not include ansidecl.h.
12834 2014-08-07 Gary Benson <gbenson@redhat.com>
12836 * linux-x86-low.c: Do not include stddef.h.
12837 * lynx-ppc-low.c: Likewise.
12838 * tracepoint.c: Likewise.
12840 2014-08-07 Gary Benson <gbenson@redhat.com>
12842 * server.h: Do not include stdarg.h.
12843 * nto-low.c: Likewise.
12845 2014-08-07 Gary Benson <gbenson@redhat.com>
12847 * server.h: Do not include stdlib.h.
12848 * inferiors.c: Likewise.
12849 * linux-low.c: Likewise.
12850 * regcache.c: Likewise.
12851 * spu-low.c: Likewise.
12852 * tracepoint.c: Likewise.
12853 * utils.c: Likewise.
12855 2014-08-07 Gary Benson <gbenson@redhat.com>
12857 * server.h: Do not include stdio.h.
12858 * linux-low.c: Likewise.
12859 * remote-utils.c: Likewise.
12860 * spu-low.c: Likewise.
12861 * utils.c: Likewise.
12862 * wincecompat.c: Likewise.
12864 2014-08-06 Gary Benson <gbenson@redhat.com>
12866 * regcache.c (init_register_cache): Move conditionals inside if.
12868 2014-08-06 Gary Benson <gbenson@redhat.com>
12870 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12872 2014-07-31 Gary Benson <gbenson@redhat.com>
12874 * ax.h: Do not include server.h.
12875 * gdbthread.h: Likewise.
12876 * lynx-low.h: Likewise.
12877 * notif.h: Likewise.
12879 2014-07-30 Gary Benson <gbenson@redhat.com>
12881 * server.h: Include common-defs.h.
12882 Do not include config.h or build-gnulib-gdbserver/config.h.
12884 2014-07-30 Gary Benson <gbenson@redhat.com>
12886 * hostio-errno.c: Move server.h to top of includes list.
12887 * inferiors.c: Likewise.
12888 * linux-x86-low.c: Likewise.
12889 * notif.c: Include server.h.
12891 2014-07-24 Tom Tromey <tromey@redhat.com>
12892 Gary Benson <gbenson@redhat.com>
12894 * server.h (CORE_ADDR): Now unsigned.
12896 2014-07-16 Pedro Alves <palves@redhat.com>
12898 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12900 2014-07-15 Pedro Alves <palves@redhat.com>
12902 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12905 2014-07-11 Pedro Alves <palves@redhat.com>
12907 * linux-low.c (kill_wait_lwp): New function, based on
12908 kill_one_lwp_callback, but use my_waitpid directly.
12909 (kill_one_lwp_callback, linux_kill): Use it.
12911 2014-06-23 Pedro Alves <palves@redhat.com>
12913 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12914 before setting DR0..DR3.
12916 2014-06-20 Gary Benson <gbenson@redhat.com>
12918 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12919 * configure: Regenerated.
12920 * config.in: Likewise.
12922 2014-06-20 Gary Benson <gbenson@redhat.com>
12924 * Makefile.in (SFILES): Update locations for files moved
12925 from common to nat.
12926 (object file files): Reordered.
12928 2014-06-20 Gary Benson <gbenson@redhat.com>
12930 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12931 (i386_dr_low_set_addr): Likewise.
12932 (i386_dr_low_get_addr): Likewise.
12933 (i386_dr_low_can_set_control): Likewise.
12934 (i386_dr_low_set_control): Likewise.
12935 (i386_dr_low_get_control): Likewise.
12936 (i386_dr_low_get_status): Likewise.
12937 (i386_get_debug_register_length): Likewise.
12938 * linux-x86-low.c (i386_dr_low_set_addr):
12939 Changed signature. Made static.
12940 (i386_dr_low_get_addr): Likewise.
12941 (i386_dr_low_set_control): Likewise.
12942 (i386_dr_low_get_control): Likewise.
12943 (i386_dr_low_get_status): Likewise.
12944 (i386_dr_low): New global variable.
12945 * win32-i386-low.c (i386_dr_low_set_addr):
12946 Changed signature. Made static.
12947 (i386_dr_low_get_addr): Likewise.
12948 (i386_dr_low_set_control): Likewise.
12949 (i386_dr_low_get_control): Likewise.
12950 (i386_dr_low_get_status): Likewise.
12951 (i386_dr_low): New global variable.
12953 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12955 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12956 * Makefile.in (AR, AR_FLAGS): Define.
12957 * configure: Regenerate.
12959 2014-06-19 Gary Benson <gbenson@redhat.com>
12961 * Makefile.in (i386-dregs.o): New rule.
12962 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12963 * i386-low.c (target.h): Remove include.
12964 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12965 (DR_CONTROL_SHIFT): Likewise.
12966 (DR_CONTROL_SIZE): Likewise.
12967 (DR_RW_EXECUTE): Likewise.
12968 (DR_RW_WRITE): Likewise.
12969 (DR_RW_READ): Likewise.
12970 (DR_RW_IORW): Likewise.
12971 (DR_LEN_1): Likewise.
12972 (DR_LEN_2): Likewise.
12973 (DR_LEN_4): Likewise.
12974 (DR_LEN_8): Likewise.
12975 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12976 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12977 (DR_ENABLE_SIZE): Likewise.
12978 (DR_LOCAL_SLOWDOWN): Likewise.
12979 (DR_GLOBAL_SLOWDOWN): Likewise.
12980 (DR_CONTROL_RESERVED): Likewise.
12981 (I386_DR_CONTROL_MASK): Likewise.
12982 (I386_DR_VACANT): Likewise.
12983 (I386_DR_LOCAL_ENABLE): Likewise.
12984 (I386_DR_GLOBAL_ENABLE): Likewise.
12985 (I386_DR_DISABLE): Likewise.
12986 (I386_DR_SET_RW_LEN): Likewise.
12987 (I386_DR_GET_RW_LEN): Likewise.
12988 (I386_DR_WATCH_HIT): Likewise.
12989 (i386_wp_op_t): Likewise.
12990 (i386_show_dr): Likewise.
12991 (i386_length_and_rw_bits): Likewise.
12992 (i386_insert_aligned_watchpoint): Likewise.
12993 (i386_remove_aligned_watchpoint): Likewise.
12994 (i386_handle_nonaligned_watchpoint): Likewise.
12995 i386_update_inferior_debug_regs(): Likewise.
12996 (i386_dr_insert_watchpoint): Likewise.
12997 (i386_dr_remove_watchpoint): Likewise.
12998 (i386_dr_region_ok_for_watchpoint): Likewise.
12999 (i386_dr_stopped_data_address): Likewise.
13000 (i386_dr_stopped_by_watchpoint): Likewise.
13002 2014-06-19 Gary Benson <gbenson@redhat.com>
13004 * i386-low.c (i386_dr_show): Renamed to
13005 i386_show_dr and made static. All uses updated.
13006 (i386_dr_length_and_rw_bits): Renamed to
13007 i386_length_and_rw_bits and made static.
13009 (i386_dr_insert_aligned_watchpoint): Renamed to
13010 i386_insert_aligned_watchpoint and made static.
13012 (i386_dr_remove_aligned_watchpoint): Renamed to
13013 i386_remove_aligned_watchpoint and made static.
13015 (i386_dr_update_inferior_debug_regs): Renamed to
13016 i386_update_inferior_debug_regs and made static.
13019 2014-06-18 Gary Benson <gbenson@redhat.com>
13021 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13022 (i386_dr_low_can_set_control): Likewise.
13023 (i386_get_debug_register_length): Likewise.
13024 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13025 (i386_dr_low_can_set_control): Likewise.
13026 (i386_get_debug_register_length): Likewise.
13028 2014-06-17 Gary Benson <gbenson@redhat.com>
13030 * i386-low.h (i386-dregs.h): New include.
13031 (DR_FIRSTADDR): Now in i386-dregs.h.
13032 (DR_LASTADDR): Likewise.
13033 (DR_NADDR): Likewise.
13034 (DR_STATUS): Likewise.
13035 (DR_CONTROL): Likewise.
13036 (i386_debug_reg_state): Likewise.
13037 (i386_dr_insert_watchpoint): Likewise.
13038 (i386_dr_remove_watchpoint): Likewise.
13039 (i386_dr_region_ok_for_watchpoint): Likewise.
13040 (i386_dr_stopped_data_address): Likewise.
13041 (i386_dr_stopped_by_watchpoint): Likewise.
13042 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13044 2014-06-18 Gary Benson <gbenson@redhat.com>
13046 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13047 i386_dr_insert_watchpoint.
13048 (i386_low_remove_watchpoint): Renamed to
13049 i386_dr_remove_watchpoint.
13050 (i386_low_region_ok_for_watchpoint): Renamed to
13051 i386_dr_region_ok_for_watchpoint.
13052 (i386_low_stopped_data_address): Renamed to
13053 i386_dr_stopped_data_address.
13054 (i386_low_stopped_by_watchpoint): Renamed to
13055 i386_dr_stopped_by_watchpoint.
13056 * i386-low.c (i386_show_dr): Renamed to
13057 i386_dr_show and made nonstatic. All uses updated.
13058 (i386_length_and_rw_bits): Renamed to
13059 i386_dr_length_and_rw_bits and made nonstatic.
13061 (i386_insert_aligned_watchpoint): Renamed to
13062 i386_dr_insert_aligned_watchpoint and made nonstatic.
13064 (i386_remove_aligned_watchpoint): Renamed to
13065 i386_dr_remove_aligned_watchpoint and made nonstatic.
13067 (i386_update_inferior_debug_regs): Renamed to
13068 i386_dr_update_inferior_debug_regs and made nonstatic.
13070 (i386_low_insert_watchpoint): Renamed to
13071 i386_dr_insert_watchpoint. All uses updated.
13072 (i386_low_remove_watchpoint): Renamed to
13073 i386_dr_remove_watchpoint. All uses updated.
13074 (i386_low_region_ok_for_watchpoint): Renamed to
13075 i386_dr_region_ok_for_watchpoint. All uses updated.
13076 (i386_low_stopped_data_address): Renamed to
13077 i386_dr_stopped_data_address. All uses updated.
13078 (i386_low_stopped_by_watchpoint): Renamed to
13079 i386_dr_stopped_by_watchpoint. All uses updated.
13081 2014-06-18 Gary Benson <gbenson@redhat.com>
13083 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13084 (i386_dr_low_can_set_control): Likewise.
13085 (i386_insert_aligned_watchpoint): New check.
13087 2014-06-18 Gary Benson <gbenson@redhat.com>
13089 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13092 2014-06-18 Gary Benson <gbenson@redhat.com>
13094 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13095 instead of fatal and error.
13096 (i386_handle_nonaligned_watchpoint): Likewise.
13098 2014-06-18 Gary Benson <gbenson@redhat.com>
13100 * i386-low.c (i386_get_debug_register_length): New macro.
13101 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13102 (i386_show_dr): Use debug_printf instead of fprintf. Use
13103 phex to format values.
13105 2014-06-18 Gary Benson <gbenson@redhat.com>
13107 * i386-low.h: Comment changes.
13108 * i386-low.c: Likewise.
13110 2014-06-18 Gary Benson <gbenson@redhat.com>
13112 * i386-low.c: Whitespace changes.
13114 2014-06-12 Tom Tromey <tromey@redhat.com>
13116 * utils.c (freeargv): Remove.
13118 2014-06-12 Tom Tromey <tromey@redhat.com>
13120 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13121 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13122 (parse_debug_format_options): Likewise.
13123 (gdbserver_usage): Likewise.
13124 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13125 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13126 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13128 ($(LIBGNU)): Depend on libiberty.
13129 (all-lib): Recurse into all subdirs.
13130 (install-only): Invoke "install" target in subdirs.
13131 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13133 * configure: Rebuild.
13134 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13135 for vasprintf, vsnprintf, or gettimeofday.
13136 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13139 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13141 * development.sh: Delete.
13142 * Makefile.in (config.status): Adjust dependency on development.sh.
13143 * configure.ac: Adjust development.sh source call.
13144 * configure: Regenerate.
13146 2014-06-02 Pedro Alves <palves@redhat.com>
13148 * ax.c (gdb_free_agent_expr): New function.
13149 * ax.h (gdb_free_agent_expr): New declaration.
13150 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13152 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13154 (clear_breakpoint_conditions_and_commands): New function.
13155 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13156 (clear_breakpoint_conditions_and_commands): New declaration.
13158 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13160 * linux-aarch64-low.c (asm/ptrace.h): Include.
13162 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13164 Fix TLS access for -static -pthread.
13165 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13166 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13167 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13169 2014-05-20 Pedro Alves <palves@redhat.com>
13171 * linux-aarch64-low.c (aarch64_insert_point)
13172 (aarch64_remove_point): No longer check whether the type is
13173 supported here. Adjust to new interface.
13174 (the_low_target): Install aarch64_supports_z_point_type as
13175 supports_z_point_type method.
13176 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13177 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13178 instead of a Z packet char. Adjust.
13179 (arm_supports_z_point_type): New function.
13180 (arm_insert_point, arm_remove_point): Adjust to new interface.
13181 (the_low_target): Install arm_supports_z_point_type.
13182 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13183 (cris_insert_point, cris_remove_point): Adjust to new interface.
13184 Don't check whether the type is supported here.
13185 (the_low_target): Install cris_supports_z_point_type.
13186 * linux-low.c (linux_supports_z_point_type): New function.
13187 (linux_insert_point, linux_remove_point): Adjust to new interface.
13188 * linux-low.h (struct linux_target_ops) <insert_point,
13189 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13190 raw_breakpoint pointer parameter.
13191 <supports_z_point_type>: New method.
13192 * linux-mips-low.c (mips_supports_z_point_type): New function.
13193 (mips_insert_point, mips_remove_point): Adjust to new interface.
13194 Use mips_supports_z_point_type.
13195 (the_low_target): Install mips_supports_z_point_type.
13196 * linux-ppc-low.c (the_low_target): Install NULL as
13197 supports_z_point_type method.
13198 * linux-s390-low.c (the_low_target): Install NULL as
13199 supports_z_point_type method.
13200 * linux-sparc-low.c (the_low_target): Install NULL as
13201 supports_z_point_type method.
13202 * linux-x86-low.c (x86_supports_z_point_type): New function.
13203 (x86_insert_point): Adjust to new insert_point interface. Use
13204 insert_memory_breakpoint. Adjust to new
13205 i386_low_insert_watchpoint interface.
13206 (x86_remove_point): Adjust to remove_point interface. Use
13207 remove_memory_breakpoint. Adjust to new
13208 i386_low_remove_watchpoint interface.
13209 (the_low_target): Install x86_supports_z_point_type.
13210 * lynx-low.c (lynx_target_ops): Install NULL as
13211 supports_z_point_type callback.
13212 * nto-low.c (nto_supports_z_point_type): New.
13213 (nto_insert_point, nto_remove_point): Adjust to new interface.
13214 (nto_target_ops): Install nto_supports_z_point_type.
13215 * mem-break.c: Adjust intro comment.
13216 (struct raw_breakpoint) <raw_type, size>: New fields.
13217 <inserted>: Update comment.
13218 <shlib_disabled>: Delete field.
13219 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13220 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13221 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13222 (raw_bkpt_type_to_target_hw_bp_type): New function.
13223 (find_enabled_raw_code_breakpoint_at): New function.
13224 (find_raw_breakpoint_at): New type and size parameters. Use them.
13225 (insert_memory_breakpoint): New function, based off
13226 set_raw_breakpoint_at.
13227 (remove_memory_breakpoint): New function.
13228 (set_raw_breakpoint_at): Reimplement.
13229 (set_breakpoint): New, based on set_breakpoint_at.
13230 (set_breakpoint_at): Reimplement.
13231 (delete_raw_breakpoint): Go through the_target->remove_point
13232 instead of assuming memory breakpoints.
13233 (find_gdb_breakpoint_at): Delete.
13234 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13235 (find_gdb_breakpoint): New function.
13236 (set_gdb_breakpoint_at): Delete.
13237 (z_type_supported): New function.
13238 (set_gdb_breakpoint_1): New function, loosely based off
13239 set_gdb_breakpoint_at.
13240 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13241 (delete_gdb_breakpoint_at): Delete.
13242 (delete_gdb_breakpoint_1): New function, loosely based off
13243 delete_gdb_breakpoint_at.
13244 (delete_gdb_breakpoint): New function.
13245 (clear_gdb_breakpoint_conditions): Rename to ...
13246 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13248 (add_condition_to_breakpoint): Make static.
13249 (add_breakpoint_condition): Take a struct breakpoint pointer
13250 instead of an address. Adjust.
13251 (gdb_condition_true_at_breakpoint): Rename to ...
13252 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13254 (gdb_condition_true_at_breakpoint): Reimplement.
13255 (add_breakpoint_commands): Take a struct breakpoint pointer
13256 instead of an address. Adjust.
13257 (gdb_no_commands_at_breakpoint): Rename to ...
13258 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13259 parameter. Return true if no breakpoint was found. Change debug
13261 (gdb_no_commands_at_breakpoint): Reimplement.
13262 (run_breakpoint_commands): Rename to ...
13263 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13264 and change return type to boolean.
13265 (run_breakpoint_commands): New function.
13266 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13267 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13268 breakpoint. Go through the_target->remove_point instead of
13269 assuming memory breakpoint.
13270 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13271 software and hardware breakpoints.
13272 (reinsert_raw_breakpoint): Go through the_target->insert_point
13273 instead of assuming memory breakpoint.
13274 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13275 software and hardware breakpoints.
13276 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13277 Check both software and hardware breakpoints.
13278 (validate_inserted_breakpoint): Assert the breakpoint is a
13279 software breakpoint. Set the inserted flag to -1 instead of
13280 setting shlib_disabled.
13281 (delete_disabled_breakpoints): Adjust.
13282 (validate_breakpoints): Only validate software breakpoints.
13283 Adjust to inserted flag change.
13284 (check_mem_read, check_mem_write): Skip breakpoint types other
13285 than software breakpoints. Adjust to inserted flag change.
13286 * mem-break.h (enum raw_bkpt_type): New enum.
13287 (raw_breakpoint, struct process_info): Forward declare.
13288 (Z_packet_to_target_hw_bp_type): Delete declaration.
13289 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13290 (set_gdb_breakpoint, delete_gdb_breakpoint)
13291 (clear_breakpoint_conditions): New declarations.
13292 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13293 (breakpoint_inserted_here): Update comment.
13294 (add_breakpoint_condition, add_breakpoint_commands): Replace
13295 address parameter with a breakpoint pointer parameter.
13296 (gdb_breakpoint_here): Update comment.
13297 (delete_gdb_breakpoint_at): Delete.
13298 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13299 * server.c (process_point_options): Take a struct breakpoint
13300 pointer instead of an address. Adjust.
13301 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13302 delete_gdb_breakpoint.
13303 * spu-low.c (spu_target_ops): Install NULL as
13304 supports_z_point_type method.
13305 * target.h: Include mem-break.h.
13306 (struct target_ops) <prepare_to_access_memory>: Update comment.
13307 <supports_z_point_type>: New field.
13308 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13309 instead of a char. Also take a raw breakpoint pointer.
13310 * win32-arm-low.c (the_low_target): Install NULL as
13311 supports_z_point_type.
13312 * win32-i386-low.c (i386_supports_z_point_type): New function.
13313 (i386_insert_point, i386_remove_point): Adjust to new interface.
13314 (the_low_target): Install i386_supports_z_point_type.
13315 * win32-low.c (win32_supports_z_point_type): New function.
13316 (win32_insert_point, win32_remove_point): Adjust to new interface.
13317 (win32_target_ops): Install win32_supports_z_point_type.
13318 * win32-low.h (struct win32_target_ops):
13319 <supports_z_point_type>: New method.
13320 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13321 instead of a char. Also take a raw breakpoint pointer.
13323 2014-05-20 Pedro Alves <palves@redhat.com>
13325 * mem-break.h: Include break-common.h.
13326 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13327 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13328 (Z_packet_to_target_hw_bp_type): New declaration.
13329 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13330 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13331 (Z_PACKET_ACCESS_WP): Delete macros.
13332 (Z_packet_to_hw_type): Delete function.
13333 * i386-low.h: Don't include break-common.h here.
13334 (Z_packet_to_hw_type): Delete declaration.
13335 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13336 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13337 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13338 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13339 * linux-aarch64-low.c: Don't include break-common.h here.
13340 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13341 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13342 (Z_packet_to_target_hw_bp_type): Delete function.
13343 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13345 (mips_insert_point, mips_remove_point): Use
13346 Z_packet_to_target_hw_bp_type.
13348 2014-05-20 Pedro Alves <palves@redhat.com>
13350 * linux-aarch64-low.c: Include break-common.h.
13351 (enum target_point_type): Delete.
13352 (Z_packet_to_point_type): Rename to ...
13353 (Z_packet_to_target_hw_bp_type): ... this, and return a
13354 target_hw_bp_type instead.
13355 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13356 instead of an enum target_point_type.
13357 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13359 (aarch64_dr_state_insert_one_point)
13360 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13361 (aarch64_handle_aligned_watchpoint)
13362 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13363 Take an enum target_hw_bp_type instead of an enum
13365 (aarch64_supports_z_point_type): New function.
13366 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13367 use Z_packet_to_target_hw_bp_type.
13369 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13371 * configure.ac: Only use -Werror by default when DEVELOPMENT
13373 * configure: Regenerate.
13375 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13377 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13378 * linux-x86-low.c (X86_64_USER_REGS): New.
13379 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13381 2014-04-28 Yao Qi <yao@codesourcery.com>
13383 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13386 2014-04-25 Pedro Alves <palves@redhat.com>
13389 * linux-low.c (linux_attach_fail_reason_string): New function.
13390 (linux_attach_lwp): Delete.
13391 (linux_attach_lwp_1): Rename to ...
13392 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13393 argument. Remove "initial" parameter. Return int instead of
13394 void. Don't error or warn here.
13395 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13396 failure to attach to the tgid. Call warning when failing to
13398 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13399 argument. Remove "initial" parameter. Return int instead of
13400 void. Don't error or warn here.
13401 (linux_attach_fail_reason_string): New declaration.
13402 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13403 interface change. Use linux_attach_fail_reason_string.
13405 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13406 Walfred Tedeschi <walfred.tedeschi@intel.com>
13408 * Makefile.in: Added rules to handle new files
13409 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13410 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13411 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13412 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13413 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13414 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13415 x32-avx512-linux.o.
13416 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13417 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13418 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13419 i386/x32-avx512.xml.
13420 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13421 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13422 i386/x32-avx512-linux.xml.
13423 * i387-fp.c (num_avx512_k_registers): New constant for number
13425 (num_avx512_zmmh_low_registers): New constant for number of
13426 lower ZMM registers (0-15).
13427 (num_avx512_zmmh_high_registers): New constant for number of
13428 higher ZMM registers (16-31).
13429 (num_avx512_ymmh_registers): New contant for number of higher
13430 YMM registers (ymm16-31 added by avx521 on x86_64).
13431 (num_avx512_xmm_registers): New constant for number of higher
13432 XMM registers (xmm16-31 added by AVX512 on x86_64).
13433 (struct i387_xsave): Add space for AVX512 registers.
13434 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13435 Add code to handle AVX512 registers.
13436 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13437 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13438 prototypei from generated file.
13439 (tdesc_amd64_avx512_linux): Likewise.
13440 (init_registers_x32_avx512_linux): Likewise.
13441 (tdesc_x32_avx512_linux): Likewise.
13442 (init_registers_i386_avx512_linux): Likewise.
13443 (tdesc_i386_avx512_linux): Likewise.
13444 (x86_64_regmap): Add AVX512 registers.
13445 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13447 (initialize_low_arch): Add code to initialize AVX512 registers.
13449 2014-04-23 Pedro Alves <palves@redhat.com>
13451 * mem-break.c (find_gdb_breakpoint_at): Make static.
13452 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13454 2014-04-23 Pedro Alves <palves@redhat.com>
13456 * i386-low.c: Don't include break-common.h here.
13457 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13458 prototype to take target_hw_bp_type as argument instead of a Z
13460 * i386-low.h: Include break-common.h here.
13461 (Z_packet_to_hw_type): Declare.
13462 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13464 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13465 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13466 (x86_remove_point): Convert the packet number to a
13467 target_hw_bp_type before calling i386_low_remove_watchpoint.
13468 * win32-i386-low.c (i386_insert_point): Convert the packet number
13469 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13470 (i386_remove_point): Convert the packet number to a
13471 target_hw_bp_type before calling i386_low_remove_watchpoint.
13473 2014-04-23 Pedro Alves <palves@redhat.com>
13475 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13477 2014-04-10 Pedro Alves <palves@redhat.com>
13479 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13480 Check if the condition or command is NULL before checking if the
13481 breakpoint is known. On success, return true.
13482 * mem-break.h (add_breakpoint_condition): Document return.
13483 (add_breakpoint_commands): Add describing comment.
13484 * server.c (skip_to_semicolon): New function.
13485 (process_point_options): Use it.
13487 2014-04-09 Pedro Alves <palves@redhat.com>
13489 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13492 2014-02-27 Pedro Alves <palves@redhat.com>
13495 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13497 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13499 (last_thread_of_process_p): Take a PID argument instead of a
13501 (linux_wait_for_lwp): Delete.
13502 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13504 (linux_low_filter_event): New function, party factored out from
13505 linux_wait_for_event.
13506 (linux_wait_for_event): Rename to ...
13507 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13508 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13509 sigsuspend. Check for zombie leaders.
13510 (linux_wait_for_event): Reimplement as wrapper around
13511 linux_wait_for_event_filtered.
13512 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13513 a normal or signal exit is seen, it's the whole process exiting.
13514 (wait_for_sigstop): No longer a for_each_inferior callback.
13515 Rewrite on top of linux_wait_for_event_filtered.
13516 (stop_all_lwps): Call wait_for_sigstop directly.
13517 * server.c (resume, handle_target_event): Handle
13518 TARGET_WAITKIND_NO_RESUMED.
13520 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13522 * win32-low.c (psapi_get_dll_name,
13523 * win32_CreateToolhelp32Snapshot): Delete.
13524 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13525 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13527 (handle_load_dll): Add function description.
13528 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13530 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13532 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13534 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13535 base address when calling win32_add_one_solib.
13536 (handle_load_dll): Delete local variable load_addr.
13537 Remove 0x1000 offset applied to DLL base address when calling
13538 win32_add_one_solib.
13539 (handle_unload_dll): Add comment.
13541 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13543 * win32-low.c (win32_add_all_dlls): Renames
13544 win32_ensure_ntdll_loaded. Rewrite function documentation.
13545 Adjust implementation to always load all DLLs.
13546 Add 0x1000 offset to DLL base address when calling
13547 win32_add_one_solib.
13548 (child_initialization_done): New static global.
13549 (do_initial_child_stuff): Set child_initialization_done to
13550 zero during child initialization, and 1 after. Replace call
13551 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13553 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13554 (handle_unload_dll): Add function documentation.
13555 (get_child_debug_event): Ignore load and unload DLL events
13556 during child initialization.
13558 2014-02-20 Doug Evans <dje@google.com>
13560 Remove global all_lwps.
13561 * inferiors.h (ptid_of): Move here from linux-low.h.
13562 (pid_of, lwpid_of): Ditto.
13563 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13564 parameter is a struct thread_info * now.
13565 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13566 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13567 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13569 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13570 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13571 * linux-arm-low.c (update_registers_callback): Update, "entry"
13572 parameter is a struct thread_info * now.
13573 Fetch lwpid from current_inferior directly.
13574 (arm_insert_point): Pass &all_threads to find_inferior instead of
13576 (arm_remove_point): Ditto.
13577 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13578 (arm_prepare_to_resume): Fetch pid from thread.
13579 (arm_read_description): Fetch lwpid from current_inferior directly.
13580 * linux-low.c (all_lwps): Delete.
13581 (delete_lwp): Delete call to remove_inferior.
13582 (handle_extended_wait): Fetch lwpid from thread.
13583 (add_lwp): Don't set lwp->entry.id. Remove call to
13584 add_inferior_to_list.
13585 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13586 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13587 (kill_one_lwp_callback): Ditto.
13588 (linux_kill): Don't dereference NULL pointer.
13589 Fetch ptid,lwpid from thread.
13590 (get_detach_signal): Fetch ptid from thread.
13591 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13592 Simplify call to regcache_invalidate_thread.
13593 (delete_lwp_callback): Update, "entry" parameter is a
13594 struct thread_info * now. Fetch pid from thread.
13595 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13596 (status_pending_p_callback): Update, "entry" parameter is a
13597 struct thread_info * now. Fetch ptid from thread.
13598 (find_lwp_pid): Update, "entry" parameter is a
13599 struct thread_info * now.
13600 (linux_wait_for_lwp): Fetch pid from thread.
13601 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13602 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13603 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13604 (dequeue_one_deferred_signal): Ditto.
13605 (cancel_breakpoint): Fetch ptid from current_inferior.
13606 (linux_wait_for_event): Pass &all_threads to find_inferior,
13607 not &all_lwps. Fetch ptid, lwpid from thread.
13608 (count_events_callback): Update, "entry" parameter is a
13609 struct thread_info * now.
13610 (select_singlestep_lwp_callback): Ditto.
13611 (select_event_lwp_callback): Ditto.
13612 (cancel_breakpoints_callback): Ditto.
13613 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13615 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13616 (unsuspend_one_lwp): Update, "entry" parameter is a
13617 struct thread_info * now.
13618 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13620 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13621 Fetch lwpid from thread, not lwp.
13622 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13623 Pass &all_threads to find_inferior, not &all_lwps.
13624 (send_sigstop): Fetch lwpid from thread, not lwp.
13625 (send_sigstop_callback): Update, "entry" parameter is a
13626 struct thread_info * now.
13627 (suspend_and_send_sigstop_callback): Ditto.
13628 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13629 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13630 struct thread_info * now.
13631 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13633 (lwp_running): Update, "entry" parameter is a
13634 struct thread_info * now.
13635 (stop_all_lwps): Fetch ptid from thread.
13636 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13637 (linux_resume_one_lwp): Fetch lwpid from thread.
13638 (linux_set_resume_request): Update, "entry" parameter is a
13639 struct thread_info * now. Fetch pid, lwpid from thread.
13640 (resume_status_pending_p): Update, "entry" parameter is a
13641 struct thread_info * now.
13642 (need_step_over_p): Ditto. Fetch lwpid from thread.
13643 (start_step_over): Fetch lwpid from thread.
13644 (linux_resume_one_thread): Update, "entry" parameter is a
13645 struct thread_info * now. Fetch lwpid from thread.
13646 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13647 (proceed_one_lwp): Update, "entry" parameter is a
13648 struct thread_info * now. Fetch lwpid from thread.
13649 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13650 struct thread_info * now.
13651 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13652 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13653 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13655 (regsets_store_inferior_registers): Ditto.
13656 (fetch_register, store_register): Ditto.
13657 (linux_read_memory, linux_write_memory): Ditto.
13658 (linux_request_interrupt): Ditto.
13659 (linux_read_auxv): Ditto.
13660 (linux_xfer_siginfo): Ditto.
13661 (linux_qxfer_spu): Ditto.
13662 (linux_qxfer_libraries_svr4): Ditto.
13663 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13664 moved to inferiors.h.
13666 (get_thread_lwp): Update.
13667 (struct lwp_info): Delete member "entry". Simplify comment for
13669 (all_lwps): Delete.
13670 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13671 current_inferior directly.
13672 (update_watch_registers_callback): Update, "entry" parameter is a
13673 struct thread_info * now. Fetch pid from thread.
13674 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13675 (mips_insert_point): Fetch lwpid from current_inferior.
13676 Pass &all_threads to find_inferior, not &all_lwps.
13677 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13678 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13680 (mips_stopped_data_address): Ditto.
13681 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13683 * linux-tile-low.c (tile_arch_setup): Ditto.
13684 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13685 (update_debug_registers_callback): Update, "entry" parameter is a
13686 struct thread_info * now. Fetch pid from thread.
13687 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13688 Pass &all_threads to find_inferior, not &all_lwps.
13689 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13690 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13691 Pass &all_threads to find_inferior, not &all_lwps.
13692 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13693 (i386_dr_low_get_status): Ditto.
13694 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13695 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13696 (x86_linux_read_description): Ditto.
13697 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13699 2014-02-20 Doug Evans <dje@google.com>
13701 * inferiors.c (get_first_inferior): Fix buglet.
13703 2014-02-19 Doug Evans <dje@google.com>
13705 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13706 * inferiors.c (add_thread): Change result type to struct thread_info *.
13707 All callers updated.
13708 (add_lwp): Call add_thread here instead of in callers.
13709 All callers updated.
13710 * linux-low.h (get_lwp_thread): Rewrite.
13711 (struct lwp_info): New member "thread".
13713 2014-02-19 Doug Evans <dje@google.com>
13715 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13716 All callers updated.
13718 2014-02-19 Doug Evans <dje@google.com>
13720 * inferiors.c (add_thread): Fix whitespace.
13722 2014-02-19 Doug Evans <dje@google.com>
13724 * dll.c (clear_dlls): Replace accessing list implemention details
13726 * gdbthread.h (get_first_thread): Declare.
13727 * inferiors.c (for_each_inferior_with_data): New function.
13728 (get_first_thread): New function.
13729 (find_thread_ptid): Simplify.
13730 (get_first_inferior): New function.
13731 (clear_list): Delete.
13732 (one_inferior_p): New function.
13733 (clear_inferior_list): New function.
13734 (clear_inferiors): Update.
13735 * inferiors.h (for_each_inferior_with_data): Declare.
13736 (clear_inferior_list): Declare.
13737 (one_inferior_p): Declare.
13738 (get_first_inferior): Declare.
13739 * linux-low.c (linux_wait_for_event): Replace accessing list
13740 implemention details with API function.
13741 * server.c (target_running): Ditto.
13742 (accumulate_file_name_length): New function.
13743 (emit_dll_description): New function.
13744 (handle_qxfer_libraries): Replace accessing list implemention
13745 details with API function.
13746 (handle_qxfer_threads_worker): New function.
13747 (handle_qxfer_threads_proper): Replace accessing list implemention
13748 details with API function.
13749 (handle_query): Ditto.
13750 (visit_actioned_threads_callback_ftype): New typedef.
13751 (visit_actioned_threads_data): New struct.
13752 (visit_actioned_threads): Rewrite to be find_inferior callback.
13753 (resume): Call find_inferior.
13754 (handle_status): Replace accessing list implemention
13755 details with API function.
13756 (process_serial_event): Replace accessing list implemention details
13758 * target.c (set_desired_inferior): Replace accessing list implemention
13759 details with API function.
13760 * tracepoint.c (same_process_p): New function.
13761 (gdb_agent_about_to_close): Replace accessing list implemention
13762 details with API function.
13763 * win32-low.c (child_delete_thread): Replace accessing list
13764 implemention details with API function.
13765 (match_dll_by_basename): New function.
13766 (dll_is_loaded_by_basename): New function.
13767 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13768 details call to dll_is_loaded_by_basename.
13770 2014-02-19 Doug Evans <dje@google.com>
13772 * dll.h (struct dll_info): Add comment.
13773 * gdbthread.h (struct thread_info): Add comment.
13774 (current_ptid): Simplify.
13775 * inferiors.c (add_process): Update.
13776 (remove_process): Update.
13777 * inferiors.h (struct process_info): Rename member "head" to "entry".
13778 * linux-low.c (delete_lwp): Update.
13780 (last_thread_of_process_p): Update.
13781 (kill_one_lwp_callback, linux_kill): Update.
13782 (status_pending_p_callback): Update.
13783 (wait_for_sigstop): Update. Simplify read of ptid.
13784 (start_step_over): Update.
13785 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13786 (get_lwp_thread): Update.
13787 (struct lwp_info): Rename member "head" to "entry".
13788 * regcache.h (inferior_list_entry): Delete.
13789 * server.c (kill_inferior_callback): Update.
13790 (detach_or_kill_inferior_callback): Update.
13791 (print_started_pid): Update.
13792 (print_attached_pid): Update.
13793 (process_serial_event): Simplify read of ptid.
13794 * thread-db.c (thread_db_create_event): Update.
13795 (thread_db_get_tls_address): Update.
13796 * win32-low.c (current_inferior_ptid): Simplify.
13798 2014-02-19 Tom Tromey <tromey@redhat.com>
13800 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13802 (target_supports_btrace): Update.
13804 2014-02-14 Yao Qi <yao@codesourcery.com>
13806 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13807 (rsp-low-ipa.o): New target.
13809 2014-02-12 Tom Tromey <tromey@redhat.com>
13811 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13812 convert_ascii_to_int.
13813 * regcache.c (registers_to_string): Likewise.
13814 * remote-utils.c (decode_M_packet): Likewise.
13815 * server.c (process_serial_event): Likewise.
13817 2014-02-12 Tom Tromey <tromey@redhat.com>
13819 * server.c (handle_query, handle_v_run): Use hex2bin, not
13821 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13823 2014-02-12 Tom Tromey <tromey@redhat.com>
13825 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13826 convert_int_to_ascii.
13827 * regcache.c (registers_to_string, collect_register_as_string):
13829 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13831 * server.c (process_serial_event): Likewise.
13832 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13833 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13835 2014-02-12 Tom Tromey <tromey@redhat.com>
13837 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13838 bin2hex, not hexify.
13839 * tracepoint.c (cmd_qtstatus): Likewise.
13841 2014-02-12 Tom Tromey <tromey@redhat.com>
13843 * remote-utils.c (monitor_output): Pass explicit length to
13846 2014-02-12 Tom Tromey <tromey@redhat.com>
13848 * tracepoint.c: Include rsp-low.h.
13849 * server.c: Include rsp-low.h.
13850 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13851 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13853 * remote-utils.c: Include rsp-low.h.
13854 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13855 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13856 (convert_int_to_ascii, convert_ascii_to_int): Move to
13858 * regcache.c: Include rsp-low.h.
13859 * ax.c: Include rsp-low.h.
13860 * Makefile.in (SFILES): Add common/rsp-low.c.
13861 (OBS): Add rsp-low.o.
13862 (rsp-low.o): New target.
13864 2014-02-12 Tom Tromey <tromey@redhat.com>
13866 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13867 Include print-utils.h.
13868 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13869 (plongest, thirty_two, phex_nz): Remove.
13870 * Makefile.in (SFILES): Add common/print-utils.c.
13871 (OBS): Add print-utils.o.
13872 (print-utils-ipa.o): New target.
13873 (print-utils.o): New target.
13874 (IPA_OBJS): Add print-utils-ipa.o.
13876 2014-02-06 Tom Tromey <tromey@redhat.com>
13878 * Makefile.in (SFILES): Fix indentation.
13880 2014-02-05 Doug Evans <dje@google.com>
13882 * linux-low.c (linux_wait_for_event): Improve comment.
13883 (linux_wait_1): Keep current_inferior in sync with event_child.
13885 2014-01-22 Doug Evans <dje@google.com>
13887 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13889 2014-01-22 Doug Evans <dje@google.com>
13891 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13892 * configure: Regenerate.
13893 * config.in: Regenerate.
13894 * Makefile.in (SFILES): Add debug.c.
13895 (OBS): Add debug.o.
13896 * debug.c: New file.
13897 * debug.h: New file.
13898 * linux-aarch64-low.c (*): Update all debugging printfs to use
13899 debug_printf instead of fprintf.
13900 * linux-arm-low.c (*): Ditto.
13901 * linux-cris-low.c (*): Ditto.
13902 * linux-crisv32-low.c (*): Ditto.
13903 * linux-m32r-low.c (*): Ditto.
13904 * linux-sparc-low.c (*): Ditto.
13905 * linux-x86.c (*): Ditto.
13906 * linux-low.c (*): Ditto.
13907 (linux_wait_1): Add calls to debug_enter, debug_exit.
13908 (linux_wait): Remove redundant debugging printf.
13909 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13910 (linux_resume, unstop_all_lwps): Ditto.
13911 * mem-break.c (*): Update all debugging printfs to use
13912 debug_printf instead of fprintf.
13913 * remote-utils.c (*): Ditto.
13914 * thread-db.c (*): Ditto.
13915 * server.c #include <ctype.h>, "gdb_vecs.h".
13916 (debug_threads): Moved to debug.c.
13917 (*): Update all debugging printfs to use debug_printf instead of
13919 (start_inferior): Replace call to fflush with call to debug_flush.
13920 (monitor_show_help): Mention set debug-format.
13921 (parse_debug_format_options): New function.
13922 (handle_monitor_command): Handle "monitor set debug-format".
13923 (gdbserver_usage): Mention --debug-format.
13924 (main): Parse --debug-format.
13925 * server.h (debug_threads): Declaration moved to debug.h.
13926 #include "debug.h".
13927 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13928 trace_debug_1 that uses debug_printf.
13929 (tracepoint_look_up_symbols): Update all debugging printfs to use
13930 debug_printf instead of fprintf.
13932 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13934 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13937 2014-01-17 Pedro Alves <palves@redhat.com>
13940 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13941 defined after including gdb_proc_service.h.
13943 2014-01-16 Doug Evans <dje@google.com>
13945 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13946 (match_dll): Use it.
13948 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13950 * target.h (target_ops) <read_btrace>: Change parameters and
13951 return type to allow error reporting.
13952 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13953 trace reading errors on.
13954 * linux-low.c (linux_low_read_btrace): Pass trace reading
13956 (linux_low_disable_btrace): New.
13958 2014-01-15 Doug Evans <dje@google.com>
13960 * inferiors.c (thread_id_to_gdb_id): Delete.
13961 * inferiors.h (thread_id_to_gdb_id): Delete.
13963 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13965 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13966 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13969 2014-01-08 Pedro Alves <palves@redhat.com>
13971 * server.c (handle_status): Don't discard previous queued stop
13972 replies or thread's pending status here.
13973 (main) <disconnection>: Do it here instead.
13975 2014-01-08 Pedro Alves <palves@redhat.com>
13977 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13978 * server.c (visit_actioned_threads, handle_pending_status): New
13980 (handle_v_cont): Factor out parts to ...
13981 (resume): ... this new function. If in all-stop, and a thread
13982 being resumed has a pending status, report it without actually
13984 (myresume): Adjust to use the new 'resume' function.
13985 (clear_pending_status_callback, set_pending_status_callback)
13986 (find_status_pending_thread_callback): New functions.
13987 (handle_status): Handle the case of multiple threads having
13988 interesting statuses to report. Report threads' real last signal
13989 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13990 with an interesting thread to report the status for, instead of
13991 always reporting the status of the first thread.
13993 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13995 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13996 * gdbreplay.c (gdbreplay_version): Likewise.
13998 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14000 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14001 iov.iov_len with the real length in use.
14003 2013-12-13 Joel Brobecker <brobecker@adacore.com>
14005 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14006 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14007 for all targets that use win32-low.c.
14008 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14009 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14011 2013-12-13 Pedro Alves <palves@redhat.com>
14013 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14014 if equal to TARGET_WAITKIND_LOADED.
14015 * win32-low.c (cached_status): New static global.
14016 (win32_wait): Add declaration.
14017 (do_initial_child_stuff): Flush all initial pending debug events
14018 up to the initial breakpoint.
14019 (win32_wait): If CACHED_STATUS was set, return that instead
14020 of doing a real wait. Remove the code resuming the execution
14021 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14022 during the initial phase. Also remove the code changing
14023 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14024 TARGET_WAITKIND_STOPPED.
14026 2013-12-11 Yao Qi <yao@codesourcery.com>
14028 * notif.c (handle_notif_ack): Return 0 if no notification
14031 2013-11-20 Doug Evans <dje@google.com>
14033 * linux-low.c (linux_set_resume_request): Fix comment.
14035 2013-11-20 Doug Evans <dje@google.com>
14037 * linux-low.c (resume_status_pending_p): Tweak comment.
14039 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14041 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14042 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14043 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14044 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14045 (srv_amd64_regobj): Add amd64-mpx.o.
14046 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14047 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14048 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14049 * i387-fp.c (num_pl_bnd_register) Added constant.
14050 (num_pl_bnd_cfg_registers) Added constant.
14051 (struct i387_xsave) Added reserved area and MPX fields.
14052 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14053 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14055 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14056 (init_registers_amd64_mpx_linux): Declare new function.
14057 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14058 (x86_64_regmap): Add MPX registers.
14059 (x86_linux_read_description): Add MPX case.
14060 (initialize_low_arch): Initialize MPX targets.
14062 2013-11-18 Tom Tromey <tromey@redhat.com>
14064 * configure: Rebuild.
14065 * configure.ac: Don't check for stdlib.h.
14066 * gdbreplay.c: Unconditionally include stdlib.h.
14068 2013-11-18 Tom Tromey <tromey@redhat.com>
14070 * config.in: Rebuild.
14071 * configure: Rebuild.
14072 * configure.ac: Don't use AC_HEADER_DIRENT.
14074 2013-11-18 Tom Tromey <tromey@redhat.com>
14076 * server.h: Don't check HAVE_STRING_H.
14077 * gdbreplay.c: Don't check HAVE_STRING_H.
14078 * configure: Rebuild.
14080 2013-11-18 Tom Tromey <tromey@redhat.com>
14082 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14085 2013-11-08 Tom Tromey <tromey@redhat.com>
14087 * configure, config.in: Rebuild.
14088 * configure.ac: Remove unused configury.
14090 2013-11-08 Tom Tromey <tromey@redhat.com>
14092 * acinclude.m4: Include common.m4, codeset.m4.
14093 * configure, config.in: Rebuild.
14094 * configure.ac: Use GDB_AC_COMMON.
14096 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14098 * linux-s390-low.c (HWCAP_S390_TE): New define.
14099 (s390_arch_setup): Consider the TE field in the HWCAP for
14100 determining 'have_regset_tdb'.
14102 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14105 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14108 2013-10-02 Pedro Alves <palves@redhat.com>
14110 * server.c (process_serial_event): Don't output "GDBserver
14111 exiting" if GDB is connected through stdio.
14112 * target.c (mywait): Likewise, be silent if GDB is connected
14115 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14117 * lynx-low.c (lynx_add_threads_after_attach): New function.
14118 (lynx_attach): Remove call to add_thread. Add call to
14119 lynx_add_threads_after_attach instead.
14121 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14123 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14124 * config.in, configure: Regenerated.
14126 2013-09-18 Yao Qi <yao@codesourcery.com>
14129 * server.c (start_inferior): Clear 'resume_info'.
14131 2013-09-16 Jiong Wang <jiwang@tilera.com>
14133 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14136 2013-09-16 Jiong Wang <jiwang@tilera.com>
14138 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14139 linux-tile-low.o to srv_tgtobj.
14141 2013-09-16 Will Newton <will.newton@linaro.org>
14143 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14146 2013-09-06 Pedro Alves <palves@redhat.com>
14148 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14149 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14150 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14151 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14152 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14153 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14155 2013-09-06 Pedro Alves <palves@redhat.com>
14157 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14158 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14160 2013-09-06 Pedro Alves <palves@redhat.com>
14162 * linux-amd64-ipa.c: Include tracepoint.h.
14163 * linux-i386-ipa.c: Include tracepoint.h.
14165 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14167 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14168 (ps_get_thread_area): New function.
14170 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14172 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14173 (initialize_low_arch): Call init_registers_crisv32 rather than
14174 init_register_crisv32.
14176 2013-09-05 Pedro Alves <palves@redhat.com>
14178 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14180 * hostio.h: ... this new file.
14181 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14182 win32-low.c: Include hostio.h.
14184 2013-09-05 Pedro Alves <palves@redhat.com>
14186 * server.h (gdb_client_data, handler_func, callback_handler_func)
14187 (delete_file_handler, add_file_handler, append_callback_event)
14188 (delete_callback_event, start_event_loop, initialize_event_loop):
14189 Move to event-loop.h and include it.
14190 * event-loop.h: New file.
14192 2013-09-05 Pedro Alves <palves@redhat.com>
14194 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14195 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14196 (loaded_dll, unloaded_dll): Move to ...
14197 * dll.h: ... this new file.
14198 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14200 2013-09-05 Pedro Alves <palves@redhat.com>
14202 * server.h (current_process, get_thread_process, all_processes)
14203 (add_inferior_to_list, for_each_inferior, current_inferior)
14204 (remove_inferior, add_process, remove_process, find_process_pid)
14205 (have_started_inferiors_p, have_attached_inferiors_p)
14206 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14207 (clear_inferiors, find_inferior, find_inferior_id)
14208 (inferior_target_data, set_inferior_target_data)
14209 (inferior_regcache_data, set_inferior_regcache_data): Move to
14210 inferiors.h, and include it.
14211 * inferiors.h: New file.
14213 2013-09-05 Pedro Alves <palves@redhat.com>
14215 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14219 2013-09-05 Pedro Alves <palves@redhat.com>
14221 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14223 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14224 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14225 (handle_tracepoint_general_set, handle_tracepoint_query)
14226 (tracepoint_finished_step, tracepoint_was_hit)
14227 (release_while_stepping_state_list, current_traceframe)
14228 (in_readonly_region, traceframe_read_mem)
14229 (fetch_traceframe_registers, traceframe_read_sdata)
14230 (traceframe_read_info, struct fast_tpoint_collect_status)
14231 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14232 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14233 (supply_fast_tracepoint_registers)
14234 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14235 (ipa_tdesc, claim_trampoline_space)
14236 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14237 (agent_mem_read, agent_get_trace_state_variable_value)
14238 (agent_set_trace_state_variable_value, agent_tsv_read)
14239 (agent_mem_read_string, get_raw_reg_func_addr)
14240 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14241 * tracepoint.h: ... this new file.
14243 2013-09-05 Pedro Alves <palves@redhat.com>
14245 * server.h (perror_with_name, error, fatal, warning, paddress)
14246 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14248 * utils.h: New file.
14250 2013-09-05 Pedro Alves <palves@redhat.com>
14252 * server.h (remote_debug, noack_mode, transport_is_reliable)
14253 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14254 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14255 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14256 (write_enn, initialize_async_io, enable_async_io)
14257 (disable_async_io, check_remote_input_interrupt_request)
14258 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14259 (dead_thread_notify, prepare_resume_reply)
14260 (decode_address_to_semicolon, decode_address, decode_m_packet)
14261 (decode_M_packet, decode_X_packet, decode_xfer_write)
14262 (decode_search_memory_packet, unhexify, hexify)
14263 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14264 (look_up_one_symbol, relocate_instruction)
14265 (monitor_output): Move to remote-utils.h, and include it.
14266 * remote-utils.h: New file.
14268 2013-09-05 Pedro Alves <palves@redhat.com>
14270 * server.h (_): Delete.
14272 2013-09-02 Pedro Alves <palves@redhat.com>
14274 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14275 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14277 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14279 2013-09-02 Pierre Muller <muller@sourceware.org>
14281 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14282 or WriteProcessMemory complete successfully and handle
14283 ERROR_PARTIAL_COPY error.
14285 2013-09-02 Pedro Alves <palves@redhat.com>
14287 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14288 error instead of EIO.
14290 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14293 * linux-low.c: Include filestuff.h.
14294 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14295 * lynx-low.c: Include filestuff.h.
14296 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14297 * server.c: Include filestuff.h.
14298 (main): Call notice_open_fds.
14299 * spu-low.c: Include filestuff.h.
14300 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14302 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14304 * Makefile.in: Explain why ../target and ../nat are not
14305 listed as include file search paths.
14306 (linux-waitpid.o): New object file rule.
14307 * configure.srv (srv_native_linux_obj): New variable.
14308 Replace all occurrences of linux native object files with
14309 $srv_native_linux_obj.
14310 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14311 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14312 (linux_enable_event_reporting): Remove declaration.
14313 (my_waitpid): Moved to common/linux-waitpid.c.
14314 (linux_wait_for_event): Pass ptid when calling
14315 linux_enable_event_reporting.
14316 (linux_supports_tracefork_flag): Remove.
14317 (linux_enable_event_reporting): Likewise.
14318 (linux_tracefork_grandchild): Remove.
14319 (STACK_SIZE): Moved to common/linux-ptrace.c.
14320 (linux_tracefork_child): Remove.
14321 (linux_test_for_tracefork): Remove.
14322 (linux_look_up_symbols): Call linux_supports_traceclone.
14323 (initialize_low): Remove call to linux_test_for_tracefork.
14324 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14325 common/linux-ptrace.h.
14326 (PTRACE_TYPE_ARG4): Likewise.
14327 Include linux-ptrace.h.
14329 2013-08-21 Pedro Alves <palves@redhat.com>
14331 * config.in: Renegerate.
14333 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14335 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14336 (SFILES): Remove $(srcdir)/common/target-common.c and
14337 add $(srcdir)/target/waitstatus.c.
14338 (OBS): Remove target-common.o and add waitstatus.o.
14339 (server_h): Remove $(srcdir)/../common/target-common.h and
14340 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14341 and $(srcdir)/../target/waitstatus.h.
14342 (target-common.o): Remove.
14343 (waitstatus.o): New target object file.
14344 * target.h: Do not include target-common.h and
14345 include target/resume.h, target/wait.h and
14346 target/waitstatus.h.
14348 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14350 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14351 to PTRACE_TYPE_ARG3.
14352 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14353 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14355 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14356 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14358 2013-07-27 Jie Zhang <jie@codesourcery.com>
14359 Daniel Jacobowitz <dan@codesourcery.com>
14360 Yao Qi <yao@codesourcery.com>
14362 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14363 (mips-linux-watch.o): New rule.
14364 (mips_linux_watch_h): New variable.
14365 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14367 * linux-mips-low.c: Include mips-linux-watch.h.
14368 (struct arch_process_info, struct arch_lwp_info): New.
14369 (update_watch_registers_callback): New function.
14370 (mips_linux_new_process, mips_linux_new_thread) New functions.
14371 (mips_linux_prepare_to_resume, mips_insert_point): New
14373 (mips_remove_point, mips_stopped_by_watchpoint): New
14375 (rsp_bp_type_to_target_hw_bp_type): New function.
14376 (mips_stopped_data_address): New function.
14377 (the_low_target): Add watchpoint support functions.
14379 2013-07-27 Yao Qi <yao@codesourcery.com>
14381 * i386-low.c: Include break-common.h.
14382 (enum target_hw_bp_type): Remove.
14384 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14386 * Makefile.in (SFILES): /common/target-common.c.
14387 (OBS): Add target-common.o.
14388 (server_h): Add $(srcdir)/../common/target-common.h.
14389 (target-common.o): New target.
14390 * server.c (queue_stop_reply_callback): Free
14391 status string after use.
14392 * target.c (target_waitstatus_to_string): Remove.
14393 * target.h: Include target-common.h.
14394 (resume_kind): Likewise.
14395 (target_waitkind): Likewise.
14396 (target_waitstatus): Likewise.
14397 (TARGET_WNOHANG): Likewise.
14399 2013-07-04 Yao Qi <yao@codesourcery.com>
14401 * Makefile.in (host_alias): Use @host_noncanonical@.
14402 (target_alias): Use @target_noncanonical@.
14403 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14404 ACX_NONCANONICAL_HOST.
14405 * configure: Regenerated.
14408 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14410 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14411 * configure: Rebuild.
14412 * Makefile.in (version_host, version_target): Get from configure.
14413 (version.c): Use $(version_host) and $(version_target).
14415 2013-07-03 Pedro Alves <palves@redhat.com>
14417 * Makefile.in (config.status): Depend on development.sh.
14418 * acinclude.m4: Include libmcheck.m4.
14419 * configure: Regenerate.
14421 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14423 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14424 attribute inside the parentheses.
14425 (winapi_DebugSetProcessKillOnExit): Ditto.
14426 (winapi_DebugBreakProcess): Ditto.
14427 (winapi_GenerateConsoleCtrlEvent): Ditto.
14429 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14431 * notif.h (notif_event): Add a dummy member to avoid compiler
14434 2013-07-01 Pedro Alves <palves@redhat.com>
14436 * hostio.c (HOSTIO_PATH_MAX): Define.
14437 (require_filename, handle_open, handle_unlink, handle_readlink):
14440 2013-07-01 Pedro Alves <palves@redhat.com>
14442 * server.h: Include "pathmax.h".
14443 * linux-low.c: Don't include sys/param.h.
14444 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14446 * win32-low.c: Don't include sys/param.h.
14447 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14449 2013-07-01 Pedro Alves <palves@redhat.com>
14451 * event-loop.c: Don't check HAVE_UNISTD_H before including
14453 * gdbreplay.c: Likewise.
14454 * remote-utils.c: Likewise.
14455 * server.c: Likewise.
14456 * configure.ac: Don't check for unistd.h.
14457 * configure: Regenerate.
14459 2013-06-28 Tom Tromey <tromey@redhat.com>
14461 * Makefile.in (version.c): Use version.in, not
14464 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14466 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14467 * configure: Rebuild.
14468 * Makefile.in (version_host, version_target): Get from configure.
14469 (version.c): Use $(version_host) and $(version_target).
14471 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14473 Fix trace-status to output user name without trailing colon.
14474 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14476 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14478 Fix trace-status to output proper start-time and stop-time.
14479 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14480 output start time and stop time in hex as gdb expects.
14482 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14484 * tracepoint.c (build_traceframe_info_xml): Output trace state
14485 variables present in the trace buffer.
14487 2013-06-24 Tom Tromey <tromey@redhat.com>
14489 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14491 (version.o): Remove.
14492 * gdbreplay.c: Include version.h.
14493 (version, host_name): Don't declare.
14494 * server.h: Include version.h.
14495 (version, host_name): Don't declare.
14497 2013-06-12 Pedro Alves <palves@redhat.com>
14499 * linux-x86-low.c (linux_is_elf64): Delete global.
14500 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14501 with local linux_pid_exe_is_elf_64_file use.
14503 2013-06-11 Pedro Alves <palves@redhat.com>
14505 * linux-low.c (regset_disabled, disable_regset): New functions.
14506 (regsets_fetch_inferior_registers)
14507 (regsets_store_inferior_registers): Use them.
14508 (initialize_regsets_info); Don't allocate the disabled_regsets
14510 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14513 2013-06-11 Pedro Alves <palves@redhat.com>
14515 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14518 2013-06-11 Pedro Alves <palves@redhat.com>
14520 * linux-x86-low.c (initialize_low_arch): Call
14521 init_registers_x32_avx_linux.
14523 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14525 Fix compatibility with Android Bionic.
14526 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14529 2013-06-07 Pedro Alves <palves@redhat.com>
14532 * Makefile.in (OBS): Add tdesc.o.
14533 (IPA_OBJS): Add tdesc-ipa.o.
14534 (tdesc-ipa.o): New rule.
14535 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14537 * linux-low.c (new_inferior): Delete.
14538 (disabled_regsets, num_regsets): Delete.
14539 (linux_add_process): Adjust to set the new per-process
14541 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14542 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14543 was a stop. When calling arch_setup, switch the current inferior
14544 to the thread that got an event.
14545 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14546 (regsets_fetch_inferior_registers)
14547 (regsets_store_inferior_registers): New regsets_info parameter.
14549 (linux_register_in_regsets): New regs_info parameter. Adjust to
14551 (register_addr, fetch_register, store_register): New usrregs_info
14552 parameter. Adjust to use it.
14553 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14554 parameter regs_info. Adjust to use it.
14555 (linux_fetch_registers): Get the current inferior's regs_info, and
14557 (linux_store_registers): Ditto.
14558 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14559 (initialize_low): Don't initialize the target_regsets here. Call
14560 initialize_low_arch.
14561 * linux-low.h (target_regsets): Delete declaration.
14562 (struct regsets_info): New.
14563 (struct usrregs_info): New.
14564 (struct regs_info): New.
14565 (struct process_info_private) <new_inferior>: New field.
14566 (struct linux_target_ops): Delete the num_regs, regmap, and
14567 regset_bitmap fields. New field regs_info.
14568 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14569 * i387-fp.c (num_xmm_registers): Delete.
14570 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14571 calls to new interface.
14572 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14573 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14574 Infer the number of xmm registers from the regcache's target
14576 * i387-fp.h (num_xmm_registers): Delete.
14577 * inferiors.c (add_thread): Don't install the thread's regcache
14579 * proc-service.c (gregset_info): Fetch the current inferior's
14580 regs_info. Adjust to use it.
14581 * regcache.c: Include tdesc.h.
14582 (register_bytes, reg_defs, num_registers)
14583 (gdbserver_expedite_regs): Delete.
14584 (get_thread_regcache): If the thread doesn't have a regcache yet,
14585 create one, instead of aborting gdbserver.
14586 (regcache_invalidate_one): Rename to ...
14587 (regcache_invalidate_thread): ... this.
14588 (regcache_invalidate_one): New.
14589 (regcache_invalidate): Only invalidate registers of the current
14591 (init_register_cache): Add target_desc parameter, and use it.
14592 (new_register_cache): Ditto. Assert the target description has a
14593 non zero registers_size.
14594 (regcache_cpy): Add assertions. Adjust.
14595 (realloc_register_cache, set_register_cache): Delete.
14596 (registers_to_string, registers_from_string): Adjust.
14597 (find_register_by_name, find_regno, find_register_by_number)
14598 (register_cache_size): Add target_desc parameter, and use it.
14599 (free_register_cache_thread, free_register_cache_thread_one)
14600 (regcache_release, register_cache_size): New.
14601 (register_size): Add target_desc parameter, and use it.
14602 (register_data, supply_register, supply_register_zeroed)
14603 (supply_regblock, supply_register_by_name, collect_register)
14604 (collect_register_as_string, collect_register_by_name): Adjust.
14605 * regcache.h (struct target_desc): Forward declare.
14606 (struct regcache) <tdesc>: New field.
14607 (init_register_cache, new_register_cache): Add target_desc
14609 (regcache_invalidate_thread): Declare.
14610 (regcache_invalidate_one): Delete declaration.
14611 (regcache_release): Declare.
14612 (find_register_by_number, register_cache_size, register_size)
14613 (find_regno): Add target_desc parameter.
14614 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14616 * remote-utils.c: Include tdesc.h.
14617 (outreg, prepare_resume_reply): Adjust.
14618 * server.c: Include tdesc.h.
14619 (gdbserver_xmltarget): Delete declaration.
14620 (get_features_xml, process_serial_event): Adjust.
14621 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14623 (struct process_info) <tdesc>: New field.
14624 (ipa_tdesc): Declare.
14625 * tdesc.c: New file.
14626 * tdesc.h: New file.
14627 * tracepoint.c: Include tdesc.h.
14628 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14629 (get_context_regcache): Adjust to pass ipa_tdesc down.
14630 (do_action_at_tracepoint): Adjust to get the register cache size
14631 from the context regcache's description.
14632 (traceframe_walk_blocks): Adjust to get the register cache size
14633 from the current trace frame's description.
14634 (traceframe_get_pc): Adjust to get current trace frame's
14635 description and pass it down.
14636 (gdb_collect): Adjust to get the register cache size from the
14638 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14639 (gdbserver_xmltarget): Delete.
14640 (initialize_low_tracepoint): Set the ipa's target description.
14641 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14642 (initialize_low_tracepoint): Set the ipa's target description.
14643 * linux-x86-low.c: Include tdesc.h.
14644 [__x86_64__] (is_64bit_tdesc): New.
14645 (ps_get_thread_area, x86_get_thread_area): Use it.
14646 (i386_cannot_store_register): Rename to ...
14647 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14648 (i386_cannot_fetch_register): Rename to ...
14649 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14650 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14652 (target_regsets): Rename to ...
14653 (x86_regsets): ... this.
14654 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14656 (x86_siginfo_fixup): Use is_64bit_tdesc.
14657 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14658 (tdesc_x32_avx_linux, tdesc_x32_linux)
14659 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14661 (x86_linux_update_xmltarget): Delete.
14662 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14663 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14664 (AMD64_LINUX_USER64_CS): New.
14665 (x86_linux_read_description): New, based on
14666 x86_linux_update_xmltarget.
14667 (same_process_callback): New.
14668 (x86_arch_setup_process_callback): New.
14669 (x86_linux_update_xmltarget): New.
14670 (x86_regsets_info): New.
14671 (amd64_linux_regs_info): New.
14672 (i386_linux_usrregs_info): New.
14673 (i386_linux_regs_info): New.
14674 (x86_linux_regs_info): New.
14675 (x86_arch_setup): Reimplement.
14676 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14677 (x86_emit_ops): Ditto.
14678 (the_low_target): Adjust. Install x86_linux_regs_info,
14679 x86_cannot_fetch_register, and x86_cannot_store_register.
14680 (initialize_low_arch): New.
14681 * linux-ia64-low.c (tdesc_ia64): Declare.
14682 (ia64_fetch_register): Adjust.
14683 (ia64_usrregs_info, regs_info): New globals.
14684 (ia64_regs_info): New function.
14685 (the_low_target): Adjust.
14686 (initialize_low_arch): New function.
14687 * linux-sparc-low.c (tdesc_sparc64): Declare.
14688 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14690 (sparc_arch_setup): New function.
14691 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14692 (the_low_target): Adjust.
14693 (initialize_low_arch): New function.
14694 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14695 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14696 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14697 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14698 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14699 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14700 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14701 (tdesc_powerpc_isa205_vsx64l): Declare.
14702 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14703 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14704 (ppc_set_pc, ppc_get_hwcap): Adjust.
14705 (ppc_usrregs_info): Forward declare.
14706 (!__powerpc64__) ppc_regmap_adjusted: New global.
14707 (ppc_arch_setup): Adjust to the current process'es target
14709 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14710 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14711 (ppc_store_evrregset): Adjust.
14712 (target_regsets): Rename to ...
14713 (ppc_regsets): ... this, and make static.
14714 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14715 (ppc_regs_info): New function.
14716 (the_low_target): Adjust.
14717 (initialize_low_arch): New function.
14718 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14719 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14720 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14721 (tdesc_s390x_linux64v2): Declare.
14722 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14723 (s390_fill_gregset, s390_store_last_break): Adjust.
14724 (target_regsets): Rename to ...
14725 (s390_regsets): ... this, and make static.
14726 (s390_get_pc, s390_set_pc): Adjust.
14727 (s390_get_hwcap): New target_desc parameter, and use it.
14728 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14729 (s390_arch_setup): Adjust to set the current process'es target
14730 description. Don't adjust the regmap.
14731 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14732 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14733 (regs_info_3264): New globals.
14734 (s390_regs_info): New function.
14735 (the_low_target): Adjust.
14736 (initialize_low_arch): New function.
14737 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14738 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14739 [__mips64] (init_registers_mips_linux)
14740 (init_registers_mips_dsp_linux): Delete defines.
14741 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14742 (have_dsp): New global.
14743 (mips_read_description): New, based on mips_arch_setup.
14744 (mips_arch_setup): Reimplement.
14745 (get_usrregs_info): New function.
14746 (mips_cannot_fetch_register, mips_cannot_store_register)
14747 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14748 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14749 (target_regsets): Rename to ...
14750 (mips_regsets): ... this, and make static.
14751 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14752 (dsp_regs_info, regs_info): New globals.
14753 (mips_regs_info): New function.
14754 (the_low_target): Adjust.
14755 (initialize_low_arch): New function.
14756 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14757 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14759 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14760 (arm_read_description): New, with bits factored from
14762 (arm_arch_setup): Reimplement.
14763 (target_regsets): Rename to ...
14764 (arm_regsets): ... this, and make static.
14765 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14766 (arm_regs_info): New function.
14767 (the_low_target): Adjust.
14768 (initialize_low_arch): New function.
14769 * linux-m68k-low.c (tdesc_m68k): Declare.
14770 (target_regsets): Rename to ...
14771 (m68k_regsets): ... this, and make static.
14772 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14773 (m68k_regs_info): New function.
14774 (m68k_arch_setup): New function.
14775 (the_low_target): Adjust.
14776 (initialize_low_arch): New function.
14777 * linux-sh-low.c (tdesc_sharch): Declare.
14778 (target_regsets): Rename to ...
14779 (sh_regsets): ... this, and make static.
14780 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14781 (sh_regs_info, sh_arch_setup): New functions.
14782 (the_low_target): Adjust.
14783 (initialize_low_arch): New function.
14784 * linux-bfin-low.c (tdesc_bfin): Declare.
14785 (bfin_arch_setup): New function.
14786 (bfin_usrregs_info, regs_info): New globals.
14787 (bfin_regs_info): New function.
14788 (the_low_target): Adjust.
14789 (initialize_low_arch): New function.
14790 * linux-cris-low.c (tdesc_cris): Declare.
14791 (cris_arch_setup): New function.
14792 (cris_usrregs_info, regs_info): New globals.
14793 (cris_regs_info): New function.
14794 (the_low_target): Adjust.
14795 (initialize_low_arch): New function.
14796 * linux-cris-low.c (tdesc_crisv32): Declare.
14797 (cris_arch_setup): New function.
14798 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14799 (cris_regs_info): New function.
14800 (the_low_target): Adjust.
14801 (initialize_low_arch): New function.
14802 * linux-m32r-low.c (tdesc_m32r): Declare.
14803 (m32r_arch_setup): New function.
14804 (m32r_usrregs_info, regs_info): New globals.
14805 (m32r_regs_info): Adjust.
14806 (initialize_low_arch): New function.
14807 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14808 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14809 (tic6x_usrregs_info): Forward declare.
14810 (tic6x_read_description): New function, based on ...
14811 (tic6x_arch_setup): ... this. Reimplement.
14812 (target_regsets): Rename to ...
14813 (tic6x_regsets): ... this, and make static.
14814 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14815 (tic6x_regs_info): New function.
14816 (the_low_target): Adjust.
14817 (initialize_low_arch): New function.
14818 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14819 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14820 (target_regsets): Rename to ...
14821 (xtensa_regsets): ... this, and make static.
14822 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14824 (xtensa_arch_setup, xtensa_regs_info): New functions.
14825 (the_low_target): Adjust.
14826 (initialize_low_arch): New function.
14827 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14828 (nios2_arch_setup): Set the current process'es tdesc.
14829 (target_regsets): Rename to ...
14830 (nios2_regsets): ... this.
14831 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14832 (nios2_regs_info): New function.
14833 (the_low_target): Adjust.
14834 (initialize_low_arch): New function.
14835 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14836 (aarch64_arch_setup): Set the current process'es tdesc.
14837 (target_regsets): Rename to ...
14838 (aarch64_regsets): ... this.
14839 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14840 (aarch64_regs_info): New function.
14841 (the_low_target): Adjust.
14842 (initialize_low_arch): New function.
14843 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14845 (target_regsets): Rename to ...
14846 (tile_regsets): ... this.
14847 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14848 (tile_regs_info): New function.
14849 (tile_arch_setup): Set the current process'es tdesc.
14850 (the_low_target): Adjust.
14851 (initialize_low_arch): New function.
14852 * spu-low.c (tdesc_spu): Declare.
14853 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14854 * win32-arm-low.c (tdesc_arm): Declare.
14855 (arm_arch_setup): New function.
14856 (the_low_target): Install arm_arch_setup instead of
14857 init_registers_arm.
14858 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14859 (init_windows_x86): Rename to ...
14860 (i386_arch_setup): ... this. Set `win32_tdesc'.
14861 (the_low_target): Adjust.
14862 * win32-low.c (win32_tdesc): New global.
14863 (child_add_thread): Don't create the thread cache here.
14864 (do_initial_child_stuff): Set the new process'es tdesc.
14865 * win32-low.h (struct target_desc): Forward declare.
14866 (win32_tdesc): Declare.
14867 * lynx-i386-low.c (tdesc_i386): Declare global.
14868 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14869 * lynx-low.c (lynx_tdesc): New global.
14870 (lynx_add_process): Set the new process'es tdesc.
14871 * lynx-low.h (struct target_desc): Forward declare.
14872 (lynx_tdesc): Declare global.
14873 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14874 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14875 * nto-low.c (nto_tdesc): New global.
14876 (do_attach): Set the new process'es tdesc.
14877 * nto-low.h (struct target_desc): Forward declare.
14878 (nto_tdesc): Declare.
14879 * nto-x86-low.c (tdesc_i386): Declare.
14880 (nto_x86_arch_setup): Set `nto_tdesc'.
14882 2013-06-04 Gary Benson <gbenson@redhat.com>
14884 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14885 to qSupported response when appropriate.
14886 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14887 with nonzero-length annex.
14888 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14889 arguments supplied in annex.
14891 2013-05-31 Doug Evans <dje@google.com>
14894 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14895 64 bits in 64-cross-32 environment.
14897 2013-05-28 Pedro Alves <palves@redhat.com>
14899 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14900 (aarch64-without-fpu.c): Delete rule.
14901 * configure.srv (aarch64*-*-linux*): Remove references to
14902 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14903 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14906 2013-05-24 Pedro Alves <palves@redhat.com>
14908 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14909 instead of strchr/decode_address. Error if the range isn't split
14910 with a ','. Don't assume there's be a ':' in the action.
14912 2013-05-23 Yao Qi <yao@codesourcery.com>
14913 Pedro Alves <palves@redhat.com>
14915 * linux-low.c (lwp_in_step_range): New function.
14916 (linux_wait_1): If the thread was range stepping and stopped
14917 outside the stepping range, report the stop to GDB. Otherwise,
14918 continue stepping. Add range stepping debug output.
14919 (linux_set_resume_request): Copy the step range from the resume
14920 request to the lwp.
14921 (linux_supports_range_stepping): New.
14922 (linux_target_ops) <supports_range_stepping>: Set to
14923 linux_supports_range_stepping.
14924 * linux-low.h (struct linux_target_ops)
14925 <supports_range_stepping>: New field.
14926 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14927 * linux-x86-low.c (x86_supports_range_stepping): New.
14928 (the_low_target) <supports_range_stepping>: Set to
14929 x86_supports_range_stepping.
14930 * server.c (handle_v_cont): Handle 'r' action.
14931 (handle_v_requests): Append ";r" if the target supports range
14933 * target.h (struct thread_resume) <step_range_start,
14934 step_range_end>: New fields.
14935 (struct target_ops) <supports_range_stepping>:
14937 (target_supports_range_stepping): New macro.
14939 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14941 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14942 confusion in comment.
14944 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14946 * lynx-low.c (struct process_info_private): New type.
14947 (lynx_add_process): New function.
14948 (lynx_create_inferior, lynx_attach): Replace calls to
14949 add_process by calls to lynx_add_process.
14950 (lynx_resume): If PTID is null, then try using
14951 current_process()->private->last_wait_event_ptid.
14953 (lynx_clear_inferiors): Delete. The contents of that function
14954 has been inlined in lynx_mourn;
14955 (lynx_wait_1): Save the ptid in the process's private data.
14956 (lynx_mourn): Free the process' private data. Replace call
14957 to lynx_clear_inferiors by call to clear_inferiors.
14959 2013-05-17 Yao Qi <yao@codesourcery.com>
14961 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14964 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14966 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14967 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14968 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14969 PT_TEXT_END_ADDR guards. Update comments.
14970 (linux_target_op) <read_offsets>: Conditionally define to
14971 linux_read_offsets if the target is UCLIBC and if it defines
14972 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14974 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14975 Andrew Jenner <andrew@codesourcery.com>
14977 * Makefile.in (SFILES): Add linux-nios2-low.c.
14978 (clean): Add action to delete nios2-linux.c.
14979 (nios2-linux.c): New rule.
14980 * configure.srv: Add nios2*-*-linux*.
14981 * linux-nios2-low.c: New.
14983 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14985 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14987 2013-04-25 Hui Zhu <hui@codesourcery.com>
14990 * ax.c (ax_printf): Add fflush.
14992 2013-04-22 Tom Tromey <tromey@redhat.com>
14994 * Makefile.in (SFILES): Add filestuff.c.
14995 (OBS): Add filestuff.o.
14996 (filestuff.o): New target.
14997 * config.in, configure: Rebuild.
14998 * configure.ac: Check for fdwalk, pipe2.
15000 2013-04-17 Pedro Alves <palves@redhat.com>
15002 * configure.ac (USE_THREAD_DB): Delete variable.
15003 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15004 Don't AC_SUBST USE_THREAD_DB.
15005 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15006 * config.in, configure: Regenerate.
15008 2013-04-16 Pedro Alves <palves@redhat.com>
15010 * linux-low.h (struct lwp_info) <thread_known>: Move under
15011 the USE_THREAD_DB #ifdef.
15013 2013-04-16 Pedro Alves <palves@redhat.com>
15015 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15016 (linux-low.o): Delete rule.
15017 * linux-low.h: Always include "gdb_thread_db.h" instead of
15018 conditionally including thread_db.h.
15019 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15022 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15024 * Makefile.in (install-only): Fix make install regression.
15026 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15028 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15029 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15031 * gdbserver.1: Remove.
15033 2013-03-22 Pedro Alves <palves@redhat.com>
15035 * linux-low.c (handle_extended_wait): Don't call
15036 linux_enable_event_reporting.
15038 2013-03-15 Tony Theodore <tonyt@logyst.com>
15041 * Makefile.in (SHELL): Use @SHELL@.
15043 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15045 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15048 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15050 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15051 Remove extraneous NULL element.
15053 2013-03-13 Yao Qi <yao@codesourcery.com>
15055 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15056 'V' block in trace frame.
15058 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15060 * target.h (struct target_ops): Add btrace ops.
15061 (target_supports_btrace): New macro.
15062 (target_enable_btrace): New macro.
15063 (target_disable_btrace): New macro.
15064 (target_read_btrace): New macro.
15065 * gdbthread.h (struct thread_info): Add btrace field.
15066 * server.c: Include btrace-common.h.
15067 (handle_btrace_general_set): New function.
15068 (handle_btrace_enable): New function.
15069 (handle_btrace_disable): New function.
15070 (handle_general_set): Call handle_btrace_general_set.
15071 (handle_qxfer_btrace): New function.
15072 (struct qxfer qxfer_packets[]): Add btrace entry.
15073 * inferiors.c (remove_thread): Disable btrace.
15074 * linux-low: Include linux-btrace.h.
15075 (linux_low_enable_btrace): New function.
15076 (linux_low_read_btrace): New function.
15077 (linux_target_ops): Add btrace ops.
15078 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15079 Add srv_linux_btrace=yes.
15080 (x86_64-*-linux*): Add linux-btrace.o.
15081 Add srv_linux_btrace=yes.
15082 * configure.ac: Define HAVE_LINUX_BTRACE.
15083 * config.in: Regenerated.
15084 * configure: Regenerated.
15086 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15088 * server.c (handle_qxfer): Preserve error message if -3 is
15090 (qxfer): Document the -3 return value.
15092 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15094 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15095 (linux_btrace_h): New variable.
15096 (linux-btrace.o): New rule.
15098 2013-03-08 Stan Shebs <stan@codesourcery.com>
15099 Hafiz Abid Qadeer <abidh@codesourcery.com>
15101 * tracepoint.c (trace_buffer_size): New global.
15102 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15103 (init_trace_buffer): Change to one-argument function. Allocate
15104 trace buffer memory.
15105 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15106 handle QTBuffer:size packet.
15107 (cmd_bigqtbuffer_size): New function.
15108 (initialize_tracepoint): Call init_trace_buffer with
15109 DEFAULT_TRACE_BUFFER_SIZE.
15110 * server.c (handle_query): Add QTBuffer:size in the
15113 2013-03-07 Yao Qi <yao@codesourcery.com>
15115 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15116 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15118 (cmd_qtsp): Adjust condition. Do post increment.
15119 Set cur_action and cur_step_action back to 0.
15121 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15124 * linux-low.c (linux_write_memory): Return early success if LEN is
15127 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15129 * configure.srv: Add x86_64-*-cygwin* as target.
15131 2013-02-28 Tom Tromey <tromey@redhat.com>
15133 * configure.ac: Invoke AC_SYS_LARGEFILE.
15134 * configure, config.in: Rebuild.
15136 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15138 * win32-low.c: Throughout, fix format strings and casts of
15139 printf-like functions to avoid type related warnings on all
15141 (get_child_debug_event): Print dwDebugEventCode as hex since
15142 that's how it's usually documented.
15144 2013-02-28 Yao Qi <yao@codesourcery.com>
15146 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15149 2013-02-27 Jiong Wang <jiwang@tilera.com>
15151 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15152 (reg-tilegx32.c): New rule.
15153 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15154 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15155 different register info initializer according to elf class.
15156 (init_registers_tilgx32): New function. The tilegx32 register info
15158 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15159 (tile_store_gregset): Likewise.
15161 2013-02-27 Yao Qi <yao@codesourcery.com>
15163 * server.c (process_point_options): Print debug message when
15164 debug_threads is true.
15166 2013-02-26 Yao Qi <yao@codesourcery.com>
15168 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15170 2013-02-19 Pedro Alves <palves@redhat.com>
15171 Kai Tietz <ktietz@redhat.com>
15175 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15176 instead of strtoul to extract address from packet.
15177 (process_serial_event) <'z'>: Likewise.
15179 2013-02-18 Yao Qi <yao@codesourcery.com>
15181 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15183 2013-02-14 Pedro Alves <palves@redhat.com>
15187 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15188 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15190 2013-02-14 Pedro Alves <palves@redhat.com>
15192 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15194 2013-02-14 Pedro Alves <palves@redhat.com>
15196 * tracepoint.c (save_string): Delete.
15197 (add_tracepoint_action): Use savestring instead of save_string.
15199 2013-02-12 Pedro Alves <palves@redhat.com>
15201 * linux-xtensa-low.c: Ditto.
15202 * xtensa-xtregs.c: Ditto.
15204 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15206 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15209 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15211 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15212 aarch64_num_wp_regs and aarch64_num_bp_regs to
15213 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15215 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15217 * linux-aarch64-low.c (ps_get_thread_area): Replace
15218 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15220 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15221 Marcus Shawcroft <marcus.shawcroft@arm.com>
15222 Nigel Stephens <nigel.stephens@arm.com>
15223 Yufeng Zhang <yufeng.zhang@arm.com>
15225 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15226 (aarch64.c, aarch64-without-fpu.c): New targets.
15227 * configure.srv (aarch64*-*-linux*): New.
15228 * linux-aarch64-low.c: New file.
15230 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15232 * linux-low.c (handle_extended_wait, linux_create_inferior)
15233 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15234 (dequeue_one_deferred_signal, linux_resume_one_thread)
15235 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15236 (linux_tracefork_grandchild, linux_test_for_tracefork)
15237 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15238 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15239 where the argument is 0.
15241 2013-01-25 Yao Qi <yao@codesourcery.com>
15243 * event-loop.c: Include "queue.h".
15244 (gdb_event_p): New typedef.
15245 (struct gdb_event) <next_event>: Remove.
15246 (event_queue): Change to QUEUE(gdb_event_p).
15247 (async_queue_event): Remove.
15248 (gdb_event_xfree): New.
15249 (initialize_event_loop): New.
15250 (process_event): Use API from QUEUE.
15251 (wait_for_event): Likewise.
15252 * server.c (main): Call initialize_event_loop.
15253 * server.h (initialize_event_loop): Declare.
15255 2013-01-18 Yao Qi <yao@codesourcery.com>
15257 * ax.h (struct eval_agent_expr_context): New.
15258 (gdb_eval_agent_expr): Update declaration.
15259 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15260 TFRAME. Add new argument CTX.
15261 * server.h (struct eval_agent_expr_context): Declare.
15262 (agent_mem_read, agent_tsv_read): Update declaration.
15263 (agent_mem_read_string): Likewise.
15264 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15265 (add_traceframe_block): Add new argument TPOINT.
15266 Increase TPOINT->traceframe_usage.
15267 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15268 eval_tracepoint_agent_expr.
15269 (condition_true_at_tracepoint): Likewise.
15270 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15271 (agent_mem_read_string, agent_tsv_read): Likewise.
15273 2013-01-16 Yao Qi <yao@codesourcery.com>
15275 * linux-low.c (linux_resume_one_lwp): Don't check
15276 'lwp->bp_reinsert != 0'.
15278 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15279 Pedro Alves <palves@redhat.com>
15281 * lynx-low.c (ptrace_request_to_str): Define a temporary
15282 macro and use it to simplify this function's implementation.
15284 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15286 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15289 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15291 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15293 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15295 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15297 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15299 * lynx-low.c (lynx_resume): Use the resume_info parameter
15300 to determine the ptid for the lynx_ptrace call, unless
15301 it is equal to minus_one_ptid, in which case we use the
15302 ptid of the current_inferior.
15303 (lynx_wait_1): After having received a thread create/exit
15304 event, resume the inferior's execution using the signaling
15305 thread's ptid, rather than the old ptid.
15307 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15309 * lynx-low.c (lynx_resume): Delete variable ret.
15311 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15313 * gdbreplay.c (gdbreplay_version): Update copyright year.
15314 * server.c (gdbserver_version): Likewise.
15316 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15318 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15321 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15323 * lynx-low.c (ptrace_request_to_str): Add handling for
15324 PTRACE_GETTRACESIG.
15326 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15328 * lynx-low.c (lynx_attach): Delete variable new_process.
15330 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15332 * lynx-low.c (lynx_create_inferior): Delete variable
15335 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15337 * lynx-low.c (ptrace_request_to_str): Do not handle
15338 PTRACE_GETTHREADLIST if this macro does not exist.
15340 2012-12-15 Yao Qi <yao@codesourcery.com>
15342 * Makefile.in (OBS): Add notif.o.
15343 * notif.c, notif.h: New.
15344 * server.c: Include "notif.h".
15345 (struct vstop_notif) <next>: Remove.
15347 (queue_stop_reply): Update.
15348 (push_event, send_next_stop_reply): Remove.
15349 (discard_queued_stop_replies): Update.
15350 (notif_stop): New variable.
15351 (handle_v_stopped): Remove.
15352 (handle_v_requests): Don't call handle_v_stopped. Call
15353 handle_ack_notif instead.
15354 (queue_stop_reply_callback): Call notif_event_enque instead
15355 of queue_stop_reply.
15356 (handle_status): Don't call send_next_stop_reply, call
15357 notif_write_event instead.
15358 (kill_inferior_callback): Likewise.
15359 (detach_or_kill_inferior_callback): Likewise.
15360 (main): Call initialize_notif.
15361 (process_serial_event): Call QUEUE_is_empty.
15362 (handle_target_event): Call notif_push instead of push event.
15363 * server.h (push_event): Remove declaration.
15365 2012-12-10 Tom Tromey <tromey@redhat.com>
15367 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15368 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15371 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15372 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15373 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15374 (amd64-linux-ipa.o, ax.o): Rewrite.
15375 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15376 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15377 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15378 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15379 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15380 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15381 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15382 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15383 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15384 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15385 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15386 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15387 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15388 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15389 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15390 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15391 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15392 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15393 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15394 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15395 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15396 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15397 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15398 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15399 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15400 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15401 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15402 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15403 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15404 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15405 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15406 (reg-tilegx.o): Remove.
15407 (all_object_files): New macro.
15408 Include .deps files.
15409 * aclocal.m4, configure: Rebuild.
15410 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15411 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15412 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15414 2012-12-05 Tom Tromey <tromey@redhat.com>
15417 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15419 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15421 * configure.ac: Check for linux/perf_event.h.
15422 * config.in: Regenerated.
15423 * configure: Regenerated.
15425 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15427 * hostio.c (handle_readlink): Decrease buffer size
15428 parameter passed to readlink by one byte.
15430 2012-11-26 Yao Qi <yao@codesourcery.com>
15432 * configure.ac (build_warnings): Append '-Wempty-body'.
15433 * configure: Regenerated.
15434 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15437 2012-11-15 Pierre Muller <muller@sourceware.org>
15439 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15440 * config.in: Regenerate.
15441 * configure: Regenerate.
15442 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15443 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15444 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15445 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15447 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15448 instead of <sys/wait.h> header.
15449 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15451 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15453 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15454 (various make rules): Remove -DGDBSERVER
15456 2012-11-09 Yao Qi <yao@codesourcery.com>
15458 * spu-low.c (current_ptid): Move it to ..
15459 * gdbthread.h: ... here. New.
15460 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15461 * server.c (myresume, process_serial_event): Likewise.
15462 * thread-db.c (thread_db_find_new_threads): Likewise.
15463 * tracepoint.c (run_inferior_command): Likewise.
15465 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15467 * server.c (handle_search_memory_1): Include access length in
15470 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15472 * linux-crisv32-low.c: Fix compile errors.
15474 2012-09-04 Yao Qi <yao@codesourcery.com>
15476 * tracepoint.c (cmd_qtsv): Adjust debug message.
15477 Don't check CUR_TPOINT.
15479 2012-08-28 Yao Qi <yao@codesourcery.com>
15481 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15482 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15483 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15484 Remove declarations of xmalloc, xreallloc, xstrdup and
15486 * Makefile.in (libiberty_h): New.
15487 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15488 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15490 2012-08-23 Yao Qi <yao@codesourcery.com>
15492 * server.h: Remove declaration of 'xsnprintf'.
15494 2012-08-22 Keith Seitz <keiths@redhat.com>
15496 * server.h: Include build-gnulib-gbserver/config.h.
15497 * gdbreplay.c: Likewise.
15499 2012-08-08 Doug Evans <dje@google.com>
15501 * Makefile.in (SFILES): Add gdb_vecs.c.
15502 (OBS): Add gdb_vecs.o.
15503 (gdb_vecs_h, host_defs_h): New variables.
15504 (thread-db.o): Add $(gdb_vecs_h) dependency.
15505 (gdb_vecs.o): New rule.
15506 * thread-db.c: #include "gdb_vecs.h".
15507 (thread_db_load_search): Use a vector to iterate over path elements.
15508 Handle text appearing after "$pdir".
15510 * configure.ac: Add check for strstr.
15511 * config.in: Regenerate.
15512 * configure: Regenerate.
15514 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15516 * hostio.c (handle_pread): If pread fails, fall back to attempting
15518 (handle_pwrite): Likewise for pwrite.
15520 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15522 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15523 between unsupported TYPE and unimplementable ADDR/LEN combination.
15524 (arm_insert_point): Act on new return value.
15526 2012-07-31 Pedro Alves <palves@redhat.com>
15528 * server.c (process_point_options): Only skip tokens if we find
15529 one that is unrecognized. Don't treat 'X' specially while
15530 skipping unrecognized tokens.
15532 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15534 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15535 to 4-byte-align HW breakpoint addresses for Thumb.
15537 2012-07-27 Yao Qi <yao@codesourcery.com>
15541 * server.h: Declare gdb_agent_about_to_close.
15542 * target.c (kill_inferior): Include "agent.h".
15543 New. Send command 'kill'.
15544 * target.h (kill_inferior): Removed macro.
15545 * tracepoint.c (gdb_agent_about_to_close): New.
15546 (gdb_agent_helper_thread): Handle command 'close'.
15547 Wait endlessly until the inferior stops.
15548 Install gdb_agent_remove_socket to atexit hook.
15549 (agent_socket_name): New static variable.
15550 (gdb_agent_socket_init): Replace local variable 'name' with
15551 'agent_socket_name'.
15552 (gdb_agent_remove_socket): New.
15554 2012-07-27 Yao Qi <yao@codesourcery.com>
15556 * server.c (process_point_options): Stop at 'X' when parsing.
15558 2012-07-19 Michael Eager <eager@eagercon.com>
15560 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15562 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15563 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15564 hardware breakpoint.
15566 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15568 * gdbserver/linux-low.c (initialize_low): Call
15569 linux_ptrace_init_warnings.
15571 2012-07-02 Doug Evans <dje@google.com>
15573 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15576 2012-07-02 Stan Shebs <stan@codesourcery.com>
15578 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15579 (ax.o): Add it to build rule.
15581 (OBS): Add format.o.
15582 (IPA_OBS): Add format.o.
15583 * server.c (handle_query): Claim support for breakpoint commands.
15584 (process_point_options): Add command case.
15585 (process_serial_event): Leave running if there are printfs in
15587 * mem-break.h (any_persistent_commands): Declare.
15588 (add_breakpoint_commands): Declare.
15589 (gdb_no_commands_at_breakpoint): Declare.
15590 (run_breakpoint_commands): Declare.
15591 * mem-break.c (struct point_command_list): New struct.
15592 (struct breakpoint): New field command_list.
15593 (any_persistent_commands): New function.
15594 (add_commands_to_breakpoint): New function.
15595 (add_breakpoint_commands): New function.
15596 (gdb_no_commands_at_breakpoint): New function.
15597 (run_breakpoint_commands): New function.
15598 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15600 * ax.c: Include format.h.
15601 (ax_printf): New function.
15602 (gdb_eval_agent_expr): Add printf opcode.
15604 2012-06-13 Yao Qi <yao@codesourcery.com>
15606 * server.c (start_inferior): Remove duplicated writes to fields
15607 'last_resume_kind' and 'last_status' of 'current_inferior'.
15609 2012-06-12 Yao Qi <yao@codesourcery.com>
15610 Pedro Alves <palves@redhat.com>
15612 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15614 * server.c (handle_v_cont): Extend comment.
15616 2012-06-11 Yao Qi <yao@codesourcery.com>
15618 * linux-low.c (linux_attach): Add 'static'.
15620 2012-06-06 Yao Qi <yao@codesourcery.com>
15622 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15624 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15626 Fix gcc -flto compilation warning.
15627 * server.c (main): Make variable multi_mode and attach volatile.
15629 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15631 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15632 if the platform doesn't know about it.
15634 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15636 * Makefile.in (SFILES): Add linux-tile-low.c.
15637 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15638 * configure.srv: Handle tilegx-*-linux*.
15639 * linux-tile-low.c: New file.
15641 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15643 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15645 2012-05-24 Pedro Alves <palves@redhat.com>
15649 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15651 2012-05-24 Pedro Alves <palves@redhat.com>
15655 Replace target_signal with gdb_signal throughout.
15657 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15659 * linux-low.c (linux_store_registers): Avoid the copying sequence
15660 when no data has been retrieved by ptrace.
15662 2012-05-22 Will Deacon <will.deacon@arm.com>
15664 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15665 Include asm/ptrace.h.
15666 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15669 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15671 * linux-low.c (linux_store_registers): Don't re-retrieve data
15672 with ptrace that has already been obtained from /proc. Always
15673 copy any data retrieved with ptrace to the buffer supplied.
15675 2012-05-11 Yao Qi <yao@codesourcery.com>
15676 Pedro Alves <palves@redhat.com>
15678 * linux-low.c (enum stopping_threads_kind): New.
15679 (stopping_threads): Change type to `enum stopping_threads_kind'.
15680 (handle_extended_wait): If stopping and suspending threads, leave
15681 the new_lwp suspended too.
15682 (linux_wait_for_event): Adjust.
15683 (stop_all_lwps): Set `stopping_threads' to
15684 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15685 whether we're suspending threads or just stopping them. Assert no
15688 2012-04-29 Yao Qi <yao@codesourcery.com>
15690 * server.h: Move some code to ...
15691 * gdbthread.h: ... here. New.
15692 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15693 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15694 (nto-low.o, win32-low.o): Likewise.
15695 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15696 * regcache.c, remote-utils.c, server.c: Likewise.
15697 * target.c, tracepoint.c, win32-low.c: Likewise.
15699 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15701 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15702 (PTRACE_ARG4_TYPE): Likewise.
15703 (PTRACE_XFER_TYPE): Likewise.
15704 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15705 ptrace to PTRACE_ARG3_TYPE.
15706 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15707 (PTRACE_ARG4_TYPE): Likewise.
15708 (PTRACE_XFER_TYPE): Likewise.
15709 (linux_detach_one_lwp): Cast fourth argument of
15710 ptrace to long then PTRACE_ARG4_TYPE.
15711 (regsets_fetch_inferior_registers): Cast third argument of
15712 ptrace to long then PTRACE_ARG3_TYPE.
15713 (regsets_store_inferior_registers): Likewise.
15715 2012-04-20 Pedro Alves <palves@redhat.com>
15717 * configure: Regenerate.
15719 2012-04-19 Pedro Alves <palves@redhat.com>
15721 * Makefile.in (GNULIB_BUILDDIR): New.
15722 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15723 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15724 (all, install-only, uninstall, clean-info, all-lib, clean): No
15725 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15726 (maintainer-clean realclean distclean): Use subdir_do.
15728 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15729 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15730 * acinclude.m4: Include acx_configure_dir.m4.
15731 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15732 calls. Call AC_PROG_RANLIB. Configure gnulib using
15735 (GNULIB_STDINT_H): Adjust.
15736 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15737 * gdbreplay.c: Include build-gnulib/config.h.
15738 * server.h: Likewise.
15739 * aclocal.m4: Regenerate.
15740 * config.in: Regenerate.
15741 * configure: Regenerate.
15743 2012-04-19 Pedro Alves <palves@redhat.com>
15745 * Makefile.in (LIBGNU, INCGNU): Adjust.
15746 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15747 (all, install-only, uninstall, clean-info, all-lib, clean)
15748 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15749 * configure.ac: Adjust AC_OUTPUT output.
15750 * aclocal.m4: Regenerate.
15751 * configure: Regenerate.
15753 2012-04-19 Pedro Alves <palves@redhat.com>
15755 * Makefile.in (generated_files): New.
15756 (server_h): Remove the explicit dependency on config.h, and depend
15757 on $generated_files.
15759 2012-04-19 Pedro Alves <palves@redhat.com>
15761 * Makefile.in (INCGNU): Add -Ignulib.
15763 2012-04-19 Pedro Alves <palves@redhat.com>
15765 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15766 (INCGNU): ... this, and spell out -I here.
15767 (GNULIB_LIB): Rename to ...
15768 (LIBGNU): ... this.
15769 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15771 2012-04-19 Pedro Alves <palves@redhat.com>
15773 * config.in: Regenerate.
15775 2012-04-19 Pedro Alves <palves@redhat.com>
15777 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15778 * server.h (memmem): Remove declaration.
15779 * config.in: Regenerate.
15780 * configure: Regenerate.
15782 2012-04-19 Yao Qi <yao@codesourcery.com>
15784 * Makefile.in (SFILES): Add common/vec.c.
15788 2012-04-19 Yao Qi <yao@codesourcery.com>
15790 * remote-utils.c (prepare_resume_reply): Replace with macro
15791 target_core_of_thread.
15792 * server.c (handle_qxfer_threads_proper): Likewise.
15793 * target.h (traget_core_of_thread): New macro.
15795 2012-04-18 Pedro Alves <palves@redhat.com>
15797 * aclocal.m4: Regenerate.
15798 * configure: Regenerate.
15800 2012-04-16 Yao Qi <yao@codesourcery.com>
15802 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15803 duplicated on address.
15805 2012-04-16 Yao Qi <yao@codesourcery.com>
15807 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15808 (struct tracepoint_action_ops) <send>: New field.
15809 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15810 (agent_expr_send, x_tracepoint_action_send): New.
15811 (l_tracepoint_action_send): New.
15812 (cmd_qtdp): Download and install tracepoint
15813 according to `use_agent'.
15814 (run_inferior_command): Add one more parameter `len'.
15816 (tracepoint_send_agent): New.
15817 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15819 2012-04-16 Yao Qi <yao@codesourcery.com>
15821 * tracepoint.c (download_tracepoints): Moved to ...
15822 (cmd_qtstart): ... here.
15824 2012-04-14 Yao Qi <yao@codesourcery.com>
15826 * tracepoint.c: Include inttypes.h.
15827 (struct collect_memory_action): Use sized types.
15828 (struct tracepoint): Likewise.
15829 (cmd_qtdp, stop_tracing): Update print specifiers.
15830 (cmd_qtp, response_tracepoint): Likewise.
15831 (collect_data_at_tracepoint): Likewise.
15832 (collect_data_at_step): Likewise.
15834 2012-04-14 Yao Qi <yao@codesourcery.com>
15836 Import gnulib module inttypes.
15837 * aclocal.m4, config.in, configure: Regenerated.
15839 2012-04-14 Yao Qi <yao@codesourcery.com>
15841 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15842 Makefile and config.status at last.
15844 2012-04-13 Yao Qi <yao@codesourcery.com>
15846 * tracepoint.c: Include stdint.h unconditionally.
15848 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15850 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15851 on BFD_HAVE_SYS_PROCFS_TYPE.
15852 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15853 * configure: Regenerate.
15854 * config.in: Likewise.
15856 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15858 * Makefile.in (clean): Also remove x32.c x32-linux.c
15859 x32-avx.c x32-avx-linux.c.
15860 (x32.o): New target.
15862 (x32-linux.o): Likewise.
15863 (x32-linux.c): Likewise.
15864 (x32-avx.o): Likewise.
15865 (x32-avx.c): Likewise.
15866 (x32-avx-linux.o): Likewise.
15867 (x32-avx-linux.c): Likewise.
15869 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15870 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15871 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15872 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15873 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15874 i386/x32-avx-linux.xml.
15876 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15877 (init_registers_x32_avx_linux): Likwise.
15878 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15879 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15881 2012-04-13 Pedro Alves <palves@redhat.com>
15883 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15884 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15885 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15886 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15889 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15891 * linux-x86-low.c (compat_x32_clock_t): New.
15892 (compat_x32_siginfo_t): Likewise.
15893 (compat_x32_siginfo_from_siginfo): Likewise.
15894 (siginfo_from_compat_x32_siginfo): Likewise.
15895 (linux_is_elf64): Likewise.
15896 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15897 and siginfo_from_compat_x32_siginfo for x32.
15898 (x86_arch_setup): Set linux_is_elf64.
15900 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15903 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15905 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15906 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15907 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15908 compatible with process.
15910 2012-04-12 Yao Qi <yao@codesourcery.com>
15912 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15913 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15914 (install-only, install-info, clean): Handle sub dir gnulib.
15915 (all-lib, am--refresh): New targets.
15916 (memmem.o): Remove target.
15917 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15918 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15919 (AC_REPLACE_FUNCS): Remove memmem.
15920 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15921 (AC_OUTPUT): Generate Makefile in gnulib/.
15922 * aclocal.m4, config.in, configure: Regenerated.
15924 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15926 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15928 2012-04-05 Pedro Alves <palves@redhat.com>
15930 -Werror=strict-aliasing
15932 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15935 2012-04-04 Pedro Alves <palves@redhat.com>
15937 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15938 (sparc_store_gregset_from_stack, sparc_store_gregset)
15939 (sparc_breakpoint_at): Fix formatting.
15941 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15943 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15945 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15946 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15947 * config.in: Regenerate.
15948 * configure: Likewise.
15950 2012-03-29 Pedro Alves <palves@redhat.com>
15952 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15953 Correct ptrace arguments.
15955 2012-03-28 Pedro Alves <palves@redhat.com>
15957 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15958 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15959 (IA64_FR1_REGNUM): New defines.
15960 (ia64_fetch_register): New.
15961 (the_low_target): Install it.
15962 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15964 * linux-low.c (linux_fetch_registers): Try the
15965 the_low_target.fetch_register hook first.
15967 * linux-arm-low.c (the_low_target): Adjust.
15968 * linux-bfin-low.c (the_low_target): Adjust.
15969 * linux-cris-low.c (the_low_target): Adjust.
15970 * linux-crisv32-low.c (the_low_target): Adjust.
15971 * linux-m32r-low.c (the_low_target): Adjust.
15972 * linux-m68k-low.c (the_low_target): Adjust.
15973 * linux-mips-low.c (the_low_target): Adjust.
15974 * linux-ppc-low.c (the_low_target): Adjust.
15975 * linux-s390-low.c (the_low_target): Adjust.
15976 * linux-sh-low.c (the_low_target): Adjust.
15977 * linux-sparc-low.c (the_low_target): Adjust.
15978 * linux-tic6x-low.c (the_low_target): Adjust.
15979 * linux-x86-low.c (the_low_target): Adjust.
15980 * linux-xtensa-low.c (the_low_target): Adjust.
15982 2012-03-26 Pedro Alves <palves@redhat.com>
15984 * server.c (handle_qxfer_libraries): Don't bail early if
15985 the_target->qxfer_libraries_svr4 is not NULL.
15987 2012-03-26 Pedro Alves <palves@redhat.com>
15989 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15991 2012-03-23 Pedro Alves <palves@redhat.com>
15993 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15994 "library-list-svr4" element's start tag when the the DSO list is
15997 2012-03-23 Pedro Alves <palves@redhat.com>
15999 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16000 a variable whose type size is the same as the inferior's pointer
16003 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16005 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16007 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16008 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16009 * linux-low.h: Include <signal.h>.
16010 (struct siginfo): Remove forward declaration.
16011 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16014 2012-03-21 Mike Frysinger <vapier@gentoo.org>
16016 * .gitignore: Ignore more files.
16018 2012-03-19 Pedro Alves <palves@redhat.com>
16019 Jan Kratochvil <jan.kratochvil@redhat.com>
16021 * server.c (cont_thread, general_thread): Add describing comments.
16022 (start_inferior): Clear `cont_thread'.
16023 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16026 2012-03-15 Yao Qi <yao@codesourcery.com>
16028 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16030 (cmd_qtdp): ... here.
16032 2012-03-15 Yao Qi <yao@codesourcery.com>
16034 * tracepoint.c (struct tracepoint_action_ops): New.
16035 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16036 (m_tracepoint_action_download): New.
16037 (r_tracepoint_action_download): New.
16038 (x_tracepoint_action_download): New.
16039 (l_tracepoint_action_download): New.
16040 (add_tracepoint_action): Install `action->ops' according type.
16041 (download_tracepoint_1): Move code `download' function pointer
16042 of various tracepoint_action_ops.
16044 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16046 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16047 linux_ptrace_attach_warnings.
16049 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16051 * Makefile.in (linux-ptrace.o): New.
16052 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16053 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16054 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16055 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16056 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16058 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16060 2012-03-08 Yao Qi <yao@codesourcery.com>
16061 Pedro Alves <palves@redhat.com>
16063 Fix PR server/13392.
16064 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16065 offset of JMP insn.
16066 * tracepoint.c (remove_tracepoint): New.
16067 (cmd_qtdp): Call remove_tracepoint when failed to install.
16069 2012-03-07 Pedro Alves <palves@redhat.com>
16071 * linux-low.c (get_detach_signal): New.
16072 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16073 Pass on pending signals to PTRACE_DETACH. Check the result of the
16075 * server.c (program_signals, program_signals_p): New.
16076 (handle_general_set): Handle QProgramSignals.
16077 * server.h (program_signals, program_signals_p): Declare.
16079 2012-03-05 Pedro Alves <palves@redhat.com>
16080 Jan Kratochvil <jan.kratochvil@redhat.com>
16082 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16085 2012-03-03 Yao Qi <yao@codesourcery.com>
16087 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16088 agent_look_up_symbols.
16090 2012-03-03 Yao Qi <yao@codesourcery.com>
16092 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16093 (linux-x86-low.o): Likewise.
16094 * server.h: Remove in_process_agent_loaded.
16095 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16099 2012-03-03 Yao Qi <yao@codesourcery.com>
16101 * tracepoint.c (gdb_agent_capability): New global.
16102 (in_process_agent_loaded_ust): Renamed to
16103 `in_process_agent_supports_ust'.
16105 (in_process_agent_supports_ust): Call agent_capability_check.
16106 (clear_installed_tracepoints): Assert that agent supports
16109 2012-03-03 Yao Qi <yao@codesourcery.com>
16111 * linux-low.c (linux_supports_agent): New.
16112 (linux_target_ops): Initialize field `supports_agent' with
16113 linux_supports_agent.
16114 * target.h (struct target_ops) <supports_agent>: New.
16115 (target_supports_agent): New macro.
16116 * server.c (handle_general_set): Handle packet 'QAgent'.
16117 (handle_query): Send `QAgent+'.
16118 * Makefile.in (server.o): Depends on agent.h.
16120 2012-03-03 Yao Qi <yao@codesourcery.com>
16122 * Makefile.in (OBS): Add agent.o.
16123 Add new rule for agent.o.
16124 Track dependence of tracepoint.c on agent.h.
16125 * tracepoint.c (run_inferior_command_1):
16126 (run_inferior_command): Call agent_run_command.
16127 (gdb_ust_connect_sync_socket): Deleted. Move it to
16129 (resume_thread, stop_thread): Likewise.
16130 (gdb_ust_socket_init): Renamed to ...
16131 (gdb_agent_socket_init): ... New.
16132 (gdb_ust_thread): Renamed to ...
16133 (gdb_agent_helper_thread): ... New.
16134 (gdb_ust_init): Move some code to ...
16135 (gdb_agent_init): ... here. New.
16136 [HAVE_UST]: Call gdb_ust_init.
16137 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16138 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16139 * config.in, configure: Regenerated.
16141 2012-03-02 Pedro Alves <palves@redhat.com>
16143 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16144 * linux-low.c (struct simple_pid_list): New.
16145 (stopped_pids): New a struct simple_pid_list pointer.
16146 (add_to_pid_list, pull_pid_from_list): New.
16147 (handle_extended_wait): Don't assume the first signal new children
16148 report is SIGSTOP. Adjust call to pull_pid_from_list.
16149 (linux_wait_for_lwp): Adjust.
16151 2012-03-02 Yao Qi <yao@codesourcery.com>
16153 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16156 2012-03-02 Yao Qi <yao@codesourcery.com>
16158 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16159 `stop_pc' and `tpoint'. Update caller.
16161 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16163 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16164 * linux-low.c (use_linux_regsets): New macro.
16165 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16166 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16167 (linux_register_in_regsets): New function.
16168 (usr_fetch_inferior_registers): Skip registers covered by
16170 (usr_store_inferior_registers): Likewise.
16171 (usr_fetch_inferior_registers): New macro.
16172 (usr_store_inferior_registers): Likewise.
16173 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16174 (linux_store_registers): Likewise.
16175 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16177 (init_registers_mips64_dsp_linux): Likewise.
16178 (init_registers_mips_linux): New macro.
16179 (init_registers_mips_dsp_linux): Likewise.
16180 (mips_dsp_num_regs): Likewise.
16181 (DSP_BASE, DSP_CONTROL): New fallback macros.
16182 (mips_base_regs): New macro.
16183 (mips_regmap): Use it. Fix the size.
16184 (mips_dsp_regmap): New variable.
16185 (mips_dsp_regset_bitmap): Likewise.
16186 (mips_arch_setup): New function.
16187 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16189 (mips_cannot_store_register): Likewise.
16190 (the_low_target): Update .arch_setup, .num_regs and .regmap
16191 initializers. Add .regset_bitmap initializer.
16192 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16194 * linux-bfin-low.c (the_low_target): Likewise.
16195 * linux-cris-low.c (the_low_target): Likewise.
16196 * linux-crisv32-low.c (the_low_target): Likewise.
16197 * linux-ia64-low.c (the_low_target): Likewise.
16198 * linux-m32r-low.c (the_low_target): Likewise.
16199 * linux-m68k-low.c (the_low_target): Likewise.
16200 * linux-ppc-low.c (the_low_target): Likewise.
16201 * linux-s390-low.c (the_low_target): Likewise.
16202 * linux-sh-low.c (the_low_target): Likewise.
16203 * linux-sparc-low.c (the_low_target): Likewise.
16204 * linux-tic6x-low.c (the_low_target): Likewise.
16205 * linux-x86-low.c (the_low_target): Likewise.
16206 * linux-xtensa-low.c (the_low_target): Likewise.
16207 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16208 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16209 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16211 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16212 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16214 2012-02-29 Yao Qi <yao@codesourcery.com>
16215 Pedro Alves <palves@redhat.com>
16217 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16218 `step_over_finished' is true.
16220 2012-02-27 Pedro Alves <palves@redhat.com>
16222 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16223 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16225 2012-02-27 Pedro Alves <palves@redhat.com>
16228 * linux-low.c (pid_is_stopped): New.
16229 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16231 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16233 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16236 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16238 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16240 2012-02-24 Luis Machado <lgustavo@codesourcery>
16242 * server.c (handle_query): Advertise support for target-side
16243 breakpoint condition evaluation.
16244 (process_point_options): New function.
16245 (process_serial_event): When inserting a breakpoint, check for
16246 a target-side condition that should be evaluated.
16248 * mem-break.c: Include regcache.h and ax.h.
16249 (point_cond_list_t): New data structure.
16250 (breakpoint) <cond_list>: New field.
16251 (find_gdb_breakpoint_at): Make non-static.
16252 (delete_gdb_breakpoint_at): Clear any target-side
16254 (clear_gdb_breakpoint_conditions): New function.
16255 (add_condition_to_breakpoint): Likewise.
16256 (add_breakpoint_condition): Likewise.
16257 (gdb_condition_true_at_breakpoint): Likewise.
16258 (gdb_breakpoint_here): Return result directly instead
16259 of going through a local variable.
16261 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16262 (clear_gdb_breakpoint_conditions): Likewise.
16263 (add_breakpoint_condition): Likewise.
16264 (gdb_condition_true_at_breakpoint): Likewise.
16266 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16267 (need_step_over_p): Take target-side breakpoint condition into
16270 2012-02-24 Luis Machado <lgustavo@codesourcery>
16272 * server.h: Include tracepoint.h.
16273 (agent_mem_read, agent_get_trace_state_variable_value,
16274 agent_set_trace_state_variable_value,
16275 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16276 get_set_tsv_func_addr): New prototypes.
16278 * ax.h: New include file.
16279 * ax.c: New source file.
16281 * tracepoint.c: Include ax.h.
16282 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16283 agent_expr, eval_result_type): Move to ax.h.
16284 (parse_agent_expr): Rename to ...
16285 (gdb_parse_agent_expr): ... this, make it non-static and move
16287 (unparse_agent_expr) Rename to ...
16288 (gdb_unparse_agent_expr): ... this, make it non-static and move
16290 (eval_agent_expr): Rename to ...
16291 (eval_tracepoint_agent_expr): ... this.
16292 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16293 forward declarations.
16294 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16295 (agent_get_trace_state_variable_value): New function.
16296 (agent_set_trace_state_variable_value): New function.
16297 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16298 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16299 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16300 (condition_true_at_tracepoint): Likewise.
16301 (parse_agent_expr): Rename to ...
16302 (gdb_parse_agent_expr): ... this and move to ax.c.
16303 (unparse_agent_expr): Rename to ...
16304 (gdb_unparse_agent_expr): ... this and move to ax.c.
16305 (gdb_agent_op_name): Move to ax.c.
16306 (eval_agent_expr): Rename to ...
16307 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16309 (eval_tracepoint_agent_expr): New function.
16310 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16312 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16314 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16315 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16316 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16317 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16318 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16319 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16320 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16321 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16322 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16323 (compile_bytecodes): Remove forward declaration.
16324 (is_goto_target): Move to ax.c.
16325 (compile_bytecodes): Move to ax.c and call
16326 agent_get_trace_state_variable_value (...) and
16327 agent_set_trace_state_variable_value (...).
16329 * Makefile.in: Update ax.c and IPA dependencies.
16331 2012-02-24 Pedro Alves <palves@redhat.com>
16333 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16334 (cmd_bigqtbuffer_circular): ... this. Only handle
16335 'QTBuffer:circular:'.
16336 (handle_tracepoint_general_set): Adjust.
16338 2012-02-16 Yao Qi <yao@codesourcery.com>
16340 * inferiors.c: Move code to ...
16341 * dll.c: .... here. New.
16342 * server.h: Declare clear_dlls.
16343 * Makefile.in (SFILES): Add dll.c.
16347 2012-02-11 Yao Qi <yao@codesourcery.com>
16349 * server.c: (handle_monitor_command): Add a new parameter
16351 (handle_query): Update caller.
16353 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16355 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16356 * configure, config.in: Regenerate.
16357 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16360 2012-02-02 Pedro Alves <palves@redhat.com>
16362 Try SIGKILL first, then PTRACE_KILL.
16363 * linux-low.c (linux_kill_one_lwp): New.
16364 (linux_kill_one_lwp): Rename to ...
16365 (kill_one_lwp_callback): ... this. Use the new
16366 linux_kill_one_lwp.
16368 2012-02-02 Pedro Alves <palves@redhat.com>
16370 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16373 2012-01-27 Pedro Alves <palves@redhat.com>
16375 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16376 (elf_64_file_p): Make static.
16377 (linux_pid_exe_is_elf_64_file): New.
16378 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16379 Delete declarations.
16380 (linux_pid_exe_is_elf_64_file): Declare.
16381 * linux-x86-low.c (x86_arch_setup): Use
16382 linux_pid_exe_is_elf_64_file.
16384 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16386 * linux-low.c (linux_wait_for_event_1): Rename to ...
16387 (linux_wait_for_event): ... here and merge it with former
16388 linux_wait_for_event - new variable wait_ptid, use it.
16389 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16391 2012-01-23 Pedro Alves <palves@redhat.com>
16393 * server.c (main): Avoid yet another case of infinite loop while
16394 detaching/killing after a longjmp.
16396 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16399 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16401 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16403 * hostio.c (handle_readlink): New function.
16404 (handle_vFile): Call it to handle "vFile:readlink" packets.
16406 2012-01-20 Pedro Alves <palves@redhat.com>
16407 Ulrich Weigand <ulrich.weigand@linaro.org>
16409 * server.c (handle_v_requests): Only support vAttach and vRun to
16410 start multiple processes when in extended protocol mode.
16412 2012-01-17 Pedro Alves <palves@redhat.com>
16414 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16415 memalign plus mprotect to allocate the scratch buffer.
16417 2012-01-13 Pedro Alves <palves@redhat.com>
16419 * server.c (attach_inferior): Clear `cont_thread'.
16421 2012-01-13 Pedro Alves <palves@redhat.com>
16423 * server.c (main): Avoid infinite loop while detaching/killing
16426 2012-01-09 Doug Evans <dje@google.com>
16428 * server.c (start_inferior): Set last_ptid in --wrapper case.
16430 2012-01-06 Yao Qi <yao@codesourcery.com>
16432 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16434 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16436 2012-01-04 Yao Qi <yao@codesourcery.com>
16438 * tracepoint.c (cmd_qtdp): Print debug message
16439 for static tracepoint.
16441 2012-01-04 Yao Qi <yao@codesourcery.com>
16443 * tracepoint.c (trace_vdebug): Differentiate debug message
16444 between gdbserver and IPA.
16446 2012-01-03 Yao Qi <yao@codesourcery.com>
16448 * tracepoint.c (tracepoint_was_hit): Don't collect for
16451 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16453 * terminal.h: Reformat copyright header.
16455 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16457 * server.c (gdbserver_version): Update copyright year.
16458 * gdbreplay.c (gdbreplay_version): Likewise.
16460 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16462 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16465 2011-12-18 Hui Zhu <teawater@gmail.com>
16466 * linux-low.c (linux_create_inferior): Save return value to ret.
16468 2011-12-18 Hui Zhu <teawater@gmail.com>
16470 * linux-low.c (linux_create_inferior): Save return value to ret.
16472 2011-12-16 Doug Evans <dje@google.com>
16474 * linux-low.c (linux_create_inferior): If stdio connection,
16475 redirect stdin from /dev/null, stdout to stderr.
16476 * remote-utils.c (remote_is_stdio): New static global.
16477 (remote_connection_is_stdio): New function.
16478 (remote_prepare): Handle stdio connection.
16479 (remote_open): Ditto.
16480 (remote_close): Don't close stdin for stdio connections.
16481 (read_prim,write_prim): New functions. Replace all calls to
16482 read/write to these.
16483 * server.c (main): Watch for "-" argument. Move call to
16484 remote_prepare before start_inferior.
16485 * server.h (STDIO_CONNECTION_NAME): New macro.
16486 (remote_connection_is_stdio): Declare.
16488 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16489 in debugging output.
16491 2011-12-15 Yao Qi <yao@codesourcery.com>
16493 * tracepoint.c: Include sys/syscall.h.
16494 (gdb_ust_thread): Remove preprocessor conditional.
16496 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16498 * linux-low.c (linux_detach_one_lwp): Call
16499 the_low_target.prepare_to_resume before detaching.
16501 2011-12-14 Yao Qi <yao@codesourcery.com>
16503 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16506 2011-12-14 Yao Qi <yao@codesourcery.com>
16508 * i386-low.c (i386_low_stopped_data_address): Initialize local
16509 variable `control'.
16511 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16515 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16516 DR_CONTROL unless necessary. Extend comments.
16517 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16518 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16520 2011-12-13 Yao Qi <yao@codesourcery.com>
16522 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16524 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16526 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16528 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16529 Print new debug message for such case.
16531 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16533 Fix overlapping memcpy.
16534 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16535 the read_inferior_memory transfer.
16536 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16537 write_inferior_memory transfer.
16538 (set_fast_tracepoint_jump): New variable buf. Use it for the
16539 read_inferior_memory and write_inferior_memory transfers.
16540 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16541 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16542 Use it for the write_inferior_memory transfer.
16543 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16546 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16548 * linux-low.c (fetch_register, store_register): Make code
16549 consistent, fix formatting.
16551 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16553 * linux-low.c (usr_store_inferior_registers): Factor out code
16554 to handle individual registers into...
16555 (store_register): ... this new function.
16557 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16559 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16560 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16561 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16562 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16563 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16564 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16565 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16566 (srv_xmlfiles): Add new XML files.
16568 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16570 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16571 (init_registers_s390_linux32v1): Add prototype.
16572 (init_registers_s390_linux32v2): Likewise.
16573 (init_registers_s390_linux64v1): Likewise.
16574 (init_registers_s390_linux64v2): Likewise.
16575 (init_registers_s390x_linux64v1): Likewise.
16576 (init_registers_s390x_linux64v2): Likewise.
16577 (s390_num_regs): Increment to 52.
16578 (s390_regmap): Add orig_r2 register.
16579 (s390_num_regs_3264): Increment to 68.
16580 (s390_regmap_3264): Add orig_r2 register.
16581 (s390_collect_ptrace_register): Handle orig_r2 register.
16582 (s390_supply_ptrace_register): Likewise.
16583 (s390_fill_last_break): New function.
16584 (s390_store_last_break): Likewise.
16585 (s390_fill_system_call): New function.
16586 (s390_store_system_call): Likewise.
16587 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16589 (s390_check_regset): New function.
16590 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16591 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16592 Update target_regsets for available register sets.
16594 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16595 Jan Kratochvil <jan.kratochvil@redhat.com>
16597 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16598 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16600 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16601 * linux-low.h (struct process_info_private): New member r_debug.
16602 * server.c (handle_qxfer_libraries): Call
16603 the_target->qxfer_libraries_svr4.
16604 (handle_qxfer_libraries_svr4): New function.
16605 (qxfer_packets): New entry "libraries-svr4".
16606 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16607 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16608 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16609 PACKET_qXfer_libraries_svr4.
16611 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16613 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16614 PSW address/mask between 8-byte and 16-byte formats.
16615 (s390_supply_ptrace_register): Likewise.
16616 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16617 basic addressing mode bit.
16619 2011-11-24 Stan Shebs <stan@codesourcery.com>
16621 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16623 2011-11-17 Stan Shebs <stan@codesourcery.com>
16625 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16626 (tracing_start_time): New global.
16627 (tracing_stop_time): New global.
16628 (tracing_user_name): New global.
16629 (tracing_notes): New global.
16630 (tracing_stop_note): New global.
16631 (cmd_qtstart): Set traceframe_usage, start_time.
16632 (stop_tracing): Set stop_time.
16633 (cmd_qtstatus): Report additional status.
16634 (cmd_qtp): New function.
16635 (handle_tracepoint_query): Call it.
16636 (cmd_qtnotes): New function.
16637 (handle_tracepoint_general_set): Call it.
16638 (get_timestamp): Rename from tsv_get_timestamp.
16640 2011-11-14 Stan Shebs <stan@codesourcery.com>
16641 Kwok Cheung Yeung <kcy@codesourcery.com>
16643 * linux-x86-low.c (small_jump_insn): New.
16644 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16645 trampoline and error message, build a trampoline and issue a small
16646 jump instruction to it.
16647 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16648 trampoline and error message.
16649 (x86_get_min_fast_tracepoint_insn_len): New.
16650 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16651 * linux-low.h (struct linux_target_ops): Add arguments to
16652 install_fast_tracepoint_jump_pad operation, add new operation.
16653 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16655 (linux_get_min_fast_tracepoint_insn_len): New function.
16656 (linux_target_op): Add new operation.
16657 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16658 (gdb_trampoline_buffer_end): Ditto.
16659 (gdb_trampoline_buffer_error): Ditto.
16660 (struct ipa_sym_addresses): Add fields for new IPA variables.
16661 (symbol_list): Add entries for new IPA variables.
16662 (struct tracepoint): Add fields to hold the address range of the
16663 trampoline used by the tracepoint.
16664 (trampoline_buffer_head): New static variable.
16665 (trampoline_buffer_tail): Ditto.
16666 (claim_trampoline_space): New function.
16667 (have_fast_tracepoint_trampoline_buffer): New function.
16668 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16670 (install_fast_tracepoint): Ditto, also add error buffer argument.
16671 (cmd_qtminftpilen): New function.
16672 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16673 (fast_tracepoint_from_trampoline_address): New function.
16674 (fast_tracepoint_collecting): Handle trampoline as part of jump
16676 (set_trampoline_buffer_space): New function.
16677 (initialize_tracepoint): Initialize new IPA variables.
16678 * target.h (struct target_ops): Add arguments to
16679 install_fast_tracepoint_jump_pad operation, add new
16680 get_min_fast_tracepoint_insn_len operation.
16681 (target_get_min_fast_tracepoint_insn_len): New.
16682 (install_fast_tracepoint_jump_pad): Add arguments.
16683 * server.h (IPA_BUFSIZ): Define.
16684 * linux-i386-ipa.c: Include extra header files.
16685 (initialize_fast_tracepoint_trampoline_buffer): New function.
16686 (initialize_low_tracepoint): Call it.
16687 * server.h (set_trampoline_buffer_space): Declare.
16688 (claim_trampoline_space): Ditto.
16689 (have_fast_tracepoint_trampoline_buffer): Ditto.
16691 2011-11-14 Yao Qi <yao@codesourcery.com>
16693 * server.c (handle_query): Handle InstallInTrace for qSupported.
16694 * tracepoint.c (add_tracepoint): Sort list.
16695 (install_tracepoint, download_tracepoint): New.
16696 (cmd_qtdp): Call them to install and download tracepoints.
16697 (sort_tracepoints): Removed.
16698 (cmd_qtstart): Update.
16700 2011-11-14 Yao Qi <yao@codesourcery.com>
16702 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16703 * mem-break.h: Declare.
16704 * tracepoint.c (cmd_qtstart): Move some code to ...
16705 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16707 (download_tracepoints): Move some code to ...
16708 (download_tracepoint_1): ... here. New.
16710 2011-11-08 Yao Qi <yao@codesourcery.com>
16712 * remote-utils.c (relocate_instruction): A comment fix.
16714 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16716 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16717 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16718 dr_status_mirror and dr_control_mirror from debug_reg_state.
16719 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16720 (i386_initial_stuff): Remove use of deleted globals.
16721 (i386_get_thread_context, i386_set_thread_context,
16722 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16723 from debug_reg_state.
16725 2011-11-05 Yao Qi <yao@codesourcery.com>
16727 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16728 address as TPOINT's.
16730 2011-11-02 Stan Shebs <stan@codesourcery.com>
16732 * tracepoint.c (agent_mem_read_string): New function.
16733 (eval_agent_expr): Call it for tracenz.
16734 * server.c (handle_query): Report support for tracenz.
16736 2011-11-02 Yao Qi <yao@codesourcery.com>
16738 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16740 2011-11-02 Yao Qi <yao@codesourcery.com>
16742 * target.h: Fix a typo in comment.
16744 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16746 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16747 clobber the breakpoints' shadows with fast tracepoint jumps.
16748 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16749 * target.c (write_inferior_memory): Also pass MYADDR down to
16752 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16754 * configure.ac: Check support for personality routine.
16755 * configure: Regenerate.
16756 * config.in: Likewise.
16757 * linux-low.c: Include <sys/personality.h>.
16758 Define ADDR_NO_RANDOMIZE if necessary.
16759 (linux_create_inferior): Disable address space randomization when
16760 forking inferior, if requested.
16761 (linux_supports_disable_randomization): New function.
16762 (linux_target_ops): Install it.
16763 * server.h (disable_randomization): Declare.
16764 * server.c (disable_randomization): New global variable.
16765 (handle_general_set): Handle QDisableRandomization.
16766 (handle_query): Likewise for qSupported.
16767 (main): Support --disable-randomization and --no-disable-randomization
16768 command line arguments.
16769 * target.h (struct target_ops): Add supports_disable_randomization.
16770 (target_supports_disable_randomization): New macro.
16772 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16774 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16776 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16777 [!PT_GETDSBT] (target_loadmap): New definition.
16778 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16779 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16780 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16781 and PT_GETDSBT to LINUX_LOADMAP.
16782 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16783 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16785 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16787 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16788 (arm_linux_hwbp_cap): New static variable.
16789 (arm_linux_get_hwbp_cap): Replace by ...
16790 (arm_linux_init_hwbp_cap): ... this new function.
16791 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16792 (arm_linux_get_hw_watchpoint_count): Likewise.
16793 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16794 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16795 (arm_prepare_to_resume): Use perror_with_name instead of error.
16797 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16799 * linux-arm-low.c: Include <signal.h>.
16800 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16801 (struct arm_linux_hwbp_cap): New data type.
16802 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16803 (struct arm_linux_hw_breakpoint): New data type.
16804 (MAX_BPTS, MAX_WPTS): Define.
16805 (struct arch_process_info, struct arch_lwp_info): New data types.
16806 (arm_linux_get_hwbp_cap): New function.
16807 (arm_linux_get_hw_breakpoint_count): Likewise.
16808 (arm_linux_get_hw_watchpoint_count): Likewise.
16809 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16810 (arm_hwbp_control_initialize): Likewise.
16811 (arm_hwbp_control_is_enabled): Likewise.
16812 (arm_hwbp_control_is_initialized): Likewise.
16813 (arm_hwbp_control_disable): Likewise.
16814 (arm_linux_hw_breakpoint_equal): Likewise.
16815 (arm_linux_hw_point_initialize): Likewise.
16816 (struct update_registers_data): New data structure.
16817 (update_registers_callback: New function.
16818 (arm_insert_point): Likewise.
16819 (arm_remove_point): Likewise.
16820 (arm_stopped_by_watchpoint): Likewise.
16821 (arm_stopped_data_address): Likewise.
16822 (arm_new_process): Likewise.
16823 (arm_new_thread): Likewise.
16824 (arm_prepare_to_resume): Likewise.
16825 (the_low_target): Register arm_insert_point, arm_remove_point,
16826 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16827 arm_new_thread, and arm_prepare_to_resume.
16829 2011-09-15 Stan Shebs <stan@codesourcery.com>
16831 * server.h (struct emit_ops): Add compare-goto fields.
16832 * tracepoint.c (gdb_agent_op_sizes): New table.
16833 (emit_eq_goto): New function.
16834 (emit_ne_goto): New function.
16835 (emit_lt_goto): New function.
16836 (emit_le_goto): New function.
16837 (emit_gt_goto): New function.
16838 (emit_ge_goto): New function.
16839 (is_goto_target): New function.
16840 (compile_bytecodes): Recognize special cases of compare-goto
16841 combinations and call specialized emitters for them.
16842 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16843 (amd64_emit_ne_goto): New function.
16844 (amd64_emit_lt_goto): New function.
16845 (amd64_emit_le_goto): New function.
16846 (amd64_emit_gt_goto): New function.
16847 (amd64_emit_ge_goto): New function.
16848 (amd64_emit_ops): Add the new functions.
16849 (i386_emit_eq_goto): New function.
16850 (i386_emit_ne_goto): New function.
16851 (i386_emit_lt_goto): New function.
16852 (i386_emit_le_goto): New function.
16853 (i386_emit_gt_goto): New function.
16854 (i386_emit_ge_goto): New function.
16855 (i386_emit_ops): Add the new functions.
16857 2011-09-08 Stan Shebs <stan@codesourcery.com>
16859 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16860 (i386_emit_epilogue): Restore %ebx.
16862 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16864 * server.c (step_thread): Remove definition.
16865 (process_serial_event): Don't handle Hs.
16866 * server.h (step_thread): Remove declaration.
16867 * target.c (set_desired_inferior): Remove use of step_thread.
16869 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16871 * linux-low.c: Include linux-procfs.h.
16872 (linux_attach_lwp_1): Update comments.
16873 (linux_attach): Scan for existing threads when attaching to a
16874 process that is the tgid.
16875 * Makefile.in: Update dependencies.
16877 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16879 * configure.srv: Add linux-procfs.o dependencies.
16881 2011-08-14 Yao Qi <yao@codesourcery.com>
16883 * target.h (struct target_ops): Fix indent.
16884 * win32-low.c (win32_target_ops): Fix comment.
16886 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16887 Yao Qi <yao@codesourcery.com>
16889 * Makefile.in (clean): Remove tic6x-*.c files.
16890 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16891 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16892 (tic6x-c64xp-linux.c): Likewise.
16893 * configure.srv: Add support for tic6x-*-uclinux.
16894 * linux-tic6x-low.c: New.
16895 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16897 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16898 Yao Qi <yao@codesourcery.com>
16900 * target.h (struct target_ops): Add read_loadmap.
16901 * linux-low.c (struct target_loadseg): New type.
16902 (struct target_loadmap): New type.
16903 (linux_read_loadmap): New function.
16904 (linux_target_ops): Add linux_read_loadmap.
16905 * server.c (handle_query): Support qXfer:fdpic:read packet.
16906 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16909 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16911 * win32-low.c: Include <stdint.h>.
16913 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16915 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16916 to the inferior here.
16917 (i386_remove_aligned_watchpoint): Ditto.
16918 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16919 fit part of the watchpoint in the debug registers.
16920 (i386_update_inferior_debug_regs): New.
16921 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16922 registers, and only update the inferior on success.
16923 (i386_low_remove_watchpoint): Ditto.
16925 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16927 * linux-low.c (compare_ints, unique, list_threads, show_process,
16928 linux_core_of_thread): Delete.
16929 (linux_target_ops): Change linux_core_of_thread to
16930 linux_common_core_of_thread.
16931 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16932 * utils.c (malloc_failure): Change type of argument.
16933 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16934 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16935 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16936 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16937 (IPA_OBJS): Add common-utils-ipa.o.
16938 (ptid_h, linux_osdata_h): New macros.
16939 (server_h): Add common/common-utils.h, common/xml-utils.h,
16940 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16942 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16943 ptid.o, buffer.o): New rules.
16944 (linux-low.o): Add common/linux-osdata.h as a dependency.
16945 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16946 * configure.ac: Add AC_HEADER_DIRENT check.
16947 * config.in: Regenerate.
16948 * configure: Regenerate.
16949 * remote-utils.c (xml_escape_text): Delete.
16950 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16951 buffer_xml_printf): Move to common/buffer.c.
16952 * server.c (main): Remove call to initialize_inferiors.
16953 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16954 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16955 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16956 internal_error, gdb_assert, gdb_assert_fail): Delete.
16957 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16958 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16960 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16961 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16962 initialize_inferiors): Delete.
16964 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16966 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16969 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16971 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16973 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16975 2011-05-26 Yao Qi <yao@codesourcery.com>
16977 * Makefile.in (thread-db.o): Track dependence to
16978 common/gdb_thread_db.h.
16979 * thread-db.c: include gdb_thread_db.h from right place.
16981 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16983 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16984 __FILE__ and __LINE__ to internal_error.
16986 2011-05-13 Doug Evans <dje@google.com>
16988 * thread-db.c (try_thread_db_load_from_sdir): New function.
16989 (try_thread_db_load_from_dir): New function.
16990 (thread_db_load_search): Handle $sdir, ignore $pdir.
16991 Remove trying of system directories if search of
16992 libthread-db-search-path fails, that is now done via $sdir.
16994 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16996 * server.c (handle_query): Add EnableDisableTracepoints to the list
16997 of supported features.
16998 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
17000 (cmd_qtenable_disable): New.
17001 (cmd_qtstart): Install tracepoints even if disabled.
17002 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17003 receiving a QTEnable or QTDisable packet.
17004 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17005 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17007 (gdb_probe): Skip data collection if static tracepoint is disabled.
17009 2011-05-10 Doug Evans <dje@google.com>
17011 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17013 2011-05-04 Doug Evans <dje@google.com>
17015 * linux-low.c (linux_join): Skip process lookup.
17016 * spu-low.c (spu_join): Ditto.
17017 * server.c (join_inferiors_callback): Delete.
17018 (process_serial_event): For 'D' packet (detach) call join_inferior
17021 2011-05-04 Joseph Myers <joseph@codesourcery.com>
17023 * README: Don't mention xscale*-*-linux*.
17024 * configure.srv (xscale*-*-linux*): Don't handle target.
17026 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17028 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17030 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17031 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17032 (i386_emit_void_call_2): Likewise.
17034 2011-04-26 Yao Qi <yao@codesourcery.com>
17036 * linux-low.c: Move common macros to linux-ptrace.h.
17037 Include linux-ptrace.h.
17038 * Makefile.in (linux_ptrace_h): New.
17039 (linux-low.o): Depends on linux-ptrace.h.
17041 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17043 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17044 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17045 (remote_prepare): New function with most of the TCP code from ...
17046 (remote_open): ... here. Detect PORT here unconditionally. Move also
17047 setting transport_is_reliable.
17048 * server.c (run_once): New variable.
17049 (gdbserver_usage): Document it.
17050 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17051 the first run if RUN_ONCE.
17052 * server.h (run_once, remote_prepare): New declarations.
17054 2011-04-19 Tom Tromey <tromey@redhat.com>
17056 * win32-low.c (handle_load_dll): Remove duplicate "the".
17058 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17060 Remove support for old Cygwin 1.5 versions.
17061 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17062 function to avoid warning.
17063 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17066 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17068 * gdbserver/server.h (Macro _): Define it if not available.
17070 2011-03-14 Michael Snyder <msnyder@vmware.com>
17072 * hostio.c (handle_close): Remove unnecessary null test.
17074 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17076 * Makefile.in (maintainer-clean realclean distclean): Remove
17077 "make ... subdir_do" command.
17079 2011-03-10 Michael Snyder <msnyder@vmware.com>
17081 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17083 * server.c (handle_v_run): Free alloced buffer on early return.
17085 2011-03-09 Yao Qi <yao@codesourcery.com>
17088 2011-03-04 Yao Qi <yao@codesourcery.com>
17090 * Makefile.in: Remove GNU make feature --directory.
17092 2011-03-05 Yao Qi <yao@codesourcery.com>
17094 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17095 (subdir_do): New make target. Copied from gdb/Makefile.
17096 (maintainer-clean, realclean, distclean, clean): Call corresponding
17097 make targets in common/Makefile.
17099 2011-02-11 Yao Qi <yao@codesourcery.com>
17101 * configure.ac: Call AC_PROG_RANLIB.
17102 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17103 * configure: Regenerate.
17105 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17107 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17109 2011-03-06 Yao Qi <yao@codesourcery.com>
17111 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17113 2011-03-05 Yao Qi <yao@codesourcery.com>
17115 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17116 (subdir_do): New make target. Copied from gdb/Makefile.
17117 (maintainer-clean, realclean, distclean, clean): Call corresponding
17118 make targets in common/Makefile.
17120 2011-03-04 Yao Qi <yao@codesourcery.com>
17122 * Makefile.in: Remove GNU make feature --directory.
17124 2011-03-04 Michael Snyder <msnyder@vmware.com>
17126 * server.c (queue_stop_reply): Call xmalloc not malloc.
17128 2011-03-02 Michael Snyder <msnyder@vmware.com>
17130 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17132 2011-02-28 Michael Snyder <msnyder@vmware.com>
17134 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17135 (cmd_qtframe): Ditto.
17136 (cmd_qtbuffer): Ditto.
17137 (cmd_bigqtbuffer): Ditto.
17139 * utils.c (decimal2str): Initialize 'width' to nine, then
17140 don't mess with it.
17142 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17144 * hostio.c (require_data): Free *data, not data.
17146 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17148 * hostio.c (require_data): Use free, not xfree.
17150 2011-02-27 Michael Snyder <msnyder@vmware.com>
17152 * server.c (handle_query): Discard unused value.
17154 * hostio.c (require_data): Free malloc memory before returning
17157 2011-02-26 Michael Snyder <msnyder@vmware.com>
17159 * linux-low.c (list_threads): Call closedir for dirent.
17161 2011-02-27 Michael Snyder <msnyder@vmware.com>
17163 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17164 a case statement falls through.
17166 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17168 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17171 2011-02-26 Michael Snyder <msnyder@vmware.com>
17173 * utils.c (decimal2str): Eliminate dead code and dead param.
17174 (pulongest): Drop dead param from call to decimal2str.
17177 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17179 Revert the following patch (not approved yet):
17180 2011-02-21 Hui Zhu <teawater@gmail.com>
17181 * tracepoint.c (tp_printf): New function.
17182 (eval_agent_expr): Handle gdb_agent_op_printf.
17184 2011-02-21 Hui Zhu <teawater@gmail.com>
17186 * tracepoint.c (tp_printf): New function.
17187 (eval_agent_expr): Handle gdb_agent_op_printf.
17189 2011-02-18 Tom Tromey <tromey@redhat.com>
17191 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17192 (tracepoint.o): Likewise.
17193 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17194 (gdb_agent_op_names): Likewise.
17196 2011-02-18 Tom Tromey <tromey@redhat.com>
17198 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17199 gdb_agent_op_rot>: New constants.
17200 (gdb_agent_op_names): Add pick and roll.
17201 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17204 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17206 * aclocal.m4: Regenerated with aclocal-1.11.1.
17208 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17210 * server.c (handle_qxfer_traceframe_info): New.
17211 (qxfer_packets): Register "traceframe-info".
17212 (handle_query): Report support for qXfer:traceframe-info:read+.
17213 * tracepoint.c (match_blocktype): New.
17214 (traceframe_find_block_type): Rename to ...
17215 (traceframe_walk_blocks): ... this. Add callback filter argument,
17217 (traceframe_find_block_type): New, reimplemented on top of
17218 traceframe_walk_blocks.
17219 (build_traceframe_info_xml): New.
17220 (traceframe_read_info): New.
17221 * server.h (traceframe_read_info): Declare.
17223 2011-02-11 Yao Qi <yao@codesourcery.com>
17225 * configure.ac: Call AC_PROG_RANLIB.
17226 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17227 * configure: Regenerate.
17229 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17231 * server.c (gdb_read_memory): Change return semantics to allow
17233 (handle_search_memory_1): Adjust.
17234 (process_serial_event) <'m' packet>: Handle partial transfers.
17235 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17237 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17239 * regcache.c (init_register_cache): Initialize
17240 regcache->register_status.
17241 (free_register_cache): Release regcache->register_status.
17242 (regcache_cpy): Copy register_status.
17243 (registers_to_string): Print 'x's for unavailable registers.
17244 (supply_register): Mark the register's status valid or
17245 unavailable, depending on whether a buffer was passed in or not.
17246 (supply_register_zeroed): New.
17247 (supply_regblock): Mark the registers' status valid or
17248 unavailable, depending on whether a buffer was passed in or not.
17249 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17250 (struct regcache): New `register_status' field.
17251 (supply_register_zeroed): Declare.
17252 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17253 supply_register_zeroed, rather than passing a NULL buffer to
17255 * tracepoint.c (fetch_traceframe_registers): Update comment.
17257 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17259 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17262 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17264 * server.h (decode_xfer_write): Change prototype.
17265 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17266 and don't extract the annex here.
17267 * server.c (decode_xfer_read): Remove `annex' parameter,
17268 and don't extract the annex here.
17269 (decode_xfer): New.
17270 (struct qxfer): New.
17271 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17272 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17273 (handle_qxfer_statictrace): New functions, abstracted out from
17274 handle_query, and made to use the struct qxfer interface.
17275 (handle_threads_qxfer_proper): Rename to ...
17276 (handle_qxfer_threads_proper): ... this.
17277 (handle_threads_qxfer): Rename to ...
17278 (handle_qxfer_threads): ... this. Adjust.
17279 (qxfer_packets): New array.
17280 (handle_qxfer): New function.
17281 (handle_query): Use handle_qxfer.
17283 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17285 * gdbreplay.c: Shorten lines of >= 80 columns.
17286 * linux-low.c: Ditto.
17287 * linux-ppc-low.c: Ditto.
17288 * linux-s390-low.c: Ditto.
17289 * linux-sparc-low.c: Ditto.
17290 * linux-x86-low.c: Ditto.
17291 * linux-xtensa-low.c: Ditto.
17292 * mem-break.c: Ditto.
17293 * nto-low.c: Ditto.
17294 * regcache.h: Ditto.
17295 * remote-utils.c: Ditto.
17298 * thread-db.c: Ditto.
17299 * tracepoint.c: Ditto.
17301 * win32-low.h: Ditto.
17303 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17305 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17308 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17310 * server.c (gdbserver_version): Update copyright year in version
17312 * gdbreplay.c (gdbreplay_version): Ditto.
17314 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17316 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17317 * linux-bfin-low.c: New file.
17318 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17319 PT_DATA_ADDR for BFIN targets.
17320 * Makefile.in (SFILES): Add linux-bfin-low.c.
17321 (clean): Remove reg-bfin.c.
17322 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17323 * README: Mention supported Blackfin targets.
17325 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17327 * .gitignore: New file.
17329 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17331 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17333 2010-10-22 Jie Zhang <jie@codesourcery.com>
17335 * Makefile.in: Add FLAGS_TO_PASS variable.
17336 (install): Remove dependency of install-only and recursively
17337 invoke make for install-only.
17339 2010-10-04 Doug Evans <dje@google.com>
17341 * Makefile.in (uninstall): Use $(DESTDIR).
17343 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17347 * linux-x86-low.c (compat_siginfo_from_siginfo)
17348 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17349 si_code is < 0. Check for si_code == SI_TIMER before checking for
17352 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17354 * lynx-i386-low.c: New file.
17355 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17357 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17359 * lynx-low.c (ptrace_request_to_str): Remove handling for
17360 request values that have been removed in LynxOS 5.x.
17362 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17364 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17367 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17369 * configure.ac: Add --enable-inprocess-agent option.
17370 * configure: Rebuilt.
17372 2010-09-06 Yao Qi <yao@codesourcery.com>
17374 * linux-low.c (linux_kill): Remove unused variable.
17375 (linux_stabilize_threads): Likewise.
17376 * server.c (start_inferior): Likewise.
17377 (queue_stop_reply_callback): Likewise.
17378 * tracepoint.c (do_action_at_tracepoint): Likewise.
17380 2010-09-06 Yao Qi <yao@codesourcery.com>
17382 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17385 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17387 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17389 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17391 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17394 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17396 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17397 gdbserver/lynx-ppc-low.c: New files.
17398 * Makefile.in (lynx_low_h): New variable.
17399 (lynx-low.o, lynx-ppc-low.o): New rules.
17400 * configure.ac: On LynxOS, link with -lnetinet.
17401 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17402 * configure: regenerate.
17404 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17406 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17407 * configure.ac: Add check for vasprintf and vsnprintf.
17408 * configure, config.in: Regenerate.
17409 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17411 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17413 * gdbreplay.c: Move include of alloca.h up, next to include of
17415 * server.h: Add include of malloc.h.
17416 * mem-break.c: Remove include of malloc.h.
17417 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17419 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17421 * Makefile.in (memmem.o): Build with -Wno-error.
17423 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17425 * utils.c (xsnprintf): Make non-static.
17426 * server.h: Add xsnprintf declaration.
17427 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17428 replace calls to snprintf by calls to xsnprintf throughout.
17430 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17432 * configure.ac: Add configure check for alloca.
17433 * configure, config.in: Regenerate.
17434 * server.h: Include alloca.h if it exists.
17435 * gdbreplay.c: Include alloca.h if it exists.
17437 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17439 * linux-low.c (__SIGRTMIN): Define if not already defined.
17440 (linux_create_inferior): Check for __ANDROID__ rather than
17442 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17443 are already deferred.
17444 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17445 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17446 stopped and already has a pending signal to report.
17447 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17448 a pending signal to report or is moving out of a jump pad.
17449 (linux_init_signals): Check for __ANDROID__ rather than
17452 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17454 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17455 debug_threads check. Avoid a linear search when not doing debug
17458 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17460 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17461 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17462 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17463 (process_event): Change local fd's type to gdb_fildes_t.
17464 (create_file_handler): Adjust prototype.
17465 (delete_file_handler): Adjust prototype.
17466 (handle_file_event): Adjust prototype. Use pfildes.
17467 (create_file_event): Adjsut prototype.
17468 * remote-utils.c (remote_desc, listen_desc): Change type to
17470 * server.h: New gdb_fildes_t typedef.
17471 [USE_WIN32API]: Include winsock2.h.
17472 (delete_file_handler, add_file_handler): Adjust prototypes.
17473 (pfildes): Declare.
17474 * utils.c (pfildes): New.
17476 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17478 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17479 * configure: Regenerate.
17481 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17483 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17484 (linux_done_accessing_memory): ... this.
17485 (linux_target_ops): Adjust.
17486 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17487 * nto-low.c (nto_target_ops): Adjust comment.
17488 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17489 * spu-low.c (spu_target_ops): Adjust comment.
17490 * target.h (target_ops): Rename unprepare_to_access_memory field
17491 to done_accessing_memory.
17492 (unprepare_to_access_memory): Rename to ...
17493 (done_accessing_memory): ... this.
17495 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17497 * linux-low.c (linux_prepare_to_access_memory): New.
17498 (linux_unprepare_to_access_memory): New.
17499 (linux_target_ops): Install them.
17500 * server.c (read_memory): Rename to ...
17501 (gdb_read_memory): ... this. Use
17502 prepare_to_access_memory/prepare_to_access_memory.
17503 (write_memory): Rename to ...
17504 (gdb_write_memory): ... this. Use
17505 prepare_to_access_memory/prepare_to_access_memory.
17506 (handle_search_memory_1): Adjust.
17507 (process_serial_event): Adjust.
17508 * target.h (struct target_ops): New fields
17509 prepare_to_access_memory and unprepare_to_access_memory.
17510 (prepare_to_access_memory, unprepare_to_access_memory): New.
17511 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17512 prepare_to_access_memory/prepare_to_access_memory.
17513 * nto-low.c (nto_target_ops): Adjust.
17514 * spu-low.c (spu_target_ops): Adjust.
17515 * win32-low.c (win32_target_ops): Adjust.
17517 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17519 * Makefile.in (WARN_CFLAGS): Get it from configure.
17520 (WERROR_CFLAGS): New.
17521 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17522 * configure.ac: Introduce --enable-werror, which adds -Werror to
17523 the compiler command line. Enabled by default. Disable with
17524 --disable-werror. Add -Wdeclaration-after-statement
17525 Wpointer-arith and -Wformat-nonliteral to warning flags.
17526 * configure: Regenerate.
17528 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17530 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17532 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17534 * gdbreplay.c (remote_error): New.
17536 (expect): Use gdbchar. Check for error reading from GDB.
17537 Clarify sync error output.
17538 (play): Check for errors writing to GDB.
17539 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17540 * remote-utils.c (getpkt): Check for errors writing to the remote
17543 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17545 * linux-low.c (linux_wait_1): Move non-debugging code out of
17546 `debug_threads' control.
17548 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17550 * linux-low.c (linux_wait_1): Don't set last_status here.
17551 * server.c (push_event, queue_stop_reply_callback): Assert we're
17552 not pushing a TARGET_WAITKIND_IGNORE event.
17553 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17554 (myresume, handle_target_event): Set the thread's last_resume_kind
17555 and last_status from the target returned status.
17557 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17561 * linux-x86-low.c (update_debug_registers_callback): New.
17562 (i386_dr_low_set_addr): Use it.
17563 (i386_dr_low_get_addr): New.
17564 (i386_dr_low_set_control): Use update_debug_registers_callback.
17565 (i386_dr_low_get_control): New.
17566 (i386_dr_low_get_status): Adjust.
17567 * linux-low.c (linux_stop_lwp): New.
17568 * linux-low.h (linux_stop_lwp): Declare.
17570 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17571 argument instead of a i386_debug_reg_state.
17572 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17573 a i386_debug_reg_state.
17574 (i386_insert_aligned_watchpoint): Adjust.
17575 (i386_remove_aligned_watchpoint): Adjust.
17576 (i386_low_stopped_data_address): Read the debug registers from the
17577 inferior instead of from the mirrors.
17578 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17579 (i386_dr_low_get_addr): Declare.
17580 (i386_dr_low_get_control): Declare.
17581 (i386_dr_low_get_status): Change prototype.
17583 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17584 (i386_dr_low_get_addr): New.
17585 (i386_dr_low_get_control): New.
17586 (i386_dr_low_get_status): Adjust prototype. Return
17588 (i386_initial_stuff): Clear dr_status_mirror and
17590 (i386_get_thread_context): Adjust.
17591 (i386_set_thread_context): Adjust.
17592 (i386_thread_added): Adjust.
17594 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17596 * linux-low.h (linux_thread_area): Delete declaration.
17598 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17600 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17601 after its termination.
17603 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17605 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17606 (gdb_wants_all_stopped): Delete.
17607 (linux_wait_1): Don't call them.
17608 * server.c (handle_v_cont): Tag all threads as want-stopped.
17609 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17610 stopped as "client-wants-stopped".
17612 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17614 * Makefile.in (signals_h): New.
17615 (server_h): Depend on it.
17616 (server.o): Don't depend on $(signals_def).
17617 (signals.o): Depend on $(signals_def).
17619 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17621 * Makefile.in (signals_def): New.
17622 (server_h): Append include/gdb/signals.h and signals_def.
17623 (server.o): Append signals_def.
17625 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17627 * server.c (handle_target_event): Use target_signal_to_host for
17628 resume_info.sig initialization.
17629 * target.h (struct thread_resume) <sig>: New comment.
17631 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17633 * server.c (handle_query): strcpy() the returned string from paddress()
17634 instead of sprintf().
17635 * utils.c (paddress): Return phex_nz().
17637 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17639 * server.c (handle_v_cont): Call mourn_inferior if process
17641 (myresume): Likewise.
17643 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17645 Static tracepoints, and integration with UST.
17647 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17648 * mem-break.c (uninsert_all_breakpoints)
17649 (reinsert_all_breakpoints): New.
17650 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17651 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17652 (gdb_agent_ust_loaded, helper_thread_id)
17653 (gdb_agent_helper_thread_id): New macros.
17654 (struct ipa_sym_addresses): Add addr_ust_loaded,
17655 addr_helper_thread_id, addr_cmd_buf.
17656 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17657 (in_process_agent_loaded_ust): New.
17658 (write_e_ust_not_loaded): New.
17659 (maybe_write_ipa_ust_not_loaded): New.
17660 (struct collect_static_trace_data_action): New.
17661 (enum tracepoint_type) <static_tracepoint>: New.
17662 (struct tracepoint) <handle>: Mention static tracepoints.
17663 (struct static_tracepoint_ctx): New.
17664 (CMD_BUF_SIZE): New.
17665 (add_tracepoint_action): Handle static tracepoint actions.
17666 (unprobe_marker_at): New.
17667 (clear_installed_tracepoints): Handle static tracepoints.
17668 (cmd_qtdp): Handle static tracepoints.
17669 (probe_marker_at): New.
17670 (cmd_qtstart): Handle static tracepoints.
17671 (response_tracepoint): Handle static tracepoints.
17672 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17673 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17674 (get_context_regcache): Handle static tracepoints.
17675 (do_action_at_tracepoint): Handle static tracepoint actions.
17676 (traceframe_find_block_type): Handle static trace data blocks.
17677 (traceframe_read_sdata): New.
17678 (download_tracepoints): Download static tracepoint actions.
17679 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17680 (GDB_PROBE_NAME): New.
17682 (GET_UST_SYM): New.
17685 (ust_marker_to_static_tracepoint): New.
17687 (collect_ust_data_at_tracepoint): New.
17688 (gdb_ust_probe): New.
17689 (UNIX_PATH_MAX, SOCK_DIR): New.
17690 (gdb_ust_connect_sync_socket): New.
17691 (resume_thread, stop_thread): New.
17692 (run_inferior_command): New.
17693 (init_named_socket): New.
17694 (gdb_ust_socket_init): New.
17695 (cstr_to_hexstr): New.
17697 (first_marker, next_marker): New.
17698 (response_ust_marker): New.
17699 (cmd_qtfstm, cmd_qtsstm): New.
17700 (unprobe_marker_at, probe_marker_at): New.
17701 (cmd_qtstmat, gdb_ust_thread): New.
17702 (gdb_ust_init): New.
17703 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17704 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17705 (ST_REGENTRY): New.
17706 (x86_64_st_collect_regmap): New.
17707 (X86_64_NUM_ST_COLLECT_GREGS): New.
17708 (AMD64_RIP_REGNUM): New.
17709 (supply_static_tracepoint_registers): New.
17710 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17711 (ST_REGENTRY): New.
17712 (i386_st_collect_regmap): New.
17713 (i386_NUM_ST_COLLECT_GREGS): New.
17714 (supply_static_tracepoint_registers): New.
17715 * server.c (handle_query): Handle qXfer:statictrace:read.
17716 <qSupported>: Report support for StaticTracepoints, and
17717 qXfer:statictrace:read features.
17718 * server.h (traceframe_read_sdata)
17719 (supply_static_tracepoint_registers): Declare.
17720 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17721 (unpack_varlen_hex): Include in IPA build.
17722 * Makefile.in (ustlibs, ustinc): New.
17723 (IPA_OBJS): Add remote-utils-ipa.o.
17724 ($(IPA_LIB)): Link -ldl and -lpthread.
17726 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17727 * config.in, configure: Regenerate.
17729 2010-06-20 Ian Lance Taylor <iant@google.com>
17730 Pedro Alves <pedro@codesourcery.com>
17732 * linux-x86-low.c (always_true): Delete.
17733 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17734 trying to fool the compiler with always_true.
17736 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17738 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17739 conditions in gdbserver.
17741 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17743 * spu-low.c (spu_read_memory): Wrap around local store limit.
17744 (spu_write_memory): Likewise.
17746 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17748 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17749 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17751 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17753 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17754 uses with LONGEST uses.
17756 2010-06-14 Stan Shebs <stan@codesourcery.com>
17757 Pedro Alves <pedro@codesourcery.com>
17761 * linux-x86-low.c: Include limits.h.
17763 (always_true): New.
17766 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17767 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17768 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17769 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17770 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17771 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17772 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17773 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17774 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17775 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17776 (amd64_emit_void_call_2): New.
17777 (amd64_emit_ops): New.
17778 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17779 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17780 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17781 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17782 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17783 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17784 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17785 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17786 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17787 (i386_emit_stack_adjust, i386_emit_int_call_1)
17788 (i386_emit_void_call_2): New.
17789 (i386_emit_ops): New.
17790 (x86_emit_ops): New.
17791 (the_low_target): Install x86_emit_ops.
17792 * server.h (struct emit_ops): New.
17793 (get_raw_reg_func_addr): Declare.
17794 (current_insn_ptr, emit_error): Declare.
17795 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17796 (set_trace_state_variable_value): New defines.
17797 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17798 addr_get_trace_state_variable_value and
17799 addr_set_trace_state_variable_value.
17800 (symbol_list): New fields for get_raw_reg,
17801 get_trace_state_variable_value and set_trace_state_variable_value.
17802 (condfn): New typedef.
17803 (struct tracepoint): New field `compiled_cond'.
17804 (do_action_at_tracepoint): Clear compiled_cond.
17805 (get_trace_state_variable_value, set_trace_state_variable_value):
17807 (condition_true_at_tracepoint): If there's a compiled condition,
17809 (current_insn_ptr, emit_error): New globals.
17810 (struct bytecode_address): New.
17811 (get_raw_reg_func_addr): New.
17812 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17813 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17814 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17815 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17816 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17817 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17818 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17819 (compile_tracepoint_condition, compile_bytecodes): New.
17820 * target.h (emit_ops): Forward declare.
17821 (struct target_ops): New field emit_ops.
17822 (target_emit_ops): New.
17823 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17824 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17825 * linux-low.c (linux_emit_ops): New.
17826 (linux_target_ops): Install it.
17827 * linux-low.h (struct linux_target_ops): New field emit_ops.
17829 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17831 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17832 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17834 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17835 Stan Shebs <stan@codesourcery.com>
17837 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17838 (all): Depend on $(extra_libraries).
17839 (install-only): Install the IPA.
17840 (IPA_OBJS, IPA_LIB): New.
17841 (clean): Remove the IPA lib.
17842 (IPAGENT_CFLAGS): New.
17843 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17844 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17845 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17846 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17847 * configure.ac: Check for atomic builtins support in the compiler.
17848 (IPA_DEPFILES, extra_libraries): Define.
17849 * configure.srv (ipa_obj): Add description.
17850 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17851 (i[34567]86-*-linux*): Set ipa_obj.
17852 (x86_64-*-linux*): Set ipa_obj.
17853 * linux-low.c (stabilizing_threads): New.
17854 (supports_fast_tracepoints): New.
17855 (linux_detach): Stabilize threads before detaching.
17856 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17857 the lwp is either not stabilizing, or is moving out of a jump pad.
17858 (linux_fast_tracepoint_collecting): New.
17859 (maybe_move_out_of_jump_pad): New.
17860 (enqueue_one_deferred_signal): New.
17861 (dequeue_one_deferred_signal): New.
17862 (linux_wait_for_event_1): If moving out of a jump pad, defer
17863 pending signals to later.
17864 (linux_stabilize_threads): New.
17865 (linux_wait_1): Check if threads need moving out of jump pads, and
17867 (stuck_in_jump_pad_callback): New.
17868 (move_out_of_jump_pad_callback): New.
17869 (lwp_running): New.
17870 (linux_resume_one_lwp): Handle moving out of jump pads.
17871 (linux_set_resume_request): Dequeue deferred signals.
17872 (need_step_over_p): Also step over fast tracepoint jumps.
17873 (start_step_over): Also uninsert fast tracepoint jumps.
17874 (finish_step_over): Also reinsert fast tracepoint jumps.
17875 (linux_install_fast_tracepoint_jump): New.
17876 (linux_target_ops): Install linux_stabilize_threads and
17877 linux_install_fast_tracepoint_jump_pad.
17878 * linux-low.h (linux_target_ops) <get_thread_area,
17879 install_fast_tracepoint_jump_pad>: New fields.
17880 (struct lwp_info) <collecting_fast_tracepoint,
17881 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17882 (linux_get_thread_area): Declare.
17883 * linux-x86-low.c (jump_insn): New.
17884 (x86_get_thread_area): New.
17885 (append_insns): New.
17886 (push_opcode): New.
17887 (amd64_install_fast_tracepoint_jump_pad): New.
17888 (i386_install_fast_tracepoint_jump_pad): New.
17889 (x86_install_fast_tracepoint_jump_pad): New.
17890 (the_low_target): Install x86_get_thread_area and
17891 x86_install_fast_tracepoint_jump_pad.
17892 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17893 (struct fast_tracepoint_jump): New.
17894 (fast_tracepoint_jump_insn): New.
17895 (fast_tracepoint_jump_shadow): New.
17896 (find_fast_tracepoint_jump_at): New.
17897 (fast_tracepoint_jump_here): New.
17898 (delete_fast_tracepoint_jump): New.
17899 (set_fast_tracepoint_jump): New.
17900 (uninsert_fast_tracepoint_jumps_at): New.
17901 (reinsert_fast_tracepoint_jumps_at): New.
17902 (set_breakpoint_at): Use write_inferior_memory.
17903 (uninsert_raw_breakpoint): Use write_inferior_memory.
17904 (check_mem_read): Mask out fast tracepoint jumps.
17905 (check_mem_write): Mask out fast tracepoint jumps.
17906 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17907 (set_fast_tracepoint_jump): Declare.
17908 (delete_fast_tracepoint_jump)
17909 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17910 (reinsert_fast_tracepoint_jumps_at): Declare.
17911 * regcache.c: Don't compile many functions when building the
17912 in-process agent library.
17913 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17914 the register buffer in the heap.
17915 (free_register_cache): If the register buffer isn't owned by the
17916 regcache, don't free it.
17917 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17918 pre-existing register caches.
17919 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17921 (convert_ascii_to_int): : Constify `from' parameter type.
17922 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17923 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17924 the needed buffer in-place.
17925 (relocate_instruction): New.
17926 * server.c (handle_query) <qSymbols>: If the target supports
17927 tracepoints, give it a chance of looking up symbols. Report
17928 support for fast tracepoints.
17929 (handle_status): Stabilize threads.
17930 (process_serial_event): Adjust.
17931 * server.h (struct fast_tracepoint_jump): Forward declare.
17932 (struct process_info) <fast_tracepoint_jumps>: New field.
17933 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17934 (decode_X_packet, decode_M_packet): Adjust.
17935 (relocate_instruction): Declare.
17936 (in_process_agent_loaded): Declare.
17937 (tracepoint_look_up_symbols): Declare.
17938 (struct fast_tpoint_collect_status): Declare.
17939 (fast_tracepoint_collecting): Declare.
17940 (force_unlock_trace_buffer): Declare.
17941 (handle_tracepoint_bkpts): Declare.
17942 (initialize_low_tracepoint)
17943 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17944 * target.h (struct target_ops) <stabilize_threads,
17945 install_fast_tracepoint_jump_pad>: New fields.
17946 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17947 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17948 [HAVE_STDINT_H]: Include stdint.h.
17949 (trace_debug_1): Rename to ...
17950 (trace_vdebug): ... this.
17951 (trace_debug): Rename to ...
17952 (trace_debug_1): ... this. Add `level' parameter.
17953 (trace_debug): New.
17954 (ATTR_USED, ATTR_NOINLINE): New.
17955 (IP_AGENT_EXPORT): New.
17956 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17957 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17958 (about_to_request_buffer_space, trace_buffer_is_full)
17959 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17960 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17961 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17962 (traceframe_write_count, traceframes_created)
17963 (trace_state_variables)
17964 New renaming defines.
17965 (struct ipa_sym_addresses): New.
17966 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17967 (symbol_list): New.
17968 (ipa_sym_addrs): New.
17969 (all_tracepoint_symbols_looked_up): New.
17970 (in_process_agent_loaded): New.
17971 (write_e_ipa_not_loaded): New.
17972 (maybe_write_ipa_not_loaded): New.
17973 (tracepoint_look_up_symbols): New.
17974 (debug_threads) [IN_PROCESS_AGENT]: New.
17975 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17976 (UNKNOWN_SIDE_EFFECTS): New.
17977 (stop_tracing): New.
17978 (flush_trace_buffer): New.
17979 (stop_tracing_bkpt): New.
17980 (flush_trace_buffer_bkpt): New.
17981 (read_inferior_integer): New.
17982 (read_inferior_uinteger): New.
17983 (read_inferior_data_pointer): New.
17984 (write_inferior_data_pointer): New.
17985 (write_inferior_integer): New.
17986 (write_inferior_uinteger): New.
17987 (struct collect_static_trace_data_action): Delete.
17988 (enum tracepoint_type): New.
17989 (struct tracepoint) <type>: New field `type'.
17990 <actions_str, step_actions, step_actions_str>: Only include in
17992 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17993 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17994 (tracepoints): Use IP_AGENT_EXPORT.
17995 (last_tracepoint): Don't include in the IPA.
17996 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17997 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17998 (alloced_trace_state_variables): New.
17999 (trace_state_variables): Use IP_AGENT_EXPORT.
18000 (traceframe_t): Delete unused variable.
18001 (circular_trace_buffer): Don't include in the IPA.
18002 (trace_buffer_start): Delete.
18003 (struct trace_buffer_control): New.
18004 (trace_buffer_free): Delete.
18005 (struct ipa_trace_buffer_control): New.
18006 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18007 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18009 (trace_buffer_ctrl): New.
18010 (TRACE_BUFFER_CTRL_CURR): New.
18011 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18012 Reimplement as macros.
18013 (trace_buffer_wrap): Delete.
18014 (traceframe_write_count, traceframe_read_count)
18015 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18016 (struct tracepoint_hit_ctx) <type>: New field.
18017 (struct fast_tracepoint_ctx): New.
18018 (memory_barrier): New.
18020 (record_tracepoint_error): Update atomically in the IPA.
18021 (clear_inferior_trace_buffer): New.
18022 (about_to_request_buffer_space): New.
18023 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18024 updating the same buffer.
18025 (add_tracepoint): Default the tracepoint's type to trap
18026 tracepoint, and orig_size to -1.
18027 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18028 internal variables.
18029 (create_trace_state_variable): New parameter `gdb'. Handle it.
18030 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18031 (cmd_qtdp): Handle fast tracepoints.
18032 (cmd_qtdv): Adjust.
18033 (max_jump_pad_size): New.
18034 (gdb_jump_pad_head): New.
18035 (get_jump_space_head): New.
18036 (claim_jump_space): New.
18037 (sort_tracepoints): New.
18038 (MAX_JUMP_SIZE): New.
18039 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18041 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18042 support. Upload fast traceframes, and delete internal IPA
18044 (stop_tracing_handler): New.
18045 (flush_trace_buffer_handler): New.
18046 (cmd_qtstop): Upload fast tracepoints.
18047 (response_tracepoint): Handle fast tracepoints.
18048 (tracepoint_finished_step): Upload fast traceframes. Set the
18049 tracepoint hit context's tracepoint type.
18050 (handle_tracepoint_bkpts): New.
18051 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18052 type. Add comment about fast tracepoints.
18053 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18054 non-existing action_str field.
18055 (get_context_regcache): Handle fast tracepoints.
18056 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18058 (fast_tracepoint_from_jump_pad_address): New.
18059 (fast_tracepoint_from_ipa_tpoint_address): New.
18060 (collecting_t): New.
18061 (force_unlock_trace_buffer): New.
18062 (fast_tracepoint_collecting): New.
18064 (gdb_collect): New.
18065 (write_inferior_data_ptr): New.
18066 (target_tp_heap): New.
18067 (target_malloc): New.
18068 (download_agent_expr): New.
18070 (download_tracepoints): New.
18071 (download_trace_state_variables): New.
18072 (upload_fast_traceframes): New.
18073 (IPA_FIRST_TRACEFRAME): New.
18074 (IPA_NEXT_TRACEFRAME_1): New.
18075 (IPA_NEXT_TRACEFRAME): New.
18076 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18077 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18078 (gdb_jump_pad_buffer_end): New.
18079 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18080 (initialize_tracepoint): Adjust.
18081 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18082 buffer. Initialize the low module.
18083 * utils.c (PREFIX, TOOLNAME): New.
18084 (malloc_failure): Use PREFIX.
18085 (error): In the IPA, an error causes an exit.
18086 (fatal, warning): Use PREFIX.
18087 (internal_error): Use TOOLNAME.
18088 (NUMCELLS): Increase to 10.
18089 * configure, config.in: Regenerate.
18091 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18093 * server.c (handle_query) <qSupported>: Do two passes over the
18094 qSupported string to avoid nesting strtok.
18096 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18098 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18100 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18101 -Wl,--dynamic-list.
18102 * configure: Regenerate.
18103 * proc-service.list: New.
18105 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18107 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18110 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18112 * gdbreplay.c (remote_open): Check error return from socket() call by
18113 its equality to -1 not by it being negative.
18114 * remote-utils.c (remote_open): Likewise.
18116 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18118 * config.h: Regenerate.
18120 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18122 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18123 doesn't provide PTRACE_GET_THREAD_AREA.
18125 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18127 * linux-m68k-low.c: Include <asm/ptrace.h>
18128 (ps_get_thread_area): Implement.
18130 2010-05-03 Doug Evans <dje@google.com>
18132 * event-loop.c (struct callback_event): New struct.
18133 (callback_list): New global.
18134 (append_callback_event, delete_callback_event): New functions.
18135 (process_callback): New function.
18136 (start_event_loop): Call it.
18137 * remote-utils.c (NOT_SCHEDULED): Define.
18138 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18139 moved out of readchar.
18140 (readchar): Rewrite. Call reschedule before returning.
18141 (reset_readchar): New function.
18142 (remote_close): Call it.
18143 (process_remaining, reschedule): New functions.
18144 * server.h (callback_handler_func): New typedef.
18145 (append_callback_event, delete_callback_event): Declare.
18147 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18149 * proc-service.c (ps_pglobal_lookup): Use
18150 thread_db_look_up_one_symbol.
18151 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18152 parameter. Use it instead of all_symbols_looked_up.
18153 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18155 (all_symbols_looked_up): Don't declare.
18156 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18157 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18159 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18160 Set all_symbols_looked_up here.
18161 (thread_db_look_up_one_symbol): New.
18162 (thread_db_get_tls_address): Adjust.
18163 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18164 thread_db object on the heap, and tentatively set it in the
18166 (thread_db_init): Don't set all_symbols_looked_up here.
18167 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18169 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18171 * linux-low.c (linux_kill, linux_detach): Adjust.
18172 (status_pending_p_callback): Remove redundant statement. Check
18173 for !TARGET_WAITIKIND_IGNORE, instead of
18174 TARGET_WAITKIND_STOPPED.
18175 (handle_tracepoints): Make sure LWP is locked. Adjust.
18176 (linux_wait_for_event_1): Adjust.
18177 (linux_cancel_breakpoints): New.
18178 (unsuspend_one_lwp): New.
18179 (unsuspend_all_lwps): New.
18180 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18181 (send_sigstop_callback): Change return type to int, add new
18182 `except' parameter and handle it.
18183 (suspend_and_send_sigstop_callback): New.
18184 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18185 pass them down. If SUSPEND, also increment the lwp's suspend
18187 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18188 (need_step_over_p): Don't consider suspended LWPs.
18189 (start_step_over): Adjust.
18190 (proceed_one_lwp): Change return type to int, add new `except'
18191 parameter and handle it.
18192 (unsuspend_and_proceed_one_lwp): New.
18193 (proceed_all_lwps): Use find_inferior instead of
18195 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18196 also decrement the suspend count of LWPs. Pass `except' down,
18197 instead of hacking its suspend count.
18198 (linux_pause_all): Add `freeze' parameter. Adjust.
18199 (linux_unpause_all): New.
18200 (linux_target_ops): Install linux_unpause_all.
18201 * server.c (handle_status): Adjust.
18202 * target.h (struct target_ops): New fields `unpause_all' and
18203 `cancel_breakpoints'. Add new parameter to `pause_all'.
18204 (pause_all): Add new `freeze' parameter.
18205 (unpause_all): New.
18206 (cancel_breakpoints): New.
18207 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18208 cancel breakpoints.
18209 (cmd_qtstart): Pause threads.
18210 (stop_tracing): Pause threads, and cancel breakpoints.
18211 * win32-low.c (win32_target_ops): Adjust.
18213 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18215 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18216 the inferior right away from here...
18217 (linux_wait_1): ... to here, and adjust to check the thread's
18218 last_resume_kind instead of the lwp's step or stop_expected flags.
18220 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18222 * README: Use consistent `GDB' and `GDBserver' spellings.
18224 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18226 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18227 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18228 (linux_detach_one_lwp): Assume the lwp is stopped.
18229 (any_thread_of): Delete.
18230 (linux_detach): Stop all lwps here. Don't blindly delete all
18232 (delete_lwp_callback): New.
18233 (linux_mourn): Delete all lwps of the process that is gone.
18234 (linux_wait_1): Don't delete the last lwp of the process here.
18235 * mem-break.h (mark_breakpoints_out): Declare.
18236 * mem-break.c (mark_breakpoints_out): New.
18237 (free_all_breakpoints): Use it.
18238 * server.c (handle_target_event): If the process is gone, mark
18240 * thread-db.c (struct thread_db) <create_bp>: New field.
18241 (thread_db_enable_reporting): Fix prototype. Store a thread event
18242 breakpoint reference in the thread_db struct.
18243 (thread_db_load_search): Clear the thread_db object.
18244 (try_thread_db_load_1): Ditto.
18245 (switch_to_process): New.
18246 (disable_thread_event_reporting): Use it.
18247 (remove_thread_event_breakpoints): New.
18248 (thread_db_detach, thread_db_mourn): Use it.
18250 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18252 * linux-low.c (linux_enable_event_reporting): New.
18253 (linux_wait_for_event_1, handle_extended_wait): Use it.
18255 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18257 * linux-low.c (linux_kill_one_lwp, linux_kill)
18258 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18259 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18260 SIGSTOP even if the LWP is stopped.
18261 (send_sigstop_callback): New.
18262 (stop_all_lwps): Use send_sigstop_callback instead.
18263 (linux_resume_one_thread): Adjust.
18264 (proceed_one_lwp): Still proceed an LWP that the client has
18265 requested to stop, if we haven't reported it as stopped yet. Make
18266 sure that LWPs the client want stopped, have a pending SIGSTOP.
18268 2010-04-26 Doug Evans <dje@google.com>
18270 * server.c (handle_general_set): Make static.
18272 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18273 Print received char after testing for error/eof instead of before.
18274 (input_interrupt): Tweak comment.
18276 2010-04-23 Doug Evans <dje@google.com>
18278 * server.c (start_inferior): Print inferior argv if --debug.
18280 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18282 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18283 * nto-x86-low.c: Include server.h
18285 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18287 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18288 be consistent with other sources of this directory.
18289 (init_registers_amd64): Correct name of source file of this function
18292 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18294 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18295 64-bit executables.
18297 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18299 * win32-i386-low.c: Add 64-bit support.
18300 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18301 (init_registers_amd64): Declare.
18302 (mappings): Add 64-bit version of array.
18303 (init_windows_x86): New function.
18304 (the_low_target): Change init_arch field to init_windows_x86.
18306 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18308 * win32-low.c: Adapt to support also 64-bit architecture.
18309 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18310 (get_image_name): Use SIZE_T type for local variable `done'.
18311 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18312 (toolhelp_get_dll_name): Idem.
18313 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18314 Use uintptr_t typecast to avoid warning.
18315 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18316 (handle_exception): Use phex_nz to avoid warning.
18317 (win32_wait): Remove unused local variable `process'.
18319 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18321 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18324 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18326 * configure.ac: Use `ws2_32' library for srv_mingw.
18327 * configure: Regenerate.
18328 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18329 * remote-utils.c: Likewise.
18331 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18333 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18334 if __x86_64__ is defined.
18336 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18338 * configure: Regenerate.
18340 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18342 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18343 * target.h (target_ops): New get_tib_address field.
18344 * win32-low.h (win32_thread_info): Add thread_local_base field.
18345 * win32-low.c (child_add_thread): Add tlb argument.
18346 Set thread_local_base field to TLB.
18347 (get_child_debug_event): Adapt to child_add_thread change.
18348 (win32_get_tib_address): New function.
18349 (win32_target_ops): Set get_tib_address field to
18350 win32_get_tib_address.
18351 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18353 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18355 * linux-low.c (linux_mourn): Also remove the process.
18356 * server.c (handle_target_event): Don't remove the process here.
18357 * nto-low.c (nto_mourn): New.
18358 (nto_target_ops): Install it.
18359 * spu-low.c (spu_mourn): New.
18360 (spu_target_ops): Install it.
18361 * win32-low.c (win32_mourn): New.
18362 (win32_target_ops): Install it.
18364 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18366 * server.h (buffer_xml_printf): Remove redundant `;'.
18368 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18370 * regcache.c (set_register_cache): Invalidate regcaches before
18371 changing the register cache layout.
18372 (regcache_invalidate_one): Allow a NULL regcache.
18373 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18374 regcaches before changing the register cache layout or the target
18377 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18379 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18380 variable warning on Linux/x86-64.
18382 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18384 GDBserver disconnected tracing support.
18386 * linux-low.c (linux_remove_process): Delete.
18387 (add_lwp): Don't set last_resume_kind here.
18388 (linux_kill): Use `mourn'.
18389 (linux_detach): Use `thread_db_detach', and `mourn'.
18390 (linux_mourn): New.
18391 (linux_attach_lwp_1): Adjust comment.
18392 (linux_attach): last_resume_kind moved the thread_info; adjust.
18393 (status_pending_p_callback): Adjust.
18394 (linux_wait_for_event_1): Adjust.
18395 (count_events_callback, select_singlestep_lwp_callback)
18396 (select_event_lwp_callback, cancel_breakpoints_callback)
18397 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18398 (proceed_one_lwp): Adjust.
18399 (linux_async): Add debug output.
18400 (linux_thread_stopped): New.
18401 (linux_pause_all): New.
18402 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18404 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18405 (thread_db_free): Delete declaration.
18406 (thread_db_detach, thread_db_mourn): Declare.
18407 * thread-db.c (thread_db_init): Use thread_db_mourn.
18408 (thread_db_free): Delete, split in two.
18409 (disable_thread_event_reporting): New.
18410 (thread_db_detach): New.
18411 (thread_db_mourn): New.
18413 * server.h (struct thread_info) <last_resume_kind>: New field.
18414 <attached>: Add comment.
18415 <gdb_detached>: New field.
18416 (handler_func): Change return type to int.
18417 (handle_serial_event, handle_target_event): Ditto.
18418 (gdb_connected): Declare.
18420 (disconnected_tracing): Declare.
18421 (stop_tracing): Declare.
18423 * server.c (handle_query) <qSupported>: Report support for
18424 disconnected tracing.
18425 (queue_stop_reply_callback): Account for running threads.
18426 (gdb_wants_thread_stopped): New.
18427 (gdb_wants_all_threads_stopped): New.
18428 (gdb_reattached_process): New.
18429 (handle_status): Clear the `gdb_detached' flag of all processes.
18430 In all-stop, stop all threads.
18431 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18432 (process_serial_event): If the remote connection breaks, or if an
18433 exit was forced with "monitor exit", force an event loop exit.
18434 Handle disconnected tracing on detach.
18435 (handle_serial_event): Adjust.
18436 (handle_target_event): If GDB isn't connected, forward events back
18437 to the inferior, unless the last process exited, in which case,
18438 exit gdbserver. Adjust interface.
18440 * remote-utils.c (remote_open): Don't block in accept. Instead
18441 register an event loop source on the listen socket file
18442 descriptor. Refactor bits into ...
18443 (listen_desc): ... this new global.
18444 (gdb_connected): ... this new function.
18445 (enable_async_notification): ... this new function.
18446 (handle_accept_event): ... this new function.
18447 (remote_close): Clear remote_desc.
18449 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18451 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18453 (mourn_inferior): Define.
18454 (target_process_qsupported): Avoid the dangling else problem.
18455 (thread_stopped): Define.
18456 (pause_all): Define.
18457 (target_waitstatus_to_string): Declare.
18458 * target.c (target_waitstatus_to_string): New.
18460 * tracepoint.c (tracing): Make extern.
18461 (disconnected_tracing): New.
18462 (stop_tracing): Make extern. Handle tracing stops due to GDB
18464 (cmd_qtdisconnected): New.
18465 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18466 (handle_tracepoint_general_set): Handle QTDisconnected.
18468 * event-loop.c (event_handler_func): Change return type to int.
18469 (process_event): Bail out if the event handler wants the event
18471 (handle_file_event): Ditto.
18472 (start_event_loop): Bail out if the event handler wants the event
18475 * nto-low.c (nto_target_ops): Adjust.
18476 * spu-low.c (spu_wait): Don't remove the process here.
18477 (spu_target_ops): Adjust.
18478 * win32-low.c (win32_wait): Don't remove the process here.
18479 (win32_target_ops): Adjust.
18481 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18483 * regcache.c (realloc_register_cache): Invalidate inferior's
18484 regcache before recreating it.
18486 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18488 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18490 2010-04-09 Stan Shebs <stan@codesourcery.com>
18491 Pedro Alves <pedro@codesourcery.com>
18493 * server.h (LONGEST): New.
18494 (struct thread_info) <while_stepping>: New field.
18495 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18497 (initialize_tracepoint, handle_tracepoint_general_set)
18498 (handle_tracepoint_query, tracepoint_finished_step)
18499 (tracepoint_was_hit, release_while_stepping_state_list):
18500 (current_traceframe): Declare.
18501 * server.c (handle_general_set): Handle tracepoint packets.
18502 (read_memory): New.
18503 (write_memory): New.
18504 (handle_search_memory_1): Use read_memory.
18505 (handle_query): Report support for conditional tracepoints, trace
18506 state variables, and tracepoint sources. Handle tracepoint
18508 (main): Initialize the tracepoints module.
18509 (process_serial_event): Handle traceframe reads/writes.
18511 * linux-low.c (handle_tracepoints): New.
18512 (linux_wait_1): Call it.
18513 (linux_resume_one_lwp): Handle while-stepping.
18514 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18515 (linux_target_ops): Install them.
18516 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18518 * linux-x86-low.c (x86_supports_tracepoints): New.
18519 (the_low_target). Install it.
18521 * mem-break.h (delete_breakpoint): Declare.
18522 * mem-break.c (delete_breakpoint): Make external.
18524 * target.h (struct target_ops): Add `supports_tracepoints',
18525 `read_pc', and `write_pc' fields.
18526 (target_supports_tracepoints): Define.
18527 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18530 * regcache.h (struct regcache) <registers_owned>: New field.
18531 (init_register_cache, regcache_cpy): Declare.
18532 (regcache_read_pc, regcache_write_pc): Declare.
18533 (register_cache_size): Declare.
18534 (supply_regblock): Declare.
18535 * regcache.c (init_register_cache): New.
18536 (new_register_cache): Use it.
18537 (regcache_cpy): New.
18538 (register_cache_size): New.
18539 (supply_regblock): New.
18540 (regcache_read_pc, regcache_write_pc): New.
18542 * tracepoint.c: New.
18544 * Makefile.in (OBS): Add tracepoint.o.
18545 (tracepoint.o): New rule.
18547 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18549 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18551 (i386-mmx.c): Likewise.
18552 (i386-mmx-linux.o): Likewise.
18553 (i386-mmx-linux.c): Likewise.
18555 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18556 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18557 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18558 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18560 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18561 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18562 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18564 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18566 * Makefile.in (clean): Updated.
18568 (i386-avx.c): Likewise.
18569 (i386-avx-linux.o): Likewise.
18570 (i386-avx-linux.c): Likewise.
18571 (amd64-avx.o): Likewise.
18572 (amd64-avx.c): Likewise.
18573 (amd64-avx-linux.o): Likewise.
18574 (amd64-avx-linux.c): Likewise.
18576 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18577 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18578 (srv_amd64_regobj): Add amd64-avx.o.
18579 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18580 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18581 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18582 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18583 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18584 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18585 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18587 * i387-fp.c: Include "i386-xstate.h".
18589 (i387_cache_to_xsave): Likewise.
18590 (i387_xsave_to_cache): Likewise.
18591 (x86_xcr0): Likewise.
18593 * i387-fp.h (i387_cache_to_xsave): Likewise.
18594 (i387_xsave_to_cache): Likewise.
18595 (x86_xcr0): Likewise.
18597 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18598 * linux-crisv32-low.c (target_regsets): Likewise.
18599 * linux-m68k-low.c (target_regsets): Likewise.
18600 * linux-mips-low.c (target_regsets): Likewise.
18601 * linux-ppc-low.c (target_regsets): Likewise.
18602 * linux-s390-low.c (target_regsets): Likewise.
18603 * linux-sh-low.c (target_regsets): Likewise.
18604 * linux-sparc-low.c (target_regsets): Likewise.
18605 * linux-xtensa-low.c (target_regsets): Likewise.
18607 * linux-low.c: Include <sys/uio.h>.
18608 (regsets_fetch_inferior_registers): Support nt_type.
18609 (regsets_store_inferior_registers): Likewise.
18610 (linux_process_qsupported): New.
18611 (linux_target_ops): Add linux_process_qsupported.
18613 * linux-low.h (regset_info): Add nt_type.
18614 (linux_target_ops): Add process_qsupported.
18616 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18618 (init_registers_i386_avx_linux): New.
18619 (init_registers_amd64_avx_linux): Likewise.
18620 (xmltarget_i386_linux_no_xml): Likewise.
18621 (xmltarget_amd64_linux_no_xml): Likewise.
18622 (PTRACE_GETREGSET): Likewise.
18623 (PTRACE_SETREGSET): Likewise.
18624 (x86_fill_xstateregset): Likewise.
18625 (x86_store_xstateregset): Likewise.
18626 (use_xml): Likewise.
18627 (x86_linux_update_xmltarget): Likewise.
18628 (x86_linux_process_qsupported): Likewise.
18629 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18630 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18631 init_registers_i386_linux here. Call
18632 x86_linux_update_xmltarget.
18633 (the_low_target): Add x86_linux_process_qsupported.
18635 * server.c (handle_query): Call target_process_qsupported.
18637 * target.h (target_ops): Add process_qsupported.
18638 (target_process_qsupported): New.
18640 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18642 * inferiors.c (add_thread): Set last_status kind to
18643 TARGET_WAITKIND_IGNORE.
18644 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18645 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18646 (linux_wait_1): Move `thread' local definition to block that uses
18647 it. Don't NULL initialize `event_child'.
18648 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18649 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18650 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18652 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18654 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18655 an extended waitstatus, or by a watchpoint.
18656 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18657 thread was stepping or has been stopped by a watchpoint.
18659 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18661 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18662 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18663 of another, then delete the previous, and validate all
18665 (validate_inserted_breakpoint): New.
18666 (delete_disabled_breakpoints): New.
18667 (validate_breakpoints): New.
18668 (check_mem_read): Validate breakpoints before trusting their
18669 shadow. Delete disabled breakpoints.
18670 (check_mem_write): Validate breakpoints before trusting they
18671 should be inserted. Delete disabled breakpoints.
18672 * mem-break.h (validate_breakpoints):
18673 * server.c (handle_query): Validate breakpoints when we see a
18676 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18678 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18679 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18680 if we could tell there's a GDB breakpoint at stop_pc.
18681 (need_step_over_p): Don't do a step over if we find a GDB
18682 breakpoint at the resume PC.
18684 * mem-break.c (struct raw_breakpoint): New.
18685 (enum bkpt_type): New type `gdb_breakpoint'.
18686 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18687 fields. New field `raw'.
18688 (find_raw_breakpoint_at): New.
18689 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18690 breakpoint instead.
18691 (set_breakpoint_at): Adjust.
18692 (delete_raw_breakpoint): New.
18693 (release_breakpoint): New.
18694 (delete_breakpoint): Rename to...
18695 (delete_breakpoint_1): ... this. Add proc parameter. Use
18696 release_breakpoint. Return ENOENT.
18697 (delete_breakpoint): Reimplement.
18698 (find_breakpoint_at): Delete.
18699 (find_gdb_breakpoint_at): New.
18700 (delete_breakpoint_at): Delete.
18701 (set_gdb_breakpoint_at): New.
18702 (delete_gdb_breakpoint_at): New.
18703 (gdb_breakpoint_here): New.
18704 (set_reinsert_breakpoint): Use release_breakpoint.
18705 (uninsert_breakpoint): Rename to ...
18706 (uninsert_raw_breakpoint): ... this.
18707 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18708 (reinsert_raw_breakpoint): Change parameter type to
18710 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18712 (check_breakpoints): Adjust. Use release_breakpoint.
18713 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18714 (breakpoint_inserted_here): Ditto.
18715 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18716 Don't trust the breakpoint's shadow if it is not inserted.
18717 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18718 (delete_all_breakpoints): Adjust.
18719 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18720 use delete_breakpoint_1.
18722 * mem-break.h (breakpoints_supported): Delete declaration.
18723 (set_gdb_breakpoint_at): Declare.
18724 (gdb_breakpoint_here): Declare.
18725 (delete_breakpoint_at): Delete.
18726 (delete_gdb_breakpoint_at): Declare.
18728 * server.h (struct raw_breakpoint): Forward declare.
18729 (struct process_info): New field `raw_breakpoints'.
18731 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18734 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18736 * linux-low.c (status_pending_p_callback): Fix comment.
18737 (linux_wait_for_event_1): Move most of the internal breakpoint
18738 handling from here...
18739 (linux_wait_1): ... to here.
18740 (count_events_callback): New.
18741 (select_singlestep_lwp_callback): New.
18742 (select_event_lwp_callback): New.
18743 (cancel_breakpoints_callback): New.
18744 (select_event_lwp): New.
18745 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18746 priority to all LWPs that have had events that should be reported
18747 to the client. Cancel breakpoints when about to reporting the
18748 event to the client, not while stopping lwps. No longer cancel
18749 finished single-steps here.
18750 (cancel_finished_single_step): Delete.
18751 (cancel_finished_single_steps): Delete.
18753 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18755 * mem-break.c (enum bkpt_type): New.
18756 (struct breakpoint): New field `type'.
18757 (set_breakpoint_at): Change return type to struct breakpoint
18758 pointer. Set type to `other_breakpoint' by default.
18759 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18760 in the breakpoint list.
18761 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18762 (reinsert_breakpoint): Rename to ...
18763 (reinsert_raw_breakpoint): ... this.
18764 (reinsert_breakpoints_at): Adjust.
18765 * mem-break.h (struct breakpoint): Declare.
18766 (set_breakpoint_at): Change return type to struct breakpoint
18769 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18771 * server.c (handle_query): Assign, not compare.
18773 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18775 Teach linux gdbserver to step-over-breakpoints.
18777 * linux-low.c (can_hardware_single_step): New.
18778 (supports_breakpoints): New.
18779 (handle_extended_wait): If stopping threads, read the stop pc of
18780 the new cloned LWP.
18782 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18783 low target doesn't support retrieving the PC.
18784 (add_lwp): Set last_resume_kind to resume_continue.
18785 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18786 (linux_attach): Don't clear stop_expected. Set the lwp's
18787 last_resume_kind to resume_stop.
18788 (linux_detach_one_lwp): Don't check for removed breakpoints.
18789 (check_removed_breakpoint): Delete.
18790 (status_pending_p): Rename to ...
18791 (status_pending_p_callback): ... this. Don't check for removed
18792 breakpoints. Don't consider threads that are stopped from GDB's
18794 (linux_wait_for_lwp): Always read the stop_pc here.
18795 (cancel_breakpoint): New.
18796 (step_over_bkpt): New global.
18797 (linux_wait_for_event_1): Implement stepping over breakpoints.
18798 (gdb_wants_lwp_stopped): New.
18799 (gdb_wants_all_stopped): New.
18800 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18801 single-step traps here. Store the thread's last reported target
18803 (send_sigstop): Don't clear stop_expected. Always set it,
18805 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18806 (cancel_finished_single_step): New.
18807 (cancel_finished_single_steps): New.
18808 (wait_for_sigstop): Don't cancel finished single-step traps here.
18809 (linux_resume_one_lwp): Don't check for removed breakpoints.
18810 Don't set `step' on non-hardware step archs.
18811 (linux_set_resume_request): Ignore resume_stop requests if already
18812 stopping or stopped. Set the lwp's last_resume_kind.
18813 (resume_status_pending_p): Don't check for removed breakpoints.
18814 (need_step_over_p): New.
18815 (start_step_over): New.
18816 (finish_step_over): New.
18817 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18818 requests. Clear the thread's last reported target waitstatus.
18819 Don't use the `suspended' flag. Don't consider pending breakpoints.
18820 (linux_resume): Start a step-over if necessary.
18821 (proceed_one_lwp): New.
18822 (proceed_all_lwps): New.
18823 (unstop_all_lwps): New.
18824 * linux-low.h (struct lwp_info): Rewrite comment for the
18825 `suspended' flag. Add the `stop_pc' field. Delete the
18826 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18827 Add `'last_resume_kind' and `need_step_over' fields.
18828 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18829 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18830 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18831 (set_raw_breakpoint_at): New.
18832 (set_breakpoint_at): Rewrite to use it.
18833 (reinsert_breakpoint_handler): Delete.
18834 (set_reinsert_breakpoint): New.
18835 (reinsert_breakpoint_by_bp): Delete.
18836 (delete_reinsert_breakpoints): New.
18837 (uninsert_breakpoint): Rewrite.
18838 (uninsert_breakpoints_at): New.
18839 (reinsert_breakpoint): Rewrite.
18840 (reinsert_breakpoints_at): New.
18841 (check_breakpoints): Rewrite.
18842 (breakpoint_here): New.
18843 (breakpoint_inserted_here): New.
18844 (check_mem_read): Adjust.
18845 * mem-break.h (breakpoints_supported, breakpoint_here)
18846 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18847 (reinsert_breakpoint_by_bp): Delete declaration.
18848 (delete_reinsert_breakpoints): Declare.
18849 (reinsert_breakpoint): Delete declaration.
18850 (reinsert_breakpoints_at): Declare.
18851 (uninsert_breakpoint): Delete declaration.
18852 (uninsert_breakpoints_at): Declare.
18853 (check_breakpoints): Adjust prototype.
18854 * server.h: Adjust include order.
18855 (struct thread_info): Declare here. Add a `last_status' field.
18857 2010-03-23 Michael Snyder <msnyder@vmware.com>
18859 * server.c (crc32): New function.
18860 (handle_query): Add handling for 'qCRC:' request.
18862 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18864 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18865 lwp had been stopped by a watchpoint.
18867 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18869 * server.h (internal_error): Declare.
18870 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18871 * utils.c (internal_error): New function.
18873 2010-03-15 Andreas Schwab <schwab@redhat.com>
18875 * configure.srv: Fix typo setting srv_regobj.
18877 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18879 * linux-low.c (fetch_register): Avoid passing a non string literal
18881 (usr_store_inferior_registers): Ditto.
18883 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18885 * linux-low.c (linux_write_memory): Bail out early if peeking
18888 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18890 * linux-low.h (struct lwp_info): New fields
18891 `stopped_by_watchpoint' and `stopped_data_address'.
18892 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18893 here, and cache them in the lwp object.
18894 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18896 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18898 (linux_stopped_by_watchpoint): Rewrite.
18899 (linux_stopped_data_address): Rewrite.
18901 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18903 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18904 switching the current inferior, not before.
18906 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18908 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18909 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18910 i386-linux.c and amd64-linux.c.
18911 (reg-i386.o): Removed.
18912 (reg-i386.c): Likewise.
18913 (reg-i386-linux.o): Likewise.
18914 (reg-i386-linux.c): Likewise.
18915 (reg-x86-64.o): Likewise.
18916 (reg-x86-64.c): Likewise.
18917 (reg-x86-64-linux.o): Likewise.
18918 (reg-x86-64-linux.c): Likewise.
18920 (i386.c): Likewise.
18921 (i386-linux.o): Likewise.
18922 (i386-linux.c): Likewise.
18923 (amd64.o): Likewise.
18924 (amd64.c): Likewise.
18925 (amd64-linux.o): Likewise.
18926 (amd64-linux.c): Likewise.
18928 * configure.srv (srv_i386_regobj): New.
18929 (srv_i386_linux_regobj): Likewise.
18930 (srv_amd64_regobj): Likewise.
18931 (srv_amd64_linux_regobj): Likewise.
18932 (srv_i386_32bit_xmlfiles): Likewise.
18933 (srv_i386_64bit_xmlfiles): Likewise.
18934 (srv_i386_xmlfiles): Likewise.
18935 (srv_amd64_xmlfiles): Likewise.
18936 (srv_i386_linux_xmlfiles): Likewise.
18937 (srv_amd64_linux_xmlfiles): Likewise.
18938 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18939 srv_xmlfiles to $srv_i386_xmlfiles.
18940 (i[34567]86-*-mingw32ce*): Likewise.
18941 (i[34567]86-*-mingw*): Likewise.
18942 (i[34567]86-*-nto*): Likewise.
18943 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18944 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18945 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18946 (x86_64-*-linux*): Likewise.
18948 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18949 (init_registers_amd64_linux): New.
18950 (x86_arch_setup): Replace init_registers_x86_64_linux with
18951 init_registers_amd64_linux.
18953 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18955 * configure.ac: Check for libdl. If it is not available link against
18956 static libthread_db.
18957 * configure: Regenerate.
18959 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18963 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18964 handing a read watchpoint.
18965 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18967 2010-02-12 Doug Evans <dje@google.com>
18969 * linux-low.c (linux_supports_tracefork_flag): Document.
18970 (linux_look_up_symbols): Add comment.
18972 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18974 * regcache.c (supply_register): Clear regcache if buf is NULL.
18976 2010-02-02 Nicolas Roche <roche@sourceware.org>
18977 Joel Brobecker <brobecker@adacore.com>
18979 * inferiors.c (find_inferior): Add function documentation.
18980 (unloaded_dll): Handle the case where the unloaded dll has not
18981 been previously registered in the dll list.
18983 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18985 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18986 (thumb2_breakpoint): New.
18987 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18989 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18991 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18992 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18995 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18997 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18999 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19001 * linux-s390-low.c (s390_collect_ptrace_register)
19002 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19004 2010-01-21 Doug Evans <dje@google.com>
19006 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19007 (PTRACE_ARG4_TYPE): New macro.
19008 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19009 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19010 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19011 (usr_store_inferior_registers): Ditto.
19012 (linux_read_memory, linux_write_memory): Ditto.
19013 (linux_test_for_tracefork): Ditto.
19015 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19016 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19018 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19020 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19023 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19025 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19026 prototype to take a regcache. Adjust.
19028 2010-01-20 Pedro Alves <pedro@codesourcery.com>
19030 * regcache.h (struct thread_info): Forward declare.
19031 (struct regcache): New.
19032 (new_register_cache): Adjust prototype.
19033 (get_thread_regcache): Declare.
19034 (free_register_cache): Adjust prototype.
19035 (registers_to_string, registers_from_string): Ditto.
19036 (supply_register, supply_register_by_name, collect_register)
19037 (collect_register_as_string, collect_register_by_name): Ditto.
19038 * regcache.c (struct inferior_regcache_data): Delete.
19039 (get_regcache): Rename to ...
19040 (get_thread_regcache): ... this. Adjust. Switch inferior before
19041 fetching registers.
19042 (regcache_invalidate_one): Adjust.
19043 (regcache_invalidate): Fix prototype.
19044 (new_register_cache): Return the new register cache.
19045 (free_register_cache): Change prototype.
19046 (realloc_register_cache): Adjust.
19047 (registers_to_string): Change prototype to take a regcache. Adjust.
19048 (registers_from_string): Ditto.
19049 (register_data): Ditto.
19050 (supply_register): Ditto.
19051 (supply_register_by_name): Ditto.
19052 (collect_register): Ditto.
19053 (collect_register_as_string): Ditto.
19054 (collect_register_by_name): Ditto.
19055 * server.c (process_serial_event): Adjust.
19056 * linux-low.h (regset_fill_func, regset_store_func): Change
19058 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19060 * linux-low.c (get_stop_pc): Adjust.
19061 (check_removed_breakpoint): Adjust.
19062 (linux_wait_for_event): Adjust.
19063 (linux_resume_one_lwp): Adjust.
19064 (fetch_register): Add regcache parameter. Adjust.
19065 (usr_store_inferior_registers): Ditto.
19066 (regsets_fetch_inferior_registers): Ditto.
19067 (regsets_store_inferior_registers): Ditto.
19068 (linux_fetch_registers, linux_store_registers): Ditto.
19069 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19071 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19073 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19074 prototype to take a regcache.
19075 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19076 * remote-utils.c (convert_ascii_to_int, outreg)
19077 (prepare_resume_reply): Change prototype to take a regcache.
19079 * target.h (struct target_ops) <fetch_registers, store_registers>:
19080 Change prototype to take a regcache.
19081 (fetch_inferior_registers, store_inferior_registers): Change
19082 prototype to take a regcache. Adjust.
19083 * proc-service.c (ps_lgetregs): Adjust.
19084 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19085 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19086 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19087 take a regcache. Adjust.
19088 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19089 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19090 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19091 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19092 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19093 (cris_cannot_fetch_register):
19094 (cris_breakpoint_at): Change prototype to take a regcache.
19096 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19097 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19098 to take a regcache. Adjust.
19099 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19101 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19102 take a regcache. Adjust.
19103 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19104 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19105 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19106 * linux-mips-low.c (mips_get_pc):
19107 (mips_set_pc): Change prototype to take a regcache. Adjust.
19108 (mips_reinsert_addr): Adjust.
19109 (mips_collect_register): Change prototype to take a regcache.
19111 (mips_supply_register):
19112 (mips_collect_register_32bit, mips_supply_register_32bit)
19113 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19114 (mips_store_fpregset): Ditto.
19115 * linux-ppc-low.c (ppc_supply_ptrace_register)
19116 (ppc_supply_ptrace_register): Ditto.
19117 (parse_spufs_run): Adjust.
19118 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19119 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19120 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19121 take a regcache. Adjust.
19122 * linux-s390-low.c (s390_collect_ptrace_register)
19123 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19124 (s390_set_pc): Change prototype to take a regcache. Adjust.
19125 (s390_arch_setup): Adjust.
19126 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19127 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19128 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19129 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19130 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19132 (sparc_breakpoint_at): Adjust.
19133 * linux-xtensa-low.c (xtensa_fill_gregset):
19134 (xtensa_store_gregset):
19135 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19136 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19137 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19138 prototype to take a regcache. Adjust.
19139 * win32-arm-low.c (arm_fetch_inferior_register)
19140 (arm_store_inferior_register): Change prototype to take a
19142 * win32-i386-low.c (i386_fetch_inferior_register)
19143 (i386_store_inferior_register): Change prototype to take a
19145 * win32-low.c (child_fetch_inferior_registers)
19146 (child_store_inferior_registers): Change prototype to take a
19148 (win32_wait): Adjust.
19149 (win32_fetch_inferior_registers): Change prototype to take a
19151 (win32_store_inferior_registers): Adjust.
19152 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19153 store_inferior_register>: Change prototype to take a regcache.
19155 2010-01-20 Doug Evans <dje@google.com>
19157 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19159 (linux_wait_for_event1, linux_init_signals): Ditto.
19160 (W_STOPCODE): Provide definition if missing.
19162 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19164 * linux-low.c (linux_core_of_thread): New.
19165 (compare_ints, show_process, list_threads): New.
19166 (linux_qxfer_osdata): Report threads and cores.
19167 (linux_target_op): Register linux_core_of_thread.
19168 * remote-utils.c (prepare_resume_reply): Report the core.
19169 (buffer_xml_printf): Support %d specifier.
19170 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19172 (handle_query): Handle qXfer:threads. Announce availability
19174 * target.h (struct target_ops): New field core_of_thread.
19176 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19178 * Makefile.in (clean): Remove new generated files.
19179 (reg-s390.o, reg-s390.c): Remove rules.
19180 (reg-s390x.o, reg-s390x.c): Likewise.
19181 (s390-linux32.o, s390-linux32.c): Add rules.
19182 (s390-linux64.o, s390-linux64.c): Likewise.
19183 (s390x-linux64.o, s390x-linux64.c): Likewise.
19184 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19185 * linux-s390-low.c: Include <elf.h>.
19186 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19187 (init_registers_s390): Remove prototype.
19188 (init_registers_s390x): Likewise.
19189 (init_registers_s390_linux32): Add prototype.
19190 (init_registers_s390_linux64): Likewise.
19191 (init_registers_s390x_linux64): Likewise.
19192 (s390_num_regs_3264): New define.
19193 (s390_regmap_3264): New global variable.
19194 (s390_cannot_fetch_register): Remove obsolete check.
19195 (s390_cannot_store_register): Likewise.
19196 (s390_collect_ptrace_register): Handle upper/lower register halves.
19197 (s390_supply_ptrace_register): Likewise.
19198 (s390_fill_gregset): Update to register number changes.
19199 (s390_get_hwcap): New routine.
19200 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19201 Install appropriate regmap and register set.
19203 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19205 * server.c (gdbserver_version): Update copyright year to 2010.
19206 * gdbreplay.c (gdbreplay_version): Likewise.
19208 2009-12-28 Doug Evans <dje@google.com>
19210 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19211 elf/external.h. Include <elf.h> instead but only if necessary.
19213 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19215 * linux-low.c (linux_remove_process): Remove `detaching'
19216 parameter. Don't release/detach from thread_db here.
19217 (linux_kill): Release/detach from thread_db here, ...
19218 (linux_detach): ... and here, before actually detaching.
19219 (linux_wait_1): ... and here, when a process exits.
19220 * thread-db.c (any_thread_of): New.
19221 (thread_db_free): Switch the current inferior to a thread of the
19224 2009-12-21 Doug Evans <dje@google.com>
19226 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19228 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19229 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19230 warning ifndef __NR_tkill. Move setting of errno there too.
19231 Delete unnecessary resetting of errno after syscall.
19232 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19234 * configure.ac: Check for dladdr.
19235 * config.in: Regenerate.
19236 * configure: Regenerate.
19237 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19238 (try_thread_db_load): Update.
19240 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19242 2009-12-18 Doug Evans <dje@google.com>
19244 * event-loop.c: Include unistd.h if it exists.
19246 * linux-low.c (my_waitpid): Move definition away from being in
19247 between linux_tracefork_child/linux_test_for_tracefork.
19249 * gdb_proc_service.h (psaddr_t): Fix type.
19250 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19251 signature to match glibc.
19253 2009-12-16 Doug Evans <dje@google.com>
19255 * linux-low.c (linux_read_memory): Fix argument to read.
19257 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19259 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19260 events, don't leave current_inferior pointing at null.
19262 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19264 * win32-low.c (LOG): Delete.
19265 (OUTMSG): Output to stderr.
19266 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19267 on compile time LOG macro.
19268 (win32_wait): Fix debug output.
19270 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19272 * win32-low.c (win32_add_one_solib): If the dll name is
19273 "ntdll.dll", prepend the system directory to the dll path.
19275 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19277 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19279 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19280 Vladimir Prus <vladimir@codesourcery.com>
19282 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19283 * configure.ac: Check for __mcoldfire__ and set
19284 gdb_cv_m68k_is_coldfire.
19285 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19286 reg-cf.o and reg-m68k.o.
19287 * configure: Regenerated.
19289 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19291 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19292 Pass it to thread_db_free.
19293 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19294 proper `detaching' argument to linux_remove_process.
19295 * linux-low.h (thread_db_free): Add `detaching' parameter.
19296 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19298 (thread_db_free): Add `detaching' parameter. Only
19299 call td_ta_clear_event if detaching from process.
19301 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19303 * thread-db.c (thread_db_free): Fix typo.
19305 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19308 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19310 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19312 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19313 with an i686 compiler.
19314 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19316 * configure: Rebuilt.
19318 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19322 * server.c (handle_search_memory_1): Correct read_addr initialization
19323 in loop for searching subsequent chunks.
19325 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19327 * configure.ac: New --with-libthread-db option.
19328 * thread-db.c: Allow direct dependence on libthread_db.
19329 (thread_db_free): Adjust.
19330 * config.in: Regenerate.
19331 * configure: Likewise.
19333 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19336 * thread-db.c (attach_thread): New function.
19337 (maybe_attach_thread): Return success/failure.
19338 (find_new_threads_callback): Adjust.
19339 (thread_db_find_new_threads): Loop until no new threads.
19341 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19343 * proc-service.c (ps_lgetregs): Formatting.
19345 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19347 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19348 * configure.ac: Adjust.
19349 * linux-low.h (struct process_info_private): Move members to struct
19351 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19352 * linux-low.c (linux_remove_process): Adjust.
19353 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19354 * server.c (handle_query): Move code ...
19355 (handle_monitor_command): ... here. New function.
19356 * target.h (struct target_ops): New member.
19357 * thread-db.c (struct thread_db): New.
19358 (libthread_db_search_path): New variable.
19359 (thread_db_create_event, thread_db_enable_reporting)
19360 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19361 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19362 (try_thread_db_load_1, dladdr_to_soname): New functions.
19363 (try_thread_db_load, thread_db_load_search): New functions.
19364 (thread_db_init): Search for libthread_db.
19365 (thread_db_free): New function.
19366 (thread_db_handle_monitor_command): Likewise.
19367 * config.in: Regenerate.
19368 * configure: Regenerate.
19370 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19372 * spu-low.c (spu_kill): Wait for inferior to terminate.
19373 Call clear_inferiors.
19374 (spu_detach): Call clear_inferiors.
19376 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19378 * aclocal.m4: Regenerate.
19379 * config.in: Likewise.
19380 * configure: Likewise.
19382 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19384 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19385 (parse_spufs_run): New function.
19386 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19387 (ppc_breakpoint_at): Handle SPU breakpoints.
19389 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19391 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19392 (SPUFS_MAGIC): Define.
19393 (spu_enumerate_spu_ids): New function.
19394 (linux_qxfer_spu): New function.
19395 (linux_target_ops): Install linux_qxfer_spu.
19397 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19399 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19400 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19401 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19402 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19403 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19404 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19405 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19406 (init_registers_powerpc_cell32l): Add prototype.
19407 (init_registers_powerpc_cell64l): Likewise.
19408 (ppc_arch_setup): Detect Cell/B.E. architecture.
19410 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19412 * Makefile.in (datarootdir): New variable.
19414 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19416 * linux-low.c (linux_write_memory): Update debugging output.
19417 * Makefile.in (clean): Add new descriptions.
19418 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19419 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19420 * configure.srv: Add new files for arm*-*-linux*.
19421 * linux-arm-low.c: Add new declarations.
19422 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19423 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19424 (HWCAP_VFPv3D16): New.
19425 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19426 instead of __IWMMXT__.
19427 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19428 (arm_arch_setup): New.
19429 (target_regsets): Remove #ifdef. Add VFP regset.
19430 (the_low_target): Use arm_arch_setup.
19432 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19434 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19435 the main thread again.
19437 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19439 Adding Neutrino gdbserver.
19440 * configure: Regenerated.
19441 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19442 * configure.srv (i[34567]86-*-nto*): New target.
19443 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19444 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19445 (nto_comctrl) [__QNX__]: New function.
19446 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19448 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19450 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19453 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19454 Pedro Alves <pedro@codesourcery.com>
19456 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19457 don't support CONTEXT_EXTENDED_REGISTERS.
19458 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19459 (the_low_target): Install them.
19460 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19461 failing with ERROR_PIPE_NOT_CONNECTED.
19463 2009-06-30 Doug Evans <dje@google.com>
19464 Pierre Muller <muller@ics.u-strasbg.fr>
19466 Add h/w watchpoint support to x86-linux, win32-i386.
19467 * Makefile.in (SFILES): Add i386-low.c
19468 (i386_low_h): Define.
19469 (i386-low.o): Add dependencies.
19470 (linux-x86-low.o): Add i386-low.h dependency.
19471 (win32-i386-low.o): Ditto.
19472 * i386-low.c: New file.
19473 * i386-low.h: New file.
19474 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19475 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19476 * linux-low.c (linux_add_process): Initialize arch_private.
19477 (linux_remove_process): Free arch_private.
19478 (add_lwp): Initialize arch_private.
19479 (delete_lwp): Free arch_private.
19480 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19482 * linux-low.h (process_info_private): New member arch_private.
19483 (lwp_info): New member arch_private.
19484 (linux_target_ops): New members new_process, new_thread,
19486 (ptid_of): New macro.
19487 * linux-x86-low.c: Include stddef.h, i386-low.h.
19488 (arch_process_info): New struct.
19489 (arch_lwp_info): New struct.
19490 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19491 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19492 (i386_dr_low_get_status): New function.
19493 (x86_insert_point, x86_remove_point): New functions.
19494 (x86_stopped_by_watchpoint): New function.
19495 (x86_stopped_data_address): New function.
19496 (x86_linux_new_process, x86_linux_new_thread): New functions.
19497 (x86_linux_prepare_to_resume): New function.
19498 (the_low_target): Add entries for insert_point, remove_point,
19499 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19501 * server.c (debug_hw_points): New global.
19502 (monitor_show_help): Document set debug-hw-points.
19503 (handle_query): Process "set debug-hw-points".
19504 * server.h (debug_hw_points): Declare.
19505 (paddress): Declare.
19506 * utils.c (NUMCELLS, CELLSIZE): New macros.
19507 (get_sell, xsnprintf, paddress): New functions.
19508 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19509 remove_point, stopped_by_watchpoint, stopped_data_address.
19510 * win32-i386-low.c: Include i386-low.h.
19511 (debug_reg_state): Replaces dr.
19512 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19513 (i386_dr_low_get_status): New function.
19514 (i386_insert_point, i386_remove_point): New functions.
19515 (i386_stopped_by_watchpoint): New function.
19516 (i386_stopped_data_address): New function.
19517 (i386_initial_stuff): Update.
19518 (get_thread_context,set_thread_context,i386_thread_added): Update.
19519 (the_low_target): Add entries for insert_point,
19520 remove_point, stopped_by_watchpoint, stopped_data_address.
19521 * win32-low.c (win32_insert_watchpoint): New function.
19522 (win32_remove_watchpoint): New function.
19523 (win32_stopped_by_watchpoint): New function.
19524 (win32_stopped_data_address): New function.
19525 (win32_target_ops): Add entries for insert_watchpoint,
19526 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19527 * win32-low.h (win32_target_ops): New members insert_point,
19528 remove_point, stopped_by_watchpoint, stopped_data_address.
19530 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19532 * server.c (process_serial_event): Re-return unsupported, not
19533 error, if the type isn't recognized. Re-allow supporting only
19534 insert or remove packets. Also call require_running for
19535 breakpoints. Add missing break statement to default case. Tidy.
19536 * target.h (struct target_ops): Rename insert_watchpoint to
19537 insert_point, and remove_watchpoint to remove_point.
19539 * linux-low.h (struct linux_target_ops): Likewise.
19540 * linux-low.c (linux_insert_watchpoint): Rename to ...
19541 (linux_insert_point): ... this. Adjust.
19542 (linux_remove_watchpoint): Rename to ...
19543 (linux_remove_point): ... this. Adjust.
19544 (linux_target_ops): Adjust.
19545 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19546 (cris_insert_point): ... this.
19547 (cris_remove_watchpoint): Rename to ...
19548 (cris_remove_point): ... this.
19549 (the_low_target): Adjust.
19551 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19553 * server.c (handle_v_kill): Pass signal_pid to
19554 kill_inferior if multi_process is zero.
19556 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19558 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19559 * target.h (target_ops): Comment for *_watchpoint to make it clear
19560 the functions can get types '0' and '1'.
19562 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19564 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19565 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19566 * regcache.c (get_regcache): Likewise.
19567 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19568 * win32-low.c (child_fetch_inferior_registers): Remove check for
19571 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19572 Pedro Alves <pedro@codesourcery.com>
19574 * target.h (struct target_ops) <supports_multi_process>: New
19576 (target_supports_multi_process): New.
19577 * server.c (handle_query): Even if GDB reports support, only
19578 enable multi-process if the target also supports it. Report
19579 multi-process support only if the target backend supports it.
19580 * linux-low.c (linux_supports_multi_process): New function.
19581 (linux_target_ops): Install it as target_supports_multi_process
19584 2009-05-24 Doug Evans <dje@google.com>
19586 Global renaming of find_thread_pid to find_thread_ptid.
19587 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19588 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19589 All callers updated.
19591 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19592 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19595 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19596 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19597 (linux_resume_one_lwp): Ditto.
19599 2009-05-23 Doug Evans <dje@google.com>
19601 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19602 from struct inferior_list_entry * to struct lwp_info *.
19603 All callers updated.
19605 2009-05-13 Doug Evans <dje@google.com>
19607 * linux-x86-low.c: Don't include assert.h.
19608 (x86_siginfo_fixup): Use fatal, not assert.
19609 (x86_arch_setup): Fix comment.
19611 2009-05-12 Doug Evans <dje@google.com>
19613 Biarch support for i386/amd64 gdbserver.
19614 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19615 Add linux-x86-low.c.
19616 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19617 (linux-x86-low.o): Add.
19618 * linux-x86-64-low.c: Delete.
19619 * linux-i386-low.c: Delete.
19620 * linux-x86-low.c: New file.
19621 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19623 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19625 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19626 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19627 (linux_child_pid_to_exec_file): New function.
19628 (elf_64_header_p, elf_64_file_p): New functions.
19629 (siginfo_fixup): New function.
19630 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19631 give target a chance to convert layout.
19632 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19633 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19635 2009-05-07 Doug Evans <dje@google.com>
19637 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19638 (regsets_store_inferior_registers): Ditto.
19640 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19644 * linux-low.c (must_set_ptrace_flags): Delete.
19645 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19647 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19648 `lwp->must_set_ptrace_flags' instead.
19649 (linux_wait_for_event_1): Set ptrace options here.
19650 (linux_wait_1): ... not here.
19652 2009-04-30 Doug Evans <dje@google.com>
19654 * inferiors.c (started_inferior_callback): New function.
19655 (attached_inferior_callback): New function.
19656 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19657 * server.c (print_started_pid, print_attached_pid): New functions.
19658 (detach_or_kill_for_exit): New function.
19659 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19660 * server.h (have_started_inferiors_p): Declare.
19661 (have_attached_inferiors_p): Declare.
19663 * inferiors.c (remove_process): Fix memory leak, free process.
19664 * linux-low.c (linux_remove_process): New function.
19665 (linux_kill): Call it instead of remove_process.
19666 (linux_detach, linux_wait_1): Ditto.
19668 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19670 * configure.srv: Add x86 Windows CE target.
19672 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19674 * inferiors.c (get_thread_process): Make global.
19675 * server.h (get_thread_process): Add prototype.
19676 * thread-db.c (find_one_thread): Use get_thread_process
19677 instead of current_process.
19678 (thread_db_get_tls_address): Do not crash if called when
19679 thread layer is not yet initialized.
19681 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19683 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19684 * spu-low.c (current_tid): Rename to ...
19685 (current_ptid): ... this.
19686 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19687 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19688 ptid_get_lwp (current_ptid) instead of current_tid.
19689 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19690 instead of current_tid. Use find_process_pid to verify pid
19691 argument is valid. Pass proper argument to remove_process.
19692 (spu_thread_alive): Compare current_ptid instead of current_tid.
19693 (spu_resume): Likewise.
19695 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19697 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19700 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19702 Implement the multiprocess extensions, and add linux multiprocess
19705 * server.h (ULONGEST): Declare.
19706 (struct ptid, ptid_t): New.
19707 (minus_one_ptid, null_ptid): Declare.
19708 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19709 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19710 (struct inferior_list_entry): Change `id' type from unsigned from
19712 (struct sym_cache, struct breakpoint, struct
19713 process_info_private): Forward declare.
19714 (struct process_info): Declare.
19715 (current_process): Declare.
19716 (all_processes): Declare.
19717 (initialize_inferiors): Declare.
19718 (add_thread): Adjust to use ptid_t.
19719 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19720 (add_process, remove_process, find_thread_pid): Declare.
19721 (find_inferior_id): Adjust to use ptid_t.
19722 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19723 (multi_process): Declare.
19724 (push_event): Adjust to use ptid_t.
19725 (read_ptid, write_ptid): Declare.
19726 (prepare_resume_reply): Adjust to use ptid_t.
19727 (clear_symbol_cache): Declare.
19728 * inferiors.c (all_processes): New.
19729 (null_ptid, minus_one_ptid): New.
19730 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19731 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19732 (add_thread): Change unsigned long to ptid. Remove gdb_id
19734 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19735 (gdb_id_to_thread): Rename to ...
19736 (find_thread_pid): ... this. Change unsigned long to ptid.
19737 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19738 (loaded_dll, pull_pid_from_list): Adjust.
19739 (add_process, remove_process, find_process_pid)
19740 (get_thread_process, current_process, initialize_inferiors): New.
19741 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19742 (struct target_waitstatus) <related_pid>: Ditto.
19743 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19744 return type to int.
19745 (struct target_ops) <join>: Add `pid' argument.
19746 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19747 (struct target_ops) <wait>: Add `ptid' field. Change return type
19749 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19750 (mywait): Add `ptid' argument. Change return type to ptid_t.
19751 (target_pid_to_str): Declare.
19752 * target.c (set_desired_inferior): Adjust to use ptids.
19753 (mywait): Add new `ptid' argument. Adjust.
19754 (target_pid_to_str): New.
19755 * mem-break.h (free_all_breakpoints): Declare.
19756 * mem-break.c (breakpoints): Delelete.
19757 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19758 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19759 to use per-process breakpoint list.
19760 (free_all_breakpoints): New.
19761 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19762 (symbol_cache, all_symbols_looked_up): Delete.
19764 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19766 (prepare_resume_reply): Change ptid argument's type from unsigned
19767 long to ptid_t. Adjust. Implement W;process and X;process.
19768 (free_sym_cache, clear_symbol_cache): New.
19769 (look_up_one_symbol): Adjust to per-process symbol cache. *
19770 * server.c (cont_thread, general_thread, step_thread): Change type
19772 (attached): Delete.
19773 (multi_process): New.
19774 (last_ptid): Change type to ptid_t.
19775 (struct vstop_notif) <ptid>: Change type to ptid_t.
19776 (queue_stop_reply, push_event): Change `ptid' argument's type to
19778 (discard_queued_stop_replies): Add `pid' argument.
19779 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19780 changes. Don't reference the `attached' global.
19781 (attach_inferior): Adjust to mywait interface changes.
19782 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19783 features. Handle and report "multiprocess+". Handle
19785 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19787 (handle_v_kill): New.
19788 (handle_v_stopped): Adjust to use target_pid_to_str.
19789 (handle_v_requests): Allow multiple attaches and runs when
19790 multiprocess extensions are in effect. Handle "vKill".
19791 (myresume): Adjust to use ptids.
19792 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19793 (handle_status): Adjust to discard_queued_stop_replies interface
19795 (first_thread_of, kill_inferior_callback)
19796 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19797 (main): Call initialize_inferiors. Adjust to use ptids, killing
19798 and detaching from all inferiors. Handle multiprocess packet
19800 * linux-low.h: Include gdb_proc_service.h.
19801 (struct process_info_private): New.
19802 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19803 <lwpid_of>: Use ptid_get_lwp.
19804 (get_lwp_thread): Adjust.
19805 (struct lwp_info): Add `dead' member.
19806 (find_lwp_pid): Declare.
19807 * linux-low.c (thread_db_active): Delete.
19808 (new_inferior): Adjust comment.
19809 (inferior_pid): Delete.
19810 (linux_add_process): New.
19811 (handle_extended_wait): Adjust.
19812 (add_lwp): Change unsigned long to ptid.
19813 (linux_create_inferior): Add process to processes table. Adjust
19814 to use ptids. Don't set new_inferior here.
19815 (linux_attach_lwp): Rename to ...
19816 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19817 it. Adjust to use ptids.
19818 (linux_attach_lwp): New.
19819 (linux_attach): Add process to processes table. Don't set
19821 (struct counter): New.
19822 (second_thread_of_pid_p, last_thread_of_process_p): New.
19823 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19824 multiple processes.
19825 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19826 processes. Remove process from process table.
19827 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19828 to multiple processes.
19829 (any_thread_of): New.
19830 (linux_detach): Add `pid' argument, and handle it. Remove process
19831 from processes table.
19832 (linux_join): Add `pid' argument. Handle it.
19833 (linux_thread_alive): Change unsighed long argument to ptid_t.
19834 Consider dead lwps as not being alive.
19835 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19836 threads we're not interested in.
19837 (same_lwp, find_lwp_pid): New.
19838 (linux_wait_for_lwp): Change `pid' argument's type from int to
19840 (linux_wait_for_event): Rename to ...
19841 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19842 from int to ptid_t. Adjust.
19843 (linux_wait_for_event): New.
19844 (linux_wait_1): Add `ptid' argument. Change return type to
19845 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19846 that exit from the process table.
19847 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19849 (mark_lwp_dead): New.
19850 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19851 stopping all threads, mark its main lwp as dead.
19852 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19854 (fetch_register, usr_store_inferior_registers)
19855 (regsets_fetch_inferior_registers)
19856 (regsets_store_inferior_registers, linux_read_memory)
19857 (linux_write_memory): Inline `inferior_pid'.
19858 (linux_look_up_symbols): Adjust to use per-process
19859 `thread_db_active'.
19860 (linux_request_interrupt): Adjust to use ptids.
19861 (linux_read_auxv): Inline `inferior_pid'.
19862 (initialize_low): Don't reference thread_db_active.
19863 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19864 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19865 (ps_getpid): Return the pid of the current inferior.
19866 * thread-db.c (proc_handle, thread_agent): Delete.
19867 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19869 (find_one_thread): Change argument type to ptid_t. Adjust to
19871 (maybe_attach_thread): Adjust to per-process data and ptids.
19872 (thread_db_find_new_threads): Ditto.
19873 (thread_db_init): Ditto.
19874 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19875 processes table. Adjust to use ptids.
19876 (spu_kill, spu_detach): Adjust interface. Remove process from
19878 (spu_join, spu_thread_alive): Adjust interface.
19879 (spu_wait): Adjust interface. Remove process from processes
19880 table. Adjust to use ptids.
19881 * win32-low.c (current_inferior_tid): Delete.
19882 (current_inferior_ptid): New.
19883 (debug_event_ptid): New.
19884 (thread_rec): Take a ptid. Adjust.
19885 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19886 (child_delete_thread): Ditto.
19887 (do_initial_child_stuff): Add `attached' argument. Add process to
19889 (child_fetch_inferior_registers, child_store_inferior_registers):
19891 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19892 (win32_attach): Pass 1 to do_initial_child_stuff.
19893 (win32_kill): Adjust interface. Remove process from processes
19895 (win32_detach): Ditto.
19896 (win32_join): Adjust interface.
19897 (win32_thread_alive): Take a ptid.
19898 (win32_resume): Adjust to use ptids.
19899 (get_child_debug_event): Ditto.
19900 (win32_wait): Adjust interface. Remove exiting process from
19903 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19905 Non-stop mode support.
19907 * server.h (non_stop): Declare.
19908 (gdb_client_data, handler_func): Declare.
19909 (delete_file_handler, add_file_handler, start_event_loop):
19911 (handle_serial_event, handle_target_event, push_event)
19912 (putpkt_notif): Declare.
19913 * target.h (enum resume_kind): New.
19914 (struct thread_resume): Replace `step' field by `kind' field.
19915 (TARGET_WNOHANG): Define.
19916 (struct target_ops) <wait>: Add `options' argument.
19917 <supports_non_stop, async, start_non_stop>: New fields.
19918 (target_supports_non_stop, target_async): New.
19919 (start_non_stop): Declare.
19920 (mywait): Add `options' argument.
19921 * target.c (mywait): Add `options' argument. Print child exit
19922 notifications here.
19923 (start_non_stop): New.
19924 * server.c (non_stop, own_buf, mem_buf): New globals.
19925 (struct vstop_notif): New.
19926 (notif_queue): New global.
19927 (queue_stop_reply, push_event, discard_queued_stop_replies)
19928 (send_next_stop_reply): New.
19929 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19931 (attach_inferior): In non-stop mode, don't wait for the target
19933 (handle_general_set): Handle QNonStop.
19934 (handle_query): When handling qC, return the current general
19935 thread, instead of the first thread of the list.
19936 (handle_query): If the backend supports non-stop mode, include
19937 QNonStop+ in the qSupported query response.
19938 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19940 (handle_v_attach, handle_v_run): Handle non-stop mode.
19941 (handle_v_stopped): New.
19942 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19943 (myresume): Adjust to use resume_kind. Handle non-stop.
19944 (queue_stop_reply_callback): New.
19945 (handle_status): Handle non-stop mode.
19946 (main): Clear non_stop flag on reconnection. Use the event-loop.
19947 Refactor serial protocol handling from here ...
19948 (process_serial_event): ... to this new function. When GDB
19949 selects any thread, select one here. In non-stop mode, wait until
19950 GDB acks all pending events before exiting.
19951 (handle_serial_event, handle_target_event): New.
19952 * remote-utils.c (remote_open): Install remote_desc in the event
19954 (remote_close): Remove remote_desc from the event loop.
19955 (putpkt_binary): Rename to...
19956 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19957 (putpkt_binary): New as wrapper around putpkt_binary_1.
19958 (putpkt_notif): New.
19959 (prepare_resume_reply): In non-stop mode, don't change the
19961 * event-loop.c: New.
19962 * Makefile.in (OBJ): Add event-loop.o.
19963 (event-loop.o): New rule.
19965 * linux-low.h (pid_of): Moved here.
19967 (get_lwp_thread): Use lwpid_of.
19968 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19969 * linux-low.c (pid_of): Delete.
19970 (inferior_pid): Use lwpid_of.
19971 (linux_event_pipe): New.
19972 (target_is_async_p): New.
19974 (handle_extended_wait): Use lwpid_of.
19975 (add_lwp): Don't set lwpid field.
19976 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19977 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19978 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19979 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19980 first. Adjust to linux_wait_for_event interface changes. Use
19982 (linux_detach): Don't delete the main lwp here.
19983 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19984 (status_pending_p): Don't consider explicitly suspended lwps.
19985 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19986 pointer. Add OPTIONS argument. Change return type to int. Use
19987 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19988 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19989 pointer. Add status pointer argument. Return a pid instead of a
19990 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19991 changes. In non-stop mode, don't switch to a random thread.
19992 (linux_wait): Rename to...
19993 (linux_wait_1): ... this. Add target_options argument, and handle
19994 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19995 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19996 clean exit and signal exit code. Don't stop all threads in
19997 non-stop mode. In all-stop mode, only stop all threads when
19998 reporting a stop to GDB. Handle explicit thread stop requests.
19999 (async_file_flush, async_file_mark): New.
20001 (send_sigstop): Use lwpid_of.
20002 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20003 interface changes. In non-stop mode, don't switch to a random
20005 (linux_resume_one_lwp): Use lwpid_of.
20006 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20007 (linux_resume_one_thread): ... this. Handle resume_stop. In
20008 non-stop mode, don't look for pending flag in all threads.
20009 (resume_status_pending_p): Don't consider explicitly suspended
20011 (my_waitpid): Reimplement. Emulate __WALL.
20012 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20014 (sigchld_handler, linux_supports_non_stop, linux_async)
20015 (linux_start_non_stop): New.
20016 (linux_target_ops): Register linux_supports_non_stop, linux_async
20017 and linux_start_non_stop.
20018 (initialize_low): Install SIGCHLD handler.
20019 * thread-db.c (thread_db_create_event, find_one_thread)
20020 (thread_db_get_tls_address): Use lwpid_of.
20021 * win32-low.c (win32_detach): Adjust to use resume_kind.
20022 (win32_wait): Add `options' argument.
20023 * spu-low.c (spu_resume): Adjust to use resume_kind.
20024 (spu_wait): Add `options' argument.
20026 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20028 Decouple target code from remote protocol.
20030 * target.h (enum target_waitkind): New.
20031 (struct target_waitstatus): New.
20032 (struct target_ops) <wait>: Return an unsigned long. Take a
20033 target_waitstatus pointer instead of a char pointer.
20034 (mywait): Likewise.
20035 * target.c (mywait): Change prototype to return an unsigned long.
20036 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20037 * server.h (thread_from_wait, old_thread_from_wait): Delete
20039 (prepare_resume_reply): Change prototype to take a
20041 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20042 (last_status, last_ptid): New.
20043 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20044 pid instead of a signal.
20045 (attach_inferior): Remove "status" and "signal" parameters.
20047 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20049 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20050 (handle_v_requests, myresume): Remove "status" and "signal"
20051 parameters. Adjust.
20052 (handle_status): New.
20053 (main): Delete local `status'. Adjust.
20054 * remote-utils.c: Include target.h.
20055 (prepare_resume_reply): Change prototype to take a
20056 target_waitstatus. Adjust.
20058 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20060 * spu-low.c (spu_wait): Adjust.
20061 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20063 (win32_wait): Adjust.
20065 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20067 * target.h (struct thread_resume): Delete leave_stopped member.
20068 (struct target_ops): Add a `n' argument to the `resume' callback.
20069 * server.c (start_inferior): Adjust.
20070 (handle_v_cont, myresume): Adjust.
20071 * linux-low.c (check_removed_breakpoint): Adjust to resume
20072 interface change, and to removed leave_stopped field.
20073 (resume_ptr): Delete.
20074 (struct thread_resume_array): New.
20075 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20076 resume interface change.
20077 (linux_continue_one_thread, linux_queue_one_thread)
20078 (resume_status_pending_p): Check if the resume field is NULL
20079 instead of checking the leave_stopped member.
20080 (linux_resume): Adjust to the target resume interface change.
20081 * spu-low.c (spu_resume): Adjust to the target resume interface
20083 * win32-low.c (win32_detach, win32_resume): Ditto.
20085 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20087 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20089 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20091 (linux_continue_one_thread): Only preserve the stepping flag if
20092 there's a pending breakpoint.
20094 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20096 * server.c (main): After the inferior having exited, call
20097 remote_close before exiting gdbserver.
20099 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20101 Fix size of FPSCR in Power 7 processors.
20102 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20103 (PPC_FEATURE_HAS_DFP): New #define.
20104 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20107 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20109 * server.c (handle_query) Whitespace and formatting.
20111 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20113 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20114 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20115 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20116 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20117 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20118 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20119 Makefile.in, configure.ac: Fix whitespace throughout.
20120 * configure: Regenerate.
20122 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20124 * inferiors.c (find_inferior): Make it safe for the callback
20125 function to delete the currently iterated inferior.
20127 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20129 * Makefile.in (linuw_low_h): Move higher.
20130 (thread-db.o): Depend on $(linux_low_h).
20132 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20134 Rename "process" to "lwp" throughout.
20136 * linux-low.c (all_processes): Rename to...
20137 (all_lwps): ... this.
20138 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20139 (add_process): Rename to ...
20140 (add_lwp): ... this. Adjust.
20141 (linux_create_inferior): Adjust.
20142 (linux_attach_lwp): Adjust.
20143 (linux_attach): Adjust.
20144 (linux_kill_one_process): Rename to ...
20145 (linux_kill_one_lwp): ... this. Adjust.
20146 (linux_kill): Adjust.
20147 (linux_detach_one_process): Rename to ...
20148 (linux_detach_one_lwp): ... this. Adjust.
20149 (linux_detach): Adjust.
20150 (check_removed_breakpoint): Adjust.
20151 (status_pending_p): Adjust.
20152 (linux_wait_for_process): Rename to ...
20153 (linux_wait_for_lwp): ... this. Adjust.
20154 (linux_wait_for_event): Adjust.
20155 (send_sigstop): Adjust.
20156 (wait_for_sigstop): Adjust.
20157 (stop_all_processes): Rename to ...
20158 (stop_all_lwps): ... this.
20159 (linux_resume_one_process): Rename to ...
20160 (linux_resume_one_lwp): ... this. Adjust.
20161 (linux_set_resume_request, linux_continue_one_thread)
20162 (linux_queue_one_thread, resume_status_pending_p)
20163 (usr_store_inferior_registers, regsets_store_inferior_registers)
20164 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20166 * linux-low.h (get_process): Rename to ...
20167 (get_lwp): ... this. Adjust.
20168 (get_thread_process): Rename to ...
20169 (get_thread_lwp): ... this. Adjust.
20170 (get_process_thread): Rename to ...
20171 (get_lwp_thread): ... this. Adjust.
20172 (struct process_info): Rename to ...
20173 (struct lwp_info): ... this.
20174 (all_processes): Rename to ...
20175 (all_lwps): ... this.
20176 * proc-service.c (ps_lgetregs): Adjust.
20177 * thread-db.c (thread_db_create_event, find_one_thread)
20178 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20180 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20182 * server.c (handle_query): Handle "qAttached".
20184 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20186 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20187 GPLv3, update license URL.
20189 2009-03-01 Doug Evans <dje@google.com>
20191 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20192 (server_h): Add gdb_signals.h.
20193 (signals.o): Update.
20194 * server.h (target_signal_from_host,target_signal_to_host_p)
20195 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20197 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20199 * remote-utils.c (getpkt): Also generate remote-debug
20200 information if noack_mode is set.
20202 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20204 * server.c (handle_query): Report qXfer:siginfo:read and
20205 qXfer:siginfo:write as supported and handle them.
20206 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20207 * linux-low.c (linux_xfer_siginfo): New.
20208 (linux_target_ops): Set it.
20210 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20212 * server.c (gdbserver_usage): Mention --remote-debug.
20213 (main): Accept '--remote-debug' switch.
20215 2009-01-18 Doug Evans <dje@google.com>
20217 * regcache.c (new_register_cache): No need to check result of xcalloc.
20218 * server.c (handle_search_memory): Back out calls to xmalloc,
20219 result is checked and error is returned to user upon failure.
20220 (handle_query): Ditto. Add more checks for result of malloc.
20221 (handle_v_cont): Check result of malloc, report error back to
20223 (handle_v_run): Ditto. Call freeargv.
20224 * server.h (freeargv): Declare.
20225 * utils.c (freeargv): New fn.
20227 2009-01-15 Doug Evans <dje@google.com>
20229 * gdbreplay.c (perror_with_name): Make arg const char *.
20230 * server.h (target_signal_to_name): Make return type const char *.
20231 * thread-db.c (thread_db_err_str): Make return type const char *.
20232 * utils.c (perror_with_name): Make arg const char *.
20234 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20236 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20237 when handling a EXIT_PROCESS_DEBUG_EVENT.
20239 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20241 * gdbreplay.c (gdbreplay_version): Update copyright year.
20242 * server.c (gdbserver_version): Likewise.
20244 2009-01-05 Doug Evans <dje@google.com>
20246 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20247 (handle_extended_wait): Improve comment.
20249 2008-12-13 Doug Evans <dje@google.com>
20251 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20252 * server.h (ATTR_MALLOC): New macro.
20253 (xmalloc,xcalloc,xstrdup): Declare.
20254 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20255 * inferiors.c: Ditto.
20256 * linux-low.c: Ditto.
20257 * mem-break.c: Ditto.
20258 * regcache.c: Ditto.
20259 * remote-utils.c: Ditto.
20262 * win32-low.c: Ditto.
20264 2008-12-12 Doug Evans <dje@google.com>
20266 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20267 in debugging printf.
20269 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20271 2008-12-09 Doug Evans <dje@google.com>
20273 * linux-low.h (struct process_info): Delete member tid, unused.
20274 * thread-db.c (find_one_thread): Update.
20275 (maybe_attach_thread): Update.
20277 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20279 * target.h (struct target_ops): Add qxfer_osdata member.
20280 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20282 (linux_qxfer_osdata): New functions.
20283 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20285 * server.c (handle_query): Handle "qXfer:osdata:read:".
20286 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20287 (buffer_xml_printf): New functions.
20288 * server.h (struct buffer): New.
20289 (buffer_grow_str, buffer_grow_str0): New macros.
20290 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20291 (buffer_xml_printf): Declare.
20293 2008-11-24 Doug Evans <dje@google.com>
20295 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20297 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20299 * server.c (handle_v_run): Always use the supplied argument list.
20301 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20303 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20304 (xtensa_regmap_table): Add entry for scompare1.
20306 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20308 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20309 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20310 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20311 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20312 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20313 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20314 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20315 XML target descriptions.
20316 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20317 when inferior is running on an ISA 2.05 or later processor. Add
20318 special case to return offset for full 64-bit slot of FPSCR when
20321 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20323 * Makefile.in (SFILES, clean): Added sparc64 files.
20324 (reg-sparc64.o, reg-sparc64.c): New.
20325 * configure.srv (sparc*-*-linux*): New configuration.
20326 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20327 syscall arguments for SPARC.
20328 (regsets_store_inferior_registers): Likewise.
20329 * linux-sparc-low.c: New file.
20331 2008-10-21 Doug Evans <dje@google.com>
20333 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20334 (READLINE_DIR,READLINE_DEP): Delete.
20335 (INTERNAL_CFLAGS): Update.
20336 (LINTFLAGS): Update.
20338 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20340 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20341 whole argv from the last run, not just argv[0].
20343 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20345 * regcache.c (new_register_cache): Return NULL if the register
20346 cache size isn't known yet.
20347 (free_register_cache): Avoid dereferencing a NULL regcache.
20349 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20351 * configure.srv: Merge MIPS and MIPS64.
20353 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20355 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20357 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20359 * Makefile.in: Add required vsx dependencies.
20361 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20362 Declare init_registers_powerpc_vsx32l.
20363 Declare init_registers_powerpc_vsx64l.
20364 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20365 (ppc_arch_setup): Check for VSX in hwcap.
20366 (ppc_fill_vsxregset): New function.
20367 (ppc_store_vsxregset): New function.
20368 Add new VSX entry in regset_info target_regsets.
20370 * configure.srv: Add new VSX dependencies.
20372 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20374 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20375 (remote_open): Set or clear transport_is_reliable.
20376 (putpkt_binary): Don't expect acks in noack mode.
20377 (getpkt): Don't send ack/nac in noack mode.
20378 * server.c (handle_general_set): Handle QStartNoAckMode.
20379 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20381 (main): Reset noack_mode on every connection.
20382 * server.h (noack_mode): Declare.
20384 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20386 * Makefile.in (GDBREPLAY_OBS): New variable.
20387 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20389 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20390 Daniel Jacobowitz <dan@codesourcery.com>
20392 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20393 (usr_store_inferior_registers): Likewise.
20394 (regsets_store_inferior_registers): Likewise.
20396 2008-07-31 Rolf Jansen <rj@surtec.com>
20397 Pedro Alves <pedro@codesourcery.com>
20399 * configure.ac: Check for memmem declaration.
20400 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20401 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20402 (disable_packet_qfThreadInfo): Unconditionally compile.
20403 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20404 * configure, config.in: Regenerate.
20406 2008-07-28 Doug Kwan <dougkwan@google.com>
20408 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20409 (linux_write_memory): Remove declaration of errno.
20411 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20413 * linux-low.c (handle_extended_wait): Do not use "status"
20414 variable uninitialized.
20416 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20418 * server.c (handle_v_attach): Inhibit reporting dll changes.
20420 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20422 * remote-utils.c (prepare_resume_reply): If requested, don't
20423 output "thread:TID" in the T stop reply.
20425 * server.c (disable_packet_vCont, disable_packet_Tthread)
20426 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20427 (handle_query): If requested, disable support for qC, qfThreadInfo
20429 (handle_v_requests): If requested, disable support for vCont.
20430 (gdbserver_show_disableable): New.
20431 (main): Handle --disable-packet and --disable-packet=LIST.
20433 * server.h (disable_packet_vCont, disable_packet_Tthread)
20434 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20436 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20438 * server.c (gdbserver_usage): Mention --version.
20440 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20442 * Makefile.in (gdbreplay.o): New rule.
20444 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20446 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20447 message, not gdbserver.
20449 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20450 Nathan Sidwell <nathan@codesourcery.com>
20451 Joseph Myers <joseph@codesourcery.com>
20453 * acinclude.m4: Include ../../config/acx.m4.
20454 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20455 * configure, config.in: Regenerate.
20456 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20457 * server.c (gdbserver_version): Print PKGVERSION.
20458 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20459 (main): Adjust gdbserver_usage calls.
20460 * gdbreplay.c (version, host_name): Add declarations.
20461 (gdbreplay_version, gdbreplay_usage): New.
20462 (main): Accept --version and --help options.
20464 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20466 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20467 (arm_breakpoint_at): Handle Thumb.
20468 (the_low_target): Add comment.
20470 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20472 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20474 2008-05-09 Doug Evans <dje@google.com>
20476 * server.h (decode_search_memory_packet): Declare.
20477 * remote-utils.c (decode_search_memory_packet): New fn.
20478 * server.c (handle_search_memory_1): New fn.
20479 (handle_search_memory): New fn.
20480 (handle_query): Process qSearch:memory packets.
20482 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20484 * regcache.c (registers_length): Remove.
20485 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20486 full register packet.
20487 * regcache.h (registers_length): Remove prototype.
20488 * server.h (PBUFSIZ): Define to 16384.
20490 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20492 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20493 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20494 powerpc-64l.o, and powerpc-altivec64l.o.
20495 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20496 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20497 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20498 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20499 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20502 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20503 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20504 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20505 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20506 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20507 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20508 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20509 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20510 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20511 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20514 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20515 (init_registers_powerpc_32l): ... this new prototype.
20516 (init_registers_powerpc_32): Remove, replace by ...
20517 (init_registers_powerpc_altivec32l): ... this new prototype.
20518 (init_registers_powerpc_e500): Remove, replace by ...
20519 (init_registers_powerpc_e500l): ... this new prototype.
20520 (init_registers_ppc64): Remove, replace by ...
20521 (init_registers_powerpc_64l): ... this new prototype.
20522 (init_registers_powerpc_64): Remove, replace by ...
20523 (init_registers_powerpc_altivec64l): ... this new prototype.
20524 (ppc_num_regs): Set to 73.
20525 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20526 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20527 (ppc_cannot_store_register): Handle orig_r3 and trap.
20528 (ppc_arch_setup): Update init_registers_... calls.
20529 (ppc_fill_gregset): Handle orig_r3 and trap.
20531 * inferiors.c (clear_inferiors): Reset current_inferior.
20533 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20535 * acinclude.m4: Add override.m4.
20536 * configure: Regenerate.
20538 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20540 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20541 initial call to init_register_ppc64.
20543 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20545 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20546 single powerpc*-*-linux* case.
20547 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20549 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20551 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20552 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20554 * linux-ppc-low.c: Include <elf.h>.
20555 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20556 (ppc_hwcap): New global variable.
20557 (ppc_regmap): Remove __SPE__ #ifdef sections.
20558 (ppc_regmap_e500): New global variable.
20559 (ppc_cannot_store_register): Update __SPE__ special case.
20560 (ppc_get_hwcap): New function.
20561 (ppc_arch_setup): Use it to determine whether inferior supports
20562 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20563 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20564 Do not access registers if target does not support AltiVec.
20565 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20566 Do not access registers if target does not support SPE.
20567 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20569 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20571 * linux-low.c (disabled_regsets, num_regsets): New.
20572 (use_regsets_p): Delete.
20573 (linux_wait_for_process): Clear disabled_regsets.
20574 (regsets_fetch_inferior_registers): Check and set it.
20575 (regsets_store_inferior_registers): Likewise.
20576 (linux_fetch_registers, linux_store_registers): Do not use
20578 (initialize_low): Allocate disabled_regsets.
20580 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20582 * Makefile.in (LIBOBJS): New.
20583 (OBS): Use LIBOBJS.
20584 (memmem.o): New rule.
20585 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20586 * configure: Regenerated.
20588 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20590 * server.c (handle_query): Never return "unsupported" for
20591 qXfer:features:read queries.
20593 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20595 * server.c (get_features_xml): Fix inverted condition.
20596 (handle_query): Always support qXfer:feature:read.
20598 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20600 * server.c (wrapper_argv): New.
20601 (start_inferior): Handle wrapper_argv. If set, expect an extra
20603 (gdbserver_usage): Document --wrapper.
20604 (main): Parse --wrapper.
20606 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20608 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20609 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20610 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20611 (ppc_set_pc): Likewise.
20612 (ppc_arch_setup): New function.
20613 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20614 of collect_register.
20615 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20617 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20619 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20620 instead of linux-ppc64-low.o.
20621 * linux-ppc64-low.c: Remove file.
20622 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20623 (linux-ppc64-low.o): Remove rule.
20625 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20626 (init_registers_powerpc_64): Likewise.
20627 (ppc_regmap): Conditionally define depending on __powerpc64__.
20628 (ppc_cannot_store_register): Do not special-case "fpscr" when
20629 compiled on __powerpc64__.
20630 (ppc_collect_ptrace_register): New function.
20631 (ppc_supply_ptrace_register): New function.
20632 (ppc_breakpoint): Change type to "unsigned int".
20633 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20634 (the_low_target): Conditionally provide initializers for the
20635 arch_setup member depending on __powerpc64__. Install
20636 collect_ptrace_register and supply_ptrace_register members.
20638 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20640 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20641 * server.c (gdbserver_xmltarget): Define.
20642 (get_features_xml): Use it to replace "target.xml" and arch_string.
20644 * configure.srv: Remove srv_xmltarget. Add XML files that were
20645 mentioned there to srv_xmlfiles instead. Remove conditional tests
20646 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20647 srv_xmlfiles and srv_regobj to include all possible choices.
20648 * configure.ac (srv_xmltarget): Remove.
20649 (srv_xmlfiles): Do not add "target.xml".
20650 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20651 checks for supplementary target information.
20652 * configure: Regenerate.
20653 * Makefile.in (XML_TARGET): Remove.
20654 (target.xml): Remove rule.
20655 (clean): Do not clean up target.xml.
20656 (.PRECIOUS): Do not mention target.xml.
20658 * target.h (struct target_ops): Remove arch_string member.
20659 * linux-low.c (linux_arch_string): Remove.
20660 (linux_target_ops): Remove arch_string initializer.
20661 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20662 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20663 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20664 * spu-low.c (spu_arch_string): Remove.
20665 (spu_target_ops): Remove arch_string initializer.
20666 * win32-low.c (win32_arch_string): Remove.
20667 (win32_target_ops): Remove arch_string initializer.
20668 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20669 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20670 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20672 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20674 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20675 by collect_ptrace_register and supply_ptrace_register hooks.
20676 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20677 instead of checking for the_low_target.left_pad_xfer.
20678 (usr_store_inferior_registers): Use collect_ptrace_register callback
20679 instead of checking for the_low_target.left_pad_xfer.
20681 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20682 (s390_supply_ptrace_register): Likewise.
20683 (s390_fill_gregset): Call s390_collect_ptrace_register.
20684 (the_low_target): Update.
20686 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20687 (ppc_supply_ptrace_register): Likewise.
20688 (the_low_target): Update.
20690 * linux-i386-low.c (the_low_target): Update.
20691 * linux-x86-64-low.c (the_low_target): Update.
20693 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20695 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20696 reg-s390.o and reg-s390x.o.
20698 * linux-low.c (new_inferior): New global variable.
20699 (linux_create_inferior, linux_attach): Set it.
20700 (linux_wait_for_process): Call the_low_target.arch_setup after the
20701 target has stopped for the first time.
20702 (initialize_low): Do not call the_low_target.arch_setup.
20704 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20705 (s390_set_pc): Likewise.
20706 (s390_arch_setup): New function.
20707 (the_low_target): Use s390_arch_setup as arch_setup routine.
20709 * regcache.c (realloc_register_cache): New function.
20710 (set_register_cache): Call it for each existing regcache.
20712 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20714 * server.h (init_registers): Remove prototype.
20716 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20717 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20718 instead of init_registers ().
20719 * linux-arm-low.c (init_registers_arm): Add prototype.
20720 (init_registers_arm_with_iwmmxt): Likewise.
20721 (the_low_target): Add initializer for arch_setup field.
20722 * linux-cris-low.c (init_registers_cris): Add prototype.
20723 (the_low_target): Add initializer for arch_setup field.
20724 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20725 (the_low_target): Add initializer for arch_setup field.
20726 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20727 (the_low_target): Add initializer for arch_setup field.
20728 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20729 (the_low_target): Add initializer for arch_setup field.
20730 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20731 (the_low_target): Add initializer for arch_setup field.
20732 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20733 (the_low_target): Add initializer for arch_setup field.
20734 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20735 (init_registers_mips64_linux): Likewise.
20736 (the_low_target): Add initializer for arch_setup field.
20737 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20738 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20739 (the_low_target): Add initializer for arch_setup field.
20740 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20741 (init_registers_powerpc_64): Likewise.
20742 (the_low_target): Add initializer for arch_setup field.
20743 * linux-s390-low.c (init_registers_s390): Add prototype.
20744 (init_registers_s390x): Likewise.
20745 (the_low_target): Add initializer for arch_setup field.
20746 * linux-sh-low.c (init_registers_sh): Add prototype.
20747 (the_low_target): Add initializer for arch_setup field.
20748 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20749 (the_low_target): Add initializer for arch_setup field.
20750 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20751 (the_low_target): Add initializer for arch_setup field.
20753 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20754 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20755 instead of init_registers ().
20756 * win32-arm-low.c (init_registers_arm): Add prototype.
20757 (the_low_target): Add initializer for arch_setup field.
20758 * win32-i386-low.c (init_registers_i386): Add prototype.
20759 (the_low_target): Add initializer for arch_setup field.
20761 * spu-low.c (init_registers_spu): Add prototype.
20762 (initialize_low): Call initialie_registers_spu () instead of
20763 initialize_registers ().
20765 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20767 * server.c (handle_v_requests): When handling the vRun and vAttach
20768 packets, if already debugging a process, don't kill it. Return an
20771 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20773 * server.c (handle_query): Correct length check.
20775 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20777 * win32-low.c (do_initial_child_stuff): Add process handle
20778 parameter. Set current_process_handle and current_process_id from the
20779 parameters. Clear globals.
20780 (win32_create_inferior): Don't set current_process_handle and
20781 current_process_id here. Instead pass them on the call to
20782 do_initial_child_stuff.
20783 (win32_attach): Likewise.
20784 (win32_clear_inferiors): New.
20785 (win32_kill): Don't close the current process handle or the
20786 current thread handle here. Instead call win32_clear_inferiors.
20787 (win32_detach): Don't open a new handle to the process. Call
20788 win32_clear_inferiors.
20789 (win32_join): Don't rely on current_process_handle; open a new
20790 handle using the process id.
20791 (win32_wait): Call win32_clear_inferiors when the inferior process
20794 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20796 * server.c (monitor_show_help): Add "exit".
20798 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20800 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20801 (clean): Add reg-xtensa.c.
20802 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20803 * configure.srv (xtensa*-*-linux*) New target.
20804 * linux-xtensa-low.c: New.
20805 * xtensa-xtregs.c: New.
20807 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20809 * hostio.c: Don't include errno.h.
20810 (errno_to_fileio_errno): Move to hostio-errno.
20811 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20812 error number outputting to the target->hostio_last_error callback.
20813 (hostio_packet_error): Use FILEIO_EINVAL directly.
20814 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20815 calls to hostio_error.
20816 * hostio-errno.c: New.
20817 * server.h (hostio_last_error_from_errno): Declare.
20818 * target.h (target_ops): Add hostio_last_error member.
20819 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20820 as hostio_last_error handler.
20821 * spu-low.c (spu_target_ops): Likewise.
20822 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20823 (wince_hostio_last_error): New functions.
20824 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20825 as hostio_last_error handler.
20826 (win32_target_ops) [!_WIN32_WCE]: Register
20827 hostio_last_error_from_errno as hostio_last_error handler.
20828 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20829 (hostio-errno.o): New rule.
20830 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20831 * configure.srv (srv_hostio_err_objs): New variable. Default to
20833 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20834 * configure: Regenerate.
20836 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20838 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20839 (linux_kill, linux_detach): Clean up the process list.
20840 * remote-utils.c (remote_open): Improve port number parsing.
20841 (putpkt_binary, input_interrupt): Only send interrupts if the target
20843 * server.c (extended_protocol): Make static.
20844 (attached): Define earlier.
20845 (exit_requested, response_needed, program_argv): New variables.
20846 (target_running): New.
20847 (start_inferior): Clear attached here.
20848 (attach_inferior): Set attached here.
20849 (require_running): Define.
20850 (handle_query): Use require_running and target_running. Implement
20852 (handle_v_attach, handle_v_run): New.
20853 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20854 (gdbserver_usage): Update.
20855 (main): Redo argument parsing. Handle --debug and --multi. Handle
20856 --attach along with other options or after the port. Save
20857 program_argv. Support no initial program. Resynchronize
20858 communication with GDB after an error. Handle "monitor exit".
20859 Use require_running and target_running. Always allow the extended
20860 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20861 restart in extended mode.
20862 * README: Refer to the GDB manual. Update --attach usage.
20864 2007-12-20 Andreas Schwab <schwab@suse.de>
20866 * linux-low.c (STACK_SIZE): Define.
20867 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20868 (linux_test_for_tracefork): Likewise.
20870 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20872 * linux-low.c (linux_wait_for_event): Update messages. Do not
20873 reinsert auto-delete breakpoints.
20874 * mem-break.c (struct breakpoint): Change return type of handler to
20876 (set_breakpoint_at): Update handler type.
20877 (reinsert_breakpoint_handler): Return 1 instead of calling
20879 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20881 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20882 * mem-break.h (set_breakpoint_at): Update handler type.
20883 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20884 * win32-low.c (auto_delete_breakpoint): New.
20885 (get_child_debug_event): Use it.
20887 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20889 * configure.ac: Check for pread and pwrite.
20890 * hostio.c (handle_pread): Fall back to lseek and read.
20891 (handle_pwrite): Fall back to lseek and write.
20892 * config.in, configure: Regenerated.
20894 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20896 * server.c (myresume): Add own_buf argument.
20897 (main): Update calls.
20899 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20901 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20902 * remote-utils.c (remote_open): Do not call disable_async_io.
20903 (block_async_io): Delete.
20904 (unblock_async_io): Make static.
20905 (initialize_async_io): New.
20906 * server.c (handle_v_cont): Handle async I/O here.
20907 (myresume): Likewise. Move other common resume tasks here...
20908 (main): ... from here. Call initialize_async_io. Disable async
20909 I/O before the main loop.
20910 * server.h (initialize_async_io): Declare.
20911 (block_async_io, unblock_async_io): Delete prototypes.
20912 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20914 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20916 * remote-utils.c (readchar): Allow binary data in received messages.
20918 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20920 * win32-low.c (attaching): New global.
20921 (win32_create_inferior): Clear the `attaching' global.
20922 (win32_attach): Set the `attaching' global.
20923 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20924 attaching. Only set a breakpoint at the entry point if not
20927 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20929 * server.c (main): Don't report dll events on the initial
20930 connection on attaches.
20932 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20934 * server.c (main): Relax numerical bases supported for the pid of
20935 the --attach command line argument.
20937 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20939 * win32-low.c (win32_attach): Call OpenProcess before
20940 DebugActiveProcess, not after. Add last error output to error
20943 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20945 * win32-low.c (win32_get_thread_context)
20946 (win32_set_thread_context): New functions.
20947 (thread_rec): Use win32_get_thread_context.
20948 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20949 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20952 2007-12-03 Leo Zayas
20953 Pedro Alves <pedro_alves@portugalmail.pt>
20955 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20957 (child_add_thread): Minor cleanup.
20958 (child_continue): Resume artificially suspended threads before
20959 calling ContinueDebugEvent.
20960 (suspend_one_thread): New.
20961 (fake_breakpoint_event): New.
20962 (get_child_debug_event): Change return type to int. Check here if
20963 gdb sent an interrupt request. If a soft interrupt was requested,
20964 fake a breakpoint event. Return 0 if there is no event to handle,
20966 (win32_wait): Don't check here if gdb sent an interrupt request.
20967 Ensure there is a valid event to handle.
20968 (win32_request_interrupt): Add soft interruption method as last
20971 2007-12-03 Leo Zayas
20972 Pedro Alves <pedro_alves@portugalmail.pt>
20974 * win32-low.h (win32_thread_info): Add descriptions to the
20975 structure members. Replace `suspend_count' counter by a
20977 * win32-low.c (thread_rec): Update condition of when to get the
20978 context from the inferior. Rely on ContextFlags being set if it
20979 has already been retrieved. Only suspend the inferior thread if
20980 we haven't already. Warn if that fails.
20981 (continue_one_thread): s/suspend_count/suspended/. Only call
20982 ResumeThread once. Warn if that fails.
20984 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20986 * win32-low.c (win32_wait): Don't read from the inferior when it
20987 has already exited.
20989 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20991 * Makefile.in (win32_low_h): New variable.
20992 (win32-low.o): Add dependency on $(win32_low_h).
20993 (win32-arm-low.o, win32-i386-low.o): New rules.
20995 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20997 * hostio.c: Correct copyright year.
20999 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21001 * Makefile.in (OBS): Add hostio.o.
21002 (hostio.o): New rule.
21003 * server.h (handle_vFile): Declare.
21004 * hostio.c: New file.
21005 * server.c (handle_v_requests): Take packet_len and new_packet_len
21006 for binary packets. Call handle_vFile.
21007 (main): Update call to handle_v_requests.
21009 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21011 * linux-low.c: Include <sched.h>.
21013 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21015 * linux-low.c (linux_tracefork_grandchild): New.
21016 (linux_tracefork_child): Use clone.
21017 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21019 2007-10-31 Joel Brobecker <brobecker@adacore.com>
21021 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21023 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21025 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21027 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21029 * inferiors.c (change_inferior_id): Delete.
21030 (add_pid_to_list, pull_pid_from_list): New.
21031 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21032 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21033 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21034 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21035 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21036 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21037 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21038 (using_threads): Always set to 1.
21039 (handle_extended_wait): New.
21040 (add_process): Do not set TID.
21041 (linux_create_inferior): Set must_set_ptrace_flags.
21042 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21043 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21044 (linux_thread_alive): Rename TID argument to LWPID.
21045 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21046 (linux_wait_for_event): Do not use TID or check using_threads. Update
21047 call to dead_thread_notify. Call handle_extended_wait.
21048 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21049 (send_sigstop): Delete sigstop_sent.
21050 (wait_for_sigstop): Avoid TID.
21051 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21052 (linux_test_for_tracefork): New.
21053 (linux_lookup_signals): Use thread_db_active and
21054 linux_supports_tracefork_flag.
21055 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21056 * linux-low.h (get_process_thread): Avoid TID.
21057 (struct process_ifo): Move thread_known and tid to the end. Remove
21059 (linux_attach_lwp, thread_db_init): Update prototypes.
21060 * server.h (change_inferior_id): Delete prototype.
21061 (add_pid_to_list, pull_pid_from_list): New prototypes.
21062 * thread-db.c (thread_db_use_events): New.
21063 (find_first_thread): Rename to...
21064 (find_one_thread): ...this. Update callers and messages. Do not
21065 call fatal. Check thread_db_use_events. Do not call
21066 change_inferior_id or new_thread_notify.
21067 (maybe_attach_thread): Update. Do not call new_thread_notify.
21068 (thread_db_init): Set thread_db_use_events. Check use_events.
21069 * utils.c (fatal, warning): Correct message prefix.
21071 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21073 * Makefile.in (clean): Remove new files.
21074 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21075 (powerpc-64.o, powerpc-64.c): New rules.
21076 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21077 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21079 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21081 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21082 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21083 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21084 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21085 (target_regsets): Add AltiVec and SPE register sets.
21086 * configure.ac: Check for AltiVec and SPE.
21087 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21088 (ppc_fill_vrregset, ppc_store_vrregset): New.
21089 (target_regsets): Add AltiVec register set.
21090 * configure: Regenerated.
21092 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21094 * linux-low.c (O_LARGEFILE): Define.
21095 (linux_read_memory): Use /proc/PID/mem.
21096 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21097 * configure, config.in: Regenerated.
21099 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21101 * linux-low.c (linux_wait_for_event): Do not pass signals while
21104 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21106 * win32-low.c (create_process): New.
21107 (win32_create_inferior): Use create_process instead of
21108 CreateProcess. If create_process failed retry appending an ".exe"
21109 suffix. Store the GetLastError result immediatelly after
21110 create_process calls and use it on the call to error.
21112 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21114 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21116 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21118 * configure.ac: Switch license to GPLv3.
21120 2007-08-01 Michael Snyder <msnyder@access-company.com>
21122 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21124 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21126 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21128 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21129 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21130 CloseToolhelp32Snapshot.
21131 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21132 CloseToolhelp32Snapshot.
21134 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21136 * server.c (main): Check for inferior exit before main loop.
21138 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21140 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21141 instead of on tmp_desc.
21143 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21144 Daniel Jacobowitz <dan@codesourcery.com>
21146 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21147 (add_thread): Minor cleanups.
21148 (clear_inferiors): Move lower in the file. Clear the DLL
21150 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21151 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21152 (xml_escape_text): New.
21153 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21155 (handle_v_cont): Report errors.
21156 (gdbserver_version): Update.
21157 (main): Correct size of own_buf. Do not report initial DLL events.
21158 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21159 (unloaded_dll, xml_escape_text): New.
21160 * win32-low.c (enum target_waitkind): Update comments.
21161 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21162 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21163 (win32_EnumProcessModules, win32_GetModuleInformation)
21164 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21165 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21166 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21167 (win32_Module32First, win32_Module32Next, load_toolhelp)
21168 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21169 (get_child_debug_event): Handle DLL events.
21170 (win32_wait): Likewise.
21172 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21174 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21175 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21177 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21179 * win32-low.c (handle_output_debug_string): Ignore event if not
21182 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21184 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21186 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21188 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21190 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21192 * inferiors.c (change_inferior_id): Add comment.
21193 * linux-low.c (check_removed_breakpoint): Add an early
21194 prototype. Improve debug output.
21195 (linux_attach): Doc update.
21196 (linux_detach_one_process, linux_detach): Clean up before releasing
21198 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21199 * linux-low.h (struct process_info): Doc improvement.
21200 * mem-break.c (delete_all_breakpoints): New.
21201 * mem-break.h (delete_all_breakpoints): New prototype.
21202 * thread-db.c (find_first_thread): New.
21203 (thread_db_create_event): Call it instead of
21204 thread_db_find_new_threads. Clean up unused variables.
21205 (maybe_attach_thread): Remove first thread handling.
21206 (thread_db_find_new_threads): Use find_first_thread.
21207 (thread_db_get_tls_address): Likewise.
21209 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21211 * thread-db.c (thread_db_find_new_threads): Add prototype.
21212 (thread_db_create_event): Check for the main thread before adding
21214 (maybe_attach_thread): Only enable event reporting if TID == 0.
21215 (thread_db_get_tls_address): Check for new threads.
21217 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21219 * linux-low.c (linux_create_inferior): Try execv before execvp.
21220 * spu-low.c (spu_create_inferior): Likewise.
21222 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21224 * linux-low.c (linux_create_inferior): Change execv to execvp.
21225 * spu-low.c (spu_create_inferior): Likewies.
21227 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21229 * Makefile.in (clean): Clean new files instead of deleted ones.
21230 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21231 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21233 * configure.srv: Specify XML files and new regformats for MIPS and
21235 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21236 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21237 an entry for the restart register.
21238 (mips_cannot_fetch_register, mips_cannot_store_register)
21239 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21240 register names to match the XML descriptions.
21241 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21242 restart register instead of $0.
21244 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21245 Markus Deuling <deuling@de.ibm.com>
21247 * remote-utils.c (decode_xfer_write): New function.
21248 * server.h (decode_xfer_write): Add prototype.
21249 * server.c (handle_query): Add PACKET_LEN argument. Support
21250 qXfer:spu:read and qXfer:spu:write packets.
21251 (main): Pass packet_len to handle_query.
21252 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21253 * target.h (target_ops): Add qxfer_spu.
21255 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21257 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21258 accessing non-seekable spufs files.
21260 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21262 * server.c (handle_query): Add reply for qC packet.
21264 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21265 Leo Zayas <lerele@champenstudios@com>
21267 * server.h (check_remote_input_interrupt_request): New function.
21268 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21269 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21270 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21271 (check_remote_input_interrupt_request): New function.
21272 * server.h (check_remote_input_interrupt_request): Declare.
21273 * win32-low.c (winapi_DebugBreakProcess,
21274 winapi_GenerateConsoleCtrlEvent): New typedefs.
21275 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21277 (win32_wait): Check for remote interrupt request
21278 with check_remote_input_interrupt_request.
21279 (win32_request_interrupt): New function.
21280 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21282 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21284 * win32-low.c (debug_registers_changed,
21285 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21286 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21287 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21288 (thread_rec): Get context using the low target.
21289 (child_add_thread): Call thread_added on the low target,
21290 which does the same thing.
21292 (do_initial_child_stuff): Remove debug registers references.
21293 Set context using the low target. Resume threads after
21294 setting the contexts.
21295 (child_continue): Remove dead variable. Remove debug
21296 registers references.
21297 (child_fetch_inferior_registers): Go through the low target.
21298 (do_child_store_inferior_registers): Remove.
21299 (child_store_inferior_registers): Go through the low target.
21300 (win32_resume): Remove debug registers references.
21301 Set context using the low target.
21302 (handle_exception): Change return type to void. Don't record
21303 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21304 first chance exception.
21305 (get_child_debug_event): Change return type to void. Remove
21306 goto loop. Always return after waiting for debug event.
21307 (win32_wait): Convert to switch statement. Handle spurious
21310 * win32-i386-low.c (debug_registers_changed,
21311 debug_registers_used): New.
21312 (initial_stuff): Rename to ...
21313 (i386_initial_stuff): ... this. Clear debug registers
21315 (store_debug_registers): Delete.
21316 (i386_get_thread_context): New.
21317 (load_debug_registers): Delete.
21318 (i386_set_thread_context): New.
21319 (i386_thread_added): New.
21320 (single_step): Rename to ...
21321 (i386_single_step): ... this.
21322 (do_fetch_inferior_registers): Rename to ...
21323 (i386_fetch_inferior_register): ... this.
21324 (i386_store_inferior_register): New.
21325 (the_low_target): Adapt to new interface.
21327 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21328 (arm_get_thread_context): New.
21329 (arm_set_thread_context): New.
21331 (do_fetch_inferior_registers): Rename to ...
21332 (arm_fetch_inferior_register): ... this.
21333 (arm_store_inferior_register): New.
21334 (arm_wince_breakpoint): Reimplement as unsigned long.
21335 (arm_wince_breakpoint_len): Define.
21336 (the_low_target): Adapt to new interface.
21338 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21339 load_debug_registers. Add get_thread_context, set_thread_context,
21340 thread_added and store_inferior_register. Rename
21341 fetch_inferior_registers to fetch_inferior_register.
21342 (regptr): Remove declaration.
21344 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21346 * linux-low.c (linux_detach): Change return type to int. Return 0.
21347 * spu-low.c (spu_detach): Likewise.
21349 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21351 * target.h (target_ops): Change return type of detach to int.
21353 (join_inferior): New.
21354 * server.c (main): Don't skip detach support on mingw32.
21355 If the inferior doesn't support detaching return error.
21356 Call join_inferior instead of using waitpid.
21357 * linux-low.c (linux_join): New.
21358 (linux_target_op): Add linux_join.
21359 * spu-low.c (spu_join): New.
21360 (spu_target_ops): Add spu_join.
21361 * win32-low.c (win32_detach): Adapt to new interface.
21362 Reopen current_process_handle before detaching. Issue a child
21363 resume before detaching.
21365 (win32_target_op): Add win32_join.
21367 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21369 * win32-low.c (win32-attach): Fix return value.
21370 * target.h (target_ops): Describe ATTACH return values.
21372 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21374 * win32-low.c (GETPROCADDRESS): Define.
21375 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21376 (winapi_DebugSetProcessKillOnExit): Likewise.
21377 (win32_create_inferior): Force usage of ansi CreateProcessA.
21378 (win32_attach): Use GETPROCADDRESS.
21379 (win32_detach): Likewise.
21381 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21383 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21385 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21387 * win32-low.c: Commit leftover changes from 2007-03-29.
21389 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21391 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21392 fields short instead of int. Add explicit padding.
21393 (i387_cache_to_fsave): Remove unnecessary casts.
21394 (i387_fsave_to_cache): Doc fix.
21395 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21397 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21399 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21400 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21402 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21404 * configure.srv (arm*-*-mingw32ce*): Move near the other
21407 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21409 * configure.ac: Add errno checking.
21410 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21411 sys/file.h and malloc.h.
21412 (AC_CHECK_DECLS): Add perror.
21413 (srv_mingwce): Handle.
21414 * configure.srv (i[34567]86-*-cygwin*): Add
21415 win32-i386-low.o to srv_tgtobj.
21416 (i[34567]86-*-mingw*): Likewise.
21417 (arm*-*-mingw32ce*): Add case.
21418 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21419 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21420 [__MINGW32CE__] (strerror): New function.
21421 [__MINGW32CE__] (errno): Define to GetLastError.
21422 [__MINGW32CE__] (COUNTOF): New macro.
21423 (remote_open): Remove extra close call.
21424 * mem-break.c (delete_breakpoint_at): New function.
21425 * mem-break.h (delete_breakpoint_at): Declare.
21426 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21427 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21428 [USE_WIN32API] (read, write): Add char* casts.
21429 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21430 * server.h: Include wincecompat.h on Windows CE.
21431 [HAVE_ERRNO_H]: Check.
21432 (perror): Declare if not declared.
21433 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21434 (perror_with_name): Remove errno declaration.
21435 * wincecompat.h: New.
21436 * wincecompat.c: New.
21437 * win32-low.h: New.
21438 * win32-arm-low.c: New.
21439 * win32-i386-low.c: New.
21440 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21441 (OUTMSG2): Make it safe.
21443 (COUNTOF): New macro.
21444 (NUM_REGS): Get it from the low target.
21445 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21446 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21447 (thread_rec): Let low target handle debug registers.
21448 (child_add_thread): Likewise.
21449 (child_init_thread_list): Likewise.
21450 (continue_one_thread): Likewise.
21452 (do_child_fetch_inferior_registers): Move to ...
21453 * win32-i386-low.c: ... here, and rename to ...
21454 (do_fetch_inferior_registers): ... this.
21455 * win32-low.c (child_fetch_inferior_registers):
21456 Go through the low target.
21457 (do_child_store_inferior_registers): Use regptr.
21458 (strwinerror): New function.
21459 (win32_create_inferior): Handle Windows CE.
21460 Use strwinerror instead of strerror on Windows error
21461 codes. Add program to the error output.
21462 Don't close the main thread handle on Windows CE.
21463 (win32_attach): Use coredll.dll on Windows CE.
21464 (win32_kill): Close current process and current
21466 (win32_detach): Use coredll.dll on Windows CE.
21467 (win32_resume): Let low target handle debug registers, and
21469 (handle_exception): Add/Remove initial breakpoint. Avoid
21470 non-existant WSTOPSIG on Windows CE.
21471 (win32_read_inferior_memory): Cast to remove warning.
21472 (win32_arch_string): Go through the low target.
21473 (initialize_low): Call set_breakpoint_data with the low
21474 target's breakpoint.
21475 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21476 FOP_REGNUM, mappings): Move to ...
21477 * win32-i386-low.c: ... here.
21478 * win32-low.c (win32_thread_info): Move to ...
21479 * win32-low.h: ... here.
21480 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21481 win32-arm-low.c and wincecompat.c.
21482 (all:): Add $EXEEXT.
21483 (install-only:): Likewise.
21484 (gdbserver:): Likewise.
21485 (gdbreplay:): Likewise.
21486 * config.in: Regenerate.
21487 * configure: Regenerate.
21489 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21491 * win32-low.c: Rename typedef thread_info to
21492 win32_thread_info throughout.
21494 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21496 * win32-i386-low.c: Rename to ...
21497 * win32-low.c: ... this.
21498 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21499 * Makefile.in: Likewise.
21501 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21503 * remote-utils.c (monitor_output): Constify msg parameter.
21504 * server.h (monitor_output): Likewise.
21505 * win32-i386-low.c (handle_output_debug_string): New.
21506 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21507 handle_output_debug_string.
21508 (get_child_debug_event): Likewise.
21510 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21512 * server.c (main): Correct strtoul check.
21514 2007-03-27 Jon Ringle <jon@ringle.org>
21516 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21518 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21520 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21522 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21524 * terminal.h: Check HAVE_SGTTY_H.
21526 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21528 * remote-utils.c (remote_open): Print out the assigned port number.
21530 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21532 * remote-utils.c (monitor_output): New function.
21533 * server.c (debug_threads): Define here.
21534 (monitor_show_help): New function.
21535 (handle_query): Handle qRcmd.
21536 (main): Do not handle 'd' packet.
21537 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21538 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21541 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21543 * Makefile.in (EXEEXT): New.
21544 (clean): Use $(EXEEXT).
21546 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21548 * target.h (target_ops): Rename send_signal to request_interrupt,
21549 and remove enum target_signal parameter.
21550 * linux-low.c (linux_request_interrupt): Rename from
21551 linux_send_signal, and always send SIGINT.
21552 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21553 and always send SIGINT.
21554 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21556 (input_interrupt): Likewise.
21558 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21560 * server.c (get_features_xml): Check if target implemented
21562 * win32-i386-low.c (win32_arch_string): New.
21563 (win32_target_ops): Add win32_arch_string as arch_string member.
21565 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21567 * spu-low.c (spu_arch_string): New.
21568 (spu_target_ops): Add spu_arch_string.
21570 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21572 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21573 * configure.ac: Do not check for terminal.h.
21574 * configure, config.in: Regenerated.
21576 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21578 * Makefile.in (OBS): Add $(XML_BUILTIN).
21579 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21581 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21582 (arm-with-iwmmxt.c): New.
21583 * config.in, configure: Regenerate.
21584 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21585 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21586 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21587 (arm*-*-linux*): Add iWMMXt and regset support.
21588 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21589 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21590 (arm_store_wmmxregset, target_regsets): New.
21591 * server.c (get_features_xml): Take annex argument. Check builtin
21593 (handle_query): Handle multiple annexes.
21595 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21597 * remote-utils.c [USE_WIN32API] (read, write): Define.
21598 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21601 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21603 * linux-i386-low.c (the_low_target): Set arch_string.
21604 * linux-x86-64-low.c (the_low_target): Likewise.
21605 * linux-low.c (linux_arch_string): New.
21606 (linux_target_ops): Add it.
21607 * linux-low.h (struct linux_target_ops): Add arch_string.
21608 * server.c (write_qxfer_response): Use const void * for DATA.
21609 (get_features_xml): New.
21610 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21611 * target.h (struct target_ops): Add arch_string method.
21613 2007-01-03 Denis Pilat <denis.pilat@st.com>
21614 Daniel Jacobowitz <dan@codesourcery.com>
21616 * linux-low.c (linux_kill): Handle being called with no threads.
21617 * win32-i386-low.c (win32_kill): Likewise.
21618 (get_child_debug_event): Clear current_process_handle.
21620 2006-12-30 Denis PILAT <denis.pilat@st.com>
21621 Daniel Jacobowitz <dan@codesourcery.com>
21623 * remote-utils.c (remote_open): Check the type of specified
21624 serial port devices before opening them.
21625 * server.c (main): Kill the inferior if an error occurs during
21626 the first remote_open.
21628 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21630 * README: Update supported targets.
21632 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21634 * Makefile.in (clean): Remove reg-mips64.c.
21635 (reg-mips64.c, reg-mips64.o): New rules.
21636 * configure.srv: Handle mips64. Include regset support for mips.
21637 * linux-mips-low.c (union mips_register): New.
21638 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21639 (mips_breakpoint, mips_breakpoint_at): Use int.
21640 (mips_collect_register, mips_supply_register)
21641 (mips_collect_register_32bit, mips_supply_register_32bit)
21642 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21643 (mips_store_fpregset, target_regsets): New.
21644 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21646 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21648 * configure.srv: Add target "spu*-*-*".
21649 * Makefile.in (clean): Remove reg-spu.c.
21650 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21651 * spu-low.c: New file.
21653 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21655 * configure.ac: Correct td_thr_tls_get_addr test.
21656 * configure: Regenerated.
21658 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21660 * linux-low.c (linux_wait_for_event): Reformat. Use the
21661 pass_signals array.
21662 * remote-utils.c (decode_address_to_semicolon): New.
21663 * server.c (pass_signals, handle_general_set): New.
21664 (handle_query): Mention QPassSignals for qSupported.
21665 (main): Call handle_general_set.
21666 * server.h (pass_signals, decode_address_to_semicolon): New.
21668 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21670 * server.c (handle_query): Correct error handling for read_auxv.
21672 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21674 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21675 and srv_linux_thread_db to yes.
21676 * linux-s390-low.c (s390_fill_gregset): New function.
21677 (target_regsets): Define data structure.
21679 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21681 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21682 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21683 * config.in, configure: Regenerated.
21684 * inferiors.c (gdb_id_to_thread): New function.
21685 (gdb_id_to_thread_id): Use it.
21686 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21687 * linux-low.h (struct process_info): Add th member.
21688 (thread_db_get_tls_address): New prototype.
21689 * remote-utils.c (decode_address): Make non-static.
21690 * server.c (handle_query): Handle qGetTLSAddr.
21691 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21692 * target.h (struct target_ops): Add get_tls_address.
21693 * thread-db.c (maybe_attach_thread): Save the thread handle.
21694 (thread_db_get_tls_address): New.
21696 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21698 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21699 (linux_resume_one_process): Take a siginfo_t *. Update all
21700 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21701 (struct pending_signals): Add a siginfo_t.
21702 (linux_wait_for_process): Always set last_status.
21703 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21704 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21705 * linux-low.h (struct process_info): Add last_status.
21707 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21709 * remote-utils.c (try_rle): New function.
21710 (putpkt_binary): Use it.
21712 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21714 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21715 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21716 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21717 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21718 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21721 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21723 * server.c (terminal_fd): New variable.
21724 (old_foreground_pgrp): Likewise.
21725 (restore_old_foreground_pgrp): New function.
21726 (start_inferior): Record the terminal file descriptor in terminal_fd
21727 and its original foreground group in old_foreground_pgrp. Register
21728 restore_old_foreground_pgrp with atexit().
21730 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21732 * server.c (handle_query): Correct qPart to qXfer.
21734 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21736 * configure.ac: Check for more headers which are missing on
21737 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21738 * configure.srv: Add Cygwin and mingw32.
21739 * remote-utils.c: Don't include headers unconditionally which
21740 are missing on mingw32. Include <winsock.h> for mingw32.
21741 (remote_open): Adjust for mingw32 support. Flush
21742 standard error after writing to it.
21743 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21744 (unblock_async_io, enable_async_io, disable_async_io)
21745 (readchar, getpkt): Update for Winsock support.
21746 (prepare_resume_reply): Expect a protocol signal number.
21747 * server.c: Disable <sys/wait.h> on mingw32.
21748 (start_inferior): Adjust for mingw32 support. Flush
21749 standard error after writing to it.
21750 (attach_inferior): Likewise. Use protocol signal
21752 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21754 * win32-i386-low.c: New file.
21755 * Makefile.in (XM_CLIBS): Set.
21756 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21757 (win32-i386-low.o): New dependency rule.
21758 * linux-low.c (linux_wait): Use target signal numbers.
21759 * target.h (struct target_ops): Doc fix.
21760 * server.h (target_signal_to_name): New prototype.
21761 * gdbreplay.c: Don't include headers unconditionally which
21762 are missing on mingw32. Include <winsock.h> for mingw32.
21763 (remote_close, remote_open): Adjust for Winsock support.
21764 * configure, config.in: Regenerated.
21766 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21768 * server.c (decode_xfer_read, write_qxfer_response): New.
21769 (handle_query): Take a packet length argument. Handle
21770 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21771 the qSupported response.
21772 (main): Update call to handle_query.
21774 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21776 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21777 (putpkt_binary): Renamed from putpkt and adjusted for binary
21779 (putpkt): New wrapper for putpkt_binary.
21780 (readchar): Don't mask off the high bit.
21781 (decode_X_packet): New function.
21782 * server.c (main): Call putpkt_binary if a handler sets the packet
21783 length. Save the length of the incoming packet. Handle 'X'.
21784 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21786 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21788 * server.c (handle_query): Handle qSupported.
21790 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21792 * remote-utils.c (all_symbols_looked_up): New variable.
21793 (look_up_one_symbol): Check it.
21794 * server.h (look_up_one_symbol): New declaration.
21795 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21797 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21799 * Makefile.in (linux-arm-low.o): Update dependencies.
21800 * linux-arm-low.c: Include "gdb_proc_service.h".
21801 (PTRACE_GET_THREAD_AREA): Define.
21802 (ps_get_thread_area): New function.
21804 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21806 * configure.srv (m68k*-*-uclinux*): New target.
21807 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21808 (linux_resume_one_process): Remove extraneous cast.
21809 (linux_read_offsets): New.
21810 (linux_target_op): Add linux_read_offsets on mmuless systems.
21811 * server.c (handle_query): Add qOffsets logic.
21812 * target.h (struct target_ops): Add read_offsets.
21814 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21816 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21817 (PTRACE_GET_THREAD_AREA): Define.
21818 (ps_get_thread_area): New function.
21819 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21820 (linux-x86-64-low.o): Update.
21822 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21824 * configure.ac: Remove checks for prfpregset_t.
21825 * gdb_proc_service.h: New file.
21826 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21827 new "gdb_proc_service.h".
21828 * proc-service.c: Likewise.
21829 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21830 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21831 * Makefile.in (gdb_proc_service_h): Updated.
21832 * configure, config.in: Regenerated.
21834 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21836 * remote-utils.c (prepare_resume_reply): Move declaration
21837 of gdb_id_from_wait to the top of the block.
21839 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21841 * linux-low.c (regsets_store_inferior_registers): Read the regset
21842 from the target before filling it.
21844 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21846 * server.c (attach_inferior): Return SIGTRAP for a successful
21849 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21851 * Makefile.in (OBS): Add version.o.
21852 (STAGESTUFF): Delete.
21853 (version.o): Add dependencies.
21854 (version.c): Replace rule.
21855 (clean): Remove version.c.
21856 * server.c (gdbserver_version): New.
21857 (gdbserver_usage): Use printf.
21858 (main): Handle --version and --help.
21859 * server.h (version, host_name): Add declarations.
21861 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21873 * linux-x86-64-low.c:
21875 * linux-s390-low.c:
21876 * linux-ppc64-low.c:
21878 * linux-mips-low.c:
21879 * linux-m68k-low.c:
21880 * linux-m32r-low.c:
21883 * linux-ia64-low.c:
21884 * linux-i386-low.c:
21885 * linux-crisv32-low.c:
21897 * gdbserver.1: Add (C) after Copyright. Update the FSF
21900 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21902 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21903 (arm_breakpoint_at): Recognize both breakpoints.
21904 (the_low_target): Use the correct breakpoint instruction.
21906 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21908 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21909 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21910 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21911 (the_low_target): Update.
21913 2005-10-25 Andreas Schwab <schwab@suse.de>
21915 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21917 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21918 (ia64_num_regs): Reduce to 462.
21920 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21922 * acinclude.m4: Correct quoting.
21923 * aclocal.m4: Regenerated.
21925 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21926 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21927 (thread_db_init): Call thread_db_err_str.
21928 * configure.ac: Check for TD_VERSION.
21929 * config.in, configure: Regenerated.
21931 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21933 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21935 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21937 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21938 is not available. Define HAVE_PTRACE_GETREGS if it is.
21939 * config.in, configure: Regenerated.
21940 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21941 * linux-i386-low.c, linux-m68k-low.c: Update to use
21942 HAVE_PTRACE_GETREGS.
21943 * linux-low.c (regsets_fetch_inferior_registers)
21944 (regsets_store_inferior_registers): Only return 0 if we processed
21946 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21947 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21949 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21951 * inferiors.c (struct thread_info): Add gdb_id.
21952 (add_thread): Add gdb_id argument.
21953 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21954 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21955 calls to add_thread.
21956 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21957 * server.c (handle_query): Use thread_to_gdb_id.
21958 (handle_v_cont, main): Use gdb_id_to_thread_id.
21959 * server.h (add_thread): Update prototype.
21960 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21963 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21965 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21966 left-padded registers.
21967 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21968 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21970 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21972 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21973 * configure: Regenerate.
21974 * config.in: Regenerate.
21975 * server.h (NEED_DECLARATION_STRERROR):
21976 Replace with !HAVE_DECL_STRERROR.
21978 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21980 * linux-low.c (linux_wait, linux_send_signal): Don't test
21981 an unsigned long variable for > 0 if it could be MAX_ULONG.
21982 * server.c (myresume): Likewise.
21983 * target.c (set_desired_inferior): Likewise.
21985 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21987 * configure.ac: Simplify and improve check for socklen_t.
21988 * configure, config.in: Regenerate.
21990 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21992 * acconfig.h: Remove.
21993 * configure.ac: Add a test for socklen_t. Use three-argument
21994 AC_DEFINE throughout.
21995 * config.in: Regenerated using autoheader 2.59.
21996 * configure: Regenerated.
21998 * gdbreplay.c (socklen_t): Provide a default.
21999 (remote_open): Use socklen_t.
22000 * remote-utils.c (socklen_t): Provide a default.
22001 (remote_open): Use socklen_t.
22002 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22005 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22007 * linux-low.c (linux_read_memory, linux_write_memory)
22008 (linux_read_auxv): Likewise.
22009 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22010 (check_mem_write): Likewise.
22011 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22013 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22014 (registers_from_string, register_data): Likewise.
22015 * server.c (handle_query, main): Likewise.
22016 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22017 (decode_M_packet): Likewise.
22018 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22019 * target.h (struct target_ops): Update read_memory, write_memory,
22021 (read_inferior_memory, write_inferior_memory): Update.
22022 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22023 to unsigned char *.
22024 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22025 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22026 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22027 linux-s390-low.c, linux-sh-low.c: Update for changes in
22028 read_inferior_memory and the_low_target->breakpoint.
22030 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22032 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22033 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22034 * configure.srv: Add powerpc64-*-linux*.
22035 * linux-ppc64-low.c: New file.
22037 2005-05-23 Orjan Friberg <orjanf@axis.com>
22039 * linux-cris-low.c: New file with support for CRIS.
22040 * linux-crisv32-low.c: Ditto for CRISv32.
22041 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22042 (clean): Add reg-cris.c and reg-crisv32.c.
22043 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
22044 reg-crisv32.o, and reg-crisv32.c to make rules.
22045 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22046 recognized targets.
22048 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22050 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22051 of sizeof (PTRACE_XFER_TYPE).
22052 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22054 2005-05-12 Orjan Friberg <orjanf@axis.com>
22056 * target.h (struct target_ops): Add insert_watchpoint,
22057 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22058 pointers for hardware watchpoint support.
22059 * linux-low.h (struct linux_target_ops): Ditto.
22060 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22061 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22062 to linux_target_ops.
22063 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22065 * server.c (main): Recognize 'Z' and 'z' packets.
22067 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22069 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22070 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22071 (the_low_target): Add new members.
22073 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22075 * proc-service.c (ps_lgetregs): Search all_processes instead of
22078 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22080 * server.c (start_inferior): Change return type to int.
22081 (attach_inferior): Change sigptr to int *.
22082 (handle_v_cont, handle_v_requests): Change signal to int *.
22083 (main): Change signal to int.
22085 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22087 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22088 * configure.srv: Add m32r*-*-linux*.
22089 * linux-m32r-low.c: New file.
22091 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22093 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22095 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22097 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22098 Take unsigned long arguments for PIDs.
22099 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22100 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22101 (wait_for_sigstop, linux_resume_one_process)
22102 (regsets_fetch_inferior_registers, linux_send_signal)
22103 (linux_read_auxv): Likewise. Update the types of variables holding
22104 PIDs. Update format string specifiers.
22105 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22106 * remote-utils.c (prepare_resume_reply): Likewise.
22107 * server.c (cont_thread, general_thread, step_thread)
22108 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22110 (handle_query): Update format specifiers.
22111 (handle_v_cont, main): Use strtoul for thread IDs.
22112 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22113 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22114 (general_thread, step_thread, thread_from_wait)
22115 (old_thread_from_wait): Update.
22116 * target.h (struct thread_resume): Use unsigned long for THREAD.
22117 (struct target_ops): Use unsigned long for arguments to attach and
22120 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22122 * acinclude.m4: Include bfd/bfd.m4 directly.
22123 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22124 <agriffis@toolchain.org>.
22125 * aclocal.m4, configure: Regenerated.
22127 2005-01-07 Andrew Cagney <cagney@gnu.org>
22129 * configure.ac: Rename configure.in, require autoconf 2.59.
22130 * configure: Re-generate.
22132 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22134 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22135 LIBS when finished.
22136 * aclocal.m4: Regenerated.
22137 * configure: Regenerated.
22139 2004-11-21 Andreas Schwab <schwab@suse.de>
22141 * linux-m68k-low.c (m68k_num_gregs): Define.
22142 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22143 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22144 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22145 (m68k_breakpoint_at): New. Add to the_low_target.
22147 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22148 srv_linux_thread_db to yes.
22150 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22152 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22153 (ARCH_SET_FS): Likewise.
22154 (ARCH_GET_FS): Likewise.
22155 (ARCH_GET_GS): Likewise.
22157 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22159 * linux-i386-low.c (ps_get_thread_area): New.
22160 * linux-x86-64-low.c (ps_get_thread_area): New.
22161 * linux-low.c: Include <sys/syscall.h>.
22162 (linux_kill_one_process): Don't kill the first thread here.
22163 (linux_kill): Kill the first thread here.
22164 (kill_lwp): New function.
22165 (send_sigstop, linux_send_signal): Use it.
22166 * proc-service.c: Clean up #ifdefs.
22167 (fpregset_info): Delete.
22168 (ps_lgetregs): Update and enable implementation.
22169 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22171 * remote-utils.c (struct sym_cache, symbol_cache): New.
22172 (input_interrupt): Print a clearer message.
22173 (async_io_enabled): New variable.
22174 (enable_async_io, disable_async_io): Use it. Update comments.
22175 (look_up_one_symbol): Use the symbol cache.
22176 * thread-db.c (thread_db_look_up_symbols): New function.
22177 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22179 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22181 * configure.in: Test for -rdynamic.
22182 * configure: Regenerated.
22183 * Makefile (INTERNAL_LDFLAGS): New.
22184 (gdbserver, gdbreplay): Use it.
22186 2004-09-02 Andrew Cagney <cagney@gnu.org>
22188 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22190 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22192 * linux-low.c (linux_wait): Clear all_processes list also.
22194 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22196 * linux-low.c: Include <errno.h>. Remove extern declaration of
22199 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22201 * gdbreplay.c, server.h, utils.c: Update copyright years.
22203 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22205 * server.c (main): Print child status or termination signal from
22206 variable 'signal', not 'sig'.
22208 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22210 * linux-low.c (linux_read_memory): Change return type to
22211 int. Check for and return error from ptrace().
22212 * target.c (read_inferior_memory): Change return type to int. Pass
22213 back return status from the_target->read_memory().
22214 * target.h (struct target_ops): Adapt *read_memory() prototype.
22216 (read_inferior_memory): Adapt prototype.
22217 * server.c (main): Return an error packet if
22218 read_inferior_memory() returns an error.
22220 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22222 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22223 Unify with other clean targets.
22225 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22227 * server.c (handle_v_cont): Call set_desired_inferior.
22229 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22231 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22233 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22235 * linux-low.c (linux_wait): Unblock async I/O.
22236 (linux_resume): Block and enable async I/O.
22237 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22238 * server.h (block_async_io, unblock_async_io): Add prototypes.
22240 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22242 * remote-utils.c (remote_open): Print a status notice after
22243 opening a TCP port.
22244 * server.c (attach_inferior): Print a status notice after
22247 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22249 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22251 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22253 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22255 * server.c, target.h: Update copyright years.
22257 2004-02-25 Roland McGrath <roland@redhat.com>
22259 * target.h (struct target_ops): New member `read_auxv'.
22260 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22261 * linux-low.c (linux_read_auxv): New function.
22262 (linux_target_ops): Initialize `read_auxv' member to that.
22264 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22266 Committed by Jim Blandy <jimb@redhat.com>.
22268 * linux-s390-low.c (s390_num_regs): Update.
22269 (s390_regmap): Remove control registers. Use __s390x__ predefine
22270 instead of GPR_SIZE to distiguish s390 and s390x targets.
22272 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22274 * linux-low.c: Update copyright year.
22275 (check_removed_breakpoint): Clear pending_is_breakpoint.
22276 (linux_set_resume_request, linux_queue_one_thread)
22277 (resume_status_pending_p): New functions.
22278 (linux_continue_one_thread): Use process->resume.
22279 (linux_resume): Only resume threads if there are no pending events.
22280 * linux-low.h (struct process_info): Add resume request
22283 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22285 * regcache.c (new_register_cache): Clear the allocated register
22286 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22288 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22290 * linux-low.c (linux_resume): Take a struct thread_resume *
22292 (linux_wait): Update call.
22293 (resume_ptr): New static variable.
22294 (linux_continue_one_thread): Renamed from
22295 linux_continue_one_process. Use resume_ptr.
22296 (linux_resume): Use linux_continue_one_thread.
22297 * server.c (handle_v_cont, handle_v_requests): New functions.
22298 (myresume): New function.
22299 (main): Handle 'v' case.
22300 * target.h (struct thread_resume): New type.
22301 (struct target_ops): Change argument of "resume" to struct
22303 (myresume): Delete macro.
22305 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22307 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22308 (uninstall): Support DESTDIR.
22310 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22312 * configure.srv: Add xscale*linux copy of arm*linux entry.
22314 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22316 * linux-arm-low.c (arm_reinsert_addr): New function.
22317 (the_low_target): Add arm_reinsert_addr.
22319 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22321 * mem-break.c: Remove whitespace at end of file.
22323 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22325 * configure.in: Check whether we need to prototype strerror.
22326 * server.h: Optionally prototype strerror.
22327 * gdbreplay.c (perror_with_name): Use strerror.
22328 * linux-low.c (linux_attach_lwp): Use strerror.
22329 * utils.c (perror_with_name): Use strerror.
22330 * config.in, configure: Regenerated.
22332 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22334 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22335 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22337 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22339 * Makefile.in (SFILES): Update.
22340 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22341 low-sun3.c: Remove files.
22343 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22345 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22346 (linux_detach_one_process, linux_detach): New functions.
22347 (linux_target_ops): Add linux_detach.
22348 * server.c (main): Handle 'D' packet.
22349 * target.h (struct target_ops): Add "detach" member.
22350 (detach_inferior): Define.
22352 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22354 From Kelley Cook <kelleycook@wideopenwest.com>:
22355 * configure.srv: Accept i[34567]86 variants.
22357 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22359 * linux-low.c (linux_wait_for_event): Correct comment typos.
22360 (linux_resume_one_process): Call check_removed_breakpoint.
22361 (linux_send_signal): New function.
22362 (linux_target_ops): Add linux_send_signal.
22363 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22365 * target.h (struct target_ops): Add send_signal.
22367 2003-05-29 Jim Blandy <jimb@redhat.com>
22369 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22370 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22371 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22372 away part of the register's value.
22374 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22376 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22377 (linux_wait_for_event, linux_init_signals): Likewise.
22379 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22381 * configure.in: Check for stdlib.h.
22382 * configure: Regenerated.
22383 * config.in: Regenerated.
22385 2003-01-04 Andreas Schwab <schwab@suse.de>
22387 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22389 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22391 * Makefile.in: Remove obsolete code.
22393 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22395 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22396 defined(PT_FPR0_HI).
22398 2002-11-17 Stuart Hughes <seh@zee2.com>
22400 * linux-arm-low.c (arm_num_regs): Increase.
22401 (arm_regmap): Include status register.
22403 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22405 * linux-low.c (register_addr): Remove incorrect -1 check.
22407 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22409 * linux-low.c (linux_create_inferior): Call setpgid. Return
22411 (unstopped_p, linux_signal_pid): Remove.
22412 (linux_target_ops): Remove linux_signal_pid.
22413 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22414 global instead of target method.
22415 * target.h (struct target_ops): Remove signal_pid. Update comment
22416 for create_inferior.
22417 * server.c (signal_pid): New variable.
22418 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22419 gdbserver. Set the child to be the foreground process group.
22420 (attach_inferior): Set signal_pid.
22422 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22424 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22426 2002-08-20 Jim Blandy <jimb@redhat.com>
22428 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22431 2002-08-01 Andrew Cagney <cagney@redhat.com>
22433 * Makefile.in: Make chill references obsolete.
22435 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22437 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22438 * configure: Regenerate.
22439 * config.in: Regenerate.
22441 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22443 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22444 (perror_with_name, remote_close, remote_open, expect, play): Static.
22446 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22448 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22449 byte offsets instead of an array of indexes.
22450 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22452 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22454 * regcache.c: Add comment.
22456 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22458 * thread-db.c: New file.
22459 * proc-service.c: New file.
22460 * acinclude.m4: New file.
22461 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22462 proc-service.o, and thread-db.o.
22463 (linux-low.o): Add USE_THREAD_DB.
22464 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22465 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22466 * aclocal.m4: Regenerated.
22467 * config.in: Regenerated.
22468 * configure: Regenerated.
22469 * configure.in: Check for proc_service.h, sys/procfs.h,
22470 thread_db.h, and linux/elf.h headrs.
22471 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22472 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22473 Check for -lthread_db and thread support.
22474 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22475 PowerPC, and SuperH.
22476 * i387-fp.c: Constify arguments.
22477 * i387-fp.h: Likewise.
22478 * inferiors.c: (struct thread_info): Renamed from
22479 `struct inferior_info'. Remove PID member. Use generic inferior
22480 list header. All uses updated.
22481 (inferiors, signal_pid): Removed.
22482 (all_threads): New variable.
22483 (get_thread): Define.
22484 (add_inferior_to_list): New function.
22485 (for_each_inferior): New function.
22486 (change_inferior_id): New function.
22487 (add_inferior): Removed.
22488 (remove_inferior): New function.
22489 (add_thread): New function.
22490 (free_one_thread): New function.
22491 (remove_thread): New function.
22492 (clear_inferiors): Use for_each_inferior and free_one_thread.
22493 (find_inferior): New function.
22494 (find_inferior_id): New function.
22495 (inferior_target_data): Update argument type.
22496 (set_inferior_target_data): Likewise.
22497 (inferior_regcache_data): Likewise.
22498 (set_inferior_regcache_data): Likewise.
22499 * linux-low.c (linux_bp_reinsert): Remove.
22500 (all_processes, stopping_threads, using_thrads)
22501 (struct pending_signals, debug_threads, pid_of): New.
22502 (inferior_pid): Replace with macro.
22503 (struct inferior_linux_data): Remove.
22504 (get_stop_pc, add_process): New functions.
22505 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22506 Use add_process and add_thread.
22507 (linux_attach_lwp): New function, based on old linux_attach. Use
22508 add_process and add_thread. Set stop_expected for new threads.
22509 (linux_attach): New function.
22510 (linux_kill_one_process): New function.
22511 (linux_kill): Kill all LWPs.
22512 (linux_thread_alive): Use find_inferior_id.
22513 (check_removed_breakpoints, status_pending_p): New functions.
22514 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22515 Update. Use WNOHANG. Wait for cloned processes also. Update process
22516 struct for the found process.
22517 (linux_wait_for_event): New function.
22518 (linux_wait): Use it. Support LWPs.
22519 (send_sigstop, wait_for_sigstop, stop_all_processes)
22520 (linux_resume_one_process, linux_continue_one_process): New functions.
22521 (linux_resume): Support LWPs.
22522 (REGISTER_RAW_SIZE): Remove.
22523 (fetch_register): Use register_size instead. Call supply_register.
22524 (usr_store_inferior_registers): Likewise. Call collect_register.
22525 Fix recursive case.
22526 (regsets_fetch_inferior_registers): Improve error message.
22527 (regsets_store_inferior_registers): Add debugging.
22528 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22529 (unstopped_p, linux_signal_pid): New functions.
22530 (linux_target_ops): Add linux_signal_pid.
22531 (linux_init_signals): New function.
22532 (initialize_low): Call it. Initialize using_threads.
22533 * regcache.c (inferior_regcache_data): Add valid
22535 (get_regcache): Fetch registers lazily. Add fetch argument
22536 and update all callers.
22537 (regcache_invalidate_one, regcache_invalidate): New
22539 (new_register_cache): Renamed from create_register_cache.
22540 Return the new regcache.
22541 (free_register_cache): Change argument to a void *.
22542 (registers_to_string, registers_from_string): Call get_regcache
22543 with fetch flag set.
22544 (register_data): Make static. Pass fetch flag to get_regcache.
22545 (supply_register): Call get_regcache with fetch flag clear.
22546 (collect_register): Call get_regcache with fetch flag set.
22547 (collect_register_as_string): New function.
22548 * regcache.h: Update.
22549 * remote-utils.c (putpkt): Flush after debug output and use
22551 Handle input interrupts while waiting for an ACK.
22552 (input_interrupt): Use signal_pid method.
22553 (getpkt): Flush after debug output and use stderr.
22554 (outreg): Use collect_register_as_string.
22555 (new_thread_notify, dead_thread_notify): New functions.
22556 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22557 and general_thread.
22558 (look_up_one_symbol): Flush after debug output.
22559 * server.c (step_thread, server_waiting): New variables.
22560 (start_inferior): Don't use signal_pid. Update call to mywait.
22561 (attach_inferior): Update call to mywait.
22562 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22563 (main): Don't fetch/store registers explicitly. Use
22564 set_desired_inferior. Support proposed ``Hs'' packet. Update
22566 * server.h: Update.
22567 (struct inferior_list, struct_inferior_list_entry): New.
22568 * target.c (set_desired_inferior): New.
22569 (write_inferior_memory): Constify.
22570 (mywait): New function.
22571 * target.h: Update.
22572 (struct target_ops): New signal_pid method.
22573 (mywait): Removed macro, added prototype.
22575 * linux-low.h (regset_func): Removed.
22576 (regset_fill_func, regset_store_func): New.
22577 (enum regset_type): New.
22578 (struct regset_info): Add type field. Use new operation types.
22579 (struct linux_target_ops): stop_pc renamed to get_pc.
22580 Add decr_pc_after_break and breakpoint_at.
22581 (get_process, get_thread_proess, get_process_thread)
22582 (strut process_info, all_processes, linux_attach_lwp)
22583 (thread_db_init): New.
22585 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22586 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22587 (the_low_target): Add new members.
22588 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22589 (i386_store_fpxregset): Constify.
22590 (target_regsets): Add new kind identifier.
22591 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22592 (i386_set_pc): Add debugging.
22593 (i386_breakpoint_at): New function.
22594 (the_low_target): Add new members.
22595 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22596 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22597 (mips_breakpoint_at): New.
22598 (the_low_target): Add new members.
22599 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22600 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22601 (the_low_target): Add new members.
22602 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22603 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22604 (the_low_target): Add new members.
22605 * linux-x86-64-low.c (target_regsets): Add new kind
22608 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22610 From Martin Pool <mbp@samba.org>:
22611 * server.c (gdbserver_usage): New function.
22614 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22616 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22617 stop_at -> stop_pc.
22619 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22621 * Makefile.in: Remove obsolete code.
22623 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22625 * linux-low.c (regsets_fetch_inferior_registers),
22626 (regsets_store_inferior_registers): Removed cast to int from
22628 * regcache.h: Added declaration of struct inferior_info.
22630 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22632 * inferiors.c (struct inferior_info): Add regcache_data.
22633 (add_inferior): Call create_register_cache.
22634 (clear_inferiors): Call free_register_cache.
22635 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22636 * regcache.c (struct inferior_regcache_data): New.
22637 (registers): Remove.
22638 (get_regcache): New function.
22639 (create_register_cache, free_register_cache): New functions.
22640 (set_register_cache): Don't initialize the register cache here.
22641 (registers_to_string, registers_from_string, register_data): Call
22643 * regcache.h: Add prototypes.
22644 * server.h: Likewise.
22646 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22648 * mem-break.c: New file.
22649 * mem-break.h: New file.
22650 * Makefile.in: Add mem-break.o rule; update server.h
22652 * inferiors.c (struct inferior_info): Add target_data
22654 (clear_inferiors): Free target_data member if set.
22655 (inferior_target_data, set_inferior_target_data): New functions.
22656 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22657 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22658 * linux-low.c (linux_bp_reinsert): New variable.
22659 (struct inferior_linux_data): New.
22660 (linux_create_inferior): Use set_inferior_target_data.
22661 (linux_attach): Likewise. Call add_inferior.
22662 (linux_wait_for_one_inferior): New function.
22663 (linux_wait): Call it.
22664 (linux_write_memory): Add const.
22665 (initialize_low): Call set_breakpoint_data.
22666 * linux-low.h (struct linux_target_ops): Add breakpoint
22668 * server.c (attach_inferior): Remove extra add_inferior
22670 * server.h: Include mem-break.h. Update inferior.c
22672 * target.c (read_inferior_memory)
22673 (write_inferior_memory): New functions.
22674 * target.h (read_inferior_memory)
22675 (write_inferior_memory): Change macros to prototypes.
22676 (struct target_ops): Update comments. Add const to write_memory
22679 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22681 * linux-low.c (usr_store_inferior_registers): Support
22682 registers which are allowed to fail to store.
22683 * linux-low.h (linux_target_ops): Likewise.
22684 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22685 (ppc_cannot_store_register): FPSCR may not be storable.
22687 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22689 * server.h: Include <string.h> if HAVE_STRING_H.
22690 * ChangeLog: Correct paths in last ChangeLog entry.
22692 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22694 * linux-low.h: Remove obsolete prototypes.
22695 (struct linux_target_ops): New.
22696 (extern the_low_target): New.
22697 * linux-low.c (num_regs, regmap): Remove declarations.
22698 (register_addr): Use the_low_target explicitly.
22699 (fetch_register): Likewise.
22700 (usr_fetch_inferior_registers): Likewise.
22701 (usr_store_inferior_registers): Likewise.
22702 * linux-arm-low.c (num_regs): Remove.
22703 (arm_num_regs): Define.
22704 (arm_regmap): Renamed from regmap, made static.
22705 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22707 (arm_cannot_store_register): Renamed from cannot_store_register,
22709 (the_low_target): New.
22710 * linux-i386-low.c (num_regs): Remove.
22711 (i386_num_regs): Define.
22712 (i386_regmap): Renamed from regmap, made static.
22713 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22715 (i386_cannot_store_register): Renamed from cannot_store_register,
22717 (the_low_target): New.
22718 * linux-ia64-low.c (num_regs): Remove.
22719 (ia64_num_regs): Define.
22720 (ia64_regmap): Renamed from regmap, made static.
22721 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22723 (ia64_cannot_store_register): Renamed from cannot_store_register,
22725 (the_low_target): New.
22726 * linux-m68k-low.c (num_regs): Remove.
22727 (m68k_num_regs): Define.
22728 (m68k_regmap): Renamed from regmap, made static.
22729 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22731 (m68k_cannot_store_register): Renamed from cannot_store_register,
22733 (the_low_target): New.
22734 * linux-mips-low.c (num_regs): Remove.
22735 (mips_num_regs): Define.
22736 (mips_regmap): Renamed from regmap, made static.
22737 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22739 (mips_cannot_store_register): Renamed from cannot_store_register,
22741 (the_low_target): New.
22742 * linux-ppc-low.c (num_regs): Remove.
22743 (ppc_num_regs): Define.
22744 (ppc_regmap): Renamed from regmap, made static.
22745 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22747 (ppc_cannot_store_register): Renamed from cannot_store_register,
22749 (the_low_target): New.
22750 * linux-s390-low.c (num_regs): Remove.
22751 (s390_num_regs): Define.
22752 (s390_regmap): Renamed from regmap, made static.
22753 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22755 (s390_cannot_store_register): Renamed from cannot_store_register,
22757 (the_low_target): New.
22758 * linux-sh-low.c (num_regs): Remove.
22759 (sh_num_regs): Define.
22760 (sh_regmap): Renamed from regmap, made static.
22761 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22763 (sh_cannot_store_register): Renamed from cannot_store_register,
22765 (the_low_target): New.
22766 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22767 (the_low_target): New.
22769 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22771 * Makefile.in: Add stamp-h target.
22772 * configure.in: Create stamp-h.
22773 * configure: Regenerated.
22775 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22777 * inferiors.c: New file.
22778 * target.c: New file.
22779 * target.h: New file.
22780 * Makefile.in: Add target.o and inferiors.o. Update
22782 * linux-low.c (inferior_pid): New static variable,
22783 moved from server.c.
22784 (linux_create_inferior): Renamed from create_inferior.
22785 Call add_inferior. Return 0 on success instead of a PID.
22786 (linux_attach): Renamed from myattach.
22787 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22788 (linux_thread_alive): Renamed from mythread_alive.
22789 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22791 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22792 (regsets_store_inferior_registers): Correct error message.
22793 Add missing ``return 0''.
22794 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22795 (linux_store_registers): Renamed from store_inferior_registers.
22796 (linux_read_memory): Renamed from read_inferior_memory.
22797 (linux_write_memory): Renamed from write_inferior_memory.
22798 (linux_target_ops): New structure.
22799 (initialize_low): Call set_target_ops ().
22800 * remote-utils.c (unhexify): New function.
22801 (hexify): New function.
22802 (input_interrupt): Send signals to ``signal_pid''.
22803 * server.c (inferior_pid): Remove.
22804 (start_inferior): Update create_inferior call.
22805 (attach_inferior): Call add_inferior.
22806 (handle_query): New function.
22807 (main): Call handle_query for `q' packets.
22808 * server.h: Include "target.h". Remove obsolete prototypes.
22809 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22811 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22813 * Makefile.in: Add WARN_CFLAGS. Update configury
22815 * configure.in: Check for <string.h>
22816 * configure: Regenerate.
22817 * config.in: Regenerate.
22818 * gdbreplay.c: Include needed system headers.
22819 (remote_open): Remove strchr prototype.
22820 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22821 * regcache.c (supply_register): Change buf argument to const void *.
22822 (supply_register_by_name): Likewise.
22823 (collect_register): Change buf argument to void *.
22824 (collect_register_by_name): Likewise.
22825 * regcache.h: Add missing prototypes.
22826 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22827 * server.c (handle_query): New function.
22828 (attached): New static variable, moved out of main.
22829 (main): Quiet longjmp clobber warnings.
22830 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22831 * utils.c (error): Remove NORETURN.