1 2021-05-08 Pedro Alves <pedro@palves.net>
4 (linux_process_target::supports_disable_randomization): Remove
5 reference to HAVE_PERSONALITY.
6 * config.in, configure: Regenerate.
8 2021-05-08 Pedro Alves <pedro@palves.net>
10 * linux-low.cc: Don't include sys/personality.h or define
13 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15 * server.cc (handle_v_attach)
17 (handle_v_kill): Make void.
19 2021-05-03 Tom Tromey <tromey@adacore.com>
22 * win32-i386-low.cc (i386_get_thread_context): Call
23 Wow64GetThreadContext, not win32_Wow64GetThreadContext.
25 2021-04-30 Tom Tromey <tromey@adacore.com>
27 * win32-low.cc (do_initial_child_stuff): Update.
28 (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
29 Change parameter type.
30 (win32_add_dll, win32_add_all_dlls)
31 (windows_nat::handle_load_dll): Remove.
32 (get_child_debug_event): Call dll_loaded_event.
34 2021-04-30 Tom Tromey <tromey@adacore.com>
36 * win32-low.cc (GETPROCADDRESS): Remove.
37 (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
38 (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
39 (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
40 (win32_Wow64SetThreadContext): Remove.
41 (win32_set_thread_context, do_initial_child_stuff)
42 (win32_process_target::attach, win32_process_target::detach):
44 (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
45 (winapi_GetModuleInformation, winapi_GetModuleInformationA):
47 (win32_EnumProcessModules, win32_EnumProcessModulesEx)
48 (win32_GetModuleInformation, win32_GetModuleInformationA):
51 (win32_add_dll, win32_process_target::request_interrupt): Update.
52 (initialize_low): Call initialize_loadable.
54 2021-04-14 Tom Tromey <tromey@adacore.com>
56 * win32-low.cc (windows_nat::handle_load_dll): Don't check
59 2021-04-13 Pedro Alves <pedro@palves.net>
61 * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
63 2021-04-13 Tom Tromey <tromey@adacore.com>
65 * win32-low.cc (winapi_CreateToolhelp32Snapshot)
66 (winapi_Module32First, winapi_Module32Next): Remove typedefs.
68 2021-04-13 Pedro Alves <pedro@palves.net>
70 * Makefile.in (SFILES): Remove hostio-errno.cc.
71 * configure: Regenerate.
72 * configure.ac (GDBSERVER_DEPFILES): No longer add
74 * configure.srv (srv_hostio_err_objs): Delete.
75 * hostio-errno.cc: Delete.
76 * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
78 * hostio.h (hostio_last_error_from_errno): Delete.
79 * target.cc (process_stratum_target::hostio_last_error): Delete.
80 * target.h (class process_stratum_target) <hostio_last_error>:
83 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
85 * win32-low.cc: Remove all code guarded by _WIN32_WCE.
86 * win32-low.h: Likewise.
88 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
90 * target.h (class process_stratum_target) <pid_to_exec_file>:
91 Constify the return type. Update the definition/references below.
92 * target.cc (process_stratum_target::pid_to_exec_file)
93 * linux-low.h (class linux_process_target) <pid_to_exec_file>
94 * linux-low.cc (linux_process_target::pid_to_exec_file)
95 * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
96 * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
97 * server.cc (handle_qxfer_exec_file)
99 2021-04-11 Eli Zaretskii <eliz@gnu.org>
101 * win32-low.cc (win32_add_dll): New function, with body almost
102 identical to what win32_add_all_dlls did. Accepts one argument;
103 if that is non-NULL, returns the file name of the DLL that is
104 loaded at the base address equal to that argument, or NULL if not
105 found. If the argument is NULL, add all the DLLs loaded by the
106 inferior to the list of solibs and return NULL.
107 (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
108 (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
109 failed to glean the file name of the DLL, call win32_add_dll to
110 try harder using the lpBaseOfDll member of the load-DLL event.
112 2021-03-30 Luis Machado <luis.machado@linaro.org>
114 * server.cc (handle_general_set, handle_query): Update variable
115 to bool and fix verification logic.
117 2021-03-24 Luis Machado <luis.machado@linaro.org>
119 * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
120 * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
121 nat/aarch64-mte-linux-ptrace.o.
122 * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
123 (class aarch64_target) <supports_memory_tagging>
124 <fetch_memtags, store_memtags>: New method overrides.
125 (aarch64_target::supports_memory_tagging)
126 (aarch64_target::fetch_memtags)
127 (aarch64_target::store_memtags): New methods.
129 2021-03-24 Luis Machado <luis.machado@linaro.org>
131 * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
132 (aarch64_store_mteregset): New function.
133 (aarch64_regsets): Add MTE register set entry.
134 (aarch64_sve_regsets): Add MTE register set entry.
136 2021-03-24 Luis Machado <luis.machado@linaro.org>
138 * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
139 aarch64_linux_read_description.
140 (initialize_low_tracepoint): Likewise.
141 * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
143 * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
145 (aarch64_linux_read_description): Add mte_p parameter and update to
147 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
150 2021-03-24 Luis Machado <luis.machado@linaro.org>
152 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
154 2021-03-24 Luis Machado <luis.machado@linaro.org>
156 * server.cc (test_memory_tagging_functions): New function.
157 (captured_main): Register test_memory_tagging_functions.
159 2021-03-24 Luis Machado <luis.machado@linaro.org>
161 * remote-utils.cc (decode_m_packet_params): Renamed from ...
162 (decode_m_packet): ... this, which now calls decode_m_packet_params.
163 Make char * param/return const char *.
164 (decode_M_packet): Use decode_m_packet_params and make char * param
166 * remote-utils.h (decode_m_packet_params): New prototype.
167 (decode_m_packet): Constify char pointers.
168 (decode_M_packet): Likewise.
169 * server.cc (create_fetch_memtags_reply)
170 (parse_store_memtags_request): New
172 (handle_general_set): Handle the QMemTags packet.
173 (parse_fetch_memtags_request): New function.
174 (handle_query): Handle the qMemTags packet and advertise memory
176 (captured_main): Initialize memory tagging flag.
177 * server.h (struct client_state): Initialize memory tagging flag.
178 * target.cc (process_stratum_target::supports_memory_tagging)
179 (process_stratum_target::fetch_memtags)
180 (process_stratum_target::store_memtags): New methods.
181 * target.h: Include gdbsupport/byte-vector.h.
182 (class process_stratum_target) <supports_memory_tagging>
183 <fetch_memtags, store_memtags>: New class virtual methods.
184 (target_supports_memory_tagging): Define.
186 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
188 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
191 (unloaded_dll): Declare an overloaded version that takes a proc
193 * dll.cc (loaded_dll)
194 (unloaded_dll): Implement the overloaded versions.
195 (clear_dlls): Clear all process' dll lists.
196 (all_dlls, dlls_changed): Remove the global variables.
197 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
199 * server.cc (handle_qxfer_libraries): Ditto.
200 (handle_v_attach): Ditto.
201 (captured_main): Ditto.
203 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
205 * linux-low.cc (linux_process_target::filter_event): Return
207 * linux-low.h (class linux_process_target) <filter_event>:
210 2021-02-12 Tom Tromey <tromey@adacore.com>
212 * gdbreplay.cc (remote_desc): Remove.
213 (remote_desc_in, remote_desc_out): New globals.
214 (remote_close): Update.
215 (remote_open): Handle "-".
216 (remote_open): Update.
217 (logchar): Log to stderr.
218 (expect, play): Update.
220 2021-02-12 Tom Tromey <tromey@adacore.com>
222 * gdbreplay.cc (remote_open): Constify.
224 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
226 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
227 gnulib free replacement too.
228 * common-defs.h [USE_WIN32API](read, write): Undefine
229 gnulib versions before defining these macros.
231 2021-02-03 Pedro Alves <pedro@palves.net>
233 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
234 Discard step SIGTRAP, unless GDB wanted the thread to step.
236 2021-02-03 Pedro Alves <pedro@palves.net>
238 * server.cc (discard_queued_stop_replies): Don't ever discard the
239 notification at the head of the list.
241 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
243 * ax.cc (bytecode_address_table): Make static.
244 * debug.cc (debug_file): Make static.
245 * linux-low.cc (stopping_threads): Make static.
246 (step_over_bkpt): Make static.
247 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
248 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
249 alloced_trace_state_variables, trace_buffer_ctrl,
250 tracing_start_time, tracing_stop_time, tracing_user_name,
251 tracing_notes, tracing_stop_note): Make static.
253 2021-01-20 Tom de Vries <tdevries@suse.de>
255 * linux-x86-low.cc (collect_register_i386): New function.
256 (x86_fill_gregset): Remove memset. Use collect_register_i386.
258 2021-01-07 Tom de Vries <tdevries@suse.de>
260 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
261 (LIBIBERTY_FOR_SHLIB): New var.
262 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
263 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
265 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
267 * debug.cc (debug_print_depth): New.
269 2021-01-01 Joel Brobecker <brobecker@adacore.com>
271 * server.cc (gdbserver_version): Update copyright year.
272 * gdbreplay.cc (gdbreplay_version): Likewise.
274 2020-12-16 Luis Machado <luis.machado@linaro.org>
276 * linux-aarch64-low.cc (address_significant): New function.
277 (aarch64_target::low_stopped_data_address): Handle the TBI.
279 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
281 * Makefile.in (IPA_LIB): Include libiberty library.
283 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
285 * server.cc (gdbserver_usage): Add missing option to usage text.
286 (gdbserver_show_disableable): Likewise.
288 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
290 * ax.cc: Fix indentation.
291 * dll.cc: Fix indentation.
292 * inferiors.h: Fix indentation.
293 * linux-low.cc: Fix indentation.
294 * linux-nios2-low.cc: Fix indentation.
295 * linux-ppc-ipa.cc: Fix indentation.
296 * linux-ppc-low.cc: Fix indentation.
297 * linux-x86-low.cc: Fix indentation.
298 * linux-xtensa-low.cc: Fix indentation.
299 * regcache.cc: Fix indentation.
300 * server.cc: Fix indentation.
301 * tracepoint.cc: Fix indentation.
303 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
305 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
307 * configure: Re-generate.
309 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
311 * configure: Re-generate.
313 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
315 * configure: Re-generate.
317 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
319 * configure: Re-generate.
321 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
323 * configure: Re-generate.
325 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
327 * configure.ac: Modernize.
328 * configure: Re-generate.
330 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
332 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
334 * configure: Re-generate.
336 2020-10-26 Pedro Alves <pedro@palves.net>
338 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
339 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
342 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
344 * acinclude.m4: Update ptrace.m4 path.
346 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
348 * config.in: Re-generate.
349 * configure: Re-generate.
351 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
353 * server.cc (handle_general_set): Don't use sprintf with
354 argument overlapping buffer.
356 2020-10-20 Tom Tromey <tromey@adacore.com>
359 * inferiors.cc (remove_thread): Clear current_thread before
362 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
364 * netbsd-low.cc (netbsd_tdesc): Remove.
365 (netbsd_add_process): Likewise.
366 (netbsd_process_target::create_inferior): Update.
368 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
370 * linux-arc-low.cc (arc_linux_read_description): Release the
371 unique_ptr returned from arc_create_target_description.
373 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
375 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
376 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
378 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
380 * linux-low.cc (linux_process_target::handle_extended_wait):
381 Release the unique_ptr returned from allocate_target_description.
382 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
383 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
384 (tdesc_i386_linux_no_xml): Change type.
385 (x86_linux_read_description): Borrow pointer from unique_ptr
387 (x86_target::get_ipa_tdesc_idx): Likewise.
388 (initialize_low_arch): Likewise.
389 * tdesc.cc (allocate_target_description): Update return type.
391 2020-10-07 Tom Tromey <tromey@adacore.com>
393 * server.cc (handle_search_memory): Remove dead code.
395 2020-10-07 Tom Tromey <tromey@adacore.com>
397 * server.cc (handle_search_memory_1): Remove.
398 (handle_search_memory): Use simple_search_memory.
400 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
402 * Makefile.in (COMPILE): Add CXXFLAGS.
403 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
404 (gdbserver$(EXEEXT)): Add CXXFLAGS.
405 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
406 ($(IPA_LIB)): Add CXXFLAGS.
407 (IPAGENT_COMPILE): Add CXXFLAGS.
409 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
411 * configure.srv: Support ARC architecture.
412 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
413 * linux-arc-low.cc: New file.
415 2020-10-07 Kamil Rytarowski <n54@gmx.com>
417 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
418 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
419 (netbsd_process_target::qxfer_libraries_svr4): Update.
421 2020-10-07 Kamil Rytarowski <n54@gmx.com>
423 * netbsd-low.cc: Fix whitespace formatting.
424 * netbsd-amd64-low.cc: Likewise.
426 2020-10-07 Kamil Rytarowski <n54@gmx.com>
428 * netbsd-low.cc (netbsd_process_target::read_memory)
429 (netbsd_process_target::write_memory): Update.
431 2020-10-07 Kamil Rytarowski <n54@gmx.com>
433 * netbsd-aarch64-low.cc: Add.
434 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
435 * configure.srv: Add aarch64*-*-netbsd*.
437 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
439 * regcache.cc (register_data): Remove unused "fetch" argument.
441 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
443 * server.cc (handle_monitor_command): Handle "set
445 (captured_main): Handle "--debug-event-loop".
446 (monitor_show_help): Mention new setting.
447 (gdbserver_usage): Mention new flag.
449 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
451 * linux-low.cc (linux_process_target::async): Pass name to
453 * remote-utils.cc (handle_accept_event): Likewise.
454 (remote_open): Likewise.
456 2020-10-01 Kamil Rytarowski <n54@gmx.com>
458 * netbsd-i386-low.cc: Add.
459 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
460 * configure.srv: Add i[34567]86-*-netbsd*.
462 2020-10-01 Kamil Rytarowski <n54@gmx.com>
464 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
465 (netbsd_target_regsets): Now const.
466 (the_low_target): Remove.
467 (class netbsd_amd64_target, the_netbsd_amd64_target)
468 (the_netbsd_target): Add.
469 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
471 (netbsd_process_target::fetch_registers)
472 (netbsd_process_target::store_registers, initialize_low): Update.
473 (the_netbsd_target): Remove.
474 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
475 (the_low_target, netbsd_tdesc): Remove.
476 (netbsd_process_target::get_regs_info)
477 (netbsd_process_target::low_arch_setup): Add.
479 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
481 * win32-low.cc: Remove local wow64_process variable.
482 * win32-low.h: Remove local wow64_process variable.
484 2020-09-18 Tom Tromey <tromey@adacore.com>
486 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
487 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
488 (netbsd_process_target::wait): Change type of target_options.
489 * win32-low.h (class win32_process_target) <wait>: Update.
490 * win32-low.cc (win32_process_target::wait): Update.
491 * target.h (class process_stratum_target) <wait>: Update.
493 * target.cc (mywait, target_wait): Change type of "options".
494 * linux-low.h (class linux_process_target) <wait, wait_1>:
496 * linux-low.cc (linux_process_target::wait)
497 (linux_process_target::wait_1): Update.
499 2020-09-15 Tom Tromey <tromey@adacore.com>
501 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
502 (xmltarget_amd64_linux_no_xml): Now arrays.
504 2020-09-14 Tom Tromey <tromey@adacore.com>
506 * tracepoint.cc (eval_result_names): Now const.
507 * ax.cc (gdb_agent_op_names): Now const.
509 2020-09-10 Kamil Rytarowski <n54@gmx.com>
511 * netbsd-low.cc: Add.
512 * netbsd-low.h: Likewise.
513 * netbsd-amd64-low.cc: Likewise.
514 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
515 "netbsd-amd64-low.cc".
516 * configure.srv: Add x86_64-*-netbsd*.
518 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
520 * server.cc (captured_main): Accept multiple `--selftest=`
521 options. Pass all `--selftest=` arguments to run_tests.
523 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
525 * configure, config.in: Regenerate.
527 2020-07-26 Eli Zaretskii <eliz@gnu.org>
529 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
530 When checking whether socklen_t type is defined, use ws2tcpip.h if
531 it is available and sys/socket.h isn't.
532 * configure: Regenerate.
533 * config.in: Regenerate.
535 2020-07-22 Pedro Alves <pedro@palves.net>
537 * inferiors.cc (switch_to_process): New, moved here from
538 thread-db.cc, and made extern.
539 * inferiors.h (switch_to_process): Declare.
540 * server.cc: Include "gdbsupport/scoped_restore.h".
541 (handle_qxfer_threads_proper): Now returns bool. Prepare to
542 access memory around target calls.
543 (handle_qxfer_threads): Handle errors.
544 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
546 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
548 * linux-low.cc (stopped_pids): Make static.
550 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
552 * tdesc.cc (allocate_target_description): Add header comment.
553 (target_desc_deleter::operator()): New function.
554 * tdesc.h (struct target_desc): Declare as final.
556 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
558 * server.cc (handle_query): Use std::vector of
559 std::string for `qsupported` vector. Use separate
561 * target.h (class process_stratum_target) <process_qsupported>:
562 Change parameters to array_view of const char *.
563 (target_process_qsupported): Remove `count` parameter.
564 * target.cc (process_stratum_target::process_qsupported): Change
565 parameters to array_view of const char *.
566 * linux-x86-low.cc (class x86_target) <process_qsupported>:
569 2020-06-29 Tom de Vries <tdevries@suse.de>
571 * ax.h: Include gdbsupport/debug_agent.h.
573 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
575 * tdesc.cc (struct tdesc_compatible_info): New struct.
576 (tdesc_compatible_info_list): New function.
577 (tdesc_compatible_info_arch_name): New function.
579 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
581 Use std::list to stop pending signal instead of manually-created
583 * linux-low.h: Include <list>.
584 (struct pending_signal): Move here from linux-low.cc.
585 (struct lwp_info) <pending_signals>
586 <pending_signals_to_report>: Update the type.
587 * linux-low.cc (struct pending_signals): Remove.
588 (linux_process_target::delete_lwp)
589 (linux_process_target::add_lwp)
590 (enqueue_one_deferred_signal)
591 (dequeue_one_deferred_signal)
592 (enqueue_pending_signal)
593 (linux_process_target::resume_one_lwp_throw)
594 (linux_process_target::thread_needs_step_over)
595 (linux_process_target::resume_one_thread)
596 (linux_process_target::proceed_one_lwp): Update the use of pending
599 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
601 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
604 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
606 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
607 * configure.srv: Remove mingw32ce cases.
608 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
609 * win32-low.h (to_back_slashes): Remove.
610 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
612 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
614 * Makefile.in (SFILES): linux-tile-low.cc.
615 * configure.srv: Remove tilegx case.
616 * linux-tile-low.cc: Remove.
618 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
620 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
621 * configure.srv: Remove m32r case.
622 * linux-m32r-low.cc: Remove.
624 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
626 * Makefile.in (SFILES): Remove linux-cris-low.c.
627 * configure.srv: Remove cris cases.
628 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
630 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
632 * Makefile.in (SFILES): Remove linux-bfin-low.c.
633 * configure.srv: Remove bfin case.
634 * linux-bfin-low.cc: Remove.
635 * linux-low.cc: Remove BFIN-conditional code.
637 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
639 * configure: Re-generate.
640 * configure.ac: Remove srv_qnx test.
641 * configure.srv: Remove nto case.
642 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
643 * remote-utils.c: Remove __QNX__-guarded code.
645 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
647 * configure: Re-generate.
648 * configure.ac: Remove srv_lynxos test.
649 * configure.srv: Remove lynxos cases.
650 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
653 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
655 * README: Fix a few outdated or incoherent things.
657 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
659 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
660 (win32_clear_inferiors): Use open_process_used.
661 (get_child_debug_event): Likewise.
663 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
666 * linux-low.cc (linux_process_target::create_inferior),
667 lynx-low.cc (lynx_process_target::create_inferior),
668 win32-low.cc (win32_process_target::create_inferior): Use
669 construct_inferior_arguments instead of stringify_argv
670 to get string representation which properly escapes
672 * server.cc (handle_v_run): Just pass empty program arg
673 as such, since any further processing is now handled via
674 construct_inferior_arguments.
676 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
678 * nto-low.cc (nto_process_target::create_inferior): Pass
679 argv to spawnp function as char **.
681 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
683 * server.cc (captured_main), (handle_v_run): No longer
684 insert extra NULL element to args vector.
686 2020-05-23 Pedro Alves <palves@redhat.com>
688 * gdb-safe-ctype.h: New.
690 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
693 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
694 (ia64_target::low_breakpoint_at): Ditto.
696 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
698 * win32-i386-low.cc (i386_supports_z_point_type): Handle
699 Z_PACKET_HW_BP z_type.
700 (i386_insert_point): Handle raw_bkpt_type type.
701 (i386_remove_point): Likewise.
703 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
705 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
707 * win32-arm-low.cc (arm_num_regs): New function.
708 (struct win32_target_ops): Use arm_num_regs.
709 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
711 (i386_get_thread_context): Likewise.
712 (i386_prepare_to_resume): Likewise.
713 (i386_thread_added): Likewise.
714 (i386_single_step): Likewise.
715 (i386_fetch_inferior_register): Likewise.
716 (i386_store_inferior_register): Likewise.
717 (i386_arch_setup): Likewise.
718 (i386_win32_num_regs): New function.
719 (struct win32_target_ops): Use i386_win32_num_regs.
720 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
722 (win32_require_context): Likewise.
723 (child_add_thread): Likewise.
724 (do_initial_child_stuff): Likewise.
725 (continue_one_thread): Likewise.
726 (win32_process_target::resume): Likewise.
727 (load_psapi): Likewise.
728 (win32_add_all_dlls): Likewise.
729 (maybe_adjust_pc): Likewise.
730 (win32_process_target::qxfer_siginfo): Likewise.
731 (initialize_low): Likewise.
732 * win32-low.h (struct win32_target_ops): Change num_regs to
735 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
737 * configure.ac: Remove check for fs_base/gs_base in
739 * configure: Re-generate.
740 * config.in: Re-generate.
741 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
742 x86_store_gregset): Adjust.
744 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
746 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
749 2020-04-16 Tom Tromey <tromey@adacore.com>
751 * win32-low.cc (windows_nat::handle_access_violation): New
754 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
756 * win32-low.cc (get_child_debug_event): Fix format string warning.
758 2020-04-13 Tom Tromey <tom@tromey.com>
760 * server.h (gdb_fildes_t): Remove typedef.
761 * remote-utils.c (remote_desc, list_desc): Now int.
762 (INVALID_DESCRIPTOR): Remove.
763 (gdb_connected, remote_close)
764 (check_remote_input_interrupt_request): Update.
765 * utils.h (pfildes): Don't declare.
766 * utils.c (pfildes): Remove.
768 2020-04-13 Tom Tromey <tom@tromey.com>
770 * server.h (handle_serial_event, handle_target_event): Update.
771 * server.c: Don't call initialize_event_loop.
772 (keep_processing_events): New global.
773 (handle_serial_event): Return void. Set keep_processing_events.
774 (handle_target_event): Return void.
775 (start_event_loop): Move from event-loop.c. Rewrite.
776 * remote-utils.c (handle_accept_event): Return void.
777 (reset_readchar): Use delete_timer.
778 (process_remaining): Return void.
779 (reschedule): Use create_timer.
780 * event-loop.h: Remove.
781 * event-loop.cc: Remove.
782 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
784 2020-04-13 Tom Tromey <tom@tromey.com>
786 * server.c (invoke_async_signal_handlers)
787 (check_async_event_handlers, flush_streams, gdb_select): New
790 2020-04-13 Tom Tromey <tom@tromey.com>
792 * configure: Rebuild.
793 * config.in: Rebuild.
795 2020-04-08 Tom Tromey <tromey@adacore.com>
798 * win32-low.c (child_continue): Call matching_pending_stop.
799 (get_child_debug_event): Call fetch_pending_stop. Push pending
802 2020-04-08 Tom Tromey <tromey@adacore.com>
804 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
805 (win32_process_target::supports_stopped_by_sw_breakpoint):
807 * win32-low.c (win32_supports_z_point_type): Always handle
809 (win32_insert_point): Call insert_memory_breakpoint when needed.
810 (win32_remove_point): Call remove_memory_breakpoint when needed.
811 (win32_process_target::stopped_by_sw_breakpoint)
812 (win32_process_target::supports_stopped_by_sw_breakpoint): New
814 (win32_target_ops): Update.
815 (maybe_adjust_pc): New function.
816 (win32_wait): Call maybe_adjust_pc.
818 2020-04-08 Tom Tromey <tromey@adacore.com>
820 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
822 * win32-i386-low.c (the_low_target): Update.
823 * win32-arm-low.c (the_low_target): Update.
825 2020-04-08 Tom Tromey <tromey@adacore.com>
827 * win32-low.h (win32_process_target::read_pc)
828 (win32_process_target::write_pc): Declare.
829 * win32-low.c (win32_process_target::read_pc)
830 (win32_process_target::write_pc): New methods.
831 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
833 (the_low_target): Update.
834 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
836 (the_low_target): Update.
838 2020-04-08 Tom Tromey <tromey@adacore.com>
840 * win32-low.c (win32_kill, get_child_debug_event): Use
841 wait_for_debug_event.
843 2020-04-08 Tom Tromey <tromey@adacore.com>
845 * win32-low.c (child_continue): Call continue_last_debug_event.
847 2020-04-08 Tom Tromey <tromey@adacore.com>
849 * win32-low.c (handle_exception): Remove.
850 (windows_nat::handle_ms_vc_exception): New function.
851 (get_child_debug_event): Add "continue_status" parameter.
853 (win32_wait): Update.
855 2020-04-08 Tom Tromey <tromey@adacore.com>
857 * win32-low.c (windows_nat::handle_load_dll): Rename from
858 handle_load_dll. No longer static.
859 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
862 2020-04-08 Tom Tromey <tromey@adacore.com>
864 * win32-low.c (handle_output_debug_string): Add parameter. Change
866 (win32_kill, get_child_debug_event): Update.
868 2020-04-08 Tom Tromey <tromey@adacore.com>
870 * win32-low.c (current_process_handle, current_process_id)
871 (main_thread_id, last_sig, current_event, siginfo_er): Move to
874 2020-04-08 Tom Tromey <tromey@adacore.com>
876 * win32-low.c (get_image_name): Remove.
877 (handle_load_dll): Update.
879 2020-04-08 Tom Tromey <tromey@adacore.com>
881 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
882 No longer static. Change parameters.
883 (child_add_thread, child_fetch_inferior_registers)
884 (child_store_inferior_registers, win32_resume)
885 (win32_get_tib_address): Update.
887 2020-04-08 Tom Tromey <tromey@adacore.com>
889 * win32-low.h (struct win32_target_ops): Use qualified names where
891 * win32-i386-low.c: Add "using namespace".
892 * win32-low.c: Add "using namespace".
893 * win32-arm-low.c: Add "using namespace".
895 2020-04-08 Tom Tromey <tromey@adacore.com>
897 * win32-low.c (delete_thread_info): Don't call CloseHandle.
899 2020-04-08 Tom Tromey <tromey@adacore.com>
901 * win32-low.c (win32_require_context, suspend_one_thread): Use
902 windows_thread_info::suspend.
903 (continue_one_thread): Use windows_thread_info::resume.
904 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
906 2020-04-08 Tom Tromey <tromey@adacore.com>
908 * win32-i386-low.c (update_debug_registers)
909 (i386_prepare_to_resume, i386_thread_added): Update.
911 2020-04-08 Tom Tromey <tromey@adacore.com>
913 * win32-low.c (child_add_thread): Use new.
914 (delete_thread_info): Use delete.
916 2020-04-08 Tom Tromey <tromey@adacore.com>
918 * win32-low.h (struct windows_thread_info): Remove.
920 2020-04-08 Tom Tromey <tromey@adacore.com>
922 * win32-low.h (struct windows_thread_info): Rename from
923 win32_thread_info. Remove typedef.
924 (struct win32_target_ops, win32_require_context): Update.
925 * win32-low.c (win32_get_thread_context)
926 (win32_set_thread_context, win32_prepare_to_resume)
927 (win32_require_context, thread_rec, child_add_thread)
928 (delete_thread_info, continue_one_thread)
929 (child_fetch_inferior_registers, child_store_inferior_registers)
930 (win32_resume, suspend_one_thread, win32_get_tib_address):
932 * win32-i386-low.c (update_debug_registers)
933 (win32_get_current_dr, i386_get_thread_context)
934 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
935 (i386_fetch_inferior_register, i386_store_inferior_register):
937 * win32-arm-low.c (arm_get_thread_context)
938 (arm_fetch_inferior_register, arm_store_inferior_register):
941 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
943 * linux-low.h (struct linux_target_ops): Remove.
944 (the_low_target): Remove.
945 * linux-x86-low.cc (the_low_target): Remove.
946 * linux-aarch64-low.cc (the_low_target): Ditto.
947 * linux-arm-low.cc (the_low_target): Ditto.
948 * linux-bfin-low.cc (the_low_target): Ditto.
949 * linux-cris-low.cc (the_low_target): Ditto.
950 * linux-crisv32-low.cc (the_low_target): Ditto.
951 * linux-ia64-low.cc (the_low_target): Ditto.
952 * linux-m32r-low.cc (the_low_target): Ditto.
953 * linux-m68k-low.cc (the_low_target): Ditto.
954 * linux-mips-low.cc (the_low_target): Ditto.
955 * linux-nios2-low.cc (the_low_target): Ditto.
956 * linux-ppc-low.cc (the_low_target): Ditto.
957 * linux-riscv-low.cc (the_low_target): Ditto.
958 * linux-s390-low.cc (the_low_target): Ditto.
959 * linux-sh-low.cc (the_low_target): Ditto.
960 * linux-sparc-low.cc (the_low_target): Ditto.
961 * linux-tic6x-low.cc (the_low_target): Ditto.
962 * linux-tile-low.cc (the_low_target): Ditto.
963 * linux-xtensa-low.cc (the_low_target): Ditto.
965 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
967 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
968 linux target define the op by overriding the declaration in
969 process_stratum_target.
971 * linux-low.h (struct linux_target_ops): Remove the op.
972 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
973 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
974 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
975 (x86_get_ipa_tdesc_idx): Turn into...
976 (x86_target::get_ipa_tdesc_idx): ...this.
977 (the_low_target): Remove the op field.
978 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
979 (ppc_get_ipa_tdesc_idx): Turn into...
980 (ppc_target::get_ipa_tdesc_idx): ...this.
981 (the_low_target): Remove the op field.
982 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
983 (s390_get_ipa_tdesc_idx): Turn into...
984 (s390_target::get_ipa_tdesc_idx): ...this.
985 (the_low_target): Remove the op field.
987 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
989 Turn the 'get_syscall_trapinfo' linux target op into a method
990 of process_stratum_target.
992 * linux-low.h (struct linux_target_ops): Remove the op.
993 (class linux_process_target) <get_syscall_trapinfo>
994 <gdb_catch_this_syscall>
995 <low_supports_catch_syscall>
996 <low_get_syscall_trapinfo>: Declare.
997 * linux-low.cc (get_syscall_trapinfo): Turn into...
998 (linux_process_target::get_syscall_trapinfo): ...this.
999 (linux_process_target::low_get_syscall_trapinfo): Define.
1000 (gdb_catch_this_syscall_p): Turn into...
1001 (linux_process_target::gdb_catch_this_syscall): ...this.
1002 (linux_process_target::low_supports_catch_syscall): Define.
1004 Update the callers below.
1006 (linux_process_target::wait_1)
1007 (linux_process_target::supports_catch_syscall)
1009 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
1010 <low_get_syscall_trapinfo>: Declare.
1011 (x86_target::low_supports_catch_syscall): Define.
1012 (x86_get_syscall_trapinfo): Turn into...
1013 (x86_target::low_get_syscall_trapinfo): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-aarch64-low.cc (class aarch64_target)
1016 <low_supports_catch_syscall>
1017 <low_get_syscall_trapinfo>: Declare.
1018 (aarch64_target::low_supports_catch_syscall): Define.
1019 (aarch64_get_syscall_trapinfo): Turn into...
1020 (aarch64_target::low_get_syscall_trapinfo): ...this.
1021 (the_low_target): Remove the op field.
1022 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
1023 <low_get_syscall_trapinfo>: Declare.
1024 (arm_target::low_supports_catch_syscall): Define.
1025 (arm_get_syscall_trapinfo): Turn into...
1026 (arm_target::low_get_syscall_trapinfo): ...this.
1027 (the_low_target): Remove the op field.
1028 * linux-ppc-low.cc (the_low_target): Remove the op field.
1029 * linux-s390-low.cc (the_low_target): Remove the op field.
1031 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033 Remove the 'supports_hardware_single_step' linux target op and
1034 override the process_stratum_target's op definition in
1035 linux_process_target to return true.
1037 * linux-low.h (struct linux_target_ops): Remove the op.
1038 (class linux_process_target) <finish_step_over>
1039 <maybe_hw_step>: Declare.
1040 * linux-low.cc (can_hardware_single_step): Remove.
1041 (maybe_hw_step): Turn into...
1042 (linux_process_target::maybe_hw_step): ...this.
1043 (finish_step_over): Turn into...
1044 (linux_process_target::finish_step_over): ...this.
1045 (linux_process_target::supports_hardware_single_step): Update
1048 Update the callers below.
1050 (linux_process_target::single_step)
1051 (linux_process_target::resume_one_lwp_throw)
1053 * linux-arm-low.cc (class arm_target)
1054 <supports_hardware_single_step>: Declare.
1055 (arm_supports_hardware_single_step): Turn into...
1056 (arm_target::supports_hardware_single_step): ...this.
1057 (the_low_target): Remove the op field.
1058 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
1059 (the_low_target): Remove the op field.
1060 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
1062 (the_low_target): Remove the op field.
1063 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
1064 (the_low_target): Remove the op field.
1065 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
1066 (the_low_target): Remove the op field.
1067 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
1068 (the_low_target): Remove the op field.
1069 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
1070 (the_low_target): Remove the op field.
1071 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
1072 (the_low_target): Remove the op field.
1073 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
1074 (the_low_target): Remove the op field.
1075 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
1076 (the_low_target): Remove the op field.
1077 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
1078 (the_low_target): Remove the op field.
1079 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
1080 (the_low_target): Remove the op field.
1081 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
1083 (the_low_target): Remove the op field.
1085 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1087 Turn the 'supports_range_stepping' linux target op into a method
1088 of linux_process_target.
1090 * linux-low.h (struct linux_target_ops): Remove the op.
1091 (class linux_process_target) <low_supports_range_stepping>: Declare.
1092 * linux-low.cc (linux_process_target::low_supports_range_stepping):
1094 (linux_process_target::supports_range_stepping): Update the call
1096 * linux-x86-low.cc (class x86_target)
1097 <low_supports_range_stepping>: Declare.
1098 (x86_supports_range_stepping): Turn into...
1099 (x86_target::low_supports_range_stepping): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-aarch64-low.cc (class aarch64_target)
1102 <low_supports_range_stepping>: Declare.
1103 (aarch64_supports_range_stepping): Turn into...
1104 (aarch64_target::low_supports_range_stepping): ...this.
1105 (the_low_target): Remove the op field.
1106 * linux-arm-low.cc (the_low_target): Remove the op field.
1107 * linux-bfin-low.cc (the_low_target): Ditto.
1108 * linux-crisv32-low.cc (the_low_target): Ditto.
1109 * linux-m32r-low.cc (the_low_target): Ditto.
1110 * linux-m68k-low.cc (the_low_target): Ditto.
1111 * linux-ppc-low.cc (the_low_target): Ditto.
1112 * linux-s390-low.cc (the_low_target): Ditto.
1113 * linux-sh-low.cc (the_low_target): Ditto.
1114 * linux-tic6x-low.cc (the_low_target): Ditto.
1115 * linux-tile-low.cc (the_low_target): Ditto.
1116 * linux-xtensa-low.cc (the_low_target): Ditto.
1118 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1120 Remove the 'emit_ops' linux target ops and let the concrete
1121 linux target define the op by overriding the declaration of
1122 process_stratum_target.
1124 * linux-low.h (struct linux_target_ops): Remove the op.
1125 (class linux_process_target) <emit_ops>: Remove.
1126 * linux-low.cc (linux_process_target::emit_ops): Remove.
1127 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
1128 (x86_emit_ops): Turn into...
1129 (x86_target::emit_ops): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
1132 (aarch64_emit_ops): Turn into...
1133 (aarch64_target::emit_ops): ...this.
1134 (the_low_target): Remove the op field.
1135 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
1136 (ppc_emit_ops): Turn into...
1137 (ppc_target::emit_ops): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
1140 (s390_emit_ops): Turn into...
1141 (s390_target::emit_ops): ...this.
1142 (the_low_target): Remove the op field.
1143 * linux-arm-low.cc (the_low_target): Remove the op field.
1144 * linux-bfin-low.cc (the_low_target): Ditto.
1145 * linux-crisv32-low.cc (the_low_target): Ditto.
1146 * linux-m32r-low.cc (the_low_target): Ditto.
1147 * linux-m68k-low.cc (the_low_target): Ditto.
1148 * linux-sh-low.cc (the_low_target): Ditto.
1149 * linux-tic6x-low.cc (the_low_target): Ditto.
1150 * linux-tile-low.cc (the_low_target): Ditto.
1151 * linux-xtensa-low.cc (the_low_target): Ditto.
1153 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1155 Remove the 'install_fast_tracepoint_jump_pad' and
1156 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1157 concrete linux target define the ops by overriding the declarations
1158 of process_stratum_target.
1160 * linux-low.h (struct linux_target_ops): Remove the ops.
1161 (class linux_process_target) <supports_fast_tracepoints>
1162 <install_fast_tracepoint_jump_pad>
1163 <get_min_fast_tracepoint_insn_len>: Remove.
1164 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1165 (linux_process_target::install_fast_tracepoint_jump_pad)
1166 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1167 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1168 <install_fast_tracepoint_jump_pad>
1169 <get_min_fast_tracepoint_insn_len>: Declare.
1170 (x86_target::supports_fast_tracepoints): Define.
1171 (x86_install_fast_tracepoint_jump_pad): Turn into...
1172 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1173 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1174 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1175 (the_low_target): Remove the op fields.
1176 * linux-aarch64-low.cc (class aarch64_target)
1177 <supports_fast_tracepoints>
1178 <install_fast_tracepoint_jump_pad>
1179 <get_min_fast_tracepoint_insn_len>: Declare.
1180 (aarch64_target::supports_fast_tracepoints): Define.
1181 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1182 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1183 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1184 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1185 (the_low_target): Remove the op fields.
1186 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1187 <install_fast_tracepoint_jump_pad>
1188 <get_min_fast_tracepoint_insn_len>: Declare.
1189 (ppc_target::supports_fast_tracepoints): Define.
1190 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1191 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1192 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1193 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1194 (the_low_target): Remove the op fields.
1195 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1196 <install_fast_tracepoint_jump_pad>
1197 <get_min_fast_tracepoint_insn_len>: Declare.
1198 (s390_target::supports_fast_tracepoints): Define.
1199 (s390_install_fast_tracepoint_jump_pad): Turn into...
1200 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1201 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1202 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1203 (the_low_target): Remove the op fields.
1204 * linux-arm-low.cc (the_low_target): Remove the op fields.
1205 * linux-bfin-low.cc (the_low_target): Ditto.
1206 * linux-crisv32-low.cc (the_low_target): Ditto.
1207 * linux-m32r-low.cc (the_low_target): Ditto.
1208 * linux-m68k-low.cc (the_low_target): Ditto.
1209 * linux-sh-low.cc (the_low_target): Ditto.
1210 * linux-tic6x-low.cc (the_low_target): Ditto.
1211 * linux-tile-low.cc (the_low_target): Ditto.
1212 * linux-xtensa-low.cc (the_low_target): Ditto.
1214 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1216 Turn the 'get_thread_area' linux target op into a method of
1217 process_stratum_target.
1219 * linux-low.h (struct linux_target_ops): Remove the op.
1220 (class linux_process_target) <stuck_in_jump_pad>
1221 <linux_fast_tracepoint_collecting>
1222 <low_get_thread_area>: Declare.
1223 * linux-low.cc (supports_fast_tracepoints): Remove.
1224 (linux_fast_tracepoint_collecting): Turn into...
1225 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1226 (linux_process_target::low_get_thread_area): Define.
1227 (stuck_in_jump_pad_callback): Turn into...
1228 (linux_process_target::stuck_in_jump_pad): ...this.
1230 Update the caller below.
1232 (linux_process_target::stabilize_threads)
1234 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1236 (x86_get_thread_area): Turn into...
1237 (x86_target::low_get_thread_area): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1241 (aarch64_get_thread_area): Turn into...
1242 (aarch64_target::low_get_thread_area): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1246 (ppc_get_thread_area): Turn into...
1247 (ppc_target::low_get_thread_area): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1251 (s390_get_thread_area): Turn into...
1252 (s390_target::low_get_thread_area): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-arm-low.cc (the_low_target): Remove the op field.
1255 * linux-bfin-low.cc (the_low_target): Ditto.
1256 * linux-crisv32-low.cc (the_low_target): Ditto.
1257 * linux-m32r-low.cc (the_low_target): Ditto.
1258 * linux-m68k-low.cc (the_low_target): Ditto.
1259 * linux-sh-low.cc (the_low_target): Ditto.
1260 * linux-tic6x-low.cc (the_low_target): Ditto.
1261 * linux-tile-low.cc (the_low_target): Ditto.
1262 * linux-xtensa-low.cc (the_low_target): Ditto.
1264 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1266 Remote the 'supports_tracepoints' linux target op and let the
1267 concrete linux target define it by overriding the op declared in
1268 process_stratum_target.
1270 * linux-low.h (struct linux_target_ops): Remove the op.
1271 (class linux_process_target) <supports_tracepoints>: Remove.
1272 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1273 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1275 (x86_supports_tracepoints): Turn into...
1276 (x86_target::supports_tracepoints): ...this.
1277 (the_low_target): Remove the op field.
1278 * linux-aarch64-low.cc (class aarch64_target)
1279 <supports_tracepoints>: Declare.
1280 (aarch64_supports_tracepoints): Turn into...
1281 (aarch64_target::supports_tracepoints): ...this.
1282 (the_low_target): Remove the op field.
1283 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1285 (ppc_supports_tracepoints): Turn into...
1286 (ppc_target::supports_tracepoints): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1290 (s390_supports_tracepoints): Turn into...
1291 (s390_target::supports_tracepoints): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-arm-low.cc (the_low_target): Remove the op field.
1294 * linux-bfin-low.cc (the_low_target): Ditto.
1295 * linux-crisv32-low.cc (the_low_target): Ditto.
1296 * linux-m32r-low.cc (the_low_target): Ditto.
1297 * linux-m68k-low.cc (the_low_target): Ditto.
1298 * linux-sh-low.cc (the_low_target): Ditto.
1299 * linux-tic6x-low.cc (the_low_target): Ditto.
1300 * linux-tile-low.cc (the_low_target): Ditto.
1301 * linux-xtensa-low.cc (the_low_target): Ditto.
1303 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305 Remove the 'process_qsupported' linux target op and let a concrete
1306 linux target define the op by overriding the op declaration in
1307 process_stratum_target.
1309 * linux-low.h (struct linux_target_ops): Remove the op.
1310 (class linux_process_target) <process_qsupported>: Remove.
1311 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1312 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1313 (x86_linux_process_qsupported): Turn into...
1314 (x86_target::process_qsupported): ...this.
1315 (the_low_target): Remove the op field.
1316 * linux-aarch64-low.cc (the_low_target): Remove the op
1318 * linux-arm-low.cc (the_low_target): Ditto.
1319 * linux-bfin-low.cc (the_low_target): Ditto.
1320 * linux-crisv32-low.cc (the_low_target): Ditto.
1321 * linux-m32r-low.cc (the_low_target): Ditto.
1322 * linux-m68k-low.cc (the_low_target): Ditto.
1323 * linux-ppc-low.cc (the_low_target): Ditto.
1324 * linux-s390-low.cc (the_low_target): Ditto.
1325 * linux-sh-low.cc (the_low_target): Ditto.
1326 * linux-tic6x-low.cc (the_low_target): Ditto.
1327 * linux-tile-low.cc (the_low_target): Ditto.
1328 * linux-xtensa-low.cc (the_low_target): Ditto.
1330 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1332 Turn the 'prepare_to_resume' linux target op into a method of
1333 linux_process_target.
1335 * linux-low.h (struct linux_target_ops): Remove the op.
1336 (class linux_process_target) <low_prepare_to_resume>: Declare.
1337 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1340 Update the callers below:
1342 (linux_process_target::resume_one_lwp_throw)
1343 (linux_process_target::low_prepare_to_resume)
1345 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1347 (x86_target::low_prepare_to_resume): Define.
1348 (the_low_target): Remove the op field.
1349 * linux-aarch64-low.cc (class aarch64_target)
1350 <low_prepare_to_resume>: Declare.
1351 (aarch64_target::low_prepare_to_resume): Define.
1352 (the_low_target): Remove the op field.
1353 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1355 (arm_prepare_to_resume): Turn into...
1356 (arm_target::low_prepare_to_resume): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1360 (mips_linux_prepare_to_resume): Turn into...
1361 (mips_target::low_prepare_to_resume): ...this.
1362 (the_low_target): Remove the op field.
1363 * linux-bfin-low.cc (the_low_target): Remove the op field.
1364 * linux-crisv32-low.cc (the_low_target): Ditto.
1365 * linux-m32r-low.cc (the_low_target): Ditto.
1366 * linux-m68k-low.cc (the_low_target): Ditto.
1367 * linux-ppc-low.cc (the_low_target): Ditto.
1368 * linux-s390-low.cc (the_low_target): Ditto.
1369 * linux-sh-low.cc (the_low_target): Ditto.
1370 * linux-tic6x-low.cc (the_low_target): Ditto.
1371 * linux-tile-low.cc (the_low_target): Ditto.
1372 * linux-xtensa-low.cc (the_low_target): Ditto.
1374 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1376 Turn the 'new_process', 'delete_process', 'new_thread',
1377 'delete_thread', and 'new_fork' linux target ops into methods
1378 of linux_process_target.
1380 * linux-low.h (struct linux_target_ops): Remove the ops.
1381 (class linux_process_target) <add_linux_process>
1386 <check_zombie_leaders>
1389 <low_delete_process>
1392 <low_new_fork>: Declare.
1393 * linux-low.cc (delete_lwp): Turn into...
1394 (linux_process_target::delete_lwp): ...this.
1395 (linux_process_target::low_delete_thread): Define.
1396 (linux_add_process): Turn into...
1397 (linux_process_target::add_linux_process): ...this.
1398 (linux_process_target::low_new_process): Define.
1399 (linux_process_target::low_delete_process): Define.
1400 (linux_process_target::low_new_fork): Define.
1401 (add_lwp): Turn into...
1402 (linux_process_target::add_lwp): ...this.
1403 (linux_process_target::low_new_thread): Define.
1404 (linux_attach_lwp): Turn into...
1405 (linux_process_target::attach_lwp): ...this.
1406 (linux_detach_one_lwp): Turn into...
1407 (linux_process_target::detach_one_lwp): ...this.
1408 (linux_detach_lwp_callback): Remove and inline...
1409 (linux_process_target::detach): ...here.
1410 (check_zombie_leaders): Turn into...
1411 (linux_process_target::check_zombie_leaders): ...this.
1412 (filter_exit_event): Turn into...
1413 (linux_process_target::filter_exit_event): ...this.
1415 Update the callers below.
1417 (linux_process_target::handle_extended_wait)
1418 (linux_process_target::create_inferior)
1419 (attach_proc_task_lwp_callback)
1420 (linux_process_target::attach)
1421 (linux_process_target::detach)
1422 (linux_process_target::mourn)
1423 * thread-db.cc (attach_thread)
1425 * linux-x86-low.cc (class x86_target) <low_new_process>
1426 <low_delete_process>
1429 <low_new_fork>: Declare.
1430 (x86_linux_new_process): Turn into...
1431 (x86_target::low_new_process): ...this.
1432 (x86_linux_delete_process): Turn into...
1433 (x86_target::low_delete_process): ...this.
1434 (x86_target::low_new_thread): Define.
1435 (x86_target::low_delete_thread): Define.
1436 (x86_linux_new_fork): Turn into...
1437 (x86_target::low_new_fork): ...this.
1438 (the_low_target): Remove the op fields.
1439 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1440 <low_delete_process>
1443 <low_new_fork>: Declare.
1444 (aarch64_linux_new_process): Turn into...
1445 (aarch64_target::low_new_process): ...this.
1446 (aarch64_linux_delete_process): Turn into...
1447 (aarch64_target::low_delete_process): ...this.
1448 (aarch64_target::low_new_thread): Define.
1449 (aarch64_target::low_delete_thread): Define.
1450 (aarch64_linux_new_fork): Turn into...
1451 (aarch64_target::low_new_fork): ...this.
1452 (the_low_target): Remove the op fields.
1453 * linux-arm-low.cc (class arm_target) <low_new_process>
1454 <low_delete_process>
1457 <low_new_fork>: Declare.
1458 (arm_new_process): Turn into...
1459 (arm_target::low_new_process): ...this.
1460 (arm_delete_process): Turn into...
1461 (arm_target::low_delete_process): ...this.
1462 (arm_new_thread): Turn into...
1463 (arm_target::low_new_thread): ...this.
1464 (arm_delete_thread): Turn into...
1465 (arm_target::low_delete_thread): ...this.
1466 (arm_new_fork): Turn into...
1467 (arm_target::low_new_fork): ...this.
1468 (the_low_target): Remove the op fields.
1469 * linux-mips-low.cc (class mips_target) <low_new_process>
1470 <low_delete_process>
1473 <low_new_fork>: Declare.
1474 (mips_linux_new_process): Turn into...
1475 (mips_target::low_new_process): ...this.
1476 (mips_linux_delete_process): Turn into...
1477 (mips_target::low_delete_process): ...this.
1478 (mips_linux_new_thread): Turn into...
1479 (mips_target::low_new_thread): ...this.
1480 (mips_linux_delete_thread): Turn into...
1481 (mips_target::low_delete_thread): ...this.
1482 (mips_linux_new_fork): Turn into...
1483 (mips_target::low_new_fork): ...this.
1484 (the_low_target): Remove the op fields.
1485 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1486 * linux-crisv32-low.cc (the_low_target): Ditto.
1487 * linux-m32r-low.cc (the_low_target): Ditto.
1488 * linux-m68k-low.cc (the_low_target): Ditto.
1489 * linux-ppc-low.cc (the_low_target): Ditto.
1490 * linux-s390-low.cc (the_low_target): Ditto.
1491 * linux-sh-low.cc (the_low_target): Ditto.
1492 * linux-tic6x-low.cc (the_low_target): Ditto.
1493 * linux-tile-low.cc (the_low_target): Ditto.
1494 * linux-xtensa-low.cc (the_low_target): Ditto.
1496 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1498 Turn the 'siginfo_fixup' linux target op into a method of
1499 linux_process_target.
1501 * linux-low.h (struct linux_target_ops): Remove the op.
1502 (class linux_process_target) <siginfo_fixup>
1503 <low_siginfo_fixup>: Declare.
1504 * linux-low.cc (siginfo_fixup): Turn into...
1505 (linux_process_target::siginfo_fixup): ...this.
1506 (linux_process_target::low_siginfo_fixup): Define.
1507 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1508 (x86_siginfo_fixup): Turn into...
1509 (x86_target::low_siginfo_fixup): ...this.
1510 (the_low_target): Remove the op field.
1511 * linux-aarch64-low.cc (class aarch64_target):
1512 <low_siginfo_fixup>: Declare.
1513 (aarch64_linux_siginfo_fixup): Turn into...
1514 (aarch64_target::low_siginfo_fixup): ...this.
1515 (the_low_target): Remove the op field.
1516 * linux-arm-low.cc (the_low_target): Remove the op field.
1517 * linux-bfin-low.cc (the_low_target): Ditto.
1518 * linux-crisv32-low.cc (the_low_target): Ditto.
1519 * linux-m32r-low.cc (the_low_target): Ditto.
1520 * linux-m68k-low.cc (the_low_target): Ditto.
1521 * linux-mips-low.cc (the_low_target): Ditto.
1522 * linux-ppc-low.cc (the_low_target): Ditto.
1523 * linux-s390-low.cc (the_low_target): Ditto.
1524 * linux-sh-low.cc (the_low_target): Ditto.
1525 * linux-tic6x-low.cc (the_low_target): Ditto.
1526 * linux-tile-low.cc (the_low_target): Ditto.
1527 * linux-xtensa-low.cc (the_low_target): Ditto.
1529 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1531 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1532 linux target ops into methods of linux_process_target.
1534 * linux-low.h (struct linux_target_ops): Remove the ops.
1535 (class linux_process_target) <low_collect_ptrace_register>
1536 <low_store_ptrace_register>: Declare.
1537 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1538 (linux_process_target::low_supply_ptrace_register): Define.
1540 Update the callers below.
1542 (linux_process_target::fetch_register)
1543 (linux_process_target::store_register)
1545 * linux-x86-low.cc (the_low_target): Remove the op fields.
1546 * linux-aarch64-low.cc (the_low_target): Ditto.
1547 * linux-arm-low.cc (the_low_target): Ditto.
1548 * linux-bfin-low.cc (the_low_target): Ditto.
1549 * linux-crisv32-low.cc (the_low_target): Ditto.
1550 * linux-m32r-low.cc (the_low_target): Ditto.
1551 * linux-m68k-low.cc (the_low_target): Ditto.
1552 * linux-sh-low.cc (the_low_target): Ditto.
1553 * linux-sparc-low.cc (the_low_target): Ditto.
1554 * linux-tic6x-low.cc (the_low_target): Ditto.
1555 * linux-tile-low.cc (the_low_target): Ditto.
1556 * linux-xtensa-low.cc (the_low_target): Ditto.
1557 * linux-mips-low.cc (class mips_target)
1558 <low_collect_ptrace_register>
1559 <low_supply_ptrace_register>: Declare.
1560 (mips_collect_ptrace_register): Turn into ...
1561 (mips_target::low_collect_ptrace_register): ...this.
1562 (mips_supply_ptrace_register): Turn into...
1563 (mips_target::low_supply_ptrace_register): ...this.
1564 (the_low_target): Remove the op fields.
1565 * linux-ppc-low.cc (class ppc_target)
1566 <low_collect_ptrace_register>
1567 <low_supply_ptrace_register>: Declare.
1568 (ppc_collect_ptrace_register): Turn into ...
1569 (ppc_target::low_collect_ptrace_register): ...this.
1570 (ppc_supply_ptrace_register): Turn into ...
1571 (ppc_target::low_supply_ptrace_register): ...this.
1572 (ppc_fill_gregset): Update for the calls to
1573 low_collect_ptrace_register.
1574 (the_low_target): Remove the op fields.
1575 * linux-s390-low.cc (class s390_target)
1576 <low_collect_ptrace_register>
1577 <low_supply_ptrace_register>: Declare.
1578 (s390_collect_ptrace_register): Turn into ...
1579 (s390_target::low_collect_ptrace_register): ...this.
1580 (s390_supply_ptrace_register): Turn into ...
1581 (s390_target::low_supply_ptrace_register): ...this.
1582 (s390_fill_gregset): Update for the calls to
1583 low_collect_ptrace_register.
1584 (the_low_target): Remove the op fields.
1586 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1588 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1589 target ops into methods of linux_process_target.
1591 * linux-low.h (struct linux_target_ops): Remove the ops.
1592 (class linux_process_target) <check_stopped_by_watchpoint>
1593 <low_stopped_by_watchpoint>
1594 <low_stopped_data_address>: Declare.
1595 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1596 (linux_process_target::check_stopped_by_watchpoint): ...this.
1597 (linux_process_target::low_stopped_by_watchpoint): Define.
1598 (linux_process_target::low_stopped_data_address): Define.
1599 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1600 <low_stopped_data_address>: Declare.
1601 (x86_stopped_by_watchpoint): Turn into...
1602 (x86_target::low_stopped_by_watchpoint): ...this.
1603 (x86_stopped_data_address): Turn into...
1604 (x86_target::low_stopped_data_address): ...this.
1605 (the_low_target): Remove the op fields.
1606 * linux-aarch64-low.cc (class aarch64_target)
1607 <low_stopped_by_watchpoint>
1608 <low_stopped_data_address>: Declare.
1609 (aarch64_stopped_by_watchpoint): Turn into...
1610 (aarch64_target::low_stopped_by_watchpoint): ...this.
1611 (aarch64_stopped_data_address): Turn into...
1612 (aarch64_target::low_stopped_data_address): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1615 <low_stopped_data_address>: Declare.
1616 (arm_stopped_by_watchpoint): Turn into...
1617 (arm_target::low_stopped_by_watchpoint): ...this.
1618 (arm_stopped_data_address): Turn into...
1619 (arm_target::low_stopped_data_address): ...this.
1620 (the_low_target): Remove the op fields.
1621 * linux-crisv32-low.cc (class crisv32_target)
1622 <low_stopped_by_watchpoint>
1623 <low_stopped_data_address>: Declare.
1624 (cris_stopped_by_watchpoint): Turn into...
1625 (crisv32_target::low_stopped_by_watchpoint): ...this.
1626 (cris_stopped_data_address): Turn into...
1627 (crisv32_target::low_stopped_data_address): ...this.
1628 (the_low_target): Remove the op fields.
1629 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1630 <low_stopped_data_address>: Declare.
1631 (mips_stopped_by_watchpoint): Turn into...
1632 (mips_target::low_stopped_by_watchpoint): ...this.
1633 (mips_stopped_data_address): Turn into...
1634 (mips_target::low_stopped_data_address): ...this.
1635 (the_low_target): Remove the op fields.
1636 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1637 * linux-m32r-low.cc (the_low_target): Ditto.
1638 * linux-m68k-low.cc (the_low_target): Ditto.
1639 * linux-ppc-low.cc (the_low_target): Ditto.
1640 * linux-s390-low.cc (the_low_target): Ditto.
1641 * linux-sh-low.cc (the_low_target): Ditto.
1642 * linux-sparc-low.cc (the_low_target): Ditto.
1643 * linux-tic6x-low.cc (the_low_target): Ditto.
1644 * linux-tile-low.cc (the_low_target): Ditto.
1645 * linux-xtensa-low.cc (the_low_target): Ditto.
1647 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1649 Turn the 'insert_point' and 'remove_point' linux target ops into
1650 methods of linux_process_target.
1652 * linux-low.h (struct linux_target_ops): Remove the ops.
1653 (class linux_process_target) <low_insert_point>
1654 <low_remove_point>: Declare.
1655 * linux-low.cc (linux_process_target::low_insert_point)
1656 (linux_process_target::low_remove_point): Define.
1657 (linux_process_target::insert_point)
1658 (linux_process_target::remove_point): Update for calls to
1659 low_insert_point and low_remove_point.
1660 * linux-x86-low.cc (class x86_target) <low_insert_point>
1661 <low_remove_point>: Declare.
1662 (x86_insert_point): Turn into...
1663 (x86_target::low_insert_point): ...this.
1664 (x86_remove_point): Turn into...
1665 (x86_target::low_remove_point): ...this.
1666 (the_low_target): Remove the op fields.
1667 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1668 <low_remove_point>: Declare.
1669 (aarch64_insert_point): Turn into...
1670 (aarch64_target::low_insert_point): ...this.
1671 (aarch64_remove_point): Turn into...
1672 (aarch64_target::low_remove_point): ...this.
1673 (the_low_target): Remove the op fields.
1674 * linux-arm-low.cc (class arm_target) <low_insert_point>
1675 <low_remove_point>: Declare.
1676 (arm_insert_point): Turn into...
1677 (arm_target::low_insert_point): ...this.
1678 (arm_remove_point): Turn into...
1679 (arm_target::low_remove_point): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1682 <low_remove_point>: Declare.
1683 (crisv32_insert_point): Turn into...
1684 (crisv32_target::low_insert_point): ...this.
1685 (crisv32_remove_point): Turn into...
1686 (crisv32_target::low_remove_point): ...this.
1687 (the_low_target): Remove the op fields.
1688 * linux-mips-low.cc (class mips_target) <low_insert_point>
1689 <low_remove_point>: Declare.
1690 (mips_insert_point): Turn into...
1691 (mips_target::low_insert_point): ...this.
1692 (mips_remove_point): Turn into...
1693 (mips_target::low_remove_point): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1696 <low_remove_point>: Declare.
1697 (ppc_insert_point): Turn into...
1698 (ppc_target::low_insert_point): ...this.
1699 (ppc_remove_point): Turn into...
1700 (ppc_target::low_remove_point): ...this.
1701 (the_low_target): Remove the op fields.
1702 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1703 * linux-m32r-low.cc (the_low_target): Ditto.
1704 * linux-m68k-low.cc (the_low_target): Ditto.
1705 * linux-s390-low.cc (the_low_target): Ditto.
1706 * linux-sh-low.cc (the_low_target): Ditto.
1707 * linux-sparc-low.cc (the_low_target): Ditto.
1708 * linux-tic6x-low.cc (the_low_target): Ditto.
1709 * linux-tile-low.cc (the_low_target): Ditto.
1710 * linux-xtensa-low.cc (the_low_target): Ditto.
1712 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1714 Remove the 'supports_z_point_type' linux target op and let the
1715 concrete linux target define it by overriding the op declared in
1716 process_stratum_target.
1718 * linux-low.cc (linux_process_target::supports_z_point_type):
1720 * linux-low.h (struct linux_target_ops): Remove the op.
1721 (class linux_process_target) <supports_z_point_type>: Remove.
1722 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1724 (x86_supports_z_point_type): Turn into...
1725 (x86_target::supports_z_point_type): ...this.
1726 (the_low_target): Remove the op field.
1727 * linux-aarch64-low.cc (class aarch64_target)
1728 <supports_z_point_type>: Declare.
1729 (aarch64_supports_z_point_type): Turn into...
1730 (aarch64_target::supports_z_point_type): ...this.
1731 (the_low_target): Remove the op field.
1732 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1734 (arm_supports_z_point_type): Turn into...
1735 (arm_target::supports_z_point_type): ...this.
1736 (the_low_target): Remove the op field.
1737 * linux-crisv32-low.cc (class crisv32_target)
1738 <supports_z_point_type>: Declare.
1739 (cris_supports_z_point_type): Turn into...
1740 (crisv32_target::supports_z_point_type): ...this.
1741 (the_low_target): Remove the op field.
1742 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1744 (mips_supports_z_point_type): Turn into...
1745 (mips_target::supports_z_point_type): ...this.
1746 (the_low_target): Remove the op field.
1747 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1749 (ppc_supports_z_point_type): Turn into...
1750 (ppc_target::supports_z_point_type): ...this.
1751 (the_low_target): Remove the op field.
1752 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1754 (s390_supports_z_point_type): Turn into...
1755 (s390_target::supports_z_point_type): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-bfin-low.cc (the_low_target): Remove the op field.
1758 * linux-m32r-low.cc (the_low_target): Ditto.
1759 * linux-m68k-low.cc (the_low_target): Ditto.
1760 * linux-sh-low.cc (the_low_target): Ditto.
1761 * linux-sparc-low.cc (the_low_target): Ditto.
1762 * linux-tic6x-low.cc (the_low_target): Ditto.
1763 * linux-tile-low.cc (the_low_target): Ditto.
1764 * linux-xtensa-low.cc (the_low_target): Ditto.
1766 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1768 Turn the 'breakpoint_at' linux target op into a method of
1769 linux_process_target.
1771 * linux-low.h (struct linux_target_ops): Remove the op.
1772 (class linux_process_target) <low_breakpoint_at>: Declare.
1774 Update the callers below:
1776 * linux-low.cc (linux_process_target::save_stop_reason)
1777 (linux_process_target::thread_still_has_status_pending)
1778 (linux_process_target::wait_1)
1780 * linux-x86-low.cc (class x86_target)
1781 <low_breakpoint_at>: Declare.
1782 (x86_breakpoint_at): Turn into...
1783 (x86_target::low_breakpoint_at): ...this.
1784 (the_low_target): Remove the op field.
1785 * linux-aarch64-low.cc (class aarch64_target)
1786 <low_breakpoint_at>: Declare.
1787 (aarch64_breakpoint_at): Turn into...
1788 (aarch64_target::low_breakpoint_at): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-arm-low.cc (class arm_target)
1791 <low_breakpoint_at>: Declare.
1792 (arm_target::low_breakpoint_at): Define.
1793 (the_low_target): Remove the op field.
1794 * linux-bfin-low.cc (class bfin_target)
1795 <low_breakpoint_at>: Declare.
1796 (bfin_breakpoint_at): Turn into...
1797 (bfin_target::low_breakpoint_at): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-cris-low.cc (class cris_target)
1800 <low_breakpoint_at>: Declare.
1801 (cris_breakpoint_at): Turn into...
1802 (cris_target::low_breakpoint_at): ...this.
1803 (the_low_target): Remove the op field.
1804 * linux-crisv32-low.cc (class crisv32_target)
1805 <low_breakpoint_at>: Declare.
1806 (crisv32_breakpoint_at): Turn into...
1807 (crisv32_target::low_breakpoint_at): ...this.
1808 (the_low_target): Remove the op field.
1809 * linux-ia64-low.cc (class ia64_target)
1810 <low_breakpoint_at>: Declare.
1811 (ia64_target::low_breakpoint_at): Define.
1812 * linux-m32r-low.cc (class m32r_target)
1813 <low_breakpoint_at>: Declare.
1814 (m32r_breakpoint_at): Turn into...
1815 (m32r_target::low_breakpoint_at): ...this.
1816 (the_low_target): Remove the op field.
1817 * linux-m68k-low.cc (class m68k_target)
1818 <low_breakpoint_at>: Declare.
1819 (m68k_breakpoint_at): Turn into...
1820 (m68k_target::low_breakpoint_at): ...this.
1821 (the_low_target): Remove the op field.
1822 * linux-mips-low.cc (class mips_target)
1823 <low_breakpoint_at>: Declare.
1824 (mips_breakpoint_at): Turn into...
1825 (mips_target::low_breakpoint_at): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-nios2-low.cc (class nios2_target)
1828 <low_breakpoint_at>: Declare.
1829 (nios2_breakpoint_at): Turn into...
1830 (nios2_target::low_breakpoint_at): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-ppc-low.cc (class ppc_target)
1833 <low_breakpoint_at>: Declare.
1834 (ppc_breakpoint_at): Turn into...
1835 (ppc_target::low_breakpoint_at): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-riscv-low.cc (class riscv_target)
1838 <low_breakpoint_at>: Declare.
1839 (riscv_breakpoint_at): Turn into...
1840 (riscv_target::low_breakpoint_at): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-s390-low.cc (class s390_target)
1843 <low_breakpoint_at>: Declare.
1844 (s390_breakpoint_at): Turn into...
1845 (s390_target::low_breakpoint_at): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-sh-low.cc (class sh_target)
1848 <low_breakpoint_at>: Declare.
1849 (sh_breakpoint_at): Turn into...
1850 (sh_target::low_breakpoint_at): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-sparc-low.cc (class sparc_target)
1853 <low_breakpoint_at>: Declare.
1854 (sparc_breakpoint_at): Turn into...
1855 (sparc_target::low_breakpoint_at): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-tic6x-low.cc (class tic6x_target)
1858 <low_breakpoint_at>: Declare.
1859 (tic6x_breakpoint_at): Turn into...
1860 (tic6x_target::low_breakpoint_at): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-tile-low.cc (class tile_target)
1863 <low_breakpoint_at>: Declare.
1864 (tile_breakpoint_at): Turn into...
1865 (tile_target::low_breakpoint_at): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-xtensa-low.cc (class xtensa_target)
1868 <low_breakpoint_at>: Declare.
1869 (xtensa_breakpoint_at): Turn into...
1870 (xtensa_target::low_breakpoint_at): ...this.
1871 (the_low_target): Remove the op field.
1873 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1875 Turn the 'decr_pc_after_break' linux_target_ops field into
1876 a method of linux_process_target.
1878 * linux-low.h (struct linux_target_ops)
1879 <decr_pc_after_break>: Remove.
1880 (class linux_process_target) <low_decr_pc_after_break>: New method
1882 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1883 New method implementation.
1885 Update the users below.
1887 (linux_process_target::save_stop_reason)
1888 (linux_process_target::wait_1)
1889 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1891 (x86_target::low_decr_pc_after_break): New method implementation.
1892 (the_low_target): Remove the field.
1893 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1895 (bfin_target::low_decr_pc_after_break): New method implementation.
1896 (the_low_target): Remove the field.
1897 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1899 (m68k_target::low_decr_pc_after_break): New method implementation.
1900 (the_low_target): Remove the field.
1901 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1903 (s390_target::low_decr_pc_after_break): New method implementation.
1904 (the_low_target): Remove the field.
1905 * linux-aarch64-low.cc (the_low_target): Remove the field.
1906 * linux-arm-low.cc (the_low_target): Remove the field.
1907 * linux-cris-low.cc (the_low_target): Remove the field.
1908 * linux-crisv32-low.cc (the_low_target): Remove the field.
1909 * linux-m32r-low.cc (the_low_target): Remove the field.
1910 * linux-mips-low.cc (the_low_target): Remove the field.
1911 * linux-nios2-low.cc (the_low_target): Remove the field.
1912 * linux-ppc-low.cc (the_low_target): Remove the field.
1913 * linux-riscv-low.cc (the_low_target): Remove the field.
1914 * linux-sh-low.cc (the_low_target): Remove the field.
1915 * linux-sparc-low.cc (the_low_target): Remove the field.
1916 * linux-tic6x-low.cc (the_low_target): Remove the field.
1917 * linux-tile-low.cc (the_low_target): Remove the field.
1918 * linux-xtensa-low.cc (the_low_target): Remove the field.
1920 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1922 Remove the 'supports_software_single_step' linux target op and let
1923 the concrete linux target define it by overriding the op in
1924 process_stratum_target.
1925 Turn the 'get_next_pcs' linux target op into a method of
1926 linux_process_target.
1928 * linux-low.h (struct linux_target_ops): Remove the ops.
1929 (class linux_process_target) <supports_software_single_step>:
1931 <low_get_next_pcs>: Declare.
1932 * linux-low.cc (can_software_single_step): Remove.
1933 (linux_process_target::low_get_next_pcs): Define.
1934 (linux_process_target::supports_software_single_step): Remove.
1936 Update the callers below.
1938 (linux_process_target::handle_extended_wait)
1939 (linux_process_target::wait_1)
1940 (linux_process_target::install_software_single_step_breakpoints)
1941 (linux_process_target::single_step)
1942 (linux_process_target::thread_needs_step_over)
1943 (linux_process_target::proceed_one_lwp)
1944 (linux_process_target::supports_range_stepping)
1946 * linux-x86-low.cc (the_low_target): Remove the op field.
1947 * linux-aarch64-low.cc (the_low_target): Ditto.
1948 * linux-bfin-low.cc (the_low_target): Ditto.
1949 * linux-cris-low.cc (the_low_target): Ditto.
1950 * linux-crisv32-low.cc (the_low_target): Ditto.
1951 * linux-m32r-low.cc (the_low_target): Ditto.
1952 * linux-m68k-low.cc (the_low_target): Ditto.
1953 * linux-mips-low.cc (the_low_target): Ditto.
1954 * linux-nios2-low.cc (the_low_target): Ditto.
1955 * linux-ppc-low.cc (the_low_target): Ditto.
1956 * linux-riscv-low.cc (the_low_target): Ditto.
1957 * linux-s390-low.cc (the_low_target): Ditto.
1958 * linux-sh-low.cc (the_low_target): Ditto.
1959 * linux-sparc-low.cc (the_low_target): Ditto.
1960 * linux-tic6x-low.cc (the_low_target): Ditto.
1961 * linux-tile-low.cc (the_low_target): Ditto.
1962 * linux-xtensa-low.cc (the_low_target): Ditto.
1963 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1964 <supports_software_single_step>: Declare.
1965 (arm_target::supports_software_single_step): Define.
1966 (arm_gdbserver_get_next_pcs): Turn into...
1967 (arm_target::low_get_next_pcs): ...this.
1968 (the_low_target): Remove the op field.
1970 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1972 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1973 the concrete linux target define it by overriding the op
1974 in process_stratum_target.
1976 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1978 * linux-low.h (struct linux_target_ops): Remove the op.
1979 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1980 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1982 (x86_sw_breakpoint_from_kind): Turn into...
1983 (x86_target::sw_breakpoint_from_kind): ...this.
1984 (the_low_target): Remove the op field.
1985 * linux-aarch64-low.cc (class aarch64_target)
1986 <sw_breakpoint_from_kind>: Declare.
1987 (aarch64_sw_breakpoint_from_kind): Turn into...
1988 (aarch64_target::sw_breakpoint_from_kind): ...this.
1989 (the_low_target): Remove the op field.
1990 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1992 (arm_target::sw_breakpoint_from_kind): Define.
1993 (the_low_target): Remove the op field.
1994 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1996 (bfin_sw_breakpoint_from_kind): Turn into...
1997 (bfin_target::sw_breakpoint_from_kind): ...this.
1998 (the_low_target): Remove the op field.
1999 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
2001 (cris_sw_breakpoint_from_kind): Turn into...
2002 (cris_target::sw_breakpoint_from_kind): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-crisv32-low.cc (class crisv32_target)
2005 <sw_breakpoint_from_kind>: Declare.
2006 (cris_sw_breakpoint_from_kind): Turn into...
2007 (crisv32_target::sw_breakpoint_from_kind): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
2011 (ia64_target::sw_breakpoint_from_kind): Define.
2012 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
2014 (m32r_sw_breakpoint_from_kind): Turn into...
2015 (m32r_target::sw_breakpoint_from_kind): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
2019 (m68k_sw_breakpoint_from_kind): Turn into...
2020 (m68k_target::sw_breakpoint_from_kind): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
2024 (mips_sw_breakpoint_from_kind): Turn into...
2025 (mips_target::sw_breakpoint_from_kind): ...this.
2026 (the_low_target): Remove the op field.
2027 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
2029 (nios2_sw_breakpoint_from_kind): Turn into...
2030 (nios2_target::sw_breakpoint_from_kind): ...this.
2031 (the_low_target): Remove the op field.
2032 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
2034 (ppc_sw_breakpoint_from_kind): Turn into...
2035 (ppc_target::sw_breakpoint_from_kind): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
2039 (riscv_sw_breakpoint_from_kind): Turn into...
2040 (riscv_target::sw_breakpoint_from_kind): ...this.
2041 (the_low_target): Remove the op field.
2042 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
2044 (s390_sw_breakpoint_from_kind): Turn into...
2045 (s390_target::sw_breakpoint_from_kind): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
2049 (sh_sw_breakpoint_from_kind): Turn into...
2050 (sh_target::sw_breakpoint_from_kind): ...this.
2051 (the_low_target): Remove the op field.
2052 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
2054 (sparc_sw_breakpoint_from_kind): Turn into...
2055 (sparc_target::sw_breakpoint_from_kind): ...this.
2056 (the_low_target): Remove the op field.
2057 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
2059 (tic6x_sw_breakpoint_from_kind): Turn into...
2060 (tic6x_target::sw_breakpoint_from_kind): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
2064 (tile_sw_breakpoint_from_kind): Turn into...
2065 (tile_target::sw_breakpoint_from_kind): ...this.
2066 (the_low_target): Remove the op field.
2067 * linux-xtensa-low.cc (class xtensa_target)
2068 <sw_breakpoint_from_kind>: Declare.
2069 (xtensa_sw_breakpoint_from_kind): Turn into...
2070 (xtensa_target::sw_breakpoint_from_kind): ...this.
2071 (the_low_target): Remove the op field.
2073 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2075 Remove the 'breakpoint_kind_from_pc' and
2076 'breakpoint_kind_from_current_state' linux target ops, and let the
2077 concrete linux target define them by overriding the ops of
2078 process_stratum_target.
2080 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
2082 (linux_process_target::breakpoint_kind_from_current_state): Remove.
2083 * linux-low.h (struct linux_target_ops): Remove ops.
2084 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
2085 <breakpoint_kind_from_current_state>: Remove.
2086 * linux-x86-low.cc (the_low_target): Remove the op fields.
2087 * linux-bfin-low.cc (the_low_target): Ditto.
2088 * linux-cris-low.cc (the_low_target): Ditto.
2089 * linux-crisv32-low.cc (the_low_target): Ditto.
2090 * linux-m32r-low.cc (the_low_target): Ditto.
2091 * linux-m68k-low.cc (the_low_target): Ditto.
2092 * linux-mips-low.cc (the_low_target): Ditto.
2093 * linux-nios2-low.cc (the_low_target): Ditto.
2094 * linux-ppc-low.cc (the_low_target): Ditto.
2095 * linux-s390-low.cc (the_low_target): Ditto.
2096 * linux-sh-low.cc (the_low_target): Ditto.
2097 * linux-sparc-low.cc (the_low_target): Ditto.
2098 * linux-tic6x-low.cc (the_low_target): Ditto.
2099 * linux-tile-low.cc (the_low_target): Ditto.
2100 * linux-xtensa-low.cc (the_low_target): Ditto.
2101 * linux-aarch64-low.cc (class aarch64_target)
2102 <breakpoint_kind_from_pc>
2103 <breakpoint_kind_from_current_state>: Declare.
2104 (aarch64_breakpoint_kind_from_pc): Turn into...
2105 (aarch64_target::breakpoint_kind_from_pc): ...this.
2106 (aarch64_breakpoint_kind_from_current_state): Turn into...
2107 (aarch64_target::breakpoint_kind_from_current_state): ...this.
2108 (the_low_target): Remove the op fields.
2109 * linux-arm-low.cc (class arm_target):
2110 <breakpoint_kind_from_pc>
2111 <breakpoint_kind_from_current_state>: Declare.
2112 (arm_target::breakpoint_kind_from_pc): Define.
2113 (arm_target::breakpoint_kind_from_current_state): Define.
2114 (the_low_target): Remove the op fields.
2115 * linux-riscv-low.cc (class riscv_target):
2116 <breakpoint_kind_from_pc>: Declare.
2117 (riscv_breakpoint_kind_from_pc): Turn into...
2118 (riscv_target::breakpoint_kind_from_pc): ...this.
2119 (the_low_target): Remove the op fields.
2121 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2123 Turn the 'get_pc' and 'set_pc' linux target ops into methods
2124 of linux_process_target.
2126 * linux-low.h (struct linux_target_ops): Remove the ops.
2127 (class linux_process_target) <low_supports_breakpoints>
2129 <low_set_pc>: Declare.
2130 * linux-low.cc (supports_breakpoints): Turn into...
2131 (linux_process_target::low_supports_breakpoints): ...this.
2132 (linux_process_target::low_get_pc): Define.
2133 (linux_process_target::low_set_pc): Define.
2135 Update the callers below.
2137 (linux_process_target::get_pc)
2138 (linux_process_target::save_stop_reason)
2139 (linux_process_target::maybe_move_out_of_jump_pad)
2140 (linux_process_target::wait_1)
2141 (linux_process_target::resume_one_lwp_throw)
2142 (linux_process_target::resume)
2143 (linux_process_target::proceed_all_lwps)
2144 (linux_process_target::read_pc)
2145 (linux_process_target::write_pc)
2147 * linux-x86-low.cc (class linux_process_target)
2148 <low_supports_breakpoints>
2150 <low_set_pc>: Declare.
2151 (x86_target::low_supports_breakpoints): Define.
2152 (x86_get_pc): Turn into...
2153 (x86_target::low_get_pc): ...this.
2154 (x86_set_pc): Turn into...
2155 (x86_target::low_set_pc): ...this.
2156 (the_low_target): Remove the op fields.
2157 * linux-arm-low.cc (class arm_target)
2158 <low_supports_breakpoints>
2160 <low_set_pc>: Declare.
2161 (arm_target::low_supports_breakpoints)
2162 (arm_target::low_get_pc)
2163 (arm_target::low_set_pc): Define.
2164 (the_low_target): Remove the op fields.
2165 * linux-bfin-low.cc (class bfin_target)
2166 <low_supports_breakpoints>
2168 <low_set_pc>: Declare.
2169 (bfin_target::low_supports_breakpoints)
2170 (bfin_target::low_get_pc)
2171 (bfin_target::low_set_pc): Define.
2172 (the_low_target): Remove the op fields.
2173 * linux-cris-low.cc (class cris_target)
2174 <low_supports_breakpoints>
2176 <low_set_pc>: Declare.
2177 (cris_target::low_supports_breakpoints)
2178 (cris_target::low_get_pc)
2179 (cris_target::low_set_pc): Define.
2180 (the_low_target): Remove the op fields.
2181 * linux-crisv32-low.cc (class crisv32_target)
2182 <low_supports_breakpoints>
2184 <low_set_pc>: Declare.
2185 (crisv32_target::low_supports_breakpoints)
2186 (crisv32_target::low_get_pc)
2187 (crisv32_target::low_set_pc): Define.
2188 (the_low_target): Remove the op fields.
2189 * linux-m32r-low.cc (class m32r_target)
2190 <low_supports_breakpoints>
2192 <low_set_pc>: Declare.
2193 (m32r_target::low_supports_breakpoints)
2194 (m32r_target::low_get_pc)
2195 (m32r_target::low_set_pc): Define.
2196 (the_low_target): Remove the op fields.
2197 * linux-m68k-low.cc (class m68k_target)
2198 <low_supports_breakpoints>
2200 <low_set_pc>: Declare.
2201 (m68k_target::low_supports_breakpoints)
2202 (m68k_target::low_get_pc)
2203 (m68k_target::low_set_pc): Define.
2204 (the_low_target): Remove the op fields.
2205 * linux-nios2-low.cc (class nios2_target)
2206 <low_supports_breakpoints>
2208 <low_set_pc>: Declare.
2209 (nios2_target::low_supports_breakpoints)
2210 (nios2_target::low_get_pc)
2211 (nios2_target::low_set_pc): Define.
2212 (the_low_target): Remove the op fields.
2213 * linux-sh-low.cc (class sh_target)
2214 <low_supports_breakpoints>
2216 <low_set_pc>: Declare.
2217 (sh_target::low_supports_breakpoints)
2218 (sh_target::low_get_pc)
2219 (sh_target::low_set_pc): Define.
2220 (the_low_target): Remove the op fields.
2221 * linux-xtensa-low.cc (class xtensa_target)
2222 <low_supports_breakpoints>
2224 <low_set_pc>: Declare.
2225 (xtensa_target::low_supports_breakpoints)
2226 (xtensa_target::low_get_pc)
2227 (xtensa_target::low_set_pc): Define.
2228 (the_low_target): Remove the op fields.
2229 * linux-sparc-low.cc (class sparc_target)
2230 <low_supports_breakpoints>
2231 <low_get_pc>: Declare.
2232 (sparc_target::low_supports_breakpoints)
2233 (sparc_target::low_get_pc): Define.
2234 (the_low_target): Remove the op fields.
2235 * linux-tile-low.cc (class tile_target)
2236 <low_supports_breakpoints>
2238 <low_set_pc>: Declare.
2239 (tile_target::low_supports_breakpoints)
2240 (tile_target::low_get_pc)
2241 (tile_target::low_set_pc): Define.
2242 (the_low_target): Remove the op fields.
2243 * linux-aarch64-low.cc (class aarch64_target)
2244 <low_supports_breakpoints>
2246 <low_set_pc>: Declare.
2247 (aarch64_target::low_supports_breakpoints): Define.
2248 (aarch64_get_pc): Turn into...
2249 (aarch64_target::low_get_pc): ...this.
2250 (aarch64_set_pc): Turn into...
2251 (aarch64_target::low_set_pc): ...this.
2252 (the_low_target): Remove the op fields.
2253 * linux-mips-low.cc (class mips_target)
2254 <low_supports_breakpoints>
2256 <low_set_pc>: Declare.
2257 (mips_target::low_supports_breakpoints): Define.
2258 (mips_get_pc): Turn into...
2259 (mips_target::low_get_pc): ...this.
2260 (mips_set_pc): Turn into...
2261 (mips_target::low_set_pc): ...this.
2262 (the_low_target): Remove the op fields.
2263 * linux-ppc-low.cc (class ppc_target)
2264 <low_supports_breakpoints>
2266 <low_set_pc>: Declare.
2267 (ppc_target::low_supports_breakpoints): Define.
2268 (ppc_get_pc): Turn into...
2269 (ppc_target::low_get_pc): ...this.
2270 (ppc_set_pc): Turn into...
2271 (ppc_target::low_set_pc): ...this.
2272 (the_low_target): Remove the op fields.
2273 * linux-riscv-low.cc (class riscv_target)
2274 <low_supports_breakpoints>
2276 <low_set_pc>: Declare.
2277 (riscv_target::low_supports_breakpoints): Define.
2278 (riscv_get_pc): Turn into...
2279 (riscv_target::low_get_pc): ...this.
2280 (riscv_set_pc): Turn into...
2281 (riscv_target::low_set_pc): ...this.
2282 (the_low_target): Remove the op fields.
2283 * linux-s390-low.cc (class s390_target)
2284 <low_supports_breakpoints>
2286 <low_set_pc>: Declare.
2287 (s390_target::low_supports_breakpoints): Define.
2288 (s390_get_pc): Turn into...
2289 (s390_target::low_get_pc): ...this.
2290 (s390_set_pc): Turn into...
2291 (s390_target::low_set_pc): ...this.
2292 (the_low_target): Remove the op fields.
2293 * linux-tic6x-low.cc (class tic6x_target)
2294 <low_supports_breakpoints>
2296 <low_set_pc>: Declare.
2297 (tic6x_target::low_supports_breakpoints): Define.
2298 (tic6x_get_pc): Turn into...
2299 (tic6x_target::low_get_pc): ...this.
2300 (tic6x_set_pc): Turn into...
2301 (tic6x_target::low_set_pc): ...this.
2302 (the_low_target): Remove the op fields.
2304 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2306 Turn some more static methods in linux-low into private methods
2307 of linux_process_target.
2309 * linux-low.cc (get_pc): Turn into...
2310 (linux_process_target::get_pc): ...this.
2311 (save_stop_reason): Turn into...
2312 (linux_process_target::save_stop_reason): ...this.
2313 (thread_still_has_status_pending_p): Turn into...
2314 (linux_process_target::thread_still_has_status_pending): ...this.
2315 (status_pending_p_callback): Turn into...
2316 (linux_process_target::status_pending_p_callback): ...this.
2317 (resume_stopped_resumed_lwps): Turn into...
2318 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2319 (install_software_single_step_breakpoints): Turn into...
2320 (linux_process_target::install_software_single_step_breakpoints):
2322 (single_step): Turn into...
2323 (linux_process_target::single_step): ...this.
2324 (linux_resume_one_lwp_throw): Turn into...
2325 (linux_process_target::resume_one_lwp_throw): ...this.
2326 (linux_resume_one_lwp): Turn into...
2327 (linux_process_target::resume_one_lwp): ...this.
2328 (resume_status_pending_p): Turn into...
2329 (linux_process_target::resume_status_pending): ...this.
2330 (need_step_over_p): Turn into...
2331 (linux_process_target::thread_needs_step_over): ...this.
2332 (linux_resume_one_thread): Turn into...
2333 (linux_process_target::resume_one_thread): ...this.
2334 (proceed_one_lwp): Turn into...
2335 (linux_process_target::proceed_one_lwp): ...this.
2336 (unsuspend_and_proceed_one_lwp): Turn into...
2337 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2339 Update the calls/references to the above functions below.
2341 (linux_process_target::handle_extended_wait)
2342 (linux_process_target::filter_event)
2343 (linux_process_target::wait_for_event_filtered)
2344 (linux_process_target::wait_1)
2345 (linux_process_target::move_out_of_jump_pad)
2346 (linux_process_target::start_step_over)
2347 (linux_process_target::resume)
2348 (linux_process_target::proceed_all_lwps)
2349 (regsets_store_inferior_registers)
2350 (linux_process_target::store_register)
2352 * linux-low.h (class linux_process_target)
2355 <thread_still_has_status_pending>
2356 <status_pending_p_callback>
2357 <resume_stopped_resumed_lwps>
2358 <install_software_single_step_breakpoints>
2360 <resume_one_lwp_throw>
2362 <resume_status_pending>
2363 <thread_needs_step_over>
2366 <unsuspend_and_proceed_one_lwp>: Declare.
2368 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2370 Turn the 'fetch_register' linux target op into a method of
2371 linux_process_target.
2373 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2374 (class linux_process_target) <low_fetch_register>: Declare.
2375 * linux-x86-low.cc (the_low_target)
2376 * linux-aarch64-low.cc (the_low_target)
2377 * linux-arm-low.cc (the_low_target)
2378 * linux-bfin-low.cc (the_low_target)
2379 * linux-cris-low.cc (the_low_target)
2380 * linux-crisv32-low.cc (the_low_target)
2381 * linux-m32r-low.cc (the_low_target)
2382 * linux-m68k-low.cc (the_low_target)
2383 * linux-nios2-low.cc (the_low_target)
2384 * linux-ppc-low.cc (the_low_target)
2385 * linux-s390-low.cc (the_low_target)
2386 * linux-sh-low.cc (the_low_target)
2387 * linux-sparc-low.cc (the_low_target)
2388 * linux-tic6x-low.cc (the_low_target)
2389 * linux-tile-low.cc (the_low_target)
2390 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2391 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2393 (ia64_fetch_register): Turn into...
2394 (ia64_target::low_fetch_register): ...this.
2395 (the_low_target): Remove the op field.
2396 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2398 (mips_fetch_register): Turn into...
2399 (mips_target::low_fetch_register): ...this.
2400 (the_low_target): Remove the op field.
2401 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2403 (riscv_fetch_register): Turn into...
2404 (riscv_target::low_fetch_register): ...this.
2405 (the_low_target): Remove the op field.
2407 Update the callers below.
2409 * linux-low.cc (linux_process_target::fetch_registers)
2410 (linux_process_target::low_fetch_register)
2412 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2414 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2415 linux target ops into methods of linux_process_target.
2417 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2418 (class linux_process_target) <fetch_register>
2420 <usr_fetch_inferior_registers>
2421 <usr_store_inferior_registers>
2422 <low_cannot_fetch_register>
2423 <low_cannot_fetch_register> Declare.
2424 * linux-low.cc (fetch_register): Turn into...
2425 (linux_process_target::fetch_register): ...this.
2426 (store_register): Turn into ...
2427 (linux_process_target::store_register): ...this.
2428 (usr_fetch_inferior_registers): Turn into...
2429 (linux_process_target::usr_fetch_inferior_registers): ...this.
2430 (usr_store_inferior_registers): Turn into...
2431 (linux_process_target::usr_store_inferior_registers): ...this.
2432 * linux-x86-low.cc (class x86_target)
2433 <low_cannot_fetch_register>
2434 <low_cannot_store_register>: Declare.
2435 (x86_cannot_store_register): Turn into...
2436 (x86_target::low_cannot_store_register): ...this.
2437 (x86_cannot_fetch_register): Turn into...
2438 (x86_target::low_cannot_fetch_register): ...this.
2439 (the_low_target): Remove the target op fields.
2440 * linux-aarch64-low.cc (class aarch64_target)
2441 <low_cannot_fetch_register>
2442 <low_cannot_store_register>: Declare.
2443 (aarch64_target::low_cannot_fetch_register)
2444 (aarch64_target::low_cannot_store_register): Define.
2445 (the_low_target): Remove the op fields.
2446 * linux-arm-low.cc (class arm_target)
2447 <low_cannot_fetch_register>
2448 <low_cannot_store_register>: Declare.
2449 (arm_cannot_fetch_register): Turn into...
2450 (arm_target::low_cannot_fetch_register): ...this.
2451 (arm_cannot_store_register): Turn into...
2452 (arm_target::low_cannot_store_register): ...this.
2453 (the_low_target): Remove the op fields.
2454 * linux-bfin-low.cc (class bfin_target)
2455 <low_cannot_fetch_register>
2456 <low_cannot_store_register>: Declare.
2457 (bfin_cannot_fetch_register): Turn into...
2458 (bfin_target::low_cannot_fetch_register): ...this.
2459 (bfin_cannot_store_register): Turn into...
2460 (bfin_target::low_cannot_store_register): ...this.
2461 (the_low_target): Remove the op fields.
2462 * linux-cris-low.cc (class cris_target)
2463 <low_cannot_fetch_register>
2464 <low_cannot_store_register>: Declare.
2465 (cris_cannot_fetch_register): Turn into...
2466 (cris_target::low_cannot_fetch_register): ...this.
2467 (cris_cannot_store_register): Turn into...
2468 (cris_target::low_cannot_store_register): ...this.
2469 (the_low_target): Remove the op fields.
2470 * linux-crisv32-low.cc (class crisv32_target)
2471 <low_cannot_fetch_register>
2472 <low_cannot_store_register>: Declare.
2473 (crisv32_target::low_cannot_fetch_register)
2474 (crisv32_target::low_cannot_store_register): Define.
2475 (the_low_target): Remove the op fields.
2476 * linux-ia64-low.cc (class ia64_target)
2477 <low_cannot_fetch_register>
2478 <low_cannot_store_register>: Declare.
2479 (ia64_cannot_fetch_register): Turn into...
2480 (ia64_target::low_cannot_fetch_register): ...this.
2481 (ia64_cannot_store_register): Turn into...
2482 (ia64_target::low_cannot_store_register): ...this.
2483 (the_low_target): Remove the op fields.
2484 * linux-m32r-low.cc (class m32r_target)
2485 <low_cannot_fetch_register>
2486 <low_cannot_store_register>: Declare.
2487 (m32r_cannot_fetch_register): Turn into...
2488 (m32r_target::low_cannot_fetch_register): ...this.
2489 (m32r_cannot_store_register): Turn into...
2490 (m32r_target::low_cannot_store_register): ...this.
2491 (the_low_target): Remove the op fields.
2492 * linux-m68k-low.cc (class m68k_target)
2493 <low_cannot_fetch_register>
2494 <low_cannot_store_register>: Declare.
2495 (m68k_cannot_fetch_register): Turn into...
2496 (m68k_target::low_cannot_fetch_register): ...this.
2497 (m68k_cannot_store_register): Turn into...
2498 (m68k_target::low_cannot_store_register): ...this.
2499 (the_low_target): Remove the op fields.
2500 * linux-mips-low.cc (class mips_target)
2501 <low_cannot_fetch_register>
2502 <low_cannot_store_register>: Declare.
2503 (mips_cannot_fetch_register): Turn into...
2504 (mips_target::low_cannot_fetch_register): ...this.
2505 (mips_cannot_store_register): Turn into...
2506 (mips_target::low_cannot_store_register): ...this.
2507 (get_usrregs_info): Inline at the call sites in
2508 low_cannot_fetch_register and low_cannot_store_register,
2510 (the_low_target): Remove the op fields.
2511 * linux-nios2-low.cc (class nios2_target)
2512 <low_cannot_fetch_register>
2513 <low_cannot_store_register>: Declare.
2514 (nios2_cannot_fetch_register): Turn into...
2515 (nios2_target::low_cannot_fetch_register): ...this.
2516 (nios2_cannot_store_register): Turn into...
2517 (nios2_target::low_cannot_store_register): ...this.
2518 (the_low_target): Remove the op fields.
2519 * linux-ppc-low.cc (class ppc_target)
2520 <low_cannot_fetch_register>
2521 <low_cannot_store_register>: Declare.
2522 (ppc_cannot_fetch_register): Turn into...
2523 (ppc_target::low_cannot_fetch_register): ...this.
2524 (ppc_cannot_store_register): Turn into...
2525 (ppc_target::low_cannot_store_register): ...this.
2526 (the_low_target): Remove the op fields.
2527 * linux-riscv-low.cc (class riscv_target)
2528 <low_cannot_fetch_register>
2529 <low_cannot_store_register>: Declare.
2530 (riscv_target::low_cannot_fetch_register)
2531 (riscv_target::low_cannot_store_register): Define.
2532 (the_low_target): Remove the op fields.
2533 * linux-s390-low.cc (class s390_target)
2534 <low_cannot_fetch_register>
2535 <low_cannot_store_register>: Declare.
2536 (s390_cannot_fetch_register): Turn into...
2537 (s390_target::low_cannot_fetch_register): ...this.
2538 (s390_cannot_store_register): Turn into...
2539 (s390_target::low_cannot_store_register): ...this.
2540 (the_low_target): Remove the op fields.
2541 * linux-sh-low.cc (class sh_target)
2542 <low_cannot_fetch_register>
2543 <low_cannot_store_register>: Declare.
2544 (sh_cannot_fetch_register): Turn into...
2545 (sh_target::low_cannot_fetch_register): ...this.
2546 (sh_cannot_store_register): Turn into...
2547 (sh_target::low_cannot_store_register): ...this.
2548 (the_low_target): Remove the op fields.
2549 * linux-sparc-low.cc (class sparc_target)
2550 <low_cannot_fetch_register>
2551 <low_cannot_store_register>: Declare.
2552 (sparc_cannot_fetch_register): Turn into...
2553 (sparc_target::low_cannot_fetch_register): ...this.
2554 (sparc_cannot_store_register): Turn into...
2555 (sparc_target::low_cannot_store_register): ...this.
2556 (the_low_target): Remove the op fields.
2557 * linux-tic6x-low.cc (class tic6x_target)
2558 <low_cannot_fetch_register>
2559 <low_cannot_store_register>: Declare.
2560 (tic6x_cannot_fetch_register): Turn into...
2561 (tic6x_target::low_cannot_fetch_register): ...this.
2562 (tic6x_cannot_store_register): Turn into...
2563 (tic6x_target::low_cannot_store_register): ...this.
2564 (the_low_target): Remove the op fields.
2565 * linux-tile-low.cc (class tile_target)
2566 <low_cannot_fetch_register>
2567 <low_cannot_store_register>: Declare.
2568 (tile_cannot_fetch_register): Turn into...
2569 (tile_target::low_cannot_fetch_register): ...this.
2570 (tile_cannot_store_register): Turn into...
2571 (tile_target::low_cannot_store_register): ...this.
2572 (the_low_target): Remove the op fields.
2573 * linux-xtensa-low.cc (class xtensa_target)
2574 <low_cannot_fetch_register>
2575 <low_cannot_store_register>: Declare.
2576 (xtensa_target::low_cannot_fetch_register)
2577 (xtensa_target::low_cannot_store_register): Define.
2578 (the_low_target): Remove the op fields.
2580 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2582 Turn the 'regs_info' linux target op into a method of
2583 linux_process_target.
2585 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2586 (class linux_process_target) <get_regs_info>: Define.
2588 Update the callers below.
2590 * linux-low.cc (linux_process_target::fetch_registers)
2591 (linux_process_target::store_registers)
2592 * proc-service.cc (gregset_info)
2594 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2595 (x86_linux_regs_info): Turn into ...
2596 (x86_target::get_regs_info): ...this.
2597 (the_low_target): Remove the op field.
2598 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2600 (aarch64_regs_info): Turn into ...
2601 (aarch64_target::get_regs_info): ...this.
2602 (the_low_target): Remove the op field.
2603 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2604 (arm_regs_info): Turn into ...
2605 (arm_target::get_regs_info): ...this.
2606 (the_low_target): Remove the op field.
2607 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2608 (bfin_regs_info): Turn into ...
2609 (bfin_target::get_regs_info): ...this.
2610 (the_low_target): Remove the op field.
2611 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2612 (cris_regs_info): Turn into ...
2613 (cris_target::get_regs_info): ...this.
2614 (the_low_target): Remove the op field.
2615 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2617 (crisv32_regs_info): Turn into ...
2618 (crisv32_target::get_regs_info): ...this.
2619 (the_low_target): Remove the op field.
2620 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2621 (ia64_regs_info): Turn into ...
2622 (ia64_target::get_regs_info): ...this.
2623 (the_low_target): Remove the op field.
2624 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2625 (m32r_regs_info): Turn into ...
2626 (m32r_target::get_regs_info): ...this.
2627 (the_low_target): Remove the op field.
2628 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2629 (m68k_regs_info): Turn into ...
2630 (m68k_target::get_regs_info): ...this.
2631 (the_low_target): Remove the op field.
2632 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2633 (mips_regs_info): Turn into ...
2634 (mips_target::get_regs_info): ...this.
2635 (the_low_target): Remove the op field.
2636 (get_usrregs_info): Update the call to the op.
2637 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2638 (nios2_regs_info): Turn into ...
2639 (nios2_target::get_regs_info): ...this.
2640 (the_low_target): Remove the op field.
2641 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2642 (ppc_regs_info): Turn into ...
2643 (ppc_target::get_regs_info): ...this.
2644 (the_low_target): Remove the op field.
2645 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2646 (riscv_regs_info): Turn into ...
2647 (riscv_target::get_regs_info): ...this.
2648 (the_low_target): Remove the op field.
2649 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2650 (s390_regs_info): Turn into ...
2651 (s390_target::get_regs_info): ...this.
2652 (the_low_target): Remove the op field.
2653 (s390_collect_ptrace_register)
2654 (s390_supply_ptrace_register)
2655 (s390_fill_gregset): Update the call to the op.
2656 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2657 (sh_regs_info): Turn into ...
2658 (sh_target::get_regs_info): ...this.
2659 (the_low_target): Remove the op field.
2660 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2661 (sparc_regs_info): Turn into ...
2662 (sparc_target::get_regs_info): ...this.
2663 (the_low_target): Remove the op field.
2664 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2665 (tic6x_regs_info): Turn into ...
2666 (tic6x_target::get_regs_info): ...this.
2667 (the_low_target): Remove the op field.
2668 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2669 (tile_regs_info): Turn into ...
2670 (tile_target::get_regs_info): ...this.
2671 (the_low_target): Remove the op field.
2672 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2674 (xtensa_regs_info): Turn into ...
2675 (xtensa_target::get_regs_info): ...this.
2676 (the_low_target): Remove the op field.
2678 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2680 Turn the 'arch_setup' linux target op into a method of
2681 linux_process_target.
2683 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2684 (class linux_process_target) <arch_setup_thread>
2685 <low_arch_setup>: New declarations.
2686 * linux-low.cc (linux_arch_setup): Delete.
2687 (linux_arch_setup_thread): Turn into...
2688 (linux_process_target::arch_setup_thread): ... this.
2690 Update the callers below.
2692 (linux_process_target::handle_extended_wait)
2693 (linux_process_target::post_create_inferior)
2694 (linux_process_target::filter_event)
2696 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2698 (x86_linux_update_xmltarget): Turn into...
2699 (x86_target::update_xmltarget): ...this.
2700 (x86_linux_process_qsupported): Update the call to
2701 x86_linux_update_xmltarget.
2702 (x86_arch_setup): Turn into ...
2703 (x86_target::low_arch_setup): ...this.
2704 (the_low_target): Remove the op field.
2705 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2707 (aarch64_arch_setup): Turn into ...
2708 (aarch64_target::low_arch_setup): ...this.
2709 (the_low_target): Remove the op field.
2710 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2712 (arm_arch_setup): Turn into ...
2713 (arm_target::low_arch_setup): ...this.
2714 (the_low_target): Remove the op field.
2715 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2717 (bfin_arch_setup): Turn into ...
2718 (bfin_target::low_arch_setup): ...this.
2719 (the_low_target): Remove the op field.
2720 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2722 (cris_arch_setup): Turn into ...
2723 (cris_target::low_arch_setup): ...this.
2724 (the_low_target): Remove the op field.
2725 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2727 (crisv32_arch_setup): Turn into ...
2728 (crisv32_target::low_arch_setup): ...this.
2729 (the_low_target): Remove the op field.
2730 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2732 (ia64_arch_setup): Turn into ...
2733 (ia64_target::low_arch_setup): ...this.
2734 (the_low_target): Remove the op field.
2735 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2737 (m32r_arch_setup): Turn into ...
2738 (m32r_target::low_arch_setup): ...this.
2739 (the_low_target): Remove the op field.
2740 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2742 (m68k_arch_setup): Turn into ...
2743 (m68k_target::low_arch_setup): ...this.
2744 (the_low_target): Remove the op field.
2745 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2747 (mips_arch_setup): Turn into ...
2748 (mips_target::low_arch_setup): ...this.
2749 (the_low_target): Remove the op field.
2750 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2752 (nios2_arch_setup): Turn into ...
2753 (nios2_target::low_arch_setup): ...this.
2754 (the_low_target): Remove the op field.
2755 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2757 (ppc_arch_setup): Turn into ...
2758 (ppc_target::low_arch_setup): ...this.
2759 (the_low_target): Remove the op field.
2760 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2762 (riscv_arch_setup): Turn into ...
2763 (riscv_target::low_arch_setup): ...this.
2764 (the_low_target): Remove the op field.
2765 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2767 (s390_arch_setup): Turn into ...
2768 (s390_target::low_arch_setup): ...this.
2769 (the_low_target): Remove the op field.
2770 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2772 (sh_arch_setup): Turn into ...
2773 (sh_target::low_arch_setup): ...this.
2774 (the_low_target): Remove the op field.
2775 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2777 (sparc_arch_setup): Turn into ...
2778 (sparc_target::low_arch_setup): ...this.
2779 (the_low_target): Remove the op field.
2780 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2782 (tic6x_arch_setup): Turn into ...
2783 (tic6x_target::low_arch_setup): ...this.
2784 (the_low_target): Remove the op field.
2785 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2787 (tile_arch_setup): Turn into ...
2788 (tile_target::low_arch_setup): ...this.
2789 (the_low_target): Remove the op field.
2790 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2792 (xtensa_arch_setup): Turn into ...
2793 (xtensa_target::low_arch_setup): ...this.
2794 (the_low_target): Remove the op field.
2796 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2798 * linux-low.h (the_linux_target): New extern declaration.
2799 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2801 (the_linux_target): Remove.
2802 * linux-x86-low.cc (class x86_target): New class.
2803 (the_x86_target): New static object.
2804 (the_linux_target): Define as pointer to the_x86_target.
2805 * linux-aarch64-low.cc (class aarch64_target): New class.
2806 (the_aarch64_target): New static object.
2807 (the_linux_target): Define as pointer to the_aarch64_target.
2808 * linux-arm-low.cc (class arm_target): New class.
2809 (the_arm_target): New static object.
2810 (the_linux_target): Define as pointer to the_arm_target.
2811 * linux-bfin-low.cc (class bfin_target): New class.
2812 (the_bfin_target): New static object.
2813 (the_linux_target): Define as pointer to the_bfin_target.
2814 * linux-cris-low.cc (class cris_target): New class.
2815 (the_cris_target): New static object.
2816 (the_linux_target): Define as pointer to the_cris_target.
2817 * linux-crisv32-low.cc (class crisv32_target): New class.
2818 (the_crisv32_target): New static object.
2819 (the_linux_target): Define as pointer to the_crisv32_target.
2820 * linux-ia64-low.cc (class ia64_target): New class.
2821 (the_ia64_target): New static object.
2822 (the_linux_target): Define as pointer to the_ia64_target.
2823 * linux-m32r-low.cc (class m32r_target): New class.
2824 (the_m32r_target): New static object.
2825 (the_linux_target): Define as pointer to the_m32r_target.
2826 * linux-m68k-low.cc (class m68k_target): New class.
2827 (the_m68k_target): New static object.
2828 (the_linux_target): Define as pointer to the_m68k_target.
2829 * linux-mips-low.cc (class mips_target): New class.
2830 (the_mips_target): New static object.
2831 (the_linux_target): Define as pointer to the_mips_target.
2832 * linux-nios2-low.cc (class nios2_target): New class.
2833 (the_nios2_target): New static object.
2834 (the_linux_target): Define as pointer to the_nios2_target.
2835 * linux-ppc-low.cc (class ppc_target): New class.
2836 (the_ppc_target): New static object.
2837 (the_linux_target): Define as pointer to the_ppc_target.
2838 * linux-riscv-low.cc (class riscv_target): New class.
2839 (the_riscv_target): New static object.
2840 (the_linux_target): Define as pointer to the_riscv_target.
2841 * linux-s390-low.cc (class s390_target): New class.
2842 (the_s390_target): New static object.
2843 (the_linux_target): Define as pointer to the_s390_target.
2844 * linux-sh-low.cc (class sh_target): New class.
2845 (the_sh_target): New static object.
2846 (the_linux_target): Define as pointer to the_sh_target.
2847 * linux-sparc-low.cc (class sparc_target): New class.
2848 (the_sparc_target): New static object.
2849 (the_linux_target): Define as pointer to the_sparc_target.
2850 * linux-tic6x-low.cc (class tic6x_target): New class.
2851 (the_tic6x_target): New static object.
2852 (the_linux_target): Define as pointer to the_tic6x_target.
2853 * linux-tile-low.cc (class tile_target): New class.
2854 (the_tile_target): New static object.
2855 (the_linux_target): Define as pointer to the_tile_target.
2856 * linux-xtensa-low.cc (class xtensa_target): New class.
2857 (the_xtensa_target): New static object.
2858 (the_linux_target): Define as pointer to the_xtensa_target.
2860 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2862 Turn some static functions in linux-low.cc into private methods of
2863 linux_process_target.
2865 * linux-low.cc (handle_extended_wait): Turn into ...
2866 (linux_process_target::handle_extended_wait): ...this. Call
2867 'mourn' on 'this' object instead of 'the_target'.
2868 (maybe_move_out_of_jump_pad): Turn into...
2869 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2870 (linux_low_filter_event): Turn into...
2871 (linux_process_target::filter_event): ...this.
2872 (linux_wait_for_event_filtered): Turn into...
2873 (linux_process_target::wait_for_event_filtered): ...this.
2874 (linux_wait_for_event): Turn into...
2875 (linux_process_target::wait_for_event): ...this.
2876 (linux_wait_1): Turn into...
2877 (linux_process_target::wait_1): ...this.
2878 (wait_for_sigstop): Turn into...
2879 (linux_process_target::wait_for_sigstop): ...this.
2880 (move_out_of_jump_pad_callback): Turn into...
2881 (linux_process_target::move_out_of_jump_pad): ...this.
2882 (stop_all_lwps): Turn into...
2883 (linux_process_target::stop_all_lwps): ...this.
2884 (start_step_over): Turn into...
2885 (linux_process_target::start_step_over): ...this.
2886 (complete_ongoing_step_over): Turn into...
2887 (linux_process_target::complete_ongoing_step_over): ...this.
2888 (proceed_all_lwps): Turn into...
2889 (linux_process_target::proceed_all_lwps): ...this.
2890 (unstop_all_lwps): Turn into...
2891 (linux_process_target::unstop_all_lwps): ...this.
2893 * linux-low.h (class linux_process_target)
2894 <handle_extended_wait>
2895 <maybe_move_out_of_jump_pad>
2897 <wait_for_event_filtered>
2901 <move_out_of_jump_pad>
2904 <complete_ongoing_step_over>
2906 <unstop_all_lwps>: Declare.
2908 Update the callers below.
2910 * linux-low.cc (linux_process_target::attach): Update.
2911 (linux_process_target::stabilize_threads): Ditto.
2912 (linux_process_target::wait): Ditto.
2914 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2916 * linux-low.h (struct linux_target_ops): Update the comment for
2917 'cannot_store_register' to return 0 or 1.
2918 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2921 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2923 * config.in: Re-generate.
2924 * configure: Re-generate.
2926 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2928 * regcache.cc (find_register_by_number): Update.
2929 * tdesc.cc (init_target_desc): Likewise.
2930 * tdesc.h (target_desc::reg_defs): Likewise.
2932 2020-03-12 Tom Tromey <tom@tromey.com>
2934 * configure: Rebuild.
2935 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2936 (WIN32APILIBS): New subst.
2937 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2939 (gdbsupport/%.o): Remove target.
2940 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2941 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2942 (WIN32APILIBS): New variable.
2943 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2944 (gdbreplay$(EXEEXT)): Likewise.
2946 2020-03-12 Tom Tromey <tom@tromey.com>
2948 * config.in, configure: Rebuild.
2949 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2950 * acinclude.m4: Include gettext-sister.m4.
2951 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2953 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2954 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2956 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2958 * acinclude.m4: Update path to selftest.m4.
2960 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2962 * configure.ac: Don't source bfd/development.sh, move
2963 GDB_AC_COMMON higher.
2964 * configure: Re-generate.
2966 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2968 * configure: Re-generate.
2970 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2972 * configure: Re-generate.
2974 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2976 * .dir-locals.el: New file.
2978 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2980 * .gitattributes: New file.
2982 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2984 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2985 reply into an S reply.
2986 * server.cc (disable_packet_T): New global.
2987 (captured_main): Set new global when appropriate.
2988 * server.h (disable_packet_T): Declare.
2990 2020-02-21 Tom Tromey <tom@tromey.com>
2992 * Makefile.in (mostlyclean): New target.
2994 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996 * target.h (struct process_stratum_target): Remove.
2997 (class process_target): Rename to ...
2998 (class process_stratum_target): ... this.
2999 * linux-low.h (class linux_process_target): Derive from
3000 'process_stratum_target'.
3001 * linux-low.cc (linux_target_ops): Remove.
3002 (initialize_low): Set the_target to the singleton instance of
3003 linux_process_target.
3004 * lynx-low.h (class lynx_process_target): Derive from
3005 'process_stratum_target'.
3006 * lynx-low.cc (lynx_target_ops): Remove.
3007 (initialize_low): Set the_target to the singleton instance of
3008 lynx_process_target.
3009 * nto-low.h (class nto_process_target): Derive from
3010 'process_stratum_target'.
3011 * nto-low.cc (nto_target_ops): Remove.
3012 (initialize_low): Set the_target to the singleton instance of
3014 * win32-low.h (class win32_process_target): Derive from
3015 'process_stratum_target'.
3016 * win32-low.cc (win32_target_ops): Remove.
3017 (initialize_low): Set the_target to the singleton instance of
3018 win32_process_target.
3020 Replace 'the_target->pt' with 'the_target' in the uses below.
3022 * hostio.cc (hostio_error)
3027 * linux-aarch32-low.cc (arm_breakpoint_at)
3028 * linux-aarch64-low.cc (aarch64_breakpoint_at)
3029 * linux-arm-low.cc (arm_sigreturn_next_pc)
3031 (arm_get_syscall_trapinfo)
3032 * linux-cris-low.cc (cris_breakpoint_at)
3033 * linux-crisv32-low.cc (cris_breakpoint_at)
3034 * linux-low.cc (handle_extended_wait)
3037 (linux_process_target::breakpoint_kind_from_pc)
3039 * linux-m32r-low.cc (m32r_breakpoint_at)
3040 * linux-mips-low.cc (mips_breakpoint_at)
3041 * linux-nios2-low.cc (nios2_breakpoint_at)
3042 * linux-ppc-low.cc (ppc_breakpoint_at)
3043 * linux-s390-low.cc (s390_get_hwcap)
3044 * linux-sh-low.cc (sh_breakpoint_at)
3045 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
3046 (sparc_store_gregset_from_stack)
3047 (sparc_breakpoint_at)
3048 * linux-tic6x-low.cc (tic6x_breakpoint_at)
3049 * linux-tile-low.cc (tile_breakpoint_at)
3050 * linux-x86-low.cc (x86_breakpoint_at)
3051 * linux-xtensa-low.cc (xtensa_breakpoint_at)
3052 * mem-break.cc (bp_size)
3054 (insert_memory_breakpoint)
3055 (set_raw_breakpoint_at)
3056 (delete_raw_breakpoint)
3058 (uninsert_raw_breakpoint)
3059 (reinsert_raw_breakpoint)
3060 (validate_inserted_breakpoint)
3061 * regcache.cc (regcache_read_pc)
3063 * remote-utils.cc (putpkt_binary_1)
3066 (prepare_resume_reply)
3067 * server.cc (handle_general_set)
3070 (handle_qxfer_exec_file)
3071 (handle_qxfer_libraries_svr4)
3072 (handle_qxfer_osdata)
3073 (handle_qxfer_siginfo)
3074 (handle_qxfer_fdpic)
3078 (queue_stop_reply_callback)
3080 * target.cc (prepare_to_access_memory)
3081 (done_accessing_memory)
3082 (read_inferior_memory)
3083 (target_write_memory)
3084 (target_stop_and_wait)
3086 (target_mourn_inferior)
3087 (target_continue_no_signal)
3089 (target_supports_multi_process)
3092 (target_create_inferior)
3093 (target_post_create_inferior)
3095 (target_supports_fork_events)
3096 (target_supports_vfork_events)
3097 (target_supports_exec_events)
3098 (target_handle_new_gdb_connection)
3101 (fetch_inferior_registers)
3102 (store_inferior_registers)
3104 (target_supports_non_stop)
3106 (target_process_qsupported)
3107 (target_supports_catch_syscall)
3108 (target_get_ipa_tdesc_idx)
3109 (target_supports_tracepoints)
3110 (target_supports_fast_tracepoints)
3111 (target_get_min_fast_tracepoint_insn_len)
3112 (target_thread_stopped)
3114 (target_unpause_all)
3115 (target_stabilize_threads)
3116 (target_install_fast_tracepoint_jump_pad)
3118 (target_supports_disable_randomization)
3119 (target_supports_agent)
3120 (target_enable_btrace)
3121 (target_disable_btrace)
3122 (target_read_btrace)
3123 (target_read_btrace_conf)
3124 (target_supports_range_stepping)
3125 (target_supports_stopped_by_sw_breakpoint)
3126 (target_stopped_by_sw_breakpoint)
3127 (target_supports_stopped_by_hw_breakpoint)
3128 (target_supports_hardware_single_step)
3129 (target_stopped_by_hw_breakpoint)
3130 (target_breakpoint_kind_from_pc)
3131 (target_breakpoint_kind_from_current_state)
3132 (target_supports_software_single_step)
3133 (target_core_of_thread)
3134 (target_thread_name)
3135 (target_thread_handle)
3136 * win32-low.cc (do_initial_child_stuff)
3138 Rename target op default definitions listed below.
3140 * target.cc (process_target::post_create_inferior): Rename as ...
3141 (process_stratum_target::post_create_inferior): ... this.
3142 (process_target::prepare_to_access_memory): Rename as ...
3143 (process_stratum_target::prepare_to_access_memory): ... this.
3144 (process_target::done_accessing_memory): Rename as ...
3145 (process_stratum_target::done_accessing_memory): ... this.
3146 (process_target::look_up_symbols): Rename as ...
3147 (process_stratum_target::look_up_symbols): ... this.
3148 (process_target::supports_read_auxv): Rename as ...
3149 (process_stratum_target::supports_read_auxv): ... this.
3150 (process_target::read_auxv): Rename as ...
3151 (process_stratum_target::read_auxv): ... this.
3152 (process_target::supports_z_point_type): Rename as ...
3153 (process_stratum_target::supports_z_point_type): ... this.
3154 (process_target::insert_point): Rename as ...
3155 (process_stratum_target::insert_point): ... this.
3156 (process_target::remove_point): Rename as ...
3157 (process_stratum_target::remove_point): ... this.
3158 (process_target::stopped_by_sw_breakpoint): Rename as ...
3159 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3160 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3161 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3162 (process_target::stopped_by_hw_breakpoint): Rename as ...
3163 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3164 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3165 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3166 (process_target::supports_hardware_single_step): Rename as ...
3167 (process_stratum_target::supports_hardware_single_step): ... this.
3168 (process_target::stopped_by_watchpoint): Rename as ...
3169 (process_stratum_target::stopped_by_watchpoint): ... this.
3170 (process_target::stopped_data_address): Rename as ...
3171 (process_stratum_target::stopped_data_address): ... this.
3172 (process_target::supports_read_offsets): Rename as ...
3173 (process_stratum_target::supports_read_offsets): ... this.
3174 (process_target::read_offsets): Rename as ...
3175 (process_stratum_target::read_offsets): ... this.
3176 (process_target::supports_get_tls_address): Rename as ...
3177 (process_stratum_target::supports_get_tls_address): ... this.
3178 (process_target::get_tls_address): Rename as ...
3179 (process_stratum_target::get_tls_address): ... this.
3180 (process_target::hostio_last_error): Rename as ...
3181 (process_stratum_target::hostio_last_error): ... this.
3182 (process_target::supports_qxfer_osdata): Rename as ...
3183 (process_stratum_target::supports_qxfer_osdata): ... this.
3184 (process_target::qxfer_osdata): Rename as ...
3185 (process_stratum_target::qxfer_osdata): ... this.
3186 (process_target::supports_qxfer_siginfo): Rename as ...
3187 (process_stratum_target::supports_qxfer_siginfo): ... this.
3188 (process_target::qxfer_siginfo): Rename as ...
3189 (process_stratum_target::qxfer_siginfo): ... this.
3190 (process_target::supports_non_stop): Rename as ...
3191 (process_stratum_target::supports_non_stop): ... this.
3192 (process_target::async): Rename as ...
3193 (process_stratum_target::async): ... this.
3194 (process_target::start_non_stop): Rename as ...
3195 (process_stratum_target::start_non_stop): ... this.
3196 (process_target::supports_multi_process): Rename as ...
3197 (process_stratum_target::supports_multi_process): ... this.
3198 (process_target::supports_fork_events): Rename as ...
3199 (process_stratum_target::supports_fork_events): ... this.
3200 (process_target::supports_vfork_events): Rename as ...
3201 (process_stratum_target::supports_vfork_events): ... this.
3202 (process_target::supports_exec_events): Rename as ...
3203 (process_stratum_target::supports_exec_events): ... this.
3204 (process_target::handle_new_gdb_connection): Rename as ...
3205 (process_stratum_target::handle_new_gdb_connection): ... this.
3206 (process_target::handle_monitor_command): Rename as ...
3207 (process_stratum_target::handle_monitor_command): ... this.
3208 (process_target::core_of_thread): Rename as ...
3209 (process_stratum_target::core_of_thread): ... this.
3210 (process_target::supports_read_loadmap): Rename as ...
3211 (process_stratum_target::supports_read_loadmap): ... this.
3212 (process_target::read_loadmap): Rename as ...
3213 (process_stratum_target::read_loadmap): ... this.
3214 (process_target::process_qsupported): Rename as ...
3215 (process_stratum_target::process_qsupported): ... this.
3216 (process_target::supports_tracepoints): Rename as ...
3217 (process_stratum_target::supports_tracepoints): ... this.
3218 (process_target::read_pc): Rename as ...
3219 (process_stratum_target::read_pc): ... this.
3220 (process_target::write_pc): Rename as ...
3221 (process_stratum_target::write_pc): ... this.
3222 (process_target::supports_thread_stopped): Rename as ...
3223 (process_stratum_target::supports_thread_stopped): ... this.
3224 (process_target::thread_stopped): Rename as ...
3225 (process_stratum_target::thread_stopped): ... this.
3226 (process_target::supports_get_tib_address): Rename as ...
3227 (process_stratum_target::supports_get_tib_address): ... this.
3228 (process_target::get_tib_address): Rename as ...
3229 (process_stratum_target::get_tib_address): ... this.
3230 (process_target::pause_all): Rename as ...
3231 (process_stratum_target::pause_all): ... this.
3232 (process_target::unpause_all): Rename as ...
3233 (process_stratum_target::unpause_all): ... this.
3234 (process_target::stabilize_threads): Rename as ...
3235 (process_stratum_target::stabilize_threads): ... this.
3236 (process_target::supports_fast_tracepoints): Rename as ...
3237 (process_stratum_target::supports_fast_tracepoints): ... this.
3238 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3239 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3240 (process_target::emit_ops): Rename as ...
3241 (process_stratum_target::emit_ops): ... this.
3242 (process_target::supports_disable_randomization): Rename as ...
3243 (process_stratum_target::supports_disable_randomization): ... this.
3244 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3245 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3246 (process_target::qxfer_libraries_svr4): Rename as ...
3247 (process_stratum_target::qxfer_libraries_svr4): ... this.
3248 (process_target::supports_agent): Rename as ...
3249 (process_stratum_target::supports_agent): ... this.
3250 (process_target::enable_btrace): Rename as ...
3251 (process_stratum_target::enable_btrace): ... this.
3252 (process_target::disable_btrace): Rename as ...
3253 (process_stratum_target::disable_btrace): ... this.
3254 (process_target::read_btrace): Rename as ...
3255 (process_stratum_target::read_btrace): ... this.
3256 (process_target::read_btrace_conf): Rename as ...
3257 (process_stratum_target::read_btrace_conf): ... this.
3258 (process_target::supports_range_stepping): Rename as ...
3259 (process_stratum_target::supports_range_stepping): ... this.
3260 (process_target::supports_pid_to_exec_file): Rename as ...
3261 (process_stratum_target::supports_pid_to_exec_file): ... this.
3262 (process_target::pid_to_exec_file): Rename as ...
3263 (process_stratum_target::pid_to_exec_file): ... this.
3264 (process_target::supports_multifs): Rename as ...
3265 (process_stratum_target::supports_multifs): ... this.
3266 (process_target::multifs_open): Rename as ...
3267 (process_stratum_target::multifs_open): ... this.
3268 (process_target::multifs_unlink): Rename as ...
3269 (process_stratum_target::multifs_unlink): ... this.
3270 (process_target::multifs_readlink): Rename as ...
3271 (process_stratum_target::multifs_readlink): ... this.
3272 (process_target::breakpoint_kind_from_pc): Rename as ...
3273 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3274 (process_target::breakpoint_kind_from_current_state): Rename as ...
3275 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3276 (process_target::thread_name): Rename as ...
3277 (process_stratum_target::thread_name): ... this.
3278 (process_target::thread_handle): Rename as ...
3279 (process_stratum_target::thread_handle): ... this.
3280 (process_target::supports_software_single_step): Rename as ...
3281 (process_stratum_target::supports_software_single_step): ... this.
3282 (process_target::supports_catch_syscall): Rename as ...
3283 (process_stratum_target::supports_catch_syscall): ... this.
3284 (process_target::get_ipa_tdesc_idx): Rename as ...
3285 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3287 2020-02-20 Pedro Alves <palves@redhat.com>
3289 * target.cc (set_target_ops): Simply copy the given target pointer
3290 instead of creating a copy of the pointed object.
3292 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3294 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3297 * target.h (struct process_stratum_target): Remove the target op.
3298 (class process_target): Add the target op.
3299 (target_get_ipa_tdesc_idx): Update the macro.
3300 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3302 Update the derived classes and callers below.
3304 * linux-low.cc (linux_target_ops): Update.
3305 (linux_get_ipa_tdesc_idx): Turn into ...
3306 (linux_process_target::get_ipa_tdesc_idx): ... this.
3307 * linux-low.h (class linux_process_target): Update.
3308 * lynx-low.cc (lynx_target_ops): Update.
3309 * nto-low.cc (nto_target_ops): Update.
3310 * win32-low.cc (win32_target_ops): Update.
3312 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3314 Turn process_stratum_target's supports_catch_syscall op into a
3315 method of process_target.
3317 * target.h (struct process_stratum_target): Remove the target op.
3318 (class process_target): Add the target op.
3319 (target_supports_catch_syscall): Update the macro.
3320 * target.cc (process_target::supports_catch_syscall): Define.
3322 Update the derived classes and callers below.
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_supports_catch_syscall): Turn into ...
3326 (linux_process_target::supports_catch_syscall): ... this.
3327 * linux-low.h (class linux_process_target): Update.
3328 * lynx-low.cc (lynx_target_ops): Update.
3329 * nto-low.cc (nto_target_ops): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3332 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3334 Turn process_stratum_target's supports_software_single_step op
3335 into a method of process_target.
3337 * target.h (struct process_stratum_target): Remove the target op.
3338 (class process_target): Add the target op.
3339 (target_supports_software_single_step): Update the macro.
3340 * target.cc (process_target::supports_software_single_step): Define.
3342 Update the derived classes and callers below.
3344 * linux-low.cc (linux_target_ops): Update.
3345 (linux_supports_software_single_step): Turn into ...
3346 (linux_process_target::supports_software_single_step): ... this.
3347 * linux-low.h (class linux_process_target): Update.
3348 * lynx-low.cc (lynx_target_ops): Update.
3349 * nto-low.cc (nto_target_ops): Update.
3350 * win32-low.cc (win32_target_ops): Update.
3352 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3354 Turn process_stratum_target's thread_name and thread_handle ops
3355 into methods of process_target.
3357 * target.h (struct process_stratum_target): Remove the target ops.
3358 (class process_target): Add the target ops.
3359 (target_thread_name): Update the macro.
3360 (target_thread_handle): Update the macro.
3361 * target.cc (process_target::thread_name): Define.
3362 (process_target::thread_handle): Define.
3364 Update the derived classes and callers below.
3366 * linux-low.cc (linux_target_ops): Update.
3367 (linux_process_target::thread_name): Define.
3368 (linux_process_target::thread_handle): Define.
3369 * linux-low.h (class linux_process_target): Update.
3370 * lynx-low.cc (lynx_target_ops): Update.
3371 * nto-low.cc (nto_target_ops): Update.
3372 * win32-low.cc (win32_target_ops): Update.
3374 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376 Turn process_stratum_target's breakpoint_kind_from_pc,
3377 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3378 ops into methods of process_target.
3380 * target.h (struct process_stratum_target): Remove the target op.
3381 (class process_target): Add the target op.
3382 (target_breakpoint_kind_from_pc): Update the macro.
3383 (target_breakpoint_kind_from_current_state): Update the macro.
3384 (default_breakpoint_kind_from_pc): Remove declaration.
3385 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3386 (process_target::breakpoint_kind_from_pc): ... this.
3387 (process_target::breakpoint_kind_from_current_state): Define.
3389 Update the derived classes and callers below.
3391 * mem-break.cc (bp_size): Update.
3392 (bp_opcode): Update.
3393 * linux-low.cc (linux_target_ops): Update.
3394 (linux_wait_1): Update.
3395 (linux_breakpoint_kind_from_pc): Turn into ...
3396 (linux_process_target::breakpoint_kind_from_pc): ... this.
3397 (linux_sw_breakpoint_from_kind): Turn into ...
3398 (linux_process_target::sw_breakpoint_from_kind): ... this.
3399 (linux_breakpoint_kind_from_current_state): Turn into ...
3400 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3401 * linux-low.h (class linux_process_target): Update.
3402 * lynx-low.cc (lynx_target_ops): Update.
3403 (lynx_process_target::sw_breakpoint_from_kind): Define.
3404 * lynx-low.h (class lynx_process_target): Update.
3405 * nto-low.cc (nto_target_ops): Update.
3406 (nto_sw_breakpoint_from_kind): Turn into ...
3407 (nto_process_target::sw_breakpoint_from_kind): ... this.
3408 * nto-low.h (class nto_process_target): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3410 (win32_sw_breakpoint_from_kind): Turn into ...
3411 (win32_process_target::sw_breakpoint_from_kind): ... this.
3412 * win32-low.h (class win32_process_target): Update.
3414 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3416 Turn process_stratum_target's multifs_open, multifs_readlink,
3417 multifs_unlink ops into methods of process_target.
3419 * target.h (struct process_stratum_target): Remove the target ops.
3420 (class process_target): Add the target ops. Also add
3422 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3424 (process_target::supports_multifs): Define.
3425 (process_target::multifs_open): Define.
3426 (process_target::multifs_readlink): Define.
3427 (process_target::multifs_unlink): Define.
3429 Update the derived classes and callers below.
3431 * hostio.cc (handle_setfs): Update.
3432 (handle_open): Update.
3433 (handle_unlink): Update.
3434 (handle_readlink): Update.
3435 * linux-low.cc (linux_target_ops): Update.
3436 (linux_process_target::supports_multifs): Define.
3437 (linux_process_target::multifs_open): Define.
3438 (linux_process_target::multifs_readlink): Define.
3439 (linux_process_target::multifs_unlink): Define.
3440 * linux-low.h (class linux_process_target): Update.
3441 * lynx-low.cc (lynx_target_ops): Update.
3442 * nto-low.cc (nto_target_ops): Update.
3443 * win32-low.cc (win32_target_ops): Update.
3445 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3447 Turn process_stratum_target's pid_to_exec_file op into a method
3450 * target.h (struct process_stratum_target): Remove the target op.
3451 (class process_target): Add the target op. Also add
3452 'supports_pid_to_exec_file'.
3453 * target.cc (process_target::pid_to_exec_file): Define.
3454 (process_target::supports_pid_to_exec_file): Define.
3456 Update the derived classes and callers below.
3458 * server.cc (handle_qxfer_exec_file): Update.
3459 (handle_query): Update.
3460 * linux-low.cc (linux_target_ops): Update.
3461 (linux_process_target::supports_pid_to_exec_file): Define.
3462 (linux_process_target::pid_to_exec_file): Define.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 * win32-low.cc (win32_target_ops): Update.
3468 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3470 Turn process_stratum_target's supports_range_stepping op into a
3471 method of process_target.
3473 * target.h (struct process_stratum_target): Remove the target op.
3474 (class process_target): Add the target op.
3475 (target_supports_range_stepping): Update the macro.
3476 * target.cc (process_target::supports_range_stepping): Define.
3478 Update the derived classes and callers below.
3480 * linux-low.cc (linux_target_ops): Update.
3481 (linux_supports_range_stepping): Turn into ...
3482 (linux_process_target::supports_range_stepping): ... this.
3483 * linux-low.h (class linux_process_target): Update.
3484 * lynx-low.cc (lynx_target_ops): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3490 Turn process_stratum_target's btrace-related ops (enable_btrace,
3491 disable_btrace, read_btrace, read_btrace_conf) into methods of
3494 * target.h (struct process_stratum_target): Remove the target ops.
3495 (class process_target): Add the target ops.
3496 (target_enable_btrace): Update.
3497 (target_disable_btrace): Update.
3498 (target_read_btrace): Update.
3499 (target_read_btrace_conf): Update.
3500 * target.cc (process_target::enable_btrace): Define.
3501 (process_target::disable_btrace): Define.
3502 (process_target::read_btrace): Define.
3503 (process_target::read_btrace_conf): Define.
3505 Update the derived classes and callers below.
3507 * linux-low.cc (linux_target_ops): Update.
3508 (linux_process_target:enable_btrace): Define as a wrapper around
3509 linux_enable_btrace.
3510 (linux_low_disable_btrace): Turn into ...
3511 (linux_process_target::disable_btrace): ... this.
3512 (linux_low_read_btrace): Turn into ...
3513 (linux_process_target::read_btrace): ... this.
3514 (linux_low_btrace_conf): Turn into ...
3515 (linux_process_target::read_btrace_conf): ... this.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3521 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523 Turn process_stratum_target's supports_agent op into a method of
3526 * target.h (struct process_stratum_target): Remove the target op.
3527 (class process_target): Add the target op.
3528 (target_supports_agent): Update the macro.
3529 * target.cc (process_target::supports_agent): Define.
3531 Update the derived classes and callers below.
3533 * linux-low.cc (linux_target_ops): Update.
3534 (linux_supports_agent): Turn into ...
3535 (linux_process_target::supports_agent): ... this.
3536 * linux-low.h (class linux_process_target): Update.
3537 * lynx-low.cc (lynx_target_ops): Update.
3538 * nto-low.cc (nto_target_ops): Update.
3539 * win32-low.cc (win32_target_ops): Update.
3541 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3544 method of process_target.
3546 * target.h (struct process_stratum_target): Remove the target op.
3547 (class process_target): Add the target op. Also add
3548 'supports_qxfer_libraries_svr4'.
3549 * target.cc (process_target::qxfer_libraries_svr4): Define.
3550 (process_target::supports_qxfer_libraries_svr4): Define.
3552 Update the derived classes and callers below.
3554 * server.cc (handle_qxfer_libraries_svr4): Update.
3555 (handle_query): Update.
3556 * linux-low.cc (linux_target_ops): Update.
3557 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3558 (linux_qxfer_libraries_svr4): Turn into ...
3559 (linux_process_target::qxfer_libraries_svr4): ... this.
3560 * linux-low.h (class linux_process_target): Update.
3561 * lynx-low.cc (lynx_target_ops): Update.
3562 * nto-low.cc (nto_target_ops): Update.
3563 * win32-low.cc (win32_target_ops): Update.
3565 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3567 Turn process_stratum_target's supports_disable_randomization op
3568 into a method of process_target.
3570 * target.h (struct process_stratum_target): Remove the target op.
3571 (class process_target): Add the target op.
3572 (target_supports_disable_randomization): Update the macro.
3573 * target.cc (process_target::supports_disable_randomization): Define.
3575 Update the derived classes and callers below.
3577 * linux-low.cc (linux_target_ops): Update.
3578 (linux_supports_disable_randomization): Turn into ...
3579 (linux_process_target::supports_disable_randomization): ... this.
3580 * linux-low.h (class linux_process_target): Update.
3581 * lynx-low.cc (lynx_target_ops): Update.
3582 * nto-low.cc (nto_target_ops): Update.
3583 * win32-low.cc (win32_target_ops): Update.
3585 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3587 Turn process_stratum_target's emit_ops op into a method of
3590 * target.h (struct process_stratum_target): Remove the target op.
3591 (class process_target): Add the target op.
3592 (target_emit_ops): Update the macro.
3593 * target.cc (process_target::emit_ops): Define.
3595 Update the derived classes and callers below.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_emit_ops): Turn into ...
3599 (linux_process_target::emit_ops): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3605 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3608 and get_min_fast_tracepoint_insn_len ops into methods of
3611 * target.h (struct process_stratum_target): Remove the target ops.
3612 (class process_target): Add the target ops. Also add
3613 'supports_fast_tracepoints'.
3614 (target_supports_fast_tracepoints): Update the macro.
3615 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3616 (install_fast_tracepoint_jump_pad): Update and rename the macro
3618 (target_install_fast_tracepoint_jump_pad): ... this.
3619 * target.cc (process_target::supports_fast_tracepoints): Define.
3620 (process_target::install_fast_tracepoint_jump_pad): Define.
3621 (process_target::get_min_fast_tracepoint_insn_len): Define.
3623 Update the derived classes and callers below.
3625 * tracepoint.cc (install_fast_tracepoint): Update.
3626 * linux-low.cc (linux_target_ops): Update.
3627 (linux_process_target::supports_fast_tracepoints): Define.
3628 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3629 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3630 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3631 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3632 * linux-low.h (class linux_process_target): Update.
3633 * lynx-low.cc (lynx_target_ops): Update.
3634 * nto-low.cc (nto_target_ops): Update.
3635 * win32-low.cc (win32_target_ops): Update.
3637 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3639 Turn process_stratum_target's stabilize_threads op into a
3640 method of process_target.
3642 * target.h (struct process_stratum_target): Remove the target op.
3643 (class process_target): Add the target op.
3644 (target_stabilize_threads): Update the macro.
3645 * target.cc (process_target::stabilize_threads): Define.
3647 Update the derived classes and callers below.
3649 * server.cc (handle_status): Update.
3650 * tracepoint.cc (cmd_qtdp): Update.
3651 (cmd_qtstart): Update.
3652 * linux-low.cc (linux_target_ops): Update.
3653 (linux_stabilize_threads): Turn into ...
3654 (linux_process_target::stabilize_threads): ... this.
3655 (linux_wait_1): Update.
3656 * linux-low.h (class linux_process_target): Update.
3657 * lynx-low.cc (lynx_target_ops): Update.
3658 * nto-low.cc (nto_target_ops): Update.
3659 * win32-low.cc (win32_target_ops): Update.
3661 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3663 Turn process_stratum_target's pause_all and unpause_all ops
3664 into methods of process_target.
3666 * target.h (struct process_stratum_target): Remove the target ops.
3667 (class process_target): Add the target ops.
3668 (pause_all): Update the macro and rename to...
3669 (target_pause_all): ... this.
3670 (unpause_all): Update the macro and rename to...
3671 (target_unpause_all): ... this.
3672 * target.cc (process_target::pause_all): Define.
3673 (process_target::unpause_all): Define.
3675 Update the derived classes and callers below.
3677 * server.cc (handle_status): Update.
3678 * tracepoint.cc (clear_installed_tracepoints): Update.
3680 (cmd_qtstart): Update.
3681 (stop_tracing): Update.
3682 (cmd_qtstatus): Update.
3683 (upload_fast_traceframes): Update.
3684 (run_inferior_command): Update.
3685 * linux-low.cc (linux_target_ops): Update.
3686 (linux_pause_all): Turn into ...
3687 (linux_process_target::pause_all): ... this.
3688 (linux_unpause_all): Turn into ...
3689 (linux_process_target::unpause_all): ... this.
3690 (linux_process_target::prepare_to_access_memory): Update.
3691 (linux_process_target::done_accessing_memory): Update.
3692 * linux-low.h (class linux_process_target): Update.
3693 * lynx-low.cc (lynx_target_ops): Update.
3694 * nto-low.cc (nto_target_ops): Update.
3695 * win32-low.cc (win32_target_ops): Update.
3697 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3699 Turn process_stratum_target's get_tib_address op into a method of
3702 * target.h (struct process_stratum_target): Remove the target op.
3703 (class process_target): Add the target op. Also add
3704 'supports_get_tib_address'.
3705 * target.cc (process_target::get_tib_address): Define.
3706 (process_target::supports_get_tib_address): Define.
3708 Update the derived classes and callers below.
3710 * server.cc (handle_query): Update.
3711 * linux-low.cc (win32_target_ops): Update.
3712 * lynx-low.cc (lynx_target_ops): Update.
3713 * nto-low.cc (nto_target_ops): Update.
3714 * win32-low.cc (win32_target_ops): Update.
3715 (win32_process_target::supports_get_tib_address): Define.
3716 (win32_get_tib_address): Turn into ...
3717 (win32_process_target::get_tib_address): ... this.
3718 * win32-low.h (class win32_process_target): Update.
3720 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3722 Turn process_stratum_target's thread_stopped op into a method of
3725 * target.h (struct process_stratum_target): Remove the target op.
3726 (class process_target): Add the target op. Also add
3727 'supports_thread_stopped'.
3728 (target_thread_stopped): Update the macro.
3729 * target.cc (process_target::thread_stopped): Define.
3730 (process_target::supports_thread_stopped): Define.
3731 (prepare_to_access_memory): Update.
3733 Update the derived classes and callers below.
3735 * server.cc (queue_stop_reply_callback): Update.
3736 * linux-low.cc (linux_target_ops): Update.
3737 (linux_process_target::supports_thread_stopped): Define.
3738 (linux_thread_stopped): Turn into ...
3739 (linux_process_target::thread_stopped): ... this.
3740 * linux-low.h (class linux_process_target): Update.
3741 * lynx-low.cc (lynx_target_ops): Update.
3742 * nto-low.cc (nto_target_ops): Update.
3743 * win32-low.cc (win32_target_ops): Update.
3745 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3747 Turn process_stratum_target's read_pc and write_pc ops into
3748 methods of process_target.
3750 * target.h (struct process_stratum_target): Remove the target ops.
3751 (class process_target): Add the target ops.
3752 * target.cc (process_target::read_pc): Define.
3753 (process_target::write_pc): Define.
3755 Update the derived classes and callers below.
3757 * regcache.cc (regcache_read_pc): Update.
3758 (regcache_write_pc): Update.
3759 * linux-low.cc (linux_target_ops): Update.
3760 (linux_read_pc): Turn into ...
3761 (linux_process_target::read_pc): ... this.
3762 (linux_write_pc): Turn into ...
3763 (linux_process_target::write_pc): ... this.
3764 * linux-low.h (class linux_process_target): Update.
3765 * lynx-low.cc (lynx_target_ops): Update.
3766 * nto-low.cc (nto_target_ops): Update.
3767 * win32-low.cc (win32_target_ops): Update.
3769 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3771 Turn process_stratum_target's supports_tracepoints op into a
3772 method of process_target.
3774 * target.h (struct process_stratum_target): Remove the target op.
3775 (class process_target): Add the target op.
3776 (target_supports_tracepoints): Update the macro.
3777 * target.cc (process_target::supports_tracepoints): Define.
3779 Update the derived classes and callers below.
3781 * linux-low.cc (linux_target_ops): Update.
3782 (linux_supports_tracepoints): Turn into ...
3783 (linux_process_target::supports_tracepoints): ... this.
3784 * linux-low.h (class linux_process_target): Update.
3785 * lynx-low.cc (lynx_target_ops): Update.
3786 * nto-low.cc (nto_target_ops): Update.
3787 * win32-low.cc (win32_target_ops): Update.
3789 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3791 Turn process_stratum_target's process_qsupported op into a method
3794 * target.h (struct process_stratum_target): Remove the target op.
3795 (class process_target): Add the target op.
3796 (target_process_qsupported): Update the macro.
3797 * target.cc (process_target::process_qsupported): Define.
3799 Update the derived classes and callers below.
3801 * linux-low.cc (linux_target_ops): Update.
3802 (linux_process_qsupported): Turn into ...
3803 (linux_process_target::process_qsupported): ... this.
3804 * linux-low.h (class linux_process_target): Update.
3805 * lynx-low.cc (lynx_target_ops): Update.
3806 * nto-low.cc (nto_target_ops): Update.
3807 * win32-low.cc (win32_target_ops): Update.
3809 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3811 Turn process_stratum_target's read_loadmap op into a method of
3814 * target.h (struct process_stratum_target): Remove the target op.
3815 (class process_target): Add the target op. Also add
3816 'supports_read_loadmap'.
3817 * target.cc (process_target::read_loadmap): Define.
3818 (process_target::supports_read_loadmap): Define.
3820 Update the derived classes and callers below.
3822 * server.cc (handle_qxfer_fdpic): Update.
3823 (handle_query): Update.
3824 * linux-low.cc (linux_target_ops): Update.
3825 (linux_process_target::supports_read_loadmap): Define.
3826 (linux_read_loadmap): Turn into ...
3827 (linux_process_target::read_loadmap): ... this.
3828 * linux-low.h (class linux_process_target): Update.
3829 * lynx-low.cc (lynx_target_ops): Update.
3830 * nto-low.cc (nto_target_ops): Update.
3831 * win32-low.cc (win32_target_ops): Update.
3833 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3835 Turn process_stratum_target's core_of_thread op into a method of
3838 * target.h (struct process_stratum_target): Remove the target op.
3839 (class process_target): Add the target op.
3840 (target_core_of_thread): Update the macro.
3841 * target.cc (process_target::core_of_thread): Define.
3843 Update the derived classes and callers below.
3845 * linux-low.cc (linux_target_ops): Update.
3846 (linux_process_target::core_of_thread): Define.
3847 * linux-low.h (class linux_process_target): Update.
3848 * lynx-low.cc (lynx_target_ops): Update.
3849 * nto-low.cc (nto_target_ops): Update.
3850 * win32-low.cc (win32_target_ops): Update.
3852 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3854 Turn process_stratum_target's handle_monitor_command op into a
3855 method of process_target.
3857 * target.h (struct process_stratum_target): Remove the target op.
3858 (class process_target): Add the target op.
3859 (target_handle_monitor_command): Update the macro.
3860 * target.cc (process_target::handle_monitor_command): Define.
3862 Update the derived classes and callers below.
3864 * server.cc (handle_query): Update.
3865 * linux-low.cc (linux_target_ops): Update.
3866 (linux_process_target::handle_monitor_command): Define.
3867 * linux-low.h (class linux_process_target): Update.
3868 * lynx-low.cc (lynx_target_ops): Update.
3869 * nto-low.cc (nto_target_ops): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3872 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3874 Turn process_stratum_target's handle_new_gdb_connection op into a
3875 method of process_target.
3877 * target.h (struct process_stratum_target): Remove the target op.
3878 (class process_target): Add the target op.
3879 (target_handle_new_gdb_connection): Update the macro.
3880 * target.cc (process_target::handle_new_gdb_connection): Define.
3882 Update the derived classes and callers below.
3884 * linux-low.cc (linux_target_ops): Update.
3885 (linux_handle_new_gdb_connection): Turn into ...
3886 (linux_process_target::handle_new_gdb_connection): ... this.
3887 * linux-low.h (class linux_process_target): Update.
3888 * lynx-low.cc (lynx_target_ops): Update.
3889 * nto-low.cc (nto_target_ops): Update.
3890 * win32-low.cc (win32_target_ops): Update.
3892 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3894 Turn process_stratum_target's supports_fork_events,
3895 supports_vfork_events, and supports_exec_events ops into methods
3898 * target.h (struct process_stratum_target): Remove the target ops.
3899 (class process_target): Add the target ops.
3900 (target_supports_fork_events): Update the macro.
3901 (target_supports_vfork_events): Update the macro.
3902 (target_supports_exec_events): Update the macro.
3903 * target.cc (process_target::supports_fork_events): Define.
3904 (process_target::supports_vfork_events): Define.
3905 (process_target::supports_exec_events): Define.
3907 Update the derived classes and callers below.
3909 * linux-low.cc (linux_target_ops): Update.
3910 (linux_supports_fork_events): Turn into ...
3911 (linux_process_target::supports_fork_events): ... this.
3912 (linux_supports_vfork_events): Turn into ...
3913 (linux_process_target::supports_vfork_events): ... this.
3914 (linux_supports_exec_events): Turn into ...
3915 (linux_process_target::supports_exec_events): ... this.
3916 * linux-low.h (class linux_process_target): Update.
3917 * lynx-low.cc (lynx_target_ops): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 * win32-low.cc (win32_target_ops): Update.
3921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923 Turn process_stratum_target's supports_multi_process op into a
3924 method of process_target.
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928 * target.cc (process_target::supports_multi_process): Define.
3929 (target_supports_multi_process): Update.
3931 Update the derived classes and callers below.
3933 * linux-low.cc (linux_target_ops): Update.
3934 (linux_supports_multi_process): Turn into ...
3935 (linux_process_target::supports_multi_process): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3941 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943 Turn process_stratum_target's supports_non_stop, async, and
3944 start_non_stop ops into methods of process_target.
3946 * target.h (struct process_stratum_target): Remove the target ops.
3947 (class process_target): Add the target ops.
3948 (target_supports_non_stop): Update the macro.
3949 (target_async): Update the macro.
3950 (start_non_stop): Remove declaration.
3951 * target.cc (process_target::supports_non_stop): Define.
3952 (process_target::async): Define.
3953 (process_target::start_non_stop): Define.
3954 (start_non_stop): Remove.
3956 Update the derived classes and callers below.
3958 * server.cc (handle_qxfer_siginfo): Update.
3959 (handle_query): Update.
3960 * linux-low.cc (linux_target_ops): Update.
3961 (linux_supports_non_stop): Turn into ...
3962 (linux_process_target::supports_non_stop): ... this.
3963 (linux_async): Turn into ...
3964 (linux_process_target::async): ... this.
3965 (linux_start_non_stop): Turn into ...
3966 (linux_process_target::start_non_stop): ... this.
3967 * linux-low.h (class linux_process_target): Update.
3968 * lynx-low.cc (lynx_target_ops): Update.
3969 * nto-low.cc (nto_target_ops): Update.
3970 (nto_supports_non_stop): Remove; rely on the default behavior
3972 * win32-low.cc (win32_target_ops): Update.
3974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3976 Turn process_stratum_target's qxfer_siginfo op into a method of
3979 * target.h (struct process_stratum_target): Remove the target op.
3980 (class process_target): Add the target op. Also add
3981 'supports_qxfer_siginfo'.
3982 * target.cc (process_target::qxfer_siginfo): Define.
3983 (process_target::supports_qxfer_siginfo): Define.
3985 Update the derived classes and callers below.
3987 * server.cc (handle_qxfer_siginfo): Update.
3988 (handle_query): Update.
3989 * linux-low.cc (linux_target_ops): Update.
3990 (linux_process_target::supports_qxfer_siginfo): Define.
3991 (linux_xfer_siginfo): Turn into ...
3992 (linux_process_target::qxfer_siginfo): ... this.
3993 * linux-low.h (class linux_process_target): Update.
3994 * lynx-low.cc (lynx_target_ops): Update.
3995 * nto-low.cc (nto_target_ops): Update.
3996 * win32-low.cc (win32_target_ops): Update.
3998 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4000 Turn process_stratum_target's qxfer_osdata op into a method of
4003 * target.h (struct process_stratum_target): Remove the target op.
4004 (class process_target): Add the target op. Also add
4005 'supports_qxfer_osdata'.
4006 * target.cc (process_target::qxfer_osdata): Define.
4007 (process_target::supports_qxfer_osdata): Define.
4009 Update the derived classes and callers below.
4011 * server.cc (handle_qxfer_osdata): Update.
4012 (handle_query): Update.
4013 * linux-low.cc (linux_target_ops): Update.
4014 (linux_process_target::supports_qxfer_osdata): Define.
4015 (linux_qxfer_osdata): Turn into ...
4016 (linux_process_target::qxfer_osdata): ... this.
4017 * linux-low.h (class linux_process_target): Update.
4018 * lynx-low.cc (lynx_target_ops): Update.
4019 * nto-low.cc (nto_target_ops): Update.
4020 * win32-low.cc (win32_target_ops): Update.
4022 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4024 Turn process_stratum_target's hostio_last_error op into a
4025 method of process_target.
4027 * target.h (struct process_stratum_target): Remove the target op.
4028 (class process_target): Add the target op.
4029 * target.cc: Add "hostio.h" to includes.
4030 (process_target::hostio_last_error): Define.
4032 Update the derived classes and callers below.
4034 * hostio.cc (hostio_error): Update.
4035 * linux-low.cc: Remove "hostio.h" from includes.
4036 (linux_target_ops): Update.
4037 * lynx-low.cc (lynx_target_ops): Update.
4038 * nto-low.cc (nto_target_ops): Update.
4039 * win32-low.h (class win32_process_target): Update.
4040 * win32-low.cc (win32_target_ops): Update.
4041 (wince_hostio_last_error): Turn into ...
4042 (win32_process_target::hostio_last_error): ... this.
4044 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4046 Turn process_stratum_target's get_tls_address op into a method of
4049 * target.h (struct process_stratum_target): Remove the target op.
4050 (class process_target): Add the target op. Also add
4051 'supports_get_tls_address'.
4052 * target.cc (process_target::get_tls_address): Define.
4053 (process_target::supports_get_tls_address): Define.
4055 Update the derived classes and callers below.
4057 * server.cc (handle_query): Update.
4058 * linux-low.cc (linux_target_ops): Update.
4059 (linux_process_target::supports_get_tls_address): Define.
4060 (linux_process_target::get_tls_address): Define.
4061 * linux-low.h (class linux_process_target): Update.
4062 * lynx-low.cc (lynx_target_ops): Update.
4063 * nto-low.cc (nto_target_ops): Update.
4064 * win32-low.cc (win32_target_ops): Update.
4066 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4068 Turn process_stratum_target's read_offsets op into a method of
4071 * target.h (struct process_stratum_target): Remove the target op.
4072 (class process_target): Add the target op. Also add
4073 'supports_read_offsets'.
4074 * target.cc (process_target::read_offsets): Define.
4075 (process_target::supports_read_offsets): Define.
4077 Update the derived classes and callers below.
4079 * server.cc (handle_query): Update.
4080 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
4081 (linux_target_ops): Update.
4082 (linux_process_target::supports_read_offsets): Define.
4083 (linux_read_offsets): Turn into ...
4084 (linux_process_target::read_offsets): ... this.
4085 * linux-low.h (class linux_process_target): Update.
4086 * lynx-low.cc (lynx_target_ops): Update.
4087 * nto-low.cc (nto_target_ops): Update.
4088 * win32-low.cc (win32_target_ops): Update.
4090 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4092 Turn process_stratum_target's stopped_by_watchpoint and
4093 stopped_data_address ops into methods of process_target.
4095 * target.h (struct process_stratum_target): Remove the target ops.
4096 (class process_target): Add the target ops.
4097 * target.cc (process_target::stopped_by_watchpoint): Define.
4098 (process_target::stopped_data_address): Define.
4100 Update the derived classes and callers below.
4102 * remote-utils.cc (prepare_resume_reply): Update.
4103 * linux-low.cc (linux_target_ops): Update.
4104 (linux_stopped_by_watchpoint): Turn into ...
4105 (linux_process_target::stopped_by_watchpoint): ... this.
4106 (linux_stopped_data_address): Turn into ...
4107 (linux_process_target::stopped_data_address): ... this.
4108 * linux-low.h (class linux_process_target): Update.
4109 * lynx-low.cc (lynx_target_ops): Update.
4110 * nto-low.cc (nto_target_ops): Update.
4111 (nto_stopped_by_watchpoint): Turn into ...
4112 (nto_process_target::stopped_by_watchpoint): ... this.
4113 (nto_stopped_data_address): Turn into ...
4114 (nto_process_target::stopped_data_address): ... this.
4115 * nto-low.h (class nto_process_target): Update.
4116 * win32-low.cc (win32_target_ops): Update.
4117 (win32_stopped_by_watchpoint): Turn into ...
4118 (win32_process_target::stopped_by_watchpoint): ... this.
4119 (win32_stopped_data_address): Turn into ...
4120 (win32_process_target::stopped_data_address): ... this.
4121 * win32-low.h (class win32_process_target): Update.
4123 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4125 Turn process_stratum_target's supports_hardware_single_step op into
4126 a method of process_target.
4128 * target.h (struct process_stratum_target): Remove the target op.
4129 (class process_target): Add the target op.
4130 (target_supports_hardware_single_step): Update the macro.
4131 (target_can_do_hardware_single_step): Remove declaration.
4132 * target.cc (process_target::supports_hardware_single_step): Define.
4133 (target_can_do_hardware_single_step): Remove.
4135 Update the derived classes and callers below.
4137 * linux-low.h (class linux_process_target): Update.
4138 * linux-low.cc (linux_target_ops): Update.
4139 (linux_supports_hardware_single_step): Turn into ...
4140 (linux_process_target::supports_hardware_single_step): ... this.
4141 * lynx-low.h (class lynx_process_target): Update.
4142 * lynx-low.cc (lynx_target_ops): Update.
4143 (lynx_process_target::supports_hardware_single_step): Define.
4144 * nto-low.h (class nto_process_target): Update.
4145 * nto-low.cc (nto_target_ops): Update.
4146 (nto_process_target::supports_hardware_single_step): Define.
4147 * win32-low.h (class win32_process_target): Update.
4148 * win32-low.cc (win32_target_ops): Update.
4149 (win32_process_target::supports_hardware_single_step): Define.
4151 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4153 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4154 ops into methods of process_target.
4156 * target.h (struct process_stratum_target): Remove the target ops.
4157 (class process_target): Add the target ops.
4158 (target_stopped_by_hw_breakpoint): Update the macro.
4159 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4160 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4161 (process_target::supports_stopped_by_hw_breakpoint): Define.
4163 Update the derived classes and callers below.
4165 * linux-low.cc (linux_target_ops): Update.
4166 (linux_stopped_by_hw_breakpoint): Turn into ...
4167 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4168 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4169 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4170 * linux-low.h (class linux_process_target): Update.
4171 * lynx-low.cc (lynx_target_ops): Update.
4172 * nto-low.cc (nto_target_ops): Update.
4173 * win32-low.cc (win32_target_ops): Update.
4175 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4177 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4178 ops into methods of process_target.
4180 * target.h (struct process_stratum_target): Remove the target ops.
4181 (class process_target): Add the target ops.
4182 (target_stopped_by_sw_breakpoint): Update the macro.
4183 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4184 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4185 (process_target::supports_stopped_by_sw_breakpoint): Define.
4187 Update the derived classes and callers below.
4189 * linux-low.cc (linux_target_ops): Update.
4190 (linux_stopped_by_sw_breakpoint): Turn into ...
4191 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4192 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4193 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4194 * linux-low.h (class linux_process_target): Update.
4195 * lynx-low.cc (lynx_target_ops): Update.
4196 * nto-low.cc (nto_target_ops): Update.
4197 * win32-low.cc (win32_target_ops): Update.
4199 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4201 Turn process_stratum_target's insert_point and remove_point ops
4202 into methods of process_target.
4204 * target.h (struct process_stratum_target): Remove the target ops.
4205 (class process_target): Add the target ops.
4206 * target.cc (process_target::insert_point): Define.
4207 (process_target::remove_point): Define.
4209 Update the derived classes and callers below.
4211 * mem-break.cc (set_raw_breakpoint_at): Update.
4212 (delete_raw_breakpoint): Update.
4213 (uninsert_raw_breakpoint): Update.
4214 (reinsert_raw_breakpoint): Update.
4215 * linux-low.cc (linux_target_ops): Update.
4216 (linux_insert_point): Turn into ...
4217 (linux_process_target::insert_point): ... this.
4218 (linux_remove_point): Turn into ...
4219 (linux_process_target::remove_point): ... this.
4220 * linux-low.h (class linux_process_target): Update.
4221 * lynx-low.cc (lynx_target_ops): Update.
4222 * nto-low.cc (nto_target_ops): Update.
4223 (nto_insert_point): Turn into ...
4224 (nto_process_target::insert_point): ... this.
4225 (nto_remove_point): Turn into ...
4226 (nto_process_target::remove_point): ... this.
4227 * nto-low.h (class nto_process_target): Update.
4228 * win32-low.cc (win32_target_ops): Update.
4229 (win32_insert_point): Turn into ...
4230 (win32_process_target::insert_point): ... this.
4231 (win32_remove_point): Turn into ...
4232 (win32_process_target::remove_point): ... this.
4233 * win32-low.h (class win32_process_target): Update.
4235 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4237 Turn process_stratum_target's supports_z_point_type op into a
4238 method of process_target.
4240 * target.h (struct process_stratum_target): Remove the target op.
4241 (class process_target): Add the target op.
4242 * target.cc (process_target::supports_z_point_type): Define.
4244 Update the derived classes and callers below.
4246 * mem-break.cc (z_type_supported): Update.
4247 * linux-low.cc (linux_target_ops): Update.
4248 (linux_supports_z_point_type): Turn into ...
4249 (linux_process_target::supports_z_point_type): ... this.
4250 * linux-low.h (class linux_process_target): Update.
4251 * lynx-low.cc (lynx_target_ops): Update.
4252 * nto-low.cc (nto_target_ops): Update.
4253 (nto_supports_z_point_type): Turn into ...
4254 (nto_process_target::supports_z_point_type): ... this.
4255 * nto-low.h (class nto_process_target): Update.
4256 * win32-low.cc (win32_target_ops): Update.
4257 (win32_supports_z_point_type): Turn into ...
4258 (win32_process_target::supports_z_point_type): ... this.
4259 * win32-low.h (class win32_process_target): Update.
4261 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4263 Turn process_stratum_target's read_auxv op into a method of
4266 * target.h (class process_stratum_target): Remove the target op.
4267 (struct process_target): Add the target op. Also add
4268 'supports_read_auxv'.
4269 * target.cc (process_target::read_auxv): Define.
4270 (process_target::supports_read_auxv): Define.
4272 Update the derived classes and callers below.
4274 * server.cc (handle_qxfer_auxv): Update.
4275 (handle_query): Update.
4276 * linux-low.cc (linux_target_ops): Update.
4277 (linux_process_target::supports_read_auxv): Define.
4278 (linux_read_auxv): Turn into ...
4279 (linux_process_target::read_auxv): ... this.
4280 * linux-low.h (class linux_process_target): Update.
4281 * lynx-low.cc (lynx_target_ops): Update.
4282 * nto-low.cc (nto_target_ops): Update.
4283 (nto_process_target::supports_read_auxv): Define.
4284 (nto_read_auxv): Turn into ...
4285 (nto_process_target::read_auxv): ... this.
4286 * nto-low.h (class nto_process_target): Update.
4287 * win32-low.cc (win32_target_ops): Update.
4289 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4291 Turn process_stratum_target's request_interrupt op into a method of
4294 * target.h (struct process_stratum_target): Remove the target op.
4295 (class process_target): Add the target op.
4297 Update the derived classes and callers below.
4299 * remote-utils.cc (putpkt_binary_1): Update.
4300 (input_interrupt): Update.
4302 * server.cc (handle_v_requests): Update.
4303 * linux-low.cc (linux_target_ops): Update.
4304 (linux_request_interrupt): Turn into ...
4305 (linux_process_target::request_interrupt): ... this.
4306 * linux-low.h (class linux_process_target): Update.
4307 * lynx-low.cc (lynx_target_ops): Update.
4308 (lynx_request_interrupt): Turn into ...
4309 (lynx_process_target::request_interrupt): ... this.
4310 * lynx-low.h (class lynx_process_target): Update.
4311 * nto-low.cc (nto_target_ops): Update.
4312 (nto_request_interrupt): Turn into ...
4313 (nto_process_target::request_interrupt): ... this.
4314 * nto-low.h (class nto_process_target): Update.
4315 * win32-low.cc (win32_target_ops): Update.
4316 (win32_request_interrupt): Turn into ...
4317 (win32_process_target::request_interrupt): ... this.
4318 * win32-low.h (class win32_process_target): Update.
4320 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4322 Turn process_stratum_target's look_up_symbols op into a method of
4325 * target.h (struct process_stratum_target): Remove the target op.
4326 (class process_target): Add the target op.
4327 * target.cc (process_target::look_up_symbols): Define.
4329 Update the derived classes and callers below.
4331 * server.cc (handle_query): Update.
4332 * linux-low.cc (linux_target_ops): Update.
4333 (linux_look_up_symbols): Turn into ...
4334 (linux_process_target::look_up_symbols): ... this.
4335 * linux-low.h (class linux_process_target): Update.
4336 * lynx-low.cc (lynx_target_ops): Update.
4337 * nto-low.cc (nto_target_ops): Update.
4338 * win32-low.cc (win32_target_ops): Update.
4340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342 Turn process_stratum_target's read_memory and write_memory
4343 ops into methods of process_target.
4345 * target.h (struct process_stratum_target): Remove the target ops.
4346 (class process_target): Add the target ops.
4348 Update the derived classes and callers below.
4350 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4351 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4352 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4353 (arm_get_syscall_trapinfo): Update.
4354 * linux-cris-low.cc (cris_breakpoint_at): Update.
4355 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4356 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4357 * linux-mips-low.cc (mips_breakpoint_at): Update.
4358 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4359 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4360 * linux-sh-low.cc (sh_breakpoint_at): Update.
4361 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4362 (sparc_store_gregset_from_stack): Update.
4363 (sparc_breakpoint_at): Update.
4364 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4365 * linux-tile-low.cc (tile_breakpoint_at): Update.
4366 * linux-x86-low.cc (x86_breakpoint_at): Update.
4367 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4368 * mem-brea.cc (insert_memory_breakpoint): Update.
4369 (validate_inserted_breakpoint): Update.
4370 * target.cc (read_inferior_memory): Update.
4371 (target_write_memory): Update.
4372 * linux-low.cc (linux_target_ops): Update.
4373 (linux_read_memory): Make a wrapper around the read_memory target
4375 (linux_process_target::read_memory): Rename from linux_read_memory.
4376 (linux_write_memory): Turn into ...
4377 (linux_process_target::write_memory): ... this.
4378 * linux-low.h (class linux_process_target): Update.
4379 * lynx-low.cc (lynx_target_ops): Update.
4380 (lynx_read_memory): Turn into ...
4381 (lynx_process_target::read_memory): ... this.
4382 (lynx_write_memory): Turn into ...
4383 (lynx_process_target::write_memory): ... this.
4384 * lynx-low.h (class lynx_process_target): Update.
4385 * nto-low.cc (nto_target_ops): Update.
4386 (nto_read_memory): Turn into ...
4387 (nto_process_target::read_memory): ... this.
4388 (nto_write_memory): Turn into ...
4389 (nto_process_target::write_memory): ... this.
4390 * nto-low.h (class nto_process_target): Update.
4391 * win32-low.cc (win32_target_ops): Update.
4392 (win32_read_inferior_memory): Turn into ...
4393 (win32_process_target::read_memory): ... this.
4394 (win32_write_inferior_memory): Turn into ...
4395 (win32_process_target::write_memory): ... this.
4396 * win32-low.h (class win32_process_target): Update.
4398 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4400 Turn process_stratum_target's prepare_to_access_memory and
4401 done_accessing_memory ops into methods of process_target.
4403 * target.h (struct process_stratum_target): Remove the target ops.
4404 (class process_target): Add the target ops.
4405 * target.cc (process_target::prepare_to_access_memory): Define.
4406 (process_target::done_accessing_memory): Define.
4407 (prepare_to_access_memory): Update.
4408 (done_accessing_memory): Update.
4410 Update the derived classes and callers below.
4412 * linux-low.cc (linux_target_ops): Update.
4413 (linux_prepare_to_access_memory): Turn into ...
4414 (linux_process_target::prepare_to_access_memory): ... this.
4415 (linux_done_accessing_memory): Turn into ...
4416 (linux_process_target::done_accessing_memory): ... this.
4417 * linux-low.h (class linux_process_target): Update.
4418 * lynx-low.cc (lynx_target_ops): Update.
4419 * nto-low.cc (nto_target_ops): Update.
4420 * win32-low.cc (win32_target_ops): Update.
4422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4424 Turn process_stratum_target's fetch_registers and store_registers
4425 ops into methods of process_target.
4427 * target.h (struct process_stratum_target): Remove the target ops.
4428 (class process_target): Add the target ops.
4429 (fetch_inferior_registers): Update the macro.
4430 (store_inferior_registers): Update the macro.
4432 Update the derived classes and callers below.
4434 * linux-low.cc (linux_target_ops): Update.
4435 (linux_fetch_registers): Turn into ...
4436 (linux_process_target::fetch_registers): ... this.
4437 (linux_store_registers): Turn into ...
4438 (linux_process_target::store_registers): ... this.
4439 * linux-low.h (class linux_process_target): Update.
4440 * lynx-low.cc (lynx_target_ops): Update.
4441 (lynx_fetch_registers): Turn into ...
4442 (lynx_process_target::fetch_registers): ... this.
4443 (lynx_store_registers): Turn into ...
4444 (lynx_process_target::store_registers): ... this.
4445 * lynx-low.h (class lynx_process_target): Update.
4446 * nto-low.cc (nto_target_ops): Update.
4447 (nto_fetch_registers): Turn into ...
4448 (nto_process_target::fetch_registers): ... this.
4449 (nto_store_registers): Turn into ...
4450 (nto_process_target::store_registers): ... this.
4451 * nto-low.h (class nto_process_target): Update.
4452 * win32-low.cc (win32_target_ops): Update.
4453 (win32_fetch_inferior_registers): Turn into ...
4454 (win32_process_target::fetch_registers): ... this.
4455 (win32_store_inferior_registers): Turn into ...
4456 (win32_process_target::store_registers): ... this.
4457 * win32-low.h (class win32_process_target): Update.
4459 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4461 Turn process_stratum_target's wait op into a method of
4464 * target.h (struct process_stratum_target): Remove the target op.
4465 (class process_target): Add the target op.
4467 Update the derived classes and callers below.
4469 * target.cc (target_wait): Update.
4470 * linux-low.cc (linux_target_ops): Update.
4471 (linux_wait): Turn into ...
4472 (linux_process_target::wait): ... this.
4473 * linux-low.h (class linux_process_target): Update.
4474 * lynx-low.cc (lynx_target_ops): Update.
4475 (lynx_wait): Turn into ...
4476 (lynx_process_target::wait): ... this.
4477 * lynx-low.h (class lynx_process_target): Update.
4478 * nto-low.cc (nto_target_ops): Update.
4479 (nto_wait): Turn into ...
4480 (nto_process_target::wait): ... this.
4481 * nto-low.h (class nto_process_target): Update.
4482 * win32-low.cc (win32_target_ops): Update.
4483 (win32_wait): Turn into ...
4484 (win32_process_target::wait): ... this.
4485 (do_initial_child_stuff): Update.
4486 * win32-low.h (class win32_process_target): Update.
4488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4490 Turn process_stratum_target's resume op into a method of
4493 * target.h (struct process_stratum_target): Remove the target op.
4494 (class process_target): Add the target op.
4496 Update the derived classes and callers below.
4498 * server.cc (resume): Update.
4499 * target.cc (target_stop_and_wait): Update.
4500 (target_continue_no_signal): Update.
4501 (target_continue): Update.
4502 * linux-low.cc (linux_target_ops): Update.
4503 (linux_resume): Turn into ...
4504 (linux_process_target::resume): ... this.
4505 * linux-low.h (class linux_process_target): Update.
4506 * lynx-low.cc (lynx_target_ops): Update.
4507 (lynx_resume): Turn into ...
4508 (lynx_process_target::resume): ... this.
4509 * lynx-low.h (class lynx_process_target): Update.
4510 * nto-low.cc (nto_target_ops): Update.
4511 (nto_resume): Turn into ...
4512 (nto_process_target::resume): ... this.
4513 * nto-low.h (class nto_process_target): Update.
4514 * win32-low.cc (win32_target_ops): Update.
4515 (win32_resume): Turn into ...
4516 (win32_process_target::resume): ... this.
4517 (win32_process_target::detach): Update.
4518 (do_initial_child_stuff): Update.
4519 * win32-low.h (class win32_process_target): Update.
4521 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4523 Turn process_stratum_target's thread_alive op into a method of
4526 * target.h (struct process_stratum_target): Remove the target op.
4527 (class process_target): Add the target op.
4528 (mythread_alive): Update the macro.
4530 Update the derived classes and callers below.
4532 * linux-low.cc (linux_target_ops): Update.
4533 (linux_thread_alive): Turn into ...
4534 (linux_process_target::thread_alive): ... this.
4535 (wait_for_sigstop): Update.
4536 * linux-low.h (class linux_process_target): Update.
4537 * lynx-low.cc (lynx_target_ops): Update.
4538 (lynx_thread_alive): Turn into ...
4539 (lynx_process_target::thread_alive): ... this.
4540 * lynx-low.h (class lynx_process_target): Update.
4541 * nto-low.cc (nto_target_ops): Update.
4542 (nto_thread_alive): Turn into ...
4543 (nto_process_target::thread_alive): ... this.
4544 * nto-low.h (class nto_process_target): Update.
4545 * win32-low.cc (win32_target_ops): Update.
4546 (win32_thread_alive): Turn into ...
4547 (win32_process_target::thread_alive): ... this.
4548 * win32-low.h (class win32_process_target): Update.
4550 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4552 Turn process_stratum_target's join op into a method of
4555 * target.h (struct process_stratum_target): Remove the target op.
4556 (class process_target): Add the target op.
4557 (join_inferior): Update the macro.
4559 Update the derived classes and callers below.
4561 * linux-low.cc (linux_target_ops): Update.
4562 (linux_join): Turn into ...
4563 (linux_process_target::join): ... this.
4564 * linux-low.h (class linux_process_target): Update.
4565 * lynx-low.cc (lynx_target_ops): Update.
4566 (lynx_join): Turn into ...
4567 (lynx_process_target::join): ... this.
4568 * lynx-low.h (class lynx_process_target): Update.
4569 * nto-low.cc (nto_target_ops): Update.
4570 (nto_process_target::join): Define.
4571 * nto-low.h (class nto_process_target): Update.
4572 * win32-low.cc (win32_target_ops): Update.
4573 (win32_join): Turn into ...
4574 (win32_process_target::join): ... this.
4575 * win32-low.h (class win32_process_target): Update.
4577 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4579 Turn process_stratum_target's mourn op into a method of
4582 * target.h (struct process_stratum_target): Remove the target op.
4583 (class process_target): Add the target op.
4585 Update the derived classes and callers below.
4587 * target.cc (target_mourn_inferior): Update.
4588 * linux-low.cc (linux_target_ops): Update.
4589 (linux_mourn): Turn into ...
4590 (linux_process_target::mourn): ... this.
4591 (handle_extended_wait): Update.
4592 (linux_process_target::kill): Update.
4593 (linux_process_target::detach): Update.
4594 * linux-low.h (class linux_process_target): Update.
4595 * lynx-low.cc (lynx_target_ops): Update.
4596 (lynx_mourn): Turn into ...
4597 (lynx_process_target::mourn): ... this.
4598 * lynx-low.h (class lynx_process_target): Update.
4599 * nto-low.cc (nto_target_ops): Update.
4600 (nto_mourn): Turn into ...
4601 (nto_process_target::mourn): ... this.
4602 * nto-low.h (class nto_process_target): Update.
4603 * win32-low.cc (win32_target_ops): Update.
4604 (win32_mourn): Turn into ...
4605 (win32_process_target::mourn): ... this.
4606 * win32-low.h (class win32_process_target): Update.
4608 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4610 Turn process_stratum_target's detach op into a method of
4613 * target.h (struct process_stratum_target): Remove the target op.
4614 (class process_target): Add the target op.
4615 (detach_inferior): Update the macro.
4617 Update the derived classes and callers below.
4619 * linux-low.cc (linux_target_ops): Update.
4620 (linux_detach): Turn into ...
4621 (linux_process_target::detach): ... this.
4622 * linux-low.h (class linux_process_target): Update.
4623 * lynx-low.cc (lynx_target_ops): Update.
4624 (lynx_detach): Turn into ...
4625 (lynx_process_target::detach): ... this.
4626 * lynx-low.h (class lynx_process_target): Update.
4627 * nto-low.cc (nto_target_ops): Update.
4628 (nto_detach): Turn into ...
4629 (nto_process_target::detach): ... this.
4630 * nto-low.h (class nto_process_target): Update.
4631 * win32-low.cc (win32_target_ops): Update.
4632 (win32_detach): Turn into ...
4633 (win32_process_target::detach): ... this.
4634 * win32-low.h (class win32_process_target): Update.
4636 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4638 Turn process_stratum_target's kill op into a method of
4641 * target.h (struct process_stratum_target): Remove the target op.
4642 (class process_target): Add the target op.
4644 Update the derived classes and callers below.
4646 * target.cc (kill_inferior): Update.
4647 * linux-low.cc (linux_target_ops): Update.
4648 (linux_kill): Turn into ...
4649 (linux_process_target::kill): ... this.
4650 * linux-low.h (class linux_process_target): Update.
4651 * lynx-low.cc (lynx_target_ops): Update.
4652 (lynx_kill): Turn into ...
4653 (lynx_process_target::kill): ... this.
4654 * lynx-low.h (class lynx_process_target): Update.
4655 * nto-low.cc (nto_target_ops): Update.
4656 (nto_kill): Turn into ...
4657 (nto_process_target::kill): ... this.
4658 * nto-low.h (class nto_process_target): Update.
4659 * win32-low.cc (win32_target_ops): Update.
4660 (win32_kill): Turn into ...
4661 (win32_process_target::kill): ... this.
4662 * win32-low.h (class win32_process_target): Update.
4664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4666 Turn process_stratum_target's attach op into a method of
4669 * target.h (struct process_stratum_target): Remove the target op.
4670 (class process_target): Add the target op.
4671 (myattach): Update the macro.
4673 Update the derived classes and callers below.
4675 * linux-low.cc (linux_target_ops): Update.
4676 (linux_attach): Turn into ...
4677 (linux_process_target::attach): ... this.
4678 * linux-low.h (class linux_process_target): Update.
4679 * lynx-low.cc (lynx_target_ops): Update.
4680 (lynx_attach): Turn into ...
4681 (lynx_process_target::attach): ... this.
4682 * lynx-low.h (class lynx_process_target): Update.
4683 * nto-low.cc (nto_target_ops): Update.
4684 (nto_attach): Turn into ...
4685 (nto_process_target::attach): ... this.
4686 * nto-low.h (class nto_process_target): Update.
4687 * win32-low.cc (win32_target_ops): Update.
4688 (win32_attach): Turn into ...
4689 (win32_process_target::attach): ... this.
4690 * win32-low.h (class win32_process_target): Update.
4692 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4694 Turn process_stratum_target's post_create_inferior op into a method
4697 * target.h (struct process_stratum_target): Remove the target op.
4698 (class process_target): Add the target op.
4699 (target_post_create_inferior): Update the macro.
4700 * target.cc (process_target::post_create_inferior): Define.
4702 Update the derived classes and callers below.
4704 * linux-low.cc (linux_target_ops): Update.
4705 (linux_post_create_inferior): Turn into ...
4706 (linux_process_target::post_create_inferior): ... this.
4707 * linux-low.h (class linux_process_target): Update.
4708 * lynx-low.cc (lynx_target_ops): Update.
4709 * nto-low.cc (nto_target_ops): Update.
4710 * win32-low.cc (win32_target_ops): Update.
4712 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4714 Turn process_stratum_target's create_inferior op into a method of
4717 * target.h (struct process_stratum_target): Remove the target op.
4718 (class process_target): Add the target op.
4719 (create_inferior): Rename the macro to ...
4720 (target_create_inferior): ... this.
4722 Update the derived classes and callers below.
4724 * server.cc (handle_v_run): Update.
4725 (captured_main): Update.
4726 (process_serial_event): Update.
4727 * linux-low.cc (linux_target_ops): Update.
4728 (linux_create_inferior): Turn into ...
4729 (linux_process_target::create_inferior): ... this.
4730 * linux-low.h (class linux_process_target): Update.
4731 * lynx-low.cc (lynx_target_ops): Update.
4732 (lynx_create_inferior): Turn into ...
4733 (lynx_process_target::create_inferior): ... this.
4734 * lynx-low.h (class lynx_process_target): Update.
4735 * nto-low.cc (nto_target_ops): Update.
4736 (nto_create_inferior): Turn into ...
4737 (nto_process_target::create_inferior): ... this.
4738 * nto-low.h (class nto_process_target): Update.
4739 * win32-low.cc (win32_target_ops): Update.
4740 (win32_create_inferior): Turn into ...
4741 (win32_process_target::create_inferior): ... this.
4742 * win32-low.h (class win32_process_target): Update.
4744 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4746 * target.h (class process_target): New class definition.
4747 (struct process_stratum_target) <pt>: New field with type
4749 * linux-low.h (class linux_process_target): Define as a derived
4750 class of 'process_target'.
4751 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4753 * lynx-low.h (class lynx_process_target): Define as a derived
4754 class of 'process_target'.
4755 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4757 * nto-low.h (class nto_process_target): Define as a derived
4758 class of 'process_target'.
4759 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4761 * win32-low.h (class win32_process_target): Define as a derived
4762 class of 'process_target'.
4763 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4766 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4768 * configure: Regenerate.
4770 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4771 Andrew Burgess <andrew.burgess@embecosm.com>
4773 * linux-riscv-low.cc: New file.
4774 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4775 and nat/riscv-linux-tdesc.c.
4776 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4777 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4780 2020-02-14 Tom Tromey <tom@tromey.com>
4782 * acinclude.m4: Don't include acx_configure_dir.m4.
4783 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4784 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4785 (all, install-only, uninstall, clean-info, clean)
4786 (maintainer-clean): Don't recurse.
4787 (subdir_do, all-lib): Remove.
4788 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4790 (generated_files): Update.
4791 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4792 * configure: Rebuild.
4793 * configure.ac: Don't configure gnulib or libiberty.
4796 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4798 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4799 preparing the command line for CreateProcess.
4800 (win32_create_inferior): Reflect the program name in debugging
4801 output that shows the process and its command line.
4803 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4805 * Makefile.in: Rename source files from .c to .cc.
4806 * %.c: Rename to %.cc.
4807 * configure.ac: Rename server.c to server.cc.
4808 * configure: Re-generate.
4810 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4812 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4814 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4816 * win32-low.c (win32_create_inferior): Set signal_pid.
4818 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4819 Pedro Alves <palves@redhat.com>
4821 Skip building gdbserver in a cross-configuration.
4822 * configure.srv: Set $gdbserver_host depending on whether $target
4823 is $host. Use $gdbserver_host instead of $host.
4825 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4827 * configure: Re-generate.
4829 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4831 * configure: Re-generate.
4833 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4835 * acinclude.m4: Update warning.m4 path.
4837 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4839 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4840 (handle_exception): Set siginfo_er.
4841 (win32_xfer_siginfo): New function.
4843 2020-02-07 Tom Tromey <tom@tromey.com>
4844 Pedro Alves <palves@redhat.com>
4846 * README: Update build documentation.
4847 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4849 * configure.ac: Update paths.
4850 * configure: Rebuild.
4851 * acinclude.m4: Update paths.
4852 * Makefile.in: Update include paths.
4853 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4854 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4855 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4856 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4857 (%-generated.c): Update paths.
4858 * Move entire directory from ../gdb/gdbserver.
4860 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4862 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4864 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4866 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4867 assignment instead of srv_linux_obj.
4869 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4871 * server.c (handle_qxfer_libraries): Write segment-address with
4874 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4876 * Makefile.in (install-strip): New target.
4877 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4878 * aclocal.m4: Regenerate.
4879 * configure: Regenerate.
4880 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4882 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4884 * Makefile.in (SFILES): Adjust paths to point to real files.
4885 (OBS): Move waitstatus.o to target/waitstatus.o.
4886 (TAGS): Transform paths appropriately.
4888 (nat/%.o): ... this pattern rule.
4890 (target/%.o): ... this pattern rule.
4891 * configure.srv: Adjust paths throughout to include nat/ prefix
4892 with the revant files.
4893 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4894 * configure: Regenerate.
4896 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4898 * Makefile.in (TAGS): Remove config files from the recipe.
4900 2020-01-14 Tom Tromey <tom@tromey.com>
4902 * configure: Rebuild.
4903 * configure.ac: Remove any checks that were added to common.m4.
4904 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4907 2020-01-14 Tom Tromey <tom@tromey.com>
4909 * server.h: Include config.h.
4910 * gdbreplay.c: Include config.h.
4911 * configure: Rebuild.
4912 * configure.ac: Don't source common.host.
4913 * acinclude.m4: Update path.
4914 * Makefile.in (INCSUPPORT): New variable.
4915 (INCLUDE_CFLAGS): Add INCSUPPORT.
4916 (SFILES): Update paths.
4917 (version-generated.c): Update path to create-version.sh.
4918 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4920 2020-01-14 Tom Tromey <tom@tromey.com>
4922 * configure.ac (LIBS): Use WIN32APILIBS.
4923 (USE_WIN32API): Don't define.
4924 * configure: Rebuild.
4926 2020-01-14 Tom Tromey <tom@tromey.com>
4928 * configure: Rebuild.
4930 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4932 * Makefile.in (%-generated.c): Remove rule for files from
4935 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4937 * configure: Re-generate.
4939 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4941 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4943 * tracepoint.c (stop_tracing, flush_trace_buffer,
4944 about_to_request_buffer_space, get_trace_state_variable_value,
4945 set_trace_state_variable_value, gdb_collect): Add declaration.
4947 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4949 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4950 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4951 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4952 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4953 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4956 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4958 * inferiors.c: Include gdbsupport/common-inferior.h.
4960 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4962 * hostio-errno.c: Include hostio.h.
4964 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4966 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4969 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4971 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4972 * linux-arm-tdesc.h: Include arch/arm.h.
4974 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4976 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4978 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4980 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4981 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4983 2020-01-10 Pedro Alves <palves@redhat.com>
4985 * fork-child.c (post_fork_inferior): Pass target down to
4987 * inferiors.c (switch_to_thread): Add process_stratum_target
4989 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4990 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4991 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4992 * remote-utils.c (prepare_resume_reply): Pass the target to
4994 * target.c (the_target): Now a process_stratum_target.
4995 (done_accessing_memory): Pass the target to switch_to_thread.
4996 (set_target_ops): Ajust to use process_stratum_target.
4997 * target.h (struct target_ops): Rename to ...
4998 (struct process_stratum_target): ... this.
4999 (the_target, set_target_ops): Adjust.
5000 (prepare_to_access_memory): Adjust comment.
5001 * win32-low.c (child_xfer_memory): Adjust to use
5002 process_stratum_target.
5003 (win32_target_ops): Now a process_stratum_target.
5005 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5006 Pedro Alves <palves@redhat.com>
5008 * win32-low.c (get_child_debug_event): Extract the fatal exception
5009 from the exit status and convert to the equivalent Posix signal
5011 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
5012 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
5014 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5016 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5018 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5020 * server.c (gdbserver_version): Change copyright year to 2020.
5021 * gdbreplay.c (gdbreplay_version): Likewise.
5023 2019-12-19 Christian Biesinger <cbiesinger@google.com>
5025 * configure: Regenerate.
5026 * configure.ac: Quote variable arguments of test.
5028 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5030 * Makefile.in: Fix build with GNU Make 3.81
5032 2019-12-16 Tom Tromey <tromey@adacore.com>
5034 * server.c (get_exec_file): Constify result.
5036 2019-12-10 Christian Biesinger <cbiesinger@google.com>
5038 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
5039 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
5040 * config.in: Regenerate.
5041 * configure: Regenerate.
5042 * configure.ac: Don't check for strerror.
5043 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
5044 Call safe_strerror instead of strerror.
5045 * server.h (strerror): Remove this now-unnecessary declaration.
5046 * tracepoint.c (init_named_socket): Call safe_strerror instead of
5048 (gdb_agent_helper_thread): Likewise.
5049 * utils.c (perror_with_name): Likewise.
5051 2019-11-26 Tom Tromey <tom@tromey.com>
5053 * configure, config.in: Rebuild.
5055 2019-11-26 Tom Tromey <tom@tromey.com>
5057 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
5058 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
5060 * configure, config.in: Rebuild.
5062 2019-11-26 Tom Tromey <tom@tromey.com>
5064 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5065 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
5066 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
5067 * acinclude.m4: Include ax_pthread.m4.
5068 * config.in, configure: Rebuild.
5070 2019-11-26 Christian Biesinger <cbiesinger@google.com>
5072 * debug.c (debug_set_output): Call safe_strerror instead of
5074 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
5075 (linux_kill_one_lwp): Likewise.
5076 (linux_detach_one_lwp): Likewise.
5077 (linux_wait_for_event_filtered): Likewise.
5078 (store_register): Likewise.
5079 * lynx-low.c (lynx_attach): Likewise.
5080 * mem-break.c (insert_memory_breakpoint): Likewise.
5081 (remove_memory_breakpoint): Likewise.
5082 (delete_fast_tracepoint_jump): Likewise.
5083 (set_fast_tracepoint_jump): Likewise.
5084 (uninsert_fast_tracepoint_jumps_at): Likewise.
5085 (reinsert_fast_tracepoint_jumps_at): Likewise.
5086 * nto-low.c (nto_xfer_memory): Likewise.
5087 (nto_resume): Likewise.
5089 2019-11-20 Luis Machado <luis.machado@linaro.org>
5091 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
5092 instead of register count.
5093 * tdesc.c (tdesc_contains_feature): New function.
5094 * tdesc.h (tdesc_contains_feature): New prototype.
5096 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5098 * Makefile.in: Add safe-strerror.c.
5099 * configure: Regenerate.
5100 * configure.ac: Don't source common.host.
5102 2019-11-15 Christian Biesinger <cbiesinger@google.com>
5104 * config.in: Regenerate.
5105 * configure: Regenerate.
5107 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
5109 * ax.c (ax_printf): Handle size_t_arg.
5111 2019-11-06 Christian Biesinger <cbiesinger@google.com>
5113 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
5114 * mi/mi-main.c (output_cores): Likewise.
5115 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
5116 (linux_xfer_osdata_modules): Likewise.
5117 * remote.c (register_remote_support_xml): Likewise.
5118 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
5119 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
5121 2019-11-01 Christian Biesinger <cbiesinger@google.com>
5123 * configure: Regenerate.
5124 * configure.ac: Remove check for strerror_r.
5126 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5128 * config.in: Regenerate.
5129 * configure: Regenerate.
5130 * configure.ac: Also check for strerror_r.
5132 2019-10-31 Christian Biesinger <cbiesinger@google.com>
5134 * ax.h (debug_agent): Remove duplicate declaration.
5136 2019-10-26 Tom de Vries <tdevries@suse.de>
5138 * linux-aarch64-low.c: Fix typos in comments.
5139 * linux-arm-low.c: Same.
5140 * linux-low.c: Same.
5141 * linux-ppc-low.c: Same.
5142 * proc-service.c: Same.
5145 * tracepoint.c: Same.
5146 * win32-low.c: Same.
5148 2019-10-25 Tom Tromey <tromey@adacore.com>
5150 * utils.c (xstrdup): Remove.
5152 2019-10-23 Tom Tromey <tom@tromey.com>
5154 * configure, config.in: Rebuild.
5156 2019-10-23 Tom Tromey <tom@tromey.com>
5158 * configure: Rebuild.
5159 * acinclude.m4: Use m4_include, not sinclude.
5161 2019-10-17 Tom Tromey <tromey@adacore.com>
5163 * configure: Rebuild.
5164 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5165 in AC_CONFIG_FILES invocation.
5166 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5169 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5171 * server.c: Include xml-builtin.h.
5172 (get_xml_features): Don't declare xml_builtins here.
5174 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5176 * Makefile.in: Remove references to vec-ipa.o.
5178 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5180 * Makefile.in: Remove references to vec.c.
5182 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5184 * server.c (server_waiting): Change to bool.
5185 (extended_protocol): Likewise.
5186 (response_needed): Likewise.
5187 (exit_requested): Likewise.
5188 (run_once): Likewise.
5189 (report_no_resumed): Likewise.
5190 (non_stop): Likewise.
5191 (disable_packet_vCont): Likewise.
5192 (disable_packet_Tthread): Likewise.
5193 (disable_packet_qC): Likewise.
5194 (disable_packet_qfThreadInfo): Likewise.
5195 (handle_general_set): Update.
5196 (handle_detach): Update.
5197 (handle_monitor_command): Update.
5198 (handle_query): Update.
5199 (captured_main): Update.
5200 (process_serial_event): Update.
5201 * server.h (server_waiting): Change to bool.
5202 (disable_packet_vCont): Likewise.
5203 (disable_packet_Tthread): Likewise.
5204 (disable_packet_qC): Likewise.
5205 (disable_packet_qfThreadInfo): Likewise.
5206 (run_once): Likewise.
5207 (non_stop): Likewise.
5208 * target.c (target_stop_and_wait): Update.
5210 2019-10-02 Tom Tromey <tromey@adacore.com>
5212 * Makefile.in (SFILES): Add common-inferior.c.
5213 (OBS): Add common-inferior.o.
5214 * server.c (startup_with_shell): Don't define.
5216 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5218 * linux-low.c (linux_low_read_btrace): Update for change to
5221 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5223 * debug.c (debug_threads): Remove comment in favor of the header.
5224 * debug.h (using_threads): Add declaration.
5225 (debug_threads): Add comment.
5226 * linux-aarch64-low.c: Include debug.h and remove declaration of
5228 * nto-low.c: Likewise.
5229 * remote-utils.c: Likewise.
5230 * thread-db.c: Likewise.
5232 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5234 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5235 and powerpc-cell64l-ipa.o.
5236 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5237 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5238 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5241 * spu-low.c: Remove file.
5243 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5244 (parse_spufs_run): Remove.
5245 (ppc_get_pc): Remove Cell/B.E. support.
5246 (ppc_set_pc): Likewise.
5247 (ppc_breakpoint_at): Likewise.
5248 (ppc_arch_setup): Likewise.
5249 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5250 tdesc_powerpc_cell32l.
5251 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5252 or init_registers_powerpc_cell32l.
5253 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5254 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5255 or init_registers_powerpc_cell32l.
5256 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5257 (init_registers_powerpc_cell32l): Remove prototype.
5258 (init_registers_powerpc_cell64l): Likewise.
5260 * target.h (struct target_ops): Remove qxfer_spu member.
5261 * server.c (handle_qxfer_spu): Remove.
5262 (qxfer_packets): Remove entry for "spu".
5263 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5264 * linux-low.c (SPUFS_MAGIC): Remove.
5265 (spu_enumerate_spu_ids): Remove.
5266 (linux_qxfer_spu): Remove.
5267 (linux_target_ops): Remove qxfer_spu member.
5268 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5269 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5270 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5272 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5274 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5275 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5276 * config.in: Regenerate.
5277 * configure: Regenerate.
5279 2019-08-15 Tom Tromey <tromey@adacore.com>
5281 * target.c (target_write_memory): Use gdb::byte_vector.
5283 2019-08-15 Tom Tromey <tromey@adacore.com>
5285 * tracepoint.c (write_inferior_data_pointer)
5286 (write_inferior_integer, write_inferior_int8)
5287 (write_inferior_uinteger, m_tracepoint_action_download)
5288 (r_tracepoint_action_download, x_tracepoint_action_download)
5289 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5290 (download_agent_expr, download_tracepoint_1)
5291 (download_trace_state_variables, upload_fast_traceframes): Update.
5292 * server.c (gdb_write_memory): Update.
5293 * remote-utils.c (relocate_instruction): Update.
5294 * proc-service.c (ps_pdwrite): Update.
5295 * mem-break.c (remove_memory_breakpoint)
5296 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5297 (uninsert_fast_tracepoint_jumps_at)
5298 (reinsert_fast_tracepoint_jumps_at): Update.
5299 * linux-x86-low.c (append_insns)
5300 (i386_install_fast_tracepoint_jump_pad)
5301 (amd64_write_goto_address, i386_write_goto_address): Update.
5302 * linux-s390-low.c (append_insns, s390_write_goto_address):
5304 * linux-ppc-low.c (ppc_relocate_instruction)
5305 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5306 (ppc_write_goto_address): Update.
5307 * linux-aarch64-low.c (append_insns): Update.
5308 * target.h (struct target_ops): Update.
5309 (write_inferior_memory): Don't declare.
5310 * target.c (target_write_memory): Rename from
5311 write_inferior_memory. Remove old target_write_memory.
5313 2019-08-15 Tom Tromey <tromey@adacore.com>
5315 * target.c (write_inferior_memory): Use std::vector.
5317 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5320 * configure.ac: Drop enable-libmcheck support.
5321 * configure, config.in: Rebuild.
5322 * acinclude.m4: Don't include it.
5324 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5326 * configure.srv: Remove Arm xml files.
5328 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5330 * configure.srv: Add new files. Remove xml generated files.
5331 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5333 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5334 * linux-aarch32-tdesc.c: New file.
5335 * linux-aarch32-tdesc.h: New file.
5336 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5337 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5338 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5339 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5340 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5341 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5342 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5343 (arm_read_description): Call arm_linux_read_description.
5344 (initialize_low_arch): Don't init registers.
5345 * linux-arm-tdesc.c: New file.
5346 * linux-arm-tdesc.h: New file.
5348 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5350 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5351 Move counter inside for.
5352 (arm_read_description): Check ptrace earlier.
5353 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5355 2019-07-09 Tom Tromey <tom@tromey.com>
5357 * configure: Rebuild.
5358 * configure.ac: Change common to gdbsupport.
5359 * acinclude.m4: Change common to gdbsupport.
5360 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5361 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5362 common to gdbsupport.
5363 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5364 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5365 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5366 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5367 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5368 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5369 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5370 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5371 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5372 common to gdbsupport.
5374 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5376 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5378 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5380 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5382 * configure.srv: Remove legacy xml.
5383 * linux-aarch64-low.c (initialize_low_arch): Remove
5384 initialize_low_tdesc call.
5385 * linux-aarch64-tdesc-selftest.c: Remove file.
5386 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5387 * linux-x86-low.c (initialize_low_arch): Remove
5388 initialize_low_tdesc call.
5389 * linux-x86-tdesc-selftest.c: Remove file.
5390 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5392 2019-06-20 Tom de Vries <tdevries@suse.de>
5394 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5395 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5397 2019-06-19 Tom de Vries <tdevries@suse.de>
5399 * debug.h (debug_write): Change return type to ssize_t.
5400 * debug.c (debug_write): Same.
5402 2019-06-14 Tom Tromey <tom@tromey.com>
5404 * configure.ac: Use new path to gnulib.
5405 * configure: Rebuild.
5406 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5409 2019-06-11 Tom Tromey <tom@tromey.com>
5411 * Makefile.in (SFILES): Add alloc.c.
5413 (IPA_OBJS): Add alloc-ipa.o.
5414 (alloc-ipa.o): New target.
5415 (%.o: ../%.c): New pattern rule.
5417 2019-06-10 Tom Tromey <tromey@adacore.com>
5419 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5420 end warning with a newline.
5421 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5423 * thread-db.c (attach_thread): Don't end warning with a newline.
5424 (thread_db_notice_clone): Likewise.
5425 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5427 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5428 end warning with a newline.
5430 2019-06-04 Pedro Alves <palves@redhat.com>
5432 * server.c (captured_main): Use make_unique_xstrdup.
5434 2019-06-02 Tom Tromey <tom@tromey.com>
5436 * gdbreplay.c (fromhex): Remove.
5437 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5439 2019-05-29 Tom Tromey <tromey@adacore.com>
5441 * configure: Rebuild.
5443 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5445 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5446 sign extension code on 32-bit builds.
5448 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5451 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5453 2019-04-19 Tom Tromey <tom@tromey.com>
5455 * server.c (struct vstop_notif): Derive from notif_event.
5457 (queue_stop_reply): Update.
5458 (remove_all_on_match_ptid): Change type. Rewrite.
5459 (discard_queued_stop_replies): Rewrite.
5460 (in_queued_stop_replies_ptid): Change type.
5461 (in_queued_stop_replies): Rewrite.
5462 (notif_stop): Update.
5463 (queue_stop_reply_callback): Update.
5464 (captured_main): Don't call initialize_notif.
5465 (push_stop_notification): Update.
5466 * notif.c (notif_write_event, handle_notif_ack)
5467 (notif_event_enque, notif_push): Update.
5468 (notif_event_xfree, initialize_notif): Remove.
5469 * notif.h (struct notif_event): Include <list>, not
5471 (struct notif_server) <queue>: Now a std::list.
5472 (notif_event_p): Remove typedef.
5473 (initialize_notif): Don't declare.
5474 (struct notif_event): Add virtual destructor.
5476 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5478 * ax.c (ax_vdebug): Call debug_printf.
5479 * debug.c (debug_write): New function.
5480 * debug.h (debug_write): New declaration.
5481 * linux-low.c (sigchld_handler): Call debug_write.
5483 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5485 * debug.c (debug_set_output): New function.
5486 (debug_vprintf): Send output to debug_file.
5487 (debug_flush): Likewise.
5488 * debug.h (debug_set_output): New declaration.
5489 * server.c (handle_monitor_command): Add debug-file option.
5490 (captured_main): Likewise.
5492 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5494 * debug.c (remote_debug): Add definition.
5495 * debug.h (remote_debug): Add declaration.
5496 * hostio.c (remote_debug): Remove declaration.
5497 * remote-utils.c (struct ui_file): Likewise.
5498 (remote_debug): Likewise.
5499 * remote-utils.h (remote_debug): Likewise,
5500 * server.c (remote_debug): Remove definition.
5502 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5504 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5505 when using a 64-bit gdbserver.
5507 2019-04-09 Tom Tromey <tromey@adacore.com>
5509 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5511 2019-04-08 Tom Tromey <tom@tromey.com>
5513 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5515 (linux_resume_one_lwp): Likewise.
5517 2019-04-08 Tom Tromey <tom@tromey.com>
5519 * gdbreplay.c: Update.
5520 * linux-low.c: Update.
5523 2019-04-08 Tom Tromey <tom@tromey.com>
5525 * server.c: Use C++ exception handling.
5526 * linux-low.c: Use C++ exception handling.
5527 * gdbreplay.c: Use C++ exception handling.
5529 2019-04-08 Tom Tromey <tom@tromey.com>
5531 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5532 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5533 (captured_main, main): Update.
5534 * gdbreplay.c (main): Update.
5536 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5538 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5539 value in argument pointer, return 1 if the entry is found and 0
5540 otherwise. Move comment.
5541 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5542 * linux-low.h (linux_get_auxv): Declare.
5543 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5545 2019-04-05 Tom Tromey <tromey@adacore.com>
5547 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5550 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5552 * linux-low.c (AT_HWCAP2): Add define if not already included.
5554 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5556 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5557 (aarch64_arch_setup): Call linux_get_hwcap.
5558 * linux-arm-low.c (arm_get_hwcap): Remove function.
5559 (arm_read_description): Call linux_get_hwcap.
5560 * linux-low.c (linux_get_auxv): New function.
5561 (linux_get_hwcap): Likewise.
5562 (linux_get_hwcap2): Likewise.
5563 * linux-low.h (linux_get_hwcap): New declaration.
5564 (linux_get_hwcap2): Likewise.
5565 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5566 (ppc_arch_setup): Call linux_get_hwcap.
5567 * linux-s390-low.c (s390_get_hwcap): Remove function.
5568 (s390_arch_setup): Call linux_get_hwcap.
5570 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5571 Jiong Wang <jiong.wang@arm.com>
5573 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5574 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5576 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5578 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5579 Jiong Wang <jiong.wang@arm.com>
5581 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5582 (aarch64_get_hwcap): New function.
5583 (aarch64_arch_setup): Read APIA hwcap.
5585 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5586 Jiong Wang <jiong.wang@arm.com>
5588 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5589 (initialize_low_tracepoint): Likewise.
5590 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5591 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5592 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5593 (aarch64_linux_read_description): Likewise.
5594 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5596 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5598 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5599 i386_create_target_description for 'segments' parameter.
5600 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5601 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5602 * win32-i386-low.c (i386_arch_setup): Likewise.
5604 2019-03-12 Tom Tromey <tromey@adacore.com>
5606 * linux-low.c (iterate_over_lwps): Update.
5608 2019-03-06 Tom Tromey <tom@tromey.com>
5610 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5611 (captured_main): Use SCOPE_EXIT.
5613 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5615 * configure.srv: Use '$enable_unittest' instead of '$development'
5616 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5619 2019-02-27 Tom Tromey <tromey@adacore.com>
5621 * gdbreplay.c (logchar): Handle \r\n.
5623 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5625 * linux-low.c (linux_attach): Add process before lwp.
5626 * server.c (attach_inferior): Check if already attached.
5628 2019-02-07 Tom Tromey <tom@tromey.com>
5630 * x86-tdesc.h: Rename include guard.
5631 * x86-low.h: Add include guard.
5632 * wincecompat.h: Rename include guard.
5633 * win32-low.h: Add include guard.
5634 * utils.h: Rename include guard.
5635 * tracepoint.h: Rename include guard.
5636 * tdesc.h: Rename include guard.
5637 * target.h: Rename include guard.
5638 * server.h: Rename include guard.
5639 * remote-utils.h: Rename include guard.
5640 * regcache.h: Rename include guard.
5641 * nto-low.h: Rename include guard.
5642 * notif.h: Add include guard.
5643 * mem-break.h: Rename include guard.
5644 * lynx-low.h: Add include guard.
5645 * linux-x86-tdesc.h: Add include guard.
5646 * linux-s390-tdesc.h: Add include guard.
5647 * linux-ppc-tdesc-init.h: Add include guard.
5648 * linux-low.h: Add include guard.
5649 * linux-aarch64-tdesc.h: Add include guard.
5650 * linux-aarch32-low.h: Add include guard.
5651 * inferiors.h: Rename include guard.
5652 * i387-fp.h: Rename include guard.
5653 * hostio.h: Rename include guard.
5654 * gdbthread.h: Rename include guard.
5655 * gdb_proc_service.h: Rename include guard.
5656 * event-loop.h: Rename include guard.
5657 * dll.h: Rename include guard.
5658 * debug.h: Rename include guard.
5659 * ax.h: Rename include guard.
5661 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5664 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5665 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5667 2019-01-25 Tom Tromey <tom@tromey.com>
5669 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5671 2019-01-25 Tom Tromey <tom@tromey.com>
5673 * win32-low.c: Fix common/ includes.
5674 * win32-i386-low.c: Fix common/ includes.
5675 * tracepoint.c: Fix common/ includes.
5676 * thread-db.c: Fix common/ includes.
5677 * target.h: Fix common/ includes.
5678 * symbol.c: Fix common/ includes.
5679 * spu-low.c: Fix common/ includes.
5680 * server.h: Fix common/ includes.
5681 * server.c: Fix common/ includes.
5682 * remote-utils.c: Fix common/ includes.
5683 * regcache.h: Fix common/ includes.
5684 * regcache.c: Fix common/ includes.
5685 * nto-x86-low.c: Fix common/ includes.
5686 * notif.h: Fix common/ includes.
5687 * mem-break.h: Fix common/ includes.
5688 * lynx-low.c: Fix common/ includes.
5689 * lynx-i386-low.c: Fix common/ includes.
5690 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5691 * linux-x86-low.c: Fix common/ includes.
5692 * linux-low.c: Fix common/ includes.
5693 * inferiors.h: Fix common/ includes.
5694 * i387-fp.c: Fix common/ includes.
5695 * hostio.c: Fix common/ includes.
5696 * hostio-errno.c: Fix common/ includes.
5697 * gdbthread.h: Fix common/ includes.
5698 * gdbreplay.c: Fix common/ includes.
5699 * fork-child.c: Fix common/ includes.
5700 * event-loop.c: Fix common/ includes.
5702 (enum gdb_agent_op): Fix common/ includes.
5704 2019-01-21 Tom Tromey <tom@tromey.com>
5706 * tracepoint.c: Fix includes.
5707 * remote-utils.c: Fix includes.
5708 * linux-x86-low.c: Fix includes.
5710 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5712 * gdbreplay.c (gdbreplay_version): Update copyright year in
5714 * server.c (gdbserver_version): Likewise.
5716 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5718 * linux-low.c (add_lwp): Switch ordering.
5720 2018-11-29 Tom Tromey <tom@tromey.com>
5722 * win32-low.c (win32_join): Take pid, not process.
5723 * target.h (struct target_ops) <join>: Change argument type.
5724 (join_inferior): Change argument name.
5725 * spu-low.c (spu_join): Take pid, not process.
5726 * server.c (handle_detach): Preserve pid before destroying
5728 * lynx-low.c (lynx_join): Take pid, not process.
5729 * linux-low.c (linux_join): Take pid, not process.
5731 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5733 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5734 (aarch64_cannot_fetch_register): Likewise.
5735 (struct linux_target_ops): Update references.
5737 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5739 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5741 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5743 * configure.srv (ipa_ppc_linux_regobj): Add
5744 powerpc-isa207-htm-vsx32l-ipa.o and
5745 powerpc-isa207-htm-vsx64l-ipa.o.
5746 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5747 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5748 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5749 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5750 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5751 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5752 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5753 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5754 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5755 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5756 (init_registers_powerpc_isa207_htm_vsx32l)
5757 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5758 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5759 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5760 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5761 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5762 (ppc_store_tm_ctarregset): New functions.
5763 (ppc_regsets): Add entries for HTM regsets.
5764 (ppc_arch_setup): Set htm in features struct when needed. Set
5765 sizes for the HTM regsets.
5766 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5767 (initialize_low_arch): Call
5768 init_registers_powerpc_isa207_htm_vsx32l and
5769 init_registers_powerpc_isa207_htm_vsx64l.
5770 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5771 PPC_TDESC_ISA207_HTM_VSX.
5772 (initialize_low_tracepoint): Call
5773 init_registers_powerpc_isa207_htm_vsx32l and
5774 init_registers_powerpc_isa207_htm_vsx64l.
5776 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5778 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5779 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5780 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5781 (ppc_store_pmuregset): New functions.
5782 (ppc_regsets): Add entries for ebb and pmu regsets.
5783 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5784 pmu regsets are available. Set sizes for these regsets.
5786 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5788 * configure.srv (ipa_ppc_linux_regobj): Add
5789 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5790 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5791 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5792 rs6000/powerpc-isa207-vsx32l.xml, and
5793 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5794 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5795 <PPC_TDESC_ISA207_VSX>: New enum value.
5796 (init_registers_powerpc_isa207_vsx32l): Declare.
5797 (init_registers_powerpc_isa207_vsx64l): Declare.
5798 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5799 (ppc_store_tarregset): New function.
5800 (ppc_regsets): Add entry for the TAR regset.
5801 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5802 size for the TAR regsets.
5803 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5804 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5805 and init_registers_powerpc_isa207_vsx64l.
5806 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5807 (initialize_low_tracepoint): Call
5808 init_registers_powerpc_isa207_vsx32l and
5809 init_registers_powerpc_isa207_vsx64l.
5811 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5812 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5814 * configure.srv (ipa_ppc_linux_regobj): Add
5815 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5816 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5817 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5818 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5819 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5820 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5821 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5822 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5823 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5824 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5825 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5826 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5827 (ppc_hwcap): Add comment.
5828 (ppc_hwcap2): New global.
5829 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5830 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5831 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5832 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5833 when needed. Set sizes for the the DSCR and PPR regsets.
5834 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5835 (initialize_low_arch): Call
5836 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5837 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5838 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5839 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5840 (initialize_low_tracepoint): Call
5841 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5842 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5844 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5846 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5848 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5849 Simon Marchi <simark@simark.ca>
5851 * acinclude.m4: Include "../selftest.m4".
5852 * configure: Regenerate.
5853 * configure.ac: Use "GDB_AC_SELFTEST".
5854 * configure.srv: Use "$enable_unittests" instead of
5855 "$development" when checking whether unit tests have been
5857 * server.c (captured_main): Update message informing that
5858 selftests have been disabled.
5860 2018-10-04 Tom Tromey <tom@tromey.com>
5862 * configure: Rebuild.
5864 2018-10-04 Tom Tromey <tom@tromey.com>
5866 * server.c (handle_status): Rename inner "thread".
5867 (process_serial_event): Declare "res" in 'm' case.
5868 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5869 (iterate_over_lwps): Rename inner "thread".
5870 (linux_qxfer_libraries_svr4): Rename inner "len".
5871 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5873 2018-10-01 Gary Benson <gbenson@redhat.com>
5875 * gdb_proc_service.h: Moved common code to
5876 common/gdb_proc_service.h.
5878 2018-10-01 Gary Benson <gbenson@redhat.com>
5880 * gdb_proc_service.h: Synchronize comments and whitespace with
5881 GDB's version of this file.
5883 2018-09-25 Tom Tromey <tom@tromey.com>
5885 * configure: Rebuild.
5886 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5888 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5890 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5891 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5892 ($(IPA_LIB)): Sort IPA_OBJS.
5894 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5896 * Makefile.in: Remove references to $(ADD_DEPS).
5898 2018-09-16 Tom Tromey <tom@tromey.com>
5900 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5902 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5905 2018-09-05 Tom Tromey <tom@tromey.com>
5907 * configure: Rebuild.
5909 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5912 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5914 2018-08-27 Tom Tromey <tom@tromey.com>
5917 * configure: Rebuild.
5919 2018-08-27 Tom Tromey <tom@tromey.com>
5921 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5922 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5923 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5924 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5925 (s390x_emit_stack_adjust): Add casts to unsigned char.
5927 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5931 * server.h (struct client_state) <disable_randomization>:
5934 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5936 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5938 (mips_supply_ptrace_register): Likewise.
5940 2018-07-22 Tom Tromey <tom@tromey.com>
5942 * configure: Rebuild.
5944 2018-07-22 Tom Tromey <tom@tromey.com>
5946 * win32-low.c (win32_create_inferior): Remove unused variables.
5947 * gdbreplay.c (remote_open): Remove unused variable.
5948 * remote-utils.c (remote_prepare): Remove unused variable.
5949 * x86-tdesc.h (X86_TDESC_H): Define.
5950 (amd64_expedite_regs): Define conditionally.
5951 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5952 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5953 * remote-utils.c (readchar): Remove unused variable.
5955 2018-07-13 Pedro Alves <palves@redhat.com>
5957 * linux-low.c (linux_kill): Change parameter to process_info
5958 pointer instead of pid. Adjust.
5959 * lynx-low.c (lynx_kill): Likewise.
5960 * nto-low.c (nto_kill): Likewise.
5961 * spu-low.c (spu_kill): Likewise.
5962 * win32-low.c (win32_kill): Likewise.
5963 * server.c (handle_v_kill, kill_inferior_callback)
5964 (detach_or_kill_for_exit): Adjust.
5965 * target.c (kill_inferior): Change parameter to process_info
5966 pointer instead of pid. Adjust.
5967 * target.h (struct target_ops) <kill>: Change parameter to
5968 process_info pointer instead of pid. Adjust all implementations
5970 (kill_inferior): Likewise.
5972 2018-07-13 Pedro Alves <palves@redhat.com>
5974 * linux-low.c (linux_detach, linux_join): Change parameter to
5975 process_info pointer instead of pid. Adjust.
5976 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5977 * nto-low.c (nto_detach): Likewise.
5978 * spu-low.c (spu_detach, spu_join): Likewise.
5979 * win32-low.c (win32_detach, win32_join): Likewise.
5980 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5981 * target.h (struct target_ops) <detach, join>: Change parameter to
5982 process_info pointer instead of pid. Adjust all implementations
5984 (detach_inferior, join_inferior): Rename 'pid' parameter to
5987 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5988 Jan Kratochvil <jan.kratochvil@redhat.com>
5989 Paul Fertser <fercerpav@gmail.com>
5990 Tsutomu Seki <sekiriki@gmail.com>
5992 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5993 (OBS): Add 'common/netstuff.o'.
5994 (GDBREPLAY_OBS): Likewise.
5995 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5996 (remote_open): Implement support for IPv6
5998 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
6000 (handle_accept_event): Accept connections from IPv6 sources.
6001 (remote_prepare): Handle IPv6-style hostnames; implement
6002 support for IPv6 connections.
6003 (remote_open): Implement support for printing connections from
6006 2018-07-11 Pedro Alves <palves@redhat.com>
6009 * mem-break.c (any_persistent_commands): Add process_info
6010 parameter and use it instead of relying on the current process.
6011 Change return type to bool.
6012 * mem-break.h (any_persistent_commands): Add process_info
6013 parameter and change return type to bool.
6014 * server.c (handle_detach): Remove require_running_or_return call.
6015 Look up the process_info for the process we're about to detach.
6016 If not found, return back error to GDB. Adjust
6017 any_persistent_commands call to pass down a process pointer.
6019 2018-07-11 Pedro Alves <palves@redhat.com>
6021 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
6022 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
6023 instead of collect_register_by_name.
6024 * regcache.c (regcache_raw_get_unsigned_by_name): New.
6025 * regcache.h (regcache_raw_get_unsigned_by_name): New.
6027 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6028 Pedro Alves <palves@redhat.com>
6030 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
6032 2018-07-03 Tom Tromey <tom@tromey.com>
6034 * linux-low.c: Update.
6035 * lynx-low.c: Update.
6036 * mem-break.c: Update.
6037 * nto-low.c: Update.
6038 * remote-utils.c: Update.
6040 * spu-low.c: Update.
6042 * win32-low.c: Update.
6044 2018-07-03 Tom Tromey <tom@tromey.com>
6048 2018-07-03 Tom Tromey <tom@tromey.com>
6050 * linux-low.c: Update.
6052 2018-07-03 Tom Tromey <tom@tromey.com>
6056 2018-07-03 Tom Tromey <tom@tromey.com>
6058 * linux-low.c: Update.
6059 * linux-mips-low.c: Update.
6060 * lynx-low.c: Update.
6061 * nto-low.c: Update.
6062 * remote-utils.c: Update.
6064 * spu-low.c: Update.
6066 * thread-db.c: Update.
6068 2018-07-03 Tom Tromey <tom@tromey.com>
6070 * linux-low.c: Update.
6071 * linux-mips-low.c: Update.
6072 * lynx-low.c: Update.
6073 * mem-break.c: Update.
6074 * nto-low.c: Update.
6075 * remote-utils.c: Update.
6077 * spu-low.c: Update.
6079 * tracepoint.c: Update.
6081 2018-07-03 Tom Tromey <tom@tromey.com>
6083 * linux-low.c: Update.
6084 * linux-ppc-low.c: Update.
6085 * linux-x86-low.c: Update.
6086 * proc-service.c: Update.
6088 * spu-low.c: Update.
6089 * thread-db.c: Update.
6090 * win32-low.c: Update.
6092 2018-07-03 Tom Tromey <tom@tromey.com>
6094 * linux-low.c: Update.
6095 * lynx-low.c: Update.
6096 * nto-low.c: Update.
6097 * remote-utils.c: Update.
6098 * spu-low.c: Update.
6099 * thread-db.c: Update.
6100 * win32-low.c: Update.
6102 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6104 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
6105 parameter in call to 'amd64_create_target_description'.
6107 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6109 * x86-tdesc.h: Remove executable permission flag.
6111 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6113 * configure.ac: Remove AC_PREREQ, add missing quoting.
6114 * configure: Re-generate.
6115 * config.in: Re-generate.
6116 * aclocal.m4: Re-generate.
6118 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
6120 * tracepoint.h (current_traceframe): Remove declaration.
6122 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6124 * linux-aarch64-low.c (is_sve_tdesc): New function.
6125 (aarch64_sve_regs_copy_to_regcache): Likewise.
6126 (aarch64_sve_regs_copy_from_regcache): Likewise.
6127 (aarch64_regs_info): Add SVE checks.
6128 (initialize_low_arch): Initialize SVE.
6130 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6132 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
6134 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6136 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
6137 (initialize_low_tracepoint): Likewise
6138 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
6139 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
6141 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
6143 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
6145 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6147 * server.h (PBUFSIZ): Increase size
6149 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6151 * regcache.c (regcache::raw_compare): New function.
6152 * regcache.h (regcache::raw_compare): New declaration.
6154 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6156 * regcache.c (new_register_cache): Use new.
6157 (free_register_cache): Use delete.
6158 (register_data): Use const.
6159 (supply_register): Move body inside regcache.
6160 (regcache::raw_supply): New override function.
6161 (collect_register): Move body inside regcache.
6162 (regcache::raw_collect): New override function.
6163 (regcache::get_register_status): New override function.
6164 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6166 2018-06-09 Tom Tromey <tom@tromey.com>
6168 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6170 (event_queue): Use std::queue.
6171 (gdb_event_xfree): Remove.
6172 (initialize_event_loop, process_event, wait_for_event): Update.
6174 2018-06-08 Stan Cox <scox@redhat.com>
6176 * win32-low.c (win32_create_inferior): last_ptid and last_status
6177 moved to client_state.
6179 2018-06-08 Pedro Alves <palves@redhat.com>
6181 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6182 common/common-exceptions.o, common/common-utils.o,
6183 common/errors.o, common/print-utils.o and utils.o.
6184 * gdbreplay.c: Include "common-defs.h" instead of the two
6185 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6186 string.h or alloca.h.
6187 (perror_with_name): Delete.
6188 (remote_open): Use xstrdup instead of strdup.
6189 (main): Rename to ...
6190 (captured_main): ... this.
6193 2018-06-08 Tom Tromey <tom@tromey.com>
6195 * linux-low.c (linux_low_read_btrace): Update.
6197 2018-06-04 Stan Cox <scox@redhat.com>
6199 * server.h (struct client_state): New.
6200 * server.c (cont_thread, general_thread, multi_process)
6201 (report_fork_events, report_vfork_events, report_exec_events)
6202 (report_thread_events, swbreak_feature, hwbreak_feature)
6203 (vCont_supported, disable_randomization, pass_signals)
6204 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6205 Moved to client_state.
6206 * remote-utils.c (remote_debug, noack_mode)
6207 (transport_is_reliable): Moved to client_state.
6208 * tracepoint.c (current_traceframe): Moved to client_state.
6211 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6212 linux-low.c, remote-utils.h, target.c: Use client_state.
6214 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6216 * configure.srv: Add new c/h file.
6218 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6220 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6223 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6225 * gdb.arch/mips-fpregset-core.exp: New test.
6226 * gdb.arch/mips-fpregset-core.c: New test source.
6228 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6231 * hostio.c (require_int): Do not report overflow for integers
6232 between 0xfffffff and 0x7fffffff.
6234 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6236 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6237 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6238 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6240 (the_low_target): Wire them.
6242 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6244 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6245 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6246 mode. Call collect_register_by_name with vscr using
6247 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6248 (ppc_store_vrregset): Add and set vscr_offset variable as in
6249 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6252 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6254 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6255 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6256 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6258 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6260 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6261 (ppc_store_vsxregset): Likewise.
6262 (ppc_fill_vrregset): Likewise.
6263 (ppc_store_vrregset): Likewise.
6264 (ppc_fill_evrregset): Likewise.
6265 (ppc_store_evrregset): Likewise.
6266 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6267 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6270 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6272 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6273 wordsize of the inferior. Call ppc_linux_target_wordsize.
6275 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6277 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6278 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6279 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6280 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6281 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6282 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6283 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6284 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6285 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6286 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6287 (tdesc_powerpc_e500l): Remove.
6288 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6289 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6290 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6291 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6293 (ppc_arch_setup): Remove target description matching code. Fill a
6294 ppc_linux_features struct and call ppc_linux_match_description
6297 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6299 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6300 width of the requested register exceeds the width of the
6302 (mips_cannot_store_register): Likewise.
6304 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6306 * linux-mips-low.c (mips_fetch_register): New function. Update
6308 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6309 (the_low_target): Wire `mips_fetch_register'.
6311 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6313 * lynx-i386-low.c (LYNXOS_178): New macro.
6314 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6315 the layout on LynxOS-178.
6316 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6317 handle floating point registers that are not supported by
6320 2018-05-10 Tom Tromey <tom@tromey.com>
6322 * configure: Rebuild.
6324 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6327 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6328 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6329 Use it to set the expedite_regs field in the given tdesc.
6330 * x86-tdesc.h: New file.
6331 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6332 Adjust following the addition of the new expedite_regs parameter
6333 to init_target_desc.
6334 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6335 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6336 (i386_linux_read_description, amd64_linux_read_description):
6337 Adjust following the addition of the new expedite_regs parameter
6338 to init_target_desc.
6339 * lynx-i386-low.c: #include "x86-tdesc.h".
6340 (lynx_i386_arch_setup): Adjust following the addition of the new
6341 expedite_regs parameter to init_target_desc.
6342 * nto-x86-low.c: #include "x86-tdesc.h".
6343 (nto_x86_arch_setup): Adjust following the addition of the new
6344 expedite_regs parameter to init_target_desc.
6345 * win32-i386-low.c: #include "x86-tdesc.h".
6346 (i386_arch_setup): Adjust following the addition of the new
6347 expedite_regs parameter to init_target_desc.
6349 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6352 * win32-low.c (win32_create_inferior): Add call to my_wait
6353 setting last_status global.
6355 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6358 * win32-low.c (create_process): Only call gdb_tilde_expand if
6359 inferior_cwd is not NULL.
6361 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6363 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6364 registers to the cache if their values have changed.
6365 (i387_xsave_to_cache): Provide default values for x87 control
6366 registers when these features are available, but disabled.
6367 * regcache.c (supply_register_by_name_zeroed): New function.
6368 * regcache.h (supply_register_by_name_zeroed): Declare new
6371 2018-05-07 Tom Tromey <tom@tromey.com>
6373 * configure: Rebuild.
6375 2018-05-04 Tom Tromey <tom@tromey.com>
6377 * configure: Rebuild.
6379 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6380 Pedro Alves <palves@redhat.com>
6382 * linux-aarch64-low.c (aarch64_stopped_data_address):
6385 2018-04-27 Tom Tromey <tom@tromey.com>
6387 * configure: Rebuild.
6389 2018-04-23 Tom Tromey <tom@tromey.com>
6391 * configure: Rebuild.
6393 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6395 * Makefile.in (depcomp): Add "..".
6396 (all_deps_files): New and use it.
6398 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6400 * configure.srv (aarch64*-*-linux*): Don't include xml.
6401 (i[34567]86-*-cygwin*): Likewise.
6402 (i[34567]86-*-linux*): Likewise.
6403 (i[34567]86-*-lynxos*): Likewise.
6404 (i[34567]86-*-mingw32ce*): Likewise.
6405 (i[34567]86-*-mingw*): Likewise.
6406 (i[34567]86-*-nto*): Likewise.
6407 (tic6x-*-uclinux): Likewise.
6408 (x86_64-*-linux*): Likewise.
6409 (x86_64-*-mingw*): Likewise.
6410 (x86_64-*-cygwin*): Likewise.
6412 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6414 * tdesc.c: Remove xml parameter.
6416 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6418 * server.c (get_features_xml): Remove cast.
6419 * tdesc.c (void target_desc::accept): Fill in function.
6420 (tdesc_get_features_xml): Remove old xml creation.
6421 (print_xml_feature::visit_pre): Add xml vistor.
6422 * tdesc.h (struct target_desc): Make xmltarget mutable.
6423 (tdesc_get_features_xml): Remove declaration.
6425 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6427 * tdesc.c (tdesc_architecture_name): Add new function.
6428 (tdesc_osabi_name): Likewise.
6429 (tdesc_get_features_xml): Use new functions.
6431 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6433 * tdesc.c (tdesc_create_flags): Remove.
6434 (tdesc_add_flag): Likewise.
6435 (tdesc_named_type): Likewise.
6436 (tdesc_create_union): Likewise.
6437 (tdesc_create_struct): Likewise.
6438 (tdesc_create_vector): Likewise.
6439 (tdesc_add_bitfield): Likewise.
6440 (tdesc_add_field): Likewise.
6441 (tdesc_set_struct_size): Likewise.
6443 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6445 * tdesc.c (~target_desc): Remove implictly deleted items.
6446 (init_target_desc): Iterate all features.
6447 (tdesc_get_features_xml): Use vector.
6448 (tdesc_create_feature): Create feature.
6449 * tdesc.h (tdesc_feature) Remove
6450 (target_desc): Add features.
6452 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6454 * Makefile.in: Add common/tdesc.c
6455 * tdesc.c (init_target_desc): init all reg_defs from register
6457 (tdesc_create_reg): Create tdesc_reg.
6458 * tdesc.h (tdesc_feature): Add register vector.
6460 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6462 * tdesc.h (struct target_desc) <features>: Change type to
6463 std::vector<std::string>.
6464 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6466 (tdesc_get_features_xml): Likewise.
6467 (tdesc_create_feature): Likewise.
6469 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6471 * regcache.c (find_register_by_number): Return a ref.
6472 (find_regno): Use references.
6473 (register_size): Likewise.
6474 (register_data): Likewise.
6475 * tdesc.c (target_desc::~target_desc): Remove free calls.
6476 (target_desc::operator==): Use std::vector compare.
6477 (init_target_desc): Use reference.
6478 (tdesc_create_reg): Use reg constructors.
6479 * tdesc.h (struct target_desc): Replace pointer with object.
6481 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6483 * regcache.c (find_register_by_number): Make static.
6484 (find_regno): Use find_register_by_number
6485 * regcache.h (struct reg): Remove declaration.
6487 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6489 * tdesc.c (target_desc::~target_desc): Move to here.
6490 (target_desc::operator==): Likewise.
6491 * tdesc.h (target_desc::~target_desc): Move from here.
6492 (target_desc::operator==): Likewise.
6494 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6496 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6498 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6500 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6502 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6503 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6504 and init_registers_s390_gs_linux64.
6506 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6508 * linux-s390-low.c (s390_fill_gs): Remove function.
6509 (s390_fill_gsbc): Remove function.
6510 (s390_regsets): Set fill functions for the guarded storage regsets
6513 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6515 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6516 the word size. Add comment.
6517 (s390_get_wordsize): New function.
6518 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6519 pswm with it. Instead, use s390_get_wordsize to determine the
6520 word size first and derive the correct tdesc from that directly.
6522 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6524 * Makefile.in: Include silent-rules.mk.
6525 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6526 (COMPILE): Add ECHO_CXX.
6527 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6528 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6529 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6530 (version-generated.c): Add ECHO_GEN.
6531 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6532 (IPAGENT_COMPILE): Add ECHO_CXX.
6533 (%-generated.c): Add ECHO_REGDAT.
6535 2018-03-14 Tom Tromey <tom@tromey.com>
6538 * ax.c (ax_printf): Special case for NULL.
6540 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6542 * linux-low.c (linux_qxfer_libraries_svr4): Use
6543 xml_escape_text_append.
6545 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6547 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6549 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6551 * server.c (handle_general_set): Remove unnecessary xstrdup.
6553 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6555 * server.c (parse_debug_format_options): Adjust to
6556 delim_string_to_char_ptr_vec changes.
6557 * thread-db.c (thread_db_load_search): Adjust to
6558 dirnames_to_char_ptr_vec changes.
6560 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6562 * target.h (target_enable_btrace, target_disable_btrace)
6563 (target_read_btrace, target_read_btrace_conf): Turn macro into
6564 inline function. Throw error if target method is not defined.
6565 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6566 check for btrace target method. Be prepared to handle exceptions
6567 from btrace target methods.
6569 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6571 * server.c (captured_main): Change order of error message printed
6572 when the current working directory cannot be found.
6574 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6576 * server.c: Include "filenames.h" and "pathstuff.h".
6577 (program_name): Delete variable.
6578 (program_path): New anonymous class.
6579 (get_exec_wrapper): Use "program_path" instead of
6581 (handle_v_run): Likewise.
6582 (captured_main): Likewise.
6583 (process_serial_event): Likewise.
6585 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6587 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6588 (OBJS): Add "pathstuff.o".
6589 * server.c (current_directory): New global variable.
6590 (captured_main): Initialize "current_directory".
6592 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6594 * tdesc.c: Use common/tdesc.h.
6595 * tdesc.h: Likewise.
6597 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6598 Simon Marchi <simon.marchi@ericsson.com>
6600 * Makefile.in: Switch order of make rules.
6602 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6604 * Makefile.in: Add common directory in build.
6605 * configure.ac: Add common reference.
6606 * configure: Regenerate.
6608 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6610 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6611 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6612 * spu-low.c (spu_target_ops): Likewise.
6613 * win32-low.c (win32_target_ops): Likewise.
6614 * server.c (supported_btrace_packets): Report packets unconditionally.
6615 * target.h (target_ops) <supports_btrace>: Remove.
6616 (target_supports_btrace): Remove.
6618 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6620 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6621 (handle_btrace_disable): Change return type to void. Use exceptions
6623 (handle_btrace_general_set): Catch exception and copy message to
6626 2018-02-08 Tom Tromey <tom@tromey.com>
6628 * linux-low.c (install_software_single_step_breakpoints): Use
6629 make_scoped_restore.
6630 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6631 (do_restore_current_thread_cleanup): Remove.
6632 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6635 2018-02-08 Tom Tromey <tom@tromey.com>
6637 * mem-break.c (set_raw_breakpoint_at): Use
6638 gdb::unique_xmalloc_ptr.
6640 2018-01-30 Pedro Alves <palves@redhat.com>
6643 * target.c (target_terminal::terminal_state): Rename to ...
6644 (target_terminal::m_terminal_state): ... this.
6646 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6648 * linux-low.c (handle_extended_wait): Surround call to
6649 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6651 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6653 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6654 linux_ptrace_attach_fail_reason_string now returning an
6656 (linux_attach): Likewise.
6657 * thread-db.c (attach_thread): Likewise.
6659 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6662 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6663 checking for fs_base/gs_base fields in struct user_regs_struct.
6664 * configure: Regenerate.
6666 2018-01-16 Yao Qi <yao.qi@linaro.org>
6669 * linux-low.c (fetch_register): Call supply_register instead of
6672 2018-01-08 Yao Qi <yao.qi@linaro.org>
6673 Simon Marchi <simon.marchi@ericsson.com>
6675 * Makefile.in (OBS): Remove selftest.o.
6676 * configure.ac: Set srv_selftest_objs if $development is true.
6677 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6678 * configure: Re-generated.
6679 * server.c (captured_main): Wrap variable selftest_filter with
6682 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6684 * server.c (parse_debug_format_options): Return std::string.
6685 (handle_monitor_command, captured_main): Adjust.
6687 2018-01-05 Pedro Alves <palves@redhat.com>
6690 * server.c (captured_main): Pass quiet=false to
6691 save_original_signals_state.
6693 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6695 * gdbreplay.c (gdbreplay_version): Update copyright year in
6697 * server.c (gdbserver_version): Likewise.
6699 2017-12-08 Tom Tromey <tom@tromey.com>
6701 * ax.c (ax_printf): Update.
6703 2017-12-07 Yao Qi <yao.qi@linaro.org>
6705 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6706 aarch64_linux_read_description.
6707 * linux-amd64-ipa.c (idx2mask): New array.
6708 (get_ipa_tdesc): Move idx2mask out.
6709 (initialize_low_tracepoint): Initialize target descriptions.
6710 * linux-i386-ipa.c (idx2mask): New array.
6711 (get_ipa_tdesc): Move idx2mask out.
6712 (initialize_low_tracepoint): Initialize target descriptions.
6714 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6716 * tdesc.c (struct tdesc_type): Change return type.
6717 (tdesc_add_flag): Change parameter type.
6718 (tdesc_add_bitfield): Likewise.
6719 (tdesc_add_field): Likewise.
6720 (tdesc_set_struct_size): Likewise.
6722 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6724 * regcache.c (registers_to_string): Remove unused variable.
6726 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6728 * inferiors.c (for_each_inferior_with_data): Remove.
6729 * inferiors.h (for_each_inferior_with_data): Remove.
6730 * server.c (handle_qxfer_threads_worker): Change parameter type.
6731 (handle_qxfer_threads_proper): Use for_each_thread.
6733 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6735 * inferiors.c (for_each_inferior): Remove.
6736 (clear_inferiors): Use for_each_thread.
6737 * inferiors.h (for_each_inferior): Remove.
6738 * linux-low.c (linux_wait_for_event_filtered): Use
6740 (linux_stabilize_threads): Likewise.
6741 * regcache.c (regcache_release): Likewise.
6742 * server.c (gdb_wants_all_threads_stopped): Likewise.
6743 (clear_pending_status_callback): Remove.
6744 (handle_status): Use for_each_thread.
6745 (captured_main): Likewise.
6746 * win32-low.c (child_init_thread_list): Likewise.
6747 (win32_clear_inferiors): Likewise.
6748 (fake_breakpoint_event): Likewise.
6750 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6752 * inferiors.h (find_inferior): Remove.
6753 * inferiors.c (find_inferior): Remove.
6755 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6757 * linux-low.c (resume_status_pending_p): Update comment.
6758 (need_step_over_p): Update comment.
6760 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6762 * linux-low.c (proceed_one_lwp): Return void, change parameter
6764 (unsuspend_and_proceed_one_lwp): Likewise.
6765 (proceed_all_lwps): Use for_each_thread.
6766 (unstop_all_lwps): Likewise.
6768 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6770 * linux-low.c (linux_resume_one_thread): Return void, take
6772 (linux_resume): Use for_each_thread.
6774 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6776 * linux-low.c (send_sigstop_callback): Return void, change
6777 parameter type. Rename to...
6778 (send_sigstop): ... this.
6779 (suspend_and_send_sigstop_callback): Return void, change parameter
6781 (suspend_and_send_sigstop): ... this.
6782 (stop_all_lwps): Use for_each_thread.
6784 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6786 * linux-low.c (lwp_running): Return bool, remove unused
6788 (linux_stabilize_threads): Use find_thread.
6790 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6792 * linux-low.c (select_singlestep_lwp_callback): Remove.
6793 (count_events_callback): Remove.
6794 (select_event_lwp_callback): Remove.
6795 (select_event_lwp): Use find_thread/for_each_thread.
6797 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6799 * linux-low.c (not_stopped_callback): Return bool, take filter
6801 (linux_wait_for_event_filtered): Use find_thread.
6802 (linux_wait_1): Likewise.
6804 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6806 * linux-low.c (same_lwp): Remove.
6807 (find_lwp_pid): Use find_thread.
6809 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6811 * linux-low.c (delete_lwp_callback): Remove.
6812 (linux_mourn): Use for_each_thread.
6814 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6816 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6817 args parameter, don't check for pid.
6818 (linux_detach): Use for_each_thread.
6820 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6822 * linux-low.c (struct counter): Remove.
6823 (second_thread_of_pid_p): Remove.
6824 (last_thread_of_process_p): Use find_thread.
6826 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6828 * inferiors.c (find_inferior_in_random): Remove.
6829 * inferiors.h (find_inferior_in_random): Remove.
6830 * linux-low.c (status_pending_p_callback): Return bool, accept
6831 parameter ptid directly.
6832 (linux_wait_for_event_filtered): Use find_thread_in_random.
6833 (linux_wait_1): Likewise.
6835 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6837 * inferiors.c (find_inferior_id): Remove.
6838 (find_thread_ptid): Move implemention from find_inferior_id to
6840 * inferiors.h (find_inferior_id): Remove.
6841 * server.c (handle_status): Use find_thread_ptid.
6842 (process_serial_event): Likewise.
6843 * thread-db.c (find_one_thread): Likewise.
6844 (thread_db_thread_handle): Likewise.
6845 * win32-low.c (thread_rec): Likewise.
6846 (child_delete_thread): Likewise.
6847 (win32_thread_alive): Likewise.
6848 (get_child_debug_event): Likewise.
6850 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6852 * linux-mips-low.c (update_watch_registers_callback): Return
6853 void, remove pid_p parameter, don't check for pid.
6854 (mips_insert_point, mips_remove_point): Use for_each_thread.
6856 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6858 * lynx.low (lynx_delete_thread_callback): Remove.
6859 (lynx_mourn): Use for_each_thread.
6861 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6863 * regcache.c (regcache_invalidate_one): Remove.
6864 (regcache_invalidate_pid): use for_each_thread.
6866 2017-11-26 Tom Tromey <tom@tromey.com>
6868 * linux-low.c (linux_create_inferior): Update.
6870 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6872 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6874 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6876 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
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 * configure.srv: Add new file.
6884 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6885 * linux-aarch64-tdesc-selftest.c: New file.
6886 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6888 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6890 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6891 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6892 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6894 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6896 * configure.srv: Add new files.
6897 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6898 aarch64_linux_read_description.
6899 * linux-aarch64-low.c (aarch64_linux_read_description):
6900 Merge with aarch64_arch_setup.
6901 (aarch64_arch_setup): Call aarch64_linux_read_description.
6902 * linux-aarch64-tdesc.c: New file.
6903 * linux-aarch64-tdesc.h: New file.
6905 2017-11-24 Yao Qi <yao.qi@linaro.org>
6907 * configure.srv: Set $srv_regobj for tic6x-linux.
6908 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6909 (tic6x_read_description): Move some code to tic6x_arch_setup.
6910 (tic6x_tdesc_test): New function.
6911 (initialize_low_arch): Call selftests::register_test.
6913 2017-11-22 Yao Qi <yao.qi@linaro.org>
6915 * remote-utils.c (prepare_resume_reply): Use memcpy.
6917 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6919 * linux-low.c (kill_one_lwp_callback): Return void, take
6920 argument directly, don't filter on pid.
6921 (linux_kill): Use for_each_thread.
6923 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6925 * linux-low.c (need_step_over_p): Return bool, remove dummy
6927 (linux_resume, proceed_all_lwps): Use find_thread.
6929 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6931 * linux-low.c (resume_status_pending_p): Return bool, remove
6933 (linux_resume): Use find_thread.
6935 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6937 * linux-low.c (struct thread_resume_array): Remove.
6938 (linux_set_resume_request): Return void, take arguments
6940 (linux_resume): Use for_each_thread.
6942 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6944 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6945 return bool, remove data argument.
6946 (linux_stabilize_threads): Use find_thread.
6948 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6950 * linux-low.c (unsuspend_one_lwp): Remove.
6951 (unsuspend_all_lwps): Use for_each_thread, inline code from
6954 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6956 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6957 * linux-low.c (struct iterate_over_lwps_args): Remove.
6958 (iterate_over_lwps_filter): Remove.
6959 (iterate_over_lwps): Use find_thread.
6961 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6963 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6964 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6965 code from reset_lwp_ptrace_options_callback.
6967 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6969 * linux-arm-low.c (struct update_registers_data): Remove.
6970 (update_registers_callback): Return void, take arguments
6971 directly, don't check thread's pid.
6972 (arm_insert_point, arm_remove_point): Use for_each_thread.
6974 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6976 * win32-low.c (continue_one_thread): Return void, take argument
6978 (child_continue): Use for_each_thread.
6980 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6982 * win32-i386-low.c (update_debug_registers_callback): Rename
6984 (update_debug_registers): ... this, return void, remove pid_p arg.
6985 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6987 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6989 * inferiors.h (struct process_info): Add constructor, initialize
6991 <syscalls_to_catch>: Change type to std::vector<int>.
6992 * inferiors.c (add_process): Allocate process_info with new.
6993 (remove_process): Free process_info with delete.
6994 * linux-low.c (handle_extended_wait): Adjust.
6995 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6996 * server.c (handle_general_set): Adjust.
6998 2017-11-16 Pedro Alves <palves@redhat.com>
7000 * remote-utils.c (remote_close): Block SIGIO signals instead of
7001 uninstalling the SIGIO handler.
7003 2017-11-16 Alan Hayward <alan.hayward@arm.com>
7005 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
7007 2017-11-16 Yao Qi <yao.qi@linaro.org>
7009 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
7010 (tic6x_store_gregset): Likewise.
7011 (tic6x_usrregs_info): Move it up.
7013 2017-11-15 Alan Hayward <alan.hayward@arm.com>
7015 * Makefile.in: Update arch rules.
7016 * configure.srv: Explicitly mark arch/ files.
7018 2017-11-13 Andreas Schwab <schwab@suse.de>
7020 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
7022 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7024 2017-11-06 Pedro Alves <palves@redhat.com>
7026 * config.in, configure: Regenerate.
7028 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7030 * target.c (struct thread_search): Remove.
7031 (thread_search_callback): Remove.
7032 (prepare_to_access_memory): Use for_each_thread instead of
7033 find_inferior. Inline code from thread_search_callback.
7035 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7037 * server.c (struct visit_actioned_threads_data): Remove.
7038 (visit_actioned_threads): Change prototype to take arguments
7040 (resume): Use find_thread instead of find_inferior.
7042 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
7044 * server.c (queue_stop_reply_callback): Change prototype, return
7046 (find_status_pending_thread_callback): Remove.
7047 (handle_status): Replace find_inferior with find_thread and
7050 2017-10-25 Alan Hayward <alan.hayward@arm.com>
7052 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
7054 (aarch64_store_gregset): Likewise.
7055 (aarch64_fill_fpregset): Likewise.
7056 (aarch64_store_fpregset): Likewise.
7058 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
7060 * gdbthread.h (find_thread, for_each_thread): New functions.
7061 * inferiors.c (thread_of_pid): Remove.
7062 (find_any_thread_of_pid): Use find_thread.
7063 * linux-low.c (num_lwps): Use for_each_thread.
7065 2017-10-17 Yao Qi <yao.qi@linaro.org>
7067 * Makefile.in: Remove one rule.
7068 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
7070 2017-10-17 Yao Qi <yao.qi@linaro.org>
7072 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
7073 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
7075 2017-10-17 Yao Qi <yao.qi@linaro.org>
7077 * configure.srv: Rename arm.o with arch/arm.o.
7079 2017-10-17 Yao Qi <yao.qi@linaro.org>
7081 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
7082 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
7083 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
7084 (arch-i386.o, arch-amd64.o): Remove rules.
7085 (arch/%.o): New rule.
7086 Update POSTCOMPILE and COMPILE.pre.
7087 * configure.ac: Invoke AC_CONFIG_COMMANDS.
7088 * configure: Re-generated.
7089 * configure.srv: Replace arch-i386.o with arch/i386.o.
7090 Replace arch-amd64.o with arch/amd64.o.
7092 2017-10-16 Yao Qi <yao.qi@linaro.org>
7094 * configure: Regenerated.
7096 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7098 * inferiors.h: (struct inferior_list): Remove.
7099 (struct inferior_list_entry); Remove.
7100 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
7101 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
7102 get_first_inferior): Remove.
7103 (for_each_inferior, for_each_inferior_with_data, find_inferior,
7104 find_inferior_id, find_inferior_in_random): Change signature.
7105 * inferiors.c (all_threads): Change type to
7106 std::list<thread_info *>.
7107 (get_thread): Remove macro.
7108 (find_inferior, find_inferior_id): Change signature, implement
7110 (find_inferior_in_random): Change signature, implement using
7111 find_thread_in_random.
7112 (for_each_inferior, for_each_inferior_with_data): Change
7113 signature, implement using for_each_thread.
7114 (add_inferior_to_list, remove_inferior): Remove.
7115 (add_thread, get_first_thread, thread_of_pid,
7116 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
7117 (get_first_inferior, one_inferior_p, clear_inferior_list):
7119 (clear_inferiors, get_thread_process): Update.
7120 * gdbthread.h: Include <list>.
7121 (struct thread_info) <entry>: Remove field.
7123 (all_threads): Change type to std::list<thread_info *>.
7124 (get_first_inferior): Add doc.
7125 (find_thread, for_each_thread, find_thread_in_random): New
7127 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
7128 * linux-arm-low.c (update_registers_callback): Update.
7129 * linux-low.c (second_thread_of_pid_p): Update.
7130 (kill_one_lwp_callback, linux_detach_lwp_callback,
7131 delete_lwp_callback, status_pending_p_callback, same_lwp,
7132 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
7133 iterate_over_lwps, not_stopped_callback,
7134 resume_stopped_resumed_lwps, count_events_callback,
7135 select_singlestep_lwp_callback, select_event_lwp_callback,
7136 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
7137 suspend_and_send_sigstop_callback, wait_for_sigstop,
7138 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
7139 lwp_running, linux_set_resume_request, resume_status_pending_p,
7140 need_step_over_p, start_step_over, linux_resume_one_thread,
7141 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
7142 reset_lwp_ptrace_options_callback): Update.
7143 * linux-mips-low.c (update_watch_registers_callback): Update.
7144 * regcache.c (regcache_invalidate_one, regcache_invalidate):
7146 (free_register_cache_thread_one): Remove.
7147 (regcache_release): Update.
7148 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7149 handle_qxfer_threads_worker): Update.
7150 (handle_query): Update, use list iterator.
7151 (visit_actioned_threads, handle_pending_status,
7152 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7153 clear_pending_status_callback, set_pending_status_callback,
7154 find_status_pending_thread_callback, handle_status,
7155 process_serial_event): Update.
7156 * target.c (thread_search_callback): Update.
7157 * thread-db.c (thread_db_get_tls_address): Update.
7158 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7160 * win32-i386-low.c (update_debug_registers_callback): Update.
7161 * win32-low.c (delete_thread_info, child_delete_thread,
7162 continue_one_thread, suspend_one_thread,
7163 get_child_debug_event): Adjust.
7165 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7167 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7168 * inferiors.h: Include <list>.
7169 (struct process_info) <entry>: Remove field.
7171 (pid_of): Change macro to function.
7172 (ptid_of, lwpid_of): Remove macro.
7173 (all_processes): Change type to std::list<process_info *>.
7174 (ALL_PROCESSES): Remove macro.
7175 (for_each_process, find_process): New function.
7176 * inferiors.c (all_processes): Change type to
7177 std::list<process_info *>.
7178 (find_thread_process): Adjust.
7179 (add_process): Likewise.
7180 (remove_process): Likewise.
7181 (find_process_pid): Likewise.
7182 (get_first_process): Likewise.
7183 (started_inferior_callback): Remove.
7184 (have_started_inferiors_p): Adjust.
7185 (attached_inferior_callback): Remove.
7186 (have_attached_inferiors_p): Adjust.
7187 * linux-low.c (check_zombie_leaders): Likewise.
7188 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7189 (x86_linux_update_xmltarget): Adjust.
7190 * server.c (handle_query): Likewise.
7191 (gdb_reattached_process): Remove.
7192 (handle_status): Adjust.
7193 (kill_inferior_callback): Likewise.
7194 (detach_or_kill_inferior): Remove.
7195 (print_started_pid): Likewise.
7196 (print_attached_pid): Likewise.
7197 (detach_or_kill_for_exit): Update.
7198 (process_serial_event): Likewise.
7199 * linux-arm-low.c (arm_new_fork): Likewise.
7201 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7203 * dll.h: Include <list>.
7204 (struct dll_info): Add constructor.
7205 <entry>: Remove field.
7206 (all_dlls): Change type to std::list<dll_info>.
7207 * dll.c: Include <algorithm>.
7208 (get_dll): Remove macro.
7209 (all_dlls): Change type to std::list<dll_info *>.
7210 (free_one_dll): Remove.
7211 (match_dll): Likewise.
7212 (loaded_dll): Adjust.
7213 (unloaded_dll): Adjust to all_dlls type change, use
7214 std::find_if. Inline code from match_dll.
7215 (clear_dlls): Adjust to all_dlls type change.
7216 * server.c (emit_dll_description): Remove.
7217 (handle_qxfer_libraries): Adjust to all_dlls type change,
7218 integrate emit_dll_description's functionality.
7220 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7222 * linux-low.h (struct linux_target_ops) <delete_process>: New
7224 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7225 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7226 (struct linux_target_ops): Add delete_process callback.
7227 * linux-arm-low.c (arm_delete_process): New.
7228 (struct linux_target_ops): Add delete_process callback.
7229 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7230 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7231 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7232 * linux-mips-low.c (mips_linux_delete_process): New.
7233 (struct linux_target_ops): Add delete_process callback.
7234 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7235 * linux-s390-low.c (struct linux_target_ops): Likewise.
7236 * linux-sh-low.c (struct linux_target_ops): Likewise.
7237 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7238 * linux-tile-low.c (struct linux_target_ops): Likewise.
7239 * linux-x86-low.c (x86_linux_delete_process): New.
7240 (struct linux_target_ops): Add delete_process callback.
7241 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7243 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7245 * linux-aarch64-low.c (the_low_target): Add thread delete
7247 * linux-arm-low.c (arm_delete_thread): New function.
7248 (the_low_target): Add thread delete callback.
7249 * linux-bfin-low.c (the_low_target): Likewise.
7250 * linux-crisv32-low.c (the_low_target): Likewise.
7251 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7253 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7255 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7256 * linux-mips-low.c (mips_linux_delete_thread): New function.
7257 (the_low_target): Add thread delete callback.
7258 * linux-ppc-low.c (the_low_target): Likewise.
7259 * linux-s390-low.c (the_low_target): Likewise.
7260 * linux-sh-low.c (the_low_target): Likewise.
7261 * linux-tic6x-low.c (the_low_target): Likewise.
7262 * linux-tile-low.c (the_low_target): Likewise.
7263 * linux-x86-low.c (the_low_target): Likewise.
7264 * linux-xtensa-low.c (the_low_target): Likewise.
7266 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7268 * win32-low.c: Include "common-inferior.h".
7270 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7272 * inferiors.c (set_inferior_cwd): New function.
7273 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7274 (handle_query): Inform that QSetWorkingDir is supported.
7275 * win32-low.c (create_process): Pass the inferior's cwd to
7278 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7280 * inferiors.c (current_inferior_cwd): New global variable.
7281 (get_inferior_cwd): New function.
7282 * inferiors.h (struct process_info) <cwd>: New field.
7284 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7286 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7287 (OBS): Add gdb_tilde_expand.o.
7289 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7291 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7292 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7294 2017-09-29 Pedro Alves <palves@redhat.com>
7296 * ax.c (gdb_parse_agent_expr): Constify.
7297 * ax.h (gdb_parse_agent_expr): Constify.
7298 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7300 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7301 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7302 * remote-utils.h (read_ptid): Constify.
7303 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7304 (process_point_options, process_serial_event): Constify.
7305 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7306 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7307 (cmd_qtbuffer): Constify.
7309 2017-09-29 Pedro Alves <palves@redhat.com>
7311 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7314 2017-09-29 Pedro Alves <palves@redhat.com>
7316 * linux-low.c (handle_extended_wait): Pass parent thread instead
7317 of process to thread_db_notice_clone.
7318 * linux-low.h (thread_db_notice_clone): Replace parent process
7319 parameter with parent thread parameter.
7320 * thread-db.c (find_one_thread): Add comment.
7321 (thread_db_notice_clone): Replace parent process parameter with
7322 parent thread parameter. Temporarily switch to the parent thread.
7324 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7326 * gdbthread.h: Include "common-gdbthread.h".
7327 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7328 "if" when validating the ptid.
7329 * remote-utils.c: Include "gdbthread.h".
7330 (prepare_resume_reply): Use "switch_to_thread".
7331 * target.c (done_accessing_memory): Likewise.
7333 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7335 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7336 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7337 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7338 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7339 s390x-gs-linux64-ipa.o to ipa_obj.
7340 * linux-s390-low.c (HWCAP_S390_GS): New define.
7341 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7343 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7344 (s390_arch_setup): Check for guarded-storage support and choose
7346 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7347 init_registers_s390x_gs_linux64.
7348 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7350 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7351 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7353 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7355 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7357 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7359 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7360 (thread_db_thread_handle): Declare.
7361 * linux-low.c (linux_target_ops): Initialize thread_handle.
7362 * server.c (handle_qxfer_threads_worker): Add support for
7364 * target.h (struct target_ops): Add new function pointer,
7366 (target_thread_handle): Define.
7367 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7369 (thread_db_thread_handle): New function.
7371 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7373 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7374 * linux-low.h (thread_db_notice_clone): Declare.
7375 * thread-db.c (thread_db_notice_clone): New function.
7377 2017-09-21 Pedro Alves <palves@redhat.com>
7379 * server.c (gdb_read_memory, handle_status, process_serial_event)
7380 (handle_serial_event, handle_target_event): Adjust to
7381 set_desired_thread prototype change.
7382 * target.c (set_desired_thread): Remove 'use_general' parameter
7384 * target.h (set_desired_thread): Remove 'use_general' parameter.
7386 2017-09-20 Tom Tromey <tom@tromey.com>
7388 * target.c (target_terminal::terminal_state): Define.
7389 (target_terminal::init): Rename from target_terminal_init.
7390 (target_terminal::inferior): Rename from
7391 target_terminal_inferior.
7392 (target_terminal::ours): Rename from target_terminal_ours.
7393 (target_terminal::ours_for_output, target_terminal::info): New.
7395 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7397 * server.c (accumulate_file_name_length): Remove.
7398 (emit_dll_description): Adjust to std::string change.
7399 (handle_qxfer_libraries): Use std::string to hold document.
7401 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7403 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7404 return type of xml_escape_text.
7405 * server.c (emit_dll_description): Likewise.
7407 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7409 * server.c (captured_main): Accept argument for --selftest.
7410 Update run_tests call.
7411 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7412 when registering selftests.
7414 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7416 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7417 instead of "VEC" for "target_desc.reg_defs".
7418 (regcache_cpy): Likewise.
7419 (registers_to_string): Likewise.
7420 (registers_from_string): Likewise.
7421 (find_regno): Likewise.
7422 (supply_regblock): Likewise.
7423 (regcache_raw_read_unsigned): Likewise.
7424 * tdesc.c (init_target_desc): Likewise.
7425 (tdesc_create_reg): Likewise.
7426 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7427 (struct target_desc) <reg_defs>: Convert to "std::vector".
7428 (target_desc): Do not initialize "reg_defs".
7429 (~target_desc): Update code to use "std::vector" instead of "VEC"
7430 for "target_desc.reg_defs".
7431 (operator==): Likewise.
7433 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7435 * inferiors.h (thread_to_gdb_id): Remove.
7436 * inferiors.c (thread_to_gdb_id): Remove.
7437 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7438 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7439 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7441 * nto-low.c (nto_fetch_registers, nto_store_registers,
7442 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7444 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7446 * inferiors.h (gdb_id_to_thread_id): Remove.
7447 * inferiors.c (gdb_id_to_thread_id): Remove.
7448 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7449 removal. Move pid declaration closer to where it's used.
7451 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7453 * server.c (handle_detach): New function.
7454 (process_serial_event): Move code out, call handle_detach.
7456 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7458 * server.c (require_running): Rename to ...
7459 (require_running_or_return): ... this ...
7460 (require_running_or_break): ... and this.
7461 (handle_query, process_serial_event): Adjust.
7463 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7465 * linux-low.c (linux_set_resume_request): Remove unused
7468 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7470 * server.c (first_thread_of): Remove.
7471 (process_serial_event): Replace usage of first_thread_of with
7472 find_any_thread_of_pid.
7473 * tracepoint.c (same_process_p): Remove.
7474 (gdb_agent_about_to_close): Replace usage of same_process_p with
7475 find_any_thread_of_pid.
7476 * linux-x86-low.c (same_process_callback): Remove.
7477 (x86_arch_setup_process_callback): Replace usage of
7478 same_process_callback with find_any_thread_of_pid.
7479 * thread-db.c (any_thread_of): Remove.
7480 (switch_to_process): Replace usage of any_thread_of with
7481 find_any_thread_of_pid.
7482 * inferiors.c (thread_pid_matches_callback): Remove.
7483 (find_thread_process): Adjust to use find_any_thread_of_pid.
7485 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7487 * regcache.c (get_thread_regcache): Guard calls to "memset"
7490 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7492 * linux-low.c (handle_extended_wait): Use
7493 "allocate_target_description" instead of "XNEW".
7494 * linux-x86-low.c (initialize_low_arch): Likewise.
7496 2017-09-05 Yao Qi <yao.qi@linaro.org>
7498 * configure.srv (srv_i386_regobj): Remove.
7499 (srv_amd64_regobj): Remove.
7500 (srv_regobj): Set it to "" for x86 non-linux targets.
7501 * linux-x86-tdesc.c (i386_linux_read_description):
7502 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7503 (init_registers_i386): Remove the declaration.
7504 (tdesc_i386): Remove the declaration.
7505 (lynx_i386_arch_setup): Call i386_create_target_description.
7506 * nto-x86-low.c: Likewise.
7507 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7508 [!__x86_64__]: include arch/i386.h.
7509 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7511 2017-09-05 Yao Qi <yao.qi@linaro.org>
7513 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7514 i386/amd64-XXX-linux from it.
7516 2017-09-05 Yao Qi <yao.qi@linaro.org>
7518 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7520 (ipa_amd64_linux_regobj): Remove.
7521 (ipa_x32_linux_regobj): Remove.
7523 2017-09-05 Yao Qi <yao.qi@linaro.org>
7525 * Makefile.in (arch-amd64.o): New rule.
7526 * configure.srv: Append arch-amd64.o.
7527 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7528 (get_ipa_tdesc): Call amd64_linux_read_description.
7529 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7530 and init_registers_amd64_XXX.
7531 * linux-x86-low.c (x86_linux_read_description): Call
7532 amd64_linux_read_description.
7533 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7534 (initialize_low_arch): Don't call init_registers_x32_XXX and
7535 init_registers_amd64_XXX.
7536 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7537 and tdesc_amd64_XXX.
7538 [__x86_64__] (amd64_tdesc_test): New function.
7539 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7540 and init_registers_amd64_XXX.
7541 * linux-x86-tdesc.c: Include arch/amd64.h.
7542 (xcr0_to_tdesc_idx): New function.
7543 (i386_linux_read_description): New function.
7544 (amd64_get_ipa_tdesc_idx): New function.
7545 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7546 (amd64_get_ipa_tdesc): Declare.
7548 2017-09-05 Yao Qi <yao.qi@linaro.org>
7550 * configure.srv (srv_i386_linux_xmlfiles): Remove
7551 i386/i386-XXX-linux.xml from it.
7553 2017-09-05 Yao Qi <yao.qi@linaro.org>
7555 * configure.srv: Set srv_i386_linux_regobj empty if $development
7557 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7558 initialize_low_tdesc.
7559 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7560 with #if initialize_low_tdesc.
7561 * linux-x86-tdesc-selftest.c: New file.
7562 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7564 2017-09-05 Yao Qi <yao.qi@linaro.org>
7566 * Makefile.in (arch-i386.o): New rule.
7567 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7568 (x86_64-*-linux*): Likewise.
7569 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7570 include arch/i386.h.
7571 (i386_linux_read_description): Remove code and call
7572 i386_create_target_description.
7573 * tdesc.c (allocate_target_description): New function.
7574 * tdesc.h (set_tdesc_architecture): Remove declaration.
7575 (set_tdesc_osabi): Likewise.
7577 2017-09-05 Yao Qi <yao.qi@linaro.org>
7579 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7580 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7581 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7583 * server.c (get_features_xml): Call tdesc_get_features_xml.
7584 * tdesc.c (set_tdesc_architecture): New function.
7585 (set_tdesc_osabi): New function.
7586 (tdesc_get_features_xml): New function.
7587 (tdesc_create_feature): Add an argument.
7588 * tdesc.h (struct target_desc) <features>: New field.
7589 <arch, osabi>: New field.
7590 (~target_desc): xfree features, arch, and osabi.
7591 (target_desc::oerator==): Don't compare .xmltarget.
7592 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7593 (set_tdesc_osabi): Likewise.
7594 (tdesc_get_features_xml): Likewise.
7596 2017-09-05 Yao Qi <yao.qi@linaro.org>
7598 * linux-x86-tdesc.c: Include selftest.h.
7599 (i386_tdesc_test): New function.
7600 (initialize_low_tdesc): Call selftests::register_test.
7601 * tdesc.h: Include regdef.h.
7602 (target_desc): Override operator == and !=.
7604 2017-09-05 Yao Qi <yao.qi@linaro.org>
7606 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7607 (ipa_obj): Likewise.
7608 * linux-i386-ipa.c: Include common/x86-xstate.h
7609 (get_ipa_tdesc): Call i386_linux_read_description.
7610 (initialize_low_tracepoint): Don't call init_registers_XXX
7611 functions, call initialize_low_tdesc instead.
7612 * linux-x86-low.c (x86_linux_read_description): Call
7613 i386_linux_read_description.
7614 (initialize_low_arch): Don't call init_registers_i386_XXX
7615 functions, call initialize_low_tdesc.
7616 * linux-x86-tdesc.c: New file.
7617 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7618 (i386_get_ipa_tdesc_idx): Declare.
7619 (i386_get_ipa_tdesc): Declare.
7620 (initialize_low_tdesc): Declare.
7622 2017-09-05 Yao Qi <yao.qi@linaro.org>
7624 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7627 2017-09-05 Yao Qi <yao.qi@linaro.org>
7629 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7630 * regcache.c (get_thread_regcache): Use VEC_length.
7631 (init_register_cache): Likewise.
7632 (regcache_cpy): Likewise.
7633 (registers_to_string): Iterate reg_defs via VEC_iterate.
7634 (find_regno): Likewise.
7635 (find_register_by_number): Use VEC_index.
7636 (register_size): Call find_register_by_number.
7637 (register_data): Call find_register_by_number.
7638 (supply_regblock): Use VEC_length.
7639 (regcache_raw_read_unsigned): Likewise.
7640 * tdesc.c (init_target_desc): Iterate reg_defs via
7642 (default_description): Update initializer.
7643 (copy_target_description): Don't update field num_registers.
7644 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7645 <num_registers>: Remove.
7647 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7649 * Makefile.in (.SECONDARY): Define target.
7651 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7653 * linux-low.c (linux_wait_1): Adjust.
7654 * server.c (queue_stop_reply_callback): Adjust.
7656 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7658 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7659 QEnvironmentUnset and QEnvironmentReset packets.
7660 (handle_query): Inform remote that QEnvironmentHexEncoded,
7661 QEnvironmentUnset and QEnvironmentReset are supported.
7663 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7665 * inferiors.h (inferior_target_data): Rename to ...
7666 (thread_target_data): ... this.
7667 (inferior_regcache_data): Rename to ...
7668 (thread_regcache_data): ... this.
7669 (set_inferior_regcache_data): Rename to ...
7670 (set_thread_regcache_data): ... this.
7671 * inferiors.c (inferior_target_data): Rename to ...
7672 (thread_target_data): ... this.
7673 (inferior_regcache_data): Rename to ...
7674 (thread_regcache_data): ... this.
7675 (set_inferior_regcache_data): Rename to ...
7676 (set_thread_regcache_data): ... this.
7677 (free_one_thread): Update.
7678 * linux-low.h (get_thread_lwp): Update.
7679 * regcache.c (get_thread_regcache): Update.
7680 (regcache_invalidate_thread): Update.
7681 (free_register_cache_thread): Update.
7682 * win32-i386-low.c (update_debug_registers_callback): Update.
7683 (win32_get_current_dr): Update.
7684 * win32-low.c (thread_rec): Update.
7685 (delete_thread_info): Update.
7686 (continue_one_thread): Update.
7687 (suspend_one_thread): Update.
7689 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7691 * inferiors.c (set_inferior_target_data): Remove.
7692 * inferiors.h (set_inferior_target_data): Remove.
7694 2017-08-18 Yao Qi <yao.qi@linaro.org>
7696 * Makefile.in (OBS): Add selftest.o.
7697 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7698 * configure, config.in: Re-generated.
7699 * server.c: Include common/sefltest.h.
7700 (captured_main): Handle option --selftest.
7702 2017-08-09 Yao Qi <yao.qi@linaro.org>
7704 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7705 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7706 i386-avx-mpx.o and i386-mmx.o.
7707 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7708 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7709 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7710 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7711 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7712 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7713 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7714 i386/amd64-avx-mpx.xml.
7716 2017-08-09 Yao Qi <yao.qi@linaro.org>
7718 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7719 and x32-avx-avx512.o.
7720 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7721 i386/x32-avx-avx512.xml.
7723 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7725 * tracepoint.h (enum class fast_tpoint_collect_result): New
7727 (fast_tracepoint_collecting): Change return type to
7728 fast_tpoint_collect_result.
7729 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7730 * linux-low.h: Include tracepoint.h.
7731 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7732 fast_tpoint_collect_result.
7733 * linux-low.c (handle_tracepoints): Adjust.
7734 (linux_fast_tracepoint_collecting): Change return type to
7735 fast_tpoint_collect_result.
7736 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7737 linux_wait_1, stuck_in_jump_pad_callback,
7738 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7739 proceed_one_lwp): Adjust to type change.
7741 2017-07-10 Yao Qi <yao.qi@linaro.org>
7743 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7745 2017-06-29 Yao Qi <yao.qi@linaro.org>
7747 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7749 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7751 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7753 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7755 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7757 * linux-low.c (linux_create_inferior): Adjust code to access the
7758 environment information via 'gdb_environ' class.
7759 * lynx-low.c (lynx_create_inferior): Likewise.
7760 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7761 (get_environ): Return a pointer to 'our_environ'.
7762 (captured_main): Initialize 'our_environ'.
7763 * server.h (get_environ): Adjust prototype.
7764 * spu-low.c (spu_create_inferior): Adjust code to access the
7765 environment information via 'gdb_environ' class.
7767 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7769 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7770 usage of "register" keyword.
7772 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7774 * configure: Re-generate.
7776 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7778 * configure: Re-generate.
7780 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7782 * Makefile.in (COMPILE.pre): Add "-x c++".
7784 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7786 * fork-child.c: Conditionally include <signal.h>.
7788 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7790 * server.c (handle_general_set): Handle new packet
7791 "QStartupWithShell".
7792 (handle_query): Add "QStartupWithShell" to the list of supported
7794 (gdbserver_usage): Add help text explaining the
7795 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7797 (captured_main): Recognize and act upon the presence of the new
7800 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7801 Pedro Alves <palves@redhat.com>
7803 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7804 * configure: Regenerate.
7805 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7807 (i[34567]86-*-lynxos*): Likewise.
7808 (spu*-*-*): Likewise.
7809 * fork-child.c: New file.
7810 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7812 (linux_ptrace_fun): New function.
7813 (linux_create_inferior): Adjust function prototype to reflect
7814 change on "target.h". Adjust function code to use
7816 (linux_request_interrupt): Delete "signal_pid".
7817 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7818 (lynx_ptrace_fun): New function.
7819 (lynx_create_inferior): Adjust function prototype to reflect
7820 change on "target.h". Adjust function code to use
7822 * nto-low.c (nto_create_inferior): Adjust function prototype and
7823 code to reflect change on "target.h". Update comments.
7824 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7825 "common-terminal.h" and "environ.h".
7826 (terminal_fd): Moved to fork-child.c.
7827 (old_foreground_pgrp): Likewise.
7828 (restore_old_foreground_pgrp): Likewise.
7829 (last_status): Make it global.
7830 (last_ptid): Likewise.
7831 (our_environ): New variable.
7832 (startup_with_shell): Likewise.
7833 (program_name): Likewise.
7834 (program_argv): Rename to...
7835 (program_args): ...this.
7836 (wrapper_argv): New variable.
7837 (start_inferior): Delete function.
7838 (get_exec_wrapper): New function.
7839 (get_exec_file): Likewise.
7840 (get_environ): Likewise.
7841 (prefork_hook): Likewise.
7842 (post_fork_inferior): Likewise.
7843 (postfork_hook): Likewise.
7844 (postfork_child_hook): Likewise.
7845 (handle_v_run): Update code to deal with arguments coming from the
7846 remote host. Update calls from "start_inferior" to
7848 (captured_main): Likewise. Initialize environment variable. Call
7850 * server.h (post_fork_inferior): New prototype.
7851 (get_environ): Likewise.
7852 (last_status): Declare.
7853 (last_ptid): Likewise.
7854 (signal_pid): Likewise.
7855 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7856 (spu_ptrace_fun): New function.
7857 (spu_create_inferior): Adjust function prototype to reflect change
7858 on "target.h". Adjust function code to use "fork_inferior".
7859 * target.c (target_terminal_init): New function.
7860 (target_terminal_inferior): Likewise.
7861 (target_terminal_ours): Likewise.
7862 * target.h: Include <vector>.
7863 (struct target_ops) <create_inferior>: Update prototype.
7864 (create_inferior): Update macro.
7865 * utils.c (gdb_flush_out_err): New function.
7866 * win32-low.c (win32_create_inferior): Adjust function prototype
7867 and code to reflect change on "target.h".
7869 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7871 * inferiors.c (switch_to_thread): New function.
7873 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7875 * Makefile.in (SFILE): Add "common/job-control.c".
7876 (OBS): Add "job-control.o".
7878 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7880 * Makefile: Remove "@host_makefile_frag@".
7882 2017-05-05 Pedro Alves <palves@redhat.com>
7884 * configure: Regenerate.
7886 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7888 * configure: Regenerate.
7890 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7892 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7893 software_single_step change of return type to
7894 std::vector<CORE_ADDR>.
7895 * linux-low.c (install_software_single_step_breakpoints):
7897 * linux-low.h (install_software_single_step_breakpoints):
7900 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7902 * remote-utils.c: Include "gdb_termios.h" instead of
7904 * terminal.h: Delete file.
7906 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7908 * server.c: Include <vector>.
7909 <program_argv, wrapper_argv>: Convert to std::vector.
7910 (start_inferior): Rewrite function to use C++.
7911 (handle_v_run): Likewise. Update code that calculates the argv
7912 based on the vRun packet; use C++.
7913 (captured_main): Likewise.
7915 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7917 * server.c (handle_v_cont): Initialize thread_resume::thread
7920 2017-04-05 Pedro Alves <palves@redhat.com>
7922 * configure: Regenerate.
7924 2017-04-05 Pedro Alves <palves@redhat.com>
7926 * gdbreplay.c (sync_error): Constify.
7927 * linux-x86-low.c (push_opcode): Constify.
7929 2017-04-05 Pedro Alves <palves@redhat.com>
7931 * win32-low.c (get_child_debug_event)
7932 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7933 Report TARGET_WAITKIND_SPURIOUS instead.
7935 2017-04-05 Pedro Alves <palves@redhat.com>
7937 * remote-utils.c (remote_prepare, remote_open): Constify.
7938 * remote-utils.h (remote_prepare, remote_open): Constify.
7939 * server.c (captured_main): Constify 'port' handling.
7941 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7943 * Makefile.in (clean): Clear .deps.
7945 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7947 * .gitignore: Remove generated files, replace with wildcard.
7948 * (clean): Replace removal of generated files with wildcard.
7949 (version.c): Replace with...
7950 (version-generated.c): ...this.
7951 (xml-builtin.c): Replace with...
7952 (xml-builtin-generated.c): ...this.
7953 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7954 (%.c: *regformats*): Replace with...
7955 (%-generated.c: *regformats*): ...this.
7957 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7959 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7960 (xtensa_fill_gregset): Call collect_register_by_name for
7962 (xtensa_store_gregset): Call supply_register_by_name for
7965 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7967 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7968 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7969 (xtensa_store_gregset): Call supply_register for all registers in
7970 a0_regnum..a0_regnum + C0_NREGS range.
7972 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7974 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7975 (ax-ipa.o: ax.c): Remove.
7976 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7977 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7978 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7979 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7980 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7982 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7984 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7985 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7986 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7987 (errors-ipa.o: ../common/errors.c): Remove.
7988 (format-ipa.o: ../common/format.c): Remove.
7989 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7991 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7993 * Makefile.in (%-ipa.o: %.c): New rule.
7994 (tracepoint-ipa.o: tracepoint.c): Remove.
7995 (utils-ipa.o: utils.c): Remove.
7996 (remote-utils-ipa.o: remote-utils.c): Remove.
7997 (regcache-ipa.o: regcache.c): Remove.
7998 (i386-linux-ipa.o: i386-linux.c): Remove.
7999 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
8000 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
8001 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
8002 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
8003 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
8004 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
8005 (amd64-linux-ipa.o: amd64-linux.c): Remove.
8006 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
8007 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
8008 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
8009 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
8010 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
8011 (aarch64-ipa.o: aarch64.c): Remove.
8012 (s390-linux32-ipa.o: s390-linux32.c): Remove.
8013 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
8014 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
8015 (s390-linux64-ipa.o: s390-linux64.c): Remove.
8016 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
8017 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
8018 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
8019 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
8020 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
8021 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
8022 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
8023 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
8024 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
8025 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
8026 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
8027 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
8028 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
8029 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
8030 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
8031 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
8032 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
8033 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
8034 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
8035 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
8036 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
8037 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
8038 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
8039 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
8040 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
8041 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
8042 (tdesc-ipa.o: tdesc.c): Remove.
8043 (x32-linux-ipa.o: x32-linux.c): Remove.
8044 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
8045 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
8047 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8049 * Makefile.in (%.o: ../arch/%.c): New rule.
8050 (arm.o: ../arch/arm.c): Remove.
8051 (arm-linux.o: ../arch/arm-linux.c): Remove.
8052 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
8053 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
8055 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8057 * Makefile.in (%.o: ../nat/%.c): New rule.
8058 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
8059 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
8060 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
8061 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
8062 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
8063 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
8064 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
8065 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
8066 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
8067 (linux-personality.o: ../nat/linux-personality.c): Remove.
8068 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
8069 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
8070 (x86-linux.o: ../nat/x86-linux.c): Remove.
8071 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
8072 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
8074 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8076 * Makefile.in (%.o: ../common/%.c): New rule.
8077 (signals.o: ../common/signals.c): Remove.
8078 (print-utils.o: ../common/print-utils.c): Remove.
8079 (rsp-low.o: ../common/rsp-low.c): Remove.
8080 (common-utils.o: ../common/common-utils.c): Remove.
8081 (posix-strerror.o: ../common/posix-strerror.c): Remove.
8082 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
8083 (vec.o: ../common/vec.c): Remove.
8084 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
8085 (xml-utils.o: ../common/xml-utils.c): Remove.
8086 (ptid.o: ../common/ptid.c): Remove.
8087 (buffer.o: ../common/buffer.c): Remove.
8088 (format.o: ../common/format.c): Remove.
8089 (filestuff.o: ../common/filestuff.c): Remove.
8090 (agent.o: ../common/agent.c): Remove.
8091 (errors.o: ../common/errors.c): Remove.
8092 (environ.o: ../common/environ.c): Remove.
8093 (common-debug.o: ../common/common-debug.c): Remove.
8094 (cleanups.o: ../common/cleanups.c): Remove.
8095 (common-exceptions.o: ../common/common-exceptions.c): Remove.
8096 (fileio.o: ../common/fileio.c): Remove.
8097 (common-regcache.o: ../common/common-regcache.c): Remove.
8098 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
8099 (new-op.o: ../common/new-op.c): Remove.
8100 (btrace-common.o: ../common/btrace-common.c): Remove.
8102 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8104 * Makefile.in (%.o: ../target/%.c): New rule.
8105 (waitstatus.o: ../target/waitstatus.c): Remove.
8107 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8110 (%.c: ../regformats/%.dat,
8111 (%.c: ../regformats/arm/%.dat,
8112 (%.c: ../regformats/i386/%.dat,
8113 (%.c: ../regformats/rs6000/%.dat): New rules.
8114 (aarch64.c): Remove.
8115 (reg-arm.c): Remove.
8116 (arm-with-iwmmxt.c): Remove.
8117 (arm-with-vfpv2.c): Remove.
8118 (arm-with-vfpv3.c): Remove.
8119 (arm-with-neon.c): Remove.
8120 (reg-bfin.c): Remove.
8121 (reg-cris.c): Remove.
8122 (reg-crisv32.c): Remove.
8124 (i386-linux.c): Remove.
8125 (i386-avx.c): Remove.
8126 (i386-avx-linux.c): Remove.
8127 (i386-avx-avx512.c): Remove.
8128 (i386-avx-avx512-linux.c): Remove.
8129 (i386-mpx.c): Remove.
8130 (i386-mpx-linux.c): Remove.
8131 (i386-avx-mpx-avx512-pku.c): Remove.
8132 (i386-avx-mpx-avx512-pku-linux.c): Remove.
8133 (i386-avx-mpx.c): Remove.
8134 (i386-avx-mpx-linux.c): Remove.
8135 (i386-mmx.c): Remove.
8136 (i386-mmx-linux.c): Remove.
8137 (reg-ia64.c): Remove.
8138 (reg-m32r.c): Remove.
8139 (reg-m68k.c): Remove.
8141 (mips-linux.c): Remove.
8142 (mips-dsp-linux.c): Remove.
8143 (mips64-linux.c): Remove.
8144 (mips64-dsp-linux.c): Remove.
8145 (nios2-linux.c): Remove.
8146 (powerpc-32.c): Remove.
8147 (powerpc-32l.c): Remove.
8148 (powerpc-altivec32l.c): Remove.
8149 (powerpc-cell32l.c): Remove.
8150 (powerpc-vsx32l.c): Remove.
8151 (powerpc-isa205-32l.c): Remove.
8152 (powerpc-isa205-altivec32l.c): Remove.
8153 (powerpc-isa205-vsx32l.c): Remove.
8154 (powerpc-e500l.c): Remove.
8155 (powerpc-64l.c): Remove.
8156 (powerpc-altivec64l.c): Remove.
8157 (powerpc-cell64l.c): Remove.
8158 (powerpc-vsx64l.c): Remove.
8159 (powerpc-isa205-64l.c): Remove.
8160 (powerpc-isa205-altivec64l.c): Remove.
8161 (powerpc-isa205-vsx64l.c): Remove.
8162 (s390-linux32.c): Remove.
8163 (s390-linux32v1.c): Remove.
8164 (s390-linux32v2.c): Remove.
8165 (s390-linux64.c): Remove.
8166 (s390-linux64v1.c): Remove.
8167 (s390-linux64v2.c): Remove.
8168 (s390-te-linux64.c): Remove.
8169 (s390-vx-linux64.c): Remove.
8170 (s390-tevx-linux64.c): Remove.
8171 (s390x-linux64.c): Remove.
8172 (s390x-linux64v1.c): Remove.
8173 (s390x-linux64v2.c): Remove.
8174 (s390x-te-linux64.c): Remove.
8175 (s390x-vx-linux64.c): Remove.
8176 (s390x-tevx-linux64.c): Remove.
8177 (tic6x-c64xp-linux.c): Remove.
8178 (tic6x-c64x-linux.c): Remove.
8179 (tic6x-c62x-linux.c): Remove.
8181 (reg-sparc64.c): Remove.
8182 (reg-spu.c): Remove.
8184 (amd64-linux.c): Remove.
8185 (amd64-avx.c): Remove.
8186 (amd64-avx-linux.c): Remove.
8187 (amd64-avx-avx512.c): Remove.
8188 (amd64-avx-avx512-linux.c): Remove.
8189 (amd64-mpx.c): Remove.
8190 (amd64-mpx-linux.c): Remove.
8191 (amd64-avx-mpx-avx512-pku.c): Remove.
8192 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8193 (amd64-avx-mpx.c): Remove.
8194 (amd64-avx-mpx-linux.c): Remove.
8196 (x32-linux.c): Remove.
8197 (x32-avx.c): Remove.
8198 (x32-avx-linux.c): Remove.
8199 (x32-avx-avx512.c): Remove.
8200 (x32-avx-avx512-linux.c): Remove.
8201 (reg-xtensa.c): Remove.
8202 (reg-tilegx.c): Remove.
8203 (reg-tilegx32.c): Remove.
8205 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8207 * Makefile.in (SFILES): Add "common/environ.c".
8208 (OBJS): Add "common/environ.h".
8210 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8212 * configure.ac: Check if the fs_base and gs_base members of
8213 `struct user_regs_struct' exist.
8214 * config.in: Regenerated.
8215 * configure: Likewise.
8217 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8219 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8221 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8222 (get_next_pcs_syscall_next_pc): Likewise.
8224 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8226 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8227 * nto-x86-low.c: Likewise.
8229 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8231 * Makefile.in: Include disable-implicit-rules.mk.
8233 2016-11-23 Pedro Alves <palves@redhat.com>
8235 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8236 (debug_vprintf): Use std::chrono::steady_clock instead of
8237 gettimeofday. Use '.' instead of ':'.
8238 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8239 (get_timestamp): Use std::chrono::steady_clock instead of
8242 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8244 * Makefile.in: Fix whitespace formatting.
8246 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8248 * Makefile.in (SFILES, OBS): Flatten list and order
8251 2016-11-23 Pedro Alves <palves@redhat.com>
8253 * event-loop.c (handle_file_event): Use warning.
8254 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8255 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8258 2016-11-23 Pedro Alves <palves@redhat.com>
8260 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8262 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8263 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8264 debug_printf and debug_flush for debug output.
8265 * server.c (handle_general_set): Likewise.
8266 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8269 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8271 * Makefile.in (.c.o): Replace rule with ...
8272 (%.o: %.c): ... this one.
8274 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8276 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8277 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8279 * configure.ac: Remove checks for the make program.
8280 * configure: Re-generate.
8282 2016-10-28 Pedro Alves <palves@redhat.com>
8284 * Makefile.in (CXX_DIALECT): Get from configure.
8285 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8286 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8287 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8288 * config.in: Regenerate.
8289 * configure: Regenerate.
8291 2016-10-27 Yao Qi <yao.qi@linaro.org>
8293 * linux-low.c (linux_supports_range_stepping): Return true if
8294 can_software_single_step return true.
8296 2016-10-27 Yao Qi <yao.qi@linaro.org>
8298 * inferiors.c (find_inferior_in_random): New function.
8299 * inferiors.h (find_inferior_in_random): Declare.
8300 * linux-low.c (linux_wait_for_event_filtered): Call
8301 find_inferior_in_random instead of find_inferior.
8303 2016-10-27 Yao Qi <yao.qi@linaro.org>
8305 * linux-low.c (linux_wait_1): If single-step breakpoints are
8306 inserted, remove them.
8308 2016-10-26 Pedro Alves <palves@redhat.com>
8310 * linux-low.c (handle_extended_wait): Link parent/child fork
8312 (linux_wait_1): Unlink them.
8313 (linux_set_resume_request): Ignore resume requests for
8314 already-resumed and unhandled fork child threads.
8315 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8316 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8318 (handle_v_requests) <vCont>: Don't call require_running.
8319 * server.h (in_queued_stop_replies): New declaration.
8321 2016-10-24 Yao Qi <yao.qi@linaro.org>
8324 * linux-aarch64-low.c (append_insns): Cast the return value to
8327 2016-10-10 Yao Qi <yao.qi@linaro.org>
8329 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8331 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8333 * target.c (target_supports_multi_process): New function, moved
8335 * target.h (target_supports_multi_process): ... here. Remove
8338 2016-10-05 Tom Tromey <tom@tromey.com>
8341 * tracepoint.c (handle_tracepoint_bkpts): Check
8342 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8344 2016-10-05 Yao Qi <yao.qi@linaro.org>
8346 * configure.srv: Update the path of arm-*.xml files.
8348 2016-10-05 Terry Guo <terry.guo@arm.com>
8349 Yao Qi <yao.qi@linaro.org>
8351 * Makefile.in: Adjust the path of rules.
8352 * configure.srv: Update the path of xml files.
8353 * regformats/arm-with-iwmmxt.dat: Regenerated.
8354 * regformats/arm-with-neon.dat: Likewise.
8355 * regformats/arm-with-vfpv2.dat: Likewise.
8356 * regformats/arm-with-vfpv3.dat Likewise.
8358 2016-09-30 Yao Qi <yao.qi@linaro.org>
8361 * target.c (target_stop_and_wait): Don't call
8362 target_continue_no_signal, use resume_stop instead.
8364 2016-09-26 Yao Qi <yao.qi@linaro.org>
8366 * linux-low.c (linux_wait_1): Call debug_exit.
8368 2016-09-23 Pedro Alves <palves@redhat.com>
8370 * Makefile.in (SFILES): Add common/new-op.c.
8371 (OBS): Add common/new-op.o.
8372 (new-op.o): New rule.
8374 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8376 * .gitinore: Ignore more files.
8378 2016-09-21 Yao Qi <yao.qi@linaro.org>
8380 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8383 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8385 * server.c (start_inferior): Call target_mourn_inferior instead of
8386 mourn_inferior; pass ptid_t argument to it.
8388 (handle_target_event): Likewise.
8389 * target.c (target_mourn_inferior): New function.
8390 * target.h (mourn_inferior): Delete macro.
8392 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8394 * linux-low.c (lwp_is_stepping): New function.
8396 2016-09-06 Carl Love <cel@us.ibm.com>
8398 * server.c (start_inferior): Fixed comment, requested comment change
8399 didn't get updated correctly. Removed reference to ptrace () call as
8400 it is only true on Linux systems.
8402 2016-09-06 Carl Love <cel@us.ibm.com>
8404 * server.c (start_inferior): Do not call
8405 function target_post_create_inferior () if the
8406 inferior process has already exited.
8408 2016-09-05 Pedro Alves <palves@redhat.com>
8410 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8411 (COMPILE.pre, CC_LD): Use CXX directly.
8412 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8413 * acinclude.m4: Don't include build-with-cxx.m4.
8414 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8415 * configure: Regenerate.
8417 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8420 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8421 call writing data to own_buf.
8423 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8425 * target.c (mywait): Call target_wait instead of
8427 (target_wait): New function.
8429 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8431 * server.c (start_inferior): New variable 'ptid'. Replace calls
8432 to the_target->resume by target_continue{,_no_signal}, depending
8434 * target.c (target_stop_and_wait): Call target_continue_no_signal
8435 instead of the_target->resume.
8436 (target_continue): New function.
8438 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8440 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8442 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8445 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8447 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8448 * linux-arm-low.c (ps_get_thread_area): Likewise.
8449 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8450 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8451 * linux-mips-low.c (ps_get_thread_area): Likewise.
8452 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8453 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8454 * linux-x86-low.c (ps_get_thread_area): Likewise.
8455 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8457 2016-08-19 Pedro Alves <palves@redhat.com>
8459 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8461 2016-08-19 Pedro Alves <palves@redhat.com>
8463 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8464 comment. Use memcpy instead of casting through unsigned long.
8466 2016-08-19 Pedro Alves <palves@redhat.com>
8468 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8469 allocating around 0x80000000.
8471 2016-08-19 Pedro Alves <palves@redhat.com>
8474 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8475 (x32-avx512-linux-ipa.o): New rules.
8476 * configure.ac (x86_64-*-linux*): New x32 check.
8477 * configure.srv (ipa_x32_linux_regobj): New.
8478 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8479 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8481 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8483 * configure: Regenerate.
8485 2016-08-09 Pedro Alves <palves@redhat.com>
8488 * Makefile.in (OBS): Add signals-state-save-restore.o.
8489 (signals-state-save-restore.o): New rule.
8490 * config.in: Regenerate.
8491 * configure: Regenerate.
8492 * linux-low.c: Include "signals-state-save-restore.h".
8493 (linux_create_inferior): Call
8494 restore_original_signals_state.
8495 * server.c: Include "dispositions-save-restore.h".
8496 (captured_main): Call save_original_signals_state.
8498 2016-08-05 Pedro Alves <palves@redhat.com>
8500 * configure: Regenerate.
8502 2016-08-04 Yao Qi <yao.qi@linaro.org>
8504 * linux-low.c (regsets_fetch_inferior_registers): Check
8505 errno is ESRCH or not.
8507 2016-08-02 Yao Qi <yao.qi@linaro.org>
8509 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8510 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8511 (thread_db_load_search): Update.
8512 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8513 td_ta_set_event and td_ta_event_getmsg.
8515 2016-07-26 Pedro Alves <palves@redhat.com>
8518 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8519 of unsigned long for 64-bit registers and use uint32_t instead of
8520 unsigned int for 32-bit registers.
8522 2016-07-26 Pedro Alves <palves@redhat.com>
8524 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8527 2016-07-21 Tom Tromey <tom@tromey.com>
8529 * configure: Rebuild.
8531 2016-07-21 Yao Qi <yao.qi@linaro.org>
8533 * mem-break.c (find_gdb_breakpoint): Cast bp to
8534 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8536 2016-07-21 Yao Qi <yao.qi@linaro.org>
8538 * server.c (handle_v_requests): Support s and S actions
8539 if target_supports_software_single_step return true.
8541 2016-07-21 Yao Qi <yao.qi@linaro.org>
8543 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8544 is resume_step, call maybe_hw_step.
8545 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8547 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8549 (proceed_one_lwp): If resume request is resume_step, install
8550 reinsert breakpoints and call maybe_hw_step.
8552 2016-07-21 Yao Qi <yao.qi@linaro.org>
8554 * linux-low.c (proceed_one_lwp): Declare.
8555 (linux_resume_one_thread): Remove local variable 'step'.
8556 Lift code enqueue signal. Call proceed_one_lwp instead of
8557 linux_resume_one_lwp.
8559 2016-07-21 Yao Qi <yao.qi@linaro.org>
8561 * linux-low.c (linux_resume_one_thread): Call
8562 enqueue_pending_signal.
8564 2016-07-21 Yao Qi <yao.qi@linaro.org>
8566 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8567 * inferiors.c (do_restore_current_thread_cleanup): New function.
8568 (make_cleanup_restore_current_thread): Likewise.
8569 * linux-low.c (install_software_single_step_breakpoints): Call
8570 make_cleanup_restore_current_thread. Switch current_thread to
8573 2016-07-21 Yao Qi <yao.qi@linaro.org>
8575 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8576 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8577 (clone_one_breakpoint): Likewise.
8578 (delete_reinsert_breakpoints): Change parameter to thread.
8580 (has_reinsert_breakpoints): Likewise.
8581 (uninsert_reinsert_breakpoints): Likewise.
8582 (reinsert_reinsert_breakpoints): Likewise.
8583 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8584 (delete_reinsert_breakpoints): Likewise.
8585 (reinsert_reinsert_breakpoints): Likewise.
8586 (uninsert_reinsert_breakpoints): Likewise.
8587 (has_reinsert_breakpoints): Likewise.
8589 2016-07-21 Yao Qi <yao.qi@linaro.org>
8591 * inferiors.c (get_thread_process): Make parameter const.
8592 * inferiors.h (get_thread_process): Update declaration.
8593 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8594 Add new parameters child_thread and parent_thread. Callers
8596 * mem-break.h (clone_all_breakpoints): Update declaration.
8598 2016-07-21 Yao Qi <yao.qi@linaro.org>
8600 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8601 <command_list, handler>: Remove.
8602 (struct gdb_breakpoint): New.
8603 (struct other_breakpoint): New.
8604 (struct reinsert_breakpoint): New.
8605 (is_gdb_breakpoint): New function.
8606 (any_persistent_commands): Update command_list if
8607 is_gdb_breakpoint returns true.
8608 (set_breakpoint): Create breakpoints according to their types.
8609 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8610 (set_gdb_breakpoint_1): Likewise.
8611 (set_gdb_breakpoint): Likewise.
8612 (clear_breakpoint_conditions): Change parameter type to
8613 'struct gdb_breakpoint *'.
8614 (clear_breakpoint_commands): Likewise.
8615 (clear_breakpoint_conditions_and_commands): Likewise.
8616 (add_condition_to_breakpoint): Likewise.
8617 (add_breakpoint_condition): Likewise.
8618 (add_commands_to_breakpoint): Likewise.
8619 (check_breakpoints): Check other_breakpoint.
8620 (clone_one_breakpoint): Clone breakpopint according to its type.
8621 * mem-break.h (struct gdb_breakpoint): Declare.
8622 (set_gdb_breakpoint): Update declaration.
8623 (clear_breakpoint_conditions_and_commands): Likewise.
8624 (add_breakpoint_condition): Likewise.
8625 (add_breakpoint_commands): Likewise.
8626 * server.c (process_point_options): Change parameter type to
8627 'struct gdb_breakpoint *'.
8629 2016-07-21 Yao Qi <yao.qi@linaro.org>
8631 * mem-break.c (set_breakpoint_at): Rename it to ...
8632 (set_breakpoint_type_at): ... it.
8633 (set_breakpoint_at): Call set_breakpoint_type_at.
8634 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8635 * mem-break.h (set_breakpoint_at): Update comments.
8637 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8639 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8641 (nios2_store_gregset): Likewise.
8643 2016-07-01 Pedro Alves <palves@redhat.com>
8644 Antoine Tremblay <antoine.tremblay@ericsson.com>
8646 * linux-low.c: Change interface to take the target lwp_info
8647 pointer directly and return void. Handle detaching from a zombie
8649 (linux_detach_lwp_callback): New function.
8650 (linux_detach): Detach from the leader thread after detaching from
8653 2016-06-28 Yao Qi <yao.qi@linaro.org>
8655 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8656 for variable new_offset.
8657 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8658 (aarch64_ftrace_insn_reloc_cb): Likewise.
8659 (aarch64_ftrace_insn_reloc_tb): Likewise.
8660 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8661 PRIx64 instead of PRIx32.
8663 2016-06-28 Yao Qi <yao.qi@linaro.org>
8665 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8666 (the_low_target): Install arm_get_syscall_trapinfo.
8668 2016-06-28 Yao Qi <yao.qi@linaro.org>
8670 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8672 (the_low_target): Install aarch64_get_syscall_trapinfo.
8674 2016-06-28 Yao Qi <yao.qi@linaro.org>
8676 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8678 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8679 Remove parameter sysno.
8680 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8683 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8685 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8686 (s390_emit_ne_goto): Likewise.
8687 (s390_emit_lt_goto): Likewise.
8688 (s390_emit_le_goto): Likewise.
8689 (s390_emit_gt_goto): Likewise.
8690 (s390_emit_ge_goto): Likewise.
8691 (s390x_emit_eq_goto): Likewise.
8692 (s390x_emit_ne_goto): Likewise.
8693 (s390x_emit_lt_goto): Likewise.
8694 (s390x_emit_le_goto): Likewise.
8695 (s390x_emit_gt_goto): Likewise.
8696 (s390x_emit_ge_goto): Likewise.
8697 (s390_emit_ops_impl): Mark variable static.
8698 (s390x_emit_ops): Likewise.
8700 2016-06-17 Yao Qi <yao.qi@linaro.org>
8702 * linux-low.c (handle_extended_wait): Call
8703 uninsert_reinsert_breakpoints for the parent process. Remove
8704 reinsert breakpoints from the child process. Reinsert them to
8705 the parent process when vfork is done.
8706 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8707 (reinsert_reinsert_breakpoints): New function.
8708 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8709 (reinsert_reinsert_breakpoints): Declare.
8711 2016-06-17 Yao Qi <yao.qi@linaro.org>
8713 * linux-low.c (handle_extended_wait): If the parent is doing
8714 step-over, remove the reinsert breakpoints from the forked child.
8716 2016-06-17 Yao Qi <yao.qi@linaro.org>
8718 * linux-low.c (unsuspend_all_lwps): Declare.
8719 (linux_low_filter_event): If thread exited, call finish_step_over.
8720 If step-over is finished, unsuspend other threads.
8722 2016-06-17 Yao Qi <yao.qi@linaro.org>
8724 * linux-low.c (linux_resume_one_lwp_throw): Assert
8725 has_reinsert_breakpoints returns false.
8726 * mem-break.c (delete_disabled_breakpoints): Assert
8727 bp type isn't reinsert_breakpoint.
8729 2016-06-17 Yao Qi <yao.qi@linaro.org>
8731 * linux-low.c (maybe_hw_step): New function.
8732 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8733 (finish_step_over): Switch current_thread to lwp temporarily,
8734 and assert has_reinsert_breakpoints returns true.
8735 (proceed_one_lwp): Call maybe_hw_step.
8736 * mem-break.c (has_reinsert_breakpoints): New function.
8737 * mem-break.h (has_reinsert_breakpoints): Declare.
8739 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8741 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8743 2016-05-17 Yao Qi <yao.qi@linaro.org>
8745 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8746 instead of find_inferior.
8748 2016-05-05 Yao Qi <yao.qi@linaro.org>
8750 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8751 Initialize res to zero.
8753 2016-05-05 Yao Qi <yao.qi@linaro.org>
8755 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8758 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8760 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8761 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8762 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8764 2016-04-28 Par Olsson <par.olsson@windriver.com>
8765 Simon Marchi <simon.marchi@ericsson.com>
8767 * tracepoint.c (write_inferior_int8): New function.
8768 (cmd_qtenable_disable): Write enable flag using
8769 write_inferior_int8.
8771 2016-04-25 Yao Qi <yao.qi@linaro.org>
8773 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8774 (need_step_over_p): Return zero if the LWP has pending signals
8775 can be delivered on software single step target.
8777 2016-04-25 Yao Qi <yao.qi@linaro.org>
8779 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8780 return instead of error.
8782 2016-04-22 Yao Qi <yao.qi@linaro.org>
8784 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8787 2016-04-22 Yao Qi <yao.qi@linaro.org>
8789 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8790 signal when stepping over breakpoint with software single
8793 2016-04-21 Pedro Alves <palves@redhat.com>
8795 * linux-s390-low.c (s390_collect_ptrace_register)
8796 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8798 (s390_check_regset): Use void * instead of gdb_byte *.
8800 2016-04-20 Pedro Alves <palves@redhat.com>
8802 * configure: Renegerate.
8804 2016-04-20 Yao Qi <yao.qi@linaro.org>
8806 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8807 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8809 (arm_store_gregset): Likewise.
8811 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8813 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8814 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8815 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8816 (amd64-avx-mpx-linux.c): New rules.
8817 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8818 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8819 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8820 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8821 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8822 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8823 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8824 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8825 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8826 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8827 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8828 * linux-x86-low.c (x86_linux_read_description): Add case for
8829 X86_XSTATE_AVX_MPX_MASK.
8830 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8831 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8832 init_registers_i386_avx_mpx_linux.
8833 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8834 (initialize_low_tracepoint): Call
8835 init_registers_i386_avx_mpx_linux.
8836 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8837 (initialize_low_tracepoint): Call
8838 init_registers_amd64_avx_mpx_linux.
8839 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8840 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8841 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8844 2016-04-18 Pedro Alves <palves@redhat.com>
8846 * configure: Regenerate.
8848 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8850 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8851 (aarch64_emit_sub): Likewise.
8853 2016-04-12 Pedro Alves <palves@redhat.com>
8855 * utils.c (prepare_to_throw_exception): Delete.
8857 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8859 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8861 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8863 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8865 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8867 * linux-aarch64-ipa.c: Add <elf.h> include.
8868 * linux-ppc-ipa.c: Add <elf.h> include.
8869 * linux-s390-ipa.c: Add <elf.h> include.
8871 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8873 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8874 (get_raw_reg_ptr): Likewise.
8875 (get_trace_state_variable_value_ptr): Likewise.
8876 (set_trace_state_variable_value_ptr): Likewise.
8877 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8880 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8881 Marcin Kościelnicki <koriakin@0x04.net>
8884 * linux-ppc-low.c (emit_insns): New function.
8885 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8886 (ppc_emit_prologue): New function.
8887 (ppc_emit_epilogue): New function.
8888 (ppc_emit_add): New function.
8889 (ppc_emit_sub): New function.
8890 (ppc_emit_mul): New function.
8891 (ppc_emit_lsh): New function.
8892 (ppc_emit_rsh_signed): New function.
8893 (ppc_emit_rsh_unsigned): New function.
8894 (ppc_emit_ext): New function.
8895 (ppc_emit_zero_ext): New function.
8896 (ppc_emit_log_not): New function.
8897 (ppc_emit_bit_and): New function.
8898 (ppc_emit_bit_or): New function.
8899 (ppc_emit_bit_xor): New function.
8900 (ppc_emit_bit_not): New function.
8901 (ppc_emit_equal): New function.
8902 (ppc_emit_less_signed): New function.
8903 (ppc_emit_less_unsigned): New function.
8904 (ppc_emit_ref): New function.
8905 (ppc_emit_const): New function.
8906 (ppc_emit_reg): New function.
8907 (ppc_emit_pop): New function.
8908 (ppc_emit_stack_flush): New function.
8909 (ppc_emit_swap): New function.
8910 (ppc_emit_stack_adjust): New function.
8911 (ppc_emit_call): New function.
8912 (ppc_emit_int_call_1): New function.
8913 (ppc_emit_void_call_2): New function.
8914 (ppc_emit_if_goto): New function.
8915 (ppc_emit_goto): New function.
8916 (ppc_emit_eq_goto): New function.
8917 (ppc_emit_ne_goto): New function.
8918 (ppc_emit_lt_goto): New function.
8919 (ppc_emit_le_goto): New function.
8920 (ppc_emit_gt_goto): New function.
8921 (ppc_emit_ge_goto): New function.
8922 (ppc_write_goto_address): New function.
8923 (ppc_emit_ops_impl): New static variable.
8924 (ppc64v1_emit_prologue): New function.
8925 (ppc64v2_emit_prologue): New function.
8926 (ppc64_emit_epilogue): New function.
8927 (ppc64_emit_add): New function.
8928 (ppc64_emit_sub): New function.
8929 (ppc64_emit_mul): New function.
8930 (ppc64_emit_lsh): New function.
8931 (ppc64_emit_rsh_signed): New function.
8932 (ppc64_emit_rsh_unsigned): New function.
8933 (ppc64_emit_ext): New function.
8934 (ppc64_emit_zero_ext): New function.
8935 (ppc64_emit_log_not): New function.
8936 (ppc64_emit_bit_and): New function.
8937 (ppc64_emit_bit_or): New function.
8938 (ppc64_emit_bit_xor): New function.
8939 (ppc64_emit_bit_not): New function.
8940 (ppc64_emit_equal): New function.
8941 (ppc64_emit_less_signed): New function.
8942 (ppc64_emit_less_unsigned): New function.
8943 (ppc64_emit_ref): New function.
8944 (ppc64_emit_const): New function.
8945 (ppc64v1_emit_reg): New function.
8946 (ppc64v2_emit_reg): New function.
8947 (ppc64_emit_pop): New function.
8948 (ppc64_emit_stack_flush): New function.
8949 (ppc64_emit_swap): New function.
8950 (ppc64v1_emit_call): New function.
8951 (ppc64v2_emit_call): New function.
8952 (ppc64v1_emit_int_call_1): New function.
8953 (ppc64v2_emit_int_call_1): New function.
8954 (ppc64v1_emit_void_call_2): New function.
8955 (ppc64v2_emit_void_call_2): New function.
8956 (ppc64_emit_if_goto): New function.
8957 (ppc64_emit_eq_goto): New function.
8958 (ppc64_emit_ne_goto): New function.
8959 (ppc64_emit_lt_goto): New function.
8960 (ppc64_emit_le_goto): New function.
8961 (ppc64_emit_gt_goto): New function.
8962 (ppc64_emit_ge_goto): New function.
8963 (ppc64v1_emit_ops_impl): New static variable.
8964 (ppc64v2_emit_ops_impl): New static variable.
8965 (ppc_emit_ops): New function.
8966 (linux_low_target): Wire in ppc_emit_ops.
8968 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8969 Marcin Kościelnicki <koriakin@0x04.net>
8972 * Makefile.in: Add powerpc-*-ipa.o
8973 * configure.srv: Add ipa_obj for powerpc*-linux.
8974 * linux-ppc-ipa.c: New file.
8975 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8977 (PPC_FIELD): New macro.
8978 (PPC_SEXT): New macro.
8979 (PPC_OP6): New macro.
8980 (PPC_BO): New macro.
8981 (PPC_LI): New macro.
8982 (PPC_BD): New macro.
8983 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8984 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8985 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8986 (ppc_get_thread_area): New function.
8987 (is_elfv2_inferior): New function.
8988 (gen_ds_form): New function.
8989 (GEN_STD): New macro.
8990 (GEN_STDU): New macro.
8991 (GEN_LD): New macro.
8992 (GEN_LDU): New macro.
8993 (gen_d_form): New function.
8994 (GEN_ADDI): New macro.
8995 (GEN_ADDIS): New macro.
8996 (GEN_LI): New macro.
8997 (GEN_LIS): New macro.
8998 (GEN_ORI): New macro.
8999 (GEN_ORIS): New macro.
9000 (GEN_LWZ): New macro.
9001 (GEN_STW): New macro.
9002 (GEN_STWU): New macro.
9003 (gen_xfx_form): New function.
9004 (GEN_MFSPR): New macro.
9005 (GEN_MTSPR): New macro.
9006 (GEN_MFCR): New macro.
9007 (GEN_MTCR): New macro.
9008 (GEN_SYNC): New macro.
9009 (GEN_LWSYNC): New macro.
9010 (gen_x_form): New function.
9011 (GEN_OR): New macro.
9012 (GEN_MR): New macro.
9013 (GEN_LWARX): New macro.
9014 (GEN_STWCX): New macro.
9015 (GEN_CMPW): New macro.
9016 (gen_md_form): New function.
9017 (GEN_RLDICL): New macro.
9018 (GEN_RLDICR): New macro.
9019 (gen_i_form): New function.
9021 (GEN_BL): New macro.
9022 (gen_b_form): New function.
9023 (GEN_BNE): New macro.
9024 (GEN_LOAD): New macro.
9025 (GEN_STORE): New macro.
9026 (gen_limm): New function.
9027 (gen_atomic_xchg): New function.
9028 (gen_call): New function.
9029 (ppc_relocate_instruction): New function.
9030 (ppc_install_fast_tracepoint_jump_pad): New function.
9031 (ppc_get_min_fast_tracepoint_insn_len): New function.
9032 (ppc_get_ipa_tdesc_idx): New function.
9033 (the_low_target): Wire in the new functions.
9034 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
9036 * linux-ppc-tdesc.h: New file.
9038 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
9040 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9041 (alloc_jump_pad_buffer): New function.
9042 * linux-amd64-ipa.c: Add <sys/mman.h> include.
9043 (alloc_jump_pad_buffer): New function.
9044 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
9045 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
9046 (alloc_jump_pad_buffer): New function.
9047 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
9048 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
9049 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
9050 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
9052 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9054 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
9055 * linux-amd64-ipa.c: Likewise.
9056 * linux-i386-ipa.c: Likewise.
9057 * linux-s390-ipa.c: Likewise.
9058 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
9059 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
9060 set_trace_state_variable_value_ptr.
9061 (struct ipa_sym_addresses): Likewise.
9062 (symbol_list): Likewise.
9063 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
9064 accessing gdb_collect directly.
9065 (gdb_collect_ptr_type): New typedef.
9066 (get_raw_reg_ptr_type): New typedef.
9067 (get_trace_state_variable_value_ptr_type): New typedef.
9068 (set_trace_state_variable_value_ptr_type): New typedef.
9069 (gdb_collect_ptr): New global.
9070 (get_raw_reg_ptr): New global.
9071 (get_trace_state_variable_value_ptr): New global.
9072 (set_trace_state_variable_value_ptr): New global.
9073 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
9074 accessing get_raw_reg directly.
9075 (get_get_tsv_func_addr): Likewise for
9076 get_trace_state_variable_value_ptr.
9077 (get_set_tsv_func_addr): Likewise for
9078 set_trace_state_variable_value_ptr.
9079 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
9081 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
9083 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
9085 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
9087 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
9089 (relocate_instruction): Remove own_buf.
9090 * server.c (own_buf): Make global.
9091 (handle_v_requests): Make global.
9092 * server.h (own_buf): New declaration.
9093 (handle_v_requests): New prototype.
9095 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9098 * linux-s390-low.c (add_insns): New function.
9099 (s390_emit_prologue): New function.
9100 (s390_emit_epilogue): New function.
9101 (s390_emit_add): New function.
9102 (s390_emit_sub): New function.
9103 (s390_emit_mul): New function.
9104 (s390_emit_lsh): New function.
9105 (s390_emit_rsh_signed): New function.
9106 (s390_emit_rsh_unsigned): New function.
9107 (s390_emit_ext): New function.
9108 (s390_emit_log_not): New function.
9109 (s390_emit_bit_and): New function.
9110 (s390_emit_bit_or): New function.
9111 (s390_emit_bit_xor): New function.
9112 (s390_emit_bit_not): New function.
9113 (s390_emit_equal): New function.
9114 (s390_emit_less_signed): New function.
9115 (s390_emit_less_unsigned): New function.
9116 (s390_emit_ref): New function.
9117 (s390_emit_if_goto): New function.
9118 (s390_emit_goto): New function.
9119 (s390_write_goto_address): New function.
9120 (s390_emit_litpool): New function.
9121 (s390_emit_const): New function.
9122 (s390_emit_call): New function.
9123 (s390_emit_reg): New function.
9124 (s390_emit_pop): New function.
9125 (s390_emit_stack_flush): New function.
9126 (s390_emit_zero_ext): New function.
9127 (s390_emit_swap): New function.
9128 (s390_emit_stack_adjust): New function.
9129 (s390_emit_set_r2): New function.
9130 (s390_emit_int_call_1): New function.
9131 (s390_emit_void_call_2): New function.
9132 (s390_emit_eq_goto): New function.
9133 (s390_emit_ne_goto): New function.
9134 (s390_emit_lt_goto): New function.
9135 (s390_emit_le_goto): New function.
9136 (s390_emit_gt_goto): New function.
9137 (s390_emit_ge_goto): New function.
9138 (s390x_emit_prologue): New function.
9139 (s390x_emit_epilogue): New function.
9140 (s390x_emit_add): New function.
9141 (s390x_emit_sub): New function.
9142 (s390x_emit_mul): New function.
9143 (s390x_emit_lsh): New function.
9144 (s390x_emit_rsh_signed): New function.
9145 (s390x_emit_rsh_unsigned): New function.
9146 (s390x_emit_ext): New function.
9147 (s390x_emit_log_not): New function.
9148 (s390x_emit_bit_and): New function.
9149 (s390x_emit_bit_or): New function.
9150 (s390x_emit_bit_xor): New function.
9151 (s390x_emit_bit_not): New function.
9152 (s390x_emit_equal): New function.
9153 (s390x_emit_less_signed): New function.
9154 (s390x_emit_less_unsigned): New function.
9155 (s390x_emit_ref): New function.
9156 (s390x_emit_if_goto): New function.
9157 (s390x_emit_const): New function.
9158 (s390x_emit_call): New function.
9159 (s390x_emit_reg): New function.
9160 (s390x_emit_pop): New function.
9161 (s390x_emit_stack_flush): New function.
9162 (s390x_emit_zero_ext): New function.
9163 (s390x_emit_swap): New function.
9164 (s390x_emit_stack_adjust): New function.
9165 (s390x_emit_int_call_1): New function.
9166 (s390x_emit_void_call_2): New function.
9167 (s390x_emit_eq_goto): New function.
9168 (s390x_emit_ne_goto): New function.
9169 (s390x_emit_lt_goto): New function.
9170 (s390x_emit_le_goto): New function.
9171 (s390x_emit_gt_goto): New function.
9172 (s390x_emit_ge_goto): New function.
9173 (s390_emit_ops): New function.
9174 (struct linux_target_ops): Fill in emit_ops hook.
9176 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9179 * Makefile.in: Add s390 IPA files.
9180 * configure.srv: Build IPA for s390.
9181 * linux-s390-ipa.c: New file.
9182 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9183 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9184 (tdesc_s390_linux32): Likewise.
9185 (init_registers_s390_linux32v1): Likewise.
9186 (tdesc_s390_linux32v1): Likewise.
9187 (init_registers_s390_linux32v2): Likewise.
9188 (tdesc_s390_linux32v2): Likewise.
9189 (init_registers_s390_linux64): Likewise.
9190 (tdesc_s390_linux64): Likewise.
9191 (init_registers_s390_linux64v1): Likewise.
9192 (tdesc_s390_linux64v1): Likewise.
9193 (init_registers_s390_linux64v2): Likewise.
9194 (tdesc_s390_linux64v2): Likewise.
9195 (init_registers_s390_te_linux64): Likewise.
9196 (tdesc_s390_te_linux64): Likewise.
9197 (init_registers_s390_vx_linux64): Likewise.
9198 (tdesc_s390_vx_linux64): Likewise.
9199 (init_registers_s390_tevx_linux64): Likewise.
9200 (tdesc_s390_tevx_linux64): Likewise.
9201 (init_registers_s390x_linux64): Likewise.
9202 (tdesc_s390x_linux64): Likewise.
9203 (init_registers_s390x_linux64v1): Likewise.
9204 (tdesc_s390x_linux64v1): Likewise.
9205 (init_registers_s390x_linux64v2): Likewise.
9206 (tdesc_s390x_linux64v2): Likewise.
9207 (init_registers_s390x_te_linux64): Likewise.
9208 (tdesc_s390x_te_linux64): Likewise.
9209 (init_registers_s390x_vx_linux64): Likewise.
9210 (tdesc_s390x_vx_linux64): Likewise.
9211 (init_registers_s390x_tevx_linux64): Likewise.
9212 (tdesc_s390x_tevx_linux64): Likewise.
9213 (have_hwcap_s390_vx): New static variable.
9214 (s390_arch_setup): Fill have_hwcap_s390_vx.
9215 (s390_get_thread_area): New function.
9216 (s390_ft_entry_gpr_esa): New const.
9217 (s390_ft_entry_gpr_zarch): New const.
9218 (s390_ft_entry_misc): New const.
9219 (s390_ft_entry_fr): New const.
9220 (s390_ft_entry_vr): New const.
9221 (s390_ft_main_31): New const.
9222 (s390_ft_main_64): New const.
9223 (s390_ft_exit_fr): New const.
9224 (s390_ft_exit_vr): New const.
9225 (s390_ft_exit_misc): New const.
9226 (s390_ft_exit_gpr_esa): New const.
9227 (s390_ft_exit_gpr_zarch): New const.
9228 (append_insns): New function.
9229 (s390_relocate_instruction): New function.
9230 (s390_install_fast_tracepoint_jump_pad): New function.
9231 (s390_get_min_fast_tracepoint_insn_len): New function.
9232 (s390_get_ipa_tdesc_idx): New function.
9233 (struct linux_target_ops): Wire in the above functions.
9234 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9235 * linux-s390-tdesc.h: New file.
9237 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9239 * linux-s390-low.c (s390_supports_tracepoints): New function.
9240 (struct linux_target_ops): Fill supports_tracepoints hook.
9242 2016-03-18 Yao Qi <yao.qi@linaro.org>
9244 * linux-low.c (lwp_signal_can_be_delivered): New function.
9245 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9247 2016-03-18 Yao Qi <yao.qi@linaro.org>
9249 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9250 0 if signal is enqueued. Remove 'signal' from one debugging
9251 message. Move one debugging message to some lines below.
9252 Remove code setting 'signal' to 0.
9254 2016-03-18 Yao Qi <yao.qi@linaro.org>
9256 * linux-low.c (linux_low_filter_event): Remove redundant
9257 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9259 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9261 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9262 (struct linux_target_ops): Wire in the above.
9264 2016-03-03 Yao Qi <yao.qi@linaro.org>
9266 * linux-low.c: Update comments to start_step_over.
9268 2016-03-03 Yao Qi <yao.qi@linaro.org>
9271 * linux-low.c (handle_extended_wait): Set child suspended
9272 if event_lwp->bp_reinsert isn't zero.
9274 2016-03-02 Yao Qi <yao.qi@linaro.org>
9276 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9277 enqueue_pending_signal.
9279 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9281 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9284 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9286 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9287 (s390_regmap_3264) [!__s390x__]: New global.
9288 (s390_collect_ptrace_register): Skip map entries containing -1.
9289 (s390_supply_ptrace_register): Ditto.
9290 (s390_fill_gprs_high): New function.
9291 (s390_store_gprs_high): New function.
9292 (s390_regsets): Add NT_S390_HIGH_GPRS.
9293 (s390_get_hwcap): Enable on 31-bit.
9294 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9295 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9296 Detect NT_S390_HIGH_GPRS.
9297 (s390_usrregs_info_3264): Enable on 31-bit.
9298 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9299 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9301 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9304 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9305 * configure.srv: Ditto.
9306 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9307 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9308 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9309 (init_registers_amd64_linux): Remove prototype.
9310 (tdesc_amd64_linux): Remove declaration.
9311 (get_ipa_tdesc): New function.
9312 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9313 initialize remaining tdescs.
9314 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9315 (init_registers_i386_linux): Remove prototype.
9316 (tdesc_i386_linux): Remove declaration.
9317 (get_ipa_tdesc): New function.
9318 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9319 initialize remaining tdescs.
9320 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9321 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9322 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9323 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9324 (x86_get_ipa_tdesc_idx): New function.
9325 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9326 * linux-x86-tdesc.h: New file.
9327 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9328 (target_get_ipa_tdesc_idx): New macro.
9329 * tracepoint.c (ipa_tdesc_idx): New macro.
9330 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9331 (symbol_list): Add ipa_tdesc_idx.
9332 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9333 (ipa_tdesc): Remove.
9334 (ipa_tdesc_idx): New variable.
9335 (get_context_regcache): Use get_ipa_tdesc.
9336 (gdb_collect): Ditto.
9338 * tracepoint.h (get_ipa_tdesc): New prototype.
9339 (ipa_tdesc): Remove.
9341 2016-02-24 Pedro Alves <palves@redhat.com>
9343 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9344 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9345 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9346 Factor out common code between the USE_SIGTRAP_SIGINFO and
9347 !USE_SIGTRAP_SIGINFO blocks.
9348 (linux_low_filter_event): Call save_stop_reason instead of
9349 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9351 (linux_wait_1): Update comments.
9353 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9355 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9356 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9357 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9358 ppc_insert_point, ppc_remove_point.
9360 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9362 * linux-s390-low.c (s390_supports_z_point_type): New function.
9363 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9365 2016-02-16 Yao Qi <yao.qi@linaro.org>
9367 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9368 PC. Get pc from regcache_read_pc.
9370 2016-02-12 Yao Qi <yao.qi@linaro.org>
9372 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9373 or linux_get_pc_32bit.
9374 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9376 2016-02-12 Yao Qi <yao.qi@linaro.org>
9378 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9379 arm_linux_get_next_pcs_fixup.
9381 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9383 * tracepoint.c (x_tracepoint_action_download): Change
9384 write_inferior_data_ptr to write_inferior_data_pointer.
9385 (cmd_qtstart): Likewise.
9386 (write_inferior_data_ptr): Remove.
9387 (download_agent_expr): Change write_inferior_data_ptr to
9388 write_inferior_data_pointer.
9389 (download_tracepoint_1): Likewise.
9390 (download_tracepoint): Likewise.
9391 (download_trace_state_variables): Likewise.
9393 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9394 Marcin Kościelnicki <koriakin@0x04.net>
9396 * tracepoint.c (struct tracepoint_action_ops): Remove.
9397 (struct tracepoint_action): Remove ops.
9398 (m_tracepoint_action_download, r_tracepoint_action_download)
9399 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9400 size and offset accordingly.
9401 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9402 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9403 (tracepoint_action_send, tracepoint_action_download): New functions.
9404 Helpers for trace action handlers.
9405 (add_tracepoint_action): Remove setup actions ops.
9406 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9408 2016-02-10 Yao Qi <yao.qi@linaro.org>
9410 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9412 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9414 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9416 * configure: Regenerate.
9418 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9420 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9421 void * to gdb_byte *.
9422 * linux-low.c (siginfo_fixup): Likewise.
9423 (linux_xfer_siginfo): Likewise.
9424 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9426 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9428 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9430 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9432 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9434 * linux-x86-low.c [__x86_64__]: Include
9435 "nat/amd64-linux-siginfo.h".
9436 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9437 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9438 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9439 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9440 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9441 (cpt_si_fd, si_timerid, si_overrun): Move from
9442 nat/amd64-linux-siginfo.c.
9443 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9445 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9447 * server.c (skip_to_semicolon): Remove.
9448 (process_point_options): Use strchrnul instead of
9451 2016-01-26 Yao Qi <yao.qi@linaro.org>
9453 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9454 * linux-low.c (install_software_single_step_breakpoints): Don't
9455 call regcache_read_pc.
9456 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9459 2016-01-26 Yao Qi <yao.qi@linaro.org>
9461 * linux-low.c (install_software_single_step_breakpoints): Call
9462 regcache_read_pc instead of get_pc.
9464 2016-01-26 Yao Qi <yao.qi@linaro.org>
9466 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9467 (unblock_async_io): Rename to ...
9468 (block_unblock_async_io): ... it. New function.
9469 (enable_async_io): Don't install SIGIO handler. Unblock it
9471 (disable_async_io): Don't ignore SIGIO. Block it instead.
9472 (initialize_async_io): Install SIGIO handler. Don't call
9475 2016-01-26 Yao Qi <yao.qi@linaro.org>
9477 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9478 first character is '\003', call *the_target->request_interrupt.
9480 2016-01-25 Yao Qi <yao.qi@linaro.org>
9482 * remote-utils.c (new_thread_notify): Remove.
9483 (dead_thread_notify): Likewise.
9484 * remote-utils.h (new_thread_notify): Remove declaration.
9485 (dead_thread_notify): Likewise.
9487 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9489 * gdb.trace/pending.exp: Fix expected message on continue.
9491 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9493 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9494 it works properly on big-endian machines where sizeof (CORE_ADDR)
9497 2016-01-21 Pedro Alves <palves@redhat.com>
9499 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9500 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9501 * configure: Regenerate.
9503 2016-01-21 Yao Qi <yao.qi@linaro.org>
9505 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9506 is_thumb and set it according to CPSR saved on the stack.
9507 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9508 arm_sigreturn_next_pc.
9510 2016-01-18 Yao Qi <yao.qi@linaro.org>
9512 * linux-low.c (linux_set_pc_64bit): New function.
9513 (linux_get_pc_64bit): New function.
9514 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9516 * linux-sparc-low.c (debug_threads): Remove declaration.
9517 (sparc_get_pc): Remove.
9518 (the_low_target): Use linux_get_pc_64bit instead of
9520 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9521 (the_low_target): Use linux_get_pc_64bit and
9524 2016-01-18 Yao Qi <yao.qi@linaro.org>
9526 * linux-arm-low.c (debug_threads): Remove declaration.
9527 (arm_get_pc, arm_set_pc): Remove.
9528 (the_low_target): Use linux_get_pc_32bit and
9530 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9531 (the_low_target): Use linux_get_pc_32bit and
9533 * linux-cris-low.c (debug_threads): Remove declaration.
9534 (cris_get_pc, cris_set_pc,): Remove.
9535 (the_low_target): Use linux_get_pc_32bit and
9537 * linux-crisv32-low.c (debug_threads): Remove declaration.
9538 (cris_get_pc, cris_set_pc): Remove.
9539 (the_low_target): Use linux_get_pc_32bit and
9541 * linux-low.c: Include inttypes.h.
9542 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9543 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9544 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9545 (the_low_target): Use linux_get_pc_32bit and
9547 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9548 (the_low_target): Use linux_get_pc_32bit and
9550 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9551 (the_low_target): Use linux_get_pc_32bit and
9553 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9554 (the_low_target): Use linux_get_pc_32bit and
9556 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9557 (the_low_target): Use linux_get_pc_32bit and
9560 2016-01-18 Gary Benson <gbenson@redhat.com>
9562 * configure.ac (AC_FUNC_FORK): New check.
9563 * config.in: Regenerate.
9564 * configure: Likewise.
9566 2016-01-14 Yao Qi <yao.qi@linaro.org>
9568 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9569 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9570 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9571 arm_get_next_pcs_ctor.
9573 2016-01-12 Josh Stone <jistone@redhat.com>
9574 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9576 * inferiors.h: Include "gdb_vecs.h".
9577 (struct process_info): Add syscalls_to_catch.
9578 * inferiors.c (remove_process): Free syscalls_to_catch.
9579 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9580 syscall_return stops.
9581 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9582 * server.c (handle_general_set): Handle QCatchSyscalls.
9583 (handle_query): Report support for QCatchSyscalls.
9584 * target.h (struct target_ops): Add supports_catch_syscall.
9585 (target_supports_catch_syscall): New macro.
9586 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9587 (struct lwp_info): Add syscall_state.
9588 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9589 Maintain syscall_state and syscalls_to_catch across exec.
9590 (get_syscall_trapinfo): New function, proxy to the_low_target.
9591 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9592 (linux_low_filter_event): Toggle syscall_state entry/return for
9593 syscall traps, and set it ignored for all others.
9594 (gdb_catching_syscalls_p): New function.
9595 (gdb_catch_this_syscall_p): New function.
9596 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9597 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9598 (linux_supports_catch_syscall): New function.
9599 (linux_target_ops): Install it.
9600 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9601 (the_low_target): Install it.
9603 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9605 * acinclude.m4: Include new ../warning.m4 file.
9606 * configure: Regenerated.
9607 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9609 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9611 * ax.c (is_goto_target): Mark static.
9612 * linux-low.c (register_addr): Likewise.
9613 (linux_fetch_registers, linux_store_registers): Likewise.
9614 * mem-break.c (any_persistent_commands): Fix old prototype.
9615 (add_commands_to_breakpoint): Mark static.
9616 * regcache.c (find_register_by_name): Delete unused func.
9617 * remote-utils.c (hex_or_minus_one): Mark static.
9618 * server.c (monitor_show_help): Mark static.
9619 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9620 handle_v_requests): Likewise.
9622 2016-01-12 Pedro Alves <palves@redhat.com>
9624 Remove use of the registered trademark symbol throughout.
9626 2016-01-08 Yao Qi <yao.qi@linaro.org>
9628 * remote-utils.c (getpkt): If c is '\003', call target hook
9631 2016-01-06 Yao Qi <yao.qi@linaro.org>
9633 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9634 linux-aarch32-low.c.
9635 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9636 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9637 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9638 (thumb2_breakpoint): Declare.
9639 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9640 linux-aarch32-low.h.
9641 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9642 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9643 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9645 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9647 * gdbreplay.c (gdbreplay_version): Change copyright year in
9649 * server.c (gdbserver_version): Likewise.
9651 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9653 * server.c (crc32_table): Delete.
9654 (crc32): Use libiberty's xcrc32 function.
9656 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9658 * lynx-low.c (lynx_delete_thread_callback): New function.
9659 (lynx_mourn): Properly delete our process and all of its
9660 threads. Remove call to clear_inferiors.
9662 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9664 * target.c (thread_search_callback): Add check that
9665 the thread_stopped target callback is not NULL before
9668 2015-12-21 Yao Qi <yao.qi@linaro.org>
9670 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9673 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9675 * server.c (handle_query): Call target_supports_software_single_step.
9677 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9679 * linux-low.c (single_step): New function.
9680 (linux_resume_one_lwp_throw): Call single_step.
9681 (start_step_over): Likewise.
9683 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9685 * Makefile.in (SFILES): Append arch/arm-linux.c,
9686 arch/arm-get-next-pcs.c.
9687 (arm-linux.o): New rule.
9688 (arm-get-next-pcs.o): New rule.
9689 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9691 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9692 to 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): Make non-static.
9698 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9699 from linux-aarch32-low.c.
9700 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9701 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9702 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9703 (thumb2_breakpoint_len): Likewise.
9704 (arm_is_thumb_mode): New declaration.
9705 * linux-arm-low.c: Include arch/arm-linux.h
9706 aarch/arm-get-next-pcs.h, sys/syscall.h.
9707 (get_next_pcs_ops): New struct.
9708 (get_next_pcs_addr_bits_remove): New function.
9709 (get_next_pcs_is_thumb): New function.
9710 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9711 (arm_sigreturn_next_pc): Likewise.
9712 (get_next_pcs_syscall_next_pc): Likewise.
9713 (arm_gdbserver_get_next_pcs): Likewise.
9714 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9716 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9717 * server.h: Include gdb_vecs.h.
9719 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9721 * Makefile.in (SFILES): Append common/common-regcache.c.
9722 (OBS): Append common-regcache.o.
9723 (common-regcache.o): New rule.
9724 * regcache.c (init_register_cache): Initialize cache to
9726 (regcache_raw_read_unsigned): New function.
9727 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9728 register_status enum.
9730 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9732 * linux-aarch64-low.c (the_low_targets): Rename
9733 breakpoint_reinsert_addr to get_next_pcs.
9734 * linux-arm-low.c (the_low_targets): Likewise.
9735 * linux-bfin-low.c (the_low_targets): Likewise.
9736 * linux-cris-low.c (the_low_targets): Likewise.
9737 * linux-crisv32-low.c (the_low_targets): Likewise.
9738 * linux-low.c (can_software_single_step): Likewise.
9739 (install_software_single_step_breakpoints): New function.
9740 (start_step_over): Use install_software_single_step_breakpoints.
9741 * linux-low.h: New CORE_ADDR vector.
9742 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9744 * linux-mips-low.c (the_low_targets): Likewise.
9745 * linux-nios2-low.c (the_low_targets): Likewise.
9746 * linux-sparc-low.c (the_low_targets): Likewise.
9748 2015-12-17 Pedro Alves <palves@redhat.com>
9750 * linux-low.c (linux_kill_one_lwp): Remove references to
9752 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9754 (linux_init_signals): Delete.
9755 (initialize_low): Adjust.
9756 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9758 2015-12-16 Pedro Alves <palves@redhat.com>
9760 * configure.ac (compiler warning flags): When testing a
9761 -Wno-foo option, check whether -Wfoo works instead.
9762 * configure: Regenerate.
9764 2015-12-11 Don Breazeal <donb@codesourcery.com>
9766 * server.c (process_serial_event): Don't exit from gdbserver
9767 in remote mode if there are still active inferiors.
9769 2015-12-11 Yao Qi <yao.qi@linaro.org>
9771 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9772 arm_breakpoint_at if the process is 32-bit.
9774 2015-12-11 Yao Qi <yao.qi@linaro.org>
9776 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9779 2015-12-07 Yao Qi <yao.qi@linaro.org>
9781 * configure.srv: Append arm.o to srv_tgtobj for
9782 aarch64*-*-linux* target.
9783 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9784 from linux-arm-low.c.
9785 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9786 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9787 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9788 (thumb2_breakpoint_len): Likewise.
9789 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9790 (arm_breakpoint_kinds): Likewise.
9791 (arm_breakpoint_kind_from_pc): Likewise.
9792 (arm_sw_breakpoint_from_kind): Likewise.
9793 (arm_breakpoint_kind_from_current_state): Likewise.
9794 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9795 (arm_sw_breakpoint_from_kind): Declare.
9796 (arm_breakpoint_kind_from_current_state): Declare.
9797 (arm_breakpoint_at): Declare.
9798 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9799 arm_sw_breakpoint_from_kind if process is 32-bit.
9800 (aarch64_breakpoint_kind_from_pc): New function.
9801 (aarch64_breakpoint_kind_from_current_state): New function.
9802 (the_low_target): Initialize fields breakpoint_kind_from_pc
9803 and breakpoint_kind_from_current_state.
9804 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9805 linux-aarch32-low.c.
9806 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9807 (arm_breakpoint, arm_breakpoint_len): Likewise.
9808 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9809 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9810 (arm_is_thumb_mode): Likewise.
9811 (arm_breakpoint_at): Likewise.
9812 (arm_breakpoint_kind_from_pc): Likewise.
9813 (arm_sw_breakpoint_from_kind): Likewise.
9814 (arm_breakpoint_kind_from_current_state): Likewise.
9817 2015-08-04 Yao Qi <yao.qi@linaro.org>
9819 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9820 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9821 * server.c (extended_protocol): Remove "static".
9822 * server.h (extended_protocol): Declare it.
9824 2015-12-04 Josh Stone <jistone@redhat.com>
9826 * target.h (struct target_ops) <arch_setup>: Rename to ...
9827 (struct target_ops) <post_create_inferior>: ... this.
9828 (target_arch_setup): Rename to ...
9829 (target_post_create_inferior): ... this, calling post_create_inferior.
9830 * server.c (start_inferior): Update target_arch_setup calls to
9831 target_post_create_inferior.
9832 * linux-low.c (linux_low_ptrace_options): Forward declare.
9833 (linux_arch_setup): Update its comment for general use.
9834 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9835 (struct linux_target_ops): Use linux_post_create_inferior.
9836 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9837 to post_create_inferior.
9838 * nto-low.c (struct nto_target_ops): Likewise.
9839 * spu-low.c (struct spu_target_ops): Likewise.
9840 * win32-low.c (struct win32_target_ops): Likewise.
9842 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9844 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9846 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9848 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9849 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9850 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9851 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9852 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9853 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9854 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9855 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9856 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9857 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9858 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9859 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9861 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9863 * linux-low.c (linux_look_up_symbols): Don't call
9864 linux_supports_traceclone.
9865 * linux-low.h (thread_db_init): Remove use_events argument.
9866 * thread-db.c (thread_db_use_event): Remove global variable.
9867 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9868 (struct thread_db) <td_create_bp>: Remove field.
9869 (thread_db_create_event): Remove function.
9870 (thread_db_enable_reporting): Likewise.
9871 (find_one_thread): Don't check for thread_db_use_events.
9872 (attach_thread): Likewise.
9873 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9874 (try_thread_db_load_1): Don't check for thread_db_use_events.
9875 (thread_db_init): Remove use_events argument and thread events
9877 (remove_thread_event_breakpoints): Remove function.
9878 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9880 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9882 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9884 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9885 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9886 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9887 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9888 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9890 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9892 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9893 * linux-low.c (can_hardware_single_step): Use
9894 supports_hardware_single_step.
9895 (can_software_single_step): New function.
9896 (start_step_over): Call can_software_single_step.
9897 (linux_supports_hardware_single_step): New function.
9898 (struct target_ops) <supports_software_single_step>: Initialize.
9899 * linux-low.h (struct linux_target_ops)
9900 <supports_hardware_single_step>: Initialize.
9901 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9902 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9903 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9904 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9905 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9906 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9907 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9908 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9909 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9910 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9912 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9913 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9915 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9916 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9917 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9919 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9920 * target.h (struct target_ops): <supports_software_single_step>:
9922 (target_supports_software_single_step): New macro.
9924 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9926 * linux-low.c (linux_wait_1): Fix pc advance condition.
9927 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9928 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9930 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9932 * linux-arm-low.c (arm_is_thumb_mode): New function.
9933 (arm_breakpoint_at): Use arm_is_thumb_mode.
9934 (arm_breakpoint_kind_from_current_state): New function.
9935 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9937 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9938 (linux_breakpoint_kind_from_current_state): New function.
9939 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9940 * linux-low.h (struct linux_target_ops)
9941 <breakpoint_kind_from_current_state>: New field.
9942 * target.h (struct target_ops): Likewise.
9943 (target_breakpoint_kind_from_current_state): New macro.
9945 2015-11-30 Pedro Alves <palves@redhat.com>
9947 * linux-low.c (linux_resume): Wake up the event loop before
9950 2015-11-30 Pedro Alves <palves@redhat.com>
9952 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9954 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9956 * target.c (struct thread_search): New structure.
9957 (thread_search_callback): New function.
9958 (prev_general_thread): New global.
9959 (prepare_to_access_memory, done_accessing_memory): New functions.
9960 * target.h (prepare_to_access_memory, done_accessing_memory):
9961 Replace macros with function declarations.
9963 2015-11-30 Pedro Alves <palves@redhat.com>
9966 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9967 report TARGET_WAITKIND_NO_RESUMED.
9968 * remote-utils.c (prepare_resume_reply): Handle
9969 TARGET_WAITKIND_NO_RESUMED.
9970 * server.c (report_no_resumed): New global.
9971 (handle_query) <qSupported>: Handle "no-resumed+". Report
9972 "no-resumed+" support.
9973 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9974 return error if the client doesn't support no-resumed events.
9975 (push_stop_notification): New function.
9976 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9977 events if the client supports them.
9979 2015-11-30 Pedro Alves <palves@redhat.com>
9981 * linux-low.c (thread_still_has_status_pending_p): Don't check
9983 (lwp_resumed): New function.
9984 (status_pending_p_callback): Return early if the LWP is not
9985 supposed to be resumed.
9987 2015-11-30 Pedro Alves <palves@redhat.com>
9989 * linux-low.c (handle_extended_wait): Assert that the LWP's
9990 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9991 thread create events, leave the new child's status pending.
9992 (linux_low_filter_event): If GDB wants to hear about thread exit
9993 events, leave the LWP marked dead and don't delete it.
9994 (linux_wait_for_event_filtered): Don't check for thread exit.
9995 (filter_exit_event): New function.
9996 (linux_wait_1): Use it, when returning an exit event.
9997 (linux_resume_one_lwp_throw): Assert that the LWP's
9998 waitstatus is TARGET_WAITKIND_IGNORE.
9999 * remote-utils.c (prepare_resume_reply): Handle
10000 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
10001 * server.c (report_thread_events): New global.
10002 (handle_general_set): Handle QThreadEvents.
10003 (handle_query) <qSupported>: Handle and report QThreadEvents+;
10004 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
10005 TARGET_WAITKIND_THREAD_EXITED.
10006 * server.h (report_thread_events): Declare.
10008 2015-11-30 Pedro Alves <palves@redhat.com>
10010 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
10011 the thread's last_resume_kind was resume_stop.
10013 2015-11-30 Pedro Alves <palves@redhat.com>
10015 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
10018 2015-11-30 Pedro Alves <palves@redhat.com>
10020 * server.c (handle_v_requests): Handle vCtrlC.
10022 2015-11-30 Pedro Alves <palves@redhat.com>
10024 * gdbthread.h (find_any_thread_of_pid): Declare.
10025 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
10027 * server.c (handle_query): If current_thread is NULL, look for
10028 another thread of the selected process.
10030 2015-11-26 Daniel Colascione <dancol@dancol.org>
10031 Simon Marchi <simon.marchi@ericsson.com>
10033 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
10034 * server.c (handle_qxfer_threads_worker): Refactor to include thread
10036 * target.h (struct target_ops) <thread_name>: New field.
10037 (target_thread_name): New macro.
10039 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10041 * regcache.h (regcache_invalidate_pid): Add declaration.
10042 * regcache.c (regcache_invalidate_pid): New function, extracted
10043 from regcache_invalidate.
10044 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
10045 Add trivial documentation comment.
10046 * lynx-low.c: Use regcache_invalidate_pid instead of
10047 regcache_invalidate.
10049 2015-11-23 Joel Brobecker <brobecker@adacore.com>
10051 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
10052 and Elf64_auxv_t if the target is Android.
10054 2015-11-22 Doug Evans <xdje42@gmail.com>
10056 * target.h: #include <sys/types.h>.
10058 2015-11-19 Pedro Alves <palves@redhat.com>
10060 * linux-low.c (linux_process_qsupported): Change prototype.
10062 * linux-low.h (struct linux_target_ops) <process_qsupported>:
10064 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
10065 and adjust to loop over all features.
10066 * server.c (handle_query) <qSupported>: Adjust to call
10067 target_process_qsupported once, passing it a vector of unprocessed
10069 * target.h (struct target_ops) <process_qsupported>: Change
10071 (target_process_qsupported): Adjust.
10073 2015-11-19 Pedro Alves <palves@redhat.com>
10075 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
10077 * configure: Regenerate.
10079 2015-11-19 Pedro Alves <palves@redhat.com>
10081 * configure: Regenerate.
10083 2015-11-19 Yao Qi <yao.qi@linaro.org>
10085 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
10088 2015-11-19 Yao Qi <yao.qi@linaro.org>
10090 * linux-aarch64-low.c (enum aarch64_operand_type): New.
10091 (struct aarch64_operand): Move enum out.
10093 2015-11-19 Yao Qi <yao.qi@linaro.org>
10095 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
10096 struct user_fpsimd_state *.
10097 (aarch64_store_fpregset): Likewise.
10099 2015-11-19 Yao Qi <yao.qi@linaro.org>
10101 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
10102 struct user_pt_regs *.
10103 (aarch64_store_gregset): Likewise.
10105 2015-11-18 Pedro Alves <palves@redhat.com>
10107 * Makefile.in (all_object_files): Add $IPA_OBJS.
10109 2015-11-17 Pedro Alves <palves@redhat.com>
10111 * win32-low.c (win32_resume): Use gdb_signal_from_host,
10112 GDB_SIGNAL_0 and gdb_signal_to_string.
10114 2015-11-17 Pedro Alves <palves@redhat.com>
10116 * win32-low.c (handle_output_debug_string): Remove parameter.
10117 (win32_kill): Remove our_status local and adjust call to
10118 handle_output_debug_string.
10119 (get_child_debug_event): Adjust call to
10120 handle_output_debug_string.
10122 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10124 * linux-mips-low.c (mips_fill_gregset): Add cast.
10125 (mips_store_gregset): Likewise.
10126 (mips_fill_fpregset): Likewise.
10127 (mips_store_fpregset): Likewise.
10129 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10131 * linux-mips-low.c (mips_add_watchpoint): Rename private to
10134 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10136 * linux-mips-low.c (mips_linux_new_thread): Change type of
10137 watch_type to enum target_hw_bp_type.
10139 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10141 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
10142 Change return type to arm_hwbp_type.
10144 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10146 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
10147 (arm_store_gregset): Likewise.
10148 * linux-arm-low.c (arm_get_hwcap): Likewise.
10149 (arm_read_description): Likewise.
10151 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10153 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10155 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10157 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10158 (ppc_fill_vsxregset): Likewise.
10159 (ppc_store_vsxregset): Likewise.
10160 (ppc_fill_vrregset): Likewise.
10161 (ppc_store_vrregset): Likewise.
10162 (ppc_fill_evrregset): Likewise.
10163 (ppc_store_evrregset): Likewise.
10165 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10167 * linux-ppc-low.c (ppc_usrregs_info): Remove
10168 forward-declaration.
10169 (ppc_arch_setup): Move lower in file.
10171 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10173 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10174 (ps_pdwrite): Likewise.
10176 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10178 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10179 to after assert checks.
10181 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10183 * proc-service.c (ps_pdread): Add/adjust casts.
10184 (ps_pdwrite): Add/adjust casts.
10186 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10188 * server.c (handle_search_memory_1): Cast return value of
10191 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10193 * server.c (write_qxfer_response): Change type of data to
10196 2015-10-29 Pedro Alves <palves@redhat.com>
10198 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10200 2015-10-29 Pedro Alves <palves@redhat.com>
10202 * tracepoint.c (clear_installed_tracepoints): Add casts.
10204 2015-10-29 Pedro Alves <palves@redhat.com>
10206 * server.c (handle_v_cont, process_serial_event): Add enum
10207 gdb_signal casts to signal parsing code.
10209 2015-10-29 Pedro Alves <palves@redhat.com>
10211 * linux-low.h (NULL_REGSET): Define.
10212 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10213 * linux-arm-low.c (arm_regsets): Likewise.
10214 * linux-crisv32-low.c (cris_regsets): Likewise.
10215 * linux-m68k-low.c (m68k_regsets): Likewise.
10216 * linux-mips-low.c (mips_regsets): Likewise.
10217 * linux-nios2-low.c (nios2_regsets): Likewise.
10218 * linux-ppc-low.c (ppc_regsets): Likewise.
10219 * linux-s390-low.c (s390_regsets): Likewise.
10220 * linux-sh-low.c (sh_regsets): Likewise.
10221 * linux-sparc-low.c (sparc_regsets): Likewise.
10222 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10223 * linux-tile-low.c (tile_regsets): Likewise.
10224 * linux-x86-low.c (x86_regsets): Likewise.
10225 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10227 2015-10-29 Pedro Alves <palves@redhat.com>
10229 * linux-low.h (NULL_REGSET): Define.
10230 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10231 * linux-arm-low.c (arm_regsets): Likewise.
10232 * linux-crisv32-low.c (cris_regsets): Likewise.
10233 * linux-m68k-low.c (m68k_regsets): Likewise.
10234 * linux-mips-low.c (mips_regsets): Likewise.
10235 * linux-nios2-low.c (nios2_regsets): Likewise.
10236 * linux-ppc-low.c (ppc_regsets): Likewise.
10237 * linux-s390-low.c (s390_regsets): Likewise.
10238 * linux-sh-low.c (sh_regsets): Likewise.
10239 * linux-sparc-low.c (sparc_regsets): Likewise.
10240 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10241 * linux-tile-low.c (tile_regsets): Likewise.
10242 * linux-x86-low.c (x86_regsets): Likewise.
10243 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10245 2015-10-26 Doug Evans <dje@google.com>
10247 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10249 2015-10-26 Doug Evans <dje@google.com>
10251 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10253 2015-10-26 Doug Evans <dje@google.com>
10255 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10257 (attach_thread, find_new_threads_callback): Ditto.
10259 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10261 * mem-break.h (set_breakpoint_data): Remove.
10263 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10265 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10266 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10267 (initialize_low): Remove set_breakpoint_data call.
10268 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10269 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10270 (initialize_low): Remove set_breakpoint_data call.
10271 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10272 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10273 (initialize_low): Remove set_breakpoint_data call.
10275 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10277 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10278 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10279 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10280 * target.h (target_breakpoint_kind_from_pc): New macro.
10282 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10284 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10285 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10286 the default breakpoint kind.
10288 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10290 * linux-arm-low.c (arm_supports_z_point_type): Add software
10291 breakpoint support.
10293 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10295 * linux-arm-low.c: Refactor breakpoint definitions.
10296 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10297 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10299 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10301 * Makefile.in: Add arm.c/o.
10302 * configure.srv: Likewise.
10303 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10304 (arm_breakpoint_kind_from_pc): New function.
10305 (arm_sw_breakpoint_from_kind): Return proper kind.
10306 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10308 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10310 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10312 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10313 (struct raw_breakpoint) <size>: Remove.
10314 (struct raw_breakpoint) <kind>: Add.
10315 (bp_size): New function.
10316 (bp_opcode): Likewise.
10317 (find_raw_breakpoint_at): Adjust for kind.
10318 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10319 (remove_memory_breakpoint): Adjust for kind call bp_size.
10320 (set_raw_breakpoint_at): Adjust for kind.
10321 (set_breakpoint): Likewise.
10322 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10323 (delete_raw_breakpoint): Adjust for kind.
10324 (delete_breakpoint): Likewise.
10325 (find_gdb_breakpoint): Likewise.
10326 (set_gdb_breakpoint_1): Likewise.
10327 (set_gdb_breakpoint): Likewise.
10328 (delete_gdb_breakpoint_1): Likewise.
10329 (delete_gdb_breakpoint): Likewise.
10330 (uninsert_raw_breakpoint): Likewise.
10331 (reinsert_raw_breakpoint): Likewise.
10332 (set_breakpoint_data): Remove.
10333 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10334 (check_mem_read): Adjust for kind call bp_size.
10335 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10336 (clone_one_breakpoint): Adjust for kind.
10337 * mem-break.h (set_gdb_breakpoint): Likewise.
10338 (delete_gdb_breakpoint): Likewise.
10339 * server.c (process_serial_event): Likewise.
10341 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10343 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10349 (arm_sw_breakpoint_from_kind): New function.
10350 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10351 (struct linux_target_ops) <breakpoint>: Remove.
10352 (struct linux_target_ops) <breakpoint_len>: Remove.
10353 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10354 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10355 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10356 (struct linux_target_ops) <breakpoint>: Remove.
10357 (struct linux_target_ops) <breakpoint_len>: Remove.
10358 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10359 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10360 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10361 (struct linux_target_ops) <breakpoint>: Remove.
10362 (struct linux_target_ops) <breakpoint_len>: Remove.
10363 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10364 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10365 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10366 and sw_breakpoint_from_kind to increment the pc.
10367 (linux_breakpoint_kind_from_pc): New function.
10368 (linux_sw_breakpoint_from_kind): New function.
10369 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10370 (initialize_low): Call breakpoint_kind_from_pc and
10371 sw_breakpoint_from_kind to replace breakpoint_data/len.
10372 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10374 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10375 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10376 (struct linux_target_ops) <breakpoint>: Remove.
10377 (struct linux_target_ops) <breakpoint_len>: Remove.
10378 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10379 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10380 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10381 (struct linux_target_ops) <breakpoint>: Remove.
10382 (struct linux_target_ops) <breakpoint_len>: Remove.
10383 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10384 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10385 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10386 (struct linux_target_ops) <breakpoint>: Remove.
10387 (struct linux_target_ops) <breakpoint_len>: Remove.
10388 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10389 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10390 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10391 (struct linux_target_ops) <breakpoint>: Remove.
10392 (struct linux_target_ops) <breakpoint_len>: Remove.
10393 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10394 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10395 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10396 (struct linux_target_ops) <breakpoint>: Remove.
10397 (struct linux_target_ops) <breakpoint_len>: Remove.
10398 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10399 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10400 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10401 (struct linux_target_ops) <breakpoint>: Remove.
10402 (struct linux_target_ops) <breakpoint_len>: Remove.
10403 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10404 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10405 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10406 (struct linux_target_ops) <breakpoint>: Remove.
10407 (struct linux_target_ops) <breakpoint_len>: Remove.
10408 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10409 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10410 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10411 (struct linux_target_ops) <breakpoint>: Remove.
10412 (struct linux_target_ops) <breakpoint_len>: Remove.
10413 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10414 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10415 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10416 (struct linux_target_ops) <breakpoint>: Remove.
10417 (struct linux_target_ops) <breakpoint_len>: Remove.
10418 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10419 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10420 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10421 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10422 (struct linux_target_ops) <breakpoint>: Remove.
10423 (struct linux_target_ops) <breakpoint_len>: Remove.
10424 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10425 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10426 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10427 (struct linux_target_ops) <breakpoint>: Remove.
10428 (struct linux_target_ops) <breakpoint_len>: Remove.
10429 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10430 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10432 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10434 * linux-cris-low.c (cris_get_pc): Remove void arg.
10436 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10438 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10441 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10443 * inferiors.c (thread_pid_matches_callback): New function.
10444 (find_thread_process): New function.
10445 (remove_thread): Reset current_thread.
10446 (remove_process): Assert threads have been removed first.
10448 2015-10-15 Yao Qi <yao.qi@linaro.org>
10450 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10452 (aarch64_remove_point): Likewise.
10453 * regcache.c (regcache_register_size): New function.
10455 2015-10-12 Yao Qi <yao.qi@linaro.org>
10457 * linux-aarch64-low.c: Update all callers as emit_load_store
10458 is renamed to aarch64_emit_load_store.
10460 2015-10-12 Yao Qi <yao.qi@linaro.org>
10462 * linux-aarch64-low.c: Update all callers of function renaming
10463 from emit_insn to aarch64_emit_insn.
10465 2015-10-12 Yao Qi <yao.qi@linaro.org>
10467 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10468 arch/aarch64-insn.h.
10469 (struct aarch64_memory_operand): Likewise.
10470 (ENCODE): Likewise.
10471 (emit_insn): Move to arch/aarch64-insn.c.
10472 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10473 (emit_load_store): Move to arch/aarch64-insn.c.
10474 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10475 (can_encode_int32): Remove.
10477 2015-10-12 Yao Qi <yao.qi@linaro.org>
10479 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10480 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10481 (aarch64_relocate_instruction): Likewise.
10482 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10483 (struct aarch64_insn_visitor): Likewise.
10485 2015-10-12 Yao Qi <yao.qi@linaro.org>
10487 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10488 (struct aarch64_insn_visitor): New.
10489 (struct aarch64_insn_relocation_data): New.
10490 (aarch64_ftrace_insn_reloc_b): New function.
10491 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10492 (aarch64_ftrace_insn_reloc_cb): Likewise.
10493 (aarch64_ftrace_insn_reloc_tb): Likewise.
10494 (aarch64_ftrace_insn_reloc_adr): Likewise.
10495 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10496 (aarch64_ftrace_insn_reloc_others): Likewise.
10498 (aarch64_relocate_instruction): Use visitor.
10500 2015-10-12 Yao Qi <yao.qi@linaro.org>
10502 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10503 int. Add argument buf.
10504 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10505 aarch64_relocate_instruction.
10507 2015-10-12 Yao Qi <yao.qi@linaro.org>
10509 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10510 argument insn. Remove local variable insn. Don't call
10511 target_read_uint32.
10512 (aarch64_install_fast_tracepoint_jump_pad): Call
10513 target_read_uint32.
10515 2015-09-30 Yao Qi <yao.qi@linaro.org>
10517 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10518 (emit_load_store_pair): Likewise.
10520 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10522 * dll.c (match_dll): Add cast(s).
10523 (unloaded_dll): Likewise.
10524 * linux-low.c (second_thread_of_pid_p): Likewise.
10525 (delete_lwp_callback): Likewise.
10526 (count_events_callback): Likewise.
10527 (select_event_lwp_callback): Likewise.
10528 (linux_set_resume_request): Likewise.
10529 * server.c (accumulate_file_name_length): Likewise.
10530 (emit_dll_description): Likewise.
10531 (handle_qxfer_threads_worker): Likewise.
10532 (visit_actioned_threads): Likewise.
10533 * thread-db.c (any_thread_of): Likewise.
10534 * tracepoint.c (same_process_p): Likewise.
10535 (match_blocktype): Likewise.
10536 (build_traceframe_info_xml): Likewise.
10538 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10540 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10542 (gdb_unparse_agent_expr): Likewise.
10543 * hostio.c (require_data): Likewise.
10544 (handle_pread): Likewise.
10545 * linux-low.c (disable_regset): Likewise.
10546 (fetch_register): Likewise.
10547 (store_register): Likewise.
10548 (get_dynamic): Likewise.
10549 (linux_qxfer_libraries_svr4): Likewise.
10550 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10551 (set_fast_tracepoint_jump): Likewise.
10552 (uninsert_fast_tracepoint_jumps_at): Likewise.
10553 (reinsert_fast_tracepoint_jumps_at): Likewise.
10554 (validate_inserted_breakpoint): Likewise.
10555 (clone_agent_expr): Likewise.
10556 * regcache.c (init_register_cache): Likewise.
10557 * remote-utils.c (putpkt_binary_1): Likewise.
10558 (decode_M_packet): Likewise.
10559 (decode_X_packet): Likewise.
10560 (look_up_one_symbol): Likewise.
10561 (relocate_instruction): Likewise.
10562 (monitor_output): Likewise.
10563 * server.c (handle_search_memory): Likewise.
10564 (handle_qxfer_exec_file): Likewise.
10565 (handle_qxfer_libraries): Likewise.
10566 (handle_qxfer): Likewise.
10567 (handle_query): Likewise.
10568 (handle_v_cont): Likewise.
10569 (handle_v_run): Likewise.
10570 (captured_main): Likewise.
10571 * target.c (write_inferior_memory): Likewise.
10572 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10573 * tracepoint.c (init_trace_buffer): Likewise.
10574 (add_tracepoint_action): Likewise.
10575 (add_traceframe): Likewise.
10576 (add_traceframe_block): Likewise.
10577 (cmd_qtdpsrc): Likewise.
10578 (cmd_qtdv): Likewise.
10579 (cmd_qtstatus): Likewise.
10580 (response_source): Likewise.
10581 (response_tsv): Likewise.
10582 (cmd_qtnotes): Likewise.
10583 (gdb_collect): Likewise.
10584 (initialize_tracepoint): Likewise.
10586 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10588 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10589 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10590 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10592 (enum aarch64_condition_codes): New enum.
10593 (w0): New static global.
10596 (struct aarch64_memory_operand) <type>: New
10597 MEMORY_OPERAND_POSTINDEX type.
10598 (postindex_memory_operand): New helper function.
10599 (emit_ret): New function.
10600 (emit_load_store_pair): New function, factored out of emit_stp
10601 with support for MEMORY_OPERAND_POSTINDEX.
10602 (emit_stp): Rewrite using emit_load_store_pair.
10603 (emit_ldp): New function.
10604 (emit_load_store): Likewise.
10605 (emit_ldr): Mention post-index instruction in comment.
10606 (emit_ldrh): New function.
10607 (emit_ldrb): New function.
10608 (emit_ldrsw): Mention post-index instruction in comment.
10609 (emit_str): Likewise.
10610 (emit_subs): New function.
10611 (emit_cmp): Likewise.
10612 (emit_and): Likewise.
10613 (emit_orr): Likewise.
10614 (emit_orn): Likewise.
10615 (emit_eor): Likewise.
10616 (emit_mvn): Likewise.
10617 (emit_lslv): Likewise.
10618 (emit_lsrv): Likewise.
10619 (emit_asrv): Likewise.
10620 (emit_mul): Likewise.
10621 (emit_sbfm): Likewise.
10622 (emit_sbfx): Likewise.
10623 (emit_ubfm): Likewise.
10624 (emit_ubfx): Likewise.
10625 (emit_csinc): Likewise.
10626 (emit_cset): Likewise.
10627 (emit_nop): Likewise.
10628 (emit_ops_insns): New helper function.
10629 (emit_pop): Likewise.
10630 (emit_push): Likewise.
10631 (aarch64_emit_prologue): New function.
10632 (aarch64_emit_epilogue): Likewise.
10633 (aarch64_emit_add): Likewise.
10634 (aarch64_emit_sub): Likewise.
10635 (aarch64_emit_mul): Likewise.
10636 (aarch64_emit_lsh): Likewise.
10637 (aarch64_emit_rsh_signed): Likewise.
10638 (aarch64_emit_rsh_unsigned): Likewise.
10639 (aarch64_emit_ext): Likewise.
10640 (aarch64_emit_log_not): Likewise.
10641 (aarch64_emit_bit_and): Likewise.
10642 (aarch64_emit_bit_or): Likewise.
10643 (aarch64_emit_bit_xor): Likewise.
10644 (aarch64_emit_bit_not): Likewise.
10645 (aarch64_emit_equal): Likewise.
10646 (aarch64_emit_less_signed): Likewise.
10647 (aarch64_emit_less_unsigned): Likewise.
10648 (aarch64_emit_ref): Likewise.
10649 (aarch64_emit_if_goto): Likewise.
10650 (aarch64_emit_goto): Likewise.
10651 (aarch64_write_goto_address): Likewise.
10652 (aarch64_emit_const): Likewise.
10653 (aarch64_emit_call): Likewise.
10654 (aarch64_emit_reg): Likewise.
10655 (aarch64_emit_pop): Likewise.
10656 (aarch64_emit_stack_flush): Likewise.
10657 (aarch64_emit_zero_ext): Likewise.
10658 (aarch64_emit_swap): Likewise.
10659 (aarch64_emit_stack_adjust): Likewise.
10660 (aarch64_emit_int_call_1): Likewise.
10661 (aarch64_emit_void_call_2): Likewise.
10662 (aarch64_emit_eq_goto): Likewise.
10663 (aarch64_emit_ne_goto): Likewise.
10664 (aarch64_emit_lt_goto): Likewise.
10665 (aarch64_emit_le_goto): Likewise.
10666 (aarch64_emit_gt_goto): Likewise.
10667 (aarch64_emit_ge_got): Likewise.
10668 (aarch64_emit_ops_impl): New static global variable.
10669 (aarch64_emit_ops): New target function, return
10670 &aarch64_emit_ops_impl.
10671 (struct linux_target_ops): Install it.
10673 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10675 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10676 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10678 * linux-aarch64-ipa.c: New file.
10679 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10681 (aarch64_get_thread_area): New target method.
10682 (extract_signed_bitfield): New helper function.
10683 (aarch64_decode_ldr_literal): New function.
10684 (enum aarch64_opcodes): New enum.
10685 (struct aarch64_register): New struct.
10686 (struct aarch64_operand): New struct.
10687 (x0): New static global.
10696 (aarch64_register): New helper function.
10697 (register_operand): Likewise.
10698 (immediate_operand): Likewise.
10699 (struct aarch64_memory_operand): New struct.
10700 (offset_memory_operand): New helper function.
10701 (preindex_memory_operand): Likewise.
10702 (enum aarch64_system_control_registers): New enum.
10703 (ENCODE): New macro.
10704 (emit_insn): New helper function.
10705 (emit_b): New function.
10706 (emit_bcond): Likewise.
10707 (emit_cb): Likewise.
10708 (emit_tb): Likewise.
10709 (emit_blr): Likewise.
10710 (emit_stp): Likewise.
10711 (emit_ldp_q_offset): Likewise.
10712 (emit_stp_q_offset): Likewise.
10713 (emit_load_store): Likewise.
10714 (emit_ldr): Likewise.
10715 (emit_ldrsw): Likewise.
10716 (emit_str): Likewise.
10717 (emit_ldaxr): Likewise.
10718 (emit_stxr): Likewise.
10719 (emit_stlr): Likewise.
10720 (emit_data_processing_reg): Likewise.
10721 (emit_data_processing): Likewise.
10722 (emit_add): Likewise.
10723 (emit_sub): Likewise.
10724 (emit_mov): Likewise.
10725 (emit_movk): Likewise.
10726 (emit_mov_addr): Likewise.
10727 (emit_mrs): Likewise.
10728 (emit_msr): Likewise.
10729 (emit_sevl): Likewise.
10730 (emit_wfe): Likewise.
10731 (append_insns): Likewise.
10732 (can_encode_int32_in): New helper function.
10733 (aarch64_relocate_instruction): New function.
10734 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10735 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10736 (struct linux_target_ops): Install aarch64_get_thread_area,
10737 aarch64_install_fast_tracepoint_jump_pad and
10738 aarch64_get_min_fast_tracepoint_insn_len.
10740 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10742 * Makefile.in (aarch64-insn.o): New rule.
10743 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10745 2015-09-21 Yao Qi <yao.qi@linaro.org>
10747 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10749 2015-09-21 Yao Qi <yao.qi@linaro.org>
10751 * tracepoint.c (max_jump_pad_size): Remove.
10753 2015-09-18 Yao Qi <yao.qi@linaro.org>
10755 * linux-aarch64-low.c: Don't include sys/uio.h.
10756 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10758 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10760 * tracepoint.c (eval_result_type): Change prototype.
10761 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10763 2015-09-15 Pedro Alves <palves@redhat.com>
10765 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10766 Check whether to report exec events instead of checking whether
10767 multiprocess is enabled.
10769 2015-09-15 Pedro Alves <palves@redhat.com>
10772 * remote-utils.c (prepare_resume_reply): Merge
10773 TARGET_WAITKIND_VFORK_DONE switch case with the
10774 TARGET_WAITKIND_FORKED case.
10776 2015-09-15 Yao Qi <yao.qi@linaro.org>
10778 * server.c (handle_query): Check string comparison using
10779 "else if" instead of "if".
10781 2015-09-15 Yao Qi <yao.qi@linaro.org>
10783 * server.c (vCont_supported): New global variable.
10784 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10785 matches. Append ";vContSupported+" to own_buf.
10786 (handle_v_requests): Append ";s;S" to own_buf if target supports
10787 hardware single step or vCont_supported is false.
10788 (capture_main): Set vCont_supported to zero.
10790 2015-09-15 Yao Qi <yao.qi@linaro.org>
10792 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10794 (linux_supports_hardware_single_step): ... New function.
10795 (linux_target_ops): Update.
10796 * lynx-low.c (lynx_target_ops): Set field
10797 supports_hardware_single_step to target_can_do_hardware_single_step.
10798 * nto-low.c (nto_target_ops): Likewise.
10799 * spu-low.c (spu_target_ops): Likewise.
10800 * win32-low.c (win32_target_ops): Likewise.
10801 * target.c (target_can_do_hardware_single_step): New function.
10802 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10803 Remove. <supports_hardware_single_step>: New field.
10804 (target_supports_conditional_breakpoints): Remove.
10805 (target_supports_hardware_single_step): New macro.
10806 (target_can_do_hardware_single_step): Declare.
10807 * server.c (handle_query): Use target_supports_hardware_single_step
10808 instead of target_supports_conditional_breakpoints.
10810 2015-09-15 Yao Qi <yao.qi@linaro.org>
10812 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10814 (struct linux_target_ops the_low_target): Install
10815 aarch64_linux_siginfo_fixup.
10817 2015-09-11 Don Breazeal <donb@codesourcery.com>
10818 Luis Machado <lgustavo@codesourcery.com>
10820 * linux-low.c (linux_mourn): Static declaration.
10821 (linux_arch_setup): Move in front of
10822 handle_extended_wait.
10823 (linux_arch_setup_thread): New function.
10824 (handle_extended_wait): Handle exec events. Call
10825 linux_arch_setup_thread. Make event_lwp argument a
10826 pointer-to-a-pointer.
10827 (check_zombie_leaders): Do not check stopped threads.
10828 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10829 (linux_low_filter_event): Add lwp and thread for exec'ing
10830 non-leader thread if leader thread has been deleted.
10831 Refactor code into linux_arch_setup_thread and call it.
10832 Pass child lwp pointer by reference to handle_extended_wait.
10833 (linux_wait_for_event_filtered): Update comment.
10834 (linux_wait_1): Prevent clobbering exec event status.
10835 (linux_supports_exec_events): New function.
10836 (linux_target_ops) <supports_exec_events>: Initialize new member.
10837 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10839 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10840 * server.c (report_exec_events): New global variable.
10841 (handle_query): Handle qSupported query for exec-events feature.
10842 (captured_main): Initialize report_exec_events.
10843 * server.h (report_exec_events): Declare new global variable.
10844 * target.h (struct target_ops) <supports_exec_events>: New
10846 (target_supports_exec_events): New macro.
10847 * win32-low.c (win32_target_ops) <supports_exec_events>:
10848 Initialize new member.
10850 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10852 * linux-low.c (linux_low_enable_btrace): Remove.
10853 (linux_target_ops): Replace linux_low_enable_btrace with
10854 linux_enable_btrace.
10856 2015-09-03 Yao Qi <yao.qi@linaro.org>
10858 * linux-aarch64-low.c (aarch64_insert_point): Call
10859 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10862 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10864 * linux-low.c (check_stopped_by_breakpoint): Use
10865 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10867 2015-08-27 Pedro Alves <palves@redhat.com>
10869 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10871 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10873 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10874 the XNEW-family equivalent.
10875 (compile_bytecodes): Likewise.
10876 * dll.c (loaded_dll): Likewise.
10877 * event-loop.c (append_callback_event): Likewise.
10878 (create_file_handler): Likewise.
10879 (create_file_event): Likewise.
10880 * hostio.c (handle_open): Likewise.
10881 * inferiors.c (add_thread): Likewise.
10882 (add_process): Likewise.
10883 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10884 * linux-arm-low.c (arm_new_process): Likewise.
10885 (arm_new_thread): Likewise.
10886 * linux-low.c (add_to_pid_list): Likewise.
10887 (linux_add_process): Likewise.
10888 (handle_extended_wait): Likewise.
10889 (add_lwp): Likewise.
10890 (enqueue_one_deferred_signal): Likewise.
10891 (enqueue_pending_signal): Likewise.
10892 (linux_resume_one_lwp_throw): Likewise.
10893 (linux_resume_one_thread): Likewise.
10894 (linux_read_memory): Likewise.
10895 (linux_write_memory): Likewise.
10896 * linux-mips-low.c (mips_linux_new_process): Likewise.
10897 (mips_linux_new_thread): Likewise.
10898 (mips_add_watchpoint): Likewise.
10899 * linux-x86-low.c (initialize_low_arch): Likewise.
10900 * lynx-low.c (lynx_add_process): Likewise.
10901 * mem-break.c (set_raw_breakpoint_at): Likewise.
10902 (set_breakpoint): Likewise.
10903 (add_condition_to_breakpoint): Likewise.
10904 (add_commands_to_breakpoint): Likewise.
10905 (clone_agent_expr): Likewise.
10906 (clone_one_breakpoint): Likewise.
10907 * regcache.c (new_register_cache): Likewise.
10908 * remote-utils.c (look_up_one_symbol): Likewise.
10909 * server.c (queue_stop_reply): Likewise.
10910 (start_inferior): Likewise.
10911 (queue_stop_reply_callback): Likewise.
10912 (handle_target_event): Likewise.
10913 * spu-low.c (fetch_ppc_memory): Likewise.
10914 (store_ppc_memory): Likewise.
10915 * target.c (set_target_ops): Likewise.
10916 * thread-db.c (thread_db_load_search): Likewise.
10917 (try_thread_db_load_1): Likewise.
10918 * tracepoint.c (add_tracepoint): Likewise.
10919 (add_tracepoint_action): Likewise.
10920 (create_trace_state_variable): Likewise.
10921 (cmd_qtdpsrc): Likewise.
10922 (cmd_qtro): Likewise.
10923 (add_while_stepping_state): Likewise.
10924 * win32-low.c (child_add_thread): Likewise.
10925 (get_image_name): Likewise.
10927 2015-08-25 Yao Qi <yao.qi@linaro.org>
10929 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10931 2015-08-25 Yao Qi <yao.qi@linaro.org>
10933 * Makefile.in (aarch64-linux.o): New rule.
10934 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10936 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10937 (aarch64_init_debug_reg_state): Make it extern.
10938 (aarch64_linux_prepare_to_resume): Remove.
10940 2015-08-25 Yao Qi <yao.qi@linaro.org>
10942 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10943 lwp_arch_private_info and ptid_of_lwp.
10945 2015-08-25 Yao Qi <yao.qi@linaro.org>
10947 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10948 Find proc_info by find_process_pid. All callers updated.
10950 2015-08-25 Yao Qi <yao.qi@linaro.org>
10952 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10954 (debug_reg_change_callback): Remove.
10955 (aarch64_notify_debug_reg_change): Remove.
10957 2015-08-25 Yao Qi <yao.qi@linaro.org>
10959 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10960 Call current_lwp_ptid.
10962 2015-08-25 Yao Qi <yao.qi@linaro.org>
10964 * linux-aarch64-low.c (debug_reg_change_callback): Use
10967 2015-08-25 Yao Qi <yao.qi@linaro.org>
10969 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10971 2015-08-25 Yao Qi <yao.qi@linaro.org>
10973 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10975 2015-08-25 Yao Qi <yao.qi@linaro.org>
10977 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10980 2015-08-25 Yao Qi <yao.qi@linaro.org>
10982 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10984 (debug_reg_change_callback): Remove argument entry and add argument
10985 lwp. Remove local variable thread. Don't print thread id in the
10986 debugging output. Don't check whether pid of thread equals to pid.
10987 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10988 iterate_over_lwps instead find_inferior.
10990 2015-08-24 Pedro Alves <palves@redhat.com>
10992 * inferiors.c (get_first_process): New function.
10993 * inferiors.h (get_first_process): New declaration.
10994 * remote-utils.c (read_ptid): Default to the first process in the
10995 list, instead of to the current thread's process.
10997 2015-08-24 Pedro Alves <palves@redhat.com>
10999 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
11000 * event-loop.c: Likewise.
11001 * remote-utils.c: Likewise.
11002 * tracepoint.c: Likewise.
11004 2015-08-24 Pedro Alves <palves@redhat.com>
11006 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
11009 2015-08-21 Pedro Alves <palves@redhat.com>
11011 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
11012 instead of literal 1.
11014 2015-08-21 Pedro Alves <palves@redhat.com>
11016 * tdesc.c (default_description): Explicitly zero-initialize.
11018 2015-08-21 Pedro Alves <palves@redhat.com>
11021 * inferiors.c (remove_thread): Discard any pending stop reply for
11023 * server.c (remove_all_on_match_pid): Rename to ...
11024 (remove_all_on_match_ptid): ... this. Work with a filter ptid
11026 (discard_queued_stop_replies): Change parameter to a ptid. Now
11028 (handle_v_kill, kill_inferior_callback, captured_main)
11029 (process_serial_event): Adjust.
11030 * server.h (discard_queued_stop_replies): Declare.
11032 2015-08-21 Pedro Alves <palves@redhat.com>
11034 * linux-low.c (wait_for_sigstop): Always switch to no thread
11035 selected if the previously current thread dies.
11036 * lynx-low.c (lynx_request_interrupt): Use the first thread's
11037 process instead of the current thread's.
11038 * remote-utils.c (input_interrupt): Don't check if there's no
11040 * server.c (gdb_read_memory, gdb_write_memory): If setting the
11041 current thread to the general thread fails, error out.
11042 (handle_qxfer_auxv, handle_qxfer_libraries)
11043 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
11044 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
11045 (handle_query): Check if there's a thread selected instead of
11046 checking whether there's any thread in the thread list.
11047 (handle_qxfer_threads, handle_qxfer_btrace)
11048 (handle_qxfer_btrace_conf): Don't error out early if there's no
11049 thread in the thread list.
11050 (handle_v_cont, myresume): Don't set the current thread to the
11052 (process_serial_event) <Hg handling>: Also set thread_id if the
11053 previous general thread is still alive.
11054 (process_serial_event) <g/G handling>: If setting the current
11055 thread to the general thread fails, error out.
11056 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
11057 thread's lwp instead of the current thread's.
11058 * target.c (set_desired_thread): If the desired thread was not
11059 found, leave the current thread pointing to NULL. Return an int
11060 (boolean) indicating success.
11061 * target.h (set_desired_thread): Change return type to int.
11063 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
11065 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
11066 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
11068 (ps_get_thread_area): New function.
11070 2015-08-19 Gary Benson <gbenson@redhat.com>
11072 * hostio.c (handle_pread): Do not attempt to read more data
11073 than hostio_reply_with_data can fit in a packet.
11075 2015-08-18 Joel Brobecker <brobecker@adacore.com>
11077 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
11079 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
11081 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
11083 2015-08-06 Pedro Alves <palves@redhat.com>
11085 * tracepoint.c (expr_eval_result): Now an int.
11087 2015-08-06 Pedro Alves <palves@redhat.com>
11089 * gdbthread.h (struct regcache): Forward declare.
11090 (struct thread_info) <regcache_data>: Now a struct regcache
11092 * inferiors.c (inferior_regcache_data)
11093 (set_inferior_regcache_data): Now work with struct regcache
11095 * inferiors.h (struct regcache): Forward declare.
11096 (inferior_regcache_data, set_inferior_regcache_data): Now work
11097 with struct regcache pointers.
11098 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
11099 (free_register_cache_thread): Remove struct regcache pointer
11102 2015-08-06 Pedro Alves <palves@redhat.com>
11104 * server.c (captured_main): On error, print the exception message
11105 to stderr, and if run_once is set, throw a quit.
11107 2015-08-06 Pedro Alves <palves@redhat.com>
11109 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
11110 the current thread.
11112 2015-08-06 Pedro Alves <palves@redhat.com>
11114 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
11115 reading beyond the passed in buffer length.
11117 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
11119 * tracepoint.c (symbol_list) <required>: Remove.
11121 2015-08-06 Pedro Alves <palves@redhat.com>
11123 * linux-low.c (handle_extended_wait): Set the fork child's suspend
11124 count if stopping and suspending threads.
11125 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
11126 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
11127 (linux_detach): Complete an ongoing step-over.
11128 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
11130 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
11131 (linux_wait_1): If passing a signal to the inferior after
11132 finishing a step-over, unsuspend and re-resume all lwps. If we
11133 see a single-step event but the thread should be continuing, don't
11134 pass the trap to gdb.
11135 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
11136 internal_error instead of gdb_assert.
11137 (enqueue_pending_signal): New function.
11138 (check_ptrace_stopped_lwp_gone): Add debug output.
11139 (start_step_over): Use internal_error instead of gdb_assert.
11140 (complete_ongoing_step_over): New function.
11141 (linux_resume_one_thread): Don't resume a suspended thread.
11142 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
11145 2015-08-06 Pedro Alves <palves@redhat.com>
11147 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
11148 (linux_thread_alive): Use lwp_is_marked_dead.
11149 (extended_event_reported): Delete.
11150 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11151 instead of extended_event_reported.
11152 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11154 (lwp_is_marked_dead): New function.
11155 (lwp_running): Use lwp_is_marked_dead.
11156 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11159 2015-08-06 Pedro Alves <palves@redhat.com>
11161 * linux-low.c (linux_wait_1): Move fork event output out of the
11162 !report_to_gdb check. Pass event_child->waitstatus to
11163 target_waitstatus_to_string instead of ourstatus.
11165 2015-08-04 Yao Qi <yao.qi@linaro.org>
11167 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11168 if current_thread is 32 bit.
11170 2015-08-04 Yao Qi <yao.qi@linaro.org>
11172 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11173 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11174 * server.c (extended_protocol): Remove "static".
11175 * server.h (extended_protocol): Declare it.
11177 2015-08-04 Yao Qi <yao.qi@linaro.org>
11179 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11180 both aarch64 and aarch32.
11181 (aarch64_set_pc): Likewise.
11183 2015-08-04 Yao Qi <yao.qi@linaro.org>
11185 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11186 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11187 arm-with-neon.xml to srv_xmlfiles.
11188 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11189 (is_64bit_tdesc): New function.
11190 (aarch64_linux_read_description): New function.
11191 (aarch64_arch_setup): Call aarch64_linux_read_description.
11192 (regs_info): Rename to regs_info_aarch64.
11193 (aarch64_regs_info): Return right regs_info.
11194 (initialize_low_arch): Call initialize_low_arch_aarch32.
11196 2015-08-04 Yao Qi <yao.qi@linaro.org>
11198 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11199 * linux-aarch32-low.c: New file.
11200 * linux-aarch32-low.h: New file.
11201 * linux-arm-low.c (arm_fill_gregset): Move it to
11202 linux-aarch32-low.c.
11203 (arm_store_gregset): Likewise.
11204 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11205 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11206 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11207 (regs_info): Rename to regs_info_arm.
11208 (arm_regs_info): Return regs_info_aarch32 if
11209 have_ptrace_getregset is 1 and target description is
11210 arm_with_neon or arm_with_vfpv3.
11211 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11212 Call initialize_low_arch_aarch32 instead.
11214 2015-08-04 Yao Qi <yao.qi@linaro.org>
11216 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11217 * linux-low.c: ... here.
11218 * linux-low.h (have_ptrace_getregset): Declare it.
11220 2015-08-04 Pedro Alves <palves@redhat.com>
11222 * thread-db.c (struct thread_db): Use new typedefs.
11223 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11225 (disable_thread_event_reporting): Cast result of dlsym to
11226 destination function pointer type.
11227 (thread_db_mourn): Use td_ta_delete_ftype.
11229 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11231 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11233 (CDX_BREAKPOINT): Define for R2.
11234 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11235 (the_low_target): Add comments.
11237 2015-07-30 Yao Qi <yao.qi@linaro.org>
11239 * linux-arm-low.c (arm_hwcap): Remove it.
11240 (arm_read_description): New local variable arm_hwcap. Don't
11241 set arm_hwcap to zero.
11243 2015-07-30 Yao Qi <yao.qi@linaro.org>
11245 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11246 Use regcache->tdesc instead.
11247 (arm_store_wmmxregset): Likewise.
11248 (arm_fill_vfpregset): Likewise.
11249 (arm_store_vfpregset): Likewise.
11251 2015-07-30 Yao Qi <yao.qi@linaro.org>
11253 * linux-arm-low.c: Include arch/arm.h.
11254 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11255 (arm_store_gregset): Likewise.
11257 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11259 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11260 ptrace's 4th parameter.
11262 2015-07-27 Yao Qi <yao.qi@linaro.org>
11264 * configure.srv (case aarch64*-*-linux*): Don't set
11267 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11269 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11271 * linux-arm-low.c: Likewise.
11272 * linux-cris-low.c: Likewise.
11273 * linux-crisv32-low.c: Likewise.
11274 * linux-low.c: Likewise.
11275 * linux-m68k-low.c: Likewise.
11276 * linux-mips-low.c: Likewise.
11277 * linux-nios2-low.c: Likewise.
11278 * linux-s390-low.c: Likewise.
11279 * linux-sparc-low.c: Likewise.
11280 * linux-tic6x-low.c: Likewise.
11281 * linux-tile-low.c: Likewise.
11282 * linux-x86-low.c: Likewise.
11284 2015-07-24 Pedro Alves <palves@redhat.com>
11286 * config.in: Regenerate.
11287 * configure: Regenerate.
11289 2015-07-24 Pedro Alves <palves@redhat.com>
11291 * acinclude.m4: Include ../ptrace.m4.
11292 * configure.ac: Call GDB_AC_PTRACE.
11293 * config.in, configure: Regenerate.
11295 2015-07-24 Yao Qi <yao.qi@linaro.org>
11297 * linux-low.c (linux_create_inferior): Remove setting to
11298 proc->priv->new_inferior.
11299 (linux_attach): Likewise.
11300 (linux_low_filter_event): Likewise.
11301 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11303 2015-07-24 Yao Qi <yao.qi@linaro.org>
11305 * linux-low.c (linux_arch_setup): New function.
11306 (linux_low_filter_event): If proc->tdesc is NULL and
11307 proc->attached is true, call the_low_target.arch_setup.
11308 Otherwise, keep status pending, and return.
11309 (linux_resume_one_lwp_throw): Don't call get_pc if
11310 thread->while_stepping isn't NULL. Don't call
11311 get_thread_regcache if proc->tdesc is NULL.
11312 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11313 (linux_target_ops): Install arch_setup.
11314 * server.c (start_inferior): Call the_target->arch_setup.
11315 * target.h (struct target_ops) <arch_setup>: New field.
11316 (target_arch_setup): New marco.
11317 * lynx-low.c (lynx_target_ops): Update.
11318 * nto-low.c (nto_target_ops): Update.
11319 * spu-low.c (spu_target_ops): Update.
11320 * win32-low.c (win32_target_ops): Update.
11322 2015-07-24 Yao Qi <yao.qi@linaro.org>
11324 * linux-low.c (linux_add_process): Don't set
11325 proc->priv->new_inferior.
11326 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11327 (linux_attach): Likewise.
11329 2015-07-24 Yao Qi <yao.qi@linaro.org>
11331 * server.c (start_inferior): Code refactor.
11333 2015-07-24 Yao Qi <yao.qi@linaro.org>
11335 * server.c (process_serial_event): Set general_thread.
11337 2015-07-21 Yao Qi <yao.qi@linaro.org>
11339 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11340 aarch64_linux_get_debug_reg_capacity.
11342 2015-07-17 Yao Qi <yao.qi@linaro.org>
11344 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11345 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11346 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11347 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11348 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11349 (AARCH64_HWP_ALIGNMENT): Likewise.
11350 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11351 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11352 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11353 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11354 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11355 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11356 (struct aarch64_debug_reg_state): Likewise.
11357 (struct arch_lwp_info): Likewise.
11358 (aarch64_align_watchpoint): Likewise.
11359 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11360 (aarch64_watchpoint_length): Likewise.
11361 (aarch64_point_encode_ctrl_reg): Likewise
11362 (aarch64_point_is_aligned): Likewise.
11363 (aarch64_align_watchpoint): Likewise.
11364 (aarch64_linux_set_debug_regs):
11365 (aarch64_dr_state_insert_one_point): Likewise.
11366 (aarch64_dr_state_remove_one_point): Likewise.
11367 (aarch64_handle_breakpoint): Likewise.
11368 (aarch64_handle_aligned_watchpoint): Likewise.
11369 (aarch64_handle_unaligned_watchpoint): Likewise.
11370 (aarch64_handle_watchpoint): Likewise.
11372 2015-07-17 Yao Qi <yao.qi@linaro.org>
11374 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11375 and don't aarch64_get_debug_reg_state. All callers update.
11376 (aarch64_handle_aligned_watchpoint): Likewise.
11377 (aarch64_handle_unaligned_watchpoint): Likewise.
11378 (aarch64_handle_watchpoint): Likewise.
11379 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11380 (aarch64_remove_point): Likewise.
11382 2015-07-17 Yao Qi <yao.qi@linaro.org>
11384 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11386 (aarch64_handle_unaligned_watchpoint): Likewise.
11388 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11390 Revert the previous 3 commits:
11391 Move gdb_regex* to common/
11392 Move linux_find_memory_regions_full & co.
11393 gdbserver build-id attribute generator
11395 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11396 Jan Kratochvil <jan.kratochvil@redhat.com>
11398 gdbserver build-id attribute generator.
11399 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11400 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11401 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11403 (get_dynamic): Use find_pdhr to traverse program headers.
11404 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11405 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11406 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11407 (get_hex_build_id): New.
11408 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11409 to reply XML document.
11411 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11412 Jan Kratochvil <jan.kratochvil@redhat.com>
11414 * target.c: Include target/target-utils.h and fcntl.h.
11415 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11416 (target_fileio_read_stralloc): New functions.
11418 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11420 * Makefile.in (OBS): Add gdb_regex.o.
11421 (gdb_regex.o): New.
11422 * config.in: Rebuilt.
11423 * configure: Rebuilt.
11425 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11426 Jan Kratochvil <jan.kratochvil@redhat.com>
11428 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11429 * Makefile.in (OBS): Add target-utils.o.
11430 (linux-maps.o, target-utils.o): New.
11431 * configure.srv (srv_linux_obj): Add linux-maps.o.
11433 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11435 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11436 function, return 1.
11437 (the_low_target): Install it.
11439 2015-07-14 Pedro Alves <palves@redhat.com>
11441 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11442 Instead, ignore ECHILD, and throw an error for other errnos.
11444 2015-07-10 Pedro Alves <palves@redhat.com>
11446 * event-loop.c (struct callback_event) <data>: Change type to
11447 gdb_client_data instance instead of gdb_client_data pointer.
11448 (append_callback_event): Adjust.
11450 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11452 * linux-aarch64-low.c: Add comments for each linux_target_ops
11453 method. Remove comments already covered in target_ops and
11454 linux_target_ops definitions.
11455 (the_low_target): Add comments for each unimplemented method.
11457 2015-07-09 Yao Qi <yao.qi@linaro.org>
11459 * linux-aarch64-low.c (aarch64_regmap): Remove.
11460 (aarch64_usrregs_info): Remove.
11461 (regs_info): Set field usrregs to NULL.
11463 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11465 * linux-low.c: Include "rsp-low.h"
11466 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11467 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11468 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11469 (handle_btrace_enable_pt): New.
11470 (handle_btrace_general_set): Support "pt".
11471 (handle_btrace_conf_general_set): Support "pt:size".
11473 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11475 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11478 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11480 * linux-aarch64-low.c: Remove comment about endianness.
11481 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11482 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11485 2015-06-24 Gary Benson <gbenson@redhat.com>
11487 * linux-i386-ipa.c (stdint.h): Do not include.
11488 * lynx-i386-low.c (stdint.h): Likewise.
11489 * lynx-ppc-low.c (stdint.h): Likewise.
11490 * mem-break.c (stdint.h): Likewise.
11491 * thread-db.c (stdint.h): Likewise.
11492 * tracepoint.c (stdint.h): Likewise.
11493 * win32-low.c (stdint.h): Likewise.
11495 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11497 * server.c (write_qxfer_response): Update call to
11498 remote_escape_output.
11500 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11501 Jan Kratochvil <jan.kratochvil@redhat.com>
11503 Merge multiple hex conversions.
11504 * gdbreplay.c (tohex): Rename to 'fromhex'.
11505 (logchar): Use fromhex.
11507 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11509 * server.c (handle_qxfer_libraries): Set `version' attribute for
11512 2015-06-10 Gary Benson <gbenson@redhat.com>
11514 * target.h (struct target_ops) <multifs_open>: New field.
11515 <multifs_unlink>: Likewise.
11516 <multifs_readlink>: Likewise.
11517 * linux-low.c (nat/linux-namespaces.h): New include.
11518 (linux_target_ops): Initialize the_target->multifs_open,
11519 the_target->multifs_unlink and the_target->multifs_readlink.
11520 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11521 * hostio.c (hostio_fs_pid): New static variable.
11522 (hostio_handle_new_gdb_connection): New function.
11523 (handle_setfs): Likewise.
11524 (handle_open): Use the_target->multifs_open as appropriate.
11525 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11526 (handle_readlink): Use the_target->multifs_readlink as
11528 (handle_vFile): Handle vFile:setfs packets.
11529 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11530 after target_handle_new_gdb_connection.
11532 2015-06-10 Gary Benson <gbenson@redhat.com>
11534 * configure.ac (AC_CHECK_FUNCS): Add setns.
11535 * config.in: Regenerate.
11536 * configure: Likewise.
11537 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11538 (linux-namespaces.o): New rule.
11539 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11541 2015-06-09 Gary Benson <gbenson@redhat.com>
11543 * hostio.c (handle_open): Process mode argument with
11544 fileio_to_host_mode.
11546 2015-06-01 Yao Qi <yao.qi@linaro.org>
11548 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11549 * linux-x86-low.c: Likewise.
11551 2015-05-28 Don Breazeal <donb@codesourcery.com>
11553 * linux-low.c (handle_extended_wait): Initialize
11554 thread_info.last_resume_kind for new fork children.
11556 2015-05-15 Pedro Alves <palves@redhat.com>
11558 * target.h (target_handle_new_gdb_connection): Rewrite using if
11559 wrapped in do/while.
11561 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11563 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11564 * configure, config.in: Regenerate.
11565 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11568 2015-05-12 Don Breazeal <donb@codesourcery.com>
11570 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11571 PTRACE_EVENT_VFORK_DONE.
11572 (linux_low_ptrace_options, extended_event_reported): Add vfork
11574 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11575 and "vforkdone" for RSP 'T' Stop Reply Packet.
11576 * server.h (report_vfork_events): Declare
11579 2015-05-12 Don Breazeal <donb@codesourcery.com>
11581 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11582 (the_low_target) <new_fork>: Initialize new member.
11583 * linux-arm-low.c (arm_new_fork): New function.
11584 (the_low_target) <new_fork>: Initialize new member.
11585 * linux-low.c (handle_extended_wait): Call new target function
11587 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11588 * linux-mips-low.c (mips_add_watchpoint): New function
11589 extracted from mips_insert_point.
11590 (the_low_target) <new_fork>: Initialize new member.
11591 (mips_linux_new_fork): New function.
11592 (mips_insert_point): Call mips_add_watchpoint.
11593 * linux-x86-low.c (x86_linux_new_fork): New function.
11594 (the_low_target) <new_fork>: Initialize new member.
11596 2015-05-12 Don Breazeal <donb@codesourcery.com>
11598 * linux-low.c (handle_extended_wait): Implement return value,
11599 rename argument 'event_child' to 'event_lwp', handle
11600 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11601 (linux_low_ptrace_options): New function.
11602 (linux_low_filter_event): Call linux_low_ptrace_options,
11603 use different argument fo linux_enable_event_reporting,
11604 use return value from handle_extended_wait.
11605 (extended_event_reported): New function.
11606 (linux_wait_1): Call extended_event_reported and set
11607 status to report fork events.
11608 (linux_write_memory): Add pid to debug message.
11609 (reset_lwp_ptrace_options_callback): New function.
11610 (linux_handle_new_gdb_connection): New function.
11611 (linux_target_ops): Initialize new structure member.
11612 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11613 * lynx-low.c: Initialize new structure member.
11614 * remote-utils.c (prepare_resume_reply): Implement stop reason
11615 "fork" for "T" stop message.
11616 * server.c (handle_query): Call handle_new_gdb_connection.
11617 * server.h (report_fork_events): Declare global flag.
11618 * target.h (struct target_ops) <handle_new_gdb_connection>:
11620 (target_handle_new_gdb_connection): New macro.
11621 * win32-low.c: Initialize new structure member.
11623 2015-05-12 Don Breazeal <donb@codesourcery.com>
11625 * mem-break.c (APPEND_TO_LIST): Define macro.
11626 (clone_agent_expr): New function.
11627 (clone_one_breakpoint): New function.
11628 (clone_all_breakpoints): New function.
11629 * mem-break.h: Declare new functions.
11631 2015-05-12 Don Breazeal <donb@codesourcery.com>
11633 * linux-low.c (linux_supports_fork_events): New function.
11634 (linux_supports_vfork_events): New function.
11635 (linux_target_ops): Initialize new structure members.
11636 (initialize_low): Call linux_check_ptrace_features.
11637 * lynx-low.c (lynx_target_ops): Initialize new structure
11639 * server.c (report_fork_events, report_vfork_events):
11641 (handle_query): Add new features to qSupported packet and
11643 (captured_main): Initialize new global variables.
11644 * target.h (struct target_ops) <supports_fork_events>:
11646 <supports_vfork_events>: New member.
11647 (target_supports_fork_events): New macro.
11648 (target_supports_vfork_events): New macro.
11649 * win32-low.c (win32_target_ops): Initialize new structure
11652 2015-05-12 Gary Benson <gbenson@redhat.com>
11654 * server.c (handle_qxfer_exec_file): Use current process
11657 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11659 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11660 Remove HAVE_PTRACE_GETREGS conditionals.
11661 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11662 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11664 2015-05-08 Yao Qi <yao.qi@linaro.org>
11666 * linux-low.c (linux_supports_conditional_breakpoints): New
11668 (linux_target_ops): Install new target method.
11669 * lynx-low.c (lynx_target_ops): Install NULL hook for
11670 supports_conditional_breakpoints.
11671 * nto-low.c (nto_target_ops): Likewise.
11672 * spu-low.c (spu_target_ops): Likewise.
11673 * win32-low.c (win32_target_ops): Likewise.
11674 * server.c (handle_query): Check
11675 target_supports_conditional_breakpoints.
11676 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11678 (target_supports_conditional_breakpoints): New macro.
11680 2015-05-06 Pedro Alves <palves@redhat.com>
11683 * server.c (start_inferior): If the process exits, mourn it.
11685 2015-04-21 Gary Benson <gbenson@redhat.com>
11687 * hostio.c (fileio_open_flags_to_host): Factored out to
11688 fileio_to_host_openflags in common/fileio.c. Single use
11691 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11693 * linux-xtensa-low.c (xtensa_fill_gregset)
11694 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11697 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11699 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11700 (regs_info): Replace usrregs pointer with NULL.
11702 2015-04-17 Gary Benson <gbenson@redhat.com>
11704 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11705 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11706 * server.c (handle_qxfer_exec_file): New function.
11707 (qxfer_packets): Add exec-file entry.
11708 (handle_query): Report qXfer:exec-file:read as supported packet.
11710 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11712 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11714 2015-04-09 Gary Benson <gbenson@redhat.com>
11716 * hostio-errno.c (errno_to_fileio_error): Remove function.
11717 Update caller to use remote_fileio_to_fio_error.
11719 2015-04-09 Yao Qi <yao.qi@linaro.org>
11721 * linux-low.c (linux_insert_point): Call
11722 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11723 (linux_remove_point): Call remove_memory_breakpoint if type is
11725 * linux-x86-low.c (x86_insert_point): Don't call
11726 insert_memory_breakpoint.
11727 (x86_remove_point): Don't call remove_memory_breakpoint.
11729 2015-04-01 Pedro Alves <palves@redhat.com>
11730 Cleber Rosa <crosa@redhat.com>
11732 * server.c (gdbserver_usage): Reorganize and extend the usage
11735 2015-03-24 Pedro Alves <palves@redhat.com>
11737 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11738 output. Also dump TRAP_TRACE.
11739 (linux_low_filter_event): In debug output, distinguish a
11740 resume_stop SIGSTOP from a delayed SIGSTOP.
11742 2015-03-24 Gary Benson <gbenson@redhat.com>
11744 * linux-x86-low.c (x86_linux_new_thread): Moved to
11746 (x86_linux_prepare_to_resume): Likewise.
11748 2015-03-24 Gary Benson <gbenson@redhat.com>
11750 * Makefile.in (x86-linux-dregs.o): New rule.
11751 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11752 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11753 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11754 (x86_linux_dr_get): Likewise.
11755 (x86_linux_dr_set): Likewise.
11756 (update_debug_registers_callback): Likewise.
11757 (x86_linux_dr_set_addr): Likewise.
11758 (x86_linux_dr_get_addr): Likewise.
11759 (x86_linux_dr_set_control): Likewise.
11760 (x86_linux_dr_get_control): Likewise.
11761 (x86_linux_dr_get_status): Likewise.
11762 (x86_linux_update_debug_registers): Likewise.
11764 2015-03-24 Gary Benson <gbenson@redhat.com>
11766 * linux-x86-low.c (x86_linux_update_debug_registers):
11767 New function, factored out from...
11768 (x86_linux_prepare_to_resume): ...this.
11770 2015-03-24 Gary Benson <gbenson@redhat.com>
11772 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11773 (x86_linux_dr_set): Likewise.
11774 (update_debug_registers_callback): Likewise.
11775 (x86_linux_dr_set_addr): Likewise.
11776 (x86_linux_dr_get_addr): Likewise.
11777 (x86_linux_dr_set_control): Likewise.
11778 (x86_linux_dr_get_control): Likewise.
11779 (x86_linux_dr_get_status): Likewise.
11780 (x86_linux_prepare_to_resume): Likewise.
11782 2015-03-24 Gary Benson <gbenson@redhat.com>
11784 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11785 Use perror_with_name. Pass string through gettext.
11786 (x86_linux_dr_set): Likewise.
11788 2015-03-24 Gary Benson <gbenson@redhat.com>
11790 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11791 (x86_linux_dr_set_addr): ...this.
11792 (x86_dr_low_get_addr): Rename to...
11793 (x86_linux_dr_get_addr): ...this.
11794 (x86_dr_low_set_control): Rename to...
11795 (x86_linux_dr_set_control): ...this.
11796 (x86_dr_low_get_control): Rename to...
11797 (x86_linux_dr_get_control): ...this.
11798 (x86_dr_low_get_status): Rename to...
11799 (x86_linux_dr_get_status): ...this.
11800 (x86_dr_low): Update with new function names.
11802 2015-03-24 Gary Benson <gbenson@redhat.com>
11804 * Makefile.in (x86-linux.o): New rule.
11805 * configure.srv: Add x86-linux.o to relevant targets.
11806 * linux-low.c (lwp_set_arch_private_info): New function.
11807 (lwp_arch_private_info): Likewise.
11808 * linux-x86-low.c: Include nat/x86-linux.h.
11809 (arch_lwp_info): Removed structure.
11810 (update_debug_registers_callback):
11811 Use lwp_set_debug_registers_changed.
11812 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11813 and lwp_set_debug_registers_changed.
11814 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11816 2015-03-24 Gary Benson <gbenson@redhat.com>
11818 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11819 * linux-arm-low.c (arm_new_thread): Likewise.
11820 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11821 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11822 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11823 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11825 2015-03-24 Gary Benson <gbenson@redhat.com>
11827 * linux-low.c (ptid_of_lwp): New function.
11828 (lwp_is_stopped): Likewise.
11829 (lwp_stop_reason): Likewise.
11830 * linux-x86-low.c (update_debug_registers_callback):
11831 Use lwp_is_stopped.
11832 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11835 2015-03-24 Gary Benson <gbenson@redhat.com>
11837 * linux-low.h (linux_stop_lwp): Remove declaration.
11839 2015-03-24 Gary Benson <gbenson@redhat.com>
11841 * linux-low.h: Include nat/linux-nat.h.
11842 * linux-low.c (iterate_over_lwps_args): New structure.
11843 (iterate_over_lwps_filter): New function.
11844 (iterate_over_lwps): Likewise.
11845 * linux-x86-low.c (update_debug_registers_callback):
11846 Update signature to what iterate_over_lwps expects.
11847 Remove PID check that iterate_over_lwps now performs.
11848 (x86_dr_low_set_addr): Use iterate_over_lwps.
11849 (x86_dr_low_set_control): Likewise.
11851 2015-03-24 Gary Benson <gbenson@redhat.com>
11853 * linux-x86-low.c (x86_debug_reg_state): New function.
11854 (x86_linux_prepare_to_resume): Use the above.
11856 2015-03-24 Gary Benson <gbenson@redhat.com>
11858 * linux-low.c (current_lwp_ptid): New function.
11859 * linux-x86-low.c: Include nat/linux-nat.h.
11860 (x86_dr_low_get_addr): Use current_lwp_ptid.
11861 (x86_dr_low_get_control): Likewise.
11862 (x86_dr_low_get_status): Likewise.
11864 2015-03-20 Pedro Alves <palves@redhat.com>
11866 * tracepoint.c (cmd_qtstatus): Make "str" const.
11868 2015-03-20 Pedro Alves <palves@redhat.com>
11870 * server.c (handle_general_set): Make "req_str" const.
11872 2015-03-19 Pedro Alves <palves@redhat.com>
11874 * linux-low.c (linux_resume_one_lwp): Rename to ...
11875 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11876 instead call perror_with_name.
11877 (check_ptrace_stopped_lwp_gone): New function.
11878 (linux_resume_one_lwp): Reimplement as wrapper around
11879 linux_resume_one_lwp_throw that swallows errors if the LWP is
11882 2015-03-19 Pedro Alves <palves@redhat.com>
11884 * linux-low.c (count_events_callback, select_event_lwp_callback):
11885 No longer check whether the thread has resume_stop as last resume
11888 2015-03-19 Pedro Alves <palves@redhat.com>
11890 * linux-low.c (count_events_callback, select_event_lwp_callback):
11891 Use the lwp's status_pending_p field, not the thread's.
11893 2015-03-19 Pedro Alves <palves@redhat.com>
11895 * linux-low.c (select_event_lwp_callback): Update comments to
11896 no longer mention SIGTRAP.
11898 2015-03-18 Gary Benson <gbenson@redhat.com>
11900 * server.c (handle_query): Do not report vFile:fstat as supported.
11902 2015-03-11 Gary Benson <gbenson@redhat.com>
11904 * hostio.c (sys/types.h): New include.
11905 (sys/stat.h): Likewise.
11906 (common-remote-fileio.h): Likewise.
11907 (handle_fstat): New function.
11908 (handle_vFile): Handle vFile:fstat packets.
11910 2015-03-11 Gary Benson <gbenson@redhat.com>
11912 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11913 struct stat.st_blocks and struct stat.st_blksize.
11914 * configure: Regenerate.
11915 * config.in: Likewise.
11916 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11917 (OBS): Add common-remote-fileio.o.
11918 (common-remote-fileio.o): New rule.
11920 2015-03-09 Pedro Alves <palves@redhat.com>
11922 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11923 'struct sockaddr' pointer in 'accept' call.
11925 2015-03-09 Pedro Alves <palves@redhat.com>
11928 2015-03-07 Pedro Alves <palves@redhat.com>
11929 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11930 or <winsock2.h> here. Instead include "gdb_socket.h".
11931 (remote_open): Use union gdb_sockaddr_u.
11932 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11933 or <winsock2.h> here. Instead include "gdb_socket.h".
11934 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11935 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11937 (init_named_socket, gdb_agent_helper_thread): Use union
11940 2015-03-07 Pedro Alves <palves@redhat.com>
11942 * configure.ac (build_warnings): Move
11943 -Wdeclaration-after-statement to the C-specific set.
11944 * configure: Regenerate.
11946 2015-03-07 Pedro Alves <palves@redhat.com>
11948 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11949 or <winsock2.h> here. Instead include "gdb_socket.h".
11950 (remote_open): Use union gdb_sockaddr_u.
11951 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11952 or <winsock2.h> here. Instead include "gdb_socket.h".
11953 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11954 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11956 (init_named_socket, gdb_agent_helper_thread): Use union
11959 2015-03-07 Pedro Alves <palves@redhat.com>
11961 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11964 2015-03-06 Yao Qi <yao.qi@linaro.org>
11966 * linux-aarch64-low.c (aarch64_insert_point): Use
11967 show_debug_regs as a boolean.
11968 (aarch64_remove_point): Likewise.
11970 2015-03-05 Pedro Alves <palves@redhat.com>
11972 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11973 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11974 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11975 * nto-low.c (nto_target_ops): Likewise.
11976 * spu-low.c (spu_target_ops): Likewise.
11977 * win32-low.c (win32_target_ops): Likewise.
11979 2015-03-04 Pedro Alves <palves@redhat.com>
11981 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11982 Decide whether a breakpoint triggered based on the SIGTRAP's
11984 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11985 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11986 (linux_low_filter_event): Check for breakpoints before checking
11988 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11990 (linux_stopped_by_sw_breakpoint)
11991 (linux_supports_stopped_by_sw_breakpoint)
11992 (linux_stopped_by_hw_breakpoint)
11993 (linux_supports_stopped_by_hw_breakpoint): New functions.
11994 (linux_target_ops): Install new target methods.
11996 2015-03-04 Pedro Alves <palves@redhat.com>
11998 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11999 * server.c (swbreak_feature, hwbreak_feature): New globals.
12000 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
12001 (captured_main): Clear swbreak_feature and hwbreak_feature.
12002 * server.h (swbreak_feature, hwbreak_feature): Declare.
12003 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
12004 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
12005 supports_stopped_by_hw_breakpoint>: New fields.
12006 (target_supports_stopped_by_sw_breakpoint)
12007 (target_stopped_by_sw_breakpoint)
12008 (target_supports_stopped_by_hw_breakpoint)
12009 (target_stopped_by_hw_breakpoint): Declare.
12011 2015-03-04 Pedro Alves <palves@redhat.com>
12013 enum lwp_stop_reason -> enum target_stop_reason
12014 * linux-low.c (check_stopped_by_breakpoint): Adjust.
12015 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
12016 (linux_wait_1, stuck_in_jump_pad_callback)
12017 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
12018 (linux_stopped_by_watchpoint):
12019 * linux-low.h (enum lwp_stop_reason): Delete.
12020 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12021 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12023 2015-03-04 Yao Qi <yao.qi@linaro.org>
12025 * Makefile.in (SFILES): Add linux-aarch64-low.c.
12027 2015-03-03 Gary Benson <gbenson@redhat.com>
12029 * hostio.c (handle_vFile): Fix prefix lengths.
12031 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12033 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
12036 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12038 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
12039 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
12040 (clean): Add "rm -f" for above C files.
12041 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
12042 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
12043 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
12044 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
12045 * linux-s390-low.c (HWCAP_S390_VX): New macro.
12046 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
12047 (init_registers_s390x_vx_linux64)
12048 (init_registers_s390x_tevx_linux64)
12049 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12050 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
12052 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
12053 (s390_store_vxrs_high): New functions.
12054 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
12056 (s390_arch_setup): Add logic for selecting one of the new target
12057 descriptions. Activate the new vector regsets if applicable.
12058 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
12059 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
12060 and init_registers_s390x_tevx_linux64.
12062 2015-03-01 Pedro Alves <palves@redhat.com>
12064 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
12067 2015-02-27 Pedro Alves <palves@redhat.com>
12069 * linux-x86-low.c (u_debugreg_offset): New function.
12070 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12072 2015-02-27 Pedro Alves <palves@redhat.com>
12074 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12075 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
12076 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
12077 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
12078 (ps_lsetfpregs, ps_getpid)
12079 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
12080 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
12081 (ps_lsetxregs, ps_plog): Declare.
12083 2015-02-27 Pedro Alves <palves@redhat.com>
12085 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
12086 IP_AGENT_EXPORT_FUNC.
12087 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
12088 IP_AGENT_EXPORT_FUNC.
12089 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
12090 (IP_AGENT_EXPORT): Delete.
12091 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12092 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12093 (gdb_trampoline_buffer_error, collecting, gdb_collect)
12094 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
12095 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
12096 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
12097 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
12098 (traceframe_read_count, traceframe_write_count)
12099 (traceframes_created, trace_state_variables, get_raw_reg)
12100 (get_trace_state_variable_value, set_trace_state_variable_value)
12101 (ust_loaded, helper_thread_id, cmd_buf): Use
12102 IPA_SYM_EXPORTED_NAME.
12103 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
12104 (tracepoints) Use IP_AGENT_EXPORT_VAR.
12105 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
12106 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12107 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
12108 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
12109 EXTERN_C_PUSH/EXTERN_C_POP.
12110 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
12111 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
12112 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12113 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
12114 (traceframe_write_count, traceframe_read_count)
12115 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
12116 (about_to_request_buffer_space, get_trace_state_variable_value)
12117 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
12118 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
12119 EXTERN_C_PUSH/EXTERN_C_POP.
12120 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
12121 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
12122 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
12123 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
12124 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
12125 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
12126 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
12127 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
12129 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
12130 (IP_AGENT_EXPORT_VAR_DECL): Define.
12131 (tracing): Declare.
12132 (gdb_agent_get_raw_reg): Declare.
12134 2015-02-27 Tom Tromey <tromey@redhat.com>
12135 Pedro Alves <palves@redhat.com>
12137 Rename symbols whose names are reserved C++ keywords throughout.
12139 2015-02-27 Pedro Alves <palves@redhat.com>
12141 * Makefile.in (COMPILER): New, get it from autoconf.
12142 (CXX): Get from autoconf instead.
12143 (COMPILE.pre): Use COMPILER.
12144 (CC-LD): Rename to ...
12145 (CC_LD): ... this. Use COMPILER.
12146 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
12147 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12148 * acinclude.m4: Include build-with-cxx.m4.
12149 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12150 Disable -Werror by default if building in C++ mode.
12151 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12152 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12153 the C++ compiler. Save/restore CXXFLAGS too.
12154 * configure: Regenerate.
12156 2015-02-27 Pedro Alves <palves@redhat.com>
12158 * acinclude.m4: Include libiberty.m4.
12159 * configure.ac: Call libiberty_INIT.
12160 * config.in, configure: Regenerate.
12162 2015-02-26 Pedro Alves <palves@redhat.com>
12164 * linux-low.c (linux_wait_1): When incrementing the PC past a
12165 program breakpoint always use the_low_target.breakpoint_len as
12166 increment, rather than the maximum between that and
12167 the_low_target.decr_pc_after_break.
12169 2015-02-23 Pedro Alves <palves@redhat.com>
12171 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12172 thread was doing a step-over; always adjust the PC if
12173 we stepped over a permanent breakpoint.
12174 (linux_wait_1): If we stepped over breakpoint that was on top of a
12175 permanent breakpoint, manually advance the PC past it.
12177 2015-02-23 Pedro Alves <palves@redhat.com>
12179 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12181 (x86_fill_gregset, x86_store_gregset): Use it when handling
12184 2015-02-20 Pedro Alves <palves@redhat.com>
12186 * thread-db.c: Include "nat/linux-procfs.h".
12187 (thread_db_init): Skip listing new threads if the kernel supports
12188 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12190 2015-02-20 Pedro Alves <palves@redhat.com>
12192 * linux-low.c (status_pending_p_callback): Use ptid_match.
12194 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12196 PR breakpoints/16812
12197 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12198 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12199 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12201 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12203 PR breakpoints/15956
12204 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12206 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12208 * linux-low.c (linux_low_btrace_conf): Print size.
12209 * server.c (handle_btrace_conf_general_set): New.
12210 (hanle_general_set): Call handle_btrace_conf_general_set.
12211 (handle_query): Report Qbtrace-conf:bts:size as supported.
12213 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12215 * linux-low.c (linux_low_enable_btrace): Update parameters.
12216 (linux_low_btrace_conf): New.
12217 (linux_target_ops)<to_btrace_conf>: Initialize.
12218 * server.c (current_btrace_conf): New.
12219 (handle_btrace_enable): Rename to ...
12220 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12221 to target_enable_btrace. Update comment. Update users.
12222 (handle_qxfer_btrace_conf): New.
12223 (qxfer_packets): Add btrace-conf entry.
12224 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12225 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12226 (target_ops)<read_btrace_conf>: New.
12227 (target_enable_btrace): Update parameters.
12228 (target_read_btrace_conf): New.
12230 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12232 * server.c (handle_btrace_general_set): Remove call to
12233 target_supports_btrace.
12234 (supported_btrace_packets): New.
12235 (handle_query): Call supported_btrace_packets.
12236 * target.h: include btrace-common.h.
12237 (btrace_target_info): Removed.
12238 (supports_btrace, target_supports_btrace): Update parameters.
12240 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12242 * Makefile.in (SFILES): Add common/btrace-common.c.
12243 (OBS): Add common/btrace-common.o.
12244 (btrace-common.o): Add build rules.
12245 * linux-low: Include btrace-common.h.
12246 (linux_low_read_btrace): Use struct btrace_data. Call
12247 btrace_data_init and btrace_data_fini.
12249 2015-02-06 Pedro Alves <palves@redhat.com>
12251 * thread-db.c (find_new_threads_callback): Add debug output.
12253 2015-02-04 Pedro Alves <palves@redhat.com>
12255 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12256 (resume_stopped_resumed_lwps): New function.
12257 (linux_wait_for_event_filtered): Use it.
12259 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12261 * Makefile.in (SFILES): Add linux-personality.c.
12262 (linux-personality.o): New rule.
12263 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12264 list of objects to be built.
12265 * linux-low.c: Include nat/linux-personality.h.
12266 (linux_create_inferior): Remove code to disable address space
12267 randomization (moved to ../nat/linux-personality.c). Create
12268 cleanup to disable address space randomization.
12270 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12272 * Makefile.in (posix-strerror.o): New rule.
12273 (mingw-strerror.o): Likewise.
12274 * configure: Regenerated.
12275 * configure.ac: Source file ../common/common.host. Initialize new
12276 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12278 2015-01-14 Yao Qi <yao@codesourcery.com>
12280 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12281 (ppc-linux.o): New rule.
12282 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12283 * configure.ac: AC_CHECK_FUNCS(getauxval).
12284 * config.in: Re-generated.
12285 * configure: Re-generated.
12286 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12287 ppc64_64bit_inferior_p
12289 2015-01-14 Yao Qi <yao@codesourcery.com>
12291 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12292 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12293 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12294 (PT_ORIG_R3, PT_TRAP): Likewise.
12295 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12296 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12297 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12299 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12301 * i387-fp.c (i387_cache_to_xsave): In look over
12302 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12303 zmmh_low_space field by use of zmmh_high_space.
12305 2015-01-09 Pedro Alves <palves@redhat.com>
12307 * linux-low.c (step_over_bkpt): Move higher up in the file.
12308 (handle_extended_wait): Don't store the stop_pc here.
12309 (get_stop_pc): Adjust comments and rename to ...
12310 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12311 stopped for a software breakpoint or hardware breakpoint.
12312 (thread_still_has_status_pending_p): New function.
12313 (status_pending_p_callback): Use
12314 thread_still_has_status_pending_p. If the event is no longer
12315 interesting, resume the LWP.
12316 (handle_tracepoints): Add assert.
12317 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12318 (wstatus_maybe_breakpoint): New function.
12319 (cancel_breakpoint): Delete function.
12320 (check_stopped_by_watchpoint): New function, factored out from
12321 linux_low_filter_event.
12322 (lp_status_maybe_breakpoint): Delete function.
12323 (linux_low_filter_event): Remove filter_ptid argument.
12324 Leave thread group exits pending here. Store the LWP's stop PC.
12325 Always leave events pending.
12326 (linux_wait_for_event_filtered): Pull all events out of the
12327 kernel, and leave them all pending.
12328 (count_events_callback, select_event_lwp_callback): Consider all
12330 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12331 (select_event_lwp): Only give preference to the stepping LWP in
12332 all-stop mode. Adjust comments.
12333 (ignore_event): New function.
12334 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12335 references to cancel_breakpoints. Adjust to renames. Also give
12336 equal priority to all LWPs that have had events in non-stop mode.
12337 If reporting a software breakpoint event, unadjust the LWP's PC.
12338 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12339 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12341 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12342 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12343 (linux_stopped_by_watchpoint): Adjust.
12344 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12345 * linux-low.h (enum lwp_stop_reason): New.
12346 (struct lwp_info) <stop_pc>: Adjust comment.
12347 <stopped_by_watchpoint>: Delete field.
12348 <stop_reason>: New field.
12349 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12350 * mem-break.c (software_breakpoint_inserted_here)
12351 (hardware_breakpoint_inserted_here): New function.
12352 * mem-break.h (software_breakpoint_inserted_here)
12353 (hardware_breakpoint_inserted_here): Declare.
12354 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12355 (cancel_breakpoints): Delete.
12356 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12357 (upload_fast_traceframes): Remove references to
12358 cancel_breakpoints.
12360 2015-01-09 Pedro Alves <palves@redhat.com>
12362 * thread-db.c (find_new_threads_callback): Ignore thread if the
12363 kernel thread ID is -1.
12365 2015-01-09 Pedro Alves <palves@redhat.com>
12367 * linux-low.c (linux_attach_fail_reason_string): Move to
12368 nat/linux-ptrace.c, and rename.
12369 (linux_attach_lwp): Update comment.
12370 (attach_proc_task_lwp_callback): New function.
12371 (linux_attach): Adjust to rename and use
12372 linux_proc_attach_tgid_threads.
12373 (linux_attach_fail_reason_string): Delete declaration.
12375 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12377 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12378 * server.c (gdbserver_version): Likewise.
12380 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12382 * remote-utils.c: Include ctype.h.
12383 (input_interrupt): Explicitly handle the case when the char
12384 received is the NUL byte. Improve the printing of non-ASCII
12387 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12389 * linux-low.c (linux_low_filter_event): Update call to
12390 linux_enable_event_reporting following the addition of
12391 a new parameter to that function.
12393 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12396 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12397 (AARCH64_FPCR_REGNO): Likewise.
12398 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12399 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12400 (aarch64_store_fpregset): Likewise.
12402 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12404 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12405 Remove FIXME comment about assumption about N.
12407 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12409 * configure.ac: If large-file support is disabled in GDBserver,
12410 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12411 * configure: Regenerate.
12413 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12415 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12416 warning upon ENODATA from ptrace.
12417 * linux-s390-low.c (s390_store_tdb): New.
12418 (s390_regsets): Add regset for NT_S390_TDB.
12420 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12422 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12423 without a fill_function.
12424 * linux-s390-low.c (s390_fill_last_break): Remove.
12425 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12426 (s390_arch_setup): Use regset's size instead of fill_function for
12427 loop end condition.
12429 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12431 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12432 the regset's store function when ptrace returned an error.
12433 * regcache.c (get_thread_regcache): Invalidate register cache
12434 before fetching inferior's registers.
12436 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12438 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12439 while-loop as for-loop.
12440 (regsets_store_inferior_registers): Likewise.
12442 2014-11-28 Yao Qi <yao@codesourcery.com>
12444 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12445 * config.in, configure: Re-generate.
12446 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12449 2014-11-21 Yao Qi <yao@codesourcery.com>
12451 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12452 (AC_CHECK_HEADERS): Remove malloc.h.
12453 * configure: Re-generated.
12454 * config.in: Re-generated.
12455 * server.h: Don't include alloca.h and malloc.h.
12456 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12457 Don't include malloc.h.
12459 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12461 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12462 corresponding ERRNO check in same block.
12464 2014-11-12 Pedro Alves <palves@redhat.com>
12466 * server.c (cont_thread): Update comment.
12467 (start_inferior, attach_inferior): No longer clear cont_thread.
12468 (handle_v_cont): No longer set cont_thread.
12469 (captured_main): Clear cont_thread each time a GDB connects.
12471 2014-11-12 Pedro Alves <palves@redhat.com>
12473 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12474 thread, and don't resume all threads if the Hc thread has exited.
12476 2014-11-12 Pedro Alves <palves@redhat.com>
12478 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12479 the process group instead of to a specific LWP.
12481 2014-10-15 Pedro Alves <palves@redhat.com>
12484 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12486 (arm_set_thread_context): Delete.
12487 (the_low_target): Adjust.
12488 * win32-i386-low.c (debug_registers_changed)
12489 (debug_registers_used): Delete.
12490 (update_debug_registers_callback): New function.
12491 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12492 needing to update their debug registers.
12493 (win32_get_current_dr): New function.
12494 (x86_dr_low_get_addr, x86_dr_low_get_control)
12495 (x86_dr_low_get_status): Fetch the debug register from the thread
12497 (i386_initial_stuff): Adjust.
12498 (i386_get_thread_context): Remove current_event parameter. Don't
12499 clear debug_registers_changed nor copy DR values to
12501 (i386_set_thread_context): Delete.
12502 (i386_prepare_to_resume): New function.
12503 (i386_thread_added): Mark the thread as needing to update irs
12505 (the_low_target): Remove i386_set_thread_context and install
12506 i386_prepare_to_resume.
12507 * win32-low.c (win32_get_thread_context): Adjust.
12508 (win32_set_thread_context): Use SetThreadContext
12510 (win32_prepare_to_resume): New function.
12511 (win32_require_context): New function, factored out from ...
12512 (thread_rec): ... this.
12513 (continue_one_thread): Call win32_prepare_to_resume on each thread
12514 we're about to continue.
12515 (win32_resume): Call win32_prepare_to_resume on the event thread.
12516 * win32-low.h (struct win32_thread_info)
12517 <debug_registers_changed>: New field.
12518 (struct win32_target_ops): Change prototype of set_thread_context,
12519 delete set_thread_context and add prepare_to_resume.
12520 (win32_require_context): New declaration.
12522 2014-10-08 Gary Benson <gbenson@redhat.com>
12524 * server.h: Do not include common-exceptions.h.
12526 2014-10-08 Gary Benson <gbenson@redhat.com>
12528 * server.h: Do not include cleanups.h.
12530 2014-09-30 James Hogan <james.hogan@imgtec.com>
12532 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12533 mips64-dsp-linux.c.
12535 2014-09-23 Yao Qi <yao@codesourcery.com>
12537 * linux-low.c (lp_status_maybe_breakpoint): New function.
12538 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12539 (count_events_callback): Likewise.
12540 (select_event_lwp_callback): Likewise.
12541 (cancel_breakpoints_callback): Likewise.
12543 2014-09-19 Don Breazeal <donb@codesourcery.com>
12545 * linux-low.c (handle_extended_wait): Call
12546 linux_ptrace_get_extended_event.
12547 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12548 linux_is_extended_waitstatus.
12550 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12552 * Makefile.in (CPPFLAGS): Define.
12553 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12554 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12556 2014-09-16 Gary Benson <gbenson@redhat.com>
12558 * inferiors.h (current_inferior): Renamed as...
12559 (current_thread): New variable. All uses updated.
12560 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12561 (maybe_move_out_of_jump_pad): Likewise.
12562 (cancel_breakpoint): Likewise.
12563 (linux_low_filter_event): Likewise.
12564 (wait_for_sigstop): Likewise.
12565 (linux_resume_one_lwp): Likewise.
12566 (need_step_over_p): Likewise.
12567 (start_step_over): Likewise.
12568 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12569 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12570 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12571 and save_inferior as saved_thread.
12572 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12574 (regcache_invalidate_thread): Likewise.
12575 * remote-utils.c (prepare_resume_reply): Likewise.
12576 * thread-db.c (thread_db_get_tls_address): Likewise.
12577 (disable_thread_event_reporting): Likewise.
12578 (remove_thread_event_breakpoints): Likewise.
12579 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12581 * target.h (set_desired_inferior): Renamed as...
12582 (set_desired_thread): New declaration. All uses updated.
12583 * server.c (myresume): Updated comment to reference thread instead
12585 (handle_serial_event): Likewise.
12586 (handle_target_event): Likewise.
12588 2014-09-12 Tom Tromey <tromey@redhat.com>
12589 Gary Benson <gbenson@redhat.com>
12591 * regcache.h: Include common-regcache.h.
12592 (regcache_read_pc): Don't declare.
12593 * regcache.c (get_thread_regcache_for_ptid): New function.
12595 2014-09-11 Tom Tromey <tromey@redhat.com>
12596 Gary Benson <gbenson@redhat.com>
12598 * symbol.c: New file.
12599 * Makefile.in (SFILES): Add symbol.c.
12600 (OBS): Add symbol.o.
12602 2014-09-11 Gary Benson <gbenson@redhat.com>
12604 * target.c (target_stop_ptid, target_continue_ptid): New
12607 2014-09-11 Tom Tromey <tromey@redhat.com>
12608 Gary Benson <gbenson@redhat.com>
12610 * target.h: Include target/target.h.
12611 * target.c (target_read_memory, target_read_uint32)
12612 (target_write_memory): New functions.
12614 2014-09-11 Gary Benson <gbenson@redhat.com>
12616 * server.h (debug_hw_points): Don't declare.
12617 * server.c (debug_hw_points): Don't define. Replace all uses
12618 with show_debug_regs.
12619 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12620 all uses with show_debug_regs.
12622 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12624 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12625 endianness into account.
12626 (ppc_supply_ptrace_register): Likewise.
12628 2014-09-03 James Hogan <james.hogan@imgtec.com>
12630 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12631 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12633 2014-09-03 Gary Benson <gbenson@redhat.com>
12635 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12636 ALL_DEBUG_ADDRESS_REGISTERS.
12638 2014-09-02 Gary Benson <gbenson@redhat.com>
12640 * i386-low.h: Renamed as...
12641 * x86-low.h: New file. All type, function and variable name
12642 prefixes changed from "i386_" to "x86_". All references updated.
12643 * i386-low.c: Renamed as...
12644 * x86-low.c: New file. All type, function and variable name
12645 prefixes changed from "i386_" to "x86_". All references updated.
12647 2014-09-02 Gary Benson <gbenson@redhat.com>
12649 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12650 (x86_linux_new_thread): Likewise.
12652 2014-08-29 Gary Benson <gbenson@redhat.com>
12654 * server.h (setjmp.h): Do not include.
12655 (toplevel): Do not declare.
12656 (common-exceptions.h): Include.
12657 (cleanups.h): Likewise.
12658 * server.c (toplevel): Do not define.
12659 (exit_code): New static global.
12660 (detach_or_kill_for_exit_cleanup): New function.
12661 (main): New function. Original main renamed to...
12662 (captured_main): New function.
12663 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12665 2014-08-29 Gary Benson <gbenson@redhat.com>
12667 * Makefile.in (SFILES): Add common/common-exceptions.c.
12668 (OBS): Add common-exceptions.o.
12669 (common-exceptions.o): New rule.
12670 * utils.c (prepare_to_throw_exception): New function.
12672 2014-08-29 Gary Benson <gbenson@redhat.com>
12674 * config.in: Regenerate.
12675 * configure: Likewise.
12677 2014-08-29 Gary Benson <gbenson@redhat.com>
12679 * Makefile.in (SFILES): Add common/cleanups.c.
12681 (cleanups.o): New rule.
12683 2014-08-29 Gary Benson <gbenson@redhat.com>
12685 * utils.c (internal_vwarning): New function.
12687 2014-08-28 Gary Benson <gbenson@redhat.com>
12689 * utils.h (fatal): Remove declaration.
12690 * utils.c (fatal): Remove function.
12692 2014-08-28 Gary Benson <gbenson@redhat.com>
12694 * tracepoint.c (gdb_agent_init): Replace fatal with
12696 (initialize_tracepoint): Likewise.
12698 2014-08-28 Gary Benson <gbenson@redhat.com>
12700 * remote-utils.c (remote_prepare): Replace fatal with error.
12702 2014-08-28 Gary Benson <gbenson@redhat.com>
12704 * linux-low.c (linux_async): Replace fatal with warning.
12705 Tidy up and return.
12706 (linux_start_non_stop): Return -1 if linux_async failed.
12708 2014-08-28 Gary Benson <gbenson@redhat.com>
12710 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12712 (i386_dr_low_get_addr): Remove vague comment.
12713 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12716 2014-08-28 Gary Benson <gbenson@redhat.com>
12718 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12719 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12721 (linux_resume_one_lwp): Likewise.
12722 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12724 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12725 with internal_error.
12726 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12727 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12728 (find_register_by_name): Replace fatal with internal_error.
12729 (find_regno): Likewise.
12730 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12731 * thread-db.c (thread_db_create_event): Likewise.
12732 (thread_db_load_search): Likewise.
12733 (try_thread_db_load_1): Likewise.
12734 * tracepoint.c (get_jump_space_head): Replace fatal with
12736 (claim_trampoline_space): Likewise.
12737 (have_fast_tracepoint_trampoline_buffer): Likewise.
12738 (cmd_qtstart): Likewise.
12739 (stop_tracing): Likewise.
12740 (fast_tracepoint_collecting): Likewise.
12741 (target_malloc): Likewise.
12742 (download_tracepoint): Likewise.
12743 (download_trace_state_variables): Replace check with gdb_assert.
12744 (upload_fast_traceframes): Replace fatal with internal_error.
12746 2014-08-19 Tom Tromey <tromey@redhat.com>
12747 Gary Benson <gbenson@redhat.com>
12749 * Makefile.in (SFILES): Add common/common-debug.c.
12750 (OBS): Add common-debug.o.
12751 (common-debug.o): New rule.
12752 * debug.h (debug_printf): Don't declare.
12753 * debug.c (debug_printf): Renamed and rewritten as...
12754 (debug_vprintf): New function.
12756 2014-08-19 Gary Benson <gbenson@redhat.com>
12758 * utils.h: Do not include print-utils.h.
12760 2014-08-19 Tom Tromey <tromey@redhat.com>
12761 Gary Benson <gbenson@redhat.com>
12763 * server.h: Add static assertion.
12764 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12766 2014-08-19 Tom Tromey <tromey@redhat.com>
12767 Gary Benson <gbenson@redhat.com>
12769 * Makefile.in (SFILES): Add common/errors.c.
12770 (OBS): Add errors.o.
12771 (IPA_OBS): Add errors-ipa.o.
12772 (errors.o): New rule.
12773 (errors-ipa.o): Likewise.
12774 * utils.h (perror_with_name, error, warning): Don't declare.
12775 * utils.c (warning): Renamed and rewritten as...
12776 (vwarning): New function.
12777 (error): Renamed and rewritten as...
12778 (verror): New function.
12779 (internal_error): Renamed and rewritten as...
12780 (internal_verror): New function.
12782 2014-08-07 Gary Benson <gbenson@redhat.com>
12784 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12785 * configure: Regenerate.
12786 * config.in: Likewise.
12787 * server.h: Do not include errno.h.
12788 * event-loop.c: Likewise.
12789 * hostio-errno.c: Likewise.
12790 * linux-low.c: Likewise.
12791 * remote-utils.c: Likewise.
12792 * spu-low.c: Likewise.
12793 * utils.c: Likewise.
12794 * gdbreplay.c: Unconditionally include errno.h.
12796 2014-08-07 Gary Benson <gbenson@redhat.com>
12798 * server.h: Do not include string.h.
12799 * event-loop.c: Likewise.
12800 * linux-low.c: Likewise.
12801 * regcache.c: Likewise.
12802 * remote-utils.c: Likewise.
12803 * spu-low.c: Likewise.
12804 * utils.c: Likewise.
12806 2014-08-07 Gary Benson <gbenson@redhat.com>
12808 * server.h: Do not include gdb_assert.h.
12810 2014-08-07 Gary Benson <gbenson@redhat.com>
12812 * server.h: Do not include common-utils.h.
12814 2014-08-07 Gary Benson <gbenson@redhat.com>
12816 * server.h: Do not include ptid.h.
12817 * notif.h: Likewise.
12819 2014-08-07 Gary Benson <gbenson@redhat.com>
12821 * server.h: Do not include gdb_locale.h.
12823 2014-08-07 Gary Benson <gbenson@redhat.com>
12825 * server.h: Do not include gdb/signals.h.
12826 * win32-low.c: Likewise.
12828 2014-08-07 Gary Benson <gbenson@redhat.com>
12830 * server.h: Do not include pathmax.h.
12832 2014-08-07 Gary Benson <gbenson@redhat.com>
12834 * server.h: Do not include libiberty.h.
12835 * linux-bfin-low.c: Likewise.
12837 2014-08-07 Gary Benson <gbenson@redhat.com>
12839 * server.h: Do not include ansidecl.h.
12841 2014-08-07 Gary Benson <gbenson@redhat.com>
12843 * linux-x86-low.c: Do not include stddef.h.
12844 * lynx-ppc-low.c: Likewise.
12845 * tracepoint.c: Likewise.
12847 2014-08-07 Gary Benson <gbenson@redhat.com>
12849 * server.h: Do not include stdarg.h.
12850 * nto-low.c: Likewise.
12852 2014-08-07 Gary Benson <gbenson@redhat.com>
12854 * server.h: Do not include stdlib.h.
12855 * inferiors.c: Likewise.
12856 * linux-low.c: Likewise.
12857 * regcache.c: Likewise.
12858 * spu-low.c: Likewise.
12859 * tracepoint.c: Likewise.
12860 * utils.c: Likewise.
12862 2014-08-07 Gary Benson <gbenson@redhat.com>
12864 * server.h: Do not include stdio.h.
12865 * linux-low.c: Likewise.
12866 * remote-utils.c: Likewise.
12867 * spu-low.c: Likewise.
12868 * utils.c: Likewise.
12869 * wincecompat.c: Likewise.
12871 2014-08-06 Gary Benson <gbenson@redhat.com>
12873 * regcache.c (init_register_cache): Move conditionals inside if.
12875 2014-08-06 Gary Benson <gbenson@redhat.com>
12877 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12879 2014-07-31 Gary Benson <gbenson@redhat.com>
12881 * ax.h: Do not include server.h.
12882 * gdbthread.h: Likewise.
12883 * lynx-low.h: Likewise.
12884 * notif.h: Likewise.
12886 2014-07-30 Gary Benson <gbenson@redhat.com>
12888 * server.h: Include common-defs.h.
12889 Do not include config.h or build-gnulib-gdbserver/config.h.
12891 2014-07-30 Gary Benson <gbenson@redhat.com>
12893 * hostio-errno.c: Move server.h to top of includes list.
12894 * inferiors.c: Likewise.
12895 * linux-x86-low.c: Likewise.
12896 * notif.c: Include server.h.
12898 2014-07-24 Tom Tromey <tromey@redhat.com>
12899 Gary Benson <gbenson@redhat.com>
12901 * server.h (CORE_ADDR): Now unsigned.
12903 2014-07-16 Pedro Alves <palves@redhat.com>
12905 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12907 2014-07-15 Pedro Alves <palves@redhat.com>
12909 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12912 2014-07-11 Pedro Alves <palves@redhat.com>
12914 * linux-low.c (kill_wait_lwp): New function, based on
12915 kill_one_lwp_callback, but use my_waitpid directly.
12916 (kill_one_lwp_callback, linux_kill): Use it.
12918 2014-06-23 Pedro Alves <palves@redhat.com>
12920 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12921 before setting DR0..DR3.
12923 2014-06-20 Gary Benson <gbenson@redhat.com>
12925 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12926 * configure: Regenerated.
12927 * config.in: Likewise.
12929 2014-06-20 Gary Benson <gbenson@redhat.com>
12931 * Makefile.in (SFILES): Update locations for files moved
12932 from common to nat.
12933 (object file files): Reordered.
12935 2014-06-20 Gary Benson <gbenson@redhat.com>
12937 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12938 (i386_dr_low_set_addr): Likewise.
12939 (i386_dr_low_get_addr): Likewise.
12940 (i386_dr_low_can_set_control): Likewise.
12941 (i386_dr_low_set_control): Likewise.
12942 (i386_dr_low_get_control): Likewise.
12943 (i386_dr_low_get_status): Likewise.
12944 (i386_get_debug_register_length): Likewise.
12945 * linux-x86-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.
12952 * win32-i386-low.c (i386_dr_low_set_addr):
12953 Changed signature. Made static.
12954 (i386_dr_low_get_addr): Likewise.
12955 (i386_dr_low_set_control): Likewise.
12956 (i386_dr_low_get_control): Likewise.
12957 (i386_dr_low_get_status): Likewise.
12958 (i386_dr_low): New global variable.
12960 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12962 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12963 * Makefile.in (AR, AR_FLAGS): Define.
12964 * configure: Regenerate.
12966 2014-06-19 Gary Benson <gbenson@redhat.com>
12968 * Makefile.in (i386-dregs.o): New rule.
12969 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12970 * i386-low.c (target.h): Remove include.
12971 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12972 (DR_CONTROL_SHIFT): Likewise.
12973 (DR_CONTROL_SIZE): Likewise.
12974 (DR_RW_EXECUTE): Likewise.
12975 (DR_RW_WRITE): Likewise.
12976 (DR_RW_READ): Likewise.
12977 (DR_RW_IORW): Likewise.
12978 (DR_LEN_1): Likewise.
12979 (DR_LEN_2): Likewise.
12980 (DR_LEN_4): Likewise.
12981 (DR_LEN_8): Likewise.
12982 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12983 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12984 (DR_ENABLE_SIZE): Likewise.
12985 (DR_LOCAL_SLOWDOWN): Likewise.
12986 (DR_GLOBAL_SLOWDOWN): Likewise.
12987 (DR_CONTROL_RESERVED): Likewise.
12988 (I386_DR_CONTROL_MASK): Likewise.
12989 (I386_DR_VACANT): Likewise.
12990 (I386_DR_LOCAL_ENABLE): Likewise.
12991 (I386_DR_GLOBAL_ENABLE): Likewise.
12992 (I386_DR_DISABLE): Likewise.
12993 (I386_DR_SET_RW_LEN): Likewise.
12994 (I386_DR_GET_RW_LEN): Likewise.
12995 (I386_DR_WATCH_HIT): Likewise.
12996 (i386_wp_op_t): Likewise.
12997 (i386_show_dr): Likewise.
12998 (i386_length_and_rw_bits): Likewise.
12999 (i386_insert_aligned_watchpoint): Likewise.
13000 (i386_remove_aligned_watchpoint): Likewise.
13001 (i386_handle_nonaligned_watchpoint): Likewise.
13002 i386_update_inferior_debug_regs(): Likewise.
13003 (i386_dr_insert_watchpoint): Likewise.
13004 (i386_dr_remove_watchpoint): Likewise.
13005 (i386_dr_region_ok_for_watchpoint): Likewise.
13006 (i386_dr_stopped_data_address): Likewise.
13007 (i386_dr_stopped_by_watchpoint): Likewise.
13009 2014-06-19 Gary Benson <gbenson@redhat.com>
13011 * i386-low.c (i386_dr_show): Renamed to
13012 i386_show_dr and made static. All uses updated.
13013 (i386_dr_length_and_rw_bits): Renamed to
13014 i386_length_and_rw_bits and made static.
13016 (i386_dr_insert_aligned_watchpoint): Renamed to
13017 i386_insert_aligned_watchpoint and made static.
13019 (i386_dr_remove_aligned_watchpoint): Renamed to
13020 i386_remove_aligned_watchpoint and made static.
13022 (i386_dr_update_inferior_debug_regs): Renamed to
13023 i386_update_inferior_debug_regs and made static.
13026 2014-06-18 Gary Benson <gbenson@redhat.com>
13028 * i386-low.h (i386_dr_low_can_set_addr): New macro.
13029 (i386_dr_low_can_set_control): Likewise.
13030 (i386_get_debug_register_length): Likewise.
13031 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
13032 (i386_dr_low_can_set_control): Likewise.
13033 (i386_get_debug_register_length): Likewise.
13035 2014-06-17 Gary Benson <gbenson@redhat.com>
13037 * i386-low.h (i386-dregs.h): New include.
13038 (DR_FIRSTADDR): Now in i386-dregs.h.
13039 (DR_LASTADDR): Likewise.
13040 (DR_NADDR): Likewise.
13041 (DR_STATUS): Likewise.
13042 (DR_CONTROL): Likewise.
13043 (i386_debug_reg_state): Likewise.
13044 (i386_dr_insert_watchpoint): Likewise.
13045 (i386_dr_remove_watchpoint): Likewise.
13046 (i386_dr_region_ok_for_watchpoint): Likewise.
13047 (i386_dr_stopped_data_address): Likewise.
13048 (i386_dr_stopped_by_watchpoint): Likewise.
13049 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
13051 2014-06-18 Gary Benson <gbenson@redhat.com>
13053 * i386-low.h (i386_low_insert_watchpoint): Renamed to
13054 i386_dr_insert_watchpoint.
13055 (i386_low_remove_watchpoint): Renamed to
13056 i386_dr_remove_watchpoint.
13057 (i386_low_region_ok_for_watchpoint): Renamed to
13058 i386_dr_region_ok_for_watchpoint.
13059 (i386_low_stopped_data_address): Renamed to
13060 i386_dr_stopped_data_address.
13061 (i386_low_stopped_by_watchpoint): Renamed to
13062 i386_dr_stopped_by_watchpoint.
13063 * i386-low.c (i386_show_dr): Renamed to
13064 i386_dr_show and made nonstatic. All uses updated.
13065 (i386_length_and_rw_bits): Renamed to
13066 i386_dr_length_and_rw_bits and made nonstatic.
13068 (i386_insert_aligned_watchpoint): Renamed to
13069 i386_dr_insert_aligned_watchpoint and made nonstatic.
13071 (i386_remove_aligned_watchpoint): Renamed to
13072 i386_dr_remove_aligned_watchpoint and made nonstatic.
13074 (i386_update_inferior_debug_regs): Renamed to
13075 i386_dr_update_inferior_debug_regs and made nonstatic.
13077 (i386_low_insert_watchpoint): Renamed to
13078 i386_dr_insert_watchpoint. All uses updated.
13079 (i386_low_remove_watchpoint): Renamed to
13080 i386_dr_remove_watchpoint. All uses updated.
13081 (i386_low_region_ok_for_watchpoint): Renamed to
13082 i386_dr_region_ok_for_watchpoint. All uses updated.
13083 (i386_low_stopped_data_address): Renamed to
13084 i386_dr_stopped_data_address. All uses updated.
13085 (i386_low_stopped_by_watchpoint): Renamed to
13086 i386_dr_stopped_by_watchpoint. All uses updated.
13088 2014-06-18 Gary Benson <gbenson@redhat.com>
13090 * i386-low.c (i386_dr_low_can_set_addr): New macro.
13091 (i386_dr_low_can_set_control): Likewise.
13092 (i386_insert_aligned_watchpoint): New check.
13094 2014-06-18 Gary Benson <gbenson@redhat.com>
13096 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
13099 2014-06-18 Gary Benson <gbenson@redhat.com>
13101 * i386-low.c (i386_length_and_rw_bits): Use internal_error
13102 instead of fatal and error.
13103 (i386_handle_nonaligned_watchpoint): Likewise.
13105 2014-06-18 Gary Benson <gbenson@redhat.com>
13107 * i386-low.c (i386_get_debug_register_length): New macro.
13108 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
13109 (i386_show_dr): Use debug_printf instead of fprintf. Use
13110 phex to format values.
13112 2014-06-18 Gary Benson <gbenson@redhat.com>
13114 * i386-low.h: Comment changes.
13115 * i386-low.c: Likewise.
13117 2014-06-18 Gary Benson <gbenson@redhat.com>
13119 * i386-low.c: Whitespace changes.
13121 2014-06-12 Tom Tromey <tromey@redhat.com>
13123 * utils.c (freeargv): Remove.
13125 2014-06-12 Tom Tromey <tromey@redhat.com>
13127 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
13128 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
13129 (parse_debug_format_options): Likewise.
13130 (gdbserver_usage): Likewise.
13131 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
13132 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
13133 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
13135 ($(LIBGNU)): Depend on libiberty.
13136 (all-lib): Recurse into all subdirs.
13137 (install-only): Invoke "install" target in subdirs.
13138 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
13140 * configure: Rebuild.
13141 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
13142 for vasprintf, vsnprintf, or gettimeofday.
13143 * configure.srv: Don't add safe-ctype.o or lbasename.o to
13146 2014-06-05 Joel Brobecker <brobecker@adacore.com>
13148 * development.sh: Delete.
13149 * Makefile.in (config.status): Adjust dependency on development.sh.
13150 * configure.ac: Adjust development.sh source call.
13151 * configure: Regenerate.
13153 2014-06-02 Pedro Alves <palves@redhat.com>
13155 * ax.c (gdb_free_agent_expr): New function.
13156 * ax.h (gdb_free_agent_expr): New declaration.
13157 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13159 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13161 (clear_breakpoint_conditions_and_commands): New function.
13162 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13163 (clear_breakpoint_conditions_and_commands): New declaration.
13165 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13167 * linux-aarch64-low.c (asm/ptrace.h): Include.
13169 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13171 Fix TLS access for -static -pthread.
13172 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13173 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13174 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13176 2014-05-20 Pedro Alves <palves@redhat.com>
13178 * linux-aarch64-low.c (aarch64_insert_point)
13179 (aarch64_remove_point): No longer check whether the type is
13180 supported here. Adjust to new interface.
13181 (the_low_target): Install aarch64_supports_z_point_type as
13182 supports_z_point_type method.
13183 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13184 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13185 instead of a Z packet char. Adjust.
13186 (arm_supports_z_point_type): New function.
13187 (arm_insert_point, arm_remove_point): Adjust to new interface.
13188 (the_low_target): Install arm_supports_z_point_type.
13189 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13190 (cris_insert_point, cris_remove_point): Adjust to new interface.
13191 Don't check whether the type is supported here.
13192 (the_low_target): Install cris_supports_z_point_type.
13193 * linux-low.c (linux_supports_z_point_type): New function.
13194 (linux_insert_point, linux_remove_point): Adjust to new interface.
13195 * linux-low.h (struct linux_target_ops) <insert_point,
13196 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13197 raw_breakpoint pointer parameter.
13198 <supports_z_point_type>: New method.
13199 * linux-mips-low.c (mips_supports_z_point_type): New function.
13200 (mips_insert_point, mips_remove_point): Adjust to new interface.
13201 Use mips_supports_z_point_type.
13202 (the_low_target): Install mips_supports_z_point_type.
13203 * linux-ppc-low.c (the_low_target): Install NULL as
13204 supports_z_point_type method.
13205 * linux-s390-low.c (the_low_target): Install NULL as
13206 supports_z_point_type method.
13207 * linux-sparc-low.c (the_low_target): Install NULL as
13208 supports_z_point_type method.
13209 * linux-x86-low.c (x86_supports_z_point_type): New function.
13210 (x86_insert_point): Adjust to new insert_point interface. Use
13211 insert_memory_breakpoint. Adjust to new
13212 i386_low_insert_watchpoint interface.
13213 (x86_remove_point): Adjust to remove_point interface. Use
13214 remove_memory_breakpoint. Adjust to new
13215 i386_low_remove_watchpoint interface.
13216 (the_low_target): Install x86_supports_z_point_type.
13217 * lynx-low.c (lynx_target_ops): Install NULL as
13218 supports_z_point_type callback.
13219 * nto-low.c (nto_supports_z_point_type): New.
13220 (nto_insert_point, nto_remove_point): Adjust to new interface.
13221 (nto_target_ops): Install nto_supports_z_point_type.
13222 * mem-break.c: Adjust intro comment.
13223 (struct raw_breakpoint) <raw_type, size>: New fields.
13224 <inserted>: Update comment.
13225 <shlib_disabled>: Delete field.
13226 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13227 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13228 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13229 (raw_bkpt_type_to_target_hw_bp_type): New function.
13230 (find_enabled_raw_code_breakpoint_at): New function.
13231 (find_raw_breakpoint_at): New type and size parameters. Use them.
13232 (insert_memory_breakpoint): New function, based off
13233 set_raw_breakpoint_at.
13234 (remove_memory_breakpoint): New function.
13235 (set_raw_breakpoint_at): Reimplement.
13236 (set_breakpoint): New, based on set_breakpoint_at.
13237 (set_breakpoint_at): Reimplement.
13238 (delete_raw_breakpoint): Go through the_target->remove_point
13239 instead of assuming memory breakpoints.
13240 (find_gdb_breakpoint_at): Delete.
13241 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13242 (find_gdb_breakpoint): New function.
13243 (set_gdb_breakpoint_at): Delete.
13244 (z_type_supported): New function.
13245 (set_gdb_breakpoint_1): New function, loosely based off
13246 set_gdb_breakpoint_at.
13247 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13248 (delete_gdb_breakpoint_at): Delete.
13249 (delete_gdb_breakpoint_1): New function, loosely based off
13250 delete_gdb_breakpoint_at.
13251 (delete_gdb_breakpoint): New function.
13252 (clear_gdb_breakpoint_conditions): Rename to ...
13253 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13255 (add_condition_to_breakpoint): Make static.
13256 (add_breakpoint_condition): Take a struct breakpoint pointer
13257 instead of an address. Adjust.
13258 (gdb_condition_true_at_breakpoint): Rename to ...
13259 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13261 (gdb_condition_true_at_breakpoint): Reimplement.
13262 (add_breakpoint_commands): Take a struct breakpoint pointer
13263 instead of an address. Adjust.
13264 (gdb_no_commands_at_breakpoint): Rename to ...
13265 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13266 parameter. Return true if no breakpoint was found. Change debug
13268 (gdb_no_commands_at_breakpoint): Reimplement.
13269 (run_breakpoint_commands): Rename to ...
13270 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13271 and change return type to boolean.
13272 (run_breakpoint_commands): New function.
13273 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13274 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13275 breakpoint. Go through the_target->remove_point instead of
13276 assuming memory breakpoint.
13277 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13278 software and hardware breakpoints.
13279 (reinsert_raw_breakpoint): Go through the_target->insert_point
13280 instead of assuming memory breakpoint.
13281 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13282 software and hardware breakpoints.
13283 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13284 Check both software and hardware breakpoints.
13285 (validate_inserted_breakpoint): Assert the breakpoint is a
13286 software breakpoint. Set the inserted flag to -1 instead of
13287 setting shlib_disabled.
13288 (delete_disabled_breakpoints): Adjust.
13289 (validate_breakpoints): Only validate software breakpoints.
13290 Adjust to inserted flag change.
13291 (check_mem_read, check_mem_write): Skip breakpoint types other
13292 than software breakpoints. Adjust to inserted flag change.
13293 * mem-break.h (enum raw_bkpt_type): New enum.
13294 (raw_breakpoint, struct process_info): Forward declare.
13295 (Z_packet_to_target_hw_bp_type): Delete declaration.
13296 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13297 (set_gdb_breakpoint, delete_gdb_breakpoint)
13298 (clear_breakpoint_conditions): New declarations.
13299 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13300 (breakpoint_inserted_here): Update comment.
13301 (add_breakpoint_condition, add_breakpoint_commands): Replace
13302 address parameter with a breakpoint pointer parameter.
13303 (gdb_breakpoint_here): Update comment.
13304 (delete_gdb_breakpoint_at): Delete.
13305 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13306 * server.c (process_point_options): Take a struct breakpoint
13307 pointer instead of an address. Adjust.
13308 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13309 delete_gdb_breakpoint.
13310 * spu-low.c (spu_target_ops): Install NULL as
13311 supports_z_point_type method.
13312 * target.h: Include mem-break.h.
13313 (struct target_ops) <prepare_to_access_memory>: Update comment.
13314 <supports_z_point_type>: New field.
13315 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13316 instead of a char. Also take a raw breakpoint pointer.
13317 * win32-arm-low.c (the_low_target): Install NULL as
13318 supports_z_point_type.
13319 * win32-i386-low.c (i386_supports_z_point_type): New function.
13320 (i386_insert_point, i386_remove_point): Adjust to new interface.
13321 (the_low_target): Install i386_supports_z_point_type.
13322 * win32-low.c (win32_supports_z_point_type): New function.
13323 (win32_insert_point, win32_remove_point): Adjust to new interface.
13324 (win32_target_ops): Install win32_supports_z_point_type.
13325 * win32-low.h (struct win32_target_ops):
13326 <supports_z_point_type>: New method.
13327 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13328 instead of a char. Also take a raw breakpoint pointer.
13330 2014-05-20 Pedro Alves <palves@redhat.com>
13332 * mem-break.h: Include break-common.h.
13333 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13334 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13335 (Z_packet_to_target_hw_bp_type): New declaration.
13336 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13337 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13338 (Z_PACKET_ACCESS_WP): Delete macros.
13339 (Z_packet_to_hw_type): Delete function.
13340 * i386-low.h: Don't include break-common.h here.
13341 (Z_packet_to_hw_type): Delete declaration.
13342 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13343 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13344 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13345 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13346 * linux-aarch64-low.c: Don't include break-common.h here.
13347 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13348 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13349 (Z_packet_to_target_hw_bp_type): Delete function.
13350 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13352 (mips_insert_point, mips_remove_point): Use
13353 Z_packet_to_target_hw_bp_type.
13355 2014-05-20 Pedro Alves <palves@redhat.com>
13357 * linux-aarch64-low.c: Include break-common.h.
13358 (enum target_point_type): Delete.
13359 (Z_packet_to_point_type): Rename to ...
13360 (Z_packet_to_target_hw_bp_type): ... this, and return a
13361 target_hw_bp_type instead.
13362 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13363 instead of an enum target_point_type.
13364 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13366 (aarch64_dr_state_insert_one_point)
13367 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13368 (aarch64_handle_aligned_watchpoint)
13369 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13370 Take an enum target_hw_bp_type instead of an enum
13372 (aarch64_supports_z_point_type): New function.
13373 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13374 use Z_packet_to_target_hw_bp_type.
13376 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13378 * configure.ac: Only use -Werror by default when DEVELOPMENT
13380 * configure: Regenerate.
13382 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13384 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13385 * linux-x86-low.c (X86_64_USER_REGS): New.
13386 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13388 2014-04-28 Yao Qi <yao@codesourcery.com>
13390 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13393 2014-04-25 Pedro Alves <palves@redhat.com>
13396 * linux-low.c (linux_attach_fail_reason_string): New function.
13397 (linux_attach_lwp): Delete.
13398 (linux_attach_lwp_1): Rename to ...
13399 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13400 argument. Remove "initial" parameter. Return int instead of
13401 void. Don't error or warn here.
13402 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13403 failure to attach to the tgid. Call warning when failing to
13405 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13406 argument. Remove "initial" parameter. Return int instead of
13407 void. Don't error or warn here.
13408 (linux_attach_fail_reason_string): New declaration.
13409 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13410 interface change. Use linux_attach_fail_reason_string.
13412 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13413 Walfred Tedeschi <walfred.tedeschi@intel.com>
13415 * Makefile.in: Added rules to handle new files
13416 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13417 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13418 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13419 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13420 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13421 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13422 x32-avx512-linux.o.
13423 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13424 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13425 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13426 i386/x32-avx512.xml.
13427 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13428 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13429 i386/x32-avx512-linux.xml.
13430 * i387-fp.c (num_avx512_k_registers): New constant for number
13432 (num_avx512_zmmh_low_registers): New constant for number of
13433 lower ZMM registers (0-15).
13434 (num_avx512_zmmh_high_registers): New constant for number of
13435 higher ZMM registers (16-31).
13436 (num_avx512_ymmh_registers): New contant for number of higher
13437 YMM registers (ymm16-31 added by avx521 on x86_64).
13438 (num_avx512_xmm_registers): New constant for number of higher
13439 XMM registers (xmm16-31 added by AVX512 on x86_64).
13440 (struct i387_xsave): Add space for AVX512 registers.
13441 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13442 Add code to handle AVX512 registers.
13443 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13444 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13445 prototypei from generated file.
13446 (tdesc_amd64_avx512_linux): Likewise.
13447 (init_registers_x32_avx512_linux): Likewise.
13448 (tdesc_x32_avx512_linux): Likewise.
13449 (init_registers_i386_avx512_linux): Likewise.
13450 (tdesc_i386_avx512_linux): Likewise.
13451 (x86_64_regmap): Add AVX512 registers.
13452 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13454 (initialize_low_arch): Add code to initialize AVX512 registers.
13456 2014-04-23 Pedro Alves <palves@redhat.com>
13458 * mem-break.c (find_gdb_breakpoint_at): Make static.
13459 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13461 2014-04-23 Pedro Alves <palves@redhat.com>
13463 * i386-low.c: Don't include break-common.h here.
13464 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13465 prototype to take target_hw_bp_type as argument instead of a Z
13467 * i386-low.h: Include break-common.h here.
13468 (Z_packet_to_hw_type): Declare.
13469 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13471 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13472 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13473 (x86_remove_point): Convert the packet number to a
13474 target_hw_bp_type before calling i386_low_remove_watchpoint.
13475 * win32-i386-low.c (i386_insert_point): Convert the packet number
13476 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13477 (i386_remove_point): Convert the packet number to a
13478 target_hw_bp_type before calling i386_low_remove_watchpoint.
13480 2014-04-23 Pedro Alves <palves@redhat.com>
13482 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13484 2014-04-10 Pedro Alves <palves@redhat.com>
13486 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13487 Check if the condition or command is NULL before checking if the
13488 breakpoint is known. On success, return true.
13489 * mem-break.h (add_breakpoint_condition): Document return.
13490 (add_breakpoint_commands): Add describing comment.
13491 * server.c (skip_to_semicolon): New function.
13492 (process_point_options): Use it.
13494 2014-04-09 Pedro Alves <palves@redhat.com>
13496 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13499 2014-02-27 Pedro Alves <palves@redhat.com>
13502 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13504 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13506 (last_thread_of_process_p): Take a PID argument instead of a
13508 (linux_wait_for_lwp): Delete.
13509 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13511 (linux_low_filter_event): New function, party factored out from
13512 linux_wait_for_event.
13513 (linux_wait_for_event): Rename to ...
13514 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13515 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13516 sigsuspend. Check for zombie leaders.
13517 (linux_wait_for_event): Reimplement as wrapper around
13518 linux_wait_for_event_filtered.
13519 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13520 a normal or signal exit is seen, it's the whole process exiting.
13521 (wait_for_sigstop): No longer a for_each_inferior callback.
13522 Rewrite on top of linux_wait_for_event_filtered.
13523 (stop_all_lwps): Call wait_for_sigstop directly.
13524 * server.c (resume, handle_target_event): Handle
13525 TARGET_WAITKIND_NO_RESUMED.
13527 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13529 * win32-low.c (psapi_get_dll_name,
13530 * win32_CreateToolhelp32Snapshot): Delete.
13531 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13532 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13534 (handle_load_dll): Add function description.
13535 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13537 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13539 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13541 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13542 base address when calling win32_add_one_solib.
13543 (handle_load_dll): Delete local variable load_addr.
13544 Remove 0x1000 offset applied to DLL base address when calling
13545 win32_add_one_solib.
13546 (handle_unload_dll): Add comment.
13548 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13550 * win32-low.c (win32_add_all_dlls): Renames
13551 win32_ensure_ntdll_loaded. Rewrite function documentation.
13552 Adjust implementation to always load all DLLs.
13553 Add 0x1000 offset to DLL base address when calling
13554 win32_add_one_solib.
13555 (child_initialization_done): New static global.
13556 (do_initial_child_stuff): Set child_initialization_done to
13557 zero during child initialization, and 1 after. Replace call
13558 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13560 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13561 (handle_unload_dll): Add function documentation.
13562 (get_child_debug_event): Ignore load and unload DLL events
13563 during child initialization.
13565 2014-02-20 Doug Evans <dje@google.com>
13567 Remove global all_lwps.
13568 * inferiors.h (ptid_of): Move here from linux-low.h.
13569 (pid_of, lwpid_of): Ditto.
13570 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13571 parameter is a struct thread_info * now.
13572 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13573 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13574 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13576 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13577 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13578 * linux-arm-low.c (update_registers_callback): Update, "entry"
13579 parameter is a struct thread_info * now.
13580 Fetch lwpid from current_inferior directly.
13581 (arm_insert_point): Pass &all_threads to find_inferior instead of
13583 (arm_remove_point): Ditto.
13584 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13585 (arm_prepare_to_resume): Fetch pid from thread.
13586 (arm_read_description): Fetch lwpid from current_inferior directly.
13587 * linux-low.c (all_lwps): Delete.
13588 (delete_lwp): Delete call to remove_inferior.
13589 (handle_extended_wait): Fetch lwpid from thread.
13590 (add_lwp): Don't set lwp->entry.id. Remove call to
13591 add_inferior_to_list.
13592 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13593 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13594 (kill_one_lwp_callback): Ditto.
13595 (linux_kill): Don't dereference NULL pointer.
13596 Fetch ptid,lwpid from thread.
13597 (get_detach_signal): Fetch ptid from thread.
13598 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13599 Simplify call to regcache_invalidate_thread.
13600 (delete_lwp_callback): Update, "entry" parameter is a
13601 struct thread_info * now. Fetch pid from thread.
13602 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13603 (status_pending_p_callback): Update, "entry" parameter is a
13604 struct thread_info * now. Fetch ptid from thread.
13605 (find_lwp_pid): Update, "entry" parameter is a
13606 struct thread_info * now.
13607 (linux_wait_for_lwp): Fetch pid from thread.
13608 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13609 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13610 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13611 (dequeue_one_deferred_signal): Ditto.
13612 (cancel_breakpoint): Fetch ptid from current_inferior.
13613 (linux_wait_for_event): Pass &all_threads to find_inferior,
13614 not &all_lwps. Fetch ptid, lwpid from thread.
13615 (count_events_callback): Update, "entry" parameter is a
13616 struct thread_info * now.
13617 (select_singlestep_lwp_callback): Ditto.
13618 (select_event_lwp_callback): Ditto.
13619 (cancel_breakpoints_callback): Ditto.
13620 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13622 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13623 (unsuspend_one_lwp): Update, "entry" parameter is a
13624 struct thread_info * now.
13625 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13627 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13628 Fetch lwpid from thread, not lwp.
13629 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13630 Pass &all_threads to find_inferior, not &all_lwps.
13631 (send_sigstop): Fetch lwpid from thread, not lwp.
13632 (send_sigstop_callback): Update, "entry" parameter is a
13633 struct thread_info * now.
13634 (suspend_and_send_sigstop_callback): Ditto.
13635 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13636 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13637 struct thread_info * now.
13638 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13640 (lwp_running): Update, "entry" parameter is a
13641 struct thread_info * now.
13642 (stop_all_lwps): Fetch ptid from thread.
13643 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13644 (linux_resume_one_lwp): Fetch lwpid from thread.
13645 (linux_set_resume_request): Update, "entry" parameter is a
13646 struct thread_info * now. Fetch pid, lwpid from thread.
13647 (resume_status_pending_p): Update, "entry" parameter is a
13648 struct thread_info * now.
13649 (need_step_over_p): Ditto. Fetch lwpid from thread.
13650 (start_step_over): Fetch lwpid from thread.
13651 (linux_resume_one_thread): Update, "entry" parameter is a
13652 struct thread_info * now. Fetch lwpid from thread.
13653 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13654 (proceed_one_lwp): Update, "entry" parameter is a
13655 struct thread_info * now. Fetch lwpid from thread.
13656 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13657 struct thread_info * now.
13658 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13659 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13660 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13662 (regsets_store_inferior_registers): Ditto.
13663 (fetch_register, store_register): Ditto.
13664 (linux_read_memory, linux_write_memory): Ditto.
13665 (linux_request_interrupt): Ditto.
13666 (linux_read_auxv): Ditto.
13667 (linux_xfer_siginfo): Ditto.
13668 (linux_qxfer_spu): Ditto.
13669 (linux_qxfer_libraries_svr4): Ditto.
13670 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13671 moved to inferiors.h.
13673 (get_thread_lwp): Update.
13674 (struct lwp_info): Delete member "entry". Simplify comment for
13676 (all_lwps): Delete.
13677 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13678 current_inferior directly.
13679 (update_watch_registers_callback): Update, "entry" parameter is a
13680 struct thread_info * now. Fetch pid from thread.
13681 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13682 (mips_insert_point): Fetch lwpid from current_inferior.
13683 Pass &all_threads to find_inferior, not &all_lwps.
13684 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13685 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13687 (mips_stopped_data_address): Ditto.
13688 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13690 * linux-tile-low.c (tile_arch_setup): Ditto.
13691 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13692 (update_debug_registers_callback): Update, "entry" parameter is a
13693 struct thread_info * now. Fetch pid from thread.
13694 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13695 Pass &all_threads to find_inferior, not &all_lwps.
13696 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13697 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13698 Pass &all_threads to find_inferior, not &all_lwps.
13699 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13700 (i386_dr_low_get_status): Ditto.
13701 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13702 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13703 (x86_linux_read_description): Ditto.
13704 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13706 2014-02-20 Doug Evans <dje@google.com>
13708 * inferiors.c (get_first_inferior): Fix buglet.
13710 2014-02-19 Doug Evans <dje@google.com>
13712 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13713 * inferiors.c (add_thread): Change result type to struct thread_info *.
13714 All callers updated.
13715 (add_lwp): Call add_thread here instead of in callers.
13716 All callers updated.
13717 * linux-low.h (get_lwp_thread): Rewrite.
13718 (struct lwp_info): New member "thread".
13720 2014-02-19 Doug Evans <dje@google.com>
13722 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13723 All callers updated.
13725 2014-02-19 Doug Evans <dje@google.com>
13727 * inferiors.c (add_thread): Fix whitespace.
13729 2014-02-19 Doug Evans <dje@google.com>
13731 * dll.c (clear_dlls): Replace accessing list implemention details
13733 * gdbthread.h (get_first_thread): Declare.
13734 * inferiors.c (for_each_inferior_with_data): New function.
13735 (get_first_thread): New function.
13736 (find_thread_ptid): Simplify.
13737 (get_first_inferior): New function.
13738 (clear_list): Delete.
13739 (one_inferior_p): New function.
13740 (clear_inferior_list): New function.
13741 (clear_inferiors): Update.
13742 * inferiors.h (for_each_inferior_with_data): Declare.
13743 (clear_inferior_list): Declare.
13744 (one_inferior_p): Declare.
13745 (get_first_inferior): Declare.
13746 * linux-low.c (linux_wait_for_event): Replace accessing list
13747 implemention details with API function.
13748 * server.c (target_running): Ditto.
13749 (accumulate_file_name_length): New function.
13750 (emit_dll_description): New function.
13751 (handle_qxfer_libraries): Replace accessing list implemention
13752 details with API function.
13753 (handle_qxfer_threads_worker): New function.
13754 (handle_qxfer_threads_proper): Replace accessing list implemention
13755 details with API function.
13756 (handle_query): Ditto.
13757 (visit_actioned_threads_callback_ftype): New typedef.
13758 (visit_actioned_threads_data): New struct.
13759 (visit_actioned_threads): Rewrite to be find_inferior callback.
13760 (resume): Call find_inferior.
13761 (handle_status): Replace accessing list implemention
13762 details with API function.
13763 (process_serial_event): Replace accessing list implemention details
13765 * target.c (set_desired_inferior): Replace accessing list implemention
13766 details with API function.
13767 * tracepoint.c (same_process_p): New function.
13768 (gdb_agent_about_to_close): Replace accessing list implemention
13769 details with API function.
13770 * win32-low.c (child_delete_thread): Replace accessing list
13771 implemention details with API function.
13772 (match_dll_by_basename): New function.
13773 (dll_is_loaded_by_basename): New function.
13774 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13775 details call to dll_is_loaded_by_basename.
13777 2014-02-19 Doug Evans <dje@google.com>
13779 * dll.h (struct dll_info): Add comment.
13780 * gdbthread.h (struct thread_info): Add comment.
13781 (current_ptid): Simplify.
13782 * inferiors.c (add_process): Update.
13783 (remove_process): Update.
13784 * inferiors.h (struct process_info): Rename member "head" to "entry".
13785 * linux-low.c (delete_lwp): Update.
13787 (last_thread_of_process_p): Update.
13788 (kill_one_lwp_callback, linux_kill): Update.
13789 (status_pending_p_callback): Update.
13790 (wait_for_sigstop): Update. Simplify read of ptid.
13791 (start_step_over): Update.
13792 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13793 (get_lwp_thread): Update.
13794 (struct lwp_info): Rename member "head" to "entry".
13795 * regcache.h (inferior_list_entry): Delete.
13796 * server.c (kill_inferior_callback): Update.
13797 (detach_or_kill_inferior_callback): Update.
13798 (print_started_pid): Update.
13799 (print_attached_pid): Update.
13800 (process_serial_event): Simplify read of ptid.
13801 * thread-db.c (thread_db_create_event): Update.
13802 (thread_db_get_tls_address): Update.
13803 * win32-low.c (current_inferior_ptid): Simplify.
13805 2014-02-19 Tom Tromey <tromey@redhat.com>
13807 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13809 (target_supports_btrace): Update.
13811 2014-02-14 Yao Qi <yao@codesourcery.com>
13813 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13814 (rsp-low-ipa.o): New target.
13816 2014-02-12 Tom Tromey <tromey@redhat.com>
13818 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13819 convert_ascii_to_int.
13820 * regcache.c (registers_to_string): Likewise.
13821 * remote-utils.c (decode_M_packet): Likewise.
13822 * server.c (process_serial_event): Likewise.
13824 2014-02-12 Tom Tromey <tromey@redhat.com>
13826 * server.c (handle_query, handle_v_run): Use hex2bin, not
13828 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13830 2014-02-12 Tom Tromey <tromey@redhat.com>
13832 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13833 convert_int_to_ascii.
13834 * regcache.c (registers_to_string, collect_register_as_string):
13836 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13838 * server.c (process_serial_event): Likewise.
13839 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13840 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13842 2014-02-12 Tom Tromey <tromey@redhat.com>
13844 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13845 bin2hex, not hexify.
13846 * tracepoint.c (cmd_qtstatus): Likewise.
13848 2014-02-12 Tom Tromey <tromey@redhat.com>
13850 * remote-utils.c (monitor_output): Pass explicit length to
13853 2014-02-12 Tom Tromey <tromey@redhat.com>
13855 * tracepoint.c: Include rsp-low.h.
13856 * server.c: Include rsp-low.h.
13857 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13858 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13860 * remote-utils.c: Include rsp-low.h.
13861 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13862 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13863 (convert_int_to_ascii, convert_ascii_to_int): Move to
13865 * regcache.c: Include rsp-low.h.
13866 * ax.c: Include rsp-low.h.
13867 * Makefile.in (SFILES): Add common/rsp-low.c.
13868 (OBS): Add rsp-low.o.
13869 (rsp-low.o): New target.
13871 2014-02-12 Tom Tromey <tromey@redhat.com>
13873 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13874 Include print-utils.h.
13875 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13876 (plongest, thirty_two, phex_nz): Remove.
13877 * Makefile.in (SFILES): Add common/print-utils.c.
13878 (OBS): Add print-utils.o.
13879 (print-utils-ipa.o): New target.
13880 (print-utils.o): New target.
13881 (IPA_OBJS): Add print-utils-ipa.o.
13883 2014-02-06 Tom Tromey <tromey@redhat.com>
13885 * Makefile.in (SFILES): Fix indentation.
13887 2014-02-05 Doug Evans <dje@google.com>
13889 * linux-low.c (linux_wait_for_event): Improve comment.
13890 (linux_wait_1): Keep current_inferior in sync with event_child.
13892 2014-01-22 Doug Evans <dje@google.com>
13894 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13896 2014-01-22 Doug Evans <dje@google.com>
13898 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13899 * configure: Regenerate.
13900 * config.in: Regenerate.
13901 * Makefile.in (SFILES): Add debug.c.
13902 (OBS): Add debug.o.
13903 * debug.c: New file.
13904 * debug.h: New file.
13905 * linux-aarch64-low.c (*): Update all debugging printfs to use
13906 debug_printf instead of fprintf.
13907 * linux-arm-low.c (*): Ditto.
13908 * linux-cris-low.c (*): Ditto.
13909 * linux-crisv32-low.c (*): Ditto.
13910 * linux-m32r-low.c (*): Ditto.
13911 * linux-sparc-low.c (*): Ditto.
13912 * linux-x86.c (*): Ditto.
13913 * linux-low.c (*): Ditto.
13914 (linux_wait_1): Add calls to debug_enter, debug_exit.
13915 (linux_wait): Remove redundant debugging printf.
13916 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13917 (linux_resume, unstop_all_lwps): Ditto.
13918 * mem-break.c (*): Update all debugging printfs to use
13919 debug_printf instead of fprintf.
13920 * remote-utils.c (*): Ditto.
13921 * thread-db.c (*): Ditto.
13922 * server.c #include <ctype.h>, "gdb_vecs.h".
13923 (debug_threads): Moved to debug.c.
13924 (*): Update all debugging printfs to use debug_printf instead of
13926 (start_inferior): Replace call to fflush with call to debug_flush.
13927 (monitor_show_help): Mention set debug-format.
13928 (parse_debug_format_options): New function.
13929 (handle_monitor_command): Handle "monitor set debug-format".
13930 (gdbserver_usage): Mention --debug-format.
13931 (main): Parse --debug-format.
13932 * server.h (debug_threads): Declaration moved to debug.h.
13933 #include "debug.h".
13934 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13935 trace_debug_1 that uses debug_printf.
13936 (tracepoint_look_up_symbols): Update all debugging printfs to use
13937 debug_printf instead of fprintf.
13939 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13941 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13944 2014-01-17 Pedro Alves <palves@redhat.com>
13947 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13948 defined after including gdb_proc_service.h.
13950 2014-01-16 Doug Evans <dje@google.com>
13952 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13953 (match_dll): Use it.
13955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13957 * target.h (target_ops) <read_btrace>: Change parameters and
13958 return type to allow error reporting.
13959 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13960 trace reading errors on.
13961 * linux-low.c (linux_low_read_btrace): Pass trace reading
13963 (linux_low_disable_btrace): New.
13965 2014-01-15 Doug Evans <dje@google.com>
13967 * inferiors.c (thread_id_to_gdb_id): Delete.
13968 * inferiors.h (thread_id_to_gdb_id): Delete.
13970 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13972 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13973 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13976 2014-01-08 Pedro Alves <palves@redhat.com>
13978 * server.c (handle_status): Don't discard previous queued stop
13979 replies or thread's pending status here.
13980 (main) <disconnection>: Do it here instead.
13982 2014-01-08 Pedro Alves <palves@redhat.com>
13984 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13985 * server.c (visit_actioned_threads, handle_pending_status): New
13987 (handle_v_cont): Factor out parts to ...
13988 (resume): ... this new function. If in all-stop, and a thread
13989 being resumed has a pending status, report it without actually
13991 (myresume): Adjust to use the new 'resume' function.
13992 (clear_pending_status_callback, set_pending_status_callback)
13993 (find_status_pending_thread_callback): New functions.
13994 (handle_status): Handle the case of multiple threads having
13995 interesting statuses to report. Report threads' real last signal
13996 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13997 with an interesting thread to report the status for, instead of
13998 always reporting the status of the first thread.
14000 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14002 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
14003 * gdbreplay.c (gdbreplay_version): Likewise.
14005 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
14007 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
14008 iov.iov_len with the real length in use.
14010 2013-12-13 Joel Brobecker <brobecker@adacore.com>
14012 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
14013 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
14014 for all targets that use win32-low.c.
14015 * win32-low.c (win32_ensure_ntdll_loaded): New function.
14016 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
14018 2013-12-13 Pedro Alves <palves@redhat.com>
14020 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
14021 if equal to TARGET_WAITKIND_LOADED.
14022 * win32-low.c (cached_status): New static global.
14023 (win32_wait): Add declaration.
14024 (do_initial_child_stuff): Flush all initial pending debug events
14025 up to the initial breakpoint.
14026 (win32_wait): If CACHED_STATUS was set, return that instead
14027 of doing a real wait. Remove the code resuming the execution
14028 of the inferior after receiving a TARGET_WAITKIND_LOADED event
14029 during the initial phase. Also remove the code changing
14030 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
14031 TARGET_WAITKIND_STOPPED.
14033 2013-12-11 Yao Qi <yao@codesourcery.com>
14035 * notif.c (handle_notif_ack): Return 0 if no notification
14038 2013-11-20 Doug Evans <dje@google.com>
14040 * linux-low.c (linux_set_resume_request): Fix comment.
14042 2013-11-20 Doug Evans <dje@google.com>
14044 * linux-low.c (resume_status_pending_p): Tweak comment.
14046 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
14048 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
14049 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
14050 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
14051 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
14052 (srv_amd64_regobj): Add amd64-mpx.o.
14053 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
14054 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
14055 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
14056 * i387-fp.c (num_pl_bnd_register) Added constant.
14057 (num_pl_bnd_cfg_registers) Added constant.
14058 (struct i387_xsave) Added reserved area and MPX fields.
14059 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
14060 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
14062 (tdesc_i386_mpx_linux): Add MPX amd64 target.
14063 (init_registers_amd64_mpx_linux): Declare new function.
14064 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
14065 (x86_64_regmap): Add MPX registers.
14066 (x86_linux_read_description): Add MPX case.
14067 (initialize_low_arch): Initialize MPX targets.
14069 2013-11-18 Tom Tromey <tromey@redhat.com>
14071 * configure: Rebuild.
14072 * configure.ac: Don't check for stdlib.h.
14073 * gdbreplay.c: Unconditionally include stdlib.h.
14075 2013-11-18 Tom Tromey <tromey@redhat.com>
14077 * config.in: Rebuild.
14078 * configure: Rebuild.
14079 * configure.ac: Don't use AC_HEADER_DIRENT.
14081 2013-11-18 Tom Tromey <tromey@redhat.com>
14083 * server.h: Don't check HAVE_STRING_H.
14084 * gdbreplay.c: Don't check HAVE_STRING_H.
14085 * configure: Rebuild.
14087 2013-11-18 Tom Tromey <tromey@redhat.com>
14089 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
14092 2013-11-08 Tom Tromey <tromey@redhat.com>
14094 * configure, config.in: Rebuild.
14095 * configure.ac: Remove unused configury.
14097 2013-11-08 Tom Tromey <tromey@redhat.com>
14099 * acinclude.m4: Include common.m4, codeset.m4.
14100 * configure, config.in: Rebuild.
14101 * configure.ac: Use GDB_AC_COMMON.
14103 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
14105 * linux-s390-low.c (HWCAP_S390_TE): New define.
14106 (s390_arch_setup): Consider the TE field in the HWCAP for
14107 determining 'have_regset_tdb'.
14109 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
14112 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
14115 2013-10-02 Pedro Alves <palves@redhat.com>
14117 * server.c (process_serial_event): Don't output "GDBserver
14118 exiting" if GDB is connected through stdio.
14119 * target.c (mywait): Likewise, be silent if GDB is connected
14122 2013-10-01 Joel Brobecker <brobecker@adacore.com>
14124 * lynx-low.c (lynx_add_threads_after_attach): New function.
14125 (lynx_attach): Remove call to add_thread. Add call to
14126 lynx_add_threads_after_attach instead.
14128 2013-09-28 Mike Frysinger <vapier@gentoo.org>
14130 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
14131 * config.in, configure: Regenerated.
14133 2013-09-18 Yao Qi <yao@codesourcery.com>
14136 * server.c (start_inferior): Clear 'resume_info'.
14138 2013-09-16 Jiong Wang <jiwang@tilera.com>
14140 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
14143 2013-09-16 Jiong Wang <jiwang@tilera.com>
14145 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
14146 linux-tile-low.o to srv_tgtobj.
14148 2013-09-16 Will Newton <will.newton@linaro.org>
14150 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14153 2013-09-06 Pedro Alves <palves@redhat.com>
14155 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14156 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14157 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14158 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14159 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14160 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14162 2013-09-06 Pedro Alves <palves@redhat.com>
14164 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14165 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14167 2013-09-06 Pedro Alves <palves@redhat.com>
14169 * linux-amd64-ipa.c: Include tracepoint.h.
14170 * linux-i386-ipa.c: Include tracepoint.h.
14172 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14174 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14175 (ps_get_thread_area): New function.
14177 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14179 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14180 (initialize_low_arch): Call init_registers_crisv32 rather than
14181 init_register_crisv32.
14183 2013-09-05 Pedro Alves <palves@redhat.com>
14185 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14187 * hostio.h: ... this new file.
14188 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14189 win32-low.c: Include hostio.h.
14191 2013-09-05 Pedro Alves <palves@redhat.com>
14193 * server.h (gdb_client_data, handler_func, callback_handler_func)
14194 (delete_file_handler, add_file_handler, append_callback_event)
14195 (delete_callback_event, start_event_loop, initialize_event_loop):
14196 Move to event-loop.h and include it.
14197 * event-loop.h: New file.
14199 2013-09-05 Pedro Alves <palves@redhat.com>
14201 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14202 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14203 (loaded_dll, unloaded_dll): Move to ...
14204 * dll.h: ... this new file.
14205 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14207 2013-09-05 Pedro Alves <palves@redhat.com>
14209 * server.h (current_process, get_thread_process, all_processes)
14210 (add_inferior_to_list, for_each_inferior, current_inferior)
14211 (remove_inferior, add_process, remove_process, find_process_pid)
14212 (have_started_inferiors_p, have_attached_inferiors_p)
14213 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14214 (clear_inferiors, find_inferior, find_inferior_id)
14215 (inferior_target_data, set_inferior_target_data)
14216 (inferior_regcache_data, set_inferior_regcache_data): Move to
14217 inferiors.h, and include it.
14218 * inferiors.h: New file.
14220 2013-09-05 Pedro Alves <palves@redhat.com>
14222 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14226 2013-09-05 Pedro Alves <palves@redhat.com>
14228 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14230 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14231 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14232 (handle_tracepoint_general_set, handle_tracepoint_query)
14233 (tracepoint_finished_step, tracepoint_was_hit)
14234 (release_while_stepping_state_list, current_traceframe)
14235 (in_readonly_region, traceframe_read_mem)
14236 (fetch_traceframe_registers, traceframe_read_sdata)
14237 (traceframe_read_info, struct fast_tpoint_collect_status)
14238 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14239 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14240 (supply_fast_tracepoint_registers)
14241 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14242 (ipa_tdesc, claim_trampoline_space)
14243 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14244 (agent_mem_read, agent_get_trace_state_variable_value)
14245 (agent_set_trace_state_variable_value, agent_tsv_read)
14246 (agent_mem_read_string, get_raw_reg_func_addr)
14247 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14248 * tracepoint.h: ... this new file.
14250 2013-09-05 Pedro Alves <palves@redhat.com>
14252 * server.h (perror_with_name, error, fatal, warning, paddress)
14253 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14255 * utils.h: New file.
14257 2013-09-05 Pedro Alves <palves@redhat.com>
14259 * server.h (remote_debug, noack_mode, transport_is_reliable)
14260 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14261 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14262 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14263 (write_enn, initialize_async_io, enable_async_io)
14264 (disable_async_io, check_remote_input_interrupt_request)
14265 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14266 (dead_thread_notify, prepare_resume_reply)
14267 (decode_address_to_semicolon, decode_address, decode_m_packet)
14268 (decode_M_packet, decode_X_packet, decode_xfer_write)
14269 (decode_search_memory_packet, unhexify, hexify)
14270 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14271 (look_up_one_symbol, relocate_instruction)
14272 (monitor_output): Move to remote-utils.h, and include it.
14273 * remote-utils.h: New file.
14275 2013-09-05 Pedro Alves <palves@redhat.com>
14277 * server.h (_): Delete.
14279 2013-09-02 Pedro Alves <palves@redhat.com>
14281 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14282 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14284 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14286 2013-09-02 Pierre Muller <muller@sourceware.org>
14288 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14289 or WriteProcessMemory complete successfully and handle
14290 ERROR_PARTIAL_COPY error.
14292 2013-09-02 Pedro Alves <palves@redhat.com>
14294 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14295 error instead of EIO.
14297 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14300 * linux-low.c: Include filestuff.h.
14301 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14302 * lynx-low.c: Include filestuff.h.
14303 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14304 * server.c: Include filestuff.h.
14305 (main): Call notice_open_fds.
14306 * spu-low.c: Include filestuff.h.
14307 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14309 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14311 * Makefile.in: Explain why ../target and ../nat are not
14312 listed as include file search paths.
14313 (linux-waitpid.o): New object file rule.
14314 * configure.srv (srv_native_linux_obj): New variable.
14315 Replace all occurrences of linux native object files with
14316 $srv_native_linux_obj.
14317 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14318 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14319 (linux_enable_event_reporting): Remove declaration.
14320 (my_waitpid): Moved to common/linux-waitpid.c.
14321 (linux_wait_for_event): Pass ptid when calling
14322 linux_enable_event_reporting.
14323 (linux_supports_tracefork_flag): Remove.
14324 (linux_enable_event_reporting): Likewise.
14325 (linux_tracefork_grandchild): Remove.
14326 (STACK_SIZE): Moved to common/linux-ptrace.c.
14327 (linux_tracefork_child): Remove.
14328 (linux_test_for_tracefork): Remove.
14329 (linux_look_up_symbols): Call linux_supports_traceclone.
14330 (initialize_low): Remove call to linux_test_for_tracefork.
14331 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14332 common/linux-ptrace.h.
14333 (PTRACE_TYPE_ARG4): Likewise.
14334 Include linux-ptrace.h.
14336 2013-08-21 Pedro Alves <palves@redhat.com>
14338 * config.in: Renegerate.
14340 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14342 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14343 (SFILES): Remove $(srcdir)/common/target-common.c and
14344 add $(srcdir)/target/waitstatus.c.
14345 (OBS): Remove target-common.o and add waitstatus.o.
14346 (server_h): Remove $(srcdir)/../common/target-common.h and
14347 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14348 and $(srcdir)/../target/waitstatus.h.
14349 (target-common.o): Remove.
14350 (waitstatus.o): New target object file.
14351 * target.h: Do not include target-common.h and
14352 include target/resume.h, target/wait.h and
14353 target/waitstatus.h.
14355 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14357 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14358 to PTRACE_TYPE_ARG3.
14359 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14360 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14362 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14363 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14365 2013-07-27 Jie Zhang <jie@codesourcery.com>
14366 Daniel Jacobowitz <dan@codesourcery.com>
14367 Yao Qi <yao@codesourcery.com>
14369 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14370 (mips-linux-watch.o): New rule.
14371 (mips_linux_watch_h): New variable.
14372 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14374 * linux-mips-low.c: Include mips-linux-watch.h.
14375 (struct arch_process_info, struct arch_lwp_info): New.
14376 (update_watch_registers_callback): New function.
14377 (mips_linux_new_process, mips_linux_new_thread) New functions.
14378 (mips_linux_prepare_to_resume, mips_insert_point): New
14380 (mips_remove_point, mips_stopped_by_watchpoint): New
14382 (rsp_bp_type_to_target_hw_bp_type): New function.
14383 (mips_stopped_data_address): New function.
14384 (the_low_target): Add watchpoint support functions.
14386 2013-07-27 Yao Qi <yao@codesourcery.com>
14388 * i386-low.c: Include break-common.h.
14389 (enum target_hw_bp_type): Remove.
14391 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14393 * Makefile.in (SFILES): /common/target-common.c.
14394 (OBS): Add target-common.o.
14395 (server_h): Add $(srcdir)/../common/target-common.h.
14396 (target-common.o): New target.
14397 * server.c (queue_stop_reply_callback): Free
14398 status string after use.
14399 * target.c (target_waitstatus_to_string): Remove.
14400 * target.h: Include target-common.h.
14401 (resume_kind): Likewise.
14402 (target_waitkind): Likewise.
14403 (target_waitstatus): Likewise.
14404 (TARGET_WNOHANG): Likewise.
14406 2013-07-04 Yao Qi <yao@codesourcery.com>
14408 * Makefile.in (host_alias): Use @host_noncanonical@.
14409 (target_alias): Use @target_noncanonical@.
14410 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14411 ACX_NONCANONICAL_HOST.
14412 * configure: Regenerated.
14415 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14417 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14418 * configure: Rebuild.
14419 * Makefile.in (version_host, version_target): Get from configure.
14420 (version.c): Use $(version_host) and $(version_target).
14422 2013-07-03 Pedro Alves <palves@redhat.com>
14424 * Makefile.in (config.status): Depend on development.sh.
14425 * acinclude.m4: Include libmcheck.m4.
14426 * configure: Regenerate.
14428 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14430 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14431 attribute inside the parentheses.
14432 (winapi_DebugSetProcessKillOnExit): Ditto.
14433 (winapi_DebugBreakProcess): Ditto.
14434 (winapi_GenerateConsoleCtrlEvent): Ditto.
14436 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14438 * notif.h (notif_event): Add a dummy member to avoid compiler
14441 2013-07-01 Pedro Alves <palves@redhat.com>
14443 * hostio.c (HOSTIO_PATH_MAX): Define.
14444 (require_filename, handle_open, handle_unlink, handle_readlink):
14447 2013-07-01 Pedro Alves <palves@redhat.com>
14449 * server.h: Include "pathmax.h".
14450 * linux-low.c: Don't include sys/param.h.
14451 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14453 * win32-low.c: Don't include sys/param.h.
14454 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14456 2013-07-01 Pedro Alves <palves@redhat.com>
14458 * event-loop.c: Don't check HAVE_UNISTD_H before including
14460 * gdbreplay.c: Likewise.
14461 * remote-utils.c: Likewise.
14462 * server.c: Likewise.
14463 * configure.ac: Don't check for unistd.h.
14464 * configure: Regenerate.
14466 2013-06-28 Tom Tromey <tromey@redhat.com>
14468 * Makefile.in (version.c): Use version.in, not
14471 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14473 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14474 * configure: Rebuild.
14475 * Makefile.in (version_host, version_target): Get from configure.
14476 (version.c): Use $(version_host) and $(version_target).
14478 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14480 Fix trace-status to output user name without trailing colon.
14481 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14483 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14485 Fix trace-status to output proper start-time and stop-time.
14486 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14487 output start time and stop time in hex as gdb expects.
14489 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14491 * tracepoint.c (build_traceframe_info_xml): Output trace state
14492 variables present in the trace buffer.
14494 2013-06-24 Tom Tromey <tromey@redhat.com>
14496 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14498 (version.o): Remove.
14499 * gdbreplay.c: Include version.h.
14500 (version, host_name): Don't declare.
14501 * server.h: Include version.h.
14502 (version, host_name): Don't declare.
14504 2013-06-12 Pedro Alves <palves@redhat.com>
14506 * linux-x86-low.c (linux_is_elf64): Delete global.
14507 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14508 with local linux_pid_exe_is_elf_64_file use.
14510 2013-06-11 Pedro Alves <palves@redhat.com>
14512 * linux-low.c (regset_disabled, disable_regset): New functions.
14513 (regsets_fetch_inferior_registers)
14514 (regsets_store_inferior_registers): Use them.
14515 (initialize_regsets_info); Don't allocate the disabled_regsets
14517 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14520 2013-06-11 Pedro Alves <palves@redhat.com>
14522 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14525 2013-06-11 Pedro Alves <palves@redhat.com>
14527 * linux-x86-low.c (initialize_low_arch): Call
14528 init_registers_x32_avx_linux.
14530 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14532 Fix compatibility with Android Bionic.
14533 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14536 2013-06-07 Pedro Alves <palves@redhat.com>
14539 * Makefile.in (OBS): Add tdesc.o.
14540 (IPA_OBJS): Add tdesc-ipa.o.
14541 (tdesc-ipa.o): New rule.
14542 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14544 * linux-low.c (new_inferior): Delete.
14545 (disabled_regsets, num_regsets): Delete.
14546 (linux_add_process): Adjust to set the new per-process
14548 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14549 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14550 was a stop. When calling arch_setup, switch the current inferior
14551 to the thread that got an event.
14552 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14553 (regsets_fetch_inferior_registers)
14554 (regsets_store_inferior_registers): New regsets_info parameter.
14556 (linux_register_in_regsets): New regs_info parameter. Adjust to
14558 (register_addr, fetch_register, store_register): New usrregs_info
14559 parameter. Adjust to use it.
14560 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14561 parameter regs_info. Adjust to use it.
14562 (linux_fetch_registers): Get the current inferior's regs_info, and
14564 (linux_store_registers): Ditto.
14565 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14566 (initialize_low): Don't initialize the target_regsets here. Call
14567 initialize_low_arch.
14568 * linux-low.h (target_regsets): Delete declaration.
14569 (struct regsets_info): New.
14570 (struct usrregs_info): New.
14571 (struct regs_info): New.
14572 (struct process_info_private) <new_inferior>: New field.
14573 (struct linux_target_ops): Delete the num_regs, regmap, and
14574 regset_bitmap fields. New field regs_info.
14575 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14576 * i387-fp.c (num_xmm_registers): Delete.
14577 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14578 calls to new interface.
14579 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14580 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14581 Infer the number of xmm registers from the regcache's target
14583 * i387-fp.h (num_xmm_registers): Delete.
14584 * inferiors.c (add_thread): Don't install the thread's regcache
14586 * proc-service.c (gregset_info): Fetch the current inferior's
14587 regs_info. Adjust to use it.
14588 * regcache.c: Include tdesc.h.
14589 (register_bytes, reg_defs, num_registers)
14590 (gdbserver_expedite_regs): Delete.
14591 (get_thread_regcache): If the thread doesn't have a regcache yet,
14592 create one, instead of aborting gdbserver.
14593 (regcache_invalidate_one): Rename to ...
14594 (regcache_invalidate_thread): ... this.
14595 (regcache_invalidate_one): New.
14596 (regcache_invalidate): Only invalidate registers of the current
14598 (init_register_cache): Add target_desc parameter, and use it.
14599 (new_register_cache): Ditto. Assert the target description has a
14600 non zero registers_size.
14601 (regcache_cpy): Add assertions. Adjust.
14602 (realloc_register_cache, set_register_cache): Delete.
14603 (registers_to_string, registers_from_string): Adjust.
14604 (find_register_by_name, find_regno, find_register_by_number)
14605 (register_cache_size): Add target_desc parameter, and use it.
14606 (free_register_cache_thread, free_register_cache_thread_one)
14607 (regcache_release, register_cache_size): New.
14608 (register_size): Add target_desc parameter, and use it.
14609 (register_data, supply_register, supply_register_zeroed)
14610 (supply_regblock, supply_register_by_name, collect_register)
14611 (collect_register_as_string, collect_register_by_name): Adjust.
14612 * regcache.h (struct target_desc): Forward declare.
14613 (struct regcache) <tdesc>: New field.
14614 (init_register_cache, new_register_cache): Add target_desc
14616 (regcache_invalidate_thread): Declare.
14617 (regcache_invalidate_one): Delete declaration.
14618 (regcache_release): Declare.
14619 (find_register_by_number, register_cache_size, register_size)
14620 (find_regno): Add target_desc parameter.
14621 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14623 * remote-utils.c: Include tdesc.h.
14624 (outreg, prepare_resume_reply): Adjust.
14625 * server.c: Include tdesc.h.
14626 (gdbserver_xmltarget): Delete declaration.
14627 (get_features_xml, process_serial_event): Adjust.
14628 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14630 (struct process_info) <tdesc>: New field.
14631 (ipa_tdesc): Declare.
14632 * tdesc.c: New file.
14633 * tdesc.h: New file.
14634 * tracepoint.c: Include tdesc.h.
14635 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14636 (get_context_regcache): Adjust to pass ipa_tdesc down.
14637 (do_action_at_tracepoint): Adjust to get the register cache size
14638 from the context regcache's description.
14639 (traceframe_walk_blocks): Adjust to get the register cache size
14640 from the current trace frame's description.
14641 (traceframe_get_pc): Adjust to get current trace frame's
14642 description and pass it down.
14643 (gdb_collect): Adjust to get the register cache size from the
14645 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14646 (gdbserver_xmltarget): Delete.
14647 (initialize_low_tracepoint): Set the ipa's target description.
14648 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14649 (initialize_low_tracepoint): Set the ipa's target description.
14650 * linux-x86-low.c: Include tdesc.h.
14651 [__x86_64__] (is_64bit_tdesc): New.
14652 (ps_get_thread_area, x86_get_thread_area): Use it.
14653 (i386_cannot_store_register): Rename to ...
14654 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14655 (i386_cannot_fetch_register): Rename to ...
14656 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14657 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14659 (target_regsets): Rename to ...
14660 (x86_regsets): ... this.
14661 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14663 (x86_siginfo_fixup): Use is_64bit_tdesc.
14664 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14665 (tdesc_x32_avx_linux, tdesc_x32_linux)
14666 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14668 (x86_linux_update_xmltarget): Delete.
14669 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14670 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14671 (AMD64_LINUX_USER64_CS): New.
14672 (x86_linux_read_description): New, based on
14673 x86_linux_update_xmltarget.
14674 (same_process_callback): New.
14675 (x86_arch_setup_process_callback): New.
14676 (x86_linux_update_xmltarget): New.
14677 (x86_regsets_info): New.
14678 (amd64_linux_regs_info): New.
14679 (i386_linux_usrregs_info): New.
14680 (i386_linux_regs_info): New.
14681 (x86_linux_regs_info): New.
14682 (x86_arch_setup): Reimplement.
14683 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14684 (x86_emit_ops): Ditto.
14685 (the_low_target): Adjust. Install x86_linux_regs_info,
14686 x86_cannot_fetch_register, and x86_cannot_store_register.
14687 (initialize_low_arch): New.
14688 * linux-ia64-low.c (tdesc_ia64): Declare.
14689 (ia64_fetch_register): Adjust.
14690 (ia64_usrregs_info, regs_info): New globals.
14691 (ia64_regs_info): New function.
14692 (the_low_target): Adjust.
14693 (initialize_low_arch): New function.
14694 * linux-sparc-low.c (tdesc_sparc64): Declare.
14695 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14697 (sparc_arch_setup): New function.
14698 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14699 (the_low_target): Adjust.
14700 (initialize_low_arch): New function.
14701 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14702 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14703 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14704 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14705 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14706 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14707 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14708 (tdesc_powerpc_isa205_vsx64l): Declare.
14709 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14710 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14711 (ppc_set_pc, ppc_get_hwcap): Adjust.
14712 (ppc_usrregs_info): Forward declare.
14713 (!__powerpc64__) ppc_regmap_adjusted: New global.
14714 (ppc_arch_setup): Adjust to the current process'es target
14716 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14717 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14718 (ppc_store_evrregset): Adjust.
14719 (target_regsets): Rename to ...
14720 (ppc_regsets): ... this, and make static.
14721 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14722 (ppc_regs_info): New function.
14723 (the_low_target): Adjust.
14724 (initialize_low_arch): New function.
14725 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14726 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14727 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14728 (tdesc_s390x_linux64v2): Declare.
14729 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14730 (s390_fill_gregset, s390_store_last_break): Adjust.
14731 (target_regsets): Rename to ...
14732 (s390_regsets): ... this, and make static.
14733 (s390_get_pc, s390_set_pc): Adjust.
14734 (s390_get_hwcap): New target_desc parameter, and use it.
14735 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14736 (s390_arch_setup): Adjust to set the current process'es target
14737 description. Don't adjust the regmap.
14738 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14739 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14740 (regs_info_3264): New globals.
14741 (s390_regs_info): New function.
14742 (the_low_target): Adjust.
14743 (initialize_low_arch): New function.
14744 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14745 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14746 [__mips64] (init_registers_mips_linux)
14747 (init_registers_mips_dsp_linux): Delete defines.
14748 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14749 (have_dsp): New global.
14750 (mips_read_description): New, based on mips_arch_setup.
14751 (mips_arch_setup): Reimplement.
14752 (get_usrregs_info): New function.
14753 (mips_cannot_fetch_register, mips_cannot_store_register)
14754 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14755 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14756 (target_regsets): Rename to ...
14757 (mips_regsets): ... this, and make static.
14758 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14759 (dsp_regs_info, regs_info): New globals.
14760 (mips_regs_info): New function.
14761 (the_low_target): Adjust.
14762 (initialize_low_arch): New function.
14763 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14764 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14766 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14767 (arm_read_description): New, with bits factored from
14769 (arm_arch_setup): Reimplement.
14770 (target_regsets): Rename to ...
14771 (arm_regsets): ... this, and make static.
14772 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14773 (arm_regs_info): New function.
14774 (the_low_target): Adjust.
14775 (initialize_low_arch): New function.
14776 * linux-m68k-low.c (tdesc_m68k): Declare.
14777 (target_regsets): Rename to ...
14778 (m68k_regsets): ... this, and make static.
14779 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14780 (m68k_regs_info): New function.
14781 (m68k_arch_setup): New function.
14782 (the_low_target): Adjust.
14783 (initialize_low_arch): New function.
14784 * linux-sh-low.c (tdesc_sharch): Declare.
14785 (target_regsets): Rename to ...
14786 (sh_regsets): ... this, and make static.
14787 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14788 (sh_regs_info, sh_arch_setup): New functions.
14789 (the_low_target): Adjust.
14790 (initialize_low_arch): New function.
14791 * linux-bfin-low.c (tdesc_bfin): Declare.
14792 (bfin_arch_setup): New function.
14793 (bfin_usrregs_info, regs_info): New globals.
14794 (bfin_regs_info): New function.
14795 (the_low_target): Adjust.
14796 (initialize_low_arch): New function.
14797 * linux-cris-low.c (tdesc_cris): Declare.
14798 (cris_arch_setup): New function.
14799 (cris_usrregs_info, regs_info): New globals.
14800 (cris_regs_info): New function.
14801 (the_low_target): Adjust.
14802 (initialize_low_arch): New function.
14803 * linux-cris-low.c (tdesc_crisv32): Declare.
14804 (cris_arch_setup): New function.
14805 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14806 (cris_regs_info): New function.
14807 (the_low_target): Adjust.
14808 (initialize_low_arch): New function.
14809 * linux-m32r-low.c (tdesc_m32r): Declare.
14810 (m32r_arch_setup): New function.
14811 (m32r_usrregs_info, regs_info): New globals.
14812 (m32r_regs_info): Adjust.
14813 (initialize_low_arch): New function.
14814 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14815 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14816 (tic6x_usrregs_info): Forward declare.
14817 (tic6x_read_description): New function, based on ...
14818 (tic6x_arch_setup): ... this. Reimplement.
14819 (target_regsets): Rename to ...
14820 (tic6x_regsets): ... this, and make static.
14821 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14822 (tic6x_regs_info): New function.
14823 (the_low_target): Adjust.
14824 (initialize_low_arch): New function.
14825 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14826 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14827 (target_regsets): Rename to ...
14828 (xtensa_regsets): ... this, and make static.
14829 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14831 (xtensa_arch_setup, xtensa_regs_info): New functions.
14832 (the_low_target): Adjust.
14833 (initialize_low_arch): New function.
14834 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14835 (nios2_arch_setup): Set the current process'es tdesc.
14836 (target_regsets): Rename to ...
14837 (nios2_regsets): ... this.
14838 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14839 (nios2_regs_info): New function.
14840 (the_low_target): Adjust.
14841 (initialize_low_arch): New function.
14842 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14843 (aarch64_arch_setup): Set the current process'es tdesc.
14844 (target_regsets): Rename to ...
14845 (aarch64_regsets): ... this.
14846 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14847 (aarch64_regs_info): New function.
14848 (the_low_target): Adjust.
14849 (initialize_low_arch): New function.
14850 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14852 (target_regsets): Rename to ...
14853 (tile_regsets): ... this.
14854 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14855 (tile_regs_info): New function.
14856 (tile_arch_setup): Set the current process'es tdesc.
14857 (the_low_target): Adjust.
14858 (initialize_low_arch): New function.
14859 * spu-low.c (tdesc_spu): Declare.
14860 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14861 * win32-arm-low.c (tdesc_arm): Declare.
14862 (arm_arch_setup): New function.
14863 (the_low_target): Install arm_arch_setup instead of
14864 init_registers_arm.
14865 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14866 (init_windows_x86): Rename to ...
14867 (i386_arch_setup): ... this. Set `win32_tdesc'.
14868 (the_low_target): Adjust.
14869 * win32-low.c (win32_tdesc): New global.
14870 (child_add_thread): Don't create the thread cache here.
14871 (do_initial_child_stuff): Set the new process'es tdesc.
14872 * win32-low.h (struct target_desc): Forward declare.
14873 (win32_tdesc): Declare.
14874 * lynx-i386-low.c (tdesc_i386): Declare global.
14875 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14876 * lynx-low.c (lynx_tdesc): New global.
14877 (lynx_add_process): Set the new process'es tdesc.
14878 * lynx-low.h (struct target_desc): Forward declare.
14879 (lynx_tdesc): Declare global.
14880 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14881 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14882 * nto-low.c (nto_tdesc): New global.
14883 (do_attach): Set the new process'es tdesc.
14884 * nto-low.h (struct target_desc): Forward declare.
14885 (nto_tdesc): Declare.
14886 * nto-x86-low.c (tdesc_i386): Declare.
14887 (nto_x86_arch_setup): Set `nto_tdesc'.
14889 2013-06-04 Gary Benson <gbenson@redhat.com>
14891 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14892 to qSupported response when appropriate.
14893 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14894 with nonzero-length annex.
14895 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14896 arguments supplied in annex.
14898 2013-05-31 Doug Evans <dje@google.com>
14901 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14902 64 bits in 64-cross-32 environment.
14904 2013-05-28 Pedro Alves <palves@redhat.com>
14906 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14907 (aarch64-without-fpu.c): Delete rule.
14908 * configure.srv (aarch64*-*-linux*): Remove references to
14909 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14910 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14913 2013-05-24 Pedro Alves <palves@redhat.com>
14915 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14916 instead of strchr/decode_address. Error if the range isn't split
14917 with a ','. Don't assume there's be a ':' in the action.
14919 2013-05-23 Yao Qi <yao@codesourcery.com>
14920 Pedro Alves <palves@redhat.com>
14922 * linux-low.c (lwp_in_step_range): New function.
14923 (linux_wait_1): If the thread was range stepping and stopped
14924 outside the stepping range, report the stop to GDB. Otherwise,
14925 continue stepping. Add range stepping debug output.
14926 (linux_set_resume_request): Copy the step range from the resume
14927 request to the lwp.
14928 (linux_supports_range_stepping): New.
14929 (linux_target_ops) <supports_range_stepping>: Set to
14930 linux_supports_range_stepping.
14931 * linux-low.h (struct linux_target_ops)
14932 <supports_range_stepping>: New field.
14933 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14934 * linux-x86-low.c (x86_supports_range_stepping): New.
14935 (the_low_target) <supports_range_stepping>: Set to
14936 x86_supports_range_stepping.
14937 * server.c (handle_v_cont): Handle 'r' action.
14938 (handle_v_requests): Append ";r" if the target supports range
14940 * target.h (struct thread_resume) <step_range_start,
14941 step_range_end>: New fields.
14942 (struct target_ops) <supports_range_stepping>:
14944 (target_supports_range_stepping): New macro.
14946 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14948 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14949 confusion in comment.
14951 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14953 * lynx-low.c (struct process_info_private): New type.
14954 (lynx_add_process): New function.
14955 (lynx_create_inferior, lynx_attach): Replace calls to
14956 add_process by calls to lynx_add_process.
14957 (lynx_resume): If PTID is null, then try using
14958 current_process()->private->last_wait_event_ptid.
14960 (lynx_clear_inferiors): Delete. The contents of that function
14961 has been inlined in lynx_mourn;
14962 (lynx_wait_1): Save the ptid in the process's private data.
14963 (lynx_mourn): Free the process' private data. Replace call
14964 to lynx_clear_inferiors by call to clear_inferiors.
14966 2013-05-17 Yao Qi <yao@codesourcery.com>
14968 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14971 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14973 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14974 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14975 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14976 PT_TEXT_END_ADDR guards. Update comments.
14977 (linux_target_op) <read_offsets>: Conditionally define to
14978 linux_read_offsets if the target is UCLIBC and if it defines
14979 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14981 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14982 Andrew Jenner <andrew@codesourcery.com>
14984 * Makefile.in (SFILES): Add linux-nios2-low.c.
14985 (clean): Add action to delete nios2-linux.c.
14986 (nios2-linux.c): New rule.
14987 * configure.srv: Add nios2*-*-linux*.
14988 * linux-nios2-low.c: New.
14990 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14992 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14994 2013-04-25 Hui Zhu <hui@codesourcery.com>
14997 * ax.c (ax_printf): Add fflush.
14999 2013-04-22 Tom Tromey <tromey@redhat.com>
15001 * Makefile.in (SFILES): Add filestuff.c.
15002 (OBS): Add filestuff.o.
15003 (filestuff.o): New target.
15004 * config.in, configure: Rebuild.
15005 * configure.ac: Check for fdwalk, pipe2.
15007 2013-04-17 Pedro Alves <palves@redhat.com>
15009 * configure.ac (USE_THREAD_DB): Delete variable.
15010 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
15011 Don't AC_SUBST USE_THREAD_DB.
15012 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
15013 * config.in, configure: Regenerate.
15015 2013-04-16 Pedro Alves <palves@redhat.com>
15017 * linux-low.h (struct lwp_info) <thread_known>: Move under
15018 the USE_THREAD_DB #ifdef.
15020 2013-04-16 Pedro Alves <palves@redhat.com>
15022 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
15023 (linux-low.o): Delete rule.
15024 * linux-low.h: Always include "gdb_thread_db.h" instead of
15025 conditionally including thread_db.h.
15026 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
15029 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15031 * Makefile.in (install-only): Fix make install regression.
15033 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
15035 Convert man pages to texinfo, new gdbinit.5 texinfo page.
15036 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
15038 * gdbserver.1: Remove.
15040 2013-03-22 Pedro Alves <palves@redhat.com>
15042 * linux-low.c (handle_extended_wait): Don't call
15043 linux_enable_event_reporting.
15045 2013-03-15 Tony Theodore <tonyt@logyst.com>
15048 * Makefile.in (SHELL): Use @SHELL@.
15050 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
15052 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
15055 2013-03-13 Joel Brobecker <brobecker@adacore.com>
15057 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
15058 Remove extraneous NULL element.
15060 2013-03-13 Yao Qi <yao@codesourcery.com>
15062 * tracepoint.c (traceframe_read_tsv): Look for the last matched
15063 'V' block in trace frame.
15065 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15067 * target.h (struct target_ops): Add btrace ops.
15068 (target_supports_btrace): New macro.
15069 (target_enable_btrace): New macro.
15070 (target_disable_btrace): New macro.
15071 (target_read_btrace): New macro.
15072 * gdbthread.h (struct thread_info): Add btrace field.
15073 * server.c: Include btrace-common.h.
15074 (handle_btrace_general_set): New function.
15075 (handle_btrace_enable): New function.
15076 (handle_btrace_disable): New function.
15077 (handle_general_set): Call handle_btrace_general_set.
15078 (handle_qxfer_btrace): New function.
15079 (struct qxfer qxfer_packets[]): Add btrace entry.
15080 * inferiors.c (remove_thread): Disable btrace.
15081 * linux-low: Include linux-btrace.h.
15082 (linux_low_enable_btrace): New function.
15083 (linux_low_read_btrace): New function.
15084 (linux_target_ops): Add btrace ops.
15085 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
15086 Add srv_linux_btrace=yes.
15087 (x86_64-*-linux*): Add linux-btrace.o.
15088 Add srv_linux_btrace=yes.
15089 * configure.ac: Define HAVE_LINUX_BTRACE.
15090 * config.in: Regenerated.
15091 * configure: Regenerated.
15093 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15095 * server.c (handle_qxfer): Preserve error message if -3 is
15097 (qxfer): Document the -3 return value.
15099 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15101 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
15102 (linux_btrace_h): New variable.
15103 (linux-btrace.o): New rule.
15105 2013-03-08 Stan Shebs <stan@codesourcery.com>
15106 Hafiz Abid Qadeer <abidh@codesourcery.com>
15108 * tracepoint.c (trace_buffer_size): New global.
15109 (DEFAULT_TRACE_BUFFER_SIZE): New define.
15110 (init_trace_buffer): Change to one-argument function. Allocate
15111 trace buffer memory.
15112 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
15113 handle QTBuffer:size packet.
15114 (cmd_bigqtbuffer_size): New function.
15115 (initialize_tracepoint): Call init_trace_buffer with
15116 DEFAULT_TRACE_BUFFER_SIZE.
15117 * server.c (handle_query): Add QTBuffer:size in the
15120 2013-03-07 Yao Qi <yao@codesourcery.com>
15122 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
15123 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
15125 (cmd_qtsp): Adjust condition. Do post increment.
15126 Set cur_action and cur_step_action back to 0.
15128 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
15131 * linux-low.c (linux_write_memory): Return early success if LEN is
15134 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
15136 * configure.srv: Add x86_64-*-cygwin* as target.
15138 2013-02-28 Tom Tromey <tromey@redhat.com>
15140 * configure.ac: Invoke AC_SYS_LARGEFILE.
15141 * configure, config.in: Rebuild.
15143 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
15145 * win32-low.c: Throughout, fix format strings and casts of
15146 printf-like functions to avoid type related warnings on all
15148 (get_child_debug_event): Print dwDebugEventCode as hex since
15149 that's how it's usually documented.
15151 2013-02-28 Yao Qi <yao@codesourcery.com>
15153 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15156 2013-02-27 Jiong Wang <jiwang@tilera.com>
15158 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15159 (reg-tilegx32.c): New rule.
15160 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15161 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15162 different register info initializer according to elf class.
15163 (init_registers_tilgx32): New function. The tilegx32 register info
15165 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15166 (tile_store_gregset): Likewise.
15168 2013-02-27 Yao Qi <yao@codesourcery.com>
15170 * server.c (process_point_options): Print debug message when
15171 debug_threads is true.
15173 2013-02-26 Yao Qi <yao@codesourcery.com>
15175 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15177 2013-02-19 Pedro Alves <palves@redhat.com>
15178 Kai Tietz <ktietz@redhat.com>
15182 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15183 instead of strtoul to extract address from packet.
15184 (process_serial_event) <'z'>: Likewise.
15186 2013-02-18 Yao Qi <yao@codesourcery.com>
15188 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15190 2013-02-14 Pedro Alves <palves@redhat.com>
15194 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15195 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15197 2013-02-14 Pedro Alves <palves@redhat.com>
15199 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15201 2013-02-14 Pedro Alves <palves@redhat.com>
15203 * tracepoint.c (save_string): Delete.
15204 (add_tracepoint_action): Use savestring instead of save_string.
15206 2013-02-12 Pedro Alves <palves@redhat.com>
15208 * linux-xtensa-low.c: Ditto.
15209 * xtensa-xtregs.c: Ditto.
15211 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15213 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15216 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15218 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15219 aarch64_num_wp_regs and aarch64_num_bp_regs to
15220 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15222 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15224 * linux-aarch64-low.c (ps_get_thread_area): Replace
15225 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15227 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15228 Marcus Shawcroft <marcus.shawcroft@arm.com>
15229 Nigel Stephens <nigel.stephens@arm.com>
15230 Yufeng Zhang <yufeng.zhang@arm.com>
15232 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15233 (aarch64.c, aarch64-without-fpu.c): New targets.
15234 * configure.srv (aarch64*-*-linux*): New.
15235 * linux-aarch64-low.c: New file.
15237 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15239 * linux-low.c (handle_extended_wait, linux_create_inferior)
15240 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15241 (dequeue_one_deferred_signal, linux_resume_one_thread)
15242 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15243 (linux_tracefork_grandchild, linux_test_for_tracefork)
15244 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15245 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15246 where the argument is 0.
15248 2013-01-25 Yao Qi <yao@codesourcery.com>
15250 * event-loop.c: Include "queue.h".
15251 (gdb_event_p): New typedef.
15252 (struct gdb_event) <next_event>: Remove.
15253 (event_queue): Change to QUEUE(gdb_event_p).
15254 (async_queue_event): Remove.
15255 (gdb_event_xfree): New.
15256 (initialize_event_loop): New.
15257 (process_event): Use API from QUEUE.
15258 (wait_for_event): Likewise.
15259 * server.c (main): Call initialize_event_loop.
15260 * server.h (initialize_event_loop): Declare.
15262 2013-01-18 Yao Qi <yao@codesourcery.com>
15264 * ax.h (struct eval_agent_expr_context): New.
15265 (gdb_eval_agent_expr): Update declaration.
15266 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15267 TFRAME. Add new argument CTX.
15268 * server.h (struct eval_agent_expr_context): Declare.
15269 (agent_mem_read, agent_tsv_read): Update declaration.
15270 (agent_mem_read_string): Likewise.
15271 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15272 (add_traceframe_block): Add new argument TPOINT.
15273 Increase TPOINT->traceframe_usage.
15274 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15275 eval_tracepoint_agent_expr.
15276 (condition_true_at_tracepoint): Likewise.
15277 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15278 (agent_mem_read_string, agent_tsv_read): Likewise.
15280 2013-01-16 Yao Qi <yao@codesourcery.com>
15282 * linux-low.c (linux_resume_one_lwp): Don't check
15283 'lwp->bp_reinsert != 0'.
15285 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15286 Pedro Alves <palves@redhat.com>
15288 * lynx-low.c (ptrace_request_to_str): Define a temporary
15289 macro and use it to simplify this function's implementation.
15291 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15293 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15296 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15298 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15300 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15302 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15304 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15306 * lynx-low.c (lynx_resume): Use the resume_info parameter
15307 to determine the ptid for the lynx_ptrace call, unless
15308 it is equal to minus_one_ptid, in which case we use the
15309 ptid of the current_inferior.
15310 (lynx_wait_1): After having received a thread create/exit
15311 event, resume the inferior's execution using the signaling
15312 thread's ptid, rather than the old ptid.
15314 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15316 * lynx-low.c (lynx_resume): Delete variable ret.
15318 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15320 * gdbreplay.c (gdbreplay_version): Update copyright year.
15321 * server.c (gdbserver_version): Likewise.
15323 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15325 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15328 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15330 * lynx-low.c (ptrace_request_to_str): Add handling for
15331 PTRACE_GETTRACESIG.
15333 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15335 * lynx-low.c (lynx_attach): Delete variable new_process.
15337 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15339 * lynx-low.c (lynx_create_inferior): Delete variable
15342 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15344 * lynx-low.c (ptrace_request_to_str): Do not handle
15345 PTRACE_GETTHREADLIST if this macro does not exist.
15347 2012-12-15 Yao Qi <yao@codesourcery.com>
15349 * Makefile.in (OBS): Add notif.o.
15350 * notif.c, notif.h: New.
15351 * server.c: Include "notif.h".
15352 (struct vstop_notif) <next>: Remove.
15354 (queue_stop_reply): Update.
15355 (push_event, send_next_stop_reply): Remove.
15356 (discard_queued_stop_replies): Update.
15357 (notif_stop): New variable.
15358 (handle_v_stopped): Remove.
15359 (handle_v_requests): Don't call handle_v_stopped. Call
15360 handle_ack_notif instead.
15361 (queue_stop_reply_callback): Call notif_event_enque instead
15362 of queue_stop_reply.
15363 (handle_status): Don't call send_next_stop_reply, call
15364 notif_write_event instead.
15365 (kill_inferior_callback): Likewise.
15366 (detach_or_kill_inferior_callback): Likewise.
15367 (main): Call initialize_notif.
15368 (process_serial_event): Call QUEUE_is_empty.
15369 (handle_target_event): Call notif_push instead of push event.
15370 * server.h (push_event): Remove declaration.
15372 2012-12-10 Tom Tromey <tromey@redhat.com>
15374 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15375 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15378 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15379 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15380 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15381 (amd64-linux-ipa.o, ax.o): Rewrite.
15382 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15383 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15384 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15385 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15386 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15387 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15388 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15389 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15390 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15391 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15392 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15393 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15394 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15395 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15396 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15397 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15398 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15399 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15400 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15401 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15402 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15403 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15404 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15405 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15406 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15407 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15408 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15409 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15410 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15411 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15412 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15413 (reg-tilegx.o): Remove.
15414 (all_object_files): New macro.
15415 Include .deps files.
15416 * aclocal.m4, configure: Rebuild.
15417 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15418 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15419 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15421 2012-12-05 Tom Tromey <tromey@redhat.com>
15424 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15426 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15428 * configure.ac: Check for linux/perf_event.h.
15429 * config.in: Regenerated.
15430 * configure: Regenerated.
15432 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15434 * hostio.c (handle_readlink): Decrease buffer size
15435 parameter passed to readlink by one byte.
15437 2012-11-26 Yao Qi <yao@codesourcery.com>
15439 * configure.ac (build_warnings): Append '-Wempty-body'.
15440 * configure: Regenerated.
15441 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15444 2012-11-15 Pierre Muller <muller@sourceware.org>
15446 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15447 * config.in: Regenerate.
15448 * configure: Regenerate.
15449 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15450 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15451 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15452 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15454 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15455 instead of <sys/wait.h> header.
15456 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15458 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15460 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15461 (various make rules): Remove -DGDBSERVER
15463 2012-11-09 Yao Qi <yao@codesourcery.com>
15465 * spu-low.c (current_ptid): Move it to ..
15466 * gdbthread.h: ... here. New.
15467 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15468 * server.c (myresume, process_serial_event): Likewise.
15469 * thread-db.c (thread_db_find_new_threads): Likewise.
15470 * tracepoint.c (run_inferior_command): Likewise.
15472 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15474 * server.c (handle_search_memory_1): Include access length in
15477 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15479 * linux-crisv32-low.c: Fix compile errors.
15481 2012-09-04 Yao Qi <yao@codesourcery.com>
15483 * tracepoint.c (cmd_qtsv): Adjust debug message.
15484 Don't check CUR_TPOINT.
15486 2012-08-28 Yao Qi <yao@codesourcery.com>
15488 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15489 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15490 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15491 Remove declarations of xmalloc, xreallloc, xstrdup and
15493 * Makefile.in (libiberty_h): New.
15494 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15495 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15497 2012-08-23 Yao Qi <yao@codesourcery.com>
15499 * server.h: Remove declaration of 'xsnprintf'.
15501 2012-08-22 Keith Seitz <keiths@redhat.com>
15503 * server.h: Include build-gnulib-gbserver/config.h.
15504 * gdbreplay.c: Likewise.
15506 2012-08-08 Doug Evans <dje@google.com>
15508 * Makefile.in (SFILES): Add gdb_vecs.c.
15509 (OBS): Add gdb_vecs.o.
15510 (gdb_vecs_h, host_defs_h): New variables.
15511 (thread-db.o): Add $(gdb_vecs_h) dependency.
15512 (gdb_vecs.o): New rule.
15513 * thread-db.c: #include "gdb_vecs.h".
15514 (thread_db_load_search): Use a vector to iterate over path elements.
15515 Handle text appearing after "$pdir".
15517 * configure.ac: Add check for strstr.
15518 * config.in: Regenerate.
15519 * configure: Regenerate.
15521 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15523 * hostio.c (handle_pread): If pread fails, fall back to attempting
15525 (handle_pwrite): Likewise for pwrite.
15527 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15529 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15530 between unsupported TYPE and unimplementable ADDR/LEN combination.
15531 (arm_insert_point): Act on new return value.
15533 2012-07-31 Pedro Alves <palves@redhat.com>
15535 * server.c (process_point_options): Only skip tokens if we find
15536 one that is unrecognized. Don't treat 'X' specially while
15537 skipping unrecognized tokens.
15539 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15541 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15542 to 4-byte-align HW breakpoint addresses for Thumb.
15544 2012-07-27 Yao Qi <yao@codesourcery.com>
15548 * server.h: Declare gdb_agent_about_to_close.
15549 * target.c (kill_inferior): Include "agent.h".
15550 New. Send command 'kill'.
15551 * target.h (kill_inferior): Removed macro.
15552 * tracepoint.c (gdb_agent_about_to_close): New.
15553 (gdb_agent_helper_thread): Handle command 'close'.
15554 Wait endlessly until the inferior stops.
15555 Install gdb_agent_remove_socket to atexit hook.
15556 (agent_socket_name): New static variable.
15557 (gdb_agent_socket_init): Replace local variable 'name' with
15558 'agent_socket_name'.
15559 (gdb_agent_remove_socket): New.
15561 2012-07-27 Yao Qi <yao@codesourcery.com>
15563 * server.c (process_point_options): Stop at 'X' when parsing.
15565 2012-07-19 Michael Eager <eager@eagercon.com>
15567 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15569 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15570 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15571 hardware breakpoint.
15573 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15575 * gdbserver/linux-low.c (initialize_low): Call
15576 linux_ptrace_init_warnings.
15578 2012-07-02 Doug Evans <dje@google.com>
15580 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15583 2012-07-02 Stan Shebs <stan@codesourcery.com>
15585 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15586 (ax.o): Add it to build rule.
15588 (OBS): Add format.o.
15589 (IPA_OBS): Add format.o.
15590 * server.c (handle_query): Claim support for breakpoint commands.
15591 (process_point_options): Add command case.
15592 (process_serial_event): Leave running if there are printfs in
15594 * mem-break.h (any_persistent_commands): Declare.
15595 (add_breakpoint_commands): Declare.
15596 (gdb_no_commands_at_breakpoint): Declare.
15597 (run_breakpoint_commands): Declare.
15598 * mem-break.c (struct point_command_list): New struct.
15599 (struct breakpoint): New field command_list.
15600 (any_persistent_commands): New function.
15601 (add_commands_to_breakpoint): New function.
15602 (add_breakpoint_commands): New function.
15603 (gdb_no_commands_at_breakpoint): New function.
15604 (run_breakpoint_commands): New function.
15605 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15607 * ax.c: Include format.h.
15608 (ax_printf): New function.
15609 (gdb_eval_agent_expr): Add printf opcode.
15611 2012-06-13 Yao Qi <yao@codesourcery.com>
15613 * server.c (start_inferior): Remove duplicated writes to fields
15614 'last_resume_kind' and 'last_status' of 'current_inferior'.
15616 2012-06-12 Yao Qi <yao@codesourcery.com>
15617 Pedro Alves <palves@redhat.com>
15619 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15621 * server.c (handle_v_cont): Extend comment.
15623 2012-06-11 Yao Qi <yao@codesourcery.com>
15625 * linux-low.c (linux_attach): Add 'static'.
15627 2012-06-06 Yao Qi <yao@codesourcery.com>
15629 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15631 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15633 Fix gcc -flto compilation warning.
15634 * server.c (main): Make variable multi_mode and attach volatile.
15636 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15638 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15639 if the platform doesn't know about it.
15641 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15643 * Makefile.in (SFILES): Add linux-tile-low.c.
15644 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15645 * configure.srv: Handle tilegx-*-linux*.
15646 * linux-tile-low.c: New file.
15648 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15650 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15652 2012-05-24 Pedro Alves <palves@redhat.com>
15656 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15658 2012-05-24 Pedro Alves <palves@redhat.com>
15662 Replace target_signal with gdb_signal throughout.
15664 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15666 * linux-low.c (linux_store_registers): Avoid the copying sequence
15667 when no data has been retrieved by ptrace.
15669 2012-05-22 Will Deacon <will.deacon@arm.com>
15671 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15672 Include asm/ptrace.h.
15673 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15676 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15678 * linux-low.c (linux_store_registers): Don't re-retrieve data
15679 with ptrace that has already been obtained from /proc. Always
15680 copy any data retrieved with ptrace to the buffer supplied.
15682 2012-05-11 Yao Qi <yao@codesourcery.com>
15683 Pedro Alves <palves@redhat.com>
15685 * linux-low.c (enum stopping_threads_kind): New.
15686 (stopping_threads): Change type to `enum stopping_threads_kind'.
15687 (handle_extended_wait): If stopping and suspending threads, leave
15688 the new_lwp suspended too.
15689 (linux_wait_for_event): Adjust.
15690 (stop_all_lwps): Set `stopping_threads' to
15691 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15692 whether we're suspending threads or just stopping them. Assert no
15695 2012-04-29 Yao Qi <yao@codesourcery.com>
15697 * server.h: Move some code to ...
15698 * gdbthread.h: ... here. New.
15699 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15700 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15701 (nto-low.o, win32-low.o): Likewise.
15702 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15703 * regcache.c, remote-utils.c, server.c: Likewise.
15704 * target.c, tracepoint.c, win32-low.c: Likewise.
15706 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15708 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15709 (PTRACE_ARG4_TYPE): Likewise.
15710 (PTRACE_XFER_TYPE): Likewise.
15711 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15712 ptrace to PTRACE_ARG3_TYPE.
15713 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15714 (PTRACE_ARG4_TYPE): Likewise.
15715 (PTRACE_XFER_TYPE): Likewise.
15716 (linux_detach_one_lwp): Cast fourth argument of
15717 ptrace to long then PTRACE_ARG4_TYPE.
15718 (regsets_fetch_inferior_registers): Cast third argument of
15719 ptrace to long then PTRACE_ARG3_TYPE.
15720 (regsets_store_inferior_registers): Likewise.
15722 2012-04-20 Pedro Alves <palves@redhat.com>
15724 * configure: Regenerate.
15726 2012-04-19 Pedro Alves <palves@redhat.com>
15728 * Makefile.in (GNULIB_BUILDDIR): New.
15729 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15730 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15731 (all, install-only, uninstall, clean-info, all-lib, clean): No
15732 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15733 (maintainer-clean realclean distclean): Use subdir_do.
15735 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15736 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15737 * acinclude.m4: Include acx_configure_dir.m4.
15738 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15739 calls. Call AC_PROG_RANLIB. Configure gnulib using
15742 (GNULIB_STDINT_H): Adjust.
15743 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15744 * gdbreplay.c: Include build-gnulib/config.h.
15745 * server.h: Likewise.
15746 * aclocal.m4: Regenerate.
15747 * config.in: Regenerate.
15748 * configure: Regenerate.
15750 2012-04-19 Pedro Alves <palves@redhat.com>
15752 * Makefile.in (LIBGNU, INCGNU): Adjust.
15753 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15754 (all, install-only, uninstall, clean-info, all-lib, clean)
15755 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15756 * configure.ac: Adjust AC_OUTPUT output.
15757 * aclocal.m4: Regenerate.
15758 * configure: Regenerate.
15760 2012-04-19 Pedro Alves <palves@redhat.com>
15762 * Makefile.in (generated_files): New.
15763 (server_h): Remove the explicit dependency on config.h, and depend
15764 on $generated_files.
15766 2012-04-19 Pedro Alves <palves@redhat.com>
15768 * Makefile.in (INCGNU): Add -Ignulib.
15770 2012-04-19 Pedro Alves <palves@redhat.com>
15772 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15773 (INCGNU): ... this, and spell out -I here.
15774 (GNULIB_LIB): Rename to ...
15775 (LIBGNU): ... this.
15776 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15778 2012-04-19 Pedro Alves <palves@redhat.com>
15780 * config.in: Regenerate.
15782 2012-04-19 Pedro Alves <palves@redhat.com>
15784 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15785 * server.h (memmem): Remove declaration.
15786 * config.in: Regenerate.
15787 * configure: Regenerate.
15789 2012-04-19 Yao Qi <yao@codesourcery.com>
15791 * Makefile.in (SFILES): Add common/vec.c.
15795 2012-04-19 Yao Qi <yao@codesourcery.com>
15797 * remote-utils.c (prepare_resume_reply): Replace with macro
15798 target_core_of_thread.
15799 * server.c (handle_qxfer_threads_proper): Likewise.
15800 * target.h (traget_core_of_thread): New macro.
15802 2012-04-18 Pedro Alves <palves@redhat.com>
15804 * aclocal.m4: Regenerate.
15805 * configure: Regenerate.
15807 2012-04-16 Yao Qi <yao@codesourcery.com>
15809 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15810 duplicated on address.
15812 2012-04-16 Yao Qi <yao@codesourcery.com>
15814 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15815 (struct tracepoint_action_ops) <send>: New field.
15816 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15817 (agent_expr_send, x_tracepoint_action_send): New.
15818 (l_tracepoint_action_send): New.
15819 (cmd_qtdp): Download and install tracepoint
15820 according to `use_agent'.
15821 (run_inferior_command): Add one more parameter `len'.
15823 (tracepoint_send_agent): New.
15824 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15826 2012-04-16 Yao Qi <yao@codesourcery.com>
15828 * tracepoint.c (download_tracepoints): Moved to ...
15829 (cmd_qtstart): ... here.
15831 2012-04-14 Yao Qi <yao@codesourcery.com>
15833 * tracepoint.c: Include inttypes.h.
15834 (struct collect_memory_action): Use sized types.
15835 (struct tracepoint): Likewise.
15836 (cmd_qtdp, stop_tracing): Update print specifiers.
15837 (cmd_qtp, response_tracepoint): Likewise.
15838 (collect_data_at_tracepoint): Likewise.
15839 (collect_data_at_step): Likewise.
15841 2012-04-14 Yao Qi <yao@codesourcery.com>
15843 Import gnulib module inttypes.
15844 * aclocal.m4, config.in, configure: Regenerated.
15846 2012-04-14 Yao Qi <yao@codesourcery.com>
15848 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15849 Makefile and config.status at last.
15851 2012-04-13 Yao Qi <yao@codesourcery.com>
15853 * tracepoint.c: Include stdint.h unconditionally.
15855 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15857 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15858 on BFD_HAVE_SYS_PROCFS_TYPE.
15859 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15860 * configure: Regenerate.
15861 * config.in: Likewise.
15863 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15865 * Makefile.in (clean): Also remove x32.c x32-linux.c
15866 x32-avx.c x32-avx-linux.c.
15867 (x32.o): New target.
15869 (x32-linux.o): Likewise.
15870 (x32-linux.c): Likewise.
15871 (x32-avx.o): Likewise.
15872 (x32-avx.c): Likewise.
15873 (x32-avx-linux.o): Likewise.
15874 (x32-avx-linux.c): Likewise.
15876 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15877 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15878 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15879 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15880 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15881 i386/x32-avx-linux.xml.
15883 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15884 (init_registers_x32_avx_linux): Likwise.
15885 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15886 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15888 2012-04-13 Pedro Alves <palves@redhat.com>
15890 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15891 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15892 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15893 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15896 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15898 * linux-x86-low.c (compat_x32_clock_t): New.
15899 (compat_x32_siginfo_t): Likewise.
15900 (compat_x32_siginfo_from_siginfo): Likewise.
15901 (siginfo_from_compat_x32_siginfo): Likewise.
15902 (linux_is_elf64): Likewise.
15903 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15904 and siginfo_from_compat_x32_siginfo for x32.
15905 (x86_arch_setup): Set linux_is_elf64.
15907 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15910 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15912 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15913 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15914 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15915 compatible with process.
15917 2012-04-12 Yao Qi <yao@codesourcery.com>
15919 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15920 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15921 (install-only, install-info, clean): Handle sub dir gnulib.
15922 (all-lib, am--refresh): New targets.
15923 (memmem.o): Remove target.
15924 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15925 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15926 (AC_REPLACE_FUNCS): Remove memmem.
15927 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15928 (AC_OUTPUT): Generate Makefile in gnulib/.
15929 * aclocal.m4, config.in, configure: Regenerated.
15931 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15933 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15935 2012-04-05 Pedro Alves <palves@redhat.com>
15937 -Werror=strict-aliasing
15939 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15942 2012-04-04 Pedro Alves <palves@redhat.com>
15944 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15945 (sparc_store_gregset_from_stack, sparc_store_gregset)
15946 (sparc_breakpoint_at): Fix formatting.
15948 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15950 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15952 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15953 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15954 * config.in: Regenerate.
15955 * configure: Likewise.
15957 2012-03-29 Pedro Alves <palves@redhat.com>
15959 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15960 Correct ptrace arguments.
15962 2012-03-28 Pedro Alves <palves@redhat.com>
15964 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15965 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15966 (IA64_FR1_REGNUM): New defines.
15967 (ia64_fetch_register): New.
15968 (the_low_target): Install it.
15969 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15971 * linux-low.c (linux_fetch_registers): Try the
15972 the_low_target.fetch_register hook first.
15974 * linux-arm-low.c (the_low_target): Adjust.
15975 * linux-bfin-low.c (the_low_target): Adjust.
15976 * linux-cris-low.c (the_low_target): Adjust.
15977 * linux-crisv32-low.c (the_low_target): Adjust.
15978 * linux-m32r-low.c (the_low_target): Adjust.
15979 * linux-m68k-low.c (the_low_target): Adjust.
15980 * linux-mips-low.c (the_low_target): Adjust.
15981 * linux-ppc-low.c (the_low_target): Adjust.
15982 * linux-s390-low.c (the_low_target): Adjust.
15983 * linux-sh-low.c (the_low_target): Adjust.
15984 * linux-sparc-low.c (the_low_target): Adjust.
15985 * linux-tic6x-low.c (the_low_target): Adjust.
15986 * linux-x86-low.c (the_low_target): Adjust.
15987 * linux-xtensa-low.c (the_low_target): Adjust.
15989 2012-03-26 Pedro Alves <palves@redhat.com>
15991 * server.c (handle_qxfer_libraries): Don't bail early if
15992 the_target->qxfer_libraries_svr4 is not NULL.
15994 2012-03-26 Pedro Alves <palves@redhat.com>
15996 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15998 2012-03-23 Pedro Alves <palves@redhat.com>
16000 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
16001 "library-list-svr4" element's start tag when the the DSO list is
16004 2012-03-23 Pedro Alves <palves@redhat.com>
16006 * linux-low.c (read_one_ptr): Read the inferior's pointer through
16007 a variable whose type size is the same as the inferior's pointer
16010 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
16012 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
16014 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
16015 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
16016 * linux-low.h: Include <signal.h>.
16017 (struct siginfo): Remove forward declaration.
16018 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
16021 2012-03-21 Mike Frysinger <vapier@gentoo.org>
16023 * .gitignore: Ignore more files.
16025 2012-03-19 Pedro Alves <palves@redhat.com>
16026 Jan Kratochvil <jan.kratochvil@redhat.com>
16028 * server.c (cont_thread, general_thread): Add describing comments.
16029 (start_inferior): Clear `cont_thread'.
16030 (handle_v_cont): Don't set `cont_thread' if resuming all threads
16033 2012-03-15 Yao Qi <yao@codesourcery.com>
16035 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
16037 (cmd_qtdp): ... here.
16039 2012-03-15 Yao Qi <yao@codesourcery.com>
16041 * tracepoint.c (struct tracepoint_action_ops): New.
16042 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
16043 (m_tracepoint_action_download): New.
16044 (r_tracepoint_action_download): New.
16045 (x_tracepoint_action_download): New.
16046 (l_tracepoint_action_download): New.
16047 (add_tracepoint_action): Install `action->ops' according type.
16048 (download_tracepoint_1): Move code `download' function pointer
16049 of various tracepoint_action_ops.
16051 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16053 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
16054 linux_ptrace_attach_warnings.
16056 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16058 * Makefile.in (linux-ptrace.o): New.
16059 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
16060 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
16061 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
16062 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
16063 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
16065 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
16067 2012-03-08 Yao Qi <yao@codesourcery.com>
16068 Pedro Alves <palves@redhat.com>
16070 Fix PR server/13392.
16071 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
16072 offset of JMP insn.
16073 * tracepoint.c (remove_tracepoint): New.
16074 (cmd_qtdp): Call remove_tracepoint when failed to install.
16076 2012-03-07 Pedro Alves <palves@redhat.com>
16078 * linux-low.c (get_detach_signal): New.
16079 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
16080 Pass on pending signals to PTRACE_DETACH. Check the result of the
16082 * server.c (program_signals, program_signals_p): New.
16083 (handle_general_set): Handle QProgramSignals.
16084 * server.h (program_signals, program_signals_p): Declare.
16086 2012-03-05 Pedro Alves <palves@redhat.com>
16087 Jan Kratochvil <jan.kratochvil@redhat.com>
16089 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
16092 2012-03-03 Yao Qi <yao@codesourcery.com>
16094 * tracepoint.c (tracepoint_look_up_symbols): Update call to
16095 agent_look_up_symbols.
16097 2012-03-03 Yao Qi <yao@codesourcery.com>
16099 * Makefile.in (linux-low.o): Keep dependence on agent.h.
16100 (linux-x86-low.o): Likewise.
16101 * server.h: Remove in_process_agent_loaded.
16102 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
16106 2012-03-03 Yao Qi <yao@codesourcery.com>
16108 * tracepoint.c (gdb_agent_capability): New global.
16109 (in_process_agent_loaded_ust): Renamed to
16110 `in_process_agent_supports_ust'.
16112 (in_process_agent_supports_ust): Call agent_capability_check.
16113 (clear_installed_tracepoints): Assert that agent supports
16116 2012-03-03 Yao Qi <yao@codesourcery.com>
16118 * linux-low.c (linux_supports_agent): New.
16119 (linux_target_ops): Initialize field `supports_agent' with
16120 linux_supports_agent.
16121 * target.h (struct target_ops) <supports_agent>: New.
16122 (target_supports_agent): New macro.
16123 * server.c (handle_general_set): Handle packet 'QAgent'.
16124 (handle_query): Send `QAgent+'.
16125 * Makefile.in (server.o): Depends on agent.h.
16127 2012-03-03 Yao Qi <yao@codesourcery.com>
16129 * Makefile.in (OBS): Add agent.o.
16130 Add new rule for agent.o.
16131 Track dependence of tracepoint.c on agent.h.
16132 * tracepoint.c (run_inferior_command_1):
16133 (run_inferior_command): Call agent_run_command.
16134 (gdb_ust_connect_sync_socket): Deleted. Move it to
16136 (resume_thread, stop_thread): Likewise.
16137 (gdb_ust_socket_init): Renamed to ...
16138 (gdb_agent_socket_init): ... New.
16139 (gdb_ust_thread): Renamed to ...
16140 (gdb_agent_helper_thread): ... New.
16141 (gdb_ust_init): Move some code to ...
16142 (gdb_agent_init): ... here. New.
16143 [HAVE_UST]: Call gdb_ust_init.
16144 (initialize_tracepoint_ftlib): Call gdb_agent_init.
16145 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
16146 * config.in, configure: Regenerated.
16148 2012-03-02 Pedro Alves <palves@redhat.com>
16150 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16151 * linux-low.c (struct simple_pid_list): New.
16152 (stopped_pids): New a struct simple_pid_list pointer.
16153 (add_to_pid_list, pull_pid_from_list): New.
16154 (handle_extended_wait): Don't assume the first signal new children
16155 report is SIGSTOP. Adjust call to pull_pid_from_list.
16156 (linux_wait_for_lwp): Adjust.
16158 2012-03-02 Yao Qi <yao@codesourcery.com>
16160 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16163 2012-03-02 Yao Qi <yao@codesourcery.com>
16165 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16166 `stop_pc' and `tpoint'. Update caller.
16168 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16170 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16171 * linux-low.c (use_linux_regsets): New macro.
16172 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16173 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16174 (linux_register_in_regsets): New function.
16175 (usr_fetch_inferior_registers): Skip registers covered by
16177 (usr_store_inferior_registers): Likewise.
16178 (usr_fetch_inferior_registers): New macro.
16179 (usr_store_inferior_registers): Likewise.
16180 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16181 (linux_store_registers): Likewise.
16182 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16184 (init_registers_mips64_dsp_linux): Likewise.
16185 (init_registers_mips_linux): New macro.
16186 (init_registers_mips_dsp_linux): Likewise.
16187 (mips_dsp_num_regs): Likewise.
16188 (DSP_BASE, DSP_CONTROL): New fallback macros.
16189 (mips_base_regs): New macro.
16190 (mips_regmap): Use it. Fix the size.
16191 (mips_dsp_regmap): New variable.
16192 (mips_dsp_regset_bitmap): Likewise.
16193 (mips_arch_setup): New function.
16194 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16196 (mips_cannot_store_register): Likewise.
16197 (the_low_target): Update .arch_setup, .num_regs and .regmap
16198 initializers. Add .regset_bitmap initializer.
16199 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16201 * linux-bfin-low.c (the_low_target): Likewise.
16202 * linux-cris-low.c (the_low_target): Likewise.
16203 * linux-crisv32-low.c (the_low_target): Likewise.
16204 * linux-ia64-low.c (the_low_target): Likewise.
16205 * linux-m32r-low.c (the_low_target): Likewise.
16206 * linux-m68k-low.c (the_low_target): Likewise.
16207 * linux-ppc-low.c (the_low_target): Likewise.
16208 * linux-s390-low.c (the_low_target): Likewise.
16209 * linux-sh-low.c (the_low_target): Likewise.
16210 * linux-sparc-low.c (the_low_target): Likewise.
16211 * linux-tic6x-low.c (the_low_target): Likewise.
16212 * linux-x86-low.c (the_low_target): Likewise.
16213 * linux-xtensa-low.c (the_low_target): Likewise.
16214 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16215 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16216 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16218 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16219 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16221 2012-02-29 Yao Qi <yao@codesourcery.com>
16222 Pedro Alves <palves@redhat.com>
16224 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16225 `step_over_finished' is true.
16227 2012-02-27 Pedro Alves <palves@redhat.com>
16229 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16230 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16232 2012-02-27 Pedro Alves <palves@redhat.com>
16235 * linux-low.c (pid_is_stopped): New.
16236 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16238 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16240 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16243 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16245 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16247 2012-02-24 Luis Machado <lgustavo@codesourcery>
16249 * server.c (handle_query): Advertise support for target-side
16250 breakpoint condition evaluation.
16251 (process_point_options): New function.
16252 (process_serial_event): When inserting a breakpoint, check for
16253 a target-side condition that should be evaluated.
16255 * mem-break.c: Include regcache.h and ax.h.
16256 (point_cond_list_t): New data structure.
16257 (breakpoint) <cond_list>: New field.
16258 (find_gdb_breakpoint_at): Make non-static.
16259 (delete_gdb_breakpoint_at): Clear any target-side
16261 (clear_gdb_breakpoint_conditions): New function.
16262 (add_condition_to_breakpoint): Likewise.
16263 (add_breakpoint_condition): Likewise.
16264 (gdb_condition_true_at_breakpoint): Likewise.
16265 (gdb_breakpoint_here): Return result directly instead
16266 of going through a local variable.
16268 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16269 (clear_gdb_breakpoint_conditions): Likewise.
16270 (add_breakpoint_condition): Likewise.
16271 (gdb_condition_true_at_breakpoint): Likewise.
16273 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16274 (need_step_over_p): Take target-side breakpoint condition into
16277 2012-02-24 Luis Machado <lgustavo@codesourcery>
16279 * server.h: Include tracepoint.h.
16280 (agent_mem_read, agent_get_trace_state_variable_value,
16281 agent_set_trace_state_variable_value,
16282 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16283 get_set_tsv_func_addr): New prototypes.
16285 * ax.h: New include file.
16286 * ax.c: New source file.
16288 * tracepoint.c: Include ax.h.
16289 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16290 agent_expr, eval_result_type): Move to ax.h.
16291 (parse_agent_expr): Rename to ...
16292 (gdb_parse_agent_expr): ... this, make it non-static and move
16294 (unparse_agent_expr) Rename to ...
16295 (gdb_unparse_agent_expr): ... this, make it non-static and move
16297 (eval_agent_expr): Rename to ...
16298 (eval_tracepoint_agent_expr): ... this.
16299 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16300 forward declarations.
16301 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16302 (agent_get_trace_state_variable_value): New function.
16303 (agent_set_trace_state_variable_value): New function.
16304 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16305 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16306 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16307 (condition_true_at_tracepoint): Likewise.
16308 (parse_agent_expr): Rename to ...
16309 (gdb_parse_agent_expr): ... this and move to ax.c.
16310 (unparse_agent_expr): Rename to ...
16311 (gdb_unparse_agent_expr): ... this and move to ax.c.
16312 (gdb_agent_op_name): Move to ax.c.
16313 (eval_agent_expr): Rename to ...
16314 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16316 (eval_tracepoint_agent_expr): New function.
16317 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16319 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16321 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16322 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16323 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16324 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16325 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16326 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16327 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16328 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16329 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16330 (compile_bytecodes): Remove forward declaration.
16331 (is_goto_target): Move to ax.c.
16332 (compile_bytecodes): Move to ax.c and call
16333 agent_get_trace_state_variable_value (...) and
16334 agent_set_trace_state_variable_value (...).
16336 * Makefile.in: Update ax.c and IPA dependencies.
16338 2012-02-24 Pedro Alves <palves@redhat.com>
16340 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16341 (cmd_bigqtbuffer_circular): ... this. Only handle
16342 'QTBuffer:circular:'.
16343 (handle_tracepoint_general_set): Adjust.
16345 2012-02-16 Yao Qi <yao@codesourcery.com>
16347 * inferiors.c: Move code to ...
16348 * dll.c: .... here. New.
16349 * server.h: Declare clear_dlls.
16350 * Makefile.in (SFILES): Add dll.c.
16354 2012-02-11 Yao Qi <yao@codesourcery.com>
16356 * server.c: (handle_monitor_command): Add a new parameter
16358 (handle_query): Update caller.
16360 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16362 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16363 * configure, config.in: Regenerate.
16364 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16367 2012-02-02 Pedro Alves <palves@redhat.com>
16369 Try SIGKILL first, then PTRACE_KILL.
16370 * linux-low.c (linux_kill_one_lwp): New.
16371 (linux_kill_one_lwp): Rename to ...
16372 (kill_one_lwp_callback): ... this. Use the new
16373 linux_kill_one_lwp.
16375 2012-02-02 Pedro Alves <palves@redhat.com>
16377 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16380 2012-01-27 Pedro Alves <palves@redhat.com>
16382 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16383 (elf_64_file_p): Make static.
16384 (linux_pid_exe_is_elf_64_file): New.
16385 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16386 Delete declarations.
16387 (linux_pid_exe_is_elf_64_file): Declare.
16388 * linux-x86-low.c (x86_arch_setup): Use
16389 linux_pid_exe_is_elf_64_file.
16391 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16393 * linux-low.c (linux_wait_for_event_1): Rename to ...
16394 (linux_wait_for_event): ... here and merge it with former
16395 linux_wait_for_event - new variable wait_ptid, use it.
16396 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16398 2012-01-23 Pedro Alves <palves@redhat.com>
16400 * server.c (main): Avoid yet another case of infinite loop while
16401 detaching/killing after a longjmp.
16403 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16406 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16408 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16410 * hostio.c (handle_readlink): New function.
16411 (handle_vFile): Call it to handle "vFile:readlink" packets.
16413 2012-01-20 Pedro Alves <palves@redhat.com>
16414 Ulrich Weigand <ulrich.weigand@linaro.org>
16416 * server.c (handle_v_requests): Only support vAttach and vRun to
16417 start multiple processes when in extended protocol mode.
16419 2012-01-17 Pedro Alves <palves@redhat.com>
16421 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16422 memalign plus mprotect to allocate the scratch buffer.
16424 2012-01-13 Pedro Alves <palves@redhat.com>
16426 * server.c (attach_inferior): Clear `cont_thread'.
16428 2012-01-13 Pedro Alves <palves@redhat.com>
16430 * server.c (main): Avoid infinite loop while detaching/killing
16433 2012-01-09 Doug Evans <dje@google.com>
16435 * server.c (start_inferior): Set last_ptid in --wrapper case.
16437 2012-01-06 Yao Qi <yao@codesourcery.com>
16439 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16441 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16443 2012-01-04 Yao Qi <yao@codesourcery.com>
16445 * tracepoint.c (cmd_qtdp): Print debug message
16446 for static tracepoint.
16448 2012-01-04 Yao Qi <yao@codesourcery.com>
16450 * tracepoint.c (trace_vdebug): Differentiate debug message
16451 between gdbserver and IPA.
16453 2012-01-03 Yao Qi <yao@codesourcery.com>
16455 * tracepoint.c (tracepoint_was_hit): Don't collect for
16458 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16460 * terminal.h: Reformat copyright header.
16462 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16464 * server.c (gdbserver_version): Update copyright year.
16465 * gdbreplay.c (gdbreplay_version): Likewise.
16467 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16469 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16472 2011-12-18 Hui Zhu <teawater@gmail.com>
16473 * linux-low.c (linux_create_inferior): Save return value to ret.
16475 2011-12-18 Hui Zhu <teawater@gmail.com>
16477 * linux-low.c (linux_create_inferior): Save return value to ret.
16479 2011-12-16 Doug Evans <dje@google.com>
16481 * linux-low.c (linux_create_inferior): If stdio connection,
16482 redirect stdin from /dev/null, stdout to stderr.
16483 * remote-utils.c (remote_is_stdio): New static global.
16484 (remote_connection_is_stdio): New function.
16485 (remote_prepare): Handle stdio connection.
16486 (remote_open): Ditto.
16487 (remote_close): Don't close stdin for stdio connections.
16488 (read_prim,write_prim): New functions. Replace all calls to
16489 read/write to these.
16490 * server.c (main): Watch for "-" argument. Move call to
16491 remote_prepare before start_inferior.
16492 * server.h (STDIO_CONNECTION_NAME): New macro.
16493 (remote_connection_is_stdio): Declare.
16495 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16496 in debugging output.
16498 2011-12-15 Yao Qi <yao@codesourcery.com>
16500 * tracepoint.c: Include sys/syscall.h.
16501 (gdb_ust_thread): Remove preprocessor conditional.
16503 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16505 * linux-low.c (linux_detach_one_lwp): Call
16506 the_low_target.prepare_to_resume before detaching.
16508 2011-12-14 Yao Qi <yao@codesourcery.com>
16510 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16513 2011-12-14 Yao Qi <yao@codesourcery.com>
16515 * i386-low.c (i386_low_stopped_data_address): Initialize local
16516 variable `control'.
16518 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16522 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16523 DR_CONTROL unless necessary. Extend comments.
16524 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16525 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16527 2011-12-13 Yao Qi <yao@codesourcery.com>
16529 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16531 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16533 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16535 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16536 Print new debug message for such case.
16538 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16540 Fix overlapping memcpy.
16541 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16542 the read_inferior_memory transfer.
16543 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16544 write_inferior_memory transfer.
16545 (set_fast_tracepoint_jump): New variable buf. Use it for the
16546 read_inferior_memory and write_inferior_memory transfers.
16547 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16548 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16549 Use it for the write_inferior_memory transfer.
16550 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16553 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16555 * linux-low.c (fetch_register, store_register): Make code
16556 consistent, fix formatting.
16558 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16560 * linux-low.c (usr_store_inferior_registers): Factor out code
16561 to handle individual registers into...
16562 (store_register): ... this new function.
16564 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16566 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16567 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16568 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16569 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16570 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16571 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16572 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16573 (srv_xmlfiles): Add new XML files.
16575 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16577 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16578 (init_registers_s390_linux32v1): Add prototype.
16579 (init_registers_s390_linux32v2): Likewise.
16580 (init_registers_s390_linux64v1): Likewise.
16581 (init_registers_s390_linux64v2): Likewise.
16582 (init_registers_s390x_linux64v1): Likewise.
16583 (init_registers_s390x_linux64v2): Likewise.
16584 (s390_num_regs): Increment to 52.
16585 (s390_regmap): Add orig_r2 register.
16586 (s390_num_regs_3264): Increment to 68.
16587 (s390_regmap_3264): Add orig_r2 register.
16588 (s390_collect_ptrace_register): Handle orig_r2 register.
16589 (s390_supply_ptrace_register): Likewise.
16590 (s390_fill_last_break): New function.
16591 (s390_store_last_break): Likewise.
16592 (s390_fill_system_call): New function.
16593 (s390_store_system_call): Likewise.
16594 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16596 (s390_check_regset): New function.
16597 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16598 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16599 Update target_regsets for available register sets.
16601 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16602 Jan Kratochvil <jan.kratochvil@redhat.com>
16604 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16605 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16607 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16608 * linux-low.h (struct process_info_private): New member r_debug.
16609 * server.c (handle_qxfer_libraries): Call
16610 the_target->qxfer_libraries_svr4.
16611 (handle_qxfer_libraries_svr4): New function.
16612 (qxfer_packets): New entry "libraries-svr4".
16613 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16614 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16615 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16616 PACKET_qXfer_libraries_svr4.
16618 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16620 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16621 PSW address/mask between 8-byte and 16-byte formats.
16622 (s390_supply_ptrace_register): Likewise.
16623 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16624 basic addressing mode bit.
16626 2011-11-24 Stan Shebs <stan@codesourcery.com>
16628 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16630 2011-11-17 Stan Shebs <stan@codesourcery.com>
16632 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16633 (tracing_start_time): New global.
16634 (tracing_stop_time): New global.
16635 (tracing_user_name): New global.
16636 (tracing_notes): New global.
16637 (tracing_stop_note): New global.
16638 (cmd_qtstart): Set traceframe_usage, start_time.
16639 (stop_tracing): Set stop_time.
16640 (cmd_qtstatus): Report additional status.
16641 (cmd_qtp): New function.
16642 (handle_tracepoint_query): Call it.
16643 (cmd_qtnotes): New function.
16644 (handle_tracepoint_general_set): Call it.
16645 (get_timestamp): Rename from tsv_get_timestamp.
16647 2011-11-14 Stan Shebs <stan@codesourcery.com>
16648 Kwok Cheung Yeung <kcy@codesourcery.com>
16650 * linux-x86-low.c (small_jump_insn): New.
16651 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16652 trampoline and error message, build a trampoline and issue a small
16653 jump instruction to it.
16654 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16655 trampoline and error message.
16656 (x86_get_min_fast_tracepoint_insn_len): New.
16657 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16658 * linux-low.h (struct linux_target_ops): Add arguments to
16659 install_fast_tracepoint_jump_pad operation, add new operation.
16660 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16662 (linux_get_min_fast_tracepoint_insn_len): New function.
16663 (linux_target_op): Add new operation.
16664 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16665 (gdb_trampoline_buffer_end): Ditto.
16666 (gdb_trampoline_buffer_error): Ditto.
16667 (struct ipa_sym_addresses): Add fields for new IPA variables.
16668 (symbol_list): Add entries for new IPA variables.
16669 (struct tracepoint): Add fields to hold the address range of the
16670 trampoline used by the tracepoint.
16671 (trampoline_buffer_head): New static variable.
16672 (trampoline_buffer_tail): Ditto.
16673 (claim_trampoline_space): New function.
16674 (have_fast_tracepoint_trampoline_buffer): New function.
16675 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16677 (install_fast_tracepoint): Ditto, also add error buffer argument.
16678 (cmd_qtminftpilen): New function.
16679 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16680 (fast_tracepoint_from_trampoline_address): New function.
16681 (fast_tracepoint_collecting): Handle trampoline as part of jump
16683 (set_trampoline_buffer_space): New function.
16684 (initialize_tracepoint): Initialize new IPA variables.
16685 * target.h (struct target_ops): Add arguments to
16686 install_fast_tracepoint_jump_pad operation, add new
16687 get_min_fast_tracepoint_insn_len operation.
16688 (target_get_min_fast_tracepoint_insn_len): New.
16689 (install_fast_tracepoint_jump_pad): Add arguments.
16690 * server.h (IPA_BUFSIZ): Define.
16691 * linux-i386-ipa.c: Include extra header files.
16692 (initialize_fast_tracepoint_trampoline_buffer): New function.
16693 (initialize_low_tracepoint): Call it.
16694 * server.h (set_trampoline_buffer_space): Declare.
16695 (claim_trampoline_space): Ditto.
16696 (have_fast_tracepoint_trampoline_buffer): Ditto.
16698 2011-11-14 Yao Qi <yao@codesourcery.com>
16700 * server.c (handle_query): Handle InstallInTrace for qSupported.
16701 * tracepoint.c (add_tracepoint): Sort list.
16702 (install_tracepoint, download_tracepoint): New.
16703 (cmd_qtdp): Call them to install and download tracepoints.
16704 (sort_tracepoints): Removed.
16705 (cmd_qtstart): Update.
16707 2011-11-14 Yao Qi <yao@codesourcery.com>
16709 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16710 * mem-break.h: Declare.
16711 * tracepoint.c (cmd_qtstart): Move some code to ...
16712 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16714 (download_tracepoints): Move some code to ...
16715 (download_tracepoint_1): ... here. New.
16717 2011-11-08 Yao Qi <yao@codesourcery.com>
16719 * remote-utils.c (relocate_instruction): A comment fix.
16721 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16723 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16724 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16725 dr_status_mirror and dr_control_mirror from debug_reg_state.
16726 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16727 (i386_initial_stuff): Remove use of deleted globals.
16728 (i386_get_thread_context, i386_set_thread_context,
16729 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16730 from debug_reg_state.
16732 2011-11-05 Yao Qi <yao@codesourcery.com>
16734 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16735 address as TPOINT's.
16737 2011-11-02 Stan Shebs <stan@codesourcery.com>
16739 * tracepoint.c (agent_mem_read_string): New function.
16740 (eval_agent_expr): Call it for tracenz.
16741 * server.c (handle_query): Report support for tracenz.
16743 2011-11-02 Yao Qi <yao@codesourcery.com>
16745 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16747 2011-11-02 Yao Qi <yao@codesourcery.com>
16749 * target.h: Fix a typo in comment.
16751 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16753 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16754 clobber the breakpoints' shadows with fast tracepoint jumps.
16755 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16756 * target.c (write_inferior_memory): Also pass MYADDR down to
16759 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16761 * configure.ac: Check support for personality routine.
16762 * configure: Regenerate.
16763 * config.in: Likewise.
16764 * linux-low.c: Include <sys/personality.h>.
16765 Define ADDR_NO_RANDOMIZE if necessary.
16766 (linux_create_inferior): Disable address space randomization when
16767 forking inferior, if requested.
16768 (linux_supports_disable_randomization): New function.
16769 (linux_target_ops): Install it.
16770 * server.h (disable_randomization): Declare.
16771 * server.c (disable_randomization): New global variable.
16772 (handle_general_set): Handle QDisableRandomization.
16773 (handle_query): Likewise for qSupported.
16774 (main): Support --disable-randomization and --no-disable-randomization
16775 command line arguments.
16776 * target.h (struct target_ops): Add supports_disable_randomization.
16777 (target_supports_disable_randomization): New macro.
16779 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16781 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16783 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16784 [!PT_GETDSBT] (target_loadmap): New definition.
16785 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16786 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16787 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16788 and PT_GETDSBT to LINUX_LOADMAP.
16789 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16790 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16792 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16794 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16795 (arm_linux_hwbp_cap): New static variable.
16796 (arm_linux_get_hwbp_cap): Replace by ...
16797 (arm_linux_init_hwbp_cap): ... this new function.
16798 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16799 (arm_linux_get_hw_watchpoint_count): Likewise.
16800 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16801 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16802 (arm_prepare_to_resume): Use perror_with_name instead of error.
16804 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16806 * linux-arm-low.c: Include <signal.h>.
16807 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16808 (struct arm_linux_hwbp_cap): New data type.
16809 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16810 (struct arm_linux_hw_breakpoint): New data type.
16811 (MAX_BPTS, MAX_WPTS): Define.
16812 (struct arch_process_info, struct arch_lwp_info): New data types.
16813 (arm_linux_get_hwbp_cap): New function.
16814 (arm_linux_get_hw_breakpoint_count): Likewise.
16815 (arm_linux_get_hw_watchpoint_count): Likewise.
16816 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16817 (arm_hwbp_control_initialize): Likewise.
16818 (arm_hwbp_control_is_enabled): Likewise.
16819 (arm_hwbp_control_is_initialized): Likewise.
16820 (arm_hwbp_control_disable): Likewise.
16821 (arm_linux_hw_breakpoint_equal): Likewise.
16822 (arm_linux_hw_point_initialize): Likewise.
16823 (struct update_registers_data): New data structure.
16824 (update_registers_callback: New function.
16825 (arm_insert_point): Likewise.
16826 (arm_remove_point): Likewise.
16827 (arm_stopped_by_watchpoint): Likewise.
16828 (arm_stopped_data_address): Likewise.
16829 (arm_new_process): Likewise.
16830 (arm_new_thread): Likewise.
16831 (arm_prepare_to_resume): Likewise.
16832 (the_low_target): Register arm_insert_point, arm_remove_point,
16833 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16834 arm_new_thread, and arm_prepare_to_resume.
16836 2011-09-15 Stan Shebs <stan@codesourcery.com>
16838 * server.h (struct emit_ops): Add compare-goto fields.
16839 * tracepoint.c (gdb_agent_op_sizes): New table.
16840 (emit_eq_goto): New function.
16841 (emit_ne_goto): New function.
16842 (emit_lt_goto): New function.
16843 (emit_le_goto): New function.
16844 (emit_gt_goto): New function.
16845 (emit_ge_goto): New function.
16846 (is_goto_target): New function.
16847 (compile_bytecodes): Recognize special cases of compare-goto
16848 combinations and call specialized emitters for them.
16849 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16850 (amd64_emit_ne_goto): New function.
16851 (amd64_emit_lt_goto): New function.
16852 (amd64_emit_le_goto): New function.
16853 (amd64_emit_gt_goto): New function.
16854 (amd64_emit_ge_goto): New function.
16855 (amd64_emit_ops): Add the new functions.
16856 (i386_emit_eq_goto): New function.
16857 (i386_emit_ne_goto): New function.
16858 (i386_emit_lt_goto): New function.
16859 (i386_emit_le_goto): New function.
16860 (i386_emit_gt_goto): New function.
16861 (i386_emit_ge_goto): New function.
16862 (i386_emit_ops): Add the new functions.
16864 2011-09-08 Stan Shebs <stan@codesourcery.com>
16866 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16867 (i386_emit_epilogue): Restore %ebx.
16869 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16871 * server.c (step_thread): Remove definition.
16872 (process_serial_event): Don't handle Hs.
16873 * server.h (step_thread): Remove declaration.
16874 * target.c (set_desired_inferior): Remove use of step_thread.
16876 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16878 * linux-low.c: Include linux-procfs.h.
16879 (linux_attach_lwp_1): Update comments.
16880 (linux_attach): Scan for existing threads when attaching to a
16881 process that is the tgid.
16882 * Makefile.in: Update dependencies.
16884 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16886 * configure.srv: Add linux-procfs.o dependencies.
16888 2011-08-14 Yao Qi <yao@codesourcery.com>
16890 * target.h (struct target_ops): Fix indent.
16891 * win32-low.c (win32_target_ops): Fix comment.
16893 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16894 Yao Qi <yao@codesourcery.com>
16896 * Makefile.in (clean): Remove tic6x-*.c files.
16897 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16898 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16899 (tic6x-c64xp-linux.c): Likewise.
16900 * configure.srv: Add support for tic6x-*-uclinux.
16901 * linux-tic6x-low.c: New.
16902 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16904 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16905 Yao Qi <yao@codesourcery.com>
16907 * target.h (struct target_ops): Add read_loadmap.
16908 * linux-low.c (struct target_loadseg): New type.
16909 (struct target_loadmap): New type.
16910 (linux_read_loadmap): New function.
16911 (linux_target_ops): Add linux_read_loadmap.
16912 * server.c (handle_query): Support qXfer:fdpic:read packet.
16913 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16916 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16918 * win32-low.c: Include <stdint.h>.
16920 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16922 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16923 to the inferior here.
16924 (i386_remove_aligned_watchpoint): Ditto.
16925 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16926 fit part of the watchpoint in the debug registers.
16927 (i386_update_inferior_debug_regs): New.
16928 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16929 registers, and only update the inferior on success.
16930 (i386_low_remove_watchpoint): Ditto.
16932 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16934 * linux-low.c (compare_ints, unique, list_threads, show_process,
16935 linux_core_of_thread): Delete.
16936 (linux_target_ops): Change linux_core_of_thread to
16937 linux_common_core_of_thread.
16938 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16939 * utils.c (malloc_failure): Change type of argument.
16940 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16941 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16942 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16943 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16944 (IPA_OBJS): Add common-utils-ipa.o.
16945 (ptid_h, linux_osdata_h): New macros.
16946 (server_h): Add common/common-utils.h, common/xml-utils.h,
16947 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16949 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16950 ptid.o, buffer.o): New rules.
16951 (linux-low.o): Add common/linux-osdata.h as a dependency.
16952 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16953 * configure.ac: Add AC_HEADER_DIRENT check.
16954 * config.in: Regenerate.
16955 * configure: Regenerate.
16956 * remote-utils.c (xml_escape_text): Delete.
16957 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16958 buffer_xml_printf): Move to common/buffer.c.
16959 * server.c (main): Remove call to initialize_inferiors.
16960 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16961 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16962 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16963 internal_error, gdb_assert, gdb_assert_fail): Delete.
16964 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16965 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16967 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16968 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16969 initialize_inferiors): Delete.
16971 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16973 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16976 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16978 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16980 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16982 2011-05-26 Yao Qi <yao@codesourcery.com>
16984 * Makefile.in (thread-db.o): Track dependence to
16985 common/gdb_thread_db.h.
16986 * thread-db.c: include gdb_thread_db.h from right place.
16988 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16990 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16991 __FILE__ and __LINE__ to internal_error.
16993 2011-05-13 Doug Evans <dje@google.com>
16995 * thread-db.c (try_thread_db_load_from_sdir): New function.
16996 (try_thread_db_load_from_dir): New function.
16997 (thread_db_load_search): Handle $sdir, ignore $pdir.
16998 Remove trying of system directories if search of
16999 libthread-db-search-path fails, that is now done via $sdir.
17001 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
17003 * server.c (handle_query): Add EnableDisableTracepoints to the list
17004 of supported features.
17005 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
17007 (cmd_qtenable_disable): New.
17008 (cmd_qtstart): Install tracepoints even if disabled.
17009 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
17010 receiving a QTEnable or QTDisable packet.
17011 (gdb_collect): Skip data collection if fast tracepoint is disabled.
17012 (ust_marker_to_static_tracepoint): Do not ignore disabled static
17014 (gdb_probe): Skip data collection if static tracepoint is disabled.
17016 2011-05-10 Doug Evans <dje@google.com>
17018 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
17020 2011-05-04 Doug Evans <dje@google.com>
17022 * linux-low.c (linux_join): Skip process lookup.
17023 * spu-low.c (spu_join): Ditto.
17024 * server.c (join_inferiors_callback): Delete.
17025 (process_serial_event): For 'D' packet (detach) call join_inferior
17028 2011-05-04 Joseph Myers <joseph@codesourcery.com>
17030 * README: Don't mention xscale*-*-linux*.
17031 * configure.srv (xscale*-*-linux*): Don't handle target.
17033 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
17035 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
17037 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
17038 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
17039 (i386_emit_void_call_2): Likewise.
17041 2011-04-26 Yao Qi <yao@codesourcery.com>
17043 * linux-low.c: Move common macros to linux-ptrace.h.
17044 Include linux-ptrace.h.
17045 * Makefile.in (linux_ptrace_h): New.
17046 (linux-low.o): Depends on linux-ptrace.h.
17048 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
17050 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
17051 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
17052 (remote_prepare): New function with most of the TCP code from ...
17053 (remote_open): ... here. Detect PORT here unconditionally. Move also
17054 setting transport_is_reliable.
17055 * server.c (run_once): New variable.
17056 (gdbserver_usage): Document it.
17057 (main): Set run_once for `--once'. Call remote_prepare. Exit after
17058 the first run if RUN_ONCE.
17059 * server.h (run_once, remote_prepare): New declarations.
17061 2011-04-19 Tom Tromey <tromey@redhat.com>
17063 * win32-low.c (handle_load_dll): Remove duplicate "the".
17065 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
17067 Remove support for old Cygwin 1.5 versions.
17068 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
17069 function to avoid warning.
17070 (win32_add_one_solib): Use cygwin_conv_path function to avoid
17073 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
17075 * gdbserver/server.h (Macro _): Define it if not available.
17077 2011-03-14 Michael Snyder <msnyder@vmware.com>
17079 * hostio.c (handle_close): Remove unnecessary null test.
17081 2011-03-10 Joel Brobecker <brobecker@adacore.com>
17083 * Makefile.in (maintainer-clean realclean distclean): Remove
17084 "make ... subdir_do" command.
17086 2011-03-10 Michael Snyder <msnyder@vmware.com>
17088 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
17090 * server.c (handle_v_run): Free alloced buffer on early return.
17092 2011-03-09 Yao Qi <yao@codesourcery.com>
17095 2011-03-04 Yao Qi <yao@codesourcery.com>
17097 * Makefile.in: Remove GNU make feature --directory.
17099 2011-03-05 Yao Qi <yao@codesourcery.com>
17101 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17102 (subdir_do): New make target. Copied from gdb/Makefile.
17103 (maintainer-clean, realclean, distclean, clean): Call corresponding
17104 make targets in common/Makefile.
17106 2011-02-11 Yao Qi <yao@codesourcery.com>
17108 * configure.ac: Call AC_PROG_RANLIB.
17109 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17110 * configure: Regenerate.
17112 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
17114 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
17116 2011-03-06 Yao Qi <yao@codesourcery.com>
17118 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
17120 2011-03-05 Yao Qi <yao@codesourcery.com>
17122 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
17123 (subdir_do): New make target. Copied from gdb/Makefile.
17124 (maintainer-clean, realclean, distclean, clean): Call corresponding
17125 make targets in common/Makefile.
17127 2011-03-04 Yao Qi <yao@codesourcery.com>
17129 * Makefile.in: Remove GNU make feature --directory.
17131 2011-03-04 Michael Snyder <msnyder@vmware.com>
17133 * server.c (queue_stop_reply): Call xmalloc not malloc.
17135 2011-03-02 Michael Snyder <msnyder@vmware.com>
17137 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
17139 2011-02-28 Michael Snyder <msnyder@vmware.com>
17141 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
17142 (cmd_qtframe): Ditto.
17143 (cmd_qtbuffer): Ditto.
17144 (cmd_bigqtbuffer): Ditto.
17146 * utils.c (decimal2str): Initialize 'width' to nine, then
17147 don't mess with it.
17149 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17151 * hostio.c (require_data): Free *data, not data.
17153 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17155 * hostio.c (require_data): Use free, not xfree.
17157 2011-02-27 Michael Snyder <msnyder@vmware.com>
17159 * server.c (handle_query): Discard unused value.
17161 * hostio.c (require_data): Free malloc memory before returning
17164 2011-02-26 Michael Snyder <msnyder@vmware.com>
17166 * linux-low.c (list_threads): Call closedir for dirent.
17168 2011-02-27 Michael Snyder <msnyder@vmware.com>
17170 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17171 a case statement falls through.
17173 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17175 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17178 2011-02-26 Michael Snyder <msnyder@vmware.com>
17180 * utils.c (decimal2str): Eliminate dead code and dead param.
17181 (pulongest): Drop dead param from call to decimal2str.
17184 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17186 Revert the following patch (not approved yet):
17187 2011-02-21 Hui Zhu <teawater@gmail.com>
17188 * tracepoint.c (tp_printf): New function.
17189 (eval_agent_expr): Handle gdb_agent_op_printf.
17191 2011-02-21 Hui Zhu <teawater@gmail.com>
17193 * tracepoint.c (tp_printf): New function.
17194 (eval_agent_expr): Handle gdb_agent_op_printf.
17196 2011-02-18 Tom Tromey <tromey@redhat.com>
17198 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17199 (tracepoint.o): Likewise.
17200 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17201 (gdb_agent_op_names): Likewise.
17203 2011-02-18 Tom Tromey <tromey@redhat.com>
17205 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17206 gdb_agent_op_rot>: New constants.
17207 (gdb_agent_op_names): Add pick and roll.
17208 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17211 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17213 * aclocal.m4: Regenerated with aclocal-1.11.1.
17215 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17217 * server.c (handle_qxfer_traceframe_info): New.
17218 (qxfer_packets): Register "traceframe-info".
17219 (handle_query): Report support for qXfer:traceframe-info:read+.
17220 * tracepoint.c (match_blocktype): New.
17221 (traceframe_find_block_type): Rename to ...
17222 (traceframe_walk_blocks): ... this. Add callback filter argument,
17224 (traceframe_find_block_type): New, reimplemented on top of
17225 traceframe_walk_blocks.
17226 (build_traceframe_info_xml): New.
17227 (traceframe_read_info): New.
17228 * server.h (traceframe_read_info): Declare.
17230 2011-02-11 Yao Qi <yao@codesourcery.com>
17232 * configure.ac: Call AC_PROG_RANLIB.
17233 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17234 * configure: Regenerate.
17236 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17238 * server.c (gdb_read_memory): Change return semantics to allow
17240 (handle_search_memory_1): Adjust.
17241 (process_serial_event) <'m' packet>: Handle partial transfers.
17242 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17244 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17246 * regcache.c (init_register_cache): Initialize
17247 regcache->register_status.
17248 (free_register_cache): Release regcache->register_status.
17249 (regcache_cpy): Copy register_status.
17250 (registers_to_string): Print 'x's for unavailable registers.
17251 (supply_register): Mark the register's status valid or
17252 unavailable, depending on whether a buffer was passed in or not.
17253 (supply_register_zeroed): New.
17254 (supply_regblock): Mark the registers' status valid or
17255 unavailable, depending on whether a buffer was passed in or not.
17256 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17257 (struct regcache): New `register_status' field.
17258 (supply_register_zeroed): Declare.
17259 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17260 supply_register_zeroed, rather than passing a NULL buffer to
17262 * tracepoint.c (fetch_traceframe_registers): Update comment.
17264 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17266 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17269 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17271 * server.h (decode_xfer_write): Change prototype.
17272 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17273 and don't extract the annex here.
17274 * server.c (decode_xfer_read): Remove `annex' parameter,
17275 and don't extract the annex here.
17276 (decode_xfer): New.
17277 (struct qxfer): New.
17278 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17279 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17280 (handle_qxfer_statictrace): New functions, abstracted out from
17281 handle_query, and made to use the struct qxfer interface.
17282 (handle_threads_qxfer_proper): Rename to ...
17283 (handle_qxfer_threads_proper): ... this.
17284 (handle_threads_qxfer): Rename to ...
17285 (handle_qxfer_threads): ... this. Adjust.
17286 (qxfer_packets): New array.
17287 (handle_qxfer): New function.
17288 (handle_query): Use handle_qxfer.
17290 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17292 * gdbreplay.c: Shorten lines of >= 80 columns.
17293 * linux-low.c: Ditto.
17294 * linux-ppc-low.c: Ditto.
17295 * linux-s390-low.c: Ditto.
17296 * linux-sparc-low.c: Ditto.
17297 * linux-x86-low.c: Ditto.
17298 * linux-xtensa-low.c: Ditto.
17299 * mem-break.c: Ditto.
17300 * nto-low.c: Ditto.
17301 * regcache.h: Ditto.
17302 * remote-utils.c: Ditto.
17305 * thread-db.c: Ditto.
17306 * tracepoint.c: Ditto.
17308 * win32-low.h: Ditto.
17310 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17312 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17315 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17317 * server.c (gdbserver_version): Update copyright year in version
17319 * gdbreplay.c (gdbreplay_version): Ditto.
17321 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17323 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17324 * linux-bfin-low.c: New file.
17325 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17326 PT_DATA_ADDR for BFIN targets.
17327 * Makefile.in (SFILES): Add linux-bfin-low.c.
17328 (clean): Remove reg-bfin.c.
17329 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17330 * README: Mention supported Blackfin targets.
17332 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17334 * .gitignore: New file.
17336 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17338 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17340 2010-10-22 Jie Zhang <jie@codesourcery.com>
17342 * Makefile.in: Add FLAGS_TO_PASS variable.
17343 (install): Remove dependency of install-only and recursively
17344 invoke make for install-only.
17346 2010-10-04 Doug Evans <dje@google.com>
17348 * Makefile.in (uninstall): Use $(DESTDIR).
17350 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17354 * linux-x86-low.c (compat_siginfo_from_siginfo)
17355 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17356 si_code is < 0. Check for si_code == SI_TIMER before checking for
17359 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17361 * lynx-i386-low.c: New file.
17362 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17364 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17366 * lynx-low.c (ptrace_request_to_str): Remove handling for
17367 request values that have been removed in LynxOS 5.x.
17369 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17371 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17374 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17376 * configure.ac: Add --enable-inprocess-agent option.
17377 * configure: Rebuilt.
17379 2010-09-06 Yao Qi <yao@codesourcery.com>
17381 * linux-low.c (linux_kill): Remove unused variable.
17382 (linux_stabilize_threads): Likewise.
17383 * server.c (start_inferior): Likewise.
17384 (queue_stop_reply_callback): Likewise.
17385 * tracepoint.c (do_action_at_tracepoint): Likewise.
17387 2010-09-06 Yao Qi <yao@codesourcery.com>
17389 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17392 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17394 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17396 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17398 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17401 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17403 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17404 gdbserver/lynx-ppc-low.c: New files.
17405 * Makefile.in (lynx_low_h): New variable.
17406 (lynx-low.o, lynx-ppc-low.o): New rules.
17407 * configure.ac: On LynxOS, link with -lnetinet.
17408 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17409 * configure: regenerate.
17411 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17413 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17414 * configure.ac: Add check for vasprintf and vsnprintf.
17415 * configure, config.in: Regenerate.
17416 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17418 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17420 * gdbreplay.c: Move include of alloca.h up, next to include of
17422 * server.h: Add include of malloc.h.
17423 * mem-break.c: Remove include of malloc.h.
17424 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17426 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17428 * Makefile.in (memmem.o): Build with -Wno-error.
17430 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17432 * utils.c (xsnprintf): Make non-static.
17433 * server.h: Add xsnprintf declaration.
17434 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17435 replace calls to snprintf by calls to xsnprintf throughout.
17437 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17439 * configure.ac: Add configure check for alloca.
17440 * configure, config.in: Regenerate.
17441 * server.h: Include alloca.h if it exists.
17442 * gdbreplay.c: Include alloca.h if it exists.
17444 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17446 * linux-low.c (__SIGRTMIN): Define if not already defined.
17447 (linux_create_inferior): Check for __ANDROID__ rather than
17449 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17450 are already deferred.
17451 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17452 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17453 stopped and already has a pending signal to report.
17454 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17455 a pending signal to report or is moving out of a jump pad.
17456 (linux_init_signals): Check for __ANDROID__ rather than
17459 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17461 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17462 debug_threads check. Avoid a linear search when not doing debug
17465 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17467 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17468 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17469 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17470 (process_event): Change local fd's type to gdb_fildes_t.
17471 (create_file_handler): Adjust prototype.
17472 (delete_file_handler): Adjust prototype.
17473 (handle_file_event): Adjust prototype. Use pfildes.
17474 (create_file_event): Adjsut prototype.
17475 * remote-utils.c (remote_desc, listen_desc): Change type to
17477 * server.h: New gdb_fildes_t typedef.
17478 [USE_WIN32API]: Include winsock2.h.
17479 (delete_file_handler, add_file_handler): Adjust prototypes.
17480 (pfildes): Declare.
17481 * utils.c (pfildes): New.
17483 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17485 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17486 * configure: Regenerate.
17488 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17490 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17491 (linux_done_accessing_memory): ... this.
17492 (linux_target_ops): Adjust.
17493 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17494 * nto-low.c (nto_target_ops): Adjust comment.
17495 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17496 * spu-low.c (spu_target_ops): Adjust comment.
17497 * target.h (target_ops): Rename unprepare_to_access_memory field
17498 to done_accessing_memory.
17499 (unprepare_to_access_memory): Rename to ...
17500 (done_accessing_memory): ... this.
17502 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17504 * linux-low.c (linux_prepare_to_access_memory): New.
17505 (linux_unprepare_to_access_memory): New.
17506 (linux_target_ops): Install them.
17507 * server.c (read_memory): Rename to ...
17508 (gdb_read_memory): ... this. Use
17509 prepare_to_access_memory/prepare_to_access_memory.
17510 (write_memory): Rename to ...
17511 (gdb_write_memory): ... this. Use
17512 prepare_to_access_memory/prepare_to_access_memory.
17513 (handle_search_memory_1): Adjust.
17514 (process_serial_event): Adjust.
17515 * target.h (struct target_ops): New fields
17516 prepare_to_access_memory and unprepare_to_access_memory.
17517 (prepare_to_access_memory, unprepare_to_access_memory): New.
17518 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17519 prepare_to_access_memory/prepare_to_access_memory.
17520 * nto-low.c (nto_target_ops): Adjust.
17521 * spu-low.c (spu_target_ops): Adjust.
17522 * win32-low.c (win32_target_ops): Adjust.
17524 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17526 * Makefile.in (WARN_CFLAGS): Get it from configure.
17527 (WERROR_CFLAGS): New.
17528 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17529 * configure.ac: Introduce --enable-werror, which adds -Werror to
17530 the compiler command line. Enabled by default. Disable with
17531 --disable-werror. Add -Wdeclaration-after-statement
17532 Wpointer-arith and -Wformat-nonliteral to warning flags.
17533 * configure: Regenerate.
17535 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17537 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17539 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17541 * gdbreplay.c (remote_error): New.
17543 (expect): Use gdbchar. Check for error reading from GDB.
17544 Clarify sync error output.
17545 (play): Check for errors writing to GDB.
17546 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17547 * remote-utils.c (getpkt): Check for errors writing to the remote
17550 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17552 * linux-low.c (linux_wait_1): Move non-debugging code out of
17553 `debug_threads' control.
17555 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17557 * linux-low.c (linux_wait_1): Don't set last_status here.
17558 * server.c (push_event, queue_stop_reply_callback): Assert we're
17559 not pushing a TARGET_WAITKIND_IGNORE event.
17560 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17561 (myresume, handle_target_event): Set the thread's last_resume_kind
17562 and last_status from the target returned status.
17564 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17568 * linux-x86-low.c (update_debug_registers_callback): New.
17569 (i386_dr_low_set_addr): Use it.
17570 (i386_dr_low_get_addr): New.
17571 (i386_dr_low_set_control): Use update_debug_registers_callback.
17572 (i386_dr_low_get_control): New.
17573 (i386_dr_low_get_status): Adjust.
17574 * linux-low.c (linux_stop_lwp): New.
17575 * linux-low.h (linux_stop_lwp): Declare.
17577 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17578 argument instead of a i386_debug_reg_state.
17579 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17580 a i386_debug_reg_state.
17581 (i386_insert_aligned_watchpoint): Adjust.
17582 (i386_remove_aligned_watchpoint): Adjust.
17583 (i386_low_stopped_data_address): Read the debug registers from the
17584 inferior instead of from the mirrors.
17585 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17586 (i386_dr_low_get_addr): Declare.
17587 (i386_dr_low_get_control): Declare.
17588 (i386_dr_low_get_status): Change prototype.
17590 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17591 (i386_dr_low_get_addr): New.
17592 (i386_dr_low_get_control): New.
17593 (i386_dr_low_get_status): Adjust prototype. Return
17595 (i386_initial_stuff): Clear dr_status_mirror and
17597 (i386_get_thread_context): Adjust.
17598 (i386_set_thread_context): Adjust.
17599 (i386_thread_added): Adjust.
17601 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17603 * linux-low.h (linux_thread_area): Delete declaration.
17605 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17607 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17608 after its termination.
17610 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17612 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17613 (gdb_wants_all_stopped): Delete.
17614 (linux_wait_1): Don't call them.
17615 * server.c (handle_v_cont): Tag all threads as want-stopped.
17616 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17617 stopped as "client-wants-stopped".
17619 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17621 * Makefile.in (signals_h): New.
17622 (server_h): Depend on it.
17623 (server.o): Don't depend on $(signals_def).
17624 (signals.o): Depend on $(signals_def).
17626 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17628 * Makefile.in (signals_def): New.
17629 (server_h): Append include/gdb/signals.h and signals_def.
17630 (server.o): Append signals_def.
17632 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17634 * server.c (handle_target_event): Use target_signal_to_host for
17635 resume_info.sig initialization.
17636 * target.h (struct thread_resume) <sig>: New comment.
17638 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17640 * server.c (handle_query): strcpy() the returned string from paddress()
17641 instead of sprintf().
17642 * utils.c (paddress): Return phex_nz().
17644 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17646 * server.c (handle_v_cont): Call mourn_inferior if process
17648 (myresume): Likewise.
17650 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17652 Static tracepoints, and integration with UST.
17654 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17655 * mem-break.c (uninsert_all_breakpoints)
17656 (reinsert_all_breakpoints): New.
17657 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17658 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17659 (gdb_agent_ust_loaded, helper_thread_id)
17660 (gdb_agent_helper_thread_id): New macros.
17661 (struct ipa_sym_addresses): Add addr_ust_loaded,
17662 addr_helper_thread_id, addr_cmd_buf.
17663 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17664 (in_process_agent_loaded_ust): New.
17665 (write_e_ust_not_loaded): New.
17666 (maybe_write_ipa_ust_not_loaded): New.
17667 (struct collect_static_trace_data_action): New.
17668 (enum tracepoint_type) <static_tracepoint>: New.
17669 (struct tracepoint) <handle>: Mention static tracepoints.
17670 (struct static_tracepoint_ctx): New.
17671 (CMD_BUF_SIZE): New.
17672 (add_tracepoint_action): Handle static tracepoint actions.
17673 (unprobe_marker_at): New.
17674 (clear_installed_tracepoints): Handle static tracepoints.
17675 (cmd_qtdp): Handle static tracepoints.
17676 (probe_marker_at): New.
17677 (cmd_qtstart): Handle static tracepoints.
17678 (response_tracepoint): Handle static tracepoints.
17679 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17680 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17681 (get_context_regcache): Handle static tracepoints.
17682 (do_action_at_tracepoint): Handle static tracepoint actions.
17683 (traceframe_find_block_type): Handle static trace data blocks.
17684 (traceframe_read_sdata): New.
17685 (download_tracepoints): Download static tracepoint actions.
17686 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17687 (GDB_PROBE_NAME): New.
17689 (GET_UST_SYM): New.
17692 (ust_marker_to_static_tracepoint): New.
17694 (collect_ust_data_at_tracepoint): New.
17695 (gdb_ust_probe): New.
17696 (UNIX_PATH_MAX, SOCK_DIR): New.
17697 (gdb_ust_connect_sync_socket): New.
17698 (resume_thread, stop_thread): New.
17699 (run_inferior_command): New.
17700 (init_named_socket): New.
17701 (gdb_ust_socket_init): New.
17702 (cstr_to_hexstr): New.
17704 (first_marker, next_marker): New.
17705 (response_ust_marker): New.
17706 (cmd_qtfstm, cmd_qtsstm): New.
17707 (unprobe_marker_at, probe_marker_at): New.
17708 (cmd_qtstmat, gdb_ust_thread): New.
17709 (gdb_ust_init): New.
17710 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17711 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17712 (ST_REGENTRY): New.
17713 (x86_64_st_collect_regmap): New.
17714 (X86_64_NUM_ST_COLLECT_GREGS): New.
17715 (AMD64_RIP_REGNUM): New.
17716 (supply_static_tracepoint_registers): New.
17717 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17718 (ST_REGENTRY): New.
17719 (i386_st_collect_regmap): New.
17720 (i386_NUM_ST_COLLECT_GREGS): New.
17721 (supply_static_tracepoint_registers): New.
17722 * server.c (handle_query): Handle qXfer:statictrace:read.
17723 <qSupported>: Report support for StaticTracepoints, and
17724 qXfer:statictrace:read features.
17725 * server.h (traceframe_read_sdata)
17726 (supply_static_tracepoint_registers): Declare.
17727 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17728 (unpack_varlen_hex): Include in IPA build.
17729 * Makefile.in (ustlibs, ustinc): New.
17730 (IPA_OBJS): Add remote-utils-ipa.o.
17731 ($(IPA_LIB)): Link -ldl and -lpthread.
17733 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17734 * config.in, configure: Regenerate.
17736 2010-06-20 Ian Lance Taylor <iant@google.com>
17737 Pedro Alves <pedro@codesourcery.com>
17739 * linux-x86-low.c (always_true): Delete.
17740 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17741 trying to fool the compiler with always_true.
17743 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17745 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17746 conditions in gdbserver.
17748 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17750 * spu-low.c (spu_read_memory): Wrap around local store limit.
17751 (spu_write_memory): Likewise.
17753 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17755 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17756 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17758 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17760 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17761 uses with LONGEST uses.
17763 2010-06-14 Stan Shebs <stan@codesourcery.com>
17764 Pedro Alves <pedro@codesourcery.com>
17768 * linux-x86-low.c: Include limits.h.
17770 (always_true): New.
17773 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17774 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17775 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17776 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17777 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17778 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17779 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17780 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17781 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17782 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17783 (amd64_emit_void_call_2): New.
17784 (amd64_emit_ops): New.
17785 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17786 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17787 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17788 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17789 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17790 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17791 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17792 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17793 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17794 (i386_emit_stack_adjust, i386_emit_int_call_1)
17795 (i386_emit_void_call_2): New.
17796 (i386_emit_ops): New.
17797 (x86_emit_ops): New.
17798 (the_low_target): Install x86_emit_ops.
17799 * server.h (struct emit_ops): New.
17800 (get_raw_reg_func_addr): Declare.
17801 (current_insn_ptr, emit_error): Declare.
17802 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17803 (set_trace_state_variable_value): New defines.
17804 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17805 addr_get_trace_state_variable_value and
17806 addr_set_trace_state_variable_value.
17807 (symbol_list): New fields for get_raw_reg,
17808 get_trace_state_variable_value and set_trace_state_variable_value.
17809 (condfn): New typedef.
17810 (struct tracepoint): New field `compiled_cond'.
17811 (do_action_at_tracepoint): Clear compiled_cond.
17812 (get_trace_state_variable_value, set_trace_state_variable_value):
17814 (condition_true_at_tracepoint): If there's a compiled condition,
17816 (current_insn_ptr, emit_error): New globals.
17817 (struct bytecode_address): New.
17818 (get_raw_reg_func_addr): New.
17819 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17820 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17821 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17822 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17823 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17824 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17825 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17826 (compile_tracepoint_condition, compile_bytecodes): New.
17827 * target.h (emit_ops): Forward declare.
17828 (struct target_ops): New field emit_ops.
17829 (target_emit_ops): New.
17830 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17831 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17832 * linux-low.c (linux_emit_ops): New.
17833 (linux_target_ops): Install it.
17834 * linux-low.h (struct linux_target_ops): New field emit_ops.
17836 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17838 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17839 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17841 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17842 Stan Shebs <stan@codesourcery.com>
17844 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17845 (all): Depend on $(extra_libraries).
17846 (install-only): Install the IPA.
17847 (IPA_OBJS, IPA_LIB): New.
17848 (clean): Remove the IPA lib.
17849 (IPAGENT_CFLAGS): New.
17850 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17851 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17852 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17853 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17854 * configure.ac: Check for atomic builtins support in the compiler.
17855 (IPA_DEPFILES, extra_libraries): Define.
17856 * configure.srv (ipa_obj): Add description.
17857 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17858 (i[34567]86-*-linux*): Set ipa_obj.
17859 (x86_64-*-linux*): Set ipa_obj.
17860 * linux-low.c (stabilizing_threads): New.
17861 (supports_fast_tracepoints): New.
17862 (linux_detach): Stabilize threads before detaching.
17863 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17864 the lwp is either not stabilizing, or is moving out of a jump pad.
17865 (linux_fast_tracepoint_collecting): New.
17866 (maybe_move_out_of_jump_pad): New.
17867 (enqueue_one_deferred_signal): New.
17868 (dequeue_one_deferred_signal): New.
17869 (linux_wait_for_event_1): If moving out of a jump pad, defer
17870 pending signals to later.
17871 (linux_stabilize_threads): New.
17872 (linux_wait_1): Check if threads need moving out of jump pads, and
17874 (stuck_in_jump_pad_callback): New.
17875 (move_out_of_jump_pad_callback): New.
17876 (lwp_running): New.
17877 (linux_resume_one_lwp): Handle moving out of jump pads.
17878 (linux_set_resume_request): Dequeue deferred signals.
17879 (need_step_over_p): Also step over fast tracepoint jumps.
17880 (start_step_over): Also uninsert fast tracepoint jumps.
17881 (finish_step_over): Also reinsert fast tracepoint jumps.
17882 (linux_install_fast_tracepoint_jump): New.
17883 (linux_target_ops): Install linux_stabilize_threads and
17884 linux_install_fast_tracepoint_jump_pad.
17885 * linux-low.h (linux_target_ops) <get_thread_area,
17886 install_fast_tracepoint_jump_pad>: New fields.
17887 (struct lwp_info) <collecting_fast_tracepoint,
17888 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17889 (linux_get_thread_area): Declare.
17890 * linux-x86-low.c (jump_insn): New.
17891 (x86_get_thread_area): New.
17892 (append_insns): New.
17893 (push_opcode): New.
17894 (amd64_install_fast_tracepoint_jump_pad): New.
17895 (i386_install_fast_tracepoint_jump_pad): New.
17896 (x86_install_fast_tracepoint_jump_pad): New.
17897 (the_low_target): Install x86_get_thread_area and
17898 x86_install_fast_tracepoint_jump_pad.
17899 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17900 (struct fast_tracepoint_jump): New.
17901 (fast_tracepoint_jump_insn): New.
17902 (fast_tracepoint_jump_shadow): New.
17903 (find_fast_tracepoint_jump_at): New.
17904 (fast_tracepoint_jump_here): New.
17905 (delete_fast_tracepoint_jump): New.
17906 (set_fast_tracepoint_jump): New.
17907 (uninsert_fast_tracepoint_jumps_at): New.
17908 (reinsert_fast_tracepoint_jumps_at): New.
17909 (set_breakpoint_at): Use write_inferior_memory.
17910 (uninsert_raw_breakpoint): Use write_inferior_memory.
17911 (check_mem_read): Mask out fast tracepoint jumps.
17912 (check_mem_write): Mask out fast tracepoint jumps.
17913 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17914 (set_fast_tracepoint_jump): Declare.
17915 (delete_fast_tracepoint_jump)
17916 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17917 (reinsert_fast_tracepoint_jumps_at): Declare.
17918 * regcache.c: Don't compile many functions when building the
17919 in-process agent library.
17920 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17921 the register buffer in the heap.
17922 (free_register_cache): If the register buffer isn't owned by the
17923 regcache, don't free it.
17924 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17925 pre-existing register caches.
17926 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17928 (convert_ascii_to_int): : Constify `from' parameter type.
17929 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17930 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17931 the needed buffer in-place.
17932 (relocate_instruction): New.
17933 * server.c (handle_query) <qSymbols>: If the target supports
17934 tracepoints, give it a chance of looking up symbols. Report
17935 support for fast tracepoints.
17936 (handle_status): Stabilize threads.
17937 (process_serial_event): Adjust.
17938 * server.h (struct fast_tracepoint_jump): Forward declare.
17939 (struct process_info) <fast_tracepoint_jumps>: New field.
17940 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17941 (decode_X_packet, decode_M_packet): Adjust.
17942 (relocate_instruction): Declare.
17943 (in_process_agent_loaded): Declare.
17944 (tracepoint_look_up_symbols): Declare.
17945 (struct fast_tpoint_collect_status): Declare.
17946 (fast_tracepoint_collecting): Declare.
17947 (force_unlock_trace_buffer): Declare.
17948 (handle_tracepoint_bkpts): Declare.
17949 (initialize_low_tracepoint)
17950 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17951 * target.h (struct target_ops) <stabilize_threads,
17952 install_fast_tracepoint_jump_pad>: New fields.
17953 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17954 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17955 [HAVE_STDINT_H]: Include stdint.h.
17956 (trace_debug_1): Rename to ...
17957 (trace_vdebug): ... this.
17958 (trace_debug): Rename to ...
17959 (trace_debug_1): ... this. Add `level' parameter.
17960 (trace_debug): New.
17961 (ATTR_USED, ATTR_NOINLINE): New.
17962 (IP_AGENT_EXPORT): New.
17963 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17964 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17965 (about_to_request_buffer_space, trace_buffer_is_full)
17966 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17967 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17968 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17969 (traceframe_write_count, traceframes_created)
17970 (trace_state_variables)
17971 New renaming defines.
17972 (struct ipa_sym_addresses): New.
17973 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17974 (symbol_list): New.
17975 (ipa_sym_addrs): New.
17976 (all_tracepoint_symbols_looked_up): New.
17977 (in_process_agent_loaded): New.
17978 (write_e_ipa_not_loaded): New.
17979 (maybe_write_ipa_not_loaded): New.
17980 (tracepoint_look_up_symbols): New.
17981 (debug_threads) [IN_PROCESS_AGENT]: New.
17982 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17983 (UNKNOWN_SIDE_EFFECTS): New.
17984 (stop_tracing): New.
17985 (flush_trace_buffer): New.
17986 (stop_tracing_bkpt): New.
17987 (flush_trace_buffer_bkpt): New.
17988 (read_inferior_integer): New.
17989 (read_inferior_uinteger): New.
17990 (read_inferior_data_pointer): New.
17991 (write_inferior_data_pointer): New.
17992 (write_inferior_integer): New.
17993 (write_inferior_uinteger): New.
17994 (struct collect_static_trace_data_action): Delete.
17995 (enum tracepoint_type): New.
17996 (struct tracepoint) <type>: New field `type'.
17997 <actions_str, step_actions, step_actions_str>: Only include in
17999 <orig_size, obj_addr_on_target, adjusted_insn_addr>
18000 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
18001 (tracepoints): Use IP_AGENT_EXPORT.
18002 (last_tracepoint): Don't include in the IPA.
18003 (stopping_tracepoint): Use IP_AGENT_EXPORT.
18004 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
18005 (alloced_trace_state_variables): New.
18006 (trace_state_variables): Use IP_AGENT_EXPORT.
18007 (traceframe_t): Delete unused variable.
18008 (circular_trace_buffer): Don't include in the IPA.
18009 (trace_buffer_start): Delete.
18010 (struct trace_buffer_control): New.
18011 (trace_buffer_free): Delete.
18012 (struct ipa_trace_buffer_control): New.
18013 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
18014 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
18016 (trace_buffer_ctrl): New.
18017 (TRACE_BUFFER_CTRL_CURR): New.
18018 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
18019 Reimplement as macros.
18020 (trace_buffer_wrap): Delete.
18021 (traceframe_write_count, traceframe_read_count)
18022 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
18023 (struct tracepoint_hit_ctx) <type>: New field.
18024 (struct fast_tracepoint_ctx): New.
18025 (memory_barrier): New.
18027 (record_tracepoint_error): Update atomically in the IPA.
18028 (clear_inferior_trace_buffer): New.
18029 (about_to_request_buffer_space): New.
18030 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
18031 updating the same buffer.
18032 (add_tracepoint): Default the tracepoint's type to trap
18033 tracepoint, and orig_size to -1.
18034 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
18035 internal variables.
18036 (create_trace_state_variable): New parameter `gdb'. Handle it.
18037 (clear_installed_tracepoints): Clear fast tracepoint jumps.
18038 (cmd_qtdp): Handle fast tracepoints.
18039 (cmd_qtdv): Adjust.
18040 (max_jump_pad_size): New.
18041 (gdb_jump_pad_head): New.
18042 (get_jump_space_head): New.
18043 (claim_jump_space): New.
18044 (sort_tracepoints): New.
18045 (MAX_JUMP_SIZE): New.
18046 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
18048 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
18049 support. Upload fast traceframes, and delete internal IPA
18051 (stop_tracing_handler): New.
18052 (flush_trace_buffer_handler): New.
18053 (cmd_qtstop): Upload fast tracepoints.
18054 (response_tracepoint): Handle fast tracepoints.
18055 (tracepoint_finished_step): Upload fast traceframes. Set the
18056 tracepoint hit context's tracepoint type.
18057 (handle_tracepoint_bkpts): New.
18058 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
18059 type. Add comment about fast tracepoints.
18060 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
18061 non-existing action_str field.
18062 (get_context_regcache): Handle fast tracepoints.
18063 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
18065 (fast_tracepoint_from_jump_pad_address): New.
18066 (fast_tracepoint_from_ipa_tpoint_address): New.
18067 (collecting_t): New.
18068 (force_unlock_trace_buffer): New.
18069 (fast_tracepoint_collecting): New.
18071 (gdb_collect): New.
18072 (write_inferior_data_ptr): New.
18073 (target_tp_heap): New.
18074 (target_malloc): New.
18075 (download_agent_expr): New.
18077 (download_tracepoints): New.
18078 (download_trace_state_variables): New.
18079 (upload_fast_traceframes): New.
18080 (IPA_FIRST_TRACEFRAME): New.
18081 (IPA_NEXT_TRACEFRAME_1): New.
18082 (IPA_NEXT_TRACEFRAME): New.
18083 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
18084 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
18085 (gdb_jump_pad_buffer_end): New.
18086 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
18087 (initialize_tracepoint): Adjust.
18088 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
18089 buffer. Initialize the low module.
18090 * utils.c (PREFIX, TOOLNAME): New.
18091 (malloc_failure): Use PREFIX.
18092 (error): In the IPA, an error causes an exit.
18093 (fatal, warning): Use PREFIX.
18094 (internal_error): Use TOOLNAME.
18095 (NUMCELLS): Increase to 10.
18096 * configure, config.in: Regenerate.
18098 2010-06-01 Pedro Alves <pedro@codesourcery.com>
18100 * server.c (handle_query) <qSupported>: Do two passes over the
18101 qSupported string to avoid nesting strtok.
18103 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18105 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
18107 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
18108 -Wl,--dynamic-list.
18109 * configure: Regenerate.
18110 * proc-service.list: New.
18112 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
18114 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
18117 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
18119 * gdbreplay.c (remote_open): Check error return from socket() call by
18120 its equality to -1 not by it being negative.
18121 * remote-utils.c (remote_open): Likewise.
18123 2010-05-23 Pedro Alves <pedro@codesourcery.com>
18125 * config.h: Regenerate.
18127 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18129 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
18130 doesn't provide PTRACE_GET_THREAD_AREA.
18132 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18134 * linux-m68k-low.c: Include <asm/ptrace.h>
18135 (ps_get_thread_area): Implement.
18137 2010-05-03 Doug Evans <dje@google.com>
18139 * event-loop.c (struct callback_event): New struct.
18140 (callback_list): New global.
18141 (append_callback_event, delete_callback_event): New functions.
18142 (process_callback): New function.
18143 (start_event_loop): Call it.
18144 * remote-utils.c (NOT_SCHEDULED): Define.
18145 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
18146 moved out of readchar.
18147 (readchar): Rewrite. Call reschedule before returning.
18148 (reset_readchar): New function.
18149 (remote_close): Call it.
18150 (process_remaining, reschedule): New functions.
18151 * server.h (callback_handler_func): New typedef.
18152 (append_callback_event, delete_callback_event): Declare.
18154 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18156 * proc-service.c (ps_pglobal_lookup): Use
18157 thread_db_look_up_one_symbol.
18158 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18159 parameter. Use it instead of all_symbols_looked_up.
18160 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18162 (all_symbols_looked_up): Don't declare.
18163 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18164 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18166 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18167 Set all_symbols_looked_up here.
18168 (thread_db_look_up_one_symbol): New.
18169 (thread_db_get_tls_address): Adjust.
18170 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18171 thread_db object on the heap, and tentatively set it in the
18173 (thread_db_init): Don't set all_symbols_looked_up here.
18174 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18176 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18178 * linux-low.c (linux_kill, linux_detach): Adjust.
18179 (status_pending_p_callback): Remove redundant statement. Check
18180 for !TARGET_WAITIKIND_IGNORE, instead of
18181 TARGET_WAITKIND_STOPPED.
18182 (handle_tracepoints): Make sure LWP is locked. Adjust.
18183 (linux_wait_for_event_1): Adjust.
18184 (linux_cancel_breakpoints): New.
18185 (unsuspend_one_lwp): New.
18186 (unsuspend_all_lwps): New.
18187 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18188 (send_sigstop_callback): Change return type to int, add new
18189 `except' parameter and handle it.
18190 (suspend_and_send_sigstop_callback): New.
18191 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18192 pass them down. If SUSPEND, also increment the lwp's suspend
18194 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18195 (need_step_over_p): Don't consider suspended LWPs.
18196 (start_step_over): Adjust.
18197 (proceed_one_lwp): Change return type to int, add new `except'
18198 parameter and handle it.
18199 (unsuspend_and_proceed_one_lwp): New.
18200 (proceed_all_lwps): Use find_inferior instead of
18202 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18203 also decrement the suspend count of LWPs. Pass `except' down,
18204 instead of hacking its suspend count.
18205 (linux_pause_all): Add `freeze' parameter. Adjust.
18206 (linux_unpause_all): New.
18207 (linux_target_ops): Install linux_unpause_all.
18208 * server.c (handle_status): Adjust.
18209 * target.h (struct target_ops): New fields `unpause_all' and
18210 `cancel_breakpoints'. Add new parameter to `pause_all'.
18211 (pause_all): Add new `freeze' parameter.
18212 (unpause_all): New.
18213 (cancel_breakpoints): New.
18214 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18215 cancel breakpoints.
18216 (cmd_qtstart): Pause threads.
18217 (stop_tracing): Pause threads, and cancel breakpoints.
18218 * win32-low.c (win32_target_ops): Adjust.
18220 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18222 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18223 the inferior right away from here...
18224 (linux_wait_1): ... to here, and adjust to check the thread's
18225 last_resume_kind instead of the lwp's step or stop_expected flags.
18227 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18229 * README: Use consistent `GDB' and `GDBserver' spellings.
18231 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18233 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18234 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18235 (linux_detach_one_lwp): Assume the lwp is stopped.
18236 (any_thread_of): Delete.
18237 (linux_detach): Stop all lwps here. Don't blindly delete all
18239 (delete_lwp_callback): New.
18240 (linux_mourn): Delete all lwps of the process that is gone.
18241 (linux_wait_1): Don't delete the last lwp of the process here.
18242 * mem-break.h (mark_breakpoints_out): Declare.
18243 * mem-break.c (mark_breakpoints_out): New.
18244 (free_all_breakpoints): Use it.
18245 * server.c (handle_target_event): If the process is gone, mark
18247 * thread-db.c (struct thread_db) <create_bp>: New field.
18248 (thread_db_enable_reporting): Fix prototype. Store a thread event
18249 breakpoint reference in the thread_db struct.
18250 (thread_db_load_search): Clear the thread_db object.
18251 (try_thread_db_load_1): Ditto.
18252 (switch_to_process): New.
18253 (disable_thread_event_reporting): Use it.
18254 (remove_thread_event_breakpoints): New.
18255 (thread_db_detach, thread_db_mourn): Use it.
18257 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18259 * linux-low.c (linux_enable_event_reporting): New.
18260 (linux_wait_for_event_1, handle_extended_wait): Use it.
18262 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18264 * linux-low.c (linux_kill_one_lwp, linux_kill)
18265 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18266 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18267 SIGSTOP even if the LWP is stopped.
18268 (send_sigstop_callback): New.
18269 (stop_all_lwps): Use send_sigstop_callback instead.
18270 (linux_resume_one_thread): Adjust.
18271 (proceed_one_lwp): Still proceed an LWP that the client has
18272 requested to stop, if we haven't reported it as stopped yet. Make
18273 sure that LWPs the client want stopped, have a pending SIGSTOP.
18275 2010-04-26 Doug Evans <dje@google.com>
18277 * server.c (handle_general_set): Make static.
18279 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18280 Print received char after testing for error/eof instead of before.
18281 (input_interrupt): Tweak comment.
18283 2010-04-23 Doug Evans <dje@google.com>
18285 * server.c (start_inferior): Print inferior argv if --debug.
18287 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18289 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18290 * nto-x86-low.c: Include server.h
18292 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18294 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18295 be consistent with other sources of this directory.
18296 (init_registers_amd64): Correct name of source file of this function
18299 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18301 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18302 64-bit executables.
18304 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18306 * win32-i386-low.c: Add 64-bit support.
18307 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18308 (init_registers_amd64): Declare.
18309 (mappings): Add 64-bit version of array.
18310 (init_windows_x86): New function.
18311 (the_low_target): Change init_arch field to init_windows_x86.
18313 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18315 * win32-low.c: Adapt to support also 64-bit architecture.
18316 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18317 (get_image_name): Use SIZE_T type for local variable `done'.
18318 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18319 (toolhelp_get_dll_name): Idem.
18320 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18321 Use uintptr_t typecast to avoid warning.
18322 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18323 (handle_exception): Use phex_nz to avoid warning.
18324 (win32_wait): Remove unused local variable `process'.
18326 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18328 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18331 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18333 * configure.ac: Use `ws2_32' library for srv_mingw.
18334 * configure: Regenerate.
18335 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18336 * remote-utils.c: Likewise.
18338 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18340 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18341 if __x86_64__ is defined.
18343 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18345 * configure: Regenerate.
18347 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18349 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18350 * target.h (target_ops): New get_tib_address field.
18351 * win32-low.h (win32_thread_info): Add thread_local_base field.
18352 * win32-low.c (child_add_thread): Add tlb argument.
18353 Set thread_local_base field to TLB.
18354 (get_child_debug_event): Adapt to child_add_thread change.
18355 (win32_get_tib_address): New function.
18356 (win32_target_ops): Set get_tib_address field to
18357 win32_get_tib_address.
18358 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18360 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18362 * linux-low.c (linux_mourn): Also remove the process.
18363 * server.c (handle_target_event): Don't remove the process here.
18364 * nto-low.c (nto_mourn): New.
18365 (nto_target_ops): Install it.
18366 * spu-low.c (spu_mourn): New.
18367 (spu_target_ops): Install it.
18368 * win32-low.c (win32_mourn): New.
18369 (win32_target_ops): Install it.
18371 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18373 * server.h (buffer_xml_printf): Remove redundant `;'.
18375 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18377 * regcache.c (set_register_cache): Invalidate regcaches before
18378 changing the register cache layout.
18379 (regcache_invalidate_one): Allow a NULL regcache.
18380 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18381 regcaches before changing the register cache layout or the target
18384 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18386 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18387 variable warning on Linux/x86-64.
18389 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18391 GDBserver disconnected tracing support.
18393 * linux-low.c (linux_remove_process): Delete.
18394 (add_lwp): Don't set last_resume_kind here.
18395 (linux_kill): Use `mourn'.
18396 (linux_detach): Use `thread_db_detach', and `mourn'.
18397 (linux_mourn): New.
18398 (linux_attach_lwp_1): Adjust comment.
18399 (linux_attach): last_resume_kind moved the thread_info; adjust.
18400 (status_pending_p_callback): Adjust.
18401 (linux_wait_for_event_1): Adjust.
18402 (count_events_callback, select_singlestep_lwp_callback)
18403 (select_event_lwp_callback, cancel_breakpoints_callback)
18404 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18405 (proceed_one_lwp): Adjust.
18406 (linux_async): Add debug output.
18407 (linux_thread_stopped): New.
18408 (linux_pause_all): New.
18409 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18411 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18412 (thread_db_free): Delete declaration.
18413 (thread_db_detach, thread_db_mourn): Declare.
18414 * thread-db.c (thread_db_init): Use thread_db_mourn.
18415 (thread_db_free): Delete, split in two.
18416 (disable_thread_event_reporting): New.
18417 (thread_db_detach): New.
18418 (thread_db_mourn): New.
18420 * server.h (struct thread_info) <last_resume_kind>: New field.
18421 <attached>: Add comment.
18422 <gdb_detached>: New field.
18423 (handler_func): Change return type to int.
18424 (handle_serial_event, handle_target_event): Ditto.
18425 (gdb_connected): Declare.
18427 (disconnected_tracing): Declare.
18428 (stop_tracing): Declare.
18430 * server.c (handle_query) <qSupported>: Report support for
18431 disconnected tracing.
18432 (queue_stop_reply_callback): Account for running threads.
18433 (gdb_wants_thread_stopped): New.
18434 (gdb_wants_all_threads_stopped): New.
18435 (gdb_reattached_process): New.
18436 (handle_status): Clear the `gdb_detached' flag of all processes.
18437 In all-stop, stop all threads.
18438 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18439 (process_serial_event): If the remote connection breaks, or if an
18440 exit was forced with "monitor exit", force an event loop exit.
18441 Handle disconnected tracing on detach.
18442 (handle_serial_event): Adjust.
18443 (handle_target_event): If GDB isn't connected, forward events back
18444 to the inferior, unless the last process exited, in which case,
18445 exit gdbserver. Adjust interface.
18447 * remote-utils.c (remote_open): Don't block in accept. Instead
18448 register an event loop source on the listen socket file
18449 descriptor. Refactor bits into ...
18450 (listen_desc): ... this new global.
18451 (gdb_connected): ... this new function.
18452 (enable_async_notification): ... this new function.
18453 (handle_accept_event): ... this new function.
18454 (remote_close): Clear remote_desc.
18456 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18458 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18460 (mourn_inferior): Define.
18461 (target_process_qsupported): Avoid the dangling else problem.
18462 (thread_stopped): Define.
18463 (pause_all): Define.
18464 (target_waitstatus_to_string): Declare.
18465 * target.c (target_waitstatus_to_string): New.
18467 * tracepoint.c (tracing): Make extern.
18468 (disconnected_tracing): New.
18469 (stop_tracing): Make extern. Handle tracing stops due to GDB
18471 (cmd_qtdisconnected): New.
18472 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18473 (handle_tracepoint_general_set): Handle QTDisconnected.
18475 * event-loop.c (event_handler_func): Change return type to int.
18476 (process_event): Bail out if the event handler wants the event
18478 (handle_file_event): Ditto.
18479 (start_event_loop): Bail out if the event handler wants the event
18482 * nto-low.c (nto_target_ops): Adjust.
18483 * spu-low.c (spu_wait): Don't remove the process here.
18484 (spu_target_ops): Adjust.
18485 * win32-low.c (win32_wait): Don't remove the process here.
18486 (win32_target_ops): Adjust.
18488 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18490 * regcache.c (realloc_register_cache): Invalidate inferior's
18491 regcache before recreating it.
18493 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18495 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18497 2010-04-09 Stan Shebs <stan@codesourcery.com>
18498 Pedro Alves <pedro@codesourcery.com>
18500 * server.h (LONGEST): New.
18501 (struct thread_info) <while_stepping>: New field.
18502 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18504 (initialize_tracepoint, handle_tracepoint_general_set)
18505 (handle_tracepoint_query, tracepoint_finished_step)
18506 (tracepoint_was_hit, release_while_stepping_state_list):
18507 (current_traceframe): Declare.
18508 * server.c (handle_general_set): Handle tracepoint packets.
18509 (read_memory): New.
18510 (write_memory): New.
18511 (handle_search_memory_1): Use read_memory.
18512 (handle_query): Report support for conditional tracepoints, trace
18513 state variables, and tracepoint sources. Handle tracepoint
18515 (main): Initialize the tracepoints module.
18516 (process_serial_event): Handle traceframe reads/writes.
18518 * linux-low.c (handle_tracepoints): New.
18519 (linux_wait_1): Call it.
18520 (linux_resume_one_lwp): Handle while-stepping.
18521 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18522 (linux_target_ops): Install them.
18523 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18525 * linux-x86-low.c (x86_supports_tracepoints): New.
18526 (the_low_target). Install it.
18528 * mem-break.h (delete_breakpoint): Declare.
18529 * mem-break.c (delete_breakpoint): Make external.
18531 * target.h (struct target_ops): Add `supports_tracepoints',
18532 `read_pc', and `write_pc' fields.
18533 (target_supports_tracepoints): Define.
18534 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18537 * regcache.h (struct regcache) <registers_owned>: New field.
18538 (init_register_cache, regcache_cpy): Declare.
18539 (regcache_read_pc, regcache_write_pc): Declare.
18540 (register_cache_size): Declare.
18541 (supply_regblock): Declare.
18542 * regcache.c (init_register_cache): New.
18543 (new_register_cache): Use it.
18544 (regcache_cpy): New.
18545 (register_cache_size): New.
18546 (supply_regblock): New.
18547 (regcache_read_pc, regcache_write_pc): New.
18549 * tracepoint.c: New.
18551 * Makefile.in (OBS): Add tracepoint.o.
18552 (tracepoint.o): New rule.
18554 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18556 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18558 (i386-mmx.c): Likewise.
18559 (i386-mmx-linux.o): Likewise.
18560 (i386-mmx-linux.c): Likewise.
18562 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18563 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18564 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18565 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18567 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18568 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18569 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18571 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18573 * Makefile.in (clean): Updated.
18575 (i386-avx.c): Likewise.
18576 (i386-avx-linux.o): Likewise.
18577 (i386-avx-linux.c): Likewise.
18578 (amd64-avx.o): Likewise.
18579 (amd64-avx.c): Likewise.
18580 (amd64-avx-linux.o): Likewise.
18581 (amd64-avx-linux.c): Likewise.
18583 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18584 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18585 (srv_amd64_regobj): Add amd64-avx.o.
18586 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18587 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18588 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18589 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18590 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18591 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18592 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18594 * i387-fp.c: Include "i386-xstate.h".
18596 (i387_cache_to_xsave): Likewise.
18597 (i387_xsave_to_cache): Likewise.
18598 (x86_xcr0): Likewise.
18600 * i387-fp.h (i387_cache_to_xsave): Likewise.
18601 (i387_xsave_to_cache): Likewise.
18602 (x86_xcr0): Likewise.
18604 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18605 * linux-crisv32-low.c (target_regsets): Likewise.
18606 * linux-m68k-low.c (target_regsets): Likewise.
18607 * linux-mips-low.c (target_regsets): Likewise.
18608 * linux-ppc-low.c (target_regsets): Likewise.
18609 * linux-s390-low.c (target_regsets): Likewise.
18610 * linux-sh-low.c (target_regsets): Likewise.
18611 * linux-sparc-low.c (target_regsets): Likewise.
18612 * linux-xtensa-low.c (target_regsets): Likewise.
18614 * linux-low.c: Include <sys/uio.h>.
18615 (regsets_fetch_inferior_registers): Support nt_type.
18616 (regsets_store_inferior_registers): Likewise.
18617 (linux_process_qsupported): New.
18618 (linux_target_ops): Add linux_process_qsupported.
18620 * linux-low.h (regset_info): Add nt_type.
18621 (linux_target_ops): Add process_qsupported.
18623 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18625 (init_registers_i386_avx_linux): New.
18626 (init_registers_amd64_avx_linux): Likewise.
18627 (xmltarget_i386_linux_no_xml): Likewise.
18628 (xmltarget_amd64_linux_no_xml): Likewise.
18629 (PTRACE_GETREGSET): Likewise.
18630 (PTRACE_SETREGSET): Likewise.
18631 (x86_fill_xstateregset): Likewise.
18632 (x86_store_xstateregset): Likewise.
18633 (use_xml): Likewise.
18634 (x86_linux_update_xmltarget): Likewise.
18635 (x86_linux_process_qsupported): Likewise.
18636 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18637 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18638 init_registers_i386_linux here. Call
18639 x86_linux_update_xmltarget.
18640 (the_low_target): Add x86_linux_process_qsupported.
18642 * server.c (handle_query): Call target_process_qsupported.
18644 * target.h (target_ops): Add process_qsupported.
18645 (target_process_qsupported): New.
18647 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18649 * inferiors.c (add_thread): Set last_status kind to
18650 TARGET_WAITKIND_IGNORE.
18651 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18652 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18653 (linux_wait_1): Move `thread' local definition to block that uses
18654 it. Don't NULL initialize `event_child'.
18655 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18656 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18657 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18659 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18661 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18662 an extended waitstatus, or by a watchpoint.
18663 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18664 thread was stepping or has been stopped by a watchpoint.
18666 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18668 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18669 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18670 of another, then delete the previous, and validate all
18672 (validate_inserted_breakpoint): New.
18673 (delete_disabled_breakpoints): New.
18674 (validate_breakpoints): New.
18675 (check_mem_read): Validate breakpoints before trusting their
18676 shadow. Delete disabled breakpoints.
18677 (check_mem_write): Validate breakpoints before trusting they
18678 should be inserted. Delete disabled breakpoints.
18679 * mem-break.h (validate_breakpoints):
18680 * server.c (handle_query): Validate breakpoints when we see a
18683 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18685 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18686 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18687 if we could tell there's a GDB breakpoint at stop_pc.
18688 (need_step_over_p): Don't do a step over if we find a GDB
18689 breakpoint at the resume PC.
18691 * mem-break.c (struct raw_breakpoint): New.
18692 (enum bkpt_type): New type `gdb_breakpoint'.
18693 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18694 fields. New field `raw'.
18695 (find_raw_breakpoint_at): New.
18696 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18697 breakpoint instead.
18698 (set_breakpoint_at): Adjust.
18699 (delete_raw_breakpoint): New.
18700 (release_breakpoint): New.
18701 (delete_breakpoint): Rename to...
18702 (delete_breakpoint_1): ... this. Add proc parameter. Use
18703 release_breakpoint. Return ENOENT.
18704 (delete_breakpoint): Reimplement.
18705 (find_breakpoint_at): Delete.
18706 (find_gdb_breakpoint_at): New.
18707 (delete_breakpoint_at): Delete.
18708 (set_gdb_breakpoint_at): New.
18709 (delete_gdb_breakpoint_at): New.
18710 (gdb_breakpoint_here): New.
18711 (set_reinsert_breakpoint): Use release_breakpoint.
18712 (uninsert_breakpoint): Rename to ...
18713 (uninsert_raw_breakpoint): ... this.
18714 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18715 (reinsert_raw_breakpoint): Change parameter type to
18717 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18719 (check_breakpoints): Adjust. Use release_breakpoint.
18720 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18721 (breakpoint_inserted_here): Ditto.
18722 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18723 Don't trust the breakpoint's shadow if it is not inserted.
18724 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18725 (delete_all_breakpoints): Adjust.
18726 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18727 use delete_breakpoint_1.
18729 * mem-break.h (breakpoints_supported): Delete declaration.
18730 (set_gdb_breakpoint_at): Declare.
18731 (gdb_breakpoint_here): Declare.
18732 (delete_breakpoint_at): Delete.
18733 (delete_gdb_breakpoint_at): Declare.
18735 * server.h (struct raw_breakpoint): Forward declare.
18736 (struct process_info): New field `raw_breakpoints'.
18738 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18741 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18743 * linux-low.c (status_pending_p_callback): Fix comment.
18744 (linux_wait_for_event_1): Move most of the internal breakpoint
18745 handling from here...
18746 (linux_wait_1): ... to here.
18747 (count_events_callback): New.
18748 (select_singlestep_lwp_callback): New.
18749 (select_event_lwp_callback): New.
18750 (cancel_breakpoints_callback): New.
18751 (select_event_lwp): New.
18752 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18753 priority to all LWPs that have had events that should be reported
18754 to the client. Cancel breakpoints when about to reporting the
18755 event to the client, not while stopping lwps. No longer cancel
18756 finished single-steps here.
18757 (cancel_finished_single_step): Delete.
18758 (cancel_finished_single_steps): Delete.
18760 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18762 * mem-break.c (enum bkpt_type): New.
18763 (struct breakpoint): New field `type'.
18764 (set_breakpoint_at): Change return type to struct breakpoint
18765 pointer. Set type to `other_breakpoint' by default.
18766 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18767 in the breakpoint list.
18768 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18769 (reinsert_breakpoint): Rename to ...
18770 (reinsert_raw_breakpoint): ... this.
18771 (reinsert_breakpoints_at): Adjust.
18772 * mem-break.h (struct breakpoint): Declare.
18773 (set_breakpoint_at): Change return type to struct breakpoint
18776 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18778 * server.c (handle_query): Assign, not compare.
18780 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18782 Teach linux gdbserver to step-over-breakpoints.
18784 * linux-low.c (can_hardware_single_step): New.
18785 (supports_breakpoints): New.
18786 (handle_extended_wait): If stopping threads, read the stop pc of
18787 the new cloned LWP.
18789 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18790 low target doesn't support retrieving the PC.
18791 (add_lwp): Set last_resume_kind to resume_continue.
18792 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18793 (linux_attach): Don't clear stop_expected. Set the lwp's
18794 last_resume_kind to resume_stop.
18795 (linux_detach_one_lwp): Don't check for removed breakpoints.
18796 (check_removed_breakpoint): Delete.
18797 (status_pending_p): Rename to ...
18798 (status_pending_p_callback): ... this. Don't check for removed
18799 breakpoints. Don't consider threads that are stopped from GDB's
18801 (linux_wait_for_lwp): Always read the stop_pc here.
18802 (cancel_breakpoint): New.
18803 (step_over_bkpt): New global.
18804 (linux_wait_for_event_1): Implement stepping over breakpoints.
18805 (gdb_wants_lwp_stopped): New.
18806 (gdb_wants_all_stopped): New.
18807 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18808 single-step traps here. Store the thread's last reported target
18810 (send_sigstop): Don't clear stop_expected. Always set it,
18812 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18813 (cancel_finished_single_step): New.
18814 (cancel_finished_single_steps): New.
18815 (wait_for_sigstop): Don't cancel finished single-step traps here.
18816 (linux_resume_one_lwp): Don't check for removed breakpoints.
18817 Don't set `step' on non-hardware step archs.
18818 (linux_set_resume_request): Ignore resume_stop requests if already
18819 stopping or stopped. Set the lwp's last_resume_kind.
18820 (resume_status_pending_p): Don't check for removed breakpoints.
18821 (need_step_over_p): New.
18822 (start_step_over): New.
18823 (finish_step_over): New.
18824 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18825 requests. Clear the thread's last reported target waitstatus.
18826 Don't use the `suspended' flag. Don't consider pending breakpoints.
18827 (linux_resume): Start a step-over if necessary.
18828 (proceed_one_lwp): New.
18829 (proceed_all_lwps): New.
18830 (unstop_all_lwps): New.
18831 * linux-low.h (struct lwp_info): Rewrite comment for the
18832 `suspended' flag. Add the `stop_pc' field. Delete the
18833 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18834 Add `'last_resume_kind' and `need_step_over' fields.
18835 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18836 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18837 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18838 (set_raw_breakpoint_at): New.
18839 (set_breakpoint_at): Rewrite to use it.
18840 (reinsert_breakpoint_handler): Delete.
18841 (set_reinsert_breakpoint): New.
18842 (reinsert_breakpoint_by_bp): Delete.
18843 (delete_reinsert_breakpoints): New.
18844 (uninsert_breakpoint): Rewrite.
18845 (uninsert_breakpoints_at): New.
18846 (reinsert_breakpoint): Rewrite.
18847 (reinsert_breakpoints_at): New.
18848 (check_breakpoints): Rewrite.
18849 (breakpoint_here): New.
18850 (breakpoint_inserted_here): New.
18851 (check_mem_read): Adjust.
18852 * mem-break.h (breakpoints_supported, breakpoint_here)
18853 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18854 (reinsert_breakpoint_by_bp): Delete declaration.
18855 (delete_reinsert_breakpoints): Declare.
18856 (reinsert_breakpoint): Delete declaration.
18857 (reinsert_breakpoints_at): Declare.
18858 (uninsert_breakpoint): Delete declaration.
18859 (uninsert_breakpoints_at): Declare.
18860 (check_breakpoints): Adjust prototype.
18861 * server.h: Adjust include order.
18862 (struct thread_info): Declare here. Add a `last_status' field.
18864 2010-03-23 Michael Snyder <msnyder@vmware.com>
18866 * server.c (crc32): New function.
18867 (handle_query): Add handling for 'qCRC:' request.
18869 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18871 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18872 lwp had been stopped by a watchpoint.
18874 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18876 * server.h (internal_error): Declare.
18877 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18878 * utils.c (internal_error): New function.
18880 2010-03-15 Andreas Schwab <schwab@redhat.com>
18882 * configure.srv: Fix typo setting srv_regobj.
18884 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18886 * linux-low.c (fetch_register): Avoid passing a non string literal
18888 (usr_store_inferior_registers): Ditto.
18890 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18892 * linux-low.c (linux_write_memory): Bail out early if peeking
18895 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18897 * linux-low.h (struct lwp_info): New fields
18898 `stopped_by_watchpoint' and `stopped_data_address'.
18899 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18900 here, and cache them in the lwp object.
18901 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18903 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18905 (linux_stopped_by_watchpoint): Rewrite.
18906 (linux_stopped_data_address): Rewrite.
18908 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18910 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18911 switching the current inferior, not before.
18913 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18915 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18916 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18917 i386-linux.c and amd64-linux.c.
18918 (reg-i386.o): Removed.
18919 (reg-i386.c): Likewise.
18920 (reg-i386-linux.o): Likewise.
18921 (reg-i386-linux.c): Likewise.
18922 (reg-x86-64.o): Likewise.
18923 (reg-x86-64.c): Likewise.
18924 (reg-x86-64-linux.o): Likewise.
18925 (reg-x86-64-linux.c): Likewise.
18927 (i386.c): Likewise.
18928 (i386-linux.o): Likewise.
18929 (i386-linux.c): Likewise.
18930 (amd64.o): Likewise.
18931 (amd64.c): Likewise.
18932 (amd64-linux.o): Likewise.
18933 (amd64-linux.c): Likewise.
18935 * configure.srv (srv_i386_regobj): New.
18936 (srv_i386_linux_regobj): Likewise.
18937 (srv_amd64_regobj): Likewise.
18938 (srv_amd64_linux_regobj): Likewise.
18939 (srv_i386_32bit_xmlfiles): Likewise.
18940 (srv_i386_64bit_xmlfiles): Likewise.
18941 (srv_i386_xmlfiles): Likewise.
18942 (srv_amd64_xmlfiles): Likewise.
18943 (srv_i386_linux_xmlfiles): Likewise.
18944 (srv_amd64_linux_xmlfiles): Likewise.
18945 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18946 srv_xmlfiles to $srv_i386_xmlfiles.
18947 (i[34567]86-*-mingw32ce*): Likewise.
18948 (i[34567]86-*-mingw*): Likewise.
18949 (i[34567]86-*-nto*): Likewise.
18950 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18951 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18952 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18953 (x86_64-*-linux*): Likewise.
18955 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18956 (init_registers_amd64_linux): New.
18957 (x86_arch_setup): Replace init_registers_x86_64_linux with
18958 init_registers_amd64_linux.
18960 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18962 * configure.ac: Check for libdl. If it is not available link against
18963 static libthread_db.
18964 * configure: Regenerate.
18966 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18970 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18971 handing a read watchpoint.
18972 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18974 2010-02-12 Doug Evans <dje@google.com>
18976 * linux-low.c (linux_supports_tracefork_flag): Document.
18977 (linux_look_up_symbols): Add comment.
18979 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18981 * regcache.c (supply_register): Clear regcache if buf is NULL.
18983 2010-02-02 Nicolas Roche <roche@sourceware.org>
18984 Joel Brobecker <brobecker@adacore.com>
18986 * inferiors.c (find_inferior): Add function documentation.
18987 (unloaded_dll): Handle the case where the unloaded dll has not
18988 been previously registered in the dll list.
18990 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18992 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18993 (thumb2_breakpoint): New.
18994 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18996 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18998 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18999 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
19002 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19004 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
19006 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
19008 * linux-s390-low.c (s390_collect_ptrace_register)
19009 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
19011 2010-01-21 Doug Evans <dje@google.com>
19013 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
19014 (PTRACE_ARG4_TYPE): New macro.
19015 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
19016 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
19017 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
19018 (usr_store_inferior_registers): Ditto.
19019 (linux_read_memory, linux_write_memory): Ditto.
19020 (linux_test_for_tracefork): Ditto.
19022 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
19023 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
19025 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19027 * proc-service.c (ps_lgetregs): Don't refetch registers from the
19030 2010-01-21 Pedro Alves <pedro@codesourcery.com>
19032 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
19033 prototype to take a regcache. Adjust.
19035 2010-01-20 Pedro Alves <pedro@codesourcery.com>
19037 * regcache.h (struct thread_info): Forward declare.
19038 (struct regcache): New.
19039 (new_register_cache): Adjust prototype.
19040 (get_thread_regcache): Declare.
19041 (free_register_cache): Adjust prototype.
19042 (registers_to_string, registers_from_string): Ditto.
19043 (supply_register, supply_register_by_name, collect_register)
19044 (collect_register_as_string, collect_register_by_name): Ditto.
19045 * regcache.c (struct inferior_regcache_data): Delete.
19046 (get_regcache): Rename to ...
19047 (get_thread_regcache): ... this. Adjust. Switch inferior before
19048 fetching registers.
19049 (regcache_invalidate_one): Adjust.
19050 (regcache_invalidate): Fix prototype.
19051 (new_register_cache): Return the new register cache.
19052 (free_register_cache): Change prototype.
19053 (realloc_register_cache): Adjust.
19054 (registers_to_string): Change prototype to take a regcache. Adjust.
19055 (registers_from_string): Ditto.
19056 (register_data): Ditto.
19057 (supply_register): Ditto.
19058 (supply_register_by_name): Ditto.
19059 (collect_register): Ditto.
19060 (collect_register_as_string): Ditto.
19061 (collect_register_by_name): Ditto.
19062 * server.c (process_serial_event): Adjust.
19063 * linux-low.h (regset_fill_func, regset_store_func): Change
19065 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
19067 * linux-low.c (get_stop_pc): Adjust.
19068 (check_removed_breakpoint): Adjust.
19069 (linux_wait_for_event): Adjust.
19070 (linux_resume_one_lwp): Adjust.
19071 (fetch_register): Add regcache parameter. Adjust.
19072 (usr_store_inferior_registers): Ditto.
19073 (regsets_fetch_inferior_registers): Ditto.
19074 (regsets_store_inferior_registers): Ditto.
19075 (linux_fetch_registers, linux_store_registers): Ditto.
19076 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
19078 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
19080 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
19081 prototype to take a regcache.
19082 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
19083 * remote-utils.c (convert_ascii_to_int, outreg)
19084 (prepare_resume_reply): Change prototype to take a regcache.
19086 * target.h (struct target_ops) <fetch_registers, store_registers>:
19087 Change prototype to take a regcache.
19088 (fetch_inferior_registers, store_inferior_registers): Change
19089 prototype to take a regcache. Adjust.
19090 * proc-service.c (ps_lgetregs): Adjust.
19091 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
19092 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
19093 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
19094 take a regcache. Adjust.
19095 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
19096 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
19097 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
19098 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
19099 * linux-cris-low.c (cris_get_pc, cris_set_pc)
19100 (cris_cannot_fetch_register):
19101 (cris_breakpoint_at): Change prototype to take a regcache.
19103 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
19104 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
19105 to take a regcache. Adjust.
19106 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
19108 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
19109 take a regcache. Adjust.
19110 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
19111 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
19112 (m68k_set_pc): Change prototype to take a regcache. Adjust.
19113 * linux-mips-low.c (mips_get_pc):
19114 (mips_set_pc): Change prototype to take a regcache. Adjust.
19115 (mips_reinsert_addr): Adjust.
19116 (mips_collect_register): Change prototype to take a regcache.
19118 (mips_supply_register):
19119 (mips_collect_register_32bit, mips_supply_register_32bit)
19120 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
19121 (mips_store_fpregset): Ditto.
19122 * linux-ppc-low.c (ppc_supply_ptrace_register)
19123 (ppc_supply_ptrace_register): Ditto.
19124 (parse_spufs_run): Adjust.
19125 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
19126 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
19127 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
19128 take a regcache. Adjust.
19129 * linux-s390-low.c (s390_collect_ptrace_register)
19130 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
19131 (s390_set_pc): Change prototype to take a regcache. Adjust.
19132 (s390_arch_setup): Adjust.
19133 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
19134 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
19135 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
19136 (sparc_fill_gregset, sparc_store_gregset_from_stack)
19137 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
19139 (sparc_breakpoint_at): Adjust.
19140 * linux-xtensa-low.c (xtensa_fill_gregset):
19141 (xtensa_store_gregset):
19142 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
19143 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
19144 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
19145 prototype to take a regcache. Adjust.
19146 * win32-arm-low.c (arm_fetch_inferior_register)
19147 (arm_store_inferior_register): Change prototype to take a
19149 * win32-i386-low.c (i386_fetch_inferior_register)
19150 (i386_store_inferior_register): Change prototype to take a
19152 * win32-low.c (child_fetch_inferior_registers)
19153 (child_store_inferior_registers): Change prototype to take a
19155 (win32_wait): Adjust.
19156 (win32_fetch_inferior_registers): Change prototype to take a
19158 (win32_store_inferior_registers): Adjust.
19159 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19160 store_inferior_register>: Change prototype to take a regcache.
19162 2010-01-20 Doug Evans <dje@google.com>
19164 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19166 (linux_wait_for_event1, linux_init_signals): Ditto.
19167 (W_STOPCODE): Provide definition if missing.
19169 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19171 * linux-low.c (linux_core_of_thread): New.
19172 (compare_ints, show_process, list_threads): New.
19173 (linux_qxfer_osdata): Report threads and cores.
19174 (linux_target_op): Register linux_core_of_thread.
19175 * remote-utils.c (prepare_resume_reply): Report the core.
19176 (buffer_xml_printf): Support %d specifier.
19177 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19179 (handle_query): Handle qXfer:threads. Announce availability
19181 * target.h (struct target_ops): New field core_of_thread.
19183 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19185 * Makefile.in (clean): Remove new generated files.
19186 (reg-s390.o, reg-s390.c): Remove rules.
19187 (reg-s390x.o, reg-s390x.c): Likewise.
19188 (s390-linux32.o, s390-linux32.c): Add rules.
19189 (s390-linux64.o, s390-linux64.c): Likewise.
19190 (s390x-linux64.o, s390x-linux64.c): Likewise.
19191 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19192 * linux-s390-low.c: Include <elf.h>.
19193 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19194 (init_registers_s390): Remove prototype.
19195 (init_registers_s390x): Likewise.
19196 (init_registers_s390_linux32): Add prototype.
19197 (init_registers_s390_linux64): Likewise.
19198 (init_registers_s390x_linux64): Likewise.
19199 (s390_num_regs_3264): New define.
19200 (s390_regmap_3264): New global variable.
19201 (s390_cannot_fetch_register): Remove obsolete check.
19202 (s390_cannot_store_register): Likewise.
19203 (s390_collect_ptrace_register): Handle upper/lower register halves.
19204 (s390_supply_ptrace_register): Likewise.
19205 (s390_fill_gregset): Update to register number changes.
19206 (s390_get_hwcap): New routine.
19207 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19208 Install appropriate regmap and register set.
19210 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19212 * server.c (gdbserver_version): Update copyright year to 2010.
19213 * gdbreplay.c (gdbreplay_version): Likewise.
19215 2009-12-28 Doug Evans <dje@google.com>
19217 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19218 elf/external.h. Include <elf.h> instead but only if necessary.
19220 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19222 * linux-low.c (linux_remove_process): Remove `detaching'
19223 parameter. Don't release/detach from thread_db here.
19224 (linux_kill): Release/detach from thread_db here, ...
19225 (linux_detach): ... and here, before actually detaching.
19226 (linux_wait_1): ... and here, when a process exits.
19227 * thread-db.c (any_thread_of): New.
19228 (thread_db_free): Switch the current inferior to a thread of the
19231 2009-12-21 Doug Evans <dje@google.com>
19233 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19235 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19236 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19237 warning ifndef __NR_tkill. Move setting of errno there too.
19238 Delete unnecessary resetting of errno after syscall.
19239 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19241 * configure.ac: Check for dladdr.
19242 * config.in: Regenerate.
19243 * configure: Regenerate.
19244 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19245 (try_thread_db_load): Update.
19247 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19249 2009-12-18 Doug Evans <dje@google.com>
19251 * event-loop.c: Include unistd.h if it exists.
19253 * linux-low.c (my_waitpid): Move definition away from being in
19254 between linux_tracefork_child/linux_test_for_tracefork.
19256 * gdb_proc_service.h (psaddr_t): Fix type.
19257 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19258 signature to match glibc.
19260 2009-12-16 Doug Evans <dje@google.com>
19262 * linux-low.c (linux_read_memory): Fix argument to read.
19264 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19266 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19267 events, don't leave current_inferior pointing at null.
19269 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19271 * win32-low.c (LOG): Delete.
19272 (OUTMSG): Output to stderr.
19273 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19274 on compile time LOG macro.
19275 (win32_wait): Fix debug output.
19277 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19279 * win32-low.c (win32_add_one_solib): If the dll name is
19280 "ntdll.dll", prepend the system directory to the dll path.
19282 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19284 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19286 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19287 Vladimir Prus <vladimir@codesourcery.com>
19289 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19290 * configure.ac: Check for __mcoldfire__ and set
19291 gdb_cv_m68k_is_coldfire.
19292 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19293 reg-cf.o and reg-m68k.o.
19294 * configure: Regenerated.
19296 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19298 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19299 Pass it to thread_db_free.
19300 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19301 proper `detaching' argument to linux_remove_process.
19302 * linux-low.h (thread_db_free): Add `detaching' parameter.
19303 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19305 (thread_db_free): Add `detaching' parameter. Only
19306 call td_ta_clear_event if detaching from process.
19308 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19310 * thread-db.c (thread_db_free): Fix typo.
19312 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19315 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19317 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19319 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19320 with an i686 compiler.
19321 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19323 * configure: Rebuilt.
19325 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19329 * server.c (handle_search_memory_1): Correct read_addr initialization
19330 in loop for searching subsequent chunks.
19332 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19334 * configure.ac: New --with-libthread-db option.
19335 * thread-db.c: Allow direct dependence on libthread_db.
19336 (thread_db_free): Adjust.
19337 * config.in: Regenerate.
19338 * configure: Likewise.
19340 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19343 * thread-db.c (attach_thread): New function.
19344 (maybe_attach_thread): Return success/failure.
19345 (find_new_threads_callback): Adjust.
19346 (thread_db_find_new_threads): Loop until no new threads.
19348 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19350 * proc-service.c (ps_lgetregs): Formatting.
19352 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19354 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19355 * configure.ac: Adjust.
19356 * linux-low.h (struct process_info_private): Move members to struct
19358 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19359 * linux-low.c (linux_remove_process): Adjust.
19360 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19361 * server.c (handle_query): Move code ...
19362 (handle_monitor_command): ... here. New function.
19363 * target.h (struct target_ops): New member.
19364 * thread-db.c (struct thread_db): New.
19365 (libthread_db_search_path): New variable.
19366 (thread_db_create_event, thread_db_enable_reporting)
19367 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19368 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19369 (try_thread_db_load_1, dladdr_to_soname): New functions.
19370 (try_thread_db_load, thread_db_load_search): New functions.
19371 (thread_db_init): Search for libthread_db.
19372 (thread_db_free): New function.
19373 (thread_db_handle_monitor_command): Likewise.
19374 * config.in: Regenerate.
19375 * configure: Regenerate.
19377 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19379 * spu-low.c (spu_kill): Wait for inferior to terminate.
19380 Call clear_inferiors.
19381 (spu_detach): Call clear_inferiors.
19383 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19385 * aclocal.m4: Regenerate.
19386 * config.in: Likewise.
19387 * configure: Likewise.
19389 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19391 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19392 (parse_spufs_run): New function.
19393 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19394 (ppc_breakpoint_at): Handle SPU breakpoints.
19396 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19398 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19399 (SPUFS_MAGIC): Define.
19400 (spu_enumerate_spu_ids): New function.
19401 (linux_qxfer_spu): New function.
19402 (linux_target_ops): Install linux_qxfer_spu.
19404 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19406 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19407 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19408 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19409 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19410 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19411 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19412 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19413 (init_registers_powerpc_cell32l): Add prototype.
19414 (init_registers_powerpc_cell64l): Likewise.
19415 (ppc_arch_setup): Detect Cell/B.E. architecture.
19417 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19419 * Makefile.in (datarootdir): New variable.
19421 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19423 * linux-low.c (linux_write_memory): Update debugging output.
19424 * Makefile.in (clean): Add new descriptions.
19425 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19426 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19427 * configure.srv: Add new files for arm*-*-linux*.
19428 * linux-arm-low.c: Add new declarations.
19429 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19430 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19431 (HWCAP_VFPv3D16): New.
19432 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19433 instead of __IWMMXT__.
19434 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19435 (arm_arch_setup): New.
19436 (target_regsets): Remove #ifdef. Add VFP regset.
19437 (the_low_target): Use arm_arch_setup.
19439 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19441 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19442 the main thread again.
19444 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19446 Adding Neutrino gdbserver.
19447 * configure: Regenerated.
19448 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19449 * configure.srv (i[34567]86-*-nto*): New target.
19450 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19451 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19452 (nto_comctrl) [__QNX__]: New function.
19453 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19455 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19457 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19460 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19461 Pedro Alves <pedro@codesourcery.com>
19463 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19464 don't support CONTEXT_EXTENDED_REGISTERS.
19465 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19466 (the_low_target): Install them.
19467 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19468 failing with ERROR_PIPE_NOT_CONNECTED.
19470 2009-06-30 Doug Evans <dje@google.com>
19471 Pierre Muller <muller@ics.u-strasbg.fr>
19473 Add h/w watchpoint support to x86-linux, win32-i386.
19474 * Makefile.in (SFILES): Add i386-low.c
19475 (i386_low_h): Define.
19476 (i386-low.o): Add dependencies.
19477 (linux-x86-low.o): Add i386-low.h dependency.
19478 (win32-i386-low.o): Ditto.
19479 * i386-low.c: New file.
19480 * i386-low.h: New file.
19481 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19482 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19483 * linux-low.c (linux_add_process): Initialize arch_private.
19484 (linux_remove_process): Free arch_private.
19485 (add_lwp): Initialize arch_private.
19486 (delete_lwp): Free arch_private.
19487 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19489 * linux-low.h (process_info_private): New member arch_private.
19490 (lwp_info): New member arch_private.
19491 (linux_target_ops): New members new_process, new_thread,
19493 (ptid_of): New macro.
19494 * linux-x86-low.c: Include stddef.h, i386-low.h.
19495 (arch_process_info): New struct.
19496 (arch_lwp_info): New struct.
19497 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19498 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19499 (i386_dr_low_get_status): New function.
19500 (x86_insert_point, x86_remove_point): New functions.
19501 (x86_stopped_by_watchpoint): New function.
19502 (x86_stopped_data_address): New function.
19503 (x86_linux_new_process, x86_linux_new_thread): New functions.
19504 (x86_linux_prepare_to_resume): New function.
19505 (the_low_target): Add entries for insert_point, remove_point,
19506 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19508 * server.c (debug_hw_points): New global.
19509 (monitor_show_help): Document set debug-hw-points.
19510 (handle_query): Process "set debug-hw-points".
19511 * server.h (debug_hw_points): Declare.
19512 (paddress): Declare.
19513 * utils.c (NUMCELLS, CELLSIZE): New macros.
19514 (get_sell, xsnprintf, paddress): New functions.
19515 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19516 remove_point, stopped_by_watchpoint, stopped_data_address.
19517 * win32-i386-low.c: Include i386-low.h.
19518 (debug_reg_state): Replaces dr.
19519 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19520 (i386_dr_low_get_status): New function.
19521 (i386_insert_point, i386_remove_point): New functions.
19522 (i386_stopped_by_watchpoint): New function.
19523 (i386_stopped_data_address): New function.
19524 (i386_initial_stuff): Update.
19525 (get_thread_context,set_thread_context,i386_thread_added): Update.
19526 (the_low_target): Add entries for insert_point,
19527 remove_point, stopped_by_watchpoint, stopped_data_address.
19528 * win32-low.c (win32_insert_watchpoint): New function.
19529 (win32_remove_watchpoint): New function.
19530 (win32_stopped_by_watchpoint): New function.
19531 (win32_stopped_data_address): New function.
19532 (win32_target_ops): Add entries for insert_watchpoint,
19533 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19534 * win32-low.h (win32_target_ops): New members insert_point,
19535 remove_point, stopped_by_watchpoint, stopped_data_address.
19537 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19539 * server.c (process_serial_event): Re-return unsupported, not
19540 error, if the type isn't recognized. Re-allow supporting only
19541 insert or remove packets. Also call require_running for
19542 breakpoints. Add missing break statement to default case. Tidy.
19543 * target.h (struct target_ops): Rename insert_watchpoint to
19544 insert_point, and remove_watchpoint to remove_point.
19546 * linux-low.h (struct linux_target_ops): Likewise.
19547 * linux-low.c (linux_insert_watchpoint): Rename to ...
19548 (linux_insert_point): ... this. Adjust.
19549 (linux_remove_watchpoint): Rename to ...
19550 (linux_remove_point): ... this. Adjust.
19551 (linux_target_ops): Adjust.
19552 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19553 (cris_insert_point): ... this.
19554 (cris_remove_watchpoint): Rename to ...
19555 (cris_remove_point): ... this.
19556 (the_low_target): Adjust.
19558 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19560 * server.c (handle_v_kill): Pass signal_pid to
19561 kill_inferior if multi_process is zero.
19563 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19565 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19566 * target.h (target_ops): Comment for *_watchpoint to make it clear
19567 the functions can get types '0' and '1'.
19569 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19571 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19572 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19573 * regcache.c (get_regcache): Likewise.
19574 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19575 * win32-low.c (child_fetch_inferior_registers): Remove check for
19578 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19579 Pedro Alves <pedro@codesourcery.com>
19581 * target.h (struct target_ops) <supports_multi_process>: New
19583 (target_supports_multi_process): New.
19584 * server.c (handle_query): Even if GDB reports support, only
19585 enable multi-process if the target also supports it. Report
19586 multi-process support only if the target backend supports it.
19587 * linux-low.c (linux_supports_multi_process): New function.
19588 (linux_target_ops): Install it as target_supports_multi_process
19591 2009-05-24 Doug Evans <dje@google.com>
19593 Global renaming of find_thread_pid to find_thread_ptid.
19594 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19595 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19596 All callers updated.
19598 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19599 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19602 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19603 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19604 (linux_resume_one_lwp): Ditto.
19606 2009-05-23 Doug Evans <dje@google.com>
19608 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19609 from struct inferior_list_entry * to struct lwp_info *.
19610 All callers updated.
19612 2009-05-13 Doug Evans <dje@google.com>
19614 * linux-x86-low.c: Don't include assert.h.
19615 (x86_siginfo_fixup): Use fatal, not assert.
19616 (x86_arch_setup): Fix comment.
19618 2009-05-12 Doug Evans <dje@google.com>
19620 Biarch support for i386/amd64 gdbserver.
19621 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19622 Add linux-x86-low.c.
19623 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19624 (linux-x86-low.o): Add.
19625 * linux-x86-64-low.c: Delete.
19626 * linux-i386-low.c: Delete.
19627 * linux-x86-low.c: New file.
19628 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19630 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19632 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19633 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19634 (linux_child_pid_to_exec_file): New function.
19635 (elf_64_header_p, elf_64_file_p): New functions.
19636 (siginfo_fixup): New function.
19637 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19638 give target a chance to convert layout.
19639 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19640 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19642 2009-05-07 Doug Evans <dje@google.com>
19644 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19645 (regsets_store_inferior_registers): Ditto.
19647 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19651 * linux-low.c (must_set_ptrace_flags): Delete.
19652 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19654 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19655 `lwp->must_set_ptrace_flags' instead.
19656 (linux_wait_for_event_1): Set ptrace options here.
19657 (linux_wait_1): ... not here.
19659 2009-04-30 Doug Evans <dje@google.com>
19661 * inferiors.c (started_inferior_callback): New function.
19662 (attached_inferior_callback): New function.
19663 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19664 * server.c (print_started_pid, print_attached_pid): New functions.
19665 (detach_or_kill_for_exit): New function.
19666 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19667 * server.h (have_started_inferiors_p): Declare.
19668 (have_attached_inferiors_p): Declare.
19670 * inferiors.c (remove_process): Fix memory leak, free process.
19671 * linux-low.c (linux_remove_process): New function.
19672 (linux_kill): Call it instead of remove_process.
19673 (linux_detach, linux_wait_1): Ditto.
19675 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19677 * configure.srv: Add x86 Windows CE target.
19679 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19681 * inferiors.c (get_thread_process): Make global.
19682 * server.h (get_thread_process): Add prototype.
19683 * thread-db.c (find_one_thread): Use get_thread_process
19684 instead of current_process.
19685 (thread_db_get_tls_address): Do not crash if called when
19686 thread layer is not yet initialized.
19688 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19690 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19691 * spu-low.c (current_tid): Rename to ...
19692 (current_ptid): ... this.
19693 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19694 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19695 ptid_get_lwp (current_ptid) instead of current_tid.
19696 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19697 instead of current_tid. Use find_process_pid to verify pid
19698 argument is valid. Pass proper argument to remove_process.
19699 (spu_thread_alive): Compare current_ptid instead of current_tid.
19700 (spu_resume): Likewise.
19702 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19704 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19707 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19709 Implement the multiprocess extensions, and add linux multiprocess
19712 * server.h (ULONGEST): Declare.
19713 (struct ptid, ptid_t): New.
19714 (minus_one_ptid, null_ptid): Declare.
19715 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19716 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19717 (struct inferior_list_entry): Change `id' type from unsigned from
19719 (struct sym_cache, struct breakpoint, struct
19720 process_info_private): Forward declare.
19721 (struct process_info): Declare.
19722 (current_process): Declare.
19723 (all_processes): Declare.
19724 (initialize_inferiors): Declare.
19725 (add_thread): Adjust to use ptid_t.
19726 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19727 (add_process, remove_process, find_thread_pid): Declare.
19728 (find_inferior_id): Adjust to use ptid_t.
19729 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19730 (multi_process): Declare.
19731 (push_event): Adjust to use ptid_t.
19732 (read_ptid, write_ptid): Declare.
19733 (prepare_resume_reply): Adjust to use ptid_t.
19734 (clear_symbol_cache): Declare.
19735 * inferiors.c (all_processes): New.
19736 (null_ptid, minus_one_ptid): New.
19737 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19738 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19739 (add_thread): Change unsigned long to ptid. Remove gdb_id
19741 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19742 (gdb_id_to_thread): Rename to ...
19743 (find_thread_pid): ... this. Change unsigned long to ptid.
19744 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19745 (loaded_dll, pull_pid_from_list): Adjust.
19746 (add_process, remove_process, find_process_pid)
19747 (get_thread_process, current_process, initialize_inferiors): New.
19748 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19749 (struct target_waitstatus) <related_pid>: Ditto.
19750 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19751 return type to int.
19752 (struct target_ops) <join>: Add `pid' argument.
19753 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19754 (struct target_ops) <wait>: Add `ptid' field. Change return type
19756 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19757 (mywait): Add `ptid' argument. Change return type to ptid_t.
19758 (target_pid_to_str): Declare.
19759 * target.c (set_desired_inferior): Adjust to use ptids.
19760 (mywait): Add new `ptid' argument. Adjust.
19761 (target_pid_to_str): New.
19762 * mem-break.h (free_all_breakpoints): Declare.
19763 * mem-break.c (breakpoints): Delelete.
19764 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19765 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19766 to use per-process breakpoint list.
19767 (free_all_breakpoints): New.
19768 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19769 (symbol_cache, all_symbols_looked_up): Delete.
19771 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19773 (prepare_resume_reply): Change ptid argument's type from unsigned
19774 long to ptid_t. Adjust. Implement W;process and X;process.
19775 (free_sym_cache, clear_symbol_cache): New.
19776 (look_up_one_symbol): Adjust to per-process symbol cache. *
19777 * server.c (cont_thread, general_thread, step_thread): Change type
19779 (attached): Delete.
19780 (multi_process): New.
19781 (last_ptid): Change type to ptid_t.
19782 (struct vstop_notif) <ptid>: Change type to ptid_t.
19783 (queue_stop_reply, push_event): Change `ptid' argument's type to
19785 (discard_queued_stop_replies): Add `pid' argument.
19786 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19787 changes. Don't reference the `attached' global.
19788 (attach_inferior): Adjust to mywait interface changes.
19789 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19790 features. Handle and report "multiprocess+". Handle
19792 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19794 (handle_v_kill): New.
19795 (handle_v_stopped): Adjust to use target_pid_to_str.
19796 (handle_v_requests): Allow multiple attaches and runs when
19797 multiprocess extensions are in effect. Handle "vKill".
19798 (myresume): Adjust to use ptids.
19799 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19800 (handle_status): Adjust to discard_queued_stop_replies interface
19802 (first_thread_of, kill_inferior_callback)
19803 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19804 (main): Call initialize_inferiors. Adjust to use ptids, killing
19805 and detaching from all inferiors. Handle multiprocess packet
19807 * linux-low.h: Include gdb_proc_service.h.
19808 (struct process_info_private): New.
19809 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19810 <lwpid_of>: Use ptid_get_lwp.
19811 (get_lwp_thread): Adjust.
19812 (struct lwp_info): Add `dead' member.
19813 (find_lwp_pid): Declare.
19814 * linux-low.c (thread_db_active): Delete.
19815 (new_inferior): Adjust comment.
19816 (inferior_pid): Delete.
19817 (linux_add_process): New.
19818 (handle_extended_wait): Adjust.
19819 (add_lwp): Change unsigned long to ptid.
19820 (linux_create_inferior): Add process to processes table. Adjust
19821 to use ptids. Don't set new_inferior here.
19822 (linux_attach_lwp): Rename to ...
19823 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19824 it. Adjust to use ptids.
19825 (linux_attach_lwp): New.
19826 (linux_attach): Add process to processes table. Don't set
19828 (struct counter): New.
19829 (second_thread_of_pid_p, last_thread_of_process_p): New.
19830 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19831 multiple processes.
19832 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19833 processes. Remove process from process table.
19834 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19835 to multiple processes.
19836 (any_thread_of): New.
19837 (linux_detach): Add `pid' argument, and handle it. Remove process
19838 from processes table.
19839 (linux_join): Add `pid' argument. Handle it.
19840 (linux_thread_alive): Change unsighed long argument to ptid_t.
19841 Consider dead lwps as not being alive.
19842 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19843 threads we're not interested in.
19844 (same_lwp, find_lwp_pid): New.
19845 (linux_wait_for_lwp): Change `pid' argument's type from int to
19847 (linux_wait_for_event): Rename to ...
19848 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19849 from int to ptid_t. Adjust.
19850 (linux_wait_for_event): New.
19851 (linux_wait_1): Add `ptid' argument. Change return type to
19852 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19853 that exit from the process table.
19854 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19856 (mark_lwp_dead): New.
19857 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19858 stopping all threads, mark its main lwp as dead.
19859 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19861 (fetch_register, usr_store_inferior_registers)
19862 (regsets_fetch_inferior_registers)
19863 (regsets_store_inferior_registers, linux_read_memory)
19864 (linux_write_memory): Inline `inferior_pid'.
19865 (linux_look_up_symbols): Adjust to use per-process
19866 `thread_db_active'.
19867 (linux_request_interrupt): Adjust to use ptids.
19868 (linux_read_auxv): Inline `inferior_pid'.
19869 (initialize_low): Don't reference thread_db_active.
19870 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19871 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19872 (ps_getpid): Return the pid of the current inferior.
19873 * thread-db.c (proc_handle, thread_agent): Delete.
19874 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19876 (find_one_thread): Change argument type to ptid_t. Adjust to
19878 (maybe_attach_thread): Adjust to per-process data and ptids.
19879 (thread_db_find_new_threads): Ditto.
19880 (thread_db_init): Ditto.
19881 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19882 processes table. Adjust to use ptids.
19883 (spu_kill, spu_detach): Adjust interface. Remove process from
19885 (spu_join, spu_thread_alive): Adjust interface.
19886 (spu_wait): Adjust interface. Remove process from processes
19887 table. Adjust to use ptids.
19888 * win32-low.c (current_inferior_tid): Delete.
19889 (current_inferior_ptid): New.
19890 (debug_event_ptid): New.
19891 (thread_rec): Take a ptid. Adjust.
19892 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19893 (child_delete_thread): Ditto.
19894 (do_initial_child_stuff): Add `attached' argument. Add process to
19896 (child_fetch_inferior_registers, child_store_inferior_registers):
19898 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19899 (win32_attach): Pass 1 to do_initial_child_stuff.
19900 (win32_kill): Adjust interface. Remove process from processes
19902 (win32_detach): Ditto.
19903 (win32_join): Adjust interface.
19904 (win32_thread_alive): Take a ptid.
19905 (win32_resume): Adjust to use ptids.
19906 (get_child_debug_event): Ditto.
19907 (win32_wait): Adjust interface. Remove exiting process from
19910 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19912 Non-stop mode support.
19914 * server.h (non_stop): Declare.
19915 (gdb_client_data, handler_func): Declare.
19916 (delete_file_handler, add_file_handler, start_event_loop):
19918 (handle_serial_event, handle_target_event, push_event)
19919 (putpkt_notif): Declare.
19920 * target.h (enum resume_kind): New.
19921 (struct thread_resume): Replace `step' field by `kind' field.
19922 (TARGET_WNOHANG): Define.
19923 (struct target_ops) <wait>: Add `options' argument.
19924 <supports_non_stop, async, start_non_stop>: New fields.
19925 (target_supports_non_stop, target_async): New.
19926 (start_non_stop): Declare.
19927 (mywait): Add `options' argument.
19928 * target.c (mywait): Add `options' argument. Print child exit
19929 notifications here.
19930 (start_non_stop): New.
19931 * server.c (non_stop, own_buf, mem_buf): New globals.
19932 (struct vstop_notif): New.
19933 (notif_queue): New global.
19934 (queue_stop_reply, push_event, discard_queued_stop_replies)
19935 (send_next_stop_reply): New.
19936 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19938 (attach_inferior): In non-stop mode, don't wait for the target
19940 (handle_general_set): Handle QNonStop.
19941 (handle_query): When handling qC, return the current general
19942 thread, instead of the first thread of the list.
19943 (handle_query): If the backend supports non-stop mode, include
19944 QNonStop+ in the qSupported query response.
19945 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19947 (handle_v_attach, handle_v_run): Handle non-stop mode.
19948 (handle_v_stopped): New.
19949 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19950 (myresume): Adjust to use resume_kind. Handle non-stop.
19951 (queue_stop_reply_callback): New.
19952 (handle_status): Handle non-stop mode.
19953 (main): Clear non_stop flag on reconnection. Use the event-loop.
19954 Refactor serial protocol handling from here ...
19955 (process_serial_event): ... to this new function. When GDB
19956 selects any thread, select one here. In non-stop mode, wait until
19957 GDB acks all pending events before exiting.
19958 (handle_serial_event, handle_target_event): New.
19959 * remote-utils.c (remote_open): Install remote_desc in the event
19961 (remote_close): Remove remote_desc from the event loop.
19962 (putpkt_binary): Rename to...
19963 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19964 (putpkt_binary): New as wrapper around putpkt_binary_1.
19965 (putpkt_notif): New.
19966 (prepare_resume_reply): In non-stop mode, don't change the
19968 * event-loop.c: New.
19969 * Makefile.in (OBJ): Add event-loop.o.
19970 (event-loop.o): New rule.
19972 * linux-low.h (pid_of): Moved here.
19974 (get_lwp_thread): Use lwpid_of.
19975 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19976 * linux-low.c (pid_of): Delete.
19977 (inferior_pid): Use lwpid_of.
19978 (linux_event_pipe): New.
19979 (target_is_async_p): New.
19981 (handle_extended_wait): Use lwpid_of.
19982 (add_lwp): Don't set lwpid field.
19983 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19984 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19985 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19986 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19987 first. Adjust to linux_wait_for_event interface changes. Use
19989 (linux_detach): Don't delete the main lwp here.
19990 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19991 (status_pending_p): Don't consider explicitly suspended lwps.
19992 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19993 pointer. Add OPTIONS argument. Change return type to int. Use
19994 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19995 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19996 pointer. Add status pointer argument. Return a pid instead of a
19997 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19998 changes. In non-stop mode, don't switch to a random thread.
19999 (linux_wait): Rename to...
20000 (linux_wait_1): ... this. Add target_options argument, and handle
20001 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
20002 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
20003 clean exit and signal exit code. Don't stop all threads in
20004 non-stop mode. In all-stop mode, only stop all threads when
20005 reporting a stop to GDB. Handle explicit thread stop requests.
20006 (async_file_flush, async_file_mark): New.
20008 (send_sigstop): Use lwpid_of.
20009 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
20010 interface changes. In non-stop mode, don't switch to a random
20012 (linux_resume_one_lwp): Use lwpid_of.
20013 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
20014 (linux_resume_one_thread): ... this. Handle resume_stop. In
20015 non-stop mode, don't look for pending flag in all threads.
20016 (resume_status_pending_p): Don't consider explicitly suspended
20018 (my_waitpid): Reimplement. Emulate __WALL.
20019 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20021 (sigchld_handler, linux_supports_non_stop, linux_async)
20022 (linux_start_non_stop): New.
20023 (linux_target_ops): Register linux_supports_non_stop, linux_async
20024 and linux_start_non_stop.
20025 (initialize_low): Install SIGCHLD handler.
20026 * thread-db.c (thread_db_create_event, find_one_thread)
20027 (thread_db_get_tls_address): Use lwpid_of.
20028 * win32-low.c (win32_detach): Adjust to use resume_kind.
20029 (win32_wait): Add `options' argument.
20030 * spu-low.c (spu_resume): Adjust to use resume_kind.
20031 (spu_wait): Add `options' argument.
20033 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20035 Decouple target code from remote protocol.
20037 * target.h (enum target_waitkind): New.
20038 (struct target_waitstatus): New.
20039 (struct target_ops) <wait>: Return an unsigned long. Take a
20040 target_waitstatus pointer instead of a char pointer.
20041 (mywait): Likewise.
20042 * target.c (mywait): Change prototype to return an unsigned long.
20043 Take a target_waitstatus pointer instead of a char pointer. Adjust.
20044 * server.h (thread_from_wait, old_thread_from_wait): Delete
20046 (prepare_resume_reply): Change prototype to take a
20048 * server.c (thread_from_wait, old_thread_from_wait): Delete.
20049 (last_status, last_ptid): New.
20050 (start_inferior): Remove "statusptr" argument. Adjust. Return a
20051 pid instead of a signal.
20052 (attach_inferior): Remove "status" and "signal" parameters.
20054 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
20056 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
20057 (handle_v_requests, myresume): Remove "status" and "signal"
20058 parameters. Adjust.
20059 (handle_status): New.
20060 (main): Delete local `status'. Adjust.
20061 * remote-utils.c: Include target.h.
20062 (prepare_resume_reply): Change prototype to take a
20063 target_waitstatus. Adjust.
20065 * linux-low.c (linux_wait): Adjust to new target_ops->wait
20067 * spu-low.c (spu_wait): Adjust.
20068 * win32-low.c (enum target_waitkind, struct target_waitstatus):
20070 (win32_wait): Adjust.
20072 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20074 * target.h (struct thread_resume): Delete leave_stopped member.
20075 (struct target_ops): Add a `n' argument to the `resume' callback.
20076 * server.c (start_inferior): Adjust.
20077 (handle_v_cont, myresume): Adjust.
20078 * linux-low.c (check_removed_breakpoint): Adjust to resume
20079 interface change, and to removed leave_stopped field.
20080 (resume_ptr): Delete.
20081 (struct thread_resume_array): New.
20082 (linux_set_resume_request): Add new `arg' parameter. Adjust to
20083 resume interface change.
20084 (linux_continue_one_thread, linux_queue_one_thread)
20085 (resume_status_pending_p): Check if the resume field is NULL
20086 instead of checking the leave_stopped member.
20087 (linux_resume): Adjust to the target resume interface change.
20088 * spu-low.c (spu_resume): Adjust to the target resume interface
20090 * win32-low.c (win32_detach, win32_resume): Ditto.
20092 2009-04-01 Pedro Alves <pedro@codesourcery.com>
20094 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
20096 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
20098 (linux_continue_one_thread): Only preserve the stepping flag if
20099 there's a pending breakpoint.
20101 2009-03-31 Pedro Alves <pedro@codesourcery.com>
20103 * server.c (main): After the inferior having exited, call
20104 remote_close before exiting gdbserver.
20106 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
20108 Fix size of FPSCR in Power 7 processors.
20109 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
20110 (PPC_FEATURE_HAS_DFP): New #define.
20111 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
20114 2009-03-23 Pedro Alves <pedro@codesourcery.com>
20116 * server.c (handle_query) Whitespace and formatting.
20118 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20120 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
20121 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
20122 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
20123 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
20124 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
20125 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
20126 Makefile.in, configure.ac: Fix whitespace throughout.
20127 * configure: Regenerate.
20129 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20131 * inferiors.c (find_inferior): Make it safe for the callback
20132 function to delete the currently iterated inferior.
20134 2009-03-22 Pedro Alves <pedro@codesourcery.com>
20136 * Makefile.in (linuw_low_h): Move higher.
20137 (thread-db.o): Depend on $(linux_low_h).
20139 2009-03-17 Pedro Alves <pedro@codesourcery.com>
20141 Rename "process" to "lwp" throughout.
20143 * linux-low.c (all_processes): Rename to...
20144 (all_lwps): ... this.
20145 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
20146 (add_process): Rename to ...
20147 (add_lwp): ... this. Adjust.
20148 (linux_create_inferior): Adjust.
20149 (linux_attach_lwp): Adjust.
20150 (linux_attach): Adjust.
20151 (linux_kill_one_process): Rename to ...
20152 (linux_kill_one_lwp): ... this. Adjust.
20153 (linux_kill): Adjust.
20154 (linux_detach_one_process): Rename to ...
20155 (linux_detach_one_lwp): ... this. Adjust.
20156 (linux_detach): Adjust.
20157 (check_removed_breakpoint): Adjust.
20158 (status_pending_p): Adjust.
20159 (linux_wait_for_process): Rename to ...
20160 (linux_wait_for_lwp): ... this. Adjust.
20161 (linux_wait_for_event): Adjust.
20162 (send_sigstop): Adjust.
20163 (wait_for_sigstop): Adjust.
20164 (stop_all_processes): Rename to ...
20165 (stop_all_lwps): ... this.
20166 (linux_resume_one_process): Rename to ...
20167 (linux_resume_one_lwp): ... this. Adjust.
20168 (linux_set_resume_request, linux_continue_one_thread)
20169 (linux_queue_one_thread, resume_status_pending_p)
20170 (usr_store_inferior_registers, regsets_store_inferior_registers)
20171 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20173 * linux-low.h (get_process): Rename to ...
20174 (get_lwp): ... this. Adjust.
20175 (get_thread_process): Rename to ...
20176 (get_thread_lwp): ... this. Adjust.
20177 (get_process_thread): Rename to ...
20178 (get_lwp_thread): ... this. Adjust.
20179 (struct process_info): Rename to ...
20180 (struct lwp_info): ... this.
20181 (all_processes): Rename to ...
20182 (all_lwps): ... this.
20183 * proc-service.c (ps_lgetregs): Adjust.
20184 * thread-db.c (thread_db_create_event, find_one_thread)
20185 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20187 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20189 * server.c (handle_query): Handle "qAttached".
20191 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20193 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20194 GPLv3, update license URL.
20196 2009-03-01 Doug Evans <dje@google.com>
20198 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20199 (server_h): Add gdb_signals.h.
20200 (signals.o): Update.
20201 * server.h (target_signal_from_host,target_signal_to_host_p)
20202 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20204 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20206 * remote-utils.c (getpkt): Also generate remote-debug
20207 information if noack_mode is set.
20209 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20211 * server.c (handle_query): Report qXfer:siginfo:read and
20212 qXfer:siginfo:write as supported and handle them.
20213 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20214 * linux-low.c (linux_xfer_siginfo): New.
20215 (linux_target_ops): Set it.
20217 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20219 * server.c (gdbserver_usage): Mention --remote-debug.
20220 (main): Accept '--remote-debug' switch.
20222 2009-01-18 Doug Evans <dje@google.com>
20224 * regcache.c (new_register_cache): No need to check result of xcalloc.
20225 * server.c (handle_search_memory): Back out calls to xmalloc,
20226 result is checked and error is returned to user upon failure.
20227 (handle_query): Ditto. Add more checks for result of malloc.
20228 (handle_v_cont): Check result of malloc, report error back to
20230 (handle_v_run): Ditto. Call freeargv.
20231 * server.h (freeargv): Declare.
20232 * utils.c (freeargv): New fn.
20234 2009-01-15 Doug Evans <dje@google.com>
20236 * gdbreplay.c (perror_with_name): Make arg const char *.
20237 * server.h (target_signal_to_name): Make return type const char *.
20238 * thread-db.c (thread_db_err_str): Make return type const char *.
20239 * utils.c (perror_with_name): Make arg const char *.
20241 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20243 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20244 when handling a EXIT_PROCESS_DEBUG_EVENT.
20246 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20248 * gdbreplay.c (gdbreplay_version): Update copyright year.
20249 * server.c (gdbserver_version): Likewise.
20251 2009-01-05 Doug Evans <dje@google.com>
20253 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20254 (handle_extended_wait): Improve comment.
20256 2008-12-13 Doug Evans <dje@google.com>
20258 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20259 * server.h (ATTR_MALLOC): New macro.
20260 (xmalloc,xcalloc,xstrdup): Declare.
20261 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20262 * inferiors.c: Ditto.
20263 * linux-low.c: Ditto.
20264 * mem-break.c: Ditto.
20265 * regcache.c: Ditto.
20266 * remote-utils.c: Ditto.
20269 * win32-low.c: Ditto.
20271 2008-12-12 Doug Evans <dje@google.com>
20273 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20274 in debugging printf.
20276 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20278 2008-12-09 Doug Evans <dje@google.com>
20280 * linux-low.h (struct process_info): Delete member tid, unused.
20281 * thread-db.c (find_one_thread): Update.
20282 (maybe_attach_thread): Update.
20284 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20286 * target.h (struct target_ops): Add qxfer_osdata member.
20287 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20289 (linux_qxfer_osdata): New functions.
20290 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20292 * server.c (handle_query): Handle "qXfer:osdata:read:".
20293 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20294 (buffer_xml_printf): New functions.
20295 * server.h (struct buffer): New.
20296 (buffer_grow_str, buffer_grow_str0): New macros.
20297 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20298 (buffer_xml_printf): Declare.
20300 2008-11-24 Doug Evans <dje@google.com>
20302 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20304 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20306 * server.c (handle_v_run): Always use the supplied argument list.
20308 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20310 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20311 (xtensa_regmap_table): Add entry for scompare1.
20313 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20315 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20316 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20317 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20318 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20319 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20320 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20321 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20322 XML target descriptions.
20323 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20324 when inferior is running on an ISA 2.05 or later processor. Add
20325 special case to return offset for full 64-bit slot of FPSCR when
20328 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20330 * Makefile.in (SFILES, clean): Added sparc64 files.
20331 (reg-sparc64.o, reg-sparc64.c): New.
20332 * configure.srv (sparc*-*-linux*): New configuration.
20333 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20334 syscall arguments for SPARC.
20335 (regsets_store_inferior_registers): Likewise.
20336 * linux-sparc-low.c: New file.
20338 2008-10-21 Doug Evans <dje@google.com>
20340 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20341 (READLINE_DIR,READLINE_DEP): Delete.
20342 (INTERNAL_CFLAGS): Update.
20343 (LINTFLAGS): Update.
20345 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20347 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20348 whole argv from the last run, not just argv[0].
20350 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20352 * regcache.c (new_register_cache): Return NULL if the register
20353 cache size isn't known yet.
20354 (free_register_cache): Avoid dereferencing a NULL regcache.
20356 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20358 * configure.srv: Merge MIPS and MIPS64.
20360 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20362 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20364 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20366 * Makefile.in: Add required vsx dependencies.
20368 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20369 Declare init_registers_powerpc_vsx32l.
20370 Declare init_registers_powerpc_vsx64l.
20371 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20372 (ppc_arch_setup): Check for VSX in hwcap.
20373 (ppc_fill_vsxregset): New function.
20374 (ppc_store_vsxregset): New function.
20375 Add new VSX entry in regset_info target_regsets.
20377 * configure.srv: Add new VSX dependencies.
20379 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20381 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20382 (remote_open): Set or clear transport_is_reliable.
20383 (putpkt_binary): Don't expect acks in noack mode.
20384 (getpkt): Don't send ack/nac in noack mode.
20385 * server.c (handle_general_set): Handle QStartNoAckMode.
20386 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20388 (main): Reset noack_mode on every connection.
20389 * server.h (noack_mode): Declare.
20391 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20393 * Makefile.in (GDBREPLAY_OBS): New variable.
20394 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20396 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20397 Daniel Jacobowitz <dan@codesourcery.com>
20399 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20400 (usr_store_inferior_registers): Likewise.
20401 (regsets_store_inferior_registers): Likewise.
20403 2008-07-31 Rolf Jansen <rj@surtec.com>
20404 Pedro Alves <pedro@codesourcery.com>
20406 * configure.ac: Check for memmem declaration.
20407 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20408 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20409 (disable_packet_qfThreadInfo): Unconditionally compile.
20410 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20411 * configure, config.in: Regenerate.
20413 2008-07-28 Doug Kwan <dougkwan@google.com>
20415 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20416 (linux_write_memory): Remove declaration of errno.
20418 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20420 * linux-low.c (handle_extended_wait): Do not use "status"
20421 variable uninitialized.
20423 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20425 * server.c (handle_v_attach): Inhibit reporting dll changes.
20427 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20429 * remote-utils.c (prepare_resume_reply): If requested, don't
20430 output "thread:TID" in the T stop reply.
20432 * server.c (disable_packet_vCont, disable_packet_Tthread)
20433 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20434 (handle_query): If requested, disable support for qC, qfThreadInfo
20436 (handle_v_requests): If requested, disable support for vCont.
20437 (gdbserver_show_disableable): New.
20438 (main): Handle --disable-packet and --disable-packet=LIST.
20440 * server.h (disable_packet_vCont, disable_packet_Tthread)
20441 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20443 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20445 * server.c (gdbserver_usage): Mention --version.
20447 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20449 * Makefile.in (gdbreplay.o): New rule.
20451 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20453 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20454 message, not gdbserver.
20456 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20457 Nathan Sidwell <nathan@codesourcery.com>
20458 Joseph Myers <joseph@codesourcery.com>
20460 * acinclude.m4: Include ../../config/acx.m4.
20461 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20462 * configure, config.in: Regenerate.
20463 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20464 * server.c (gdbserver_version): Print PKGVERSION.
20465 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20466 (main): Adjust gdbserver_usage calls.
20467 * gdbreplay.c (version, host_name): Add declarations.
20468 (gdbreplay_version, gdbreplay_usage): New.
20469 (main): Accept --version and --help options.
20471 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20473 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20474 (arm_breakpoint_at): Handle Thumb.
20475 (the_low_target): Add comment.
20477 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20479 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20481 2008-05-09 Doug Evans <dje@google.com>
20483 * server.h (decode_search_memory_packet): Declare.
20484 * remote-utils.c (decode_search_memory_packet): New fn.
20485 * server.c (handle_search_memory_1): New fn.
20486 (handle_search_memory): New fn.
20487 (handle_query): Process qSearch:memory packets.
20489 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20491 * regcache.c (registers_length): Remove.
20492 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20493 full register packet.
20494 * regcache.h (registers_length): Remove prototype.
20495 * server.h (PBUFSIZ): Define to 16384.
20497 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20499 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20500 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20501 powerpc-64l.o, and powerpc-altivec64l.o.
20502 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20503 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20504 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20505 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20506 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20509 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20510 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20511 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20512 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20513 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20514 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20515 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20516 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20517 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20518 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20521 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20522 (init_registers_powerpc_32l): ... this new prototype.
20523 (init_registers_powerpc_32): Remove, replace by ...
20524 (init_registers_powerpc_altivec32l): ... this new prototype.
20525 (init_registers_powerpc_e500): Remove, replace by ...
20526 (init_registers_powerpc_e500l): ... this new prototype.
20527 (init_registers_ppc64): Remove, replace by ...
20528 (init_registers_powerpc_64l): ... this new prototype.
20529 (init_registers_powerpc_64): Remove, replace by ...
20530 (init_registers_powerpc_altivec64l): ... this new prototype.
20531 (ppc_num_regs): Set to 73.
20532 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20533 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20534 (ppc_cannot_store_register): Handle orig_r3 and trap.
20535 (ppc_arch_setup): Update init_registers_... calls.
20536 (ppc_fill_gregset): Handle orig_r3 and trap.
20538 * inferiors.c (clear_inferiors): Reset current_inferior.
20540 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20542 * acinclude.m4: Add override.m4.
20543 * configure: Regenerate.
20545 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20547 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20548 initial call to init_register_ppc64.
20550 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20552 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20553 single powerpc*-*-linux* case.
20554 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20556 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20558 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20559 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20561 * linux-ppc-low.c: Include <elf.h>.
20562 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20563 (ppc_hwcap): New global variable.
20564 (ppc_regmap): Remove __SPE__ #ifdef sections.
20565 (ppc_regmap_e500): New global variable.
20566 (ppc_cannot_store_register): Update __SPE__ special case.
20567 (ppc_get_hwcap): New function.
20568 (ppc_arch_setup): Use it to determine whether inferior supports
20569 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20570 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20571 Do not access registers if target does not support AltiVec.
20572 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20573 Do not access registers if target does not support SPE.
20574 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20576 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20578 * linux-low.c (disabled_regsets, num_regsets): New.
20579 (use_regsets_p): Delete.
20580 (linux_wait_for_process): Clear disabled_regsets.
20581 (regsets_fetch_inferior_registers): Check and set it.
20582 (regsets_store_inferior_registers): Likewise.
20583 (linux_fetch_registers, linux_store_registers): Do not use
20585 (initialize_low): Allocate disabled_regsets.
20587 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20589 * Makefile.in (LIBOBJS): New.
20590 (OBS): Use LIBOBJS.
20591 (memmem.o): New rule.
20592 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20593 * configure: Regenerated.
20595 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20597 * server.c (handle_query): Never return "unsupported" for
20598 qXfer:features:read queries.
20600 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20602 * server.c (get_features_xml): Fix inverted condition.
20603 (handle_query): Always support qXfer:feature:read.
20605 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20607 * server.c (wrapper_argv): New.
20608 (start_inferior): Handle wrapper_argv. If set, expect an extra
20610 (gdbserver_usage): Document --wrapper.
20611 (main): Parse --wrapper.
20613 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20615 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20616 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20617 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20618 (ppc_set_pc): Likewise.
20619 (ppc_arch_setup): New function.
20620 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20621 of collect_register.
20622 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20624 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20626 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20627 instead of linux-ppc64-low.o.
20628 * linux-ppc64-low.c: Remove file.
20629 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20630 (linux-ppc64-low.o): Remove rule.
20632 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20633 (init_registers_powerpc_64): Likewise.
20634 (ppc_regmap): Conditionally define depending on __powerpc64__.
20635 (ppc_cannot_store_register): Do not special-case "fpscr" when
20636 compiled on __powerpc64__.
20637 (ppc_collect_ptrace_register): New function.
20638 (ppc_supply_ptrace_register): New function.
20639 (ppc_breakpoint): Change type to "unsigned int".
20640 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20641 (the_low_target): Conditionally provide initializers for the
20642 arch_setup member depending on __powerpc64__. Install
20643 collect_ptrace_register and supply_ptrace_register members.
20645 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20647 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20648 * server.c (gdbserver_xmltarget): Define.
20649 (get_features_xml): Use it to replace "target.xml" and arch_string.
20651 * configure.srv: Remove srv_xmltarget. Add XML files that were
20652 mentioned there to srv_xmlfiles instead. Remove conditional tests
20653 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20654 srv_xmlfiles and srv_regobj to include all possible choices.
20655 * configure.ac (srv_xmltarget): Remove.
20656 (srv_xmlfiles): Do not add "target.xml".
20657 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20658 checks for supplementary target information.
20659 * configure: Regenerate.
20660 * Makefile.in (XML_TARGET): Remove.
20661 (target.xml): Remove rule.
20662 (clean): Do not clean up target.xml.
20663 (.PRECIOUS): Do not mention target.xml.
20665 * target.h (struct target_ops): Remove arch_string member.
20666 * linux-low.c (linux_arch_string): Remove.
20667 (linux_target_ops): Remove arch_string initializer.
20668 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20669 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20670 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20671 * spu-low.c (spu_arch_string): Remove.
20672 (spu_target_ops): Remove arch_string initializer.
20673 * win32-low.c (win32_arch_string): Remove.
20674 (win32_target_ops): Remove arch_string initializer.
20675 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20676 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20677 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20679 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20681 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20682 by collect_ptrace_register and supply_ptrace_register hooks.
20683 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20684 instead of checking for the_low_target.left_pad_xfer.
20685 (usr_store_inferior_registers): Use collect_ptrace_register callback
20686 instead of checking for the_low_target.left_pad_xfer.
20688 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20689 (s390_supply_ptrace_register): Likewise.
20690 (s390_fill_gregset): Call s390_collect_ptrace_register.
20691 (the_low_target): Update.
20693 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20694 (ppc_supply_ptrace_register): Likewise.
20695 (the_low_target): Update.
20697 * linux-i386-low.c (the_low_target): Update.
20698 * linux-x86-64-low.c (the_low_target): Update.
20700 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20702 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20703 reg-s390.o and reg-s390x.o.
20705 * linux-low.c (new_inferior): New global variable.
20706 (linux_create_inferior, linux_attach): Set it.
20707 (linux_wait_for_process): Call the_low_target.arch_setup after the
20708 target has stopped for the first time.
20709 (initialize_low): Do not call the_low_target.arch_setup.
20711 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20712 (s390_set_pc): Likewise.
20713 (s390_arch_setup): New function.
20714 (the_low_target): Use s390_arch_setup as arch_setup routine.
20716 * regcache.c (realloc_register_cache): New function.
20717 (set_register_cache): Call it for each existing regcache.
20719 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20721 * server.h (init_registers): Remove prototype.
20723 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20724 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20725 instead of init_registers ().
20726 * linux-arm-low.c (init_registers_arm): Add prototype.
20727 (init_registers_arm_with_iwmmxt): Likewise.
20728 (the_low_target): Add initializer for arch_setup field.
20729 * linux-cris-low.c (init_registers_cris): Add prototype.
20730 (the_low_target): Add initializer for arch_setup field.
20731 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20732 (the_low_target): Add initializer for arch_setup field.
20733 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20734 (the_low_target): Add initializer for arch_setup field.
20735 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20736 (the_low_target): Add initializer for arch_setup field.
20737 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20738 (the_low_target): Add initializer for arch_setup field.
20739 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20740 (the_low_target): Add initializer for arch_setup field.
20741 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20742 (init_registers_mips64_linux): Likewise.
20743 (the_low_target): Add initializer for arch_setup field.
20744 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20745 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20746 (the_low_target): Add initializer for arch_setup field.
20747 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20748 (init_registers_powerpc_64): Likewise.
20749 (the_low_target): Add initializer for arch_setup field.
20750 * linux-s390-low.c (init_registers_s390): Add prototype.
20751 (init_registers_s390x): Likewise.
20752 (the_low_target): Add initializer for arch_setup field.
20753 * linux-sh-low.c (init_registers_sh): Add prototype.
20754 (the_low_target): Add initializer for arch_setup field.
20755 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20756 (the_low_target): Add initializer for arch_setup field.
20757 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20758 (the_low_target): Add initializer for arch_setup field.
20760 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20761 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20762 instead of init_registers ().
20763 * win32-arm-low.c (init_registers_arm): Add prototype.
20764 (the_low_target): Add initializer for arch_setup field.
20765 * win32-i386-low.c (init_registers_i386): Add prototype.
20766 (the_low_target): Add initializer for arch_setup field.
20768 * spu-low.c (init_registers_spu): Add prototype.
20769 (initialize_low): Call initialie_registers_spu () instead of
20770 initialize_registers ().
20772 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20774 * server.c (handle_v_requests): When handling the vRun and vAttach
20775 packets, if already debugging a process, don't kill it. Return an
20778 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20780 * server.c (handle_query): Correct length check.
20782 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20784 * win32-low.c (do_initial_child_stuff): Add process handle
20785 parameter. Set current_process_handle and current_process_id from the
20786 parameters. Clear globals.
20787 (win32_create_inferior): Don't set current_process_handle and
20788 current_process_id here. Instead pass them on the call to
20789 do_initial_child_stuff.
20790 (win32_attach): Likewise.
20791 (win32_clear_inferiors): New.
20792 (win32_kill): Don't close the current process handle or the
20793 current thread handle here. Instead call win32_clear_inferiors.
20794 (win32_detach): Don't open a new handle to the process. Call
20795 win32_clear_inferiors.
20796 (win32_join): Don't rely on current_process_handle; open a new
20797 handle using the process id.
20798 (win32_wait): Call win32_clear_inferiors when the inferior process
20801 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20803 * server.c (monitor_show_help): Add "exit".
20805 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20807 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20808 (clean): Add reg-xtensa.c.
20809 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20810 * configure.srv (xtensa*-*-linux*) New target.
20811 * linux-xtensa-low.c: New.
20812 * xtensa-xtregs.c: New.
20814 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20816 * hostio.c: Don't include errno.h.
20817 (errno_to_fileio_errno): Move to hostio-errno.
20818 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20819 error number outputting to the target->hostio_last_error callback.
20820 (hostio_packet_error): Use FILEIO_EINVAL directly.
20821 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20822 calls to hostio_error.
20823 * hostio-errno.c: New.
20824 * server.h (hostio_last_error_from_errno): Declare.
20825 * target.h (target_ops): Add hostio_last_error member.
20826 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20827 as hostio_last_error handler.
20828 * spu-low.c (spu_target_ops): Likewise.
20829 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20830 (wince_hostio_last_error): New functions.
20831 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20832 as hostio_last_error handler.
20833 (win32_target_ops) [!_WIN32_WCE]: Register
20834 hostio_last_error_from_errno as hostio_last_error handler.
20835 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20836 (hostio-errno.o): New rule.
20837 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20838 * configure.srv (srv_hostio_err_objs): New variable. Default to
20840 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20841 * configure: Regenerate.
20843 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20845 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20846 (linux_kill, linux_detach): Clean up the process list.
20847 * remote-utils.c (remote_open): Improve port number parsing.
20848 (putpkt_binary, input_interrupt): Only send interrupts if the target
20850 * server.c (extended_protocol): Make static.
20851 (attached): Define earlier.
20852 (exit_requested, response_needed, program_argv): New variables.
20853 (target_running): New.
20854 (start_inferior): Clear attached here.
20855 (attach_inferior): Set attached here.
20856 (require_running): Define.
20857 (handle_query): Use require_running and target_running. Implement
20859 (handle_v_attach, handle_v_run): New.
20860 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20861 (gdbserver_usage): Update.
20862 (main): Redo argument parsing. Handle --debug and --multi. Handle
20863 --attach along with other options or after the port. Save
20864 program_argv. Support no initial program. Resynchronize
20865 communication with GDB after an error. Handle "monitor exit".
20866 Use require_running and target_running. Always allow the extended
20867 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20868 restart in extended mode.
20869 * README: Refer to the GDB manual. Update --attach usage.
20871 2007-12-20 Andreas Schwab <schwab@suse.de>
20873 * linux-low.c (STACK_SIZE): Define.
20874 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20875 (linux_test_for_tracefork): Likewise.
20877 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20879 * linux-low.c (linux_wait_for_event): Update messages. Do not
20880 reinsert auto-delete breakpoints.
20881 * mem-break.c (struct breakpoint): Change return type of handler to
20883 (set_breakpoint_at): Update handler type.
20884 (reinsert_breakpoint_handler): Return 1 instead of calling
20886 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20888 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20889 * mem-break.h (set_breakpoint_at): Update handler type.
20890 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20891 * win32-low.c (auto_delete_breakpoint): New.
20892 (get_child_debug_event): Use it.
20894 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20896 * configure.ac: Check for pread and pwrite.
20897 * hostio.c (handle_pread): Fall back to lseek and read.
20898 (handle_pwrite): Fall back to lseek and write.
20899 * config.in, configure: Regenerated.
20901 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20903 * server.c (myresume): Add own_buf argument.
20904 (main): Update calls.
20906 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20908 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20909 * remote-utils.c (remote_open): Do not call disable_async_io.
20910 (block_async_io): Delete.
20911 (unblock_async_io): Make static.
20912 (initialize_async_io): New.
20913 * server.c (handle_v_cont): Handle async I/O here.
20914 (myresume): Likewise. Move other common resume tasks here...
20915 (main): ... from here. Call initialize_async_io. Disable async
20916 I/O before the main loop.
20917 * server.h (initialize_async_io): Declare.
20918 (block_async_io, unblock_async_io): Delete prototypes.
20919 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20921 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20923 * remote-utils.c (readchar): Allow binary data in received messages.
20925 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20927 * win32-low.c (attaching): New global.
20928 (win32_create_inferior): Clear the `attaching' global.
20929 (win32_attach): Set the `attaching' global.
20930 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20931 attaching. Only set a breakpoint at the entry point if not
20934 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20936 * server.c (main): Don't report dll events on the initial
20937 connection on attaches.
20939 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20941 * server.c (main): Relax numerical bases supported for the pid of
20942 the --attach command line argument.
20944 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20946 * win32-low.c (win32_attach): Call OpenProcess before
20947 DebugActiveProcess, not after. Add last error output to error
20950 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20952 * win32-low.c (win32_get_thread_context)
20953 (win32_set_thread_context): New functions.
20954 (thread_rec): Use win32_get_thread_context.
20955 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20956 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20959 2007-12-03 Leo Zayas
20960 Pedro Alves <pedro_alves@portugalmail.pt>
20962 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20964 (child_add_thread): Minor cleanup.
20965 (child_continue): Resume artificially suspended threads before
20966 calling ContinueDebugEvent.
20967 (suspend_one_thread): New.
20968 (fake_breakpoint_event): New.
20969 (get_child_debug_event): Change return type to int. Check here if
20970 gdb sent an interrupt request. If a soft interrupt was requested,
20971 fake a breakpoint event. Return 0 if there is no event to handle,
20973 (win32_wait): Don't check here if gdb sent an interrupt request.
20974 Ensure there is a valid event to handle.
20975 (win32_request_interrupt): Add soft interruption method as last
20978 2007-12-03 Leo Zayas
20979 Pedro Alves <pedro_alves@portugalmail.pt>
20981 * win32-low.h (win32_thread_info): Add descriptions to the
20982 structure members. Replace `suspend_count' counter by a
20984 * win32-low.c (thread_rec): Update condition of when to get the
20985 context from the inferior. Rely on ContextFlags being set if it
20986 has already been retrieved. Only suspend the inferior thread if
20987 we haven't already. Warn if that fails.
20988 (continue_one_thread): s/suspend_count/suspended/. Only call
20989 ResumeThread once. Warn if that fails.
20991 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20993 * win32-low.c (win32_wait): Don't read from the inferior when it
20994 has already exited.
20996 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20998 * Makefile.in (win32_low_h): New variable.
20999 (win32-low.o): Add dependency on $(win32_low_h).
21000 (win32-arm-low.o, win32-i386-low.o): New rules.
21002 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21004 * hostio.c: Correct copyright year.
21006 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
21008 * Makefile.in (OBS): Add hostio.o.
21009 (hostio.o): New rule.
21010 * server.h (handle_vFile): Declare.
21011 * hostio.c: New file.
21012 * server.c (handle_v_requests): Take packet_len and new_packet_len
21013 for binary packets. Call handle_vFile.
21014 (main): Update call to handle_v_requests.
21016 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
21018 * linux-low.c: Include <sched.h>.
21020 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
21022 * linux-low.c (linux_tracefork_grandchild): New.
21023 (linux_tracefork_child): Use clone.
21024 (linux_test_for_tracefork): Use clone; allocate and free a stack.
21026 2007-10-31 Joel Brobecker <brobecker@adacore.com>
21028 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
21030 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
21032 * linux-low.c (handle_extended_wait): Handle unexpected signals.
21034 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
21036 * inferiors.c (change_inferior_id): Delete.
21037 (add_pid_to_list, pull_pid_from_list): New.
21038 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
21039 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
21040 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
21041 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
21042 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
21043 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
21044 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
21045 (using_threads): Always set to 1.
21046 (handle_extended_wait): New.
21047 (add_process): Do not set TID.
21048 (linux_create_inferior): Set must_set_ptrace_flags.
21049 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
21050 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
21051 (linux_thread_alive): Rename TID argument to LWPID.
21052 (linux_wait_for_process): Handle unknown processes. Do not use TID.
21053 (linux_wait_for_event): Do not use TID or check using_threads. Update
21054 call to dead_thread_notify. Call handle_extended_wait.
21055 (linux_create_inferior): Use PTRACE_SETOPTIONS.
21056 (send_sigstop): Delete sigstop_sent.
21057 (wait_for_sigstop): Avoid TID.
21058 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
21059 (linux_test_for_tracefork): New.
21060 (linux_lookup_signals): Use thread_db_active and
21061 linux_supports_tracefork_flag.
21062 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
21063 * linux-low.h (get_process_thread): Avoid TID.
21064 (struct process_ifo): Move thread_known and tid to the end. Remove
21066 (linux_attach_lwp, thread_db_init): Update prototypes.
21067 * server.h (change_inferior_id): Delete prototype.
21068 (add_pid_to_list, pull_pid_from_list): New prototypes.
21069 * thread-db.c (thread_db_use_events): New.
21070 (find_first_thread): Rename to...
21071 (find_one_thread): ...this. Update callers and messages. Do not
21072 call fatal. Check thread_db_use_events. Do not call
21073 change_inferior_id or new_thread_notify.
21074 (maybe_attach_thread): Update. Do not call new_thread_notify.
21075 (thread_db_init): Set thread_db_use_events. Check use_events.
21076 * utils.c (fatal, warning): Correct message prefix.
21078 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
21080 * Makefile.in (clean): Remove new files.
21081 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
21082 (powerpc-64.o, powerpc-64.c): New rules.
21083 * configure.srv: Use alternate register sets for powerpc64-*-linux*
21084 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
21086 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
21088 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
21089 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
21090 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
21091 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
21092 (target_regsets): Add AltiVec and SPE register sets.
21093 * configure.ac: Check for AltiVec and SPE.
21094 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
21095 (ppc_fill_vrregset, ppc_store_vrregset): New.
21096 (target_regsets): Add AltiVec register set.
21097 * configure: Regenerated.
21099 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
21101 * linux-low.c (O_LARGEFILE): Define.
21102 (linux_read_memory): Use /proc/PID/mem.
21103 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
21104 * configure, config.in: Regenerated.
21106 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
21108 * linux-low.c (linux_wait_for_event): Do not pass signals while
21111 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21113 * win32-low.c (create_process): New.
21114 (win32_create_inferior): Use create_process instead of
21115 CreateProcess. If create_process failed retry appending an ".exe"
21116 suffix. Store the GetLastError result immediatelly after
21117 create_process calls and use it on the call to error.
21119 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
21121 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
21123 2007-08-23 Joel Brobecker <brobecker@adacore.com>
21125 * configure.ac: Switch license to GPLv3.
21127 2007-08-01 Michael Snyder <msnyder@access-company.com>
21129 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
21131 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
21133 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
21135 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
21136 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
21137 CloseToolhelp32Snapshot.
21138 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
21139 CloseToolhelp32Snapshot.
21141 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
21143 * server.c (main): Check for inferior exit before main loop.
21145 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
21147 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
21148 instead of on tmp_desc.
21150 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21151 Daniel Jacobowitz <dan@codesourcery.com>
21153 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21154 (add_thread): Minor cleanups.
21155 (clear_inferiors): Move lower in the file. Clear the DLL
21157 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21158 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21159 (xml_escape_text): New.
21160 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21162 (handle_v_cont): Report errors.
21163 (gdbserver_version): Update.
21164 (main): Correct size of own_buf. Do not report initial DLL events.
21165 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21166 (unloaded_dll, xml_escape_text): New.
21167 * win32-low.c (enum target_waitkind): Update comments.
21168 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21169 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21170 (win32_EnumProcessModules, win32_GetModuleInformation)
21171 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21172 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21173 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21174 (win32_Module32First, win32_Module32Next, load_toolhelp)
21175 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21176 (get_child_debug_event): Handle DLL events.
21177 (win32_wait): Likewise.
21179 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21181 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21182 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21184 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21186 * win32-low.c (handle_output_debug_string): Ignore event if not
21189 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21191 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21193 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21195 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21197 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21199 * inferiors.c (change_inferior_id): Add comment.
21200 * linux-low.c (check_removed_breakpoint): Add an early
21201 prototype. Improve debug output.
21202 (linux_attach): Doc update.
21203 (linux_detach_one_process, linux_detach): Clean up before releasing
21205 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21206 * linux-low.h (struct process_info): Doc improvement.
21207 * mem-break.c (delete_all_breakpoints): New.
21208 * mem-break.h (delete_all_breakpoints): New prototype.
21209 * thread-db.c (find_first_thread): New.
21210 (thread_db_create_event): Call it instead of
21211 thread_db_find_new_threads. Clean up unused variables.
21212 (maybe_attach_thread): Remove first thread handling.
21213 (thread_db_find_new_threads): Use find_first_thread.
21214 (thread_db_get_tls_address): Likewise.
21216 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21218 * thread-db.c (thread_db_find_new_threads): Add prototype.
21219 (thread_db_create_event): Check for the main thread before adding
21221 (maybe_attach_thread): Only enable event reporting if TID == 0.
21222 (thread_db_get_tls_address): Check for new threads.
21224 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21226 * linux-low.c (linux_create_inferior): Try execv before execvp.
21227 * spu-low.c (spu_create_inferior): Likewise.
21229 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21231 * linux-low.c (linux_create_inferior): Change execv to execvp.
21232 * spu-low.c (spu_create_inferior): Likewies.
21234 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21236 * Makefile.in (clean): Clean new files instead of deleted ones.
21237 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21238 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21240 * configure.srv: Specify XML files and new regformats for MIPS and
21242 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21243 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21244 an entry for the restart register.
21245 (mips_cannot_fetch_register, mips_cannot_store_register)
21246 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21247 register names to match the XML descriptions.
21248 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21249 restart register instead of $0.
21251 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21252 Markus Deuling <deuling@de.ibm.com>
21254 * remote-utils.c (decode_xfer_write): New function.
21255 * server.h (decode_xfer_write): Add prototype.
21256 * server.c (handle_query): Add PACKET_LEN argument. Support
21257 qXfer:spu:read and qXfer:spu:write packets.
21258 (main): Pass packet_len to handle_query.
21259 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21260 * target.h (target_ops): Add qxfer_spu.
21262 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21264 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21265 accessing non-seekable spufs files.
21267 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21269 * server.c (handle_query): Add reply for qC packet.
21271 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21272 Leo Zayas <lerele@champenstudios@com>
21274 * server.h (check_remote_input_interrupt_request): New function.
21275 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21276 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21277 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21278 (check_remote_input_interrupt_request): New function.
21279 * server.h (check_remote_input_interrupt_request): Declare.
21280 * win32-low.c (winapi_DebugBreakProcess,
21281 winapi_GenerateConsoleCtrlEvent): New typedefs.
21282 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21284 (win32_wait): Check for remote interrupt request
21285 with check_remote_input_interrupt_request.
21286 (win32_request_interrupt): New function.
21287 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21289 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21291 * win32-low.c (debug_registers_changed,
21292 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21293 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21294 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21295 (thread_rec): Get context using the low target.
21296 (child_add_thread): Call thread_added on the low target,
21297 which does the same thing.
21299 (do_initial_child_stuff): Remove debug registers references.
21300 Set context using the low target. Resume threads after
21301 setting the contexts.
21302 (child_continue): Remove dead variable. Remove debug
21303 registers references.
21304 (child_fetch_inferior_registers): Go through the low target.
21305 (do_child_store_inferior_registers): Remove.
21306 (child_store_inferior_registers): Go through the low target.
21307 (win32_resume): Remove debug registers references.
21308 Set context using the low target.
21309 (handle_exception): Change return type to void. Don't record
21310 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21311 first chance exception.
21312 (get_child_debug_event): Change return type to void. Remove
21313 goto loop. Always return after waiting for debug event.
21314 (win32_wait): Convert to switch statement. Handle spurious
21317 * win32-i386-low.c (debug_registers_changed,
21318 debug_registers_used): New.
21319 (initial_stuff): Rename to ...
21320 (i386_initial_stuff): ... this. Clear debug registers
21322 (store_debug_registers): Delete.
21323 (i386_get_thread_context): New.
21324 (load_debug_registers): Delete.
21325 (i386_set_thread_context): New.
21326 (i386_thread_added): New.
21327 (single_step): Rename to ...
21328 (i386_single_step): ... this.
21329 (do_fetch_inferior_registers): Rename to ...
21330 (i386_fetch_inferior_register): ... this.
21331 (i386_store_inferior_register): New.
21332 (the_low_target): Adapt to new interface.
21334 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21335 (arm_get_thread_context): New.
21336 (arm_set_thread_context): New.
21338 (do_fetch_inferior_registers): Rename to ...
21339 (arm_fetch_inferior_register): ... this.
21340 (arm_store_inferior_register): New.
21341 (arm_wince_breakpoint): Reimplement as unsigned long.
21342 (arm_wince_breakpoint_len): Define.
21343 (the_low_target): Adapt to new interface.
21345 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21346 load_debug_registers. Add get_thread_context, set_thread_context,
21347 thread_added and store_inferior_register. Rename
21348 fetch_inferior_registers to fetch_inferior_register.
21349 (regptr): Remove declaration.
21351 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21353 * linux-low.c (linux_detach): Change return type to int. Return 0.
21354 * spu-low.c (spu_detach): Likewise.
21356 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21358 * target.h (target_ops): Change return type of detach to int.
21360 (join_inferior): New.
21361 * server.c (main): Don't skip detach support on mingw32.
21362 If the inferior doesn't support detaching return error.
21363 Call join_inferior instead of using waitpid.
21364 * linux-low.c (linux_join): New.
21365 (linux_target_op): Add linux_join.
21366 * spu-low.c (spu_join): New.
21367 (spu_target_ops): Add spu_join.
21368 * win32-low.c (win32_detach): Adapt to new interface.
21369 Reopen current_process_handle before detaching. Issue a child
21370 resume before detaching.
21372 (win32_target_op): Add win32_join.
21374 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21376 * win32-low.c (win32-attach): Fix return value.
21377 * target.h (target_ops): Describe ATTACH return values.
21379 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21381 * win32-low.c (GETPROCADDRESS): Define.
21382 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21383 (winapi_DebugSetProcessKillOnExit): Likewise.
21384 (win32_create_inferior): Force usage of ansi CreateProcessA.
21385 (win32_attach): Use GETPROCADDRESS.
21386 (win32_detach): Likewise.
21388 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21390 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21392 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21394 * win32-low.c: Commit leftover changes from 2007-03-29.
21396 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21398 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21399 fields short instead of int. Add explicit padding.
21400 (i387_cache_to_fsave): Remove unnecessary casts.
21401 (i387_fsave_to_cache): Doc fix.
21402 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21404 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21406 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21407 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21409 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21411 * configure.srv (arm*-*-mingw32ce*): Move near the other
21414 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21416 * configure.ac: Add errno checking.
21417 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21418 sys/file.h and malloc.h.
21419 (AC_CHECK_DECLS): Add perror.
21420 (srv_mingwce): Handle.
21421 * configure.srv (i[34567]86-*-cygwin*): Add
21422 win32-i386-low.o to srv_tgtobj.
21423 (i[34567]86-*-mingw*): Likewise.
21424 (arm*-*-mingw32ce*): Add case.
21425 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21426 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21427 [__MINGW32CE__] (strerror): New function.
21428 [__MINGW32CE__] (errno): Define to GetLastError.
21429 [__MINGW32CE__] (COUNTOF): New macro.
21430 (remote_open): Remove extra close call.
21431 * mem-break.c (delete_breakpoint_at): New function.
21432 * mem-break.h (delete_breakpoint_at): Declare.
21433 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21434 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21435 [USE_WIN32API] (read, write): Add char* casts.
21436 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21437 * server.h: Include wincecompat.h on Windows CE.
21438 [HAVE_ERRNO_H]: Check.
21439 (perror): Declare if not declared.
21440 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21441 (perror_with_name): Remove errno declaration.
21442 * wincecompat.h: New.
21443 * wincecompat.c: New.
21444 * win32-low.h: New.
21445 * win32-arm-low.c: New.
21446 * win32-i386-low.c: New.
21447 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21448 (OUTMSG2): Make it safe.
21450 (COUNTOF): New macro.
21451 (NUM_REGS): Get it from the low target.
21452 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21453 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21454 (thread_rec): Let low target handle debug registers.
21455 (child_add_thread): Likewise.
21456 (child_init_thread_list): Likewise.
21457 (continue_one_thread): Likewise.
21459 (do_child_fetch_inferior_registers): Move to ...
21460 * win32-i386-low.c: ... here, and rename to ...
21461 (do_fetch_inferior_registers): ... this.
21462 * win32-low.c (child_fetch_inferior_registers):
21463 Go through the low target.
21464 (do_child_store_inferior_registers): Use regptr.
21465 (strwinerror): New function.
21466 (win32_create_inferior): Handle Windows CE.
21467 Use strwinerror instead of strerror on Windows error
21468 codes. Add program to the error output.
21469 Don't close the main thread handle on Windows CE.
21470 (win32_attach): Use coredll.dll on Windows CE.
21471 (win32_kill): Close current process and current
21473 (win32_detach): Use coredll.dll on Windows CE.
21474 (win32_resume): Let low target handle debug registers, and
21476 (handle_exception): Add/Remove initial breakpoint. Avoid
21477 non-existant WSTOPSIG on Windows CE.
21478 (win32_read_inferior_memory): Cast to remove warning.
21479 (win32_arch_string): Go through the low target.
21480 (initialize_low): Call set_breakpoint_data with the low
21481 target's breakpoint.
21482 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21483 FOP_REGNUM, mappings): Move to ...
21484 * win32-i386-low.c: ... here.
21485 * win32-low.c (win32_thread_info): Move to ...
21486 * win32-low.h: ... here.
21487 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21488 win32-arm-low.c and wincecompat.c.
21489 (all:): Add $EXEEXT.
21490 (install-only:): Likewise.
21491 (gdbserver:): Likewise.
21492 (gdbreplay:): Likewise.
21493 * config.in: Regenerate.
21494 * configure: Regenerate.
21496 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21498 * win32-low.c: Rename typedef thread_info to
21499 win32_thread_info throughout.
21501 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21503 * win32-i386-low.c: Rename to ...
21504 * win32-low.c: ... this.
21505 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21506 * Makefile.in: Likewise.
21508 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21510 * remote-utils.c (monitor_output): Constify msg parameter.
21511 * server.h (monitor_output): Likewise.
21512 * win32-i386-low.c (handle_output_debug_string): New.
21513 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21514 handle_output_debug_string.
21515 (get_child_debug_event): Likewise.
21517 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21519 * server.c (main): Correct strtoul check.
21521 2007-03-27 Jon Ringle <jon@ringle.org>
21523 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21525 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21527 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21529 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21531 * terminal.h: Check HAVE_SGTTY_H.
21533 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21535 * remote-utils.c (remote_open): Print out the assigned port number.
21537 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21539 * remote-utils.c (monitor_output): New function.
21540 * server.c (debug_threads): Define here.
21541 (monitor_show_help): New function.
21542 (handle_query): Handle qRcmd.
21543 (main): Do not handle 'd' packet.
21544 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21545 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21548 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21550 * Makefile.in (EXEEXT): New.
21551 (clean): Use $(EXEEXT).
21553 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21555 * target.h (target_ops): Rename send_signal to request_interrupt,
21556 and remove enum target_signal parameter.
21557 * linux-low.c (linux_request_interrupt): Rename from
21558 linux_send_signal, and always send SIGINT.
21559 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21560 and always send SIGINT.
21561 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21563 (input_interrupt): Likewise.
21565 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21567 * server.c (get_features_xml): Check if target implemented
21569 * win32-i386-low.c (win32_arch_string): New.
21570 (win32_target_ops): Add win32_arch_string as arch_string member.
21572 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21574 * spu-low.c (spu_arch_string): New.
21575 (spu_target_ops): Add spu_arch_string.
21577 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21579 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21580 * configure.ac: Do not check for terminal.h.
21581 * configure, config.in: Regenerated.
21583 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21585 * Makefile.in (OBS): Add $(XML_BUILTIN).
21586 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21588 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21589 (arm-with-iwmmxt.c): New.
21590 * config.in, configure: Regenerate.
21591 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21592 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21593 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21594 (arm*-*-linux*): Add iWMMXt and regset support.
21595 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21596 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21597 (arm_store_wmmxregset, target_regsets): New.
21598 * server.c (get_features_xml): Take annex argument. Check builtin
21600 (handle_query): Handle multiple annexes.
21602 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21604 * remote-utils.c [USE_WIN32API] (read, write): Define.
21605 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21608 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21610 * linux-i386-low.c (the_low_target): Set arch_string.
21611 * linux-x86-64-low.c (the_low_target): Likewise.
21612 * linux-low.c (linux_arch_string): New.
21613 (linux_target_ops): Add it.
21614 * linux-low.h (struct linux_target_ops): Add arch_string.
21615 * server.c (write_qxfer_response): Use const void * for DATA.
21616 (get_features_xml): New.
21617 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21618 * target.h (struct target_ops): Add arch_string method.
21620 2007-01-03 Denis Pilat <denis.pilat@st.com>
21621 Daniel Jacobowitz <dan@codesourcery.com>
21623 * linux-low.c (linux_kill): Handle being called with no threads.
21624 * win32-i386-low.c (win32_kill): Likewise.
21625 (get_child_debug_event): Clear current_process_handle.
21627 2006-12-30 Denis PILAT <denis.pilat@st.com>
21628 Daniel Jacobowitz <dan@codesourcery.com>
21630 * remote-utils.c (remote_open): Check the type of specified
21631 serial port devices before opening them.
21632 * server.c (main): Kill the inferior if an error occurs during
21633 the first remote_open.
21635 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21637 * README: Update supported targets.
21639 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21641 * Makefile.in (clean): Remove reg-mips64.c.
21642 (reg-mips64.c, reg-mips64.o): New rules.
21643 * configure.srv: Handle mips64. Include regset support for mips.
21644 * linux-mips-low.c (union mips_register): New.
21645 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21646 (mips_breakpoint, mips_breakpoint_at): Use int.
21647 (mips_collect_register, mips_supply_register)
21648 (mips_collect_register_32bit, mips_supply_register_32bit)
21649 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21650 (mips_store_fpregset, target_regsets): New.
21651 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21653 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21655 * configure.srv: Add target "spu*-*-*".
21656 * Makefile.in (clean): Remove reg-spu.c.
21657 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21658 * spu-low.c: New file.
21660 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21662 * configure.ac: Correct td_thr_tls_get_addr test.
21663 * configure: Regenerated.
21665 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21667 * linux-low.c (linux_wait_for_event): Reformat. Use the
21668 pass_signals array.
21669 * remote-utils.c (decode_address_to_semicolon): New.
21670 * server.c (pass_signals, handle_general_set): New.
21671 (handle_query): Mention QPassSignals for qSupported.
21672 (main): Call handle_general_set.
21673 * server.h (pass_signals, decode_address_to_semicolon): New.
21675 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21677 * server.c (handle_query): Correct error handling for read_auxv.
21679 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21681 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21682 and srv_linux_thread_db to yes.
21683 * linux-s390-low.c (s390_fill_gregset): New function.
21684 (target_regsets): Define data structure.
21686 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21688 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21689 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21690 * config.in, configure: Regenerated.
21691 * inferiors.c (gdb_id_to_thread): New function.
21692 (gdb_id_to_thread_id): Use it.
21693 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21694 * linux-low.h (struct process_info): Add th member.
21695 (thread_db_get_tls_address): New prototype.
21696 * remote-utils.c (decode_address): Make non-static.
21697 * server.c (handle_query): Handle qGetTLSAddr.
21698 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21699 * target.h (struct target_ops): Add get_tls_address.
21700 * thread-db.c (maybe_attach_thread): Save the thread handle.
21701 (thread_db_get_tls_address): New.
21703 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21705 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21706 (linux_resume_one_process): Take a siginfo_t *. Update all
21707 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21708 (struct pending_signals): Add a siginfo_t.
21709 (linux_wait_for_process): Always set last_status.
21710 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21711 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21712 * linux-low.h (struct process_info): Add last_status.
21714 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21716 * remote-utils.c (try_rle): New function.
21717 (putpkt_binary): Use it.
21719 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21721 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21722 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21723 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21724 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21725 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21728 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21730 * server.c (terminal_fd): New variable.
21731 (old_foreground_pgrp): Likewise.
21732 (restore_old_foreground_pgrp): New function.
21733 (start_inferior): Record the terminal file descriptor in terminal_fd
21734 and its original foreground group in old_foreground_pgrp. Register
21735 restore_old_foreground_pgrp with atexit().
21737 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21739 * server.c (handle_query): Correct qPart to qXfer.
21741 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21743 * configure.ac: Check for more headers which are missing on
21744 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21745 * configure.srv: Add Cygwin and mingw32.
21746 * remote-utils.c: Don't include headers unconditionally which
21747 are missing on mingw32. Include <winsock.h> for mingw32.
21748 (remote_open): Adjust for mingw32 support. Flush
21749 standard error after writing to it.
21750 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21751 (unblock_async_io, enable_async_io, disable_async_io)
21752 (readchar, getpkt): Update for Winsock support.
21753 (prepare_resume_reply): Expect a protocol signal number.
21754 * server.c: Disable <sys/wait.h> on mingw32.
21755 (start_inferior): Adjust for mingw32 support. Flush
21756 standard error after writing to it.
21757 (attach_inferior): Likewise. Use protocol signal
21759 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21761 * win32-i386-low.c: New file.
21762 * Makefile.in (XM_CLIBS): Set.
21763 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21764 (win32-i386-low.o): New dependency rule.
21765 * linux-low.c (linux_wait): Use target signal numbers.
21766 * target.h (struct target_ops): Doc fix.
21767 * server.h (target_signal_to_name): New prototype.
21768 * gdbreplay.c: Don't include headers unconditionally which
21769 are missing on mingw32. Include <winsock.h> for mingw32.
21770 (remote_close, remote_open): Adjust for Winsock support.
21771 * configure, config.in: Regenerated.
21773 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21775 * server.c (decode_xfer_read, write_qxfer_response): New.
21776 (handle_query): Take a packet length argument. Handle
21777 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21778 the qSupported response.
21779 (main): Update call to handle_query.
21781 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21783 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21784 (putpkt_binary): Renamed from putpkt and adjusted for binary
21786 (putpkt): New wrapper for putpkt_binary.
21787 (readchar): Don't mask off the high bit.
21788 (decode_X_packet): New function.
21789 * server.c (main): Call putpkt_binary if a handler sets the packet
21790 length. Save the length of the incoming packet. Handle 'X'.
21791 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21793 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21795 * server.c (handle_query): Handle qSupported.
21797 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21799 * remote-utils.c (all_symbols_looked_up): New variable.
21800 (look_up_one_symbol): Check it.
21801 * server.h (look_up_one_symbol): New declaration.
21802 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21804 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21806 * Makefile.in (linux-arm-low.o): Update dependencies.
21807 * linux-arm-low.c: Include "gdb_proc_service.h".
21808 (PTRACE_GET_THREAD_AREA): Define.
21809 (ps_get_thread_area): New function.
21811 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21813 * configure.srv (m68k*-*-uclinux*): New target.
21814 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21815 (linux_resume_one_process): Remove extraneous cast.
21816 (linux_read_offsets): New.
21817 (linux_target_op): Add linux_read_offsets on mmuless systems.
21818 * server.c (handle_query): Add qOffsets logic.
21819 * target.h (struct target_ops): Add read_offsets.
21821 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21823 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21824 (PTRACE_GET_THREAD_AREA): Define.
21825 (ps_get_thread_area): New function.
21826 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21827 (linux-x86-64-low.o): Update.
21829 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21831 * configure.ac: Remove checks for prfpregset_t.
21832 * gdb_proc_service.h: New file.
21833 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21834 new "gdb_proc_service.h".
21835 * proc-service.c: Likewise.
21836 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21837 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21838 * Makefile.in (gdb_proc_service_h): Updated.
21839 * configure, config.in: Regenerated.
21841 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21843 * remote-utils.c (prepare_resume_reply): Move declaration
21844 of gdb_id_from_wait to the top of the block.
21846 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21848 * linux-low.c (regsets_store_inferior_registers): Read the regset
21849 from the target before filling it.
21851 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21853 * server.c (attach_inferior): Return SIGTRAP for a successful
21856 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21858 * Makefile.in (OBS): Add version.o.
21859 (STAGESTUFF): Delete.
21860 (version.o): Add dependencies.
21861 (version.c): Replace rule.
21862 (clean): Remove version.c.
21863 * server.c (gdbserver_version): New.
21864 (gdbserver_usage): Use printf.
21865 (main): Handle --version and --help.
21866 * server.h (version, host_name): Add declarations.
21868 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21880 * linux-x86-64-low.c:
21882 * linux-s390-low.c:
21883 * linux-ppc64-low.c:
21885 * linux-mips-low.c:
21886 * linux-m68k-low.c:
21887 * linux-m32r-low.c:
21890 * linux-ia64-low.c:
21891 * linux-i386-low.c:
21892 * linux-crisv32-low.c:
21904 * gdbserver.1: Add (C) after Copyright. Update the FSF
21907 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21909 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21910 (arm_breakpoint_at): Recognize both breakpoints.
21911 (the_low_target): Use the correct breakpoint instruction.
21913 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21915 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21916 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21917 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21918 (the_low_target): Update.
21920 2005-10-25 Andreas Schwab <schwab@suse.de>
21922 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21924 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21925 (ia64_num_regs): Reduce to 462.
21927 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21929 * acinclude.m4: Correct quoting.
21930 * aclocal.m4: Regenerated.
21932 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21933 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21934 (thread_db_init): Call thread_db_err_str.
21935 * configure.ac: Check for TD_VERSION.
21936 * config.in, configure: Regenerated.
21938 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21940 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21942 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21944 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21945 is not available. Define HAVE_PTRACE_GETREGS if it is.
21946 * config.in, configure: Regenerated.
21947 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21948 * linux-i386-low.c, linux-m68k-low.c: Update to use
21949 HAVE_PTRACE_GETREGS.
21950 * linux-low.c (regsets_fetch_inferior_registers)
21951 (regsets_store_inferior_registers): Only return 0 if we processed
21953 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21954 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21956 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21958 * inferiors.c (struct thread_info): Add gdb_id.
21959 (add_thread): Add gdb_id argument.
21960 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21961 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21962 calls to add_thread.
21963 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21964 * server.c (handle_query): Use thread_to_gdb_id.
21965 (handle_v_cont, main): Use gdb_id_to_thread_id.
21966 * server.h (add_thread): Update prototype.
21967 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21970 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21972 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21973 left-padded registers.
21974 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21975 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21977 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21979 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21980 * configure: Regenerate.
21981 * config.in: Regenerate.
21982 * server.h (NEED_DECLARATION_STRERROR):
21983 Replace with !HAVE_DECL_STRERROR.
21985 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21987 * linux-low.c (linux_wait, linux_send_signal): Don't test
21988 an unsigned long variable for > 0 if it could be MAX_ULONG.
21989 * server.c (myresume): Likewise.
21990 * target.c (set_desired_inferior): Likewise.
21992 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21994 * configure.ac: Simplify and improve check for socklen_t.
21995 * configure, config.in: Regenerate.
21997 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21999 * acconfig.h: Remove.
22000 * configure.ac: Add a test for socklen_t. Use three-argument
22001 AC_DEFINE throughout.
22002 * config.in: Regenerated using autoheader 2.59.
22003 * configure: Regenerated.
22005 * gdbreplay.c (socklen_t): Provide a default.
22006 (remote_open): Use socklen_t.
22007 * remote-utils.c (socklen_t): Provide a default.
22008 (remote_open): Use socklen_t.
22009 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
22012 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
22014 * linux-low.c (linux_read_memory, linux_write_memory)
22015 (linux_read_auxv): Likewise.
22016 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
22017 (check_mem_write): Likewise.
22018 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
22020 * regcache.c (struct inferior_rgcache_data, registers_to_string)
22021 (registers_from_string, register_data): Likewise.
22022 * server.c (handle_query, main): Likewise.
22023 * server.h (convert_ascii_to_int, convert_int_to_ascii)
22024 (decode_M_packet): Likewise.
22025 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
22026 * target.h (struct target_ops): Update read_memory, write_memory,
22028 (read_inferior_memory, write_inferior_memory): Update.
22029 * linux-low.h (struct linux_target_ops): Change type of breakpoint
22030 to unsigned char *.
22031 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
22032 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
22033 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
22034 linux-s390-low.c, linux-sh-low.c: Update for changes in
22035 read_inferior_memory and the_low_target->breakpoint.
22037 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
22039 * Makefile.in (SFILES): Add linux-ppc64-low.c.
22040 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
22041 * configure.srv: Add powerpc64-*-linux*.
22042 * linux-ppc64-low.c: New file.
22044 2005-05-23 Orjan Friberg <orjanf@axis.com>
22046 * linux-cris-low.c: New file with support for CRIS.
22047 * linux-crisv32-low.c: Ditto for CRISv32.
22048 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
22049 (clean): Add reg-cris.c and reg-crisv32.c.
22050 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
22051 reg-crisv32.o, and reg-crisv32.c to make rules.
22052 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
22053 recognized targets.
22055 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22057 * linux-low.c (fetch_register): Ensure buffer size is a multiple
22058 of sizeof (PTRACE_XFER_TYPE).
22059 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
22061 2005-05-12 Orjan Friberg <orjanf@axis.com>
22063 * target.h (struct target_ops): Add insert_watchpoint,
22064 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
22065 pointers for hardware watchpoint support.
22066 * linux-low.h (struct linux_target_ops): Ditto.
22067 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
22068 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
22069 to linux_target_ops.
22070 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
22072 * server.c (main): Recognize 'Z' and 'z' packets.
22074 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
22076 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
22077 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
22078 (the_low_target): Add new members.
22080 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22082 * proc-service.c (ps_lgetregs): Search all_processes instead of
22085 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
22087 * server.c (start_inferior): Change return type to int.
22088 (attach_inferior): Change sigptr to int *.
22089 (handle_v_cont, handle_v_requests): Change signal to int *.
22090 (main): Change signal to int.
22092 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
22094 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
22095 * configure.srv: Add m32r*-*-linux*.
22096 * linux-m32r-low.c: New file.
22098 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
22100 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
22102 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
22104 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
22105 Take unsigned long arguments for PIDs.
22106 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
22107 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
22108 (wait_for_sigstop, linux_resume_one_process)
22109 (regsets_fetch_inferior_registers, linux_send_signal)
22110 (linux_read_auxv): Likewise. Update the types of variables holding
22111 PIDs. Update format string specifiers.
22112 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
22113 * remote-utils.c (prepare_resume_reply): Likewise.
22114 * server.c (cont_thread, general_thread, step_thread)
22115 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
22117 (handle_query): Update format specifiers.
22118 (handle_v_cont, main): Use strtoul for thread IDs.
22119 * server.h (struct inferior_list_entry): Use unsigned long for ID.
22120 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
22121 (general_thread, step_thread, thread_from_wait)
22122 (old_thread_from_wait): Update.
22123 * target.h (struct thread_resume): Use unsigned long for THREAD.
22124 (struct target_ops): Use unsigned long for arguments to attach and
22127 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
22129 * acinclude.m4: Include bfd/bfd.m4 directly.
22130 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
22131 <agriffis@toolchain.org>.
22132 * aclocal.m4, configure: Regenerated.
22134 2005-01-07 Andrew Cagney <cagney@gnu.org>
22136 * configure.ac: Rename configure.in, require autoconf 2.59.
22137 * configure: Re-generate.
22139 2004-12-08 Daniel Jacobowitz <dan@debian.org>
22141 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
22142 LIBS when finished.
22143 * aclocal.m4: Regenerated.
22144 * configure: Regenerated.
22146 2004-11-21 Andreas Schwab <schwab@suse.de>
22148 * linux-m68k-low.c (m68k_num_gregs): Define.
22149 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22150 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22151 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22152 (m68k_breakpoint_at): New. Add to the_low_target.
22154 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22155 srv_linux_thread_db to yes.
22157 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22159 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22160 (ARCH_SET_FS): Likewise.
22161 (ARCH_GET_FS): Likewise.
22162 (ARCH_GET_GS): Likewise.
22164 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22166 * linux-i386-low.c (ps_get_thread_area): New.
22167 * linux-x86-64-low.c (ps_get_thread_area): New.
22168 * linux-low.c: Include <sys/syscall.h>.
22169 (linux_kill_one_process): Don't kill the first thread here.
22170 (linux_kill): Kill the first thread here.
22171 (kill_lwp): New function.
22172 (send_sigstop, linux_send_signal): Use it.
22173 * proc-service.c: Clean up #ifdefs.
22174 (fpregset_info): Delete.
22175 (ps_lgetregs): Update and enable implementation.
22176 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22178 * remote-utils.c (struct sym_cache, symbol_cache): New.
22179 (input_interrupt): Print a clearer message.
22180 (async_io_enabled): New variable.
22181 (enable_async_io, disable_async_io): Use it. Update comments.
22182 (look_up_one_symbol): Use the symbol cache.
22183 * thread-db.c (thread_db_look_up_symbols): New function.
22184 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22186 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22188 * configure.in: Test for -rdynamic.
22189 * configure: Regenerated.
22190 * Makefile (INTERNAL_LDFLAGS): New.
22191 (gdbserver, gdbreplay): Use it.
22193 2004-09-02 Andrew Cagney <cagney@gnu.org>
22195 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22197 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22199 * linux-low.c (linux_wait): Clear all_processes list also.
22201 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22203 * linux-low.c: Include <errno.h>. Remove extern declaration of
22206 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22208 * gdbreplay.c, server.h, utils.c: Update copyright years.
22210 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22212 * server.c (main): Print child status or termination signal from
22213 variable 'signal', not 'sig'.
22215 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22217 * linux-low.c (linux_read_memory): Change return type to
22218 int. Check for and return error from ptrace().
22219 * target.c (read_inferior_memory): Change return type to int. Pass
22220 back return status from the_target->read_memory().
22221 * target.h (struct target_ops): Adapt *read_memory() prototype.
22223 (read_inferior_memory): Adapt prototype.
22224 * server.c (main): Return an error packet if
22225 read_inferior_memory() returns an error.
22227 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22229 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22230 Unify with other clean targets.
22232 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22234 * server.c (handle_v_cont): Call set_desired_inferior.
22236 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22238 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22240 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22242 * linux-low.c (linux_wait): Unblock async I/O.
22243 (linux_resume): Block and enable async I/O.
22244 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22245 * server.h (block_async_io, unblock_async_io): Add prototypes.
22247 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22249 * remote-utils.c (remote_open): Print a status notice after
22250 opening a TCP port.
22251 * server.c (attach_inferior): Print a status notice after
22254 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22256 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22258 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22260 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22262 * server.c, target.h: Update copyright years.
22264 2004-02-25 Roland McGrath <roland@redhat.com>
22266 * target.h (struct target_ops): New member `read_auxv'.
22267 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22268 * linux-low.c (linux_read_auxv): New function.
22269 (linux_target_ops): Initialize `read_auxv' member to that.
22271 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22273 Committed by Jim Blandy <jimb@redhat.com>.
22275 * linux-s390-low.c (s390_num_regs): Update.
22276 (s390_regmap): Remove control registers. Use __s390x__ predefine
22277 instead of GPR_SIZE to distiguish s390 and s390x targets.
22279 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22281 * linux-low.c: Update copyright year.
22282 (check_removed_breakpoint): Clear pending_is_breakpoint.
22283 (linux_set_resume_request, linux_queue_one_thread)
22284 (resume_status_pending_p): New functions.
22285 (linux_continue_one_thread): Use process->resume.
22286 (linux_resume): Only resume threads if there are no pending events.
22287 * linux-low.h (struct process_info): Add resume request
22290 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22292 * regcache.c (new_register_cache): Clear the allocated register
22293 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22295 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22297 * linux-low.c (linux_resume): Take a struct thread_resume *
22299 (linux_wait): Update call.
22300 (resume_ptr): New static variable.
22301 (linux_continue_one_thread): Renamed from
22302 linux_continue_one_process. Use resume_ptr.
22303 (linux_resume): Use linux_continue_one_thread.
22304 * server.c (handle_v_cont, handle_v_requests): New functions.
22305 (myresume): New function.
22306 (main): Handle 'v' case.
22307 * target.h (struct thread_resume): New type.
22308 (struct target_ops): Change argument of "resume" to struct
22310 (myresume): Delete macro.
22312 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22314 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22315 (uninstall): Support DESTDIR.
22317 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22319 * configure.srv: Add xscale*linux copy of arm*linux entry.
22321 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22323 * linux-arm-low.c (arm_reinsert_addr): New function.
22324 (the_low_target): Add arm_reinsert_addr.
22326 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22328 * mem-break.c: Remove whitespace at end of file.
22330 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22332 * configure.in: Check whether we need to prototype strerror.
22333 * server.h: Optionally prototype strerror.
22334 * gdbreplay.c (perror_with_name): Use strerror.
22335 * linux-low.c (linux_attach_lwp): Use strerror.
22336 * utils.c (perror_with_name): Use strerror.
22337 * config.in, configure: Regenerated.
22339 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22341 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22342 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22344 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22346 * Makefile.in (SFILES): Update.
22347 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22348 low-sun3.c: Remove files.
22350 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22352 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22353 (linux_detach_one_process, linux_detach): New functions.
22354 (linux_target_ops): Add linux_detach.
22355 * server.c (main): Handle 'D' packet.
22356 * target.h (struct target_ops): Add "detach" member.
22357 (detach_inferior): Define.
22359 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22361 From Kelley Cook <kelleycook@wideopenwest.com>:
22362 * configure.srv: Accept i[34567]86 variants.
22364 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22366 * linux-low.c (linux_wait_for_event): Correct comment typos.
22367 (linux_resume_one_process): Call check_removed_breakpoint.
22368 (linux_send_signal): New function.
22369 (linux_target_ops): Add linux_send_signal.
22370 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22372 * target.h (struct target_ops): Add send_signal.
22374 2003-05-29 Jim Blandy <jimb@redhat.com>
22376 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22377 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22378 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22379 away part of the register's value.
22381 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22383 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22384 (linux_wait_for_event, linux_init_signals): Likewise.
22386 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22388 * configure.in: Check for stdlib.h.
22389 * configure: Regenerated.
22390 * config.in: Regenerated.
22392 2003-01-04 Andreas Schwab <schwab@suse.de>
22394 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22396 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22398 * Makefile.in: Remove obsolete code.
22400 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22402 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22403 defined(PT_FPR0_HI).
22405 2002-11-17 Stuart Hughes <seh@zee2.com>
22407 * linux-arm-low.c (arm_num_regs): Increase.
22408 (arm_regmap): Include status register.
22410 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22412 * linux-low.c (register_addr): Remove incorrect -1 check.
22414 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22416 * linux-low.c (linux_create_inferior): Call setpgid. Return
22418 (unstopped_p, linux_signal_pid): Remove.
22419 (linux_target_ops): Remove linux_signal_pid.
22420 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22421 global instead of target method.
22422 * target.h (struct target_ops): Remove signal_pid. Update comment
22423 for create_inferior.
22424 * server.c (signal_pid): New variable.
22425 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22426 gdbserver. Set the child to be the foreground process group.
22427 (attach_inferior): Set signal_pid.
22429 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22431 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22433 2002-08-20 Jim Blandy <jimb@redhat.com>
22435 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22438 2002-08-01 Andrew Cagney <cagney@redhat.com>
22440 * Makefile.in: Make chill references obsolete.
22442 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22444 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22445 * configure: Regenerate.
22446 * config.in: Regenerate.
22448 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22450 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22451 (perror_with_name, remote_close, remote_open, expect, play): Static.
22453 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22455 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22456 byte offsets instead of an array of indexes.
22457 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22459 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22461 * regcache.c: Add comment.
22463 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22465 * thread-db.c: New file.
22466 * proc-service.c: New file.
22467 * acinclude.m4: New file.
22468 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22469 proc-service.o, and thread-db.o.
22470 (linux-low.o): Add USE_THREAD_DB.
22471 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22472 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22473 * aclocal.m4: Regenerated.
22474 * config.in: Regenerated.
22475 * configure: Regenerated.
22476 * configure.in: Check for proc_service.h, sys/procfs.h,
22477 thread_db.h, and linux/elf.h headrs.
22478 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22479 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22480 Check for -lthread_db and thread support.
22481 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22482 PowerPC, and SuperH.
22483 * i387-fp.c: Constify arguments.
22484 * i387-fp.h: Likewise.
22485 * inferiors.c: (struct thread_info): Renamed from
22486 `struct inferior_info'. Remove PID member. Use generic inferior
22487 list header. All uses updated.
22488 (inferiors, signal_pid): Removed.
22489 (all_threads): New variable.
22490 (get_thread): Define.
22491 (add_inferior_to_list): New function.
22492 (for_each_inferior): New function.
22493 (change_inferior_id): New function.
22494 (add_inferior): Removed.
22495 (remove_inferior): New function.
22496 (add_thread): New function.
22497 (free_one_thread): New function.
22498 (remove_thread): New function.
22499 (clear_inferiors): Use for_each_inferior and free_one_thread.
22500 (find_inferior): New function.
22501 (find_inferior_id): New function.
22502 (inferior_target_data): Update argument type.
22503 (set_inferior_target_data): Likewise.
22504 (inferior_regcache_data): Likewise.
22505 (set_inferior_regcache_data): Likewise.
22506 * linux-low.c (linux_bp_reinsert): Remove.
22507 (all_processes, stopping_threads, using_thrads)
22508 (struct pending_signals, debug_threads, pid_of): New.
22509 (inferior_pid): Replace with macro.
22510 (struct inferior_linux_data): Remove.
22511 (get_stop_pc, add_process): New functions.
22512 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22513 Use add_process and add_thread.
22514 (linux_attach_lwp): New function, based on old linux_attach. Use
22515 add_process and add_thread. Set stop_expected for new threads.
22516 (linux_attach): New function.
22517 (linux_kill_one_process): New function.
22518 (linux_kill): Kill all LWPs.
22519 (linux_thread_alive): Use find_inferior_id.
22520 (check_removed_breakpoints, status_pending_p): New functions.
22521 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22522 Update. Use WNOHANG. Wait for cloned processes also. Update process
22523 struct for the found process.
22524 (linux_wait_for_event): New function.
22525 (linux_wait): Use it. Support LWPs.
22526 (send_sigstop, wait_for_sigstop, stop_all_processes)
22527 (linux_resume_one_process, linux_continue_one_process): New functions.
22528 (linux_resume): Support LWPs.
22529 (REGISTER_RAW_SIZE): Remove.
22530 (fetch_register): Use register_size instead. Call supply_register.
22531 (usr_store_inferior_registers): Likewise. Call collect_register.
22532 Fix recursive case.
22533 (regsets_fetch_inferior_registers): Improve error message.
22534 (regsets_store_inferior_registers): Add debugging.
22535 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22536 (unstopped_p, linux_signal_pid): New functions.
22537 (linux_target_ops): Add linux_signal_pid.
22538 (linux_init_signals): New function.
22539 (initialize_low): Call it. Initialize using_threads.
22540 * regcache.c (inferior_regcache_data): Add valid
22542 (get_regcache): Fetch registers lazily. Add fetch argument
22543 and update all callers.
22544 (regcache_invalidate_one, regcache_invalidate): New
22546 (new_register_cache): Renamed from create_register_cache.
22547 Return the new regcache.
22548 (free_register_cache): Change argument to a void *.
22549 (registers_to_string, registers_from_string): Call get_regcache
22550 with fetch flag set.
22551 (register_data): Make static. Pass fetch flag to get_regcache.
22552 (supply_register): Call get_regcache with fetch flag clear.
22553 (collect_register): Call get_regcache with fetch flag set.
22554 (collect_register_as_string): New function.
22555 * regcache.h: Update.
22556 * remote-utils.c (putpkt): Flush after debug output and use
22558 Handle input interrupts while waiting for an ACK.
22559 (input_interrupt): Use signal_pid method.
22560 (getpkt): Flush after debug output and use stderr.
22561 (outreg): Use collect_register_as_string.
22562 (new_thread_notify, dead_thread_notify): New functions.
22563 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22564 and general_thread.
22565 (look_up_one_symbol): Flush after debug output.
22566 * server.c (step_thread, server_waiting): New variables.
22567 (start_inferior): Don't use signal_pid. Update call to mywait.
22568 (attach_inferior): Update call to mywait.
22569 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22570 (main): Don't fetch/store registers explicitly. Use
22571 set_desired_inferior. Support proposed ``Hs'' packet. Update
22573 * server.h: Update.
22574 (struct inferior_list, struct_inferior_list_entry): New.
22575 * target.c (set_desired_inferior): New.
22576 (write_inferior_memory): Constify.
22577 (mywait): New function.
22578 * target.h: Update.
22579 (struct target_ops): New signal_pid method.
22580 (mywait): Removed macro, added prototype.
22582 * linux-low.h (regset_func): Removed.
22583 (regset_fill_func, regset_store_func): New.
22584 (enum regset_type): New.
22585 (struct regset_info): Add type field. Use new operation types.
22586 (struct linux_target_ops): stop_pc renamed to get_pc.
22587 Add decr_pc_after_break and breakpoint_at.
22588 (get_process, get_thread_proess, get_process_thread)
22589 (strut process_info, all_processes, linux_attach_lwp)
22590 (thread_db_init): New.
22592 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22593 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22594 (the_low_target): Add new members.
22595 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22596 (i386_store_fpxregset): Constify.
22597 (target_regsets): Add new kind identifier.
22598 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22599 (i386_set_pc): Add debugging.
22600 (i386_breakpoint_at): New function.
22601 (the_low_target): Add new members.
22602 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22603 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22604 (mips_breakpoint_at): New.
22605 (the_low_target): Add new members.
22606 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22607 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22608 (the_low_target): Add new members.
22609 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22610 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22611 (the_low_target): Add new members.
22612 * linux-x86-64-low.c (target_regsets): Add new kind
22615 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22617 From Martin Pool <mbp@samba.org>:
22618 * server.c (gdbserver_usage): New function.
22621 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22623 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22624 stop_at -> stop_pc.
22626 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22628 * Makefile.in: Remove obsolete code.
22630 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22632 * linux-low.c (regsets_fetch_inferior_registers),
22633 (regsets_store_inferior_registers): Removed cast to int from
22635 * regcache.h: Added declaration of struct inferior_info.
22637 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22639 * inferiors.c (struct inferior_info): Add regcache_data.
22640 (add_inferior): Call create_register_cache.
22641 (clear_inferiors): Call free_register_cache.
22642 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22643 * regcache.c (struct inferior_regcache_data): New.
22644 (registers): Remove.
22645 (get_regcache): New function.
22646 (create_register_cache, free_register_cache): New functions.
22647 (set_register_cache): Don't initialize the register cache here.
22648 (registers_to_string, registers_from_string, register_data): Call
22650 * regcache.h: Add prototypes.
22651 * server.h: Likewise.
22653 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22655 * mem-break.c: New file.
22656 * mem-break.h: New file.
22657 * Makefile.in: Add mem-break.o rule; update server.h
22659 * inferiors.c (struct inferior_info): Add target_data
22661 (clear_inferiors): Free target_data member if set.
22662 (inferior_target_data, set_inferior_target_data): New functions.
22663 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22664 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22665 * linux-low.c (linux_bp_reinsert): New variable.
22666 (struct inferior_linux_data): New.
22667 (linux_create_inferior): Use set_inferior_target_data.
22668 (linux_attach): Likewise. Call add_inferior.
22669 (linux_wait_for_one_inferior): New function.
22670 (linux_wait): Call it.
22671 (linux_write_memory): Add const.
22672 (initialize_low): Call set_breakpoint_data.
22673 * linux-low.h (struct linux_target_ops): Add breakpoint
22675 * server.c (attach_inferior): Remove extra add_inferior
22677 * server.h: Include mem-break.h. Update inferior.c
22679 * target.c (read_inferior_memory)
22680 (write_inferior_memory): New functions.
22681 * target.h (read_inferior_memory)
22682 (write_inferior_memory): Change macros to prototypes.
22683 (struct target_ops): Update comments. Add const to write_memory
22686 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22688 * linux-low.c (usr_store_inferior_registers): Support
22689 registers which are allowed to fail to store.
22690 * linux-low.h (linux_target_ops): Likewise.
22691 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22692 (ppc_cannot_store_register): FPSCR may not be storable.
22694 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22696 * server.h: Include <string.h> if HAVE_STRING_H.
22697 * ChangeLog: Correct paths in last ChangeLog entry.
22699 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22701 * linux-low.h: Remove obsolete prototypes.
22702 (struct linux_target_ops): New.
22703 (extern the_low_target): New.
22704 * linux-low.c (num_regs, regmap): Remove declarations.
22705 (register_addr): Use the_low_target explicitly.
22706 (fetch_register): Likewise.
22707 (usr_fetch_inferior_registers): Likewise.
22708 (usr_store_inferior_registers): Likewise.
22709 * linux-arm-low.c (num_regs): Remove.
22710 (arm_num_regs): Define.
22711 (arm_regmap): Renamed from regmap, made static.
22712 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22714 (arm_cannot_store_register): Renamed from cannot_store_register,
22716 (the_low_target): New.
22717 * linux-i386-low.c (num_regs): Remove.
22718 (i386_num_regs): Define.
22719 (i386_regmap): Renamed from regmap, made static.
22720 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22722 (i386_cannot_store_register): Renamed from cannot_store_register,
22724 (the_low_target): New.
22725 * linux-ia64-low.c (num_regs): Remove.
22726 (ia64_num_regs): Define.
22727 (ia64_regmap): Renamed from regmap, made static.
22728 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22730 (ia64_cannot_store_register): Renamed from cannot_store_register,
22732 (the_low_target): New.
22733 * linux-m68k-low.c (num_regs): Remove.
22734 (m68k_num_regs): Define.
22735 (m68k_regmap): Renamed from regmap, made static.
22736 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22738 (m68k_cannot_store_register): Renamed from cannot_store_register,
22740 (the_low_target): New.
22741 * linux-mips-low.c (num_regs): Remove.
22742 (mips_num_regs): Define.
22743 (mips_regmap): Renamed from regmap, made static.
22744 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22746 (mips_cannot_store_register): Renamed from cannot_store_register,
22748 (the_low_target): New.
22749 * linux-ppc-low.c (num_regs): Remove.
22750 (ppc_num_regs): Define.
22751 (ppc_regmap): Renamed from regmap, made static.
22752 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22754 (ppc_cannot_store_register): Renamed from cannot_store_register,
22756 (the_low_target): New.
22757 * linux-s390-low.c (num_regs): Remove.
22758 (s390_num_regs): Define.
22759 (s390_regmap): Renamed from regmap, made static.
22760 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22762 (s390_cannot_store_register): Renamed from cannot_store_register,
22764 (the_low_target): New.
22765 * linux-sh-low.c (num_regs): Remove.
22766 (sh_num_regs): Define.
22767 (sh_regmap): Renamed from regmap, made static.
22768 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22770 (sh_cannot_store_register): Renamed from cannot_store_register,
22772 (the_low_target): New.
22773 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22774 (the_low_target): New.
22776 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22778 * Makefile.in: Add stamp-h target.
22779 * configure.in: Create stamp-h.
22780 * configure: Regenerated.
22782 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22784 * inferiors.c: New file.
22785 * target.c: New file.
22786 * target.h: New file.
22787 * Makefile.in: Add target.o and inferiors.o. Update
22789 * linux-low.c (inferior_pid): New static variable,
22790 moved from server.c.
22791 (linux_create_inferior): Renamed from create_inferior.
22792 Call add_inferior. Return 0 on success instead of a PID.
22793 (linux_attach): Renamed from myattach.
22794 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22795 (linux_thread_alive): Renamed from mythread_alive.
22796 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22798 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22799 (regsets_store_inferior_registers): Correct error message.
22800 Add missing ``return 0''.
22801 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22802 (linux_store_registers): Renamed from store_inferior_registers.
22803 (linux_read_memory): Renamed from read_inferior_memory.
22804 (linux_write_memory): Renamed from write_inferior_memory.
22805 (linux_target_ops): New structure.
22806 (initialize_low): Call set_target_ops ().
22807 * remote-utils.c (unhexify): New function.
22808 (hexify): New function.
22809 (input_interrupt): Send signals to ``signal_pid''.
22810 * server.c (inferior_pid): Remove.
22811 (start_inferior): Update create_inferior call.
22812 (attach_inferior): Call add_inferior.
22813 (handle_query): New function.
22814 (main): Call handle_query for `q' packets.
22815 * server.h: Include "target.h". Remove obsolete prototypes.
22816 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22818 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22820 * Makefile.in: Add WARN_CFLAGS. Update configury
22822 * configure.in: Check for <string.h>
22823 * configure: Regenerate.
22824 * config.in: Regenerate.
22825 * gdbreplay.c: Include needed system headers.
22826 (remote_open): Remove strchr prototype.
22827 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22828 * regcache.c (supply_register): Change buf argument to const void *.
22829 (supply_register_by_name): Likewise.
22830 (collect_register): Change buf argument to void *.
22831 (collect_register_by_name): Likewise.
22832 * regcache.h: Add missing prototypes.
22833 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22834 * server.c (handle_query): New function.
22835 (attached): New static variable, moved out of main.
22836 (main): Quiet longjmp clobber warnings.
22837 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22838 * utils.c (error): Remove NORETURN.